:root {
  --bg: #fbf8f3;
  --surface: #ffffff;
  --ink: #2b2a33;
  --ink-2: #5b5966;
  --ink-3: #8b8896;
  --line: #e9e3d9;
  --accent: #6b5bd2;
  --accent-ink: #4c3fb0;
  --lavender: #dcd6f7;
  --mint: #d3ecdd;
  --peach: #ffdccb;
  --butter: #fff0bd;
  --sky: #d3e7f7;
  --rose: #f9d7e3;
  --radius: 14px;
  --radius-s: 8px;
  --wrap: 1200px;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-head: "Fraunces", Georgia, "Times New Roman", serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: 15px; line-height: 1.55; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-ink); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 500; line-height: 1.15; margin: 0 0 .4em; letter-spacing: -0.01em; }
h1 { font-size: clamp(1.7rem, 1.2rem + 2vw, 2.6rem); }
h2 { font-size: clamp(1.3rem, 1rem + 1.2vw, 1.75rem); }
h3 { font-size: 1.05rem; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--ink-2); }
.n { color: var(--ink-3); font-size: .85em; }
.visually-hidden, .skip { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip:focus { position: fixed; top: 8px; left: 8px; width: auto; height: auto; clip: auto; background: var(--ink); color: #fff; padding: 8px 12px; border-radius: 6px; z-index: 100; }
.btn { display: inline-block; background: var(--ink); color: #fff; padding: 11px 20px; border-radius: 999px; font-weight: 600; border: 2px solid var(--ink); font-size: .95rem; cursor: pointer; font-family: inherit; }
.btn:hover { background: var(--accent-ink); border-color: var(--accent-ink); text-decoration: none; }
.btn:disabled { background: var(--ink-3); border-color: var(--ink-3); cursor: not-allowed; }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--lavender); border-color: var(--ink); color: var(--ink); }
.linkish { background: none; border: 0; padding: 0; color: var(--accent-ink); font: inherit; cursor: pointer; text-decoration: underline; }

/* Header */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.header-row { display: flex; align-items: center; gap: 24px; padding-top: 14px; padding-bottom: 12px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); }
.logo:hover { text-decoration: none; }
.logo-mark { width: 30px; height: 30px; border-radius: 9px; background: linear-gradient(135deg, var(--lavender), var(--mint)); box-shadow: inset 0 0 0 2px rgba(43,42,51,.9); }
.logo-text { font-family: var(--font-head); font-size: 1.45rem; letter-spacing: -.02em; }
.logo-text b { font-weight: 600; color: var(--accent-ink); }
.search { flex: 1; display: flex; max-width: 520px; margin: 0 auto; }
.search input { flex: 1; border: 1.5px solid var(--line); border-right: 0; border-radius: 999px 0 0 999px; padding: 9px 16px; font: inherit; background: var(--bg); min-width: 0; }
.search input:focus { outline: 2px solid var(--accent); outline-offset: -1px; }
.search button { border: 1.5px solid var(--line); border-radius: 0 999px 999px 0; background: var(--lavender); padding: 0 16px; cursor: pointer; color: var(--ink); }
.header-links { display: flex; gap: 18px; align-items: center; font-weight: 500; }
.header-links a { color: var(--ink); }
.pill { display: inline-block; background: var(--peach); border-radius: 999px; padding: 0 8px; font-size: .8rem; font-weight: 600; margin-left: 4px; }
.cat-nav { border-top: 1px solid var(--line); }
.cat-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.cat-nav ul::-webkit-scrollbar { display: none; }
.cat-nav a { display: block; padding: 10px 11px; color: var(--ink-2); font-weight: 500; font-size: .9rem; white-space: nowrap; border-bottom: 2px solid transparent; }
.cat-nav a:hover { color: var(--ink); border-bottom-color: var(--accent); text-decoration: none; }

main { padding: 24px 20px 56px; min-height: 60vh; }

/* Home */
.hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; background: var(--lavender); border-radius: 24px; padding: 48px 48px 40px; margin-bottom: 40px; overflow: hidden; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .75rem; font-weight: 600; color: var(--accent-ink); margin-bottom: 8px; }
.hero h1 { font-size: clamp(2.1rem, 1.4rem + 3vw, 3.4rem); max-width: 14ch; }
.lede { font-size: 1.08rem; color: var(--ink-2); max-width: 52ch; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }
.hero-art { position: relative; height: 340px; }
.hero-img { position: absolute; border-radius: 18px; background: #fff; object-fit: contain; box-shadow: 0 12px 32px rgba(43,42,51,.14); }
.hero-img-1 { width: 58%; height: auto; right: 0; top: 0; z-index: 2; }
.hero-img-2 { width: 44%; left: 0; bottom: 0; }
.hero-img-3 { width: 34%; right: 8%; bottom: -6%; z-index: 3; }
.section { margin: 44px 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.section-head h2 { margin: 0; }
.tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.tile a { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 18px 12px 16px; border-radius: var(--radius); color: var(--ink); height: 100%; transition: transform .15s; }
.tile a:hover { text-decoration: none; transform: translateY(-2px); }
.tile img { width: 110px; height: 110px; object-fit: contain; mix-blend-mode: multiply; margin-bottom: 10px; }
.tile-name { font-weight: 600; }
.tile-count { font-size: .8rem; color: var(--ink-2); }
.tint-lavender { background: var(--lavender); } .tint-mint { background: var(--mint); } .tint-peach { background: var(--peach); }
.tint-butter { background: var(--butter); } .tint-sky { background: var(--sky); } .tint-rose { background: var(--rose); }
.promo { border-radius: 24px; padding: 40px 48px; }
.promo h2 { margin-bottom: .3em; }
.promo p { max-width: 60ch; color: var(--ink-2); }

/* Product grid */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 18px; }
.section .grid { grid-template-columns: repeat(4, 1fr); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .15s; }
.card:hover { box-shadow: 0 8px 22px rgba(43,42,51,.09); }
.card-img { position: relative; display: block; aspect-ratio: 1; background: #fff; padding: 14px; }
.card-img img { width: 100%; height: 100%; object-fit: contain; }
.badge { position: absolute; top: 10px; left: 10px; background: var(--peach); color: var(--ink); border-radius: 999px; padding: 2px 9px; font-size: .72rem; font-weight: 600; }
.card-body { padding: 12px 14px 14px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card-brand { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); margin: 0; }
.card-title { font-family: var(--font-body); font-size: .93rem; font-weight: 500; margin: 0; line-height: 1.35; flex: 1; }
.card-title a { color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-price { margin: 4px 0 0; display: flex; gap: 8px; align-items: baseline; }
.price { font-weight: 600; }
.was { color: var(--ink-3); font-size: .88em; }

/* Listing */
.crumbs { font-size: .85rem; color: var(--ink-2); margin-bottom: 14px; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li + li::before { content: "/"; color: var(--ink-3); margin-right: 6px; }
.crumbs a { color: var(--ink-2); }
.listing-head { margin-bottom: 18px; }
.listing-head .lede { margin-bottom: 0; }
.subcats ul { list-style: none; margin: 0 0 28px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.subcats a { display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-s); padding: 8px 10px; color: var(--ink); font-weight: 500; font-size: .88rem; }
.subcats a:hover { border-color: var(--accent); text-decoration: none; }
.subcats img { width: 44px; height: 44px; object-fit: contain; flex: none; }
.subcats span { flex: 1; }
.subcats small { color: var(--ink-3); }
.sibling-nav ul { list-style: none; margin: 0 0 22px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.sibling-nav a, .sibling-nav span { display: inline-block; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-size: .85rem; }
.sibling-nav span { background: var(--ink); color: #fff; border-color: var(--ink); }
.sibling-nav a:hover { border-color: var(--accent); text-decoration: none; }
.listing { display: grid; grid-template-columns: 230px 1fr; gap: 32px; align-items: start; }
.facets { position: sticky; top: 108px; }
.facets-head { display: flex; justify-content: space-between; align-items: baseline; }
.facets-head h2 { font-size: 1.15rem; }
.clear { font-size: .82rem; }
.active-filters { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.active-filters a { display: inline-block; background: var(--lavender); color: var(--ink); border-radius: 999px; padding: 3px 10px; font-size: .8rem; font-weight: 500; }
.facet { border-top: 1px solid var(--line); padding: 12px 0; }
.facet h3 { font-family: var(--font-body); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-2); margin-bottom: 8px; }
.facet ul { list-style: none; margin: 0; padding: 0; }
.facet li a { display: flex; align-items: center; gap: 8px; padding: 4px 6px; margin: 0 -6px; border-radius: 6px; color: var(--ink); font-size: .9rem; }
.facet li a:hover { background: var(--bg); text-decoration: none; }
.facet li.selected a { background: var(--lavender); font-weight: 600; }
.facet .n { margin-left: auto; }
.swatch { width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgba(0,0,0,.15); flex: none; }
.results-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 14px; flex-wrap: wrap; }
.count { margin: 0; color: var(--ink-2); font-size: .9rem; }
.filters-link { display: none; }
.sort { display: flex; align-items: center; gap: 8px; font-size: .9rem; }
.sort select { font: inherit; border: 1.5px solid var(--line); border-radius: 8px; padding: 6px 10px; background: var(--surface); }
.empty { padding: 40px; text-align: center; color: var(--ink-2); background: var(--surface); border-radius: var(--radius); }
.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 32px; flex-wrap: wrap; }
.pagination a, .pagination span { display: inline-block; min-width: 38px; text-align: center; padding: 8px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); }
.pagination .current { background: var(--ink); color: #fff; border-color: var(--ink); }
.pagination .disabled { color: var(--ink-3); }
.pagination a:hover { border-color: var(--accent); text-decoration: none; }

/* Product */
.product { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.gallery-main { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.gallery-main img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.thumbs { list-style: none; margin: 12px 0 0; padding: 0; display: flex; gap: 8px; flex-wrap: wrap; }
.thumbs a { display: block; width: 72px; height: 72px; border: 2px solid var(--line); border-radius: 8px; background: #fff; padding: 4px; }
.thumbs a.current, .thumbs a:hover { border-color: var(--accent); }
.thumbs img { width: 100%; height: 100%; object-fit: contain; }
.buybox .brand { text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; font-weight: 600; margin-bottom: 6px; }
.buybox h1 { font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.1rem); }
.price-row { display: flex; align-items: baseline; gap: 12px; margin: 12px 0 6px; }
.price-row .price { font-size: 1.6rem; }
.save { background: var(--mint); border-radius: 999px; padding: 2px 10px; font-size: .8rem; font-weight: 600; }
.stock { font-size: .88rem; font-weight: 500; }
.stock.in { color: #2f7d4a; } .stock.out { color: #b0413e; }
.summary { color: var(--ink-2); font-size: 1.02rem; }
.buy { display: flex; align-items: center; gap: 12px; margin: 18px 0; flex-wrap: wrap; }
.buy label { font-size: .88rem; color: var(--ink-2); }
.buy select { font: inherit; border: 1.5px solid var(--line); border-radius: 8px; padding: 9px 10px; background: var(--surface); }
.perks { list-style: none; margin: 0; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-s); font-size: .88rem; color: var(--ink-2); display: grid; gap: 4px; }
.perks li::before { content: "✓"; color: #2f7d4a; margin-right: 8px; font-weight: 700; }
.product-body { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 40px; margin-top: 16px; }
.product-body h2 { font-size: 1.3rem; }
.description p { font-size: 1.02rem; max-width: 68ch; }
.highlights ul { padding-left: 18px; margin: 0 0 24px; }
.highlights li { margin-bottom: 6px; }
.specs table { border-collapse: collapse; width: 100%; font-size: .9rem; }
.specs th, .specs td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.specs th { color: var(--ink-2); font-weight: 500; width: 36%; }
.specs td { word-break: break-word; }

/* Index pages */
.cat-index { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.cat-block { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.cat-block h2 { font-size: 1.25rem; }
.cat-block ul { list-style: none; margin: 0; padding: 0; columns: 1; }
.cat-block li { padding: 3px 0; }
.brand-list { list-style: none; margin: 0; padding: 0; columns: 3; column-gap: 32px; }
.brand-list li { padding: 4px 0; break-inside: avoid; }
.prose { max-width: 68ch; }
.prose p { font-size: 1.02rem; }

/* Footer */
.site-footer { background: var(--surface); border-top: 1px solid var(--line); margin-top: 40px; padding: 40px 0 28px; font-size: .9rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer-brand { font-family: var(--font-head); font-size: 1.4rem; margin-bottom: 6px; }
.footer-brand b { color: var(--accent-ink); font-weight: 600; }
.footer-h { font-family: var(--font-body); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-2); }
.footer-list { list-style: none; margin: 0; padding: 0; }
.footer-list li { padding: 3px 0; }
.footer-list a { color: var(--ink); }
.footer-legal { margin-top: 32px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--ink-2); font-size: .82rem; position: relative; }
.credit { margin-bottom: 6px; }
.copyright { margin: 0; }
.tooltip-box { position: fixed; inset: auto; bottom: 90px; left: 50%; transform: translateX(-50%); width: min(460px, calc(100vw - 32px)); margin: 0; background: var(--ink); color: #fff; border: 0; border-radius: var(--radius); padding: 18px 20px; box-shadow: 0 16px 40px rgba(0,0,0,.28); font-size: .85rem; line-height: 1.5; }
.tooltip-box::after { content: ""; position: absolute; left: 50%; bottom: -8px; width: 16px; height: 16px; background: var(--ink); transform: translateX(-50%) rotate(45deg); }
.tooltip-box ul { list-style: none; margin: 0 0 12px; padding: 0; columns: 2; column-gap: 20px; }
.tooltip-box li { display: flex; justify-content: space-between; gap: 8px; break-inside: avoid; }
.tooltip-box li span { color: #c9c2f5; }
.tooltip-box a, .tooltip-box .linkish { color: #fff; }
.tooltip-box .close { position: absolute; top: 10px; right: 14px; text-decoration: none; opacity: .7; }
.tooltip-box::backdrop { background: rgba(43,42,51,.2); }

/* Responsive */
@media (max-width: 900px) {
  .section .grid { grid-template-columns: repeat(3, 1fr); }
  .hero { grid-template-columns: 1fr; padding: 32px 24px; }
  .hero-art { height: 260px; }
  .listing { grid-template-columns: 1fr; }
  .facets { position: static; order: 2; border-top: 2px solid var(--line); padding-top: 16px; }
  .filters-link { display: inline-block; font-weight: 500; }
  .product, .product-body { grid-template-columns: 1fr; gap: 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .brand-list { columns: 2; }
}
@media (max-width: 600px) {
  .header-row { flex-wrap: wrap; gap: 10px 16px; }
  .search { order: 3; flex-basis: 100%; max-width: none; }
  .header-links { margin-left: auto; }
  .grid, .section .grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .card-img { padding: 8px; }
  .footer-grid { grid-template-columns: 1fr; }
  .brand-list { columns: 1; }
  .tooltip-box ul { columns: 1; }
  .promo, .hero { border-radius: 16px; }
}
