/* =============================================================
   Cottrell Furnishings — design system
   Modern, warm, furniture-store aesthetic
   ============================================================= */

:root {
  /* Palette */
  --bg: #fbf8f3;
  --bg-alt: #f1ece1;
  --ink: #1a1a18;
  --ink-soft: #3a3935;
  --muted: #6f6b63;
  --line: #e5dfd1;
  --accent: #a6753a;      /* warm walnut */
  --accent-dark: #85582a;
  --gold: #c9a96e;
  --danger: #b23b3b;

  /* Type */
  --font-serif: "Fraunces", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Layout */
  --container: 1240px;
  --radius: 4px;
  --radius-lg: 10px;
  --shadow-sm: 0 1px 2px rgba(26,26,24,0.06);
  --shadow: 0 6px 20px rgba(26,26,24,0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html, body { overflow-x: hidden; max-width: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
  word-wrap: break-word;
}
img, picture, video, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); text-decoration: underline; }

h1,h2,h3,h4 { font-family: var(--font-serif); font-weight: 500; letter-spacing: -0.01em; color: var(--ink); margin: 0 0 0.5em; }
h1 { font-size: clamp(2.2rem, 4.5vw, 3.6rem); line-height: 1.05; }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); line-height: 1.15; }
h3 { font-size: 1.25rem; line-height: 1.25; }
p  { margin: 0 0 1em; color: var(--ink-soft); }

.container { max-width: var(--container); margin: 0 auto; padding: 0 clamp(1rem, 3vw, 2rem); }

/* ---------- Announcement bar ---------- */
.announcement {
  background: var(--ink);
  color: var(--bg);
  text-align: center;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  padding: 0.55rem 1rem;
}
.announcement strong { color: var(--gold); font-weight: 600; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 248, 243, 0.95);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.9rem 0;
}
/* Brand mark: serif wordmark + small subtitle */
.brand {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
}
.brand small {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.65rem;
  color: var(--muted);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-top: 2px;
}
.nav-links { display: flex; gap: 1.8rem; align-items: center; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  color: var(--ink); text-decoration: none;
  font-weight: 500; font-size: 0.95rem;
  position: relative; padding: 0.25rem 0;
}
.nav-links a:hover { color: var(--accent); }
.nav-links a::after {
  content: ''; position: absolute; left: 0; bottom: -2px; width: 0; height: 1.5px; background: var(--accent);
  transition: width 180ms ease;
}
.nav-links a:hover::after { width: 100%; }
.nav-cta {
  background: var(--ink); color: var(--bg) !important;
  padding: 0.55rem 1.25rem;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.01em;
  box-shadow: 0 2px 6px rgba(26,26,24,0.15);
  transition: background 200ms ease, box-shadow 200ms ease, transform 150ms ease;
}
.nav-cta:hover {
  background: var(--accent);
  text-decoration: none !important;
  box-shadow: 0 4px 14px rgba(166,117,58,0.3);
  transform: translateY(-1px);
}
.nav-cta::after { display: none !important; }
.menu-toggle { display: none; background: none; border: 0; font-size: 1.5rem; color: var(--ink); cursor: pointer; }

@media (max-width: 820px) {
  .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 0.5rem 1.5rem 1rem; }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; border-bottom: 1px solid var(--line); }
  .nav-links li:last-child { border-bottom: 0; }
  .nav-links a { display: block; padding: 0.85rem 0; }
  .menu-toggle { display: block; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  padding: 0.95rem 1.75rem;
  font-family: var(--font-sans); font-size: 0.95rem; font-weight: 600;
  letter-spacing: 0.01em;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer; text-decoration: none !important;
  white-space: nowrap;
  transition: transform 180ms ease, background 220ms ease, color 220ms ease,
              border-color 180ms ease, box-shadow 220ms ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); transition-duration: 60ms; }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Primary = ink (dark) — for secondary actions */
.btn-primary {
  background: var(--ink); color: var(--bg);
  box-shadow: 0 2px 6px rgba(26,26,24,0.18), inset 0 1px 0 rgba(255,255,255,0.06);
}
.btn-primary:hover {
  background: var(--accent-dark); color: var(--bg);
  box-shadow: 0 8px 22px rgba(26,26,24,0.22);
}

/* Buy button — the hero CTA. Warm walnut gradient, arrow that slides on hover. */
.btn-square {
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: #fff8ec;
  box-shadow: 0 3px 12px rgba(166,117,58,0.28), inset 0 1px 0 rgba(255,255,255,0.14);
  position: relative; overflow: hidden;
}
.btn-square::after {
  content: "→";
  font-size: 1.05em;
  display: inline-block;
  transition: transform 220ms ease;
  margin-left: 0.05rem;
}
.btn-square:hover {
  background: linear-gradient(180deg, #b48048 0%, #6e4720 100%);
  box-shadow: 0 10px 28px rgba(133,88,42,0.38), inset 0 1px 0 rgba(255,255,255,0.2);
  color: #fff8ec;
}
.btn-square:hover::after { transform: translateX(4px); }

/* Outline = bordered, for secondary or dismissive actions */
.btn-outline {
  background: transparent; color: var(--ink); border-color: var(--ink);
}
.btn-outline:hover {
  background: var(--ink); color: var(--bg);
  box-shadow: 0 6px 18px rgba(26,26,24,0.18);
}

.btn-lg { padding: 1.1rem 2.1rem; font-size: 1rem; }

/* In the dark callout band & sticky buy bar, invert hover for legibility */
.callout .btn-primary { background: var(--bg); color: var(--ink); }
.callout .btn-primary:hover { background: var(--accent); color: var(--bg); }
.sticky-buy .btn-square { padding: 0.7rem 1.25rem; font-size: 0.9rem; }
.sticky-buy .btn-square::after { content: "→"; }

/* ---------- Hero ---------- */
.hero {
  padding: clamp(3rem, 7vw, 6rem) 0 clamp(2.5rem, 5vw, 4rem);
  background:
    radial-gradient(1200px 400px at 80% 0%, rgba(201,169,110,0.18), transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%);
}01,169,110,0.18), transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%);
}
.hero-grid {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}
.hero h1 { margin-bottom: 1rem; }
.hero-lede { font-size: 1.15rem; color: var(--ink-soft); max-width: 52ch; margin-bottom: 1.5rem; }
.hero-ctas { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.hero-trust { display: flex; gap: 1.5rem; margin-top: 2rem; flex-wrap: wrap; color: var(--muted); font-size: 0.85rem; }
.hero-trust span { display: flex; align-items: center; gap: 0.4rem; }
.hero-trust span::before { content: "✓"; color: var(--accent); font-weight: 700; }
.hero-media {
  position: relative; aspect-ratio: 4/3; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow);
  background: var(--bg-alt);
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 780px) { .hero-grid { grid-template-columns: 1fr; } }

/* ---------- Value props ---------- */
.values {
  padding: 3rem 0; border-bottom: 1px solid var(--line);
}
.values-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
@media (max-width: 820px) { .values-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .values-grid { grid-template-columns: 1fr; } }
.value { text-align: center; padding: 0.5rem; }
.value-icon { font-size: 1.6rem; margin-bottom: 0.5rem; color: var(--accent); }
.value h3 { font-family: var(--font-sans); font-size: 1rem; font-weight: 600; margin-bottom: 0.25rem; color: var(--ink); }
.value p { font-size: 0.9rem; margin: 0; }

/* ---------- Section heading ---------- */
.section { padding: clamp(3rem, 6vw, 5rem) 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; margin-bottom: 2rem; gap: 1rem; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.section-head .eyebrow { display: block; color: var(--accent); text-transform: uppercase; letter-spacing: 0.18em; font-size: 0.75rem; font-weight: 600; font-family: var(--font-sans); margin-bottom: 0.5rem; }
.section-head a.link { font-size: 0.9rem; font-weight: 600; }

/* ---------- Product grid ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1rem, 2vw, 1.75rem);
}
@media (max-width: 1000px) { .product-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px) { .product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px) { .product-grid { grid-template-columns: 1fr; } }

.product-card {
  background: #fff; border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--line); transition: transform 180ms ease, box-shadow 180ms ease;
  display: flex; flex-direction: column;
}
.product-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.product-card a { color: inherit; text-decoration: none; display: block; }
.product-card a:hover { text-decoration: none; }
.product-image {
  aspect-ratio: 1 / 1; background: var(--bg-alt); overflow: hidden; position: relative;
}
.product-image img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 400ms ease;
}
.product-card:hover .product-image img { transform: scale(1.04); }
.product-badge {
  position: absolute; top: 0.75rem; left: 0.75rem;
  background: var(--ink); color: var(--bg); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.12em;
  padding: 0.2rem 0.55rem; border-radius: 2px; font-weight: 600;
}
.product-badge.sale { background: var(--danger); }
.product-body { padding: 1rem 1rem 1.25rem; display: flex; flex-direction: column; flex: 1; }
.product-cat { font-size: 0.72rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 0.25rem; }
.product-name { font-family: var(--font-serif); font-size: 1.1rem; font-weight: 500; margin: 0 0 0.5rem; color: var(--ink); }
.product-price { font-weight: 600; color: var(--ink); display: flex; gap: 0.5rem; align-items: baseline; margin-top: auto; }
.product-price .was { color: var(--muted); font-weight: 400; text-decoration: line-through; font-size: 0.9em; }
.product-price .sale-now { color: var(--danger); }

/* ---------- Collection / shop page ---------- */
.shop-intro { padding: 3.5rem 0 1rem; border-bottom: 1px solid var(--line); }
.shop-intro h1 { margin-bottom: 0.5rem; }
.shop-intro p { max-width: 58ch; color: var(--muted); }
.shop-filters {
  display: flex; gap: 0.5rem; flex-wrap: wrap; padding: 1.25rem 0 2rem;
}
.shop-filter {
  padding: 0.5rem 1rem; border: 1px solid var(--line); background: #fff; color: var(--ink-soft);
  border-radius: 999px; font-size: 0.85rem; cursor: pointer; font-family: inherit;
  transition: border-color 150ms ease, color 150ms ease, background 150ms ease;
}
.shop-filter:hover { border-color: var(--ink); color: var(--ink); }
.shop-filter.active { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* ---------- Product detail ---------- */
.breadcrumbs { padding: 1.25rem 0; font-size: 0.85rem; color: var(--muted); }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--ink); }
.breadcrumbs span + span::before { content: "/"; margin: 0 0.5rem; color: var(--line); }

.product-detail { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); padding-bottom: 3rem; }
@media (max-width: 880px) { .product-detail { grid-template-columns: 1fr; } }
.gallery { display: grid; gap: 0.75rem; }
.gallery-main {
  aspect-ratio: 4/3; background: var(--bg-alt); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm);
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.5rem; }
.gallery-thumbs button {
  aspect-ratio: 1/1; border: 2px solid transparent; border-radius: var(--radius); padding: 0; background: var(--bg-alt); cursor: pointer; overflow: hidden;
}
.gallery-thumbs button.active { border-color: var(--ink); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }

.pd-info h1 { margin-bottom: 0.75rem; }
.pd-price { font-size: 1.5rem; font-weight: 600; margin-bottom: 1rem; display: flex; gap: 0.75rem; align-items: baseline; }
.pd-price .was { color: var(--muted); font-weight: 400; text-decoration: line-through; font-size: 0.85em; }
.pd-price .sale-now { color: var(--danger); }
.pd-short { color: var(--ink-soft); font-size: 1.05rem; margin-bottom: 1.5rem; }
.pd-ctas { display: flex; gap: 0.75rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.pd-trust { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: 0.5rem; }
.pd-trust li { display: flex; gap: 0.6rem; color: var(--ink-soft); font-size: 0.95rem; }
.pd-trust li::before { content: "✓"; color: var(--accent); font-weight: 700; }

.pd-desc, .pd-specs { padding: 2rem 0; border-top: 1px solid var(--line); }
.pd-specs h2 { margin-bottom: 1rem; }
.specs-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
@media (max-width: 560px) { .specs-grid { grid-template-columns: 1fr; } }
.spec {
  background: #fff; border: 1px solid var(--line); padding: 0.85rem 1rem; border-radius: var(--radius);
}
.spec-label { font-size: 0.7rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 0.15rem; font-weight: 600; }
.spec-value { font-size: 0.95rem; color: var(--ink); }

/* ---------- About / content pages ---------- */
.page-intro { padding: 3.5rem 0 2rem; }
.page-intro h1 { margin-bottom: 0.75rem; }
.page-intro .lede { font-size: 1.2rem; color: var(--ink-soft); max-width: 60ch; }

.prose { max-width: 68ch; margin: 0 auto 3rem; }
.prose p { font-size: 1.05rem; color: var(--ink-soft); }
.prose h2 { margin-top: 2.5rem; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; padding-bottom: 3rem; }
@media (max-width: 760px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.75rem;
}
.contact-card h3 { margin-bottom: 0.75rem; }
.contact-row { display: flex; gap: 0.75rem; margin-bottom: 0.75rem; color: var(--ink-soft); }
.contact-row strong { min-width: 70px; color: var(--ink); }
.form { display: grid; gap: 1rem; }
.form label { font-size: 0.85rem; font-weight: 600; color: var(--ink); }
.form input, .form textarea {
  width: 100%; padding: 0.75rem 0.9rem; border: 1px solid var(--line); border-radius: var(--radius);
  font-family: inherit; font-size: 1rem; background: #fff; color: var(--ink);
}
.form input:focus, .form textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.form textarea { min-height: 140px; resize: vertical; }

/* ---------- Testimonials / trust ---------- */
.callout {
  background: var(--ink); color: var(--bg); padding: clamp(2.5rem, 5vw, 4rem) 0;
}
.callout h2 { color: var(--bg); max-width: 22ch; }
.callout p { color: rgba(251,248,243,0.75); max-width: 60ch; }
.callout .btn-outline { color: var(--bg); border-color: var(--bg); }
.callout .btn-outline:hover { background: var(--bg); color: var(--ink); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink); color: rgba(251,248,243,0.8);
  padding: 3rem 0 1.5rem; font-size: 0.92rem;
}
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1fr; gap: 2rem; margin-bottom: 2.5rem; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; margin-bottom: 1.5rem; } }
.footer-brand { color: var(--bg); font-family: var(--font-serif); font-size: 1.3rem; margin-bottom: 0.5rem; }
.footer-about { color: rgba(251,248,243,0.7); font-size: 0.9rem; max-width: 38ch; }
.footer h4 { font-family: var(--font-sans); color: var(--bg); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.15em; margin: 0 0 0.9rem; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: 0.45rem; }
.footer a { color: rgba(251,248,243,0.75); text-decoration: none; }
.footer a:hover { color: var(--gold); }
.footer-bottom { border-top: 1px solid rgba(251,248,243,0.12); padding-top: 1.25rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; color: rgba(251,248,243,0.55); font-size: 0.82rem; }
.footer-bottom a { color: rgba(251,248,243,0.55); }

/* ---------- Star ratings ---------- */
.rating { display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.85rem; color: var(--muted); }
.rating-stars { color: #e0a93b; letter-spacing: 1px; font-size: 0.95rem; line-height: 1; }
.rating-none { color: var(--muted); font-size: 0.8rem; font-style: italic; }
.product-card .rating { margin-top: 0.35rem; }
.pd-rating { margin-bottom: 0.75rem; font-size: 0.95rem; }
.pd-rating .rating-stars { font-size: 1.1rem; }
.pd-rating a { color: var(--muted); text-decoration: underline; }

/* ---------- Financing line ---------- */
.financing {
  font-size: 0.78rem; color: var(--ink-soft); margin-top: 0.25rem; font-weight: 500;
}
.financing strong { color: var(--ink); font-weight: 600; }
.pd-financing {
  font-size: 0.95rem; color: var(--ink-soft); margin-top: -0.5rem; margin-bottom: 1rem;
}
.pd-financing strong { color: var(--ink); }
.payment-logos {
  display: flex; gap: 0.45rem; align-items: center; margin-top: 0.85rem; flex-wrap: wrap;
}
.payment-logos::before {
  content: "Pay with";
  font-size: 0.7rem; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.14em; font-weight: 600;
  margin-right: 0.35rem;
}
.payment-logos .pay-pill {
  display: inline-flex; align-items: center; gap: 0.3rem;
  padding: 0.4rem 0.7rem; border-radius: 5px;
  font-size: 0.75rem; font-weight: 700;
  letter-spacing: -0.01em; line-height: 1;
  border: 1px solid transparent;
  transition: transform 150ms ease, box-shadow 150ms ease;
}
.payment-logos .pay-pill:hover { transform: translateY(-1px); box-shadow: 0 3px 8px rgba(0,0,0,0.08); }

/* Afterpay — mint */
.pay-pill.pay-afterpay {
  background: #b2fce4; color: #000;
  border-color: #8fd9c0;
}

/* Klarna — pink */
.pay-pill.pay-klarna {
  background: #ffa8cd; color: #17120f;
  border-color: #e991b5;
}

/* Cash App Pay — green with $ */
.pay-pill.pay-cashapp {
  background: #00d54b; color: #fff;
  border-color: #00b23f;
}
.pay-pill.pay-cashapp::before {
  content: "$"; font-weight: 900; font-size: 0.95em; margin-right: -0.1rem;
}

/* Card brand stripe: Visa navy + MC red + Amex blue */
.pay-pill.pay-cards {
  background: #fff; color: var(--ink); border-color: var(--line);
  padding: 0.4rem 0.7rem 0.4rem 0.55rem;
}
.pay-pill.pay-cards::before {
  content: ""; display: inline-block; width: 22px; height: 10px; border-radius: 2px;
  background:
    linear-gradient(90deg, #1a1f71 0 33%, #eb001b 33% 66%, #006fcf 66% 100%);
  margin-right: 0.4rem;
}

/* ---------- Guarantee strip ---------- */
.guarantee-strip {
  background: var(--bg-alt);
  padding: 1rem 1.25rem; border-radius: var(--radius-lg);
  display: flex; gap: 1rem; align-items: center;
  margin: 1.25rem 0;
  border: 1px solid var(--line);
}
.guarantee-icon { font-size: 1.8rem; line-height: 1; }
.guarantee-strip strong { display: block; color: var(--ink); font-size: 0.95rem; margin-bottom: 0.15rem; }
.guarantee-strip span { font-size: 0.82rem; color: var(--ink-soft); }

/* ---------- Will it fit? ---------- */
.fitblock {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 1.5rem; margin: 2rem 0;
}
.fitblock h3 { font-family: var(--font-sans); font-size: 1rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: var(--accent); margin-bottom: 1rem; }
.fitblock-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-bottom: 1rem; }
@media (max-width: 640px) { .fitblock-grid { grid-template-columns: 1fr 1fr; } }
.fitblock-stat {
  text-align: center; padding: 0.85rem;
  background: var(--bg-alt); border-radius: var(--radius);
}
.fitblock-stat-value { font-family: var(--font-serif); font-size: 1.35rem; color: var(--ink); font-weight: 500; }
.fitblock-stat-label { font-size: 0.72rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; margin-top: 0.15rem; }
.fitblock-note { font-size: 0.92rem; color: var(--ink-soft); margin: 0; }

/* ---------- Sticky buy bar ---------- */
.sticky-buy {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  background: rgba(26,26,24,0.97); color: var(--bg);
  padding: 0.75rem 1rem;
  display: flex; gap: 0.75rem; align-items: center; justify-content: space-between;
  transform: translateY(110%); transition: transform 220ms ease;
  backdrop-filter: blur(8px);
  border-top: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 -6px 20px rgba(0,0,0,0.15);
}
.sticky-buy.visible { transform: translateY(0); }
.sticky-buy-info { display: flex; align-items: center; gap: 0.75rem; min-width: 0; }
.sticky-buy-thumb { width: 48px; height: 48px; border-radius: 6px; overflow: hidden; flex-shrink: 0; }
.sticky-buy-thumb img { width: 100%; height: 100%; object-fit: cover; }
.sticky-buy-text { min-width: 0; }
.sticky-buy-name { font-weight: 600; font-size: 0.9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 180px; }
.sticky-buy-price { font-size: 0.82rem; color: rgba(251,248,243,0.75); }
.sticky-buy .btn { padding: 0.65rem 1.2rem; font-size: 0.9rem; flex-shrink: 0; }
@media (max-width: 480px) {
  .sticky-buy-name { max-width: 110px; }
  .sticky-buy .btn { padding: 0.6rem 1rem; font-size: 0.85rem; }
}

/* Add bottom padding to product detail so content isn't hidden behind sticky bar */
body.has-sticky-buy { padding-bottom: 72px; }

/* ---------- Floating chat / text-us button ---------- */
.chat-fab {
  position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 55;
  background: var(--ink); color: var(--bg);
  border-radius: 999px; padding: 0.85rem 1.2rem;
  display: flex; align-items: center; gap: 0.5rem;
  box-shadow: 0 6px 20px rgba(26,26,24,0.25);
  font-weight: 600; font-size: 0.9rem;
  text-decoration: none !important; border: 0;
  transition: transform 150ms ease, background 150ms ease;
}
.chat-fab:hover { transform: translateY(-2px); background: var(--accent); color: var(--bg); }
.chat-fab-icon { font-size: 1.1rem; }
body.has-sticky-buy .chat-fab { bottom: 5.25rem; }
@media (max-width: 480px) { .chat-fab span.lbl { display: none; } .chat-fab { padding: 0.85rem 0.95rem; } }

/* ---------- Email-capture popup ---------- */
.email-pop {
  position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 70;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(26,26,24,0.2);
  width: min(360px, calc(100vw - 2.5rem));
  padding: 1.5rem; display: none;
  animation: slideUp 280ms ease;
}
.email-pop.show { display: block; }
@keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.email-pop-close {
  position: absolute; top: 0.5rem; right: 0.65rem; background: none; border: 0; color: var(--muted);
  font-size: 1.2rem; cursor: pointer; padding: 0.25rem 0.5rem;
}
.email-pop h4 { font-family: var(--font-serif); font-size: 1.2rem; margin: 0 0 0.35rem; color: var(--ink); }
.email-pop p { font-size: 0.88rem; margin: 0 0 0.9rem; color: var(--ink-soft); }
.email-pop form { display: flex; gap: 0.5rem; }
.email-pop input {
  flex: 1; padding: 0.65rem 0.75rem; border: 1px solid var(--line); border-radius: var(--radius);
  font-family: inherit; font-size: 0.9rem;
}
.email-pop button {
  background: var(--ink); color: var(--bg); border: 0; padding: 0.65rem 1rem; border-radius: var(--radius);
  font-weight: 600; cursor: pointer; font-size: 0.9rem;
}
.email-pop .fine { font-size: 0.7rem; color: var(--muted); margin-top: 0.5rem; margin-bottom: 0; }
.email-pop-cta { display: block; text-align: center; width: 100%; padding: 0.75rem 1rem; font-size: 0.95rem; text-decoration: none; }
.email-pop-cta:hover { text-decoration: none; }

/* ---------- Countdown ---------- */
.countdown {
  background: #fff5f0; border: 1px solid #f3d5c6; border-radius: var(--radius);
  padding: 0.6rem 0.9rem; margin-bottom: 1rem;
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-size: 0.85rem; color: #8a3a1a;
}
.countdown strong { font-weight: 700; color: #b23b1a; letter-spacing: 0.02em; }

/* ---------- Low-stock badge ---------- */
.stock-warn { display: inline-block; background: #fff5f0; color: #b23b1a; border: 1px solid #f3d5c6; padding: 0.3rem 0.7rem; border-radius: 999px; font-size: 0.78rem; font-weight: 600; margin-bottom: 0.75rem; }

/* ---------- Secure checkout microcopy ---------- */
.secure-note {
  display: flex; align-items: center; gap: 0.45rem;
  font-size: 0.78rem; color: var(--muted); margin-top: 0.6rem;
}
.secure-note::before { content: "🔒"; font-size: 0.95rem; }

/* ---------- Shop by Room tiles ---------- */
.rooms-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem;
  margin-bottom: 3rem;
}
@media (max-width: 900px) { .rooms-grid { grid-template-columns: repeat(2, 1fr); } }
.room-tile {
  position: relative; aspect-ratio: 4/5; overflow: hidden; border-radius: var(--radius-lg);
  background: var(--bg-alt); color: var(--bg); text-decoration: none !important;
  display: flex; align-items: end;
  transition: transform 180ms ease;
}
.room-tile:hover { transform: translateY(-3px); color: var(--bg); }
.room-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 400ms ease; }
.room-tile:hover img { transform: scale(1.06); }
.room-tile::after {
  content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(26,26,24,0) 40%, rgba(26,26,24,0.8) 100%);
}
.room-tile-label {
  position: relative; z-index: 1; padding: 1.25rem; color: #fff;
  font-family: var(--font-serif); font-size: 1.35rem; font-weight: 500; line-height: 1.1;
}
.room-tile-label small { display: block; font-family: var(--font-sans); font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; color: rgba(255,255,255,0.8); margin-bottom: 0.35rem; }

/* ---------- Customer photos (UGC) strip ---------- */
.ugc-strip { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0.5rem; margin: 2rem 0; }
@media (max-width: 900px) { .ugc-strip { grid-template-columns: repeat(3, 1fr); } }
.ugc-tile { aspect-ratio: 1/1; overflow: hidden; border-radius: var(--radius); background: var(--bg-alt); }
.ugc-tile img { width: 100%; height: 100%; object-fit: cover; }
.ugc-tile.placeholder { display: flex; align-items: center; justify-content: center; font-size: 0.75rem; color: var(--muted); text-align: center; padding: 0.5rem; }

/* ---------- Trust counter ---------- */
.trust-counter {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(26,26,24,0.04); border: 1px solid var(--line);
  padding: 0.5rem 0.85rem; border-radius: 999px;
  font-size: 0.85rem; color: var(--ink-soft); margin-top: 1.25rem;
}
.trust-counter strong { color: var(--ink); font-weight: 700; }

/* ---------- FAQ / details / legal pages ---------- */
.faq { max-width: 780px; margin: 0 auto; }
.faq details {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  margin-bottom: 0.75rem; padding: 0; overflow: hidden;
}
.faq details[open] { box-shadow: var(--shadow-sm); }
.faq summary {
  cursor: pointer; list-style: none; padding: 1.1rem 1.25rem;
  font-weight: 600; color: var(--ink); font-size: 1.02rem;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 1.4rem; font-weight: 400; transition: transform 200ms ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--accent); }
.faq .faq-answer { padding: 0 1.25rem 1.1rem; color: var(--ink-soft); font-size: 0.95rem; line-height: 1.65; }
.faq .faq-answer p { margin: 0 0 0.75rem; }
.faq .faq-answer p:last-child { margin-bottom: 0; }

.faq-group-title { font-family: var(--font-serif); font-size: 1.4rem; margin: 2.5rem 0 1rem; color: var(--ink); }
.faq-group-title:first-child { margin-top: 0; }

/* Financing tier cards */
.tier-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 2rem 0; }
@media (max-width: 820px) { .tier-grid { grid-template-columns: 1fr; } }
.tier {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.5rem;
}
.tier-label { font-size: 0.75rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.12em; font-weight: 600; }
.tier-price { font-family: var(--font-serif); font-size: 1.8rem; color: var(--ink); margin: 0.4rem 0; font-weight: 500; }
.tier-sub { font-size: 0.95rem; color: var(--ink-soft); }
.tier-monthly { font-weight: 700; color: var(--accent); }

/* Wholesale inquiry form */
.form-large .form { max-width: 640px; }
.form select {
  width: 100%; padding: 0.75rem 0.9rem; border: 1px solid var(--line); border-radius: var(--radius);
  font-family: inherit; font-size: 1rem; background: #fff; color: var(--ink);
}

/* Two-column info band */
.info-band {
  display: grid; grid-template-columns: 1fr 1fr; gap: 2rem;
  background: var(--bg-alt); border-radius: var(--radius-lg); padding: 2rem;
  margin: 2rem 0;
}
@media (max-width: 720px) { .info-band { grid-template-columns: 1fr; } }
.info-band h3 { margin-bottom: 0.4rem; }

/* Simple policy list */
.policy-toc {
  background: var(--bg-alt); border-radius: var(--radius); padding: 1.25rem 1.5rem;
  margin: 0 auto 2rem; max-width: 780px;
}
.policy-toc strong { display: block; margin-bottom: 0.5rem; font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.policy-toc ol { margin: 0; padding-left: 1.25rem; }
.policy-toc li { padding: 0.15rem 0; }
.policy-toc a { color: var(--ink-soft); }

.legal-notice {
  background: #fff8ec; border: 1px solid #f0e0bc; border-radius: var(--radius);
  padding: 1rem 1.25rem; margin: 0 auto 2rem; max-width: 780px;
  font-size: 0.9rem; color: #6b5e2c;
}

/* Track order page */
.track-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 2rem 0; }
@media (max-width: 720px) { .track-steps { grid-template-columns: 1fr; } }
.track-step {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.25rem; position: relative;
}
.track-step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 999px;
  background: var(--ink); color: var(--bg); font-weight: 700; font-size: 0.85rem; margin-bottom: 0.6rem;
}
.track-step h3 { font-family: var(--font-sans); font-size: 1rem; margin-bottom: 0.3rem; }
.track-step p { font-size: 0.9rem; margin: 0; color: var(--ink-soft); }

/* ---------- Variant selectors ---------- */
.variants { margin: 1.25rem 0 1.5rem; display: grid; gap: 1rem; }
.variant-group .variant-label {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); font-weight: 600;
  margin-bottom: 0.55rem;
}
.variant-group .variant-label strong { color: var(--ink); font-weight: 700; text-transform: none; letter-spacing: 0; font-size: 0.95rem; }
.variant-options { display: flex; flex-wrap: wrap; gap: 0.5rem; }

/* Swatch (color) */
.variant-swatch {
  width: 42px; height: 42px; border-radius: 50%; cursor: pointer;
  border: 2px solid var(--line); background: #fff; padding: 0; position: relative;
  transition: transform 120ms ease, border-color 120ms ease, box-shadow 120ms ease;
}
.variant-swatch::after {
  content: ""; position: absolute; inset: 3px; border-radius: 50%;
  background: var(--swatch-color, #ddd);
}
.variant-swatch:hover { transform: translateY(-1px); }
.variant-swatch.selected {
  border-color: var(--ink); box-shadow: 0 0 0 2px var(--bg), 0 0 0 3px var(--ink);
}
.variant-swatch[data-label]::before {
  content: attr(data-label);
  position: absolute; bottom: -1.6rem; left: 50%; transform: translateX(-50%);
  font-size: 0.7rem; color: var(--muted); text-transform: none; letter-spacing: 0;
  white-space: nowrap; opacity: 0; transition: opacity 120ms ease;
  pointer-events: none;
}
.variant-swatch:hover[data-label]::before, .variant-swatch.selected[data-label]::before { opacity: 1; }
.variant-options.has-swatch { padding-bottom: 1.2rem; }

/* Pill (size, seats, etc) */
.variant-pill {
  padding: 0.55rem 0.95rem; border: 1.5px solid var(--line); background: #fff;
  color: var(--ink-soft); border-radius: 999px; font-size: 0.88rem; font-weight: 500;
  cursor: pointer; font-family: inherit;
  transition: border-color 120ms ease, color 120ms ease, background 120ms ease;
}
.variant-pill:hover { border-color: var(--ink); color: var(--ink); }
.variant-pill.selected { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.variant-pill.unavailable { opacity: 0.4; cursor: not-allowed; text-decoration: line-through; }

.variant-unavailable-msg {
  display: none; background: #fff5f0; border: 1px solid #f3d5c6; color: #8a3a1a;
  padding: 0.6rem 0.9rem; border-radius: var(--radius); margin-bottom: 1rem; font-size: 0.88rem;
}
.variant-unavailable-msg.show { display: block; }

/* ---------- Mobile layout polish ---------- */
@media (max-width: 600px) {
  body { font-size: 15.5px; }
  h1 { font-size: clamp(1.85rem, 7vw, 2.4rem); line-height: 1.1; }
  h2 { font-size: clamp(1.35rem, 5.5vw, 1.85rem); }
  .container { padding-left: 1rem; padding-right: 1rem; }
  .announcement { font-size: 0.78rem; padding: 0.5rem 0.75rem; line-height: 1.3; }
  .hero { padding: 2rem 0 1.5rem; }
  .hero-lede { font-size: 1rem; }
  .hero-ctas { gap: 0.5rem; }
  .hero-ctas .btn { flex: 1 1 auto; padding: 0.85rem 1rem; font-size: 0.92rem; }
  .hero-trust { gap: 0.65rem 0.9rem; font-size: 0.78rem; }
  .trust-counter { font-size: 0.78rem; padding: 0.4rem 0.7rem; margin-top: 1rem; }
  .section { padding: 2rem 0; }
  .section-head { margin-bottom: 1.25rem; gap: 0.5rem; }
  .section-head h2 { font-size: 1.45rem; }
  .product-card { border-radius: 8px; }
  .product-name { font-size: 0.95rem; }
  .product-body { padding: 0.75rem 0.75rem 1rem; }
  .product-price { font-size: 0.95rem; }
  .financing { font-size: 0.72rem; }
  .rating { font-size: 0.78rem; }
  .nav { padding: 0.7rem 0; }
  .brand { font-size: 1.2rem; }
  .brand small { font-size: 0.55rem; letter-spacing: 0.18em; }
  .nav-cta { padding: 0.5rem 0.9rem; font-size: 0.82rem; }

  /* Product detail tightening */
  .pd-info h1 { font-size: 1.6rem; }
  .pd-price { font-size: 1.25rem; }
  .pd-short { font-size: 0.95rem; }
  .pd-ctas { gap: 0.5rem; flex-wrap: wrap; }
  .pd-ctas .btn { flex: 1 1 100%; }
  .gallery-thumbs { grid-template-columns: repeat(4, 1fr); gap: 0.4rem; }
  .specs-grid, .fitblock-grid { grid-template-columns: 1fr 1fr; gap: 0.5rem; }
  .pd-specs h2 { font-size: 1.2rem; }
  .guarantee-strip { padding: 0.85rem 1rem; gap: 0.75rem; }
  .guarantee-strip strong { font-size: 0.88rem; }
  .guarantee-strip span { font-size: 0.78rem; }

  /* Variant selector */
  .variant-swatch { width: 36px; height: 36px; }
  .variant-pill { padding: 0.5rem 0.8rem; font-size: 0.82rem; }

  /* Payment pills */
  .payment-logos { gap: 0.35rem; margin-top: 0.65rem; }
  .payment-logos::before { font-size: 0.65rem; margin-right: 0.25rem; }
  .payment-logos .pay-pill { font-size: 0.7rem; padding: 0.3rem 0.55rem; }

  /* Email popup — smaller, less intrusive */
  .email-pop { width: calc(100vw - 1.5rem); right: 0.75rem; bottom: 0.75rem; padding: 1rem 1.1rem; }
  .email-pop h4 { font-size: 1.05rem; }
  .email-pop p { font-size: 0.82rem; }
  .email-pop form { flex-direction: column; gap: 0.4rem; }
  .email-pop input, .email-pop button { width: 100%; }

  /* Floating chat button — icon only on phones */
  .chat-fab { padding: 0.75rem 0.85rem; right: 0.85rem; bottom: 0.85rem; }
  body.has-sticky-buy .chat-fab { bottom: 4.75rem; }

  /* Sticky buy bar — tighter */
  .sticky-buy { padding: 0.6rem 0.75rem; }
  .sticky-buy-thumb { width: 40px; height: 40px; }
  .sticky-buy-name { font-size: 0.82rem; max-width: 100px; }
  .sticky-buy-price { font-size: 0.75rem; }

  /* Footer tighter on mobile */
  .footer-grid { gap: 1.25rem; }
  .site-footer { padding: 2rem 0 1rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 0.5rem; font-size: 0.75rem; }

  /* Room tiles in pairs */
  .rooms-grid { gap: 0.75rem; }
  .room-tile-label { font-size: 1.1rem; padding: 1rem; }

  /* Shop filters scroll horizontally instead of wrapping */
  .shop-filters { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 1rem; -webkit-overflow-scrolling: touch; }
  .shop-filter { flex-shrink: 0; }

  /* Email/contact cards stack with less padding */
  .contact-card { padding: 1.25rem; }

  /* Page intro */
  .page-intro { padding: 2rem 0 1rem; }
  .page-intro .lede { font-size: 1rem; }
}

/* Phone-only — smaller payment pills row */
@media (max-width: 380px) {
  .payment-logos .pay-pill { font-size: 0.65rem; padding: 0.28rem 0.5rem; }
  .pay-pill.pay-cards::before { width: 18px; margin-right: 0.3rem; }
  .hero-trust { font-size: 0.75rem; gap: 0.5rem 0.75rem; }
  .brand { font-size: 1.1rem; }
  .brand small { display: none; }
  .nav-cta { font-size: 0.75rem; padding: 0.45rem 0.7rem; }
}

/* Extra mobile safety — prevents horizontal overflow & tightens any stragglers */
@media (max-width: 640px) {
  .container { padding-left: 1rem !important; padding-right: 1rem !important; }
  .section { padding: 2rem 0; }
  .footer-about { max-width: 100%; }
  .footer-col, .footer-grid > div { min-width: 0; }
  .footer-grid h4 { margin-top: 0.25rem; }
  .footer-links { padding-left: 0; }
  .hero-ctas { flex-wrap: wrap; }
  .pd-grid { grid-template-columns: 1fr !important; }
  .contact-grid { grid-template-columns: 1fr !important; }
  .tier-grid, .track-steps, .fitblock-grid { grid-template-columns: 1fr !important; }
  .specs-grid { grid-template-columns: 1fr 1fr; }
  .form input, .form textarea, .form select, .form button { width: 100%; }
  table { display: block; overflow-x: auto; }
  .email-pop { left: 0.75rem; right: 0.75rem; width: auto; max-width: 100%; }
  .email-pop .btn { width: 100%; }
  /* Safety: shrink any very long words/URLs in copy to prevent overflow */
  p, li, td, th { overflow-wrap: anywhere; }
  /* Sticky bar & chat FAB: don't let them cover tap targets */
  body.has-sticky-buy .chat-fab { bottom: 5rem; }
}

/* ---------- Utility ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.text-center { text-align: center; }
.mt-0 { margin-top: 0 !important; } .mb-0 { margin-bottom: 0 !important; }
