/* CJ Store — storefront theme
   Quiet warm-neutral surface, tight editorial type, pill controls.
   No external fonts, no shadows on content, accent used sparingly. */

:root {
  --bg: #fdfcfb;
  --bg-subtle: #f6f4f1;
  --surface: #ffffff;
  --surface-raised: #ffffff;
  --border: #e3e1de;
  --border-strong: #cdcac6;
  --text: #1b1814;
  --text-muted: #6f6b67;
  --text-faint: #726e6a;
  --accent: #46556a;
  --accent-hover: #364559;
  --accent-subtle: #e7f1ff;
  --accent-contrast: #fcfcfc;
  --secondary: #0e7490;
  --secondary-subtle: #dcf5ff;
  --danger: #a33a2b;
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --radius-pill: 999px;
  --container: 1280px;
  --page-x: 16px;
  --page-x-md: 24px;
  --page-x-lg: 40px;
  --section-y: 56px;
  --section-y-lg: 88px;
  --font-sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --tracking-display: -0.035em;
  --tracking-tight: -0.02em;
  --tracking-caps: 0.08em;
  --motion: 180ms;
  --ease: cubic-bezier(.32, 0, .24, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  display: flex; flex-direction: column;
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  font-size: 15px;
  line-height: 1.5;
}
img { max-width: 100%; display: block; }
h1, h2, h3 { text-wrap: balance; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
::selection { background: var(--accent-subtle); }
:where(a, button, input, select, textarea, summary):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.page {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--page-x);
}
@media (min-width: 768px) { .page { padding-inline: var(--page-x-md); } }
@media (min-width: 1024px) { .page { padding-inline: var(--page-x-lg); } }
main { flex: 1 0 auto; }
main.page { padding-block: 0 72px; }
.muted { color: var(--text-muted); }
.small { font-size: 13px; }
.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.2;
  font-weight: 500;
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--text-faint);
}
.skip-link {
  position: fixed; left: 12px; top: -40px; z-index: 100;
  padding: 8px 12px; background: var(--text); color: var(--bg);
  border-radius: var(--radius-sm); transition: top var(--motion) var(--ease);
}
.skip-link:focus { top: 12px; }

/* Header */
.announce {
  display: flex; align-items: center; justify-content: center;
  min-height: 36px; padding: 6px 16px;
  background: var(--text); color: var(--bg);
  font-family: var(--font-mono); font-size: 10px; font-weight: 500;
  letter-spacing: var(--tracking-caps); text-transform: uppercase; text-align: center;
}
.site-header {
  position: sticky; top: 0; z-index: 30;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  transition: transform 220ms var(--ease);
  will-change: transform;
}
.site-header.is-hidden { transform: translateY(-100%); }
.header-bar {
  display: flex; align-items: center; gap: 22px;
  min-height: 72px;
}
.wordmark {
  display: inline-flex; align-items: center; gap: 10px;
  flex: 0 0 auto; color: var(--text); letter-spacing: var(--tracking-tight);
}
.wordmark:hover { color: var(--text); }
.wordmark-mark {
  display: grid; place-items: center;
  width: 30px; height: 30px;
  border-radius: var(--radius-sm);
  background: var(--text); color: var(--bg);
  font-family: var(--font-mono); font-size: 11px; font-weight: 500;
  letter-spacing: .04em;
}
.wordmark-text { font-size: 17px; font-weight: 600; white-space: nowrap; }
.primary-nav { display: flex; align-items: center; gap: 22px; min-width: 0; }
.primary-nav a {
  font-size: 14px; font-weight: 500; color: var(--text-muted);
  padding-block: 10px; white-space: nowrap;
}
.primary-nav a:hover, .primary-nav a.active { color: var(--text); text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
.header-tools { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.search-field {
  display: flex; align-items: center; gap: 8px;
  height: 40px; width: 210px; padding-inline: 12px;
  border: 1px solid var(--border); border-radius: var(--radius-pill);
  background: var(--surface); color: var(--text-faint);
  transition: border-color var(--motion) var(--ease);
}
.search-field:focus-within, .search-field:hover { border-color: var(--border-strong); color: var(--text-muted); }
.search-field .search-icon { flex: 0 0 auto; width: 16px; height: 16px; }
.search-field input {
  min-width: 0; width: 100%; height: 100%; border: 0; outline: 0;
  background: transparent; font-size: 13px; color: var(--text);
}
.search-field input::placeholder { color: var(--text-faint); }
.search-field button {
  flex: 0 0 28px; width: 28px; height: 100%; border: 0; background: transparent; padding: 0;
  color: var(--text-faint); display: grid; place-items: center;
}
.search-field button:hover { color: var(--text); }
.cart-link {
  display: inline-flex; align-items: center; gap: 7px;
  padding-block: 8px; font-size: 14px; font-weight: 500; white-space: nowrap;
}
.cart-link svg { width: 19px; height: 19px; }
.cart-count {
  display: inline-grid; place-items: center; min-width: 20px; height: 20px;
  padding-inline: 6px; border-radius: var(--radius-pill);
  background: var(--border); color: var(--text-faint);
  font-family: var(--font-mono); font-size: 10px; font-weight: 500;
}
.cart-count.has-items { background: var(--accent); color: var(--accent-contrast); }
.mobile-search { display: none; }
/* Hamburger menu */
.menu-toggle {
  display: grid; place-content: center; gap: 4px;
  flex: 0 0 auto; width: 40px; height: 40px; padding: 0;
  border: 1px solid var(--border); border-radius: 50%;
  background: var(--surface); color: var(--text);
  transition: border-color var(--motion) var(--ease), background var(--motion) var(--ease);
}
.menu-toggle:hover { border-color: var(--border-strong); background: var(--bg-subtle); }
.menu-toggle span { display: block; width: 16px; height: 1px; background: currentColor; }
.menu-close {
  display: grid; place-items: center; width: 38px; height: 38px; padding: 0;
  border: 1px solid var(--border); border-radius: 50%; background: transparent; color: var(--text);
}
.menu-close:hover { border-color: var(--text); }
.menu-backdrop {
  position: fixed; inset: 0; z-index: 50;
  background: rgba(27, 24, 20, .38);
  opacity: 0; transition: opacity 220ms var(--ease);
}
.menu-backdrop[hidden] { display: none; }
.menu-backdrop.is-open { opacity: 1; }
body.menu-open { overflow: hidden; }
.site-menu {
  position: fixed; inset: 0 auto 0 0; z-index: 60;
  display: flex; flex-direction: column;
  width: min(390px, 92vw); height: 100dvh;
  background: var(--bg); border-right: 1px solid var(--border);
  visibility: hidden; transform: translateX(-102%);
  transition: transform 240ms var(--ease), visibility 0s linear 240ms;
}
.site-menu.is-open { visibility: visible; transform: none; transition: transform 240ms var(--ease), visibility 0s; }
.site-menu-head {
  display: flex; align-items: center; justify-content: space-between;
  flex: 0 0 auto; padding: 16px 20px; border-bottom: 1px solid var(--border);
  background: var(--bg);
}
.site-menu-body { overflow-y: auto; padding: 20px 20px 48px; }
.site-menu-section + .site-menu-section { margin-top: 30px; }
.menu-section-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 7px; }
.menu-view-all { padding-block: 5px; color: var(--accent); font-family: var(--font-mono); font-size: 10px; letter-spacing: var(--tracking-caps); text-transform: uppercase; }
.menu-view-all:hover { color: var(--accent-hover); text-decoration: underline; text-underline-offset: 4px; }
.menu-categories { display: flex; flex-direction: column; }
.menu-cat-row {
  display: flex; align-items: center; gap: 10px;
  width: 100%; padding: 12px 0; border-bottom: 1px solid var(--border);
  color: var(--text); font-size: 14px; font-weight: 500;
}
.menu-cat-row:hover { color: var(--accent); text-decoration: none; }
.menu-cat-row img { flex: 0 0 auto; width: 22px; height: 22px; object-fit: contain; }
.menu-cat-name { min-width: 0; }
.menu-count { margin-left: auto; color: var(--text-faint); font-family: var(--font-mono); font-size: 10px; font-weight: 400; }
summary.menu-cat-row { cursor: pointer; list-style: none; }
summary.menu-cat-row::-webkit-details-marker { display: none; }
summary.menu-cat-row::after { content: "+"; margin-left: 4px; color: var(--text-muted); font-family: var(--font-mono); font-size: 13px; font-weight: 400; }
.menu-group[open] > summary.menu-cat-row::after { content: "−"; }
.menu-sub { padding: 3px 0 10px 32px; border-bottom: 1px solid var(--border); }
.menu-sub a { display: block; padding: 8px 0; color: var(--text-muted); font-size: 13px; }
.menu-sub a:hover { color: var(--text); text-decoration: none; }
.menu-sub .menu-sub-all { color: var(--accent); font-weight: 500; }
.menu-links { display: flex; flex-direction: column; }
.menu-links a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--border); font-size: 14px; font-weight: 500; }
.menu-links a:hover { color: var(--accent); text-decoration: none; }
.menu-links a span { color: var(--text-faint); font-family: var(--font-mono); font-size: 11px; }
.menu-contact a { display: inline-block; padding-block: 8px; color: var(--text-muted); font-size: 13px; overflow-wrap: anywhere; }
.menu-contact a:hover { color: var(--text); }


/* Flash + forms */
.flash-wrap { padding-top: 20px; }
.flash {
  padding: 12px 14px; border: 1px solid var(--border);
  border-radius: var(--radius-sm); background: var(--surface);
  font-size: 14px; margin-bottom: 8px;
}
.flash.error { border-color: #e7c5bf; background: #fff7f5; color: #7a2d21; }
.flash.success { border-color: #c9e3d7; background: #f4fbf7; color: #225c43; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field > span, .field-label { font-size: 12px; font-weight: 600; color: var(--text-muted); }
.field input, .field select, .field textarea, .filter-bar input, .filter-bar select {
  width: 100%; min-height: 44px; padding: 10px 12px;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--surface); font-size: 15px; outline: none;
  transition: border-color var(--motion) var(--ease);
}
.field textarea { min-height: 100px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus,
.filter-bar input:focus, .filter-bar select:focus { border-color: var(--border-strong); outline: 2px solid var(--accent); outline-offset: 1px; }
.field input::placeholder, .filter-bar input::placeholder { color: var(--text-faint); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 11px 20px;
  border: 1px solid transparent; border-radius: var(--radius-pill);
  background: var(--text); color: var(--bg);
  font-size: 14px; font-weight: 500; line-height: 1; white-space: nowrap;
  transition: background var(--motion) var(--ease), color var(--motion) var(--ease), border-color var(--motion) var(--ease), transform var(--motion) var(--ease);
}
.btn:hover { background: var(--accent); color: var(--accent-contrast); }
.btn:active { transform: scale(.985); }
.btn:disabled { opacity: .4; cursor: not-allowed; transform: none; }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn.ghost:hover { background: var(--bg-subtle); color: var(--text); }
.btn.buy { min-height: 50px; width: 100%; }
.btn.secondary { background: var(--accent); color: var(--accent-contrast); }
.btn.secondary:hover { background: var(--accent-hover); }
.text-link {
  padding-block: 5px;
  font-family: var(--font-mono); font-size: 11px; font-weight: 500;
  letter-spacing: var(--tracking-caps); text-transform: uppercase;
  color: var(--accent); white-space: nowrap;
}
.text-link:hover { color: var(--accent-hover); text-decoration: underline; text-underline-offset: 4px; }
.link { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.danger { color: var(--danger); }
button.link { border: 0; background: transparent; padding: 0; font-size: 13px; text-decoration: underline; }

/* Hero + section rhythm */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(110% 100% at 92% 2%, var(--accent-subtle) 0%, transparent 58%),
    radial-gradient(90% 80% at 0% 100%, var(--secondary-subtle) 0%, transparent 58%),
    var(--bg-subtle);
  border-bottom: 1px solid var(--border);
}
.hero-inner {
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center;
  gap: 17px; min-height: min(62svh, 560px); padding-block: 54px;
}
.hero-rule { width: 44px; height: 2px; border-radius: 2px; background: var(--secondary); }
.hero h1 {
  max-width: 16ch; margin: 0;
  font-size: clamp(38px, 7vw, 68px); line-height: 1.01;
  font-weight: 600; letter-spacing: var(--tracking-display);
}
.hero .lede { max-width: 48ch; margin: 0; font-size: 16px; line-height: 1.55; color: var(--text-muted); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 4px; }
.hero-note { font-family: var(--font-mono); font-size: 10px; letter-spacing: var(--tracking-caps); text-transform: uppercase; color: var(--text-muted); }
.section-y { padding-block: var(--section-y); }
@media (min-width: 1024px) { .section-y { padding-block: var(--section-y-lg); } }
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 20px 28px; flex-wrap: wrap; margin-bottom: 26px;
}
.section-head h1, .section-head h2 { margin: 3px 0 0; font-size: clamp(24px, 3vw, 32px); line-height: 1.1; font-weight: 600; letter-spacing: var(--tracking-tight); }
.section-head h1 { font-size: clamp(28px, 4vw, 38px); }
.section-head p { margin: 7px 0 0; max-width: 52ch; color: var(--text-muted); font-size: 14px; }
.section-head .more { padding-block: 5px; font-family: var(--font-mono); font-size: 11px; letter-spacing: var(--tracking-caps); text-transform: uppercase; color: var(--accent); }
.section-head .more:hover { text-decoration: underline; text-underline-offset: 4px; }
.eyebrow + h1, .eyebrow + h2 { margin-top: 4px; }
.breadcrumb {
  display: flex; flex-wrap: wrap; align-items: center; gap: 7px;
  padding-block: 20px; color: var(--text-faint);
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .04em; text-transform: uppercase;
}
.breadcrumb a { padding-block: 5px; color: var(--text-muted); }
.breadcrumb a:hover { color: var(--text); }
.breadcrumb span { color: var(--text-faint); }

/* Collection / category tiles */
.collection-tiles {
  display: flex; gap: 12px; overflow-x: auto;
  scroll-snap-type: x proximity; scrollbar-width: none;
  scroll-padding-inline: 16px;
  margin-inline: -16px; padding-inline: 16px;
}
.collection-tiles::-webkit-scrollbar { display: none; }
.collection-tiles > * { flex: 0 0 44%; scroll-snap-align: start; }
@media (min-width: 640px) {
  .collection-tiles { margin-inline: -24px; padding-inline: 24px; scroll-padding-inline: 24px; }
  .collection-tiles > * { flex-basis: 30%; }
}
@media (min-width: 1024px) {
  .collection-tiles {
    display: grid; grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 16px; overflow: visible; margin-inline: 0; padding-inline: 0;
  }
  .collection-tiles > * { flex: none; }
}
.collection-tile { display: flex; flex-direction: column; gap: 9px; min-width: 0; }
.collection-media {
  display: grid; place-items: center; aspect-ratio: 3 / 4;
  overflow: hidden; border-radius: var(--radius);
  background:
    radial-gradient(100% 100% at 80% 10%, var(--accent-subtle) 0%, transparent 65%),
    var(--bg-subtle);
  border: 1px solid var(--border);
  transition: transform var(--motion) var(--ease), border-color var(--motion) var(--ease);
}
.collection-media img { width: 58px; height: 58px; object-fit: contain; }
.collection-tile:hover .collection-media { transform: translateY(-2px); border-color: var(--border-strong); }
.collection-name { font-size: 15px; font-weight: 500; line-height: 1.3; }
.collection-meta { font-size: 12px; color: var(--text-muted); }
.category-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.category-tile {
  display: flex; align-items: center; gap: 13px; min-height: 72px;
  padding: 13px 15px; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface); transition: border-color var(--motion) var(--ease), transform var(--motion) var(--ease);
}
.category-tile:hover { border-color: var(--border-strong); transform: translateY(-1px); text-decoration: none; }
.category-tile img, .category-initial {
  width: 38px; height: 38px; flex: 0 0 auto;
}
.category-tile img { object-fit: contain; }
.category-initial {
  display: grid; place-items: center; border-radius: 50%;
  background: var(--bg-subtle); color: var(--text-muted);
  font-family: var(--font-mono); font-size: 15px; font-weight: 500;
}
.category-tile div { min-width: 0; }
.category-tile span { display: block; font-size: 14px; font-weight: 500; line-height: 1.3; }
.category-tile small { color: var(--text-muted); font-size: 12px; }
.category-hero { display: flex; align-items: center; gap: 16px; padding-block: 8px 0; }
.category-hero-img { width: 64px; height: 64px; object-fit: contain; flex: 0 0 auto; background: var(--bg-subtle); border-radius: 50%; padding: 9px; }
.category-hero h1 { margin: 0 0 3px; font-size: clamp(28px, 4vw, 40px); line-height: 1.05; font-weight: 600; letter-spacing: var(--tracking-tight); }
.category-children { padding-top: 30px; }
.category-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  min-height: 34px; padding: 7px 12px;
  border: 1px solid var(--border-strong); border-radius: var(--radius-pill);
  color: var(--text-muted); background: transparent;
  font-size: 12px; font-weight: 500; white-space: nowrap;
}
.chip:hover { color: var(--text); background: var(--bg-subtle); text-decoration: none; }
.chip.active { background: var(--text); border-color: var(--text); color: var(--bg); }
.chip span {
  display: inline-grid; place-items: center; min-width: 18px; height: 18px;
  padding-inline: 4px; border-radius: var(--radius-pill);
  background: var(--bg-subtle); color: var(--text-muted);
  font-family: var(--font-mono); font-size: 10px;
}
.chip.active span { background: rgba(255,255,255,.2); color: var(--bg); }

.gift-band {
  display: grid; gap: 32px; padding: 28px;
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  background: var(--surface);
}
.gift-band h2 {
  margin: 7px 0 10px; font-size: clamp(25px, 3vw, 34px);
  line-height: 1.06; font-weight: 600; letter-spacing: var(--tracking-tight);
}
.gift-band p { max-width: 44ch; margin: 0 0 16px; font-size: 14px; line-height: 1.65; }
.trust-list { display: flex; flex-direction: column; }
.trust-item { display: flex; align-items: flex-start; gap: 16px; padding: 15px 0; border-top: 1px solid var(--border); }
.trust-item:last-child { border-bottom: 1px solid var(--border); }
.trust-index { padding-top: 2px; font-family: var(--font-mono); font-size: 10px; letter-spacing: .06em; color: var(--text-faint); }
.trust-item strong { display: block; margin-bottom: 2px; font-size: 14px; font-weight: 500; }
.trust-item .trust-index { display: block; padding-top: 2px; font-family: var(--font-mono); font-size: 10px; letter-spacing: .06em; color: var(--text-faint); }
.trust-item span { display: block; color: var(--text-muted); font-size: 13px; line-height: 1.5; }
@media (min-width: 900px) {
  .gift-band { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: center; gap: 48px; padding: 40px; }
}

/* Product cards + grids */
.product-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 34px 16px;
}
.product-card { display: flex; flex-direction: column; gap: 11px; min-width: 0; }
.product-card:hover { text-decoration: none; }
.product-card .thumb {
  aspect-ratio: 4 / 5; overflow: hidden;
  border-radius: var(--radius); background: var(--bg-subtle);
}
.product-card .thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 300ms var(--ease);
}
.product-card:hover .thumb img { transform: scale(1.025); }
.card-body { display: flex; flex: 1; flex-direction: column; gap: 3px; }
.card-body h3 {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; margin: 0; font-size: 15px; line-height: 1.35; font-weight: 500;
}
.product-card:hover .card-body h3 { text-decoration: underline; text-underline-offset: 3px; }
.card-body .muted { margin: 0; }
.card-body .price { margin: auto 0 0; padding-top: 7px; font-size: 15px; font-weight: 500; }
@media (max-width: 1023px) { .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 720px) { .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 12px; } }

/* Search / filters */
.filter-bar {
  display: grid; grid-template-columns: minmax(160px, 1fr) 100px 100px auto;
  gap: 9px; align-items: end; margin: 0 0 30px; padding: 14px;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface);
}
.filter-bar input { min-height: 40px; font-size: 14px; }
.filter-bar .btn { min-height: 40px; padding-inline: 18px; }
@media (max-width: 640px) { .filter-bar { grid-template-columns: 1fr 1fr; } .filter-bar input:first-child { grid-column: 1 / -1; } .filter-bar .btn { grid-column: 1 / -1; } }
.empty {
  margin-bottom: 72px; padding: 44px 20px; border: 1px dashed var(--border-strong);
  border-radius: var(--radius); text-align: center; color: var(--text-muted);
}
.empty h1 { margin: 0 0 8px; color: var(--text); font-size: 26px; font-weight: 600; letter-spacing: var(--tracking-tight); }
.pagination {
  display: flex; align-items: center; justify-content: center; gap: 18px;
  padding-top: 38px; color: var(--text-muted); font-size: 13px;
}
.pagination a { padding-block: 6px; color: var(--text); border-bottom: 1px solid var(--border-strong); }
.pagination a:hover { border-color: var(--text); text-decoration: none; }

/* Product detail */
.product-layout {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr);
  gap: 56px; align-items: start; padding-bottom: 72px;
}
.gallery { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.main-image { aspect-ratio: 4 / 5; overflow: hidden; background: var(--bg-subtle); border-radius: var(--radius); }
.main-image img { width: 100%; height: 100%; object-fit: cover; }
.thumbs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.thumbs::-webkit-scrollbar { display: none; }
.thumb-btn {
  flex: 0 0 66px; width: 66px; height: 82px; padding: 0;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  overflow: hidden; background: var(--bg-subtle); opacity: .72;
}
.thumb-btn img { width: 100%; height: 100%; object-fit: cover; }
.thumb-btn.active, .thumb-btn:hover { opacity: 1; border-color: var(--text); }
.product-info { position: sticky; top: 130px; display: flex; flex-direction: column; gap: 14px; }
.product-info h1 { margin: 0; font-size: clamp(25px, 3vw, 34px); line-height: 1.08; font-weight: 600; letter-spacing: var(--tracking-tight); overflow-wrap: break-word; }
.price-lg { font-size: 21px; line-height: 1.2; font-weight: 500; }
.stock { margin: -5px 0 2px; font-size: 13px; color: var(--text-muted); }
.options { display: flex; flex-direction: column; gap: 11px; padding-block: 4px; }
.buy-row { display: flex; align-items: flex-end; gap: 10px; }
.buy-row .qty { width: 86px; flex: 0 0 auto; }
.buy-row .buy { flex: 1; }
.attributes { border-top: 1px solid var(--border); padding-top: 14px; }
.attributes summary { display: flex; justify-content: space-between; padding-block: 8px; cursor: pointer; font-size: 14px; font-weight: 500; }
.attributes summary::after { content: "+"; color: var(--text-muted); }
.attributes[open] summary::after { content: "−"; }
.attributes dl { margin: 14px 0 0; display: flex; flex-direction: column; gap: 9px; }
.attributes dl > div { display: flex; justify-content: space-between; gap: 18px; font-size: 13px; }
.attributes dt { color: var(--text-muted); }
.attributes dd { margin: 0; text-align: right; }
.description { max-width: 76ch; color: var(--text-muted); font-size: 15px; line-height: 1.7; }
@media (max-width: 900px) {
  .product-layout { grid-template-columns: 1fr; gap: 30px; }
  .product-info { position: static; }
  .main-image { aspect-ratio: 1 / 1; }
}

/* Cart + checkout */
.cart-layout, .checkout-layout {
  display: grid; grid-template-columns: minmax(0, 1fr) 360px;
  gap: 48px; align-items: start; padding-bottom: 72px;
}
.cart-form { min-width: 0; }
.cart-line {
  display: grid; grid-template-columns: 78px minmax(0, 1fr) 90px 100px auto;
  gap: 14px; align-items: center; padding-block: 16px;
  border-bottom: 1px solid var(--border);
}
.cart-line:first-child { border-top: 1px solid var(--border); }
.cart-line .qty-input { width: 70px; min-height: 36px; }
.cart-line img { width: 78px; height: 96px; object-fit: cover; border-radius: var(--radius-sm); background: var(--bg-subtle); }
.cart-line .cart-name { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cart-line .cart-name a { font-size: 14px; font-weight: 500; }
.qty-input {
  width: 70px; min-height: 36px; padding: 5px 8px;
  border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface);
}
.cart-line-price { font-size: 14px; font-weight: 500; }
.cart-actions { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding-top: 20px; flex-wrap: wrap; }
.cart-summary, .order-summary {
  position: sticky; top: 130px; padding: 22px;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface);
}
.cart-summary h2, .order-summary h2 { margin: 6px 0 17px; font-size: 22px; font-weight: 600; letter-spacing: var(--tracking-tight); }
.cart-summary p, .order-summary p { display: flex; justify-content: space-between; gap: 14px; margin: 0 0 12px; font-size: 14px; }
.cart-summary .btn { width: 100%; margin-top: 9px; }
.summary-line { display: flex; justify-content: space-between; gap: 16px; padding-block: 7px; border-bottom: 1px solid var(--border); font-size: 13px; }
.summary-line strong { white-space: nowrap; font-weight: 500; }
.summary-line.total { border-bottom: 0; padding-top: 14px; font-size: 15px; }
.checkout-form fieldset { margin: 0 0 26px; padding: 0; border: 0; }
.checkout-form legend { width: 100%; padding-bottom: 12px; border-bottom: 1px solid var(--border); margin-bottom: 15px; font-size: 18px; font-weight: 600; letter-spacing: var(--tracking-tight); }
.checkout-form .field { margin-bottom: 13px; }
.checkout-form .buy { width: 100%; margin-top: 5px; }
.order-summary { font-size: 14px; }
.totals { max-width: 420px; margin-top: 22px; }
.totals p { display: flex; justify-content: space-between; gap: 20px; margin: 8px 0; }
.totals .total { padding-top: 12px; border-top: 1px solid var(--border); font-size: 17px; }
.notice { padding: 18px 20px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); margin: 22px 0; }
.order-confirm { max-width: 760px; padding-block: 20px 72px; }
.order-confirm h1 { margin: 0 0 12px; font-size: clamp(32px, 5vw, 52px); letter-spacing: var(--tracking-display); font-weight: 600; }
.order-confirm h2 { margin-top: 32px; font-size: 21px; letter-spacing: var(--tracking-tight); }
.status-line { color: var(--text-muted); }
.address { color: var(--text-muted); line-height: 1.7; }
@media (max-width: 900px) {
  .cart-layout, .checkout-layout { grid-template-columns: 1fr; gap: 28px; }
  .cart-summary, .order-summary { position: static; }
  .cart-line { grid-template-columns: 62px minmax(0, 1fr) 70px; gap: 10px; }
  .cart-line img { width: 62px; height: 78px; }
  .cart-line-price { grid-column: 2; }
  .cart-line .qty-input { grid-column: 3; grid-row: 2; }
  .cart-line .link.danger { grid-column: 2 / -1; justify-self: start; }
}

/* Category directory */
.category-directory-hero { min-height: 0; padding-block: 26px 12px; background: transparent; border: 0; }
.category-directory-hero .hero-inner { min-height: 0; padding-block: 0; gap: 12px; align-items: flex-start; }
.category-directory-hero h1 { margin: 0; font-size: clamp(30px, 4vw, 42px); font-weight: 600; letter-spacing: var(--tracking-tight); line-height: 1.05; }
.category-directory-hero .lede { margin: 0; max-width: 56ch; color: var(--text-muted); font-size: 15px; line-height: 1.6; }
.category-children { padding-block: 36px 0; }
.category-products { padding-block: 34px 72px; }
.product-description { border-top: 1px solid var(--border); }
.order-items { margin-bottom: 18px; }
.status-line { color: var(--text-muted); }
.cart-lines { border-top: 1px solid var(--border); }
.category-tree-root { margin: 24px 0 30px; }
.category-tree-root:last-child { margin-bottom: 72px; }
.tree-root-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.tree-root-head img { width: 42px; height: 42px; object-fit: contain; background: var(--bg-subtle); border-radius: 50%; padding: 5px; }
.tree-root-head h2 { margin: 0 0 2px; font-size: 21px; font-weight: 600; letter-spacing: var(--tracking-tight); }
.tree-root-head p { margin: 0; }
.tree-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(245px, 1fr)); gap: 9px; align-items: start; }
.tree-branch { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); padding: 0 13px; }
.tree-branch summary { display: flex; align-items: center; gap: 8px; padding: 12px 0; cursor: pointer; font-size: 13px; font-weight: 600; list-style: none; }
.tree-branch summary::-webkit-details-marker { display: none; }
.tree-branch summary::before { content: "+"; width: 10px; color: var(--text-muted); }
.tree-branch[open] summary::before { content: "−"; }
.tree-branch summary img { width: 22px; height: 22px; object-fit: contain; }
.tree-branch summary > span { margin-left: auto; color: var(--text-faint); font-family: var(--font-mono); font-size: 10px; font-weight: 400; white-space: nowrap; }
.tree-leaves { max-height: 240px; overflow: auto; list-style: none; margin: 0; padding: 3px 0 11px; border-top: 1px solid var(--border); }
.tree-leaves li a { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 32px; padding: 7px 0; color: var(--text-muted); font-size: 12px; }
.tree-leaves li a:hover { color: var(--text); text-decoration: none; }
.tree-count { font-family: var(--font-mono); font-size: 10px; color: var(--text-faint); }
.tree-empty { margin: 0 0 12px; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); margin-top: auto; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px 32px; padding-block: 56px 40px; }
.footer-brand { display: flex; flex-direction: column; gap: 10px; max-width: 34ch; }
.footer-brand p { margin: 0; color: var(--text-muted); font-size: 14px; line-height: 1.6; }
.footer-col { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.footer-col .eyebrow { margin-bottom: 5px; }
.footer-col a, .footer-col span.footer-text { font-size: 14px; color: var(--text-muted); }
.footer-col a { padding-block: 3px; }
.footer-col a:hover { color: var(--text); }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 10px 24px; padding-block: 18px 28px; border-top: 1px solid var(--border); color: var(--text-faint); font-size: 12px; }
.footer-bottom .footer-meta { margin-left: auto; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px 20px; } .footer-brand { grid-column: 1 / -1; } }

/* Responsive chrome */
@media (max-width: 1050px) {
  .primary-nav { display: none; }
  .search-field { width: 165px; }
}
@media (max-width: 640px) {
  .header-bar { min-height: 60px; gap: 12px; }
  .wordmark-text { font-size: 16px; }
  .search-field { display: none; }
  .mobile-search { display: inline-grid; place-items: center; width: 40px; height: 40px; color: var(--text); }
  .mobile-search svg { width: 18px; height: 18px; }
  .hero-inner { min-height: 440px; padding-block: 38px; }
  .hero h1 { font-size: clamp(36px, 12vw, 54px); }
  .section-y { padding-block: 40px; }
  .product-info { gap: 12px; }
  .two { grid-template-columns: 1fr; }
  .cart-line { grid-template-columns: 58px minmax(0, 1fr) auto; align-items: start; }
  .cart-line img { width: 58px; height: 72px; grid-row: span 2; }
  .cart-line .cart-name { grid-column: 2 / 4; }
  .cart-line .field { grid-column: 2; }
  .cart-line .qty-input { width: 64px; min-height: 34px; }
  .cart-line-price { grid-column: 3; grid-row: 2; justify-self: end; }
  .cart-line .link.danger { grid-column: 3; grid-row: 3; justify-self: end; }
}
@media (max-width: 360px) {
  .header-bar { gap: 10px; }
  .wordmark-text, .cart-label { display: none; }
  .menu-toggle, .mobile-search { width: 38px; height: 38px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
