/* ==========================================================================
   FoldingBed.sg — main stylesheet
   Breakpoints: mobile < 768px · tablet 768–1199px · desktop ≥ 1200px
   ========================================================================== */

:root {
  --teal: #2a7686;
  --teal-dark: #1d4f5b;
  --teal-mid: #4aa3b5;
  --teal-soft: #e9f4f6;
  --orange: #f2a444;
  --orange-dark: #a35a08;  /* 5.0:1 on white (WCAG AA for small text) */
  --ink: #1b2a30;
  --muted: #55666c;
  --line: #dbe4e6;
  --bg: #ffffff;
  --bg-soft: #f5f8f8;
  --radius: 12px;
  --shadow: 0 6px 24px rgba(20, 50, 60, .08);
  --container: 1240px;
  --gutter: 16px;

  /* Type scale — mobile */
  --fs-base: 16px;
  --fs-sm: .875rem;
  --fs-h1: 1.75rem;
  --fs-h2: 1.45rem;
  --fs-h3: 1.15rem;
  --fs-lead: 1.05rem;
  --fs-slide: 1.5rem;
  --space: 40px;
}

@media (min-width: 768px) {          /* Tablet */
  :root {
    --fs-base: 17px;
    --fs-h1: 2.1rem;
    --fs-h2: 1.65rem;
    --fs-h3: 1.2rem;
    --fs-lead: 1.1rem;
    --fs-slide: 1.75rem;
    --gutter: 24px;
    --space: 56px;
  }
}

@media (min-width: 1200px) {         /* Desktop */
  :root {
    --fs-base: 18px;
    --fs-h1: 2.5rem;
    --fs-h2: 1.9rem;
    --fs-h3: 1.3rem;
    --fs-lead: 1.15rem;
    --fs-slide: 2.1rem;
    --gutter: 32px;
    --space: 64px;
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { font-size: var(--fs-base); -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
}
img, picture { display: block; max-width: 100%; height: auto; }
a { color: var(--teal); text-underline-offset: 3px; }
a:hover { color: var(--teal-dark); }
h1, h2, h3 { line-height: 1.2; color: var(--teal-dark); margin: 0 0 .6em; letter-spacing: -.01em; }
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
p { margin: 0 0 1em; }
ul { padding-left: 1.2em; }
address { font-style: normal; }
:focus-visible { outline: 3px solid var(--teal-dark); outline-offset: 2px; box-shadow: 0 0 0 5px #fff; }
.site-footer :focus-visible, .topbar :focus-visible { outline-color: #fff; box-shadow: none; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 100; border-radius: 6px; }
.skip-link:focus { left: 8px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.container-narrow { max-width: 880px; }
.section { padding: var(--space) 0; }
/* Two sections with the same background in a row: don't stack both paddings (was a double gap). */
.section:not(.section-soft) + .section:not(.section-soft), .section-soft + .section-soft { padding-top: 0; }
.section-soft { background: var(--bg-soft); }
.section-head { max-width: 760px; margin-bottom: 32px; }
.section-head p { color: var(--muted); font-size: var(--fs-lead); }
.lead { font-size: var(--fs-lead); color: var(--muted); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4em;
  padding: .75em 1.4em; min-height: 44px;
  background: var(--teal); color: #fff; border: 2px solid var(--teal); border-radius: 999px;
  font-weight: 600; font-size: 1rem; text-decoration: none; cursor: pointer;
  transition: background .2s, border-color .2s, color .2s;
}
.btn:hover { background: var(--teal-dark); border-color: var(--teal-dark); color: #fff; }
.btn-outline { background: transparent; color: var(--teal); }
.btn-outline:hover { background: var(--teal); color: #fff; }
.btn-accent { background: var(--orange); border-color: var(--orange); color: #2b1a04; }
.btn-accent:hover { background: #e08f2b; border-color: #e08f2b; color: #2b1a04; }
.btn-sm { padding: .45em 1.1em; min-height: 40px; font-size: .9rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.staging-bar { background: #fff3cd; color: #6b4e00; text-align: center; font-size: .8rem; padding: 4px 8px; }

/* ---------- Top bar & header ---------- */
.topbar { background: var(--teal-dark); color: #dbeef2; font-size: var(--fs-sm); }
.topbar-inner { display: flex; flex-wrap: wrap; gap: 4px 24px; justify-content: center; padding-top: 6px; padding-bottom: 6px; }
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { text-decoration: underline; color: #fff; }
.topbar-item:first-child { display: none; }
@media (min-width: 768px) { .topbar-inner { justify-content: flex-end; } .topbar-item:first-child { display: inline; margin-right: auto; } }

.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--line); backdrop-filter: blur(6px); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.logo { display: block; width: 170px; flex-shrink: 0; }
@media (min-width: 1200px) { .logo { width: 220px; } .header-inner { min-height: 80px; } }

.nav-toggle { display: inline-flex; align-items: center; gap: 8px; background: none; border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; min-height: 44px; font: inherit; font-weight: 600; color: var(--teal-dark); cursor: pointer; }
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { display: block; width: 20px; height: 2px; background: currentColor; position: relative; transition: transform .2s; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; } .nav-toggle-bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

/* Mobile + tablet: slide-down panel */
.site-nav { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); display: none; max-height: calc(100vh - 100px); overflow-y: auto; }
.site-nav.is-open { display: block; }
.nav-list { list-style: none; margin: 0; padding: 8px var(--gutter) 16px; }
.nav-link { display: flex; width: 100%; justify-content: space-between; align-items: center; padding: 12px 4px; border: 0; border-bottom: 1px solid var(--line); background: none; font: inherit; font-weight: 600; color: var(--ink); text-decoration: none; cursor: pointer; text-align: left; }
.nav-item.is-active > .nav-link { color: var(--teal); }
.chev { width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); margin: 0 6px 4px; transition: transform .2s; }
.sub-toggle[aria-expanded="true"] .chev { transform: rotate(-135deg); margin-bottom: -2px; }
.sub-menu { list-style: none; margin: 0; padding: 4px 0 8px 12px; display: none; }
.sub-toggle[aria-expanded="true"] + .sub-menu { display: block; }
.sub-menu a { display: block; padding: 9px 4px; color: var(--muted); text-decoration: none; }
.sub-menu a:hover, .sub-menu a[aria-current] { color: var(--teal); }
.nav-cta { padding-top: 14px; }

@media (min-width: 1280px) {
  .nav-toggle { display: none; }
  .site-nav { position: static; display: block; box-shadow: none; border: 0; max-height: none; overflow: visible; background: none; }
  .nav-list { display: flex; align-items: center; gap: 4px; padding: 0; }
  .nav-item { position: relative; }
  .nav-list { gap: 2px; }
  .nav-link { border: 0; padding: 10px 10px; width: auto; gap: 4px; font-size: .9rem; border-radius: 8px; white-space: nowrap; }
  .nav-link:hover { background: var(--teal-soft); color: var(--teal-dark); }
  .sub-menu { position: absolute; top: 100%; left: 0; min-width: 240px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 8px; }
  .has-sub:hover > .sub-menu, .has-sub:focus-within > .sub-menu { display: block; }
  .sub-menu a { padding: 8px 12px; border-radius: 8px; font-size: .95rem; }
  .sub-menu a:hover { background: var(--teal-soft); }
  .nav-cta { padding: 0 0 0 8px; }
}

/* ---------- Breadcrumbs ---------- */
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; padding: 14px 0 0; margin: 0; font-size: var(--fs-sm); color: var(--muted); }
.breadcrumbs li + li::before { content: "›"; margin-right: 4px; }

/* ---------- Hero slider ---------- */
.hero { background: linear-gradient(180deg, var(--teal-soft), #fff); padding: 20px 0 8px; }
.slider { position: relative; }
.slides { list-style: none; margin: 0; padding: 0; display: grid; }
.slide { grid-area: 1 / 1; display: grid; gap: 0; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); opacity: 0; visibility: hidden; transition: opacity .6s ease, visibility .6s; }
.slide.is-active { opacity: 1; visibility: visible; }
.slide-media { background: var(--bg-soft); }
.slide-media img { width: 100%; height: auto; }          /* full image, never cropped */
.slide-body { padding: 20px 20px 56px; display: flex; flex-direction: column; justify-content: center; }
.slide-kicker { color: var(--orange-dark); font-weight: 700; font-size: var(--fs-sm); text-transform: uppercase; letter-spacing: .08em; margin-bottom: .5em; }
.slide-title { font-size: var(--fs-slide); font-weight: 800; color: var(--teal-dark); line-height: 1.15; margin: 0 0 .4em; }
.slide-text { color: var(--muted); }
@media (min-width: 768px) {
  .slide { grid-template-columns: 58% 42%; align-items: center; }
  .slide-body { padding: 28px 32px 64px; }
}
@media (min-width: 1200px) {
  .slide { grid-template-columns: 62% 38%; }
  .slide-body { padding: 40px 48px 72px; }
}
.slider-controls { position: absolute; left: 0; right: 0; bottom: 14px; display: flex; justify-content: center; align-items: center; gap: 10px; pointer-events: none; }
@media (min-width: 768px) { .slider-controls { left: 58%; } }
@media (min-width: 1200px) { .slider-controls { left: 62%; } }
.slider-btn, .slider-dot { pointer-events: auto; }
.slider-btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--teal-dark); cursor: pointer; font-size: 1.1rem; line-height: 1; }
.slider-btn:hover { background: var(--teal-soft); }
.slider-dots { display: flex; gap: 6px; }
.slider-dot { width: 24px; height: 24px; border: 0; background: none; cursor: pointer; padding: 0; display: grid; place-items: center; }
.slider-dot::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--line); transition: background .2s, width .2s; }
.slider-dot[aria-current="true"]::before { background: var(--teal); width: 22px; border-radius: 6px; }

/* ---------- Intro ---------- */
.intro { padding: calc(var(--space) * .6) 0 calc(var(--space) * .4); }
.intro-grid { display: grid; gap: 24px; }
.trust-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
.trust-list li { background: var(--bg-soft); border-radius: var(--radius); padding: 14px; font-size: var(--fs-sm); }
.trust-list strong { display: block; color: var(--teal-dark); font-size: 1rem; }
@media (min-width: 1200px) { .intro-grid { grid-template-columns: 1.3fr 1fr; align-items: center; gap: 48px; } }

/* ---------- Cards (categories / products) ---------- */
.card-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 480px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1200px) { .card-grid { grid-template-columns: repeat(4, 1fr); gap: 24px; } }
.card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: inherit; transition: box-shadow .2s, transform .2s; }
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); color: inherit; }
.card-media { aspect-ratio: 4 / 3; background: var(--bg-soft); display: flex; align-items: center; justify-content: center; padding: 10px; }
.card-media picture, .card-media img { width: 100%; height: 100%; }
.card-media img { object-fit: contain; }                    /* whole product visible, no cropping */
.card-body { padding: 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-title { font-size: 1.05rem; margin: 0; color: var(--teal-dark); }
.card-text { color: var(--muted); font-size: var(--fs-sm); margin: 0; flex: 1; }
.card-meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 8px; }
.price { font-weight: 800; color: var(--ink); font-size: 1.1rem; }
.price-from { font-size: var(--fs-sm); color: var(--muted); font-weight: 600; }
.code { font-size: .75rem; font-weight: 700; color: var(--orange-dark); letter-spacing: .05em; }
.badge { font-size: .75rem; background: var(--teal-soft); color: var(--teal-dark); padding: 2px 8px; border-radius: 999px; font-weight: 600; }
.card-link { font-weight: 600; color: var(--teal); }

/* ---------- Guide (which bed) ---------- */
.guide-grid { display: grid; gap: 16px; }
@media (min-width: 768px) { .guide-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; } }
.guide-item { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--orange); border-radius: var(--radius); padding: 20px; }
.guide-item h3 { margin-bottom: .4em; }
.guide-item p:last-child { margin-bottom: 0; }

/* ---------- Showroom split ---------- */
.split { display: grid; gap: 24px; align-items: center; }
@media (min-width: 768px) { .split { grid-template-columns: 1fr 1fr; gap: 40px; } }
.split-media img { border-radius: var(--radius); width: 100%; }
.hours-list { list-style: none; padding: 0; margin: 0 0 1em; }
.hours-list li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px dashed var(--line); }

/* ---------- Feature list ---------- */
.feature-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1200px) { .feature-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.feature { padding: 20px; background: #fff; border-radius: var(--radius); border: 1px solid var(--line); }
.feature h3 { font-size: 1.05rem; }
.feature p { margin: 0; color: var(--muted); font-size: var(--fs-sm); }
.icon-dot { width: 36px; height: 36px; border-radius: 50%; background: var(--teal-soft); color: var(--teal); display: grid; place-items: center; font-weight: 800; margin-bottom: 10px; }

.steps { counter-reset: step; list-style: none; padding: 0; display: grid; gap: 16px; }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { counter-increment: step; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--orange); color: #2b1a04; font-weight: 800; margin-bottom: 10px; }
.steps h3 { font-size: 1.05rem; }
.steps p { margin: 0; color: var(--muted); font-size: var(--fs-sm); }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 10px; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.faq-item summary { cursor: pointer; padding: 16px 48px 16px 18px; font-weight: 600; list-style: none; position: relative; color: var(--teal-dark); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 1.4rem; color: var(--teal); }
.faq-item[open] summary::after { content: "–"; }
.faq-answer { padding: 0 18px 16px; color: var(--muted); }
.faq-answer p { margin: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--teal-dark); color: #cfe3e8; font-size: var(--fs-sm); }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: #fff; }
.footer-grid { display: grid; gap: 28px; padding-top: 40px; padding-bottom: 24px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1200px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.4fr; } }
.footer-logo { display: block; width: 200px; max-width: 100%; margin-bottom: 14px; }
.footer-title { color: #fff; font-size: 1rem; margin-bottom: .8em; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.footer-hours li { display: flex; flex-direction: column; }
.footer-hours li span:first-child { color: #fff; font-weight: 600; }
.footer-contact { margin-top: 12px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); }
.footer-bottom-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding-top: 16px; padding-bottom: 16px; }
.footer-bottom p { margin: 0; }

/* ---------- Cookie note ---------- */
.cookie-note { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); border-radius: var(--radius); padding: 14px 16px; display: flex; gap: 12px; align-items: center; font-size: var(--fs-sm); max-width: 560px; }
.cookie-note[hidden] { display: none; }
.cookie-note p { margin: 0; }

/* ---------- Simple pages (404, coming soon) ---------- */
.notice-page { text-align: center; padding: var(--space) 0; }
.notice-page .big { font-size: clamp(4rem, 14vw, 8rem); font-weight: 900; color: var(--teal-soft); line-height: 1; margin: 0; -webkit-text-stroke: 2px var(--teal-mid); }
.notice-page .btn-row { justify-content: center; margin: 24px 0 32px; }
.link-grid { list-style: none; padding: 0; display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); text-align: left; }
.link-grid a { display: block; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; font-weight: 600; }
.link-grid a:hover { background: var(--teal-soft); }
.section-more { margin-top: 28px; justify-content: center; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { background: linear-gradient(180deg, var(--teal-soft), #fff); padding: 24px 0 calc(var(--space) * .5); }
.page-hero-grid { display: grid; gap: 24px; align-items: center; }
@media (min-width: 768px) { .page-hero-grid { grid-template-columns: 1.1fr 1fr; gap: 40px; } .page-hero-grid.no-media { grid-template-columns: 1fr; max-width: 880px; } }
.page-hero-media img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; background: #fff; }

/* ---------- Product block ---------- */
.product-grid { display: grid; gap: 28px; }
@media (min-width: 768px) { .product-grid { grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; } }
.gallery { min-width: 0; }
.gallery-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-soft); scrollbar-width: none; }
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-slide { flex: 0 0 100%; scroll-snap-align: center; margin: 0; display: flex; align-items: center; justify-content: center; aspect-ratio: 1 / 1; padding: 12px; }
.gallery-slide picture, .gallery-slide img { width: 100%; height: 100%; }
.gallery-slide img { object-fit: contain; }                 /* full photo, never cropped */
.gallery-thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; padding-bottom: 4px; }
.gallery-thumb { flex: 0 0 64px; height: 64px; padding: 3px; border: 2px solid var(--line); border-radius: 8px; background: #fff; cursor: pointer; }
.gallery-thumb img { width: 100%; height: 100%; object-fit: contain; }
.gallery-thumb[aria-current="true"] { border-color: var(--teal); }
@media (min-width: 1200px) { .gallery-thumb { flex-basis: 76px; height: 76px; } }
.product-title { margin-top: 4px; }
.product-price { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.product-price .price { font-size: 1.6rem; }
.badge-out { background: #fdecea; color: #8a1c12; }
.product-blurb { color: var(--muted); }
.ticks { list-style: none; padding: 0; margin: 0 0 1em; display: grid; gap: 6px; }
.ticks li { padding-left: 28px; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 4px; top: .45em; width: 12px; height: 7px; border-left: 3px solid var(--teal); border-bottom: 3px solid var(--teal); transform: rotate(-45deg); }
.options { margin: 0 0 10px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.options-label { font-weight: 600; margin-right: 4px; }
.chip { border: 1px solid var(--line); border-radius: 999px; padding: 2px 12px; font-size: var(--fs-sm); background: #fff; }
.product-ctas { margin: 16px 0 8px; }
.product-note { font-size: var(--fs-sm); color: var(--muted); }
.specs-title { margin-top: 1.4em; }
.specs { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.specs th, .specs td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.specs th { width: 40%; color: var(--teal-dark); font-weight: 600; background: var(--bg-soft); }

/* ---------- Article copy ---------- */
.prose { max-width: 820px; }
.prose h2 { margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }
.prose ul { margin: 0 0 1em; }
.prose li { margin-bottom: .4em; }
.callout { background: var(--teal-soft); border-left: 4px solid var(--teal); border-radius: var(--radius); padding: 16px 20px; margin: 1.4em 0; }
.callout p:last-child { margin: 0; }
.compare { width: 100%; border-collapse: collapse; margin: 1em 0 1.4em; font-size: var(--fs-sm); }
.compare th, .compare td { border: 1px solid var(--line); padding: 10px; text-align: left; vertical-align: top; }
.compare thead th { background: var(--teal-dark); color: #fff; }
.table-wrap { overflow-x: auto; }

/* ---------- Related ranges ---------- */
.related-grid { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .related-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
.related-card { display: flex; flex-direction: column; gap: 4px; padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); transition: box-shadow .2s; }
.related-card:hover { box-shadow: var(--shadow); color: var(--ink); }
.related-card strong { color: var(--teal); }
.related-card span { font-size: var(--fs-sm); color: var(--muted); }

/* ---------- Contact page ---------- */
.muted { color: var(--muted); font-size: var(--fs-sm); }
.contact-cards { display: grid; gap: 16px; margin-bottom: 20px; }
@media (min-width: 768px) { .contact-cards { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.contact-card { background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--teal); border-radius: var(--radius); padding: 20px; }
.contact-card h3 { font-size: 1.05rem; }
.contact-card p { margin-bottom: .5em; }
.photo-pair { display: grid; gap: 16px; margin: 20px 0; }
@media (min-width: 768px) { .photo-pair { grid-template-columns: 1fr 1fr; gap: 24px; } }
.photo-pair figure { margin: 0; }
.photo-pair img { border-radius: var(--radius); width: 100%; }
figcaption { font-size: var(--fs-sm); color: var(--muted); margin-top: 8px; }
.directions { display: grid; gap: 16px; margin: 24px 0; }
@media (min-width: 1200px) { .directions { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.direction { background: var(--bg-soft); border-radius: var(--radius); padding: 20px; }
.direction p:last-child { margin-bottom: 0; }
.map-link { display: block; position: relative; max-width: 900px; margin: 0 auto; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.map-link img { width: 100%; }
.map-link .btn { position: absolute; right: 12px; bottom: 12px; }
.video-grid { display: grid; gap: 20px; }
@media (min-width: 768px) { .video-grid { grid-template-columns: repeat(3, 1fr); } }
.video { margin: 0; }
.video-facade, .video iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: var(--radius); overflow: hidden; background: #000; }
.video-facade { position: relative; padding: 0; cursor: pointer; }
.video-facade picture, .video-facade img { width: 100%; height: 100%; object-fit: contain; }

/* ---------- Forms ---------- */
.contact-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
@media (min-width: 768px) { .contact-form { padding: 32px; } }
.form-grid { display: grid; gap: 0 20px; }
@media (min-width: 768px) { .form-grid { grid-template-columns: 1fr 1fr; } }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; font-size: var(--fs-sm); }
.field input[type=text], .field input[type=email], .field input[type=tel], .field input[type=date], .field select, .field textarea {
  width: 100%; font: inherit; font-size: 16px; padding: 11px 14px; border: 1px solid #b9c7cb; border-radius: 10px; background: #fff; color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--teal-dark); outline-offset: 1px; border-color: var(--teal); }
.field.has-error input, .field.has-error textarea, .field.has-error select { border-color: #b3261e; }
.field input[type=date] { min-height: 46px; }
.form-fieldset { border: 0; padding: 0; margin: 0 0 8px; min-width: 0; }
.form-fieldset legend { font-weight: 700; font-size: var(--fs-lg, 1.125rem); margin-bottom: 12px; padding: 0; }
.form-fieldset + .form-fieldset { border-top: 1px solid var(--line); padding-top: 20px; }
.form-hint { font-size: var(--fs-sm); color: var(--muted, #5b6b70); margin: -4px 0 16px; }
.field-error { color: #b3261e; font-size: var(--fs-sm); margin: 6px 0 0; }
.field-check label { font-weight: 400; display: flex; gap: 10px; align-items: flex-start; }
.field-check input { margin-top: 5px; width: 18px; height: 18px; flex-shrink: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-alert { padding: 14px 18px; border-radius: 10px; margin-bottom: 16px; }
.form-success { background: #e6f4ea; color: #14532d; border: 1px solid #b7dfc2; }
.form-fail { background: #fdecea; color: #8a1c12; border: 1px solid #f5c2bd; }

/* ---------- Shop, cart & checkout ---------- */
.header-cart { margin-left: auto; margin-right: 8px; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; text-decoration: none; font-weight: 600; color: var(--teal-dark); }
@media (min-width: 1280px) { .header-cart { display: none; } }
.nav-cart { display: none; }
@media (min-width: 1280px) { .nav-cart { display: block; } }
.cart-badge { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--orange); color: #2b1a04; font-size: .75rem; font-weight: 800; }
.buy-form { margin: 16px 0 6px; }
.buy-form select { width: 100%; font: inherit; font-size: 16px; padding: 10px 12px; border: 1px solid #b9c7cb; border-radius: 10px; background: #fff; }
.buy-row { display: flex; gap: 10px; align-items: center; }
.qty-input { width: 80px; font: inherit; font-size: 16px; padding: 10px; border: 1px solid #b9c7cb; border-radius: 10px; text-align: center; min-height: 44px; }
.buy-row .btn { flex: 1; }
.product-alt { font-size: var(--fs-sm); margin: 6px 0 10px; }
.shop-tabs { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 8px; }
.shop-tabs a { padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font-weight: 600; font-size: var(--fs-sm); }
.shop-tabs a[aria-current] { background: var(--teal); border-color: var(--teal); color: #fff; }
.shop-section { padding-top: calc(var(--space) * .5); padding-bottom: calc(var(--space) * .5); }
.btn-block { display: flex; width: 100%; margin-top: 10px; }
.link-btn { background: none; border: 0; color: var(--teal); text-decoration: underline; cursor: pointer; font: inherit; font-size: var(--fs-sm); padding: 4px; }
.link-small { display: inline-block; margin-top: 12px; font-size: var(--fs-sm); }
.cart-layout, .checkout-layout { display: grid; gap: 24px; align-items: start; }
@media (min-width: 1200px) { .cart-layout, .checkout-layout { grid-template-columns: 1fr 380px; gap: 40px; } }
.cart-line { display: grid; grid-template-columns: 72px 1fr; gap: 8px 14px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: center; }
@media (min-width: 768px) { .cart-line { grid-template-columns: 96px 1fr auto auto auto; } }
.cart-thumb { grid-row: span 2; background: var(--bg-soft); border-radius: 8px; padding: 4px; }
@media (min-width: 768px) { .cart-thumb { grid-row: auto; } }
.cart-thumb img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.cart-name { font-weight: 700; text-decoration: none; display: block; }
.cart-qty { display: flex; gap: 6px; align-items: center; }
.cart-qty input { width: 64px; font: inherit; font-size: 16px; padding: 8px; border: 1px solid #b9c7cb; border-radius: 8px; text-align: center; }
.cart-total { font-weight: 800; }
.cart-summary, .panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
@media (min-width: 1200px) { .cart-summary { position: sticky; top: 100px; } }
.cart-summary h2 { font-size: 1.2rem; }
.cart-summary dl, .panel dl { margin: 12px 0; }
.cart-summary dl div, .panel dl div { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; }
.cart-summary dt, .panel dt { color: var(--muted); }
.cart-summary dd, .panel dd { margin: 0; font-weight: 600; text-align: right; }
.summary-total { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 10px !important; font-size: 1.15rem; }
.summary-total dt { color: var(--ink); font-weight: 700; }
.summary-lines { list-style: none; padding: 0; margin: 0; }
.summary-lines li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: var(--fs-sm); }
.checkout-main { display: grid; gap: 20px; }
fieldset.panel { margin: 0; }
fieldset.panel legend { font-weight: 800; color: var(--teal-dark); font-size: 1.1rem; padding: 0 6px; }
.choice-list { display: grid; gap: 10px; margin-bottom: 16px; }
.choice { display: flex; gap: 12px; align-items: flex-start; border: 1px solid var(--line); border-radius: 10px; padding: 14px; cursor: pointer; }
.choice:has(input:checked) { border-color: var(--teal); background: var(--teal-soft); }
.choice input { margin-top: 5px; width: 18px; height: 18px; flex-shrink: 0; }
.choice.is-disabled { opacity: .5; }
.choice-list.has-error .choice { border-color: #b3261e; }
.order-cards { margin: 24px 0; }
.h3 { font-size: var(--fs-h3); }
@media (max-width: 479px) {
  .logo { width: 140px; }
  .header-inner { gap: 8px; }
  .nav-toggle { padding: 8px 10px; }
  .nav-toggle-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .header-cart { padding: 8px 10px; margin-right: 0; }
}

/* ---------- Blog ---------- */
.blog-grid { display: grid; gap: 24px; }
@media (min-width: 768px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1200px) { .blog-grid { grid-template-columns: repeat(3, 1fr); } }
.blog-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.blog-card-media { display: block; background: var(--bg-soft); }
.blog-card-media img { width: 100%; height: auto; }
.blog-card-body { padding: 18px; }
.blog-card-title { font-size: 1.15rem; margin: 6px 0 8px; }
.blog-card-title a { text-decoration: none; color: var(--teal-dark); }
.blog-card-title a:hover { color: var(--teal); text-decoration: underline; }
.blog-meta { font-size: var(--fs-sm); color: var(--muted); margin: 0 0 8px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.article-head { background: linear-gradient(180deg, var(--teal-soft), #fff 70%); padding: 24px 0 8px; }
.article-cover { max-width: 1000px; margin-top: 16px; }
.article-cover img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); }
.article-body { padding-top: 32px; padding-bottom: 8px; }
.article-body h2 { margin-top: 1.8em; }
.article-body h3 { margin-top: 1.4em; }
.article-body img { border-radius: var(--radius); }
.article-body table { width: 100%; }
.key-points { background: var(--bg-soft); border-radius: var(--radius); padding: 18px 22px; margin: 0 0 1.6em; }
.key-points h2 { font-size: 1.1rem; margin: 0 0 .5em !important; }
.key-points ul { margin: 0; }
.nav-cta .btn, .nav-link { white-space: nowrap; }
@media (min-width: 1280px) and (max-width: 1439px) {
  .nav-link { padding: 10px 7px; font-size: .86rem; }
  .logo { width: 190px; }
}
.pay-box { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; background: var(--teal-soft); border: 1px solid var(--teal); border-radius: var(--radius); padding: 16px 20px; margin-bottom: 20px; }
.pay-box p { margin: 0; }

/* Photos inside blog articles */
.article-figure { margin: 1.6em 0; }
.article-figure img { display: block; width: 100%; height: auto; border-radius: var(--radius); }

/* Safe-use box on product pages */
.safe-use { margin-top: 20px; padding: 16px 18px; border: 1px solid var(--line); border-left: 4px solid var(--teal); border-radius: var(--radius); background: #f6f9fa; }
.safe-use-title { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: var(--fs-base, 1rem); margin: 0 0 6px; }
.safe-use p { margin: 0 0 8px; }
.safe-use ul { margin: 0 0 8px; padding-left: 1.2em; }
.safe-use li { margin: 2px 0; }
.safe-use-note { font-size: var(--fs-sm); color: var(--muted); margin: 0; }
.use-pill { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .78rem; font-weight: 700; letter-spacing: .3px; }
.use-everyday { background: #e6f4ea; color: #14532d; }
.use-occasional { background: #fdf1de; color: #7a4f0e; }
.use-lounging { background: #e3f0f2; color: #1d4f5b; }

/* "Added to your cart" confirmation on the cart page */
.cart-added { background: #e6f4ea; border: 1px solid #b7dfc2; border-radius: var(--radius); padding: 16px 18px; margin-bottom: 20px; }
.cart-added-msg { margin: 0 0 12px; color: #14532d; font-weight: 600; font-size: var(--fs-lead, 1.1rem); }
.cart-added-tick { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; background: #1f7a3d; color: #fff; font-size: .9rem; margin-right: 6px; }
.cart-added .btn-row { margin: 0; }

/* Cookie choice bar (Accept / Decline) */
.cookie-note { flex-wrap: wrap; }
.cookie-note p { flex: 1 1 260px; }
.cookie-actions { display: flex; gap: 8px; flex-shrink: 0; }
@media (max-width: 479px) { .cookie-note { left: 8px; right: 8px; bottom: 8px; padding: 10px 12px; gap: 8px; } .cookie-actions .btn { flex: 1; } }
.site-footer .footer-link-btn { background: none; border: 0; padding: 0; font: inherit; color: #fff; text-decoration: none; cursor: pointer; }
.site-footer .footer-link-btn:hover { text-decoration: underline; }
/* Accessibility fixes (audit 2 Dec 2026) */
/* Keep focused items and #anchors clear of the sticky header (WCAG 2.4.11). */
html { scroll-padding-top: 96px; }
@media (min-width: 1200px) { html { scroll-padding-top: 112px; } }
[id] { scroll-margin-top: 96px; }
/* Cookie bar: full-width and slim on phones, and below the header/open menu. */
.cookie-note { z-index: 40; }
@media (max-width: 767px) { .cookie-note { left: 0; right: 0; bottom: 0; max-width: none; border-radius: 0; padding: 10px 16px; } }
/* Slider pause button */
.slider-pause span { font-size: .8em; letter-spacing: -2px; }
.form-privacy { margin: 10px 0 0; }
/* The hero already ends with its own bottom padding: halve the first section's top padding after it. */
.page-hero + .section { padding-top: calc(var(--space) * .5); }

/* Google reviews (partials/reviews.php): Google-style cards with initial avatar, stars and date. */
.reviews-summary { display: flex; align-items: center; gap: 10px; }
.google-g { flex: none; display: block; }
.review-stars { color: #f59e0b; letter-spacing: 1px; white-space: nowrap; font-size: 1.1em; }
.review-stars .off { color: #d7dde0; }
.review-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .review-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .review-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.review { margin: 0; display: flex; flex-direction: column; gap: 16px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 24px; box-shadow: 0 1px 2px rgba(16, 42, 50, .04); }
.review-head { display: flex; align-items: center; gap: 12px; }
.review-avatar { flex: none; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 1.25rem; font-weight: 600; }
.av-0 { background: #795548; } .av-1 { background: #3949ab; } .av-2 { background: #0277bd; } .av-3 { background: #2e7d32; }
.av-4 { background: #ad1457; } .av-5 { background: #6a1b9a; } .av-6 { background: #00695c; } .av-7 { background: #c62828; }
.review-who { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.review-name { color: var(--ink); font-size: var(--fs-base); line-height: 1.3; }
.review-meta { font-size: var(--fs-sm); color: var(--muted); }
.review-source { align-self: flex-start; opacity: .9; }
.review blockquote { margin: 0; flex: 1; }
.review blockquote p { margin: 0; color: var(--muted); line-height: 1.7; }
.review-photos { display: flex; flex-wrap: wrap; gap: 6px; }
.review-photos img { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; display: block; }
.reviews-actions { margin-top: 28px; }
/* Cookie settings feedback: current choice + a short highlight when reopened from the footer. */
.cookie-note .cookie-status { flex: 1 1 100%; margin: 0; font-weight: 600; color: var(--teal-dark); }
.cookie-flash { animation: cookie-flash 1.2s ease-out; }
@keyframes cookie-flash { 0%, 30% { box-shadow: 0 0 0 4px var(--teal), var(--shadow); } 100% { box-shadow: var(--shadow); } }
