/* Vesaro Home - maroon, gold and white. Edit the colours in :root below. */
:root {
  --maroon: #641927;
  --maroon-dark: #4a121d;
  --gold: #b99363;
  --gold-soft: #e9dcc6;
  --ink: #1a1a1a;
  --muted: #58514a;
  --cream: #f8f3ea;
  --footer: #f4ebdc;
  --line: #e6d9c4;
  --white: #ffffff;
  --wa: #25d366;
  --radius: 8px;
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --body: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--body); font-size: 1.0625rem; line-height: 1.65; color: var(--ink); background: var(--white); overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: var(--maroon); }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.2; margin: 0 0 .5em; color: var(--ink); letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.2vw, 3rem); }
h2 { font-size: clamp(1.65rem, 3vw, 2.3rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
.container { width: min(1200px, 100% - 40px); margin-inline: auto; }
.ic { flex: none; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--maroon); color: #fff; padding: 10px 16px; z-index: 100; border-radius: 4px; }
.skip:focus { left: 8px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 24px; font: 700 1rem/1.2 var(--body); text-decoration: none; border-radius: var(--radius); border: 2px solid var(--maroon); cursor: pointer; transition: background .15s, color .15s, border-color .15s; text-align: center; }
.btn-primary { background: var(--maroon); color: #fff; }
.btn-primary:hover { background: var(--maroon-dark); border-color: var(--maroon-dark); }
.btn-ghost { background: transparent; color: var(--maroon); }
.btn-ghost:hover { background: var(--maroon); color: #fff; }
.btn-gold { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.btn-gold:hover { background: #cba974; border-color: #cba974; }
.btn-light { background: transparent; color: #fff; border-color: #fff; }
.btn-light:hover { background: #fff; color: var(--maroon); }
.btn-block { width: 100%; }
.btn-lg { min-height: 54px; padding: 14px 28px; font-size: 1.0625rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- top bar and header ---------- */
.topbar { background: var(--maroon); color: #f3e8d4; font-size: .9375rem; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 40px; }
.tb-right { display: flex; gap: 24px; }
.topbar a { color: #f3e8d4; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.topbar a:hover { color: #fff; text-decoration: underline; }
.site-header { background: var(--white); border-bottom: 2px solid var(--gold); position: sticky; top: 0; z-index: 50; }
.hdr { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 80px; }
.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.logo img { height: 56px; width: auto; }
.site-footer .logo img { height: 60px; }
.logo-mark { width: 46px; height: 46px; border-radius: 8px; background: var(--maroon); color: var(--gold); display: grid; place-items: center; font: 600 1.7rem/1 var(--display); }
.logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.logo-text strong { font: 600 1.4rem/1.1 var(--display); color: var(--maroon); }
.logo-text small { font-size: .875rem; color: var(--muted); }
.nav { display: flex; align-items: center; gap: 28px; margin-left: auto; }
.nav > ul { display: flex; align-items: stretch; gap: 8px; }
.nav > ul > li { display: flex; align-items: center; min-height: 80px; position: static; }
.nav > ul > li > a { display: flex; align-items: center; min-height: 80px; padding: 0 14px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 1.0625rem; border-bottom: 3px solid transparent; margin-bottom: -2px; }
.nav > ul > li > a:hover, .nav a[aria-current="page"] { color: var(--maroon); border-bottom-color: var(--maroon); }
.sub-toggle { display: none; }
.nav-toggle { display: none; background: none; border: 2px solid var(--maroon); color: var(--maroon); border-radius: var(--radius); width: 48px; height: 48px; align-items: center; justify-content: center; cursor: pointer; }

/* mega menu (desktop) */
.mega { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--white); border-top: 1px solid var(--line); border-bottom: 3px solid var(--gold); box-shadow: 0 18px 30px rgba(60, 20, 30, .12); padding: 30px 0 22px; z-index: 60; }
.has-mega:hover .mega, .has-mega:focus-within .mega, .has-mega.open .mega { display: block; }
.mega-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px 32px; }
.mega-head { display: flex; align-items: center; gap: 10px; font: 600 1.1875rem/1.25 var(--display); color: var(--maroon); text-decoration: none; padding-bottom: 8px; margin-bottom: 8px; border-bottom: 1px solid var(--gold); }
.mega-head:hover { text-decoration: underline; }
.mega-col li a { display: block; padding: 5px 0; color: var(--ink); text-decoration: none; font-size: 1rem; }
.mega-col li a:hover { color: var(--maroon); text-decoration: underline; }
.mega-foot { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); text-align: right; }
.mega-all { font-weight: 700; color: var(--maroon); }

/* ---------- hero slider ---------- */
.hero { position: relative; background: var(--cream); }
.slides { display: grid; }
.slide { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity .6s ease, visibility .6s; position: relative; }
.slide.active { opacity: 1; visibility: visible; }
.slide > img { width: 100%; height: auto; aspect-ratio: 16 / 9; max-height: 640px; object-fit: cover; }
.slide-caption { position: absolute; inset: 0; display: flex; align-items: center; pointer-events: none; }
.caption-card { pointer-events: auto; margin-left: max(20px, calc((100vw - 1200px) / 2)); width: min(460px, 44%); background: rgba(255, 255, 255, .94); border-left: 5px solid var(--gold); padding: 28px 30px; border-radius: 4px; box-shadow: 0 10px 30px rgba(60, 20, 30, .18); }
.caption-card h1, .caption-card .h1-like { font-family: var(--display); font-weight: 600; font-size: clamp(1.7rem, 2.8vw, 2.4rem); line-height: 1.15; margin: 0 0 .5em; color: var(--maroon); display: block; }
.caption-card p { font-size: 1.125rem; margin-bottom: 1.2em; color: var(--ink); }
.hero-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--gold); background: rgba(255, 255, 255, .92); color: var(--maroon); display: grid; place-items: center; cursor: pointer; z-index: 5; }
.hero-arrow:hover { background: var(--maroon); color: #fff; }
.hero-arrow.prev { left: 14px; }
.hero-arrow.next { right: 14px; }
.hero-dots { position: absolute; left: 0; right: 0; bottom: 14px; display: flex; justify-content: center; gap: 4px; z-index: 5; }
.hero-dots button { width: 36px; height: 36px; background: none; border: 0; cursor: pointer; position: relative; }
.hero-dots button::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 14px; transform: translate(-50%, -50%); border-radius: 50%; background: #fff; border: 2px solid var(--maroon); }
.hero-dots button[aria-selected="true"]::after { background: var(--maroon); }

/* ---------- sections ---------- */
.section { padding: 76px 0; }
.section.alt { background: var(--cream); }
.section-head { max-width: 680px; margin-bottom: 36px; }
.section-head p { font-size: 1.1875rem; color: var(--muted); margin: 0; }
.section-head.center { margin-inline: auto; text-align: center; }
.more-link { margin-top: 28px; text-align: center; }

.trust { background: var(--white); border-bottom: 1px solid var(--line); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.trust-item { display: flex; align-items: center; gap: 14px; padding: 22px 20px; border-right: 1px solid var(--line); }
.trust-item:last-child { border-right: 0; }
.trust-item .ic { color: var(--maroon); }
.trust-item strong { display: block; font-size: 1.0625rem; line-height: 1.3; }
.trust-item span { font-size: .9375rem; color: var(--muted); }

.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.cat-tile { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 26px 24px; background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--gold); border-radius: var(--radius); text-decoration: none; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.cat-tile:hover { border-color: var(--maroon); border-top-color: var(--maroon); box-shadow: 0 8px 22px rgba(60, 20, 30, .1); }
.cat-icon { width: 56px; height: 56px; border-radius: 50%; background: var(--cream); color: var(--maroon); display: grid; place-items: center; margin-bottom: 8px; }
.cat-name { font: 600 1.25rem/1.25 var(--display); color: var(--maroon); }
.cat-blurb { font-size: 1rem; color: var(--muted); }

.brand-groups { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.brand-group { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.brand-group h3 { font-size: 1.1875rem; color: var(--maroon); padding-bottom: 12px; margin-bottom: 18px; border-bottom: 1px solid var(--gold); }
.brand-names { display: flex; flex-wrap: wrap; gap: 12px; }
.brand-names li { font: 600 1.25rem/1 var(--display); padding: 14px 20px; background: var(--cream); border-radius: 6px; }

.pgrid, #best-grid, #product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 22px; }
.pcard { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.pcard-media { display: block; text-decoration: none; }
.thumb { position: relative; aspect-ratio: 4 / 3; background: linear-gradient(135deg, var(--cream), var(--gold-soft)); overflow: hidden; }
.thumb .ph { position: absolute; inset: 0; display: grid; place-items: center; color: var(--maroon); opacity: .75; }
.thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pcard-body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.pcard-body .btn { margin-top: auto; }
.pcard-cat { font-size: .9375rem; color: var(--muted); margin: 0; }
.pcard-cat a { color: var(--muted); }
.pcard h3 { margin: 0 0 4px; font-size: 1.1875rem; }
.pcard h3 a { color: var(--ink); text-decoration: none; }
.pcard h3 a:hover { color: var(--maroon); text-decoration: underline; }
.pcard-sizes { font-size: 1rem; color: var(--muted); margin: 0 0 14px; }

.supply-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.supply-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; display: flex; flex-direction: column; gap: 8px; }
.supply-card .ic { color: var(--maroon); }
.supply-card h3 { margin: 6px 0 0; color: var(--maroon); }
.supply-card p { color: var(--muted); margin: 0 0 8px; flex: 1; }
.supply-card a.link { font-weight: 700; }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.gallery figure { margin: 0; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; }
.step { padding: 26px 24px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.step::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--maroon); color: #fff; font: 600 1.2rem/1 var(--display); margin-bottom: 14px; }
.step h3 { margin-bottom: 6px; }
.step p { color: var(--muted); margin: 0; }

.cta-band { background: var(--maroon); color: #fff; padding: 64px 0; }
.cta-band h2 { color: #fff; }
.cta-band p { font-size: 1.1875rem; color: #f0e4d0; max-width: 620px; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }

/* ---------- inner pages ---------- */
.page-head { background: var(--cream); padding: 44px 0 36px; border-bottom: 1px solid var(--line); }
.page-head h1 { margin-bottom: .25em; }
.page-head p { font-size: 1.1875rem; color: var(--muted); margin: 0; max-width: 640px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: .9375rem; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--muted); }

.filters { padding: 26px 0 8px; }
.search-row { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; margin-bottom: 18px; }
.search-row input { flex: 1 1 280px; min-height: 52px; padding: 12px 16px; font: inherit; border: 2px solid var(--line); border-radius: var(--radius); background: #fff; }
.search-row input:focus { border-color: var(--maroon); outline: none; }
.pills { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.pill { min-height: 44px; padding: 8px 18px; font: 600 1rem/1.2 var(--body); background: #fff; color: var(--ink); border: 2px solid var(--line); border-radius: 999px; cursor: pointer; }
.pill:hover { border-color: var(--maroon); }
.pill.active { background: var(--maroon); border-color: var(--maroon); color: #fff; }
#sub-pills .pill { font-weight: 500; min-height: 40px; border-color: var(--gold); }
#sub-pills .pill.active { background: var(--gold); border-color: var(--gold); color: var(--ink); font-weight: 700; }
.result-count { color: var(--muted); margin: 6px 0 20px; }
.empty { grid-column: 1 / -1; text-align: center; padding: 56px 20px; background: var(--cream); border-radius: var(--radius); }
.empty .btn-row { justify-content: center; }

.detail { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 44px; align-items: start; }
.detail-media .thumb { border-radius: var(--radius); border: 1px solid var(--line); aspect-ratio: 1 / 1; }
.detail-info h1 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); }
.lead { font-size: 1.1875rem; color: var(--muted); }
.opt h2 { font: 700 1.0625rem/1.3 var(--body); margin-bottom: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.chip { min-height: 46px; padding: 8px 18px; font: 600 1rem/1.2 var(--body); background: #fff; border: 2px solid var(--line); border-radius: var(--radius); cursor: pointer; }
.chip:hover { border-color: var(--maroon); }
.chip.active { border-color: var(--maroon); background: var(--maroon); color: #fff; }
.note { background: var(--cream); padding: 14px 16px; border-left: 4px solid var(--gold); border-radius: 4px; }
.facts { margin-top: 26px; display: grid; gap: 8px; color: var(--muted); }
.facts li { padding-left: 22px; position: relative; }
.facts li::before { content: ""; position: absolute; left: 0; top: .7em; width: 10px; height: 10px; border-radius: 50%; background: var(--gold); }
.related { margin-top: 64px; }

.form-wrap { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.form { background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--gold); border-radius: var(--radius); padding: 30px; }
.fgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 700; font-size: 1rem; }
.field input, .field select, .field textarea { font: inherit; min-height: 52px; padding: 12px 14px; border: 2px solid var(--line); border-radius: var(--radius); background: #fff; color: var(--ink); width: 100%; }
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--maroon); outline: none; }
.field input:user-invalid, .field select:user-invalid { border-color: #b3261e; }
.form .btn-row { margin-top: 24px; }
.form-status { margin: 16px 0 0; font-weight: 600; color: var(--maroon); min-height: 1.5em; }
.aside-card { background: var(--cream); border-radius: var(--radius); padding: 28px; }
.aside-card h2 { font-size: 1.4rem; }
.aside-card ul { display: grid; gap: 14px; margin-top: 16px; }
.aside-card li { display: flex; gap: 12px; align-items: flex-start; }
.aside-card .ic { color: var(--maroon); margin-top: 3px; }

.prose { max-width: 760px; }
.prose h2 { margin-top: 1.6em; }
.about-cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 24px; }
.info-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.info-card h3 { color: var(--maroon); display: flex; gap: 10px; align-items: center; }
.info-card p { margin: 0; color: var(--muted); }

.contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.contact-card { display: flex; gap: 16px; padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.contact-card .ic { color: var(--maroon); margin-top: 4px; }
.contact-card h3 { margin-bottom: 4px; }
.contact-card p { margin: 0; color: var(--muted); }
.faq { max-width: 820px; margin-top: 10px; }
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 1.125rem; padding: 16px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; color: var(--maroon); line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { color: var(--muted); padding-bottom: 14px; margin: 0; }

/* ---------- footer (light) ---------- */
.site-footer { background: var(--footer); border-top: 4px solid var(--gold); margin-top: 0; color: var(--ink); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.5fr; gap: 36px; padding: 56px 0 36px; }
.site-footer h2 { font: 700 1.125rem/1.3 var(--body); color: var(--maroon); margin-bottom: 14px; letter-spacing: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: var(--ink); text-decoration: none; }
.site-footer a:hover { color: var(--maroon); text-decoration: underline; }
.foot-about { margin-top: 16px; color: var(--muted); max-width: 320px; }
.foot-contact li { display: flex; gap: 10px; align-items: flex-start; }
.foot-contact .ic { color: var(--maroon); margin-top: 3px; }
.foot-bottom { border-top: 1px solid var(--line); padding: 18px 0 26px; color: var(--muted); font-size: .9375rem; }
.foot-bottom p { margin: 0; }

/* ---------- floating buttons ---------- */
.floaters { position: fixed; right: 16px; bottom: 16px; z-index: 70; display: flex; flex-direction: column; gap: 12px; align-items: flex-end; }
.floaters a { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; color: #fff; box-shadow: 0 6px 18px rgba(0, 0, 0, .25); }
.float-wa { background: var(--wa); }
.float-call { background: var(--maroon); display: none !important; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .cat-grid, .supply-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-item:nth-child(2) { border-right: 0; }
  .trust-item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .mega-grid { grid-template-columns: repeat(3, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 960px) {
  .topbar .tb-right { display: none; }
  .topbar a { white-space: nowrap; }
  .topbar .container { justify-content: center; }
  .hdr { min-height: 72px; }
  .nav-toggle { display: inline-flex; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 3px solid var(--gold); box-shadow: 0 18px 30px rgba(60, 20, 30, .15); flex-direction: column; align-items: stretch; gap: 0; padding: 8px 20px 24px; max-height: calc(100vh - 112px); overflow-y: auto; }
  body.menu-open .nav { display: flex; }
  .nav > ul { flex-direction: column; gap: 0; }
  .nav > ul > li { flex-wrap: wrap; min-height: 0; border-bottom: 1px solid var(--line); }
  .nav > ul > li > a { min-height: 56px; padding: 0 4px; flex: 1; border-bottom: 0; margin: 0; font-size: 1.125rem; }
  .sub-toggle { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; background: none; border: 0; color: var(--maroon); cursor: pointer; }
  .sub-toggle[aria-expanded="true"] .ic { transform: rotate(180deg); }
  .has-mega:hover .mega, .has-mega:focus-within .mega { display: none; }
  .has-mega.open .mega { display: block; }
  .mega { position: static; flex-basis: 100%; box-shadow: none; border: 0; padding: 0 0 12px; }
  .mega .container { width: 100%; }
  .mega-grid { grid-template-columns: 1fr; gap: 6px; }
  .mega-head { font-size: 1.0625rem; margin-top: 12px; }
  .mega-col li a { padding: 9px 0 9px 32px; }
  .mega-foot { text-align: left; margin-top: 8px; }
  .nav-cta { margin-top: 18px; }
  .slide > img { aspect-ratio: 16 / 10; }
  .slide-caption { position: static; display: block; }
  .caption-card { margin: 0; width: 100%; border-left: 0; border-top: 4px solid var(--gold); border-radius: 0; box-shadow: none; padding: 24px 20px 64px; background: var(--cream); }
  .hero-arrow { top: 28vw; }
  .hero-dots { bottom: 10px; }
  .section { padding: 56px 0; }
  .brand-groups, .about-cols, .contact-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .detail, .form-wrap { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 640px) {
  body { font-size: 1.0625rem; }
  .container { width: min(1200px, 100% - 32px); }
  .cat-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .cat-tile { padding: 18px 14px; }
  .cat-name { font-size: 1.0625rem; }
  .cat-blurb { font-size: .9375rem; }
  .supply-grid, .trust-grid, .foot-grid, .fgrid { grid-template-columns: 1fr; }
  .trust-item, .trust-item:nth-child(2) { border-right: 0; border-bottom: 1px solid var(--line); }
  .pgrid, #best-grid, #product-grid { grid-template-columns: 1fr; }
  .form { padding: 22px 18px; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
  .logo-text small { display: none; }
  .logo img { height: 44px; }
  .site-footer .logo img { height: 52px; }
  .floaters a { width: 52px; height: 52px; }
  .floaters { right: 12px; bottom: 12px; gap: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .slide, .btn, .cat-tile { transition: none; }
}


/* ---------- category picture tiles ---------- */
.cat-tile { padding: 0; gap: 0; align-items: stretch; overflow: hidden; border-top: 1px solid var(--line); }
.cat-tile:hover { border-top-color: var(--maroon); }
.cat-media { position: relative; display: block; aspect-ratio: 4 / 3; background: linear-gradient(135deg, var(--cream), var(--gold-soft)); overflow: hidden; }
.cat-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.cat-tile:hover .cat-media img { transform: scale(1.05); }
.cat-fallback { position: absolute; inset: 0; display: grid; place-items: center; color: var(--maroon); opacity: .7; }
.cat-label { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px 20px; border-top: 3px solid var(--gold); }

/* ---------- brand logo tiles ---------- */
.brand-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.brand-row-own { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.brand-tile { display: grid; place-items: center; min-height: 104px; padding: 18px 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .15s, box-shadow .15s; }
.brand-tile:hover { border-color: var(--gold); box-shadow: 0 6px 18px rgba(60, 20, 30, .08); }
.brand-tile img { max-width: 100%; max-height: 64px; width: auto; height: auto; object-fit: contain; }
.brand-row-own .brand-tile { min-height: 140px; }
.brand-row-own .brand-tile img { max-height: 84px; }
.brand-text { font: 600 1.25rem/1.2 var(--display); color: var(--maroon); text-align: center; }
.brand-group { background: transparent; border: 0; padding: 0; }
.brand-group h3 { color: var(--maroon); padding-bottom: 10px; margin-bottom: 16px; border-bottom: 1px solid var(--gold); }

/* ---------- white label block ---------- */
.wl { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--gold); border-radius: var(--radius); padding: 40px; }
.wl-text p { font-size: 1.1875rem; color: var(--muted); }
.wl-points { display: grid; gap: 16px; }
.wl-points li { padding: 16px 18px 16px 22px; background: var(--cream); border-left: 4px solid var(--maroon); border-radius: 4px; }
.wl-points strong { display: block; font-size: 1.125rem; }
.wl-points span { color: var(--muted); }

@media (max-width: 960px) {
  .wl { grid-template-columns: 1fr; padding: 28px 22px; gap: 26px; }
}
@media (max-width: 640px) {
  .brand-row, .brand-row-own { grid-template-columns: repeat(2, 1fr); }
  .brand-tile { min-height: 88px; padding: 14px; }
  .brand-row-own .brand-tile { min-height: 110px; }
}


/* ================= v3 additions ================= */
[hidden] { display: none !important; }
.fine { font-size: .9375rem; color: var(--muted); margin-top: 14px; }
.hint { font-size: .9375rem; color: var(--muted); }

/* mega menu with institutional column */
.mega-grid { grid-template-columns: repeat(4, 1fr) 1.15fr; }
.mega-inst { grid-column: 5; grid-row: 1 / span 2; background: var(--cream); padding: 18px 20px; border-radius: var(--radius); align-self: start; }
.mega-inst .mega-head { border-bottom-color: var(--maroon); }

/* footer 5 columns, supply cards */
.foot-grid { grid-template-columns: 1.3fr 1fr 1fr 1fr 1.4fr; }
.supply-grid { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.supply-card .links { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 0; flex: 0; }

/* material textures (drawn here; a real photo in images/materials/ covers them) */
.swatch { display: block; position: relative; aspect-ratio: 4 / 3; border-radius: 6px; overflow: hidden; border: 1px solid var(--line); }
.swatch img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mat-pu-foam { background-color: #efd27a; background-image: radial-gradient(rgba(255,255,255,.55) 16%, transparent 18%), radial-gradient(rgba(140,95,20,.3) 12%, transparent 14%); background-size: 20px 20px, 29px 29px; background-position: 0 0, 8px 11px; }
.mat-pu-ep-foam { background-color: #f3e4b5; background-image: radial-gradient(rgba(120,80,20,.28) 20%, transparent 22%), radial-gradient(rgba(255,255,255,.75) 18%, transparent 20%); background-size: 12px 12px, 17px 17px; }
.mat-coir { background-color: #8a5a2b; background-image: repeating-linear-gradient(78deg, rgba(0,0,0,.2) 0 1px, transparent 1px 6px), repeating-linear-gradient(102deg, #8a5a2b 0 3px, #a8733a 3px 5px, #6f4620 5px 6px); }
.mat-hr-foam { background-color: #f6f0e0; background-image: radial-gradient(rgba(150,130,90,.3) 14%, transparent 16%); background-size: 9px 9px; }
.mat-memory-foam { background-color: #cfc6b9; background-image: radial-gradient(rgba(255,255,255,.4) 22%, transparent 24%), radial-gradient(rgba(70,60,50,.2) 18%, transparent 20%); background-size: 26px 26px, 17px 17px; }
.mat-latex-foam { background-color: #f4ead2; background-image: radial-gradient(#d9c79b 22%, transparent 24%); background-size: 15px 15px; }
.mat-bonnell { background-color: #ececec; background-image: radial-gradient(circle, transparent 34%, #8c8c8c 36% 44%, transparent 46%), radial-gradient(circle, transparent 20%, #a9a9a9 22% 28%, transparent 30%); background-size: 38px 38px; }
.mat-pocketed { background-color: #efe3cb; background-image: radial-gradient(circle, transparent 30%, #9b8b6d 32% 38%, transparent 40%), linear-gradient(#d8c9a6 1px, transparent 1px), linear-gradient(90deg, #d8c9a6 1px, transparent 1px); background-size: 34px 34px; }

/* mattress finder */
.finder { background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--gold); border-radius: var(--radius); padding: 28px; display: grid; gap: 26px; }
.finder-block h3 { font: 700 1.0625rem/1.3 var(--body); margin-bottom: 12px; }
.finder .field input, .finder .field select { max-width: 100%; }
.finder .chips { margin-bottom: 0; }
.mat-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.mat-tile { text-align: left; background: #fff; border: 2px solid var(--line); border-radius: var(--radius); padding: 10px; cursor: pointer; font: inherit; display: flex; flex-direction: column; gap: 6px; }
.mat-tile:hover { border-color: var(--gold); }
.mat-tile.active { border-color: var(--maroon); box-shadow: 0 0 0 1px var(--maroon); }
.mat-tile strong { font-size: 1rem; line-height: 1.25; }
.mat-tile span:last-child { font-size: .9375rem; color: var(--muted); }
.finder-selects { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: 16px; align-items: end; }
.tgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 22px; margin-top: 8px; }
.tcard { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.tcard-media .swatch { border: 0; border-radius: 0; aspect-ratio: 4 / 3; }
.tcard-body { padding: 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.tcard-body h3 { margin: 0; color: var(--maroon); }
.tcard-blurb { color: var(--muted); margin: 0; }
.chosen { margin: 0; padding: 8px 12px; background: var(--cream); border-left: 4px solid var(--gold); border-radius: 4px; font-weight: 600; font-size: .9375rem; }
.specs { margin: 0; display: grid; gap: 0; }
.specs > div { display: grid; grid-template-columns: 8.5em 1fr; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.specs dt { font-weight: 700; }
.specs dd { margin: 0; color: var(--ink); }
.tcard .btn-row, .icard .btn-row { margin-top: auto; padding-top: 8px; }
.tcard .btn, .icard .btn { flex: 1 1 auto; }

/* customiser */
.build-wrap { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.build-summary { position: sticky; top: 100px; }
.build-summary p { margin-bottom: .7em; overflow-wrap: anywhere; }

/* institutional pages */
.inst-nav { margin-bottom: 36px; }
.igroup { margin-bottom: 52px; }
.igroup > h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); padding-bottom: 12px; margin-bottom: 20px; border-bottom: 2px solid var(--gold); }
.icard { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); gap: 28px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; align-items: stretch; }
.icard-media .swatch { height: 100%; min-height: 200px; aspect-ratio: auto; }
.icard-body { display: flex; flex-direction: column; gap: 10px; }
.icard-body > p { color: var(--muted); margin: 0; }
.cta-card { background: var(--cream); border-radius: var(--radius); padding: 36px; border-left: 5px solid var(--gold); }
.cta-card p { color: var(--muted); font-size: 1.125rem; }

@media (max-width: 1100px) {
  .mega-grid { grid-template-columns: repeat(3, 1fr); }
  .mega-inst { grid-column: auto; grid-row: auto; }
  .mat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 960px) {
  .mega-inst { background: none; padding: 0; border-radius: 0; }
  .build-wrap, .icard { grid-template-columns: 1fr; }
  .build-summary { position: static; }
  .finder-selects { grid-template-columns: 1fr 1fr; }
  .icard-media .swatch { min-height: 0; aspect-ratio: 4 / 3; height: auto; }
}
@media (max-width: 640px) {
  .finder { padding: 18px 14px; }
  .mat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .finder-selects { grid-template-columns: 1fr; }
  .tgrid { grid-template-columns: 1fr; }
  .specs > div { grid-template-columns: 1fr; gap: 2px; }
  .cta-card { padding: 24px 18px; }
  .foot-grid { grid-template-columns: 1fr; }
}


/* ---- supply cards: eight equal cards, one link each ---- */
.supply-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.supply-card { text-decoration: none; color: inherit; transition: border-color .15s, box-shadow .15s; }
.supply-card:hover { border-color: var(--maroon); box-shadow: 0 8px 22px rgba(60, 20, 30, .1); }
.supply-card p { flex: 0 1 auto; }
.supply-card .link { margin-top: auto; padding-top: 10px; font-weight: 700; color: var(--maroon); text-decoration: underline; }
@media (max-width: 1100px) { .supply-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .supply-grid { grid-template-columns: 1fr; gap: 14px; } .supply-card { padding: 20px 18px; } }


/* =====================================================================
   v4: MOBILE-FIRST REFINEMENTS (phones are the main audience)
   ===================================================================== */
button.chip, button.pill, .mat-tile, .mat-tile strong { color: var(--ink); }
button.chip.active, button.pill.active { color: #fff; }
#sub-pills .pill.active { color: var(--ink); }
.lbl-short { display: none; }
.mbar { display: none; }
.site-footer summary { font: 700 1.125rem/1.3 var(--body); color: var(--maroon); margin-bottom: 14px; list-style: none; pointer-events: none; }
.site-footer summary::-webkit-details-marker { display: none; }

@media (max-width: 640px) {
  body { font-size: 1rem; }
  h1 { font-size: 1.75rem; } h2 { font-size: 1.45rem; }
  .topbar .container { min-height: 36px; padding-top: 6px; padding-bottom: 6px; text-align: center; }
  .topbar { font-size: .875rem; }
  .hdr { min-height: 60px; }
  .logo img { height: 38px; }
  .nav-toggle { width: 44px; height: 44px; }
  .nav { max-height: calc(100vh - 60px); }
  .section { padding: 36px 0; }
  .section-head { margin-bottom: 18px; }
  .section-head p { font-size: 1rem; }
  body[data-page="home"] .section-head p { display: none; }
  .page-head { padding: 24px 0 18px; } .page-head p { font-size: 1rem; }
  .crumbs { margin-bottom: 10px; }

  /* hero: image with the headline on top of it */
  .slide > img { aspect-ratio: 5 / 4; max-height: none; }
  .slide-caption { position: absolute; inset: auto 0 0 0; display: block; }
  .caption-card { width: 100%; margin: 0; padding: 70px 18px 40px; border: 0; border-radius: 0; box-shadow: none;
    background: linear-gradient(to top, rgba(60, 14, 24, .95) 0%, rgba(60, 14, 24, .85) 55%, rgba(60, 14, 24, 0) 100%); }
  .caption-card h1, .caption-card .h1-like { color: #fff; font-size: 1.5rem; margin: 0 0 12px; }
  .caption-card p { display: none; }
  .caption-card .btn { background: var(--gold); border-color: var(--gold); color: var(--ink); min-height: 44px; padding: 10px 20px; }
  .hero-arrow { display: none; }
  .hero-dots { top: 6px; bottom: auto; justify-content: flex-end; padding-right: 6px; }

  /* trust strip as 2 x 2 */
  .trust-grid { grid-template-columns: 1fr 1fr; }
  .trust-item, .trust-item:nth-child(2) { flex-direction: column; align-items: flex-start; gap: 6px; padding: 14px; border-right: 0; border-bottom: 1px solid var(--line); }
  .trust-item:nth-child(odd) { border-right: 1px solid var(--line); }
  .trust-item .ic { width: 28px; height: 28px; }
  .trust-item strong { font-size: .9375rem; } .trust-item span { display: none; }

  /* categories */
  .cat-grid { gap: 10px; }
  .cat-media { aspect-ratio: 5 / 4; }
  .cat-label { padding: 10px 12px 12px; border-top-width: 2px; }
  .cat-name { font-size: 1rem; line-height: 1.25; }
  .cat-blurb { display: none; }

  /* own brands in one row */
  .brand-row-own { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .brand-row-own .brand-tile { min-height: 76px; padding: 10px; }
  .brand-row-own .brand-tile img { max-height: 50px; }

  /* best sellers swipe sideways, other product lists are two across */
  #best-grid { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: -16px; padding: 0 16px 8px; scrollbar-width: none; }
  #best-grid::-webkit-scrollbar { display: none; }
  #best-grid .pcard { flex: 0 0 62%; scroll-snap-align: start; }
  .pgrid, #product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .thumb { aspect-ratio: 1 / 1; }
  .pcard-body { padding: 12px; gap: 2px; }
  .pcard h3 { font-size: 1rem; line-height: 1.25; }
  .pcard-cat { display: none; }
  .pcard-sizes { font-size: .875rem; margin-bottom: 10px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .pcard .btn { min-height: 44px; padding: 8px 10px; font-size: .9375rem; }
  .lbl-long { display: none; } .lbl-short { display: inline; }
  .more-link { margin-top: 18px; }

  /* who we supply: compact tiles */
  .supply-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .supply-card { padding: 16px 14px; gap: 6px; }
  .supply-card .ic { width: 28px; height: 28px; }
  .supply-card h3 { font-size: 1rem; margin: 2px 0 0; }
  .supply-card p { display: none; }
  .supply-card .link { font-size: .9375rem; padding-top: 4px; text-decoration: none; }

  /* white label, steps, call to action */
  .wl { padding: 22px 16px; gap: 18px; }
  .wl-text p { font-size: 1rem; } .wl-text .btn-row .btn { flex: 1 1 100%; }
  .wl-points { gap: 10px; } .wl-points li { padding: 12px 14px; }
  .wl-points strong { font-size: 1rem; } .wl-points span { font-size: .9375rem; }
  .steps { gap: 10px; }
  .step { display: grid; grid-template-columns: 40px 1fr; column-gap: 12px; padding: 14px; align-items: start; }
  .step::before { grid-row: 1 / span 2; margin: 0; width: 36px; height: 36px; font-size: 1.05rem; }
  .step h3 { margin: 0; font-size: 1.05rem; } .step p { font-size: .9375rem; }
  .cta-band { padding: 34px 0; } .cta-band h2 { font-size: 1.4rem; } .cta-band p { font-size: 1rem; }
  .cta-inner .btn-row { width: 100%; } .cta-inner .btn { flex: 1 1 100%; }

  /* sideways scrolling filter rows */
  .pills, #thick-chips { flex-wrap: nowrap; overflow-x: auto; gap: 8px; margin-inline: -16px; padding: 2px 16px 8px; scrollbar-width: none; }
  .pills::-webkit-scrollbar, #thick-chips::-webkit-scrollbar { display: none; }
  .pill, #thick-chips .chip { flex: 0 0 auto; white-space: nowrap; }
  #thick-chips { margin-inline: -14px; padding-inline: 14px; }
  .filters { padding-top: 16px; }
  .search-row { margin-bottom: 12px; }

  /* mattress finder */
  .finder { gap: 18px; padding: 16px 14px; }
  .finder-block h3 { margin-bottom: 8px; }
  #mat-tiles { display: flex; overflow-x: auto; gap: 10px; margin-inline: -14px; padding: 2px 14px 8px; scroll-snap-type: x proximity; scrollbar-width: none; }
  #mat-tiles::-webkit-scrollbar { display: none; }
  .mat-tile { flex: 0 0 150px; scroll-snap-align: start; }
  .finder-selects { grid-template-columns: 1fr 1fr; gap: 12px; }
  #f-reset { grid-column: 1 / -1; }
  .tcard-media .swatch { aspect-ratio: 4 / 3; }
  .tcard-body { padding: 16px; gap: 8px; }
  .specs > div { grid-template-columns: 6.4em 1fr; gap: 10px; padding: 6px 0; font-size: .9375rem; }
  .tcard .btn-row .btn, .icard .btn-row .btn { flex: 1 1 100%; }
  .tgrid { gap: 16px; }

  /* institutional pages, product page, contact */
  .icard { padding: 14px; gap: 14px; }
  .icard-media .swatch { aspect-ratio: 4 / 3; }
  .igroup { margin-bottom: 30px; } .igroup > h2 { font-size: 1.3rem; padding-bottom: 8px; margin-bottom: 14px; }
  .inst-nav { margin-bottom: 20px; }
  .detail { gap: 18px; } .detail-media .thumb { aspect-ratio: 4 / 3; }
  .detail-info .btn-row .btn { flex: 1 1 100%; }
  .related { margin-top: 36px; }
  .contact-card { padding: 16px; }
  .form { padding: 18px 14px; }

  /* footer groups fold up */
  .foot-grid { padding: 30px 0 6px; gap: 0; }
  .foot-grid > div:first-child { padding-bottom: 18px; }
  .site-footer summary { pointer-events: auto; display: flex; justify-content: space-between; align-items: center; margin: 0; padding: 14px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
  .site-footer summary::after { content: "+"; font-size: 1.5rem; line-height: 1; color: var(--maroon); }
  .fcol[open] summary::after { content: "\2212"; }
  .fcol ul { padding: 12px 0 6px; }
  .foot-grid > div:last-child { padding-top: 18px; }
  .foot-bottom { padding-bottom: 16px; }

}

/* keep scroll rows from widening their grid parents */
.finder > *, .finder-block, .build-wrap > *, .form-wrap > *, .detail > *, .icard > *, .wl > * { min-width: 0; }

@media (max-width: 640px) {
  .slide > img { aspect-ratio: 1 / 1; }
  .caption-card { padding: 46px 18px 36px; background: linear-gradient(to top, rgba(60, 14, 24, .92) 0%, rgba(60, 14, 24, .72) 50%, rgba(60, 14, 24, 0) 100%); }
  .caption-card h1, .caption-card .h1-like { font-size: 1.45rem; text-shadow: 0 1px 8px rgba(0, 0, 0, .35); }
}

@media (max-width: 640px) {
  #best-grid { scroll-padding-inline: 16px; }
  #mat-tiles, #thick-chips, .pills { scroll-padding-inline: 14px; }
  .section-head.center { text-align: left; margin-inline: 0; }
}


/* product photo gallery */
.gphoto img { object-fit: contain; background: #fff; }
.gthumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.gthumbs button { flex: 0 0 auto; width: 76px; height: 76px; padding: 0; border: 2px solid var(--line); border-radius: 6px; background: #fff; cursor: pointer; overflow: hidden; }
.gthumbs button.active { border-color: var(--maroon); }
.gthumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 640px) { .gthumbs button { width: 64px; height: 64px; } .gthumbs { margin-inline: -2px; } }

/* product photo gallery */
.gmain .thumb{aspect-ratio:1/1;width:100%}
.gmain .gphoto img{width:100%;height:100%;object-fit:cover;display:block}
.gthumbs{display:flex;gap:10px;margin-top:12px;overflow-x:auto;padding-bottom:4px;-webkit-overflow-scrolling:touch}
.gthumbs[hidden]{display:none}
.gthumbs button{flex:0 0 auto;width:72px;height:72px;padding:0;border:2px solid #e6dccf;border-radius:10px;overflow:hidden;background:#fff;cursor:pointer}
.gthumbs button.active{border-color:#641927}
.gthumbs img{width:100%;height:100%;object-fit:cover;display:block}
@media(max-width:640px){.gthumbs button{width:64px;height:64px}}

/* mattress construction picture in the customiser */
.construct{margin-top:18px;padding-top:16px;border-top:1px solid #e6dccf}
.construct h4{font-size:1.05rem;margin:0 0 8px;color:#641927}
.construct ol{margin:0 0 12px 1.2em;padding:0;font-size:1rem;line-height:1.6}
.construct img{display:block;width:100%;height:auto;border-radius:12px;margin-bottom:8px}

/* home: what goes inside */
.bshow{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:36px;align-items:center}
.bstage{position:relative;aspect-ratio:1/1;max-width:520px;width:100%;margin:0 auto;border-radius:16px;overflow:hidden;background:#fbf3ee;box-shadow:0 10px 30px rgba(100,25,39,.12)}
.b-img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:0;transform:translateY(14px) scale(.97);transition:opacity .6s ease,transform .7s ease}
.b-img.on{opacity:1;transform:none}
.bside{min-width:0}
.bside h3{font-size:1.05rem;color:#641927;margin:18px 0 8px}
.bside h3:first-child{margin-top:0}
.b-layers{list-style:none;margin:0 0 20px;padding:0;display:grid;gap:8px}
.b-layers li{padding:10px 14px;background:#fff;border:1px solid #e6dccf;border-left:4px solid #B99363;border-radius:8px;font-size:1.0625rem;animation:bIn .45s ease both}
@keyframes bIn{from{opacity:0;transform:translateX(16px)}to{opacity:1;transform:none}}
@media(max-width:820px){.bshow{grid-template-columns:minmax(0,1fr);gap:22px}.bstage{max-width:420px}}
@media(prefers-reduced-motion:reduce){.b-img{transition:none;transform:none}.b-layers li{animation:none}}

/* mattress type page */
.mgmain{aspect-ratio:1/1;background:#fbf3ee;display:flex;align-items:center;justify-content:center;overflow:hidden}
.mgmain img{width:100%;height:100%;object-fit:contain;display:block}
.tcard-media{display:block}
.tcard-body h3 a{color:inherit;text-decoration:none}
.tcard-body h3 a:hover{text-decoration:underline}
.detail-info .specs{margin:16px 0 20px}
.gthumbs button{width:84px;height:84px}

/* home: build your mattress animation */
.bld-grid{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);gap:32px;align-items:center}
.bld-stage{position:relative;background:linear-gradient(180deg,#fbf3ee,#f3e6dd);border-radius:18px;padding:8px;box-shadow:0 10px 30px rgba(100,25,39,.12);overflow:hidden}
#bld-svg{display:block;width:100%;height:auto;overflow:visible}
.bld-shadow{fill:rgba(60,20,30,.18)}
.bld-badge{position:absolute;left:50%;top:12px;transform:translateX(-50%);background:#641927;color:#fff;padding:8px 18px;border-radius:999px;font-weight:700;font-size:1rem;white-space:nowrap;animation:bPop .5s cubic-bezier(.2,.9,.3,1.4) both}
.bld-badge[hidden]{display:none}
@keyframes bPop{from{opacity:0;transform:translateX(-50%) scale(.6)}to{opacity:1;transform:translateX(-50%) scale(1)}}
.bld-stage.ready #bld-svg{animation:bSettle .6s ease}
@keyframes bSettle{0%{transform:scaleY(1)}35%{transform:scaleY(.97)}70%{transform:scaleY(1.01)}100%{transform:scaleY(1)}}
.bld-panel{min-width:0}
.bld-panel h3{font-size:1.05rem;color:#641927;margin:16px 0 8px}
.bld-panel h3:first-child{margin-top:0}
.fabs{display:flex;gap:10px;flex-wrap:wrap}
.fab{width:48px;height:48px;border-radius:50%;border:3px solid #fff;box-shadow:0 0 0 2px #d9cdbf;cursor:pointer;padding:0;position:relative}
.fab.active{box-shadow:0 0 0 3px #641927}
.fab span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
@media(max-width:820px){.bld-grid{grid-template-columns:minmax(0,1fr);gap:20px}.bld-stage{max-width:460px;margin:0 auto;width:100%}}
@media(prefers-reduced-motion:reduce){.bld-stage.ready #bld-svg,.bld-badge{animation:none}}

/* home: buying for your home, dealer band */
.home-tiles{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:14px;margin:6px 0 24px}
.home-tile{display:block;background:#fff;border:1px solid #e6dccf;border-radius:14px;overflow:hidden;text-decoration:none;color:inherit;transition:transform .2s,box-shadow .2s}
.home-tile:hover{transform:translateY(-3px);box-shadow:0 8px 20px rgba(100,25,39,.14)}
.home-tile img{display:block;width:100%;aspect-ratio:4/3;object-fit:cover}
.home-tile span{display:block;padding:12px 14px;font-weight:700;color:#641927;font-size:1.0625rem}
.dealer-inner{display:flex;align-items:center;justify-content:space-between;gap:24px;flex-wrap:wrap}
.dealer-inner p{max-width:640px;font-size:1.125rem;margin:6px 0 0}
@media(max-width:900px){.home-tiles{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:560px){.home-tiles{grid-template-columns:repeat(2,minmax(0,1fr))}.dealer-inner .btn{width:100%}}

/* ---- mattress finder, size guide, long text pages ---- */
.container.narrow { max-width: 860px; }
.container.narrow h2 { margin: 36px 0 12px; color: var(--maroon); }
.container.narrow h2:first-child { margin-top: 0; }
.fform { display: grid; gap: 18px; max-width: 900px; }
.fq { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; padding: 18px 18px 6px; margin: 0; min-width: 0; }
.fq[hidden] { display: none; }
.fq legend { font-weight: 700; font-size: 1.125rem; padding: 0 6px; color: var(--maroon); }
.opt-tag { font-weight: 500; font-size: .875rem; color: var(--muted); }
.ferr { color: #a11; font-weight: 700; margin: 0; }
.fres { margin-top: 44px; padding-top: 12px; border-top: 4px solid var(--gold); }
.fres h2 { color: var(--maroon); margin-top: 18px; }
.fsize { background: var(--cream); border-left: 4px solid var(--gold); padding: 12px 16px; border-radius: 4px; margin: 14px 0 22px; }
.fgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 22px; }
.fcard { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.fcard.best { border: 2px solid var(--maroon); }
.fcard h3 { margin: 0; color: var(--maroon); }
.fcard p { margin: 0; }
.fbadge { display: inline-block; align-self: flex-start; background: var(--maroon); color: #fff; font-weight: 700; font-size: .875rem; padding: 4px 12px; border-radius: 999px; }
.fbadge.alt { background: var(--gold); color: #3b2a14; }
.why { margin: 0; padding-left: 20px; display: grid; gap: 4px; }
.fcard .btn-row { margin-top: auto; padding-top: 8px; }
.tbl-wrap { overflow-x: auto; margin: 16px 0; }
.sizes-table { width: 100%; border-collapse: collapse; min-width: 560px; background: #fff; }
.sizes-table th, .sizes-table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); font-size: 1rem; }
.sizes-table th { background: var(--cream); color: var(--maroon); }
.sizefig { margin: 16px 0; padding: 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.sizefig svg { width: 100%; height: auto; display: block; }
.sizefig figcaption { color: var(--muted); font-size: .9375rem; margin-top: 6px; }
.guide-list { padding-left: 22px; display: grid; gap: 10px; }
.about-text { margin: 28px 0 0; max-width: 820px; }
.home-faq h2 { margin-top: 40px; color: var(--maroon); }
.find-band { background: var(--cream); border: 1px solid var(--line); border-left: 6px solid var(--gold); border-radius: var(--radius); padding: 22px; display: flex; gap: 18px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin: 28px 0; }
.find-band h2 { margin: 0 0 4px; font-size: 1.375rem; color: var(--maroon); }
.find-band p { margin: 0; }
@media (max-width: 640px) { .fq { padding: 14px 12px 4px; } .fcard { padding: 16px; } }
.sizes-table td:nth-child(2), .sizes-table td:nth-child(3), .sizes-table td:nth-child(4), .sizes-table td:first-child { white-space: nowrap; }
ul.guide-list { list-style: disc; }
.who-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.who-card { background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--gold); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.who-card h3 { margin: 0; color: var(--maroon); }
.who-card p { margin: 0; flex: 1; }
@media (max-width: 960px) { .who-grid { grid-template-columns: 1fr; } }

/* ---------- v14: header with search, WhatsApp-only floater, slim white label ---------- */
.search-btn { background: none; border: 2px solid var(--maroon); color: var(--maroon); border-radius: 50%; width: 46px; height: 46px; display: inline-grid; place-items: center; cursor: pointer; flex: none; }
.search-btn:hover, .search-btn[aria-expanded="true"] { background: var(--maroon); color: #fff; }
.search-panel { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 3px solid var(--gold); box-shadow: 0 18px 30px rgba(60, 20, 30, .18); padding: 18px 0 20px; z-index: 60; }
.search-panel[hidden] { display: none; }
.search-form { display: flex; gap: 10px; max-width: 760px; margin: 0 auto; }
.search-form input { flex: 1; min-width: 0; min-height: 50px; padding: 0 16px; font: inherit; font-size: 1.0625rem; border: 2px solid var(--line); border-radius: var(--radius); }
.search-form input:focus { outline: 0; border-color: var(--maroon); }
#search-results { max-width: 760px; margin: 14px auto 0; max-height: min(60vh, 520px); overflow-y: auto; }
.sr-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.sr-list a { display: flex; align-items: center; gap: 14px; padding: 8px; border-radius: 8px; text-decoration: none; color: var(--ink); }
.sr-list a:hover, .sr-list a:focus-visible { background: var(--cream); }
.sr-img { position: relative; width: 64px; height: 64px; border-radius: 8px; overflow: hidden; flex: none; background: var(--cream); display: grid; place-items: center; color: var(--maroon); }
.sr-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sr-t strong { display: block; font-size: 1.0625rem; }
.sr-t small { color: var(--muted); font-size: .9375rem; }
.sr-hint { margin: 6px 4px; color: var(--muted); }
.sr-all { display: inline-block; margin: 10px 8px 0; font-weight: 700; color: var(--maroon); }
.site-header .hdr { position: static; }
.nav { margin-left: auto; }
.search-btn { margin-left: 18px; }

@media (max-width: 960px) {
  .hdr { display: grid; grid-template-columns: 48px 1fr 48px; gap: 8px; }
  .nav-toggle { grid-column: 1; grid-row: 1; }
  .logo { grid-column: 2; grid-row: 1; justify-self: center; }
  .search-btn { grid-column: 3; grid-row: 1; margin-left: 0; width: 44px; height: 44px; justify-self: end; }
}
@media (max-width: 640px) {
  .hdr { grid-template-columns: 44px 1fr 44px; }
  .search-form .btn { padding-inline: 16px; }
  .sr-img { width: 56px; height: 56px; }
}

/* WhatsApp only, small, bottom left on phones */
.float-call { display: none !important; }
@media (max-width: 960px) {
  .floaters { left: auto; right: 14px; bottom: 14px; }
  .floaters a { width: 50px; height: 50px; }
}

/* slim white label band */
.wl-slim { padding: 22px 0; }
.wl-bar { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; padding: 14px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.wl-bar p { margin: 0; font-size: 1rem; color: var(--muted); }
.wl-bar strong { color: var(--ink); }
.btn.btn-sm { min-height: 40px; padding: 0 16px; font-size: .9375rem; }
@media (max-width: 640px) { .wl-slim { padding: 14px 0; } .wl-bar { padding: 12px 14px; } .wl-bar .btn-row { width: 100%; } }
