/* Small Space Organization — storage shopping site
   Style: modern-editorial (clize design method). Warm cream paper, slate-green +
   terracotta accents, Playfair Display headlines + Source Sans Pro body, pill CTAs,
   color-blocked sections. Functional catalog kept clean. See /DESIGN.md.
   Card radius <= 8px. Mobile-first, no overflow. */

:root {
  /* Style: natural / biophilic (lokuma). Cream + deep forest + terracotta clay,
     Fraunces serif headlines + Nunito Sans body, rounded cards, soft diffused shadows. */
  --ink: #2d3a31;        /* deep forest */
  --ink-soft: #43534a;
  --muted: #646f63;      /* sage grey, AA on --paper (4.95:1) */
  --faint: #939c8d;
  --line: #ece8df;       /* delicate warm border */
  --line-strong: #ddd8cd;
  --paper: #f9f8f4;      /* warm cream */
  --panel: #ffffff;
  --panel-2: #f1efe8;    /* oat */
  /* var names kept; values are now forest green (brand+CTA) + terracotta clay (accent) */
  --teal: #3f5345;       /* deep forest — brand + primary CTA (white text 8.8:1) */
  --teal-ink: #2d3a31;
  --teal-wash: #eef1ea;
  --coral: #a8543c;      /* terracotta clay — accent (white 4.9:1, on-cream 4.6:1) */
  --coral-ink: #8f4530;  /* darker clay for hovers */
  --coral-wash: #f3e7df;
  --gold: #9c6f1f;       /* sourcing badge */
  --gold-wash: #f3ead3;
  --sky: #8c9a84;        /* sage */
  --shadow-sm: 0 4px 10px -6px rgba(45, 58, 49, 0.12);
  --shadow: 0 16px 34px -16px rgba(45, 58, 49, 0.20);
  --radius: 16px;        /* rounded (natural) */
  --radius-sm: 12px;
  --maxw: 1200px;
  --font: "Nunito Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-headline: "Fraunces", Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
/* visible keyboard focus (a11y) */
:focus-visible { outline: 2px solid var(--teal-ink); outline-offset: 2px; border-radius: 3px; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--teal-ink); outline-offset: 2px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  line-height: 1.55;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0; color: var(--ink); letter-spacing: -0.01em; }
/* display-serif headlines on editorial surfaces (constitution signature) */
.finder h1, .page-head h1, .section-head h2, .prose h2, .pdp .info h1,
h1.serif, h2.serif { font-family: var(--font-headline); letter-spacing: -0.005em; font-weight: 600; }
.finder h1 { line-height: 1.08; }
p { margin: 0; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px); }

/* ---------- Top notice ---------- */
.topbar {
  background: var(--teal-ink);
  color: #eafaf4;
  font-size: 13px;
  text-align: center;
  padding: 7px 16px;
}
.topbar strong { color: #fff; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(247, 249, 247, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 12px clamp(16px, 4vw, 40px);
  max-width: var(--maxw);
  margin: 0 auto;
}
.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 9px; flex: none;
  display: grid; place-items: center;
  background: var(--teal); color: #fff; box-shadow: var(--shadow-sm);
}
.brand-mark svg { width: 21px; height: 21px; }
.brand-name { display: flex; flex-direction: column; line-height: 1.02; }
.brand-name strong { font-family: var(--font-headline); font-weight: 600; font-size: 18px; letter-spacing: -0.01em; color: var(--ink); }
.brand-name small { font-weight: 600; font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.header-search { flex: 1; max-width: 420px; position: relative; }
.header-search input {
  width: 100%; border: 1px solid var(--line-strong); background: var(--panel);
  border-radius: var(--radius); padding: 9px 14px 9px 38px; font-size: 14px; color: var(--ink);
}
.header-search input:focus { outline: 2px solid var(--teal-wash); border-color: var(--teal); }
.header-search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--faint); }
.header-actions { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; }
.cart-btn {
  display: inline-flex; align-items: center; gap: 7px;
  border: 1px solid var(--line-strong); background: var(--panel); color: var(--ink);
  border-radius: var(--radius); padding: 8px 13px; font-size: 14px; font-weight: 600;
}
.cart-btn .cart-count {
  background: var(--coral); color: #fff; border-radius: 999px; min-width: 19px; height: 19px;
  display: inline-grid; place-items: center; font-size: 11.5px; font-weight: 700; padding: 0 5px;
}
.menu-toggle { display: none; border: 1px solid var(--line-strong); background: var(--panel); border-radius: var(--radius); width: 40px; height: 38px; align-items: center; justify-content: center; }
.menu-toggle svg { width: 20px; height: 20px; }

/* ---------- Primary nav ---------- */
.nav {
  border-bottom: 1px solid var(--line);
  background: var(--panel);
}
.nav-inner { display: flex; gap: 4px; max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px); overflow-x: auto; scrollbar-width: none; }
.nav-inner::-webkit-scrollbar { display: none; }
.nav-inner a {
  white-space: nowrap; padding: 12px 14px; font-size: 14px; font-weight: 600; color: var(--ink-soft);
  border-bottom: 2px solid transparent;
}
.nav-inner a:hover { color: var(--teal-ink); }
.nav-inner a.active { color: var(--teal-ink); border-bottom-color: var(--teal); }

/* ---------- Buttons (pill — constitution "Book Me" pill) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 9999px; padding: 11px 22px; font-size: 14px; font-weight: 700; border: 1px solid transparent;
  letter-spacing: 0.01em; transition: background .15s, border-color .15s, color .15s;
}
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-ink); }
.btn-ghost { background: var(--panel); color: var(--teal-ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--teal); color: var(--teal-ink); background: var(--teal-wash); }
.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-block { width: 100%; }

/* ---------- Breadcrumb ---------- */
.crumbs { font-size: 13px; color: var(--muted); padding: 16px 0 0; display: flex; gap: 7px; flex-wrap: wrap; }
.crumbs a:hover { color: var(--teal-ink); }
.crumbs span { color: var(--line-strong); }

/* ---------- Color-blocked section "rooms" (modern-editorial) ---------- */
.band-forest { background: var(--teal-wash); border-top: 1px solid #d7e1da; border-bottom: 1px solid #d7e1da; }
.band-terra { background: var(--coral-wash); border-top: 1px solid #efd8cb; }
.band-oat { background: var(--panel-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* ---------- Section headers ---------- */
.section { padding: 34px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(20px, 2.4vw, 26px); }
.section-head .eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: var(--teal-ink); margin-bottom: 6px; }
.section-head .more { font-size: 14px; font-weight: 600; color: var(--teal-ink); white-space: nowrap; }
.section-head .more:hover { text-decoration: underline; }
.section-sub { color: var(--muted); max-width: 640px; margin-top: 2px; font-size: 15px; }

/* ---------- Hero / problem finder (first screen, not marketing) ---------- */
.finder { padding: 30px 0 10px; position: relative; overflow: hidden; }
.finder .wrap { position: relative; z-index: 1; }
.hero-shape { position: absolute; top: -50px; right: clamp(-80px, -2vw, -20px); width: min(44vw, 480px); z-index: 0; pointer-events: none; }
.hero-shape svg { width: 100%; height: auto; }
.finder h1 { font-size: clamp(28px, 4.6vw, 52px); max-width: 720px; }
.finder .lede { color: var(--ink-soft); max-width: 620px; margin-top: 12px; font-size: clamp(15px, 1.6vw, 17px); }
/* hero: text + lifestyle image (clize-generated) */
.finder-top { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(28px, 5vw, 56px); align-items: center; padding-top: 6px; }
.finder-hero img { width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: 24px; box-shadow: var(--shadow); }
/* photo "shop by space" cards */
.spaces-ph { margin-top: 30px; }
.space-ph { display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .15s, box-shadow .15s, border-color .15s; }
.space-ph:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--teal); }
.sph-img { display: block; aspect-ratio: 4/3; background: var(--panel-2); }
.sph-img img { width: 100%; height: 100%; object-fit: cover; }
.sph-b { padding: 11px 13px 13px; display: flex; flex-direction: column; gap: 3px; }
.sph-b b { font-family: var(--font-headline); font-size: 15px; font-weight: 600; color: var(--ink); }
.sph-b span { font-size: 12px; color: var(--muted); }
@media (max-width: 860px) { .finder-top { grid-template-columns: 1fr; } .finder-hero { order: -1; } .finder-hero img { aspect-ratio: 16/10; } }
/* shop by product type — distinct icons, complements the room photos above */
.type-grid { display: grid; gap: 12px; grid-template-columns: repeat(5, 1fr); margin-top: 4px; }
.type-card { position: relative; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 14px; box-shadow: var(--shadow-sm); transition: transform .15s, box-shadow .15s, border-color .15s; }
.type-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--teal); }
.type-card .ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--teal-wash); color: var(--teal-ink); }
.type-card .ic svg { width: 22px; height: 22px; }
.tcard-b { display: flex; flex-direction: column; gap: 2px; }
.tcard-b b { font-family: var(--font-headline); font-size: 15px; font-weight: 600; color: var(--ink); line-height: 1.15; }
.tcard-b span { font-size: 12px; color: var(--muted); }
.tcard-tag { position: absolute; top: 10px; right: 10px; font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--coral-ink); background: var(--coral-wash); border-radius: 999px; padding: 2px 7px; }
/* collection-page hero header */
.col-header { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(24px, 4vw, 44px); align-items: center; }
.col-header .page-head { padding-top: 6px; }
.ch-img img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 20px; box-shadow: var(--shadow); }
@media (max-width: 860px) { .col-header { grid-template-columns: 1fr; } .ch-img { order: -1; } .ch-img img { aspect-ratio: 16/9; } }

@media (max-width: 1080px) { .type-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 680px) { .type-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 380px) { .type-grid { grid-template-columns: 1fr; } }
.pool-stat { margin-top: 14px; font-size: 13.5px; color: var(--muted); }
.pool-stat b { color: var(--ink); font-weight: 800; }
.pool-stat .pending { display: inline-block; background: var(--gold-wash); color: #8a5d10; border-radius: 999px; padding: 2px 10px; font-size: 12px; font-weight: 600; }
.ext-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 16px; }
.ext-label { font-size: 12.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.ext-chip { font-size: 13px; font-weight: 600; color: var(--ink-soft); background: var(--panel); border: 1px solid var(--line-strong); border-radius: 999px; padding: 6px 13px; }
.ext-chip:hover { border-color: var(--teal); color: var(--teal-ink); }
.space-grid {
  display: grid; gap: 12px; margin-top: 22px;
  grid-template-columns: repeat(6, 1fr);
}
.space-card {
  display: flex; flex-direction: column; gap: 10px; align-items: flex-start;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 14px; transition: border-color .15s, transform .15s, box-shadow .15s;
}
.space-card:hover { border-color: var(--teal); transform: translateY(-2px); box-shadow: var(--shadow); }
.space-card .ic { width: 40px; height: 40px; border-radius: 9px; display: grid; place-items: center; background: var(--teal-wash); color: var(--teal-ink); }
.space-card .ic svg { width: 22px; height: 22px; }
.space-card b { font-size: 14.5px; }
.space-card span { font-size: 12.5px; color: var(--muted); }

/* ---------- Product card ---------- */
.product-grid {
  display: grid; gap: 16px;
  grid-template-columns: repeat(4, 1fr);
}
.product-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.pcard {
  display: flex; flex-direction: column;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: border-color .15s, box-shadow .15s, transform .15s;
}
.pcard:hover { border-color: var(--line-strong); box-shadow: var(--shadow); transform: translateY(-2px); }
.pcard .media { position: relative; aspect-ratio: 1 / 1; background-color: var(--panel-2); }
.pcard .media img { width: 100%; height: 100%; object-fit: cover; }
.pcard .media .ph { width: 100%; height: 100%; }
/* placeholder shown for products without an image, and for images that fail to
   load (onerror adds .ph to the parent). Icon drawn via CSS so no markup needed. */
.ph {
  display: grid; place-items: center;
  background-color: var(--panel-2);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2397a4a0' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='7' width='18' height='13' rx='1.5'/%3E%3Cpath d='M3 11h18M9 7V4h6v3'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center; background-size: 40%;
}
.ph svg { display: none; }
.pcard .badge {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  font-size: 11px; font-weight: 700; letter-spacing: 0.02em;
  background: var(--coral); color: #fff; padding: 4px 9px; border-radius: 999px;
}
.pcard .badge.alt { background: var(--teal); }
.pcard .badge.gold { background: var(--gold); }
.pcard .badge.cand { background: rgba(255,255,255,0.92); color: var(--teal-ink); border: 1px solid var(--line-strong); font-weight: 600; }
.pcard .body { padding: 13px 13px 15px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.pcard .fitfor { font-size: 11.5px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--coral); }
.pcard .title { font-size: 14px; font-weight: 650; color: var(--ink); line-height: 1.32; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; word-break: break-word; }
.pcard .why { font-size: 13px; color: var(--muted); line-height: 1.42; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pcard .meta-row { display: flex; flex-wrap: wrap; gap: 5px; }
.tag { font-size: 11px; font-weight: 600; color: var(--ink-soft); background: var(--panel-2); border: 1px solid var(--line); border-radius: 5px; padding: 2px 7px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tag.plat { color: var(--teal-ink); background: var(--teal-wash); border-color: transparent; }
.tag.bucket { color: var(--muted); }
.pcard .foot { margin-top: auto; display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; padding-top: 6px; }
.cost { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.cost b { font-size: 16px; font-weight: 800; color: var(--ink); }
.cost .cl { font-size: 10.5px; font-weight: 600; letter-spacing: 0.03em; text-transform: uppercase; color: var(--faint); }
.cost .ship { font-size: 11.5px; color: var(--muted); }
.price { font-size: 16px; font-weight: 800; color: var(--ink); }
.price .est { font-size: 11px; font-weight: 600; color: var(--faint); }
/* load more + result toolbar */
.load-more-wrap { display: flex; justify-content: center; padding: 26px 0 8px; }
#loadMore { min-width: 240px; }

/* ---------- Solution / scenario cards ---------- */
.sol-grid { display: grid; gap: 14px; grid-template-columns: repeat(3, 1fr); }
.sol-card {
  display: flex; flex-direction: column; gap: 8px; padding: 18px;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.sol-card:hover { border-color: var(--teal); box-shadow: var(--shadow); transform: translateY(-2px); }
.sol-card .kicker { font-size: 11.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--coral-ink); }
.sol-card h3 { font-size: 17px; }
.sol-card p { font-size: 13.5px; color: var(--muted); }
.sol-card .go { font-size: 13.5px; font-weight: 700; color: var(--teal-ink); margin-top: 4px; }

/* ---------- Guide / best cards ---------- */
.guide-grid { display: grid; gap: 14px; grid-template-columns: repeat(3, 1fr); }
.guide-card {
  display: flex; flex-direction: column; gap: 6px; padding: 16px;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
}
.guide-card:hover { border-color: var(--teal); }
.guide-card .type { font-size: 11px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); }
.guide-card h3 { font-size: 15.5px; }
.guide-card p { font-size: 13px; color: var(--muted); }

/* ---------- Catalog layout (filters + grid) ---------- */
.catalog { display: grid; grid-template-columns: 248px 1fr; gap: 26px; align-items: start; padding: 22px 0 60px; }
.filters { position: sticky; top: 116px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 6px 16px 16px; }
.filter-group { padding: 14px 0; border-bottom: 1px solid var(--line); }
.filter-group:last-child { border-bottom: none; }
.filter-group h4 { font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin-bottom: 10px; }
.check { display: flex; align-items: center; gap: 9px; font-size: 13.5px; color: var(--ink-soft); padding: 4px 0; cursor: pointer; }
.check input { width: 15px; height: 15px; accent-color: var(--teal); }
.check .ct { margin-left: auto; font-size: 11.5px; color: var(--faint); }
.catalog-main {}
.catalog-toolbar { display: flex; align-items: center; gap: 12px; justify-content: space-between; margin-bottom: 16px; flex-wrap: wrap; }
.catalog-toolbar .count { font-size: 14px; color: var(--muted); }
.catalog-toolbar .count b { color: var(--ink); }
.catalog-toolbar select { border: 1px solid var(--line-strong); background: var(--panel); border-radius: var(--radius); padding: 8px 11px; font-size: 13.5px; color: var(--ink); }
.filter-toggle { display: none; }
.empty { padding: 50px 20px; text-align: center; color: var(--muted); border: 1px dashed var(--line-strong); border-radius: var(--radius); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.chip { display: inline-flex; align-items: center; gap: 6px; background: var(--teal-wash); color: var(--teal-ink); border-radius: 999px; padding: 5px 11px; font-size: 12.5px; font-weight: 600; border: none; }
.chip button { border: none; background: none; color: var(--teal-ink); font-size: 14px; line-height: 1; padding: 0; }
.chip.clear { background: none; color: var(--coral); }

/* ---------- Editorial content blocks ---------- */
.page-head { padding: 6px 0 8px; }
.page-head h1 { font-size: clamp(26px, 3.4vw, 38px); max-width: 820px; }
.page-head .lede { color: var(--ink-soft); max-width: 700px; margin-top: 12px; font-size: 16.5px; }
.page-head .meta { color: var(--faint); font-size: 13px; margin-top: 12px; }
.layout { display: grid; grid-template-columns: 1fr 300px; gap: 36px; align-items: start; padding: 8px 0 50px; }
.prose { font-size: 16px; color: var(--ink-soft); max-width: 740px; }
.prose > * + * { margin-top: 16px; }
.prose h2 { font-size: 22px; color: var(--ink); margin-top: 36px; }
.prose h3 { font-size: 18px; color: var(--ink); margin-top: 26px; }
.prose ul { padding-left: 20px; margin: 12px 0; }
.prose li { margin: 7px 0; }
.prose .callout { background: var(--teal-wash); border-left: 3px solid var(--teal); border-radius: var(--radius-sm); padding: 14px 16px; color: var(--ink-soft); font-size: 14.5px; }
.toc { position: sticky; top: 116px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.toc h4 { font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin-bottom: 10px; }
.toc a { display: block; font-size: 13.5px; color: var(--ink-soft); padding: 5px 0; }
.toc a:hover { color: var(--teal-ink); }

/* embedded product module inside content */
.pick-module { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin: 22px 0; }
.pick-module .ph-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 4px; }
.pick-module .ph-head h3 { font-size: 17px; }
.pick-module .ph-head .role { font-size: 12px; font-weight: 700; color: var(--coral-ink); text-transform: uppercase; letter-spacing: 0.04em; }
.pick-module .ph-sub { font-size: 13.5px; color: var(--muted); margin-bottom: 14px; }

/* comparison table */
.cmp-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); margin: 18px 0; }
table.cmp { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 620px; }
table.cmp th, table.cmp td { text-align: left; padding: 11px 13px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.cmp th { background: var(--panel-2); font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); font-weight: 700; }
table.cmp tr:last-child td { border-bottom: none; }
table.cmp .pname { font-weight: 700; color: var(--ink); }
table.cmp .winner { color: var(--teal-ink); font-weight: 700; }

/* FAQ */
.faq { margin: 18px 0; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius); padding: 0; margin-bottom: 10px; background: var(--panel); }
.faq summary { padding: 14px 16px; font-weight: 650; font-size: 15px; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--teal); font-weight: 800; font-size: 18px; }
.faq details[open] summary::after { content: "−"; }
.faq details > p { padding: 0 16px 15px; color: var(--muted); font-size: 14.5px; }

/* ---------- Product detail ---------- */
.pdp { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 36px; padding: 14px 0 40px; align-items: start; }
.pdp .gallery { position: sticky; top: 116px; }
.pdp .gallery .main { aspect-ratio: 1/1; background-color: var(--panel-2); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.pdp .gallery .main img, .pdp .gallery .main .ph { width: 100%; height: 100%; object-fit: cover; }
.pdp h1 { font-size: clamp(22px, 2.8vw, 30px); margin-top: 6px; }
.pdp .fitfor { font-size: 12px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--coral); }
.pdp .price-row { display: flex; align-items: baseline; gap: 10px; margin: 14px 0; }
.pdp .price-row .price { font-size: 28px; }
.pdp .price-row .note { font-size: 12.5px; color: var(--faint); }
.pdp .lead { font-size: 16px; color: var(--ink-soft); }
.spec-list { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin: 20px 0; }
.spec-list div { background: var(--panel); padding: 11px 14px; }
.spec-list dt { font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }
.spec-list dd { margin: 3px 0 0; font-size: 14px; font-weight: 600; color: var(--ink); }
.block { margin: 22px 0; }
.block h3 { font-size: 16px; margin-bottom: 9px; }
.block ul { padding-left: 19px; color: var(--ink-soft); font-size: 14.5px; }
.block li { margin: 6px 0; }
.notewarn { background: var(--gold-wash); border-left: 3px solid var(--gold); border-radius: var(--radius-sm); padding: 13px 15px; font-size: 14px; color: var(--ink-soft); }
.buybox { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 18px; }
.buybox .ship { font-size: 13px; color: var(--muted); margin: 10px 0; display: flex; gap: 8px; align-items: center; }
.buybox .ship svg { width: 20px; height: 20px; flex: none; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { background: var(--panel); border-top: 1px solid var(--line); margin-top: 30px; padding: 40px 0 30px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; }
.foot-grid h5 { font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin: 0 0 12px; }
.foot-grid a { display: block; font-size: 13.5px; color: var(--ink-soft); padding: 4px 0; }
.foot-grid a:hover { color: var(--teal-ink); }
.foot-grid p { font-size: 13.5px; color: var(--muted); }
.foot-bottom { border-top: 1px solid var(--line); margin-top: 28px; padding-top: 18px; font-size: 12.5px; color: var(--faint); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* ---------- Cart drawer ---------- */
.cart-overlay { position: fixed; inset: 0; background: rgba(20, 35, 31, 0.4); opacity: 0; visibility: hidden; transition: .2s; z-index: 60; }
.cart-overlay.open { opacity: 1; visibility: visible; }
.cart-drawer { position: fixed; top: 0; right: 0; height: 100%; width: min(380px, 100%); background: var(--panel); z-index: 61; transform: translateX(100%); transition: transform .24s ease; display: flex; flex-direction: column; box-shadow: -10px 0 40px rgba(20,35,31,.14); }
.cart-drawer.open { transform: translateX(0); }
.cart-drawer header { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.cart-drawer header h3 { font-size: 17px; }
.cart-drawer .close { border: none; background: none; font-size: 24px; line-height: 1; color: var(--muted); }
.cart-items { flex: 1; overflow-y: auto; padding: 10px 20px; }
.cart-item { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.cart-item img, .cart-item .ph { width: 56px; height: 56px; border-radius: var(--radius-sm); object-fit: cover; flex: none; background: var(--panel-2); }
.cart-item .ci-body { flex: 1; min-width: 0; }
.cart-item .ci-body b { font-size: 13.5px; font-weight: 650; display: block; line-height: 1.3; }
.cart-item .ci-body span { font-size: 12.5px; color: var(--muted); }
.cart-item .rm { border: none; background: none; color: var(--coral); font-size: 12px; align-self: flex-start; padding: 0; }
.cart-foot { border-top: 1px solid var(--line); padding: 16px 20px 20px; }
.cart-foot .row { display: flex; justify-content: space-between; font-size: 15px; margin-bottom: 12px; }
.cart-foot .row b { font-weight: 800; }
.cart-note { font-size: 12px; color: var(--faint); text-align: center; margin-top: 10px; }

/* ---------- Mobile nav panel ---------- */
.mnav { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .space-grid { grid-template-columns: repeat(3, 1fr); }
  .product-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 860px) {
  .catalog { grid-template-columns: 1fr; }
  .filters { position: static; display: none; }
  .filters.open { display: block; }
  .filter-toggle { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--line-strong); background: var(--panel); border-radius: var(--radius); padding: 9px 14px; font-size: 14px; font-weight: 600; }
  .layout { grid-template-columns: 1fr; }
  .toc { position: static; order: -1; }
  .pdp { grid-template-columns: 1fr; gap: 22px; }
  .pdp .gallery { position: static; }
  .sol-grid, .guide-grid { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .header-search { display: none; }
  .header-search.mobile { display: block; max-width: none; margin: 0 0 4px; }
  .menu-toggle { display: inline-flex; }
  .nav { display: none; }
  .product-grid, .product-grid.cols-3 { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .space-grid { grid-template-columns: repeat(2, 1fr); }
  .sol-grid, .guide-grid { grid-template-columns: 1fr; }
  .spec-list { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; gap: 18px; }
  .pcard .why { -webkit-line-clamp: 3; }
  .mnav.open { display: block; border-bottom: 1px solid var(--line); background: var(--panel); }
  .mnav a { display: block; padding: 13px clamp(16px,4vw,40px); font-size: 15px; font-weight: 600; border-bottom: 1px solid var(--line); }
}
@media (max-width: 360px) {
  .product-grid, .product-grid.cols-3 { grid-template-columns: 1fr; }
}
