/* Panda3D – Copyright (c) 2026 Xarond */

:root {
  /* === MoMA-mode palette: stark white surface, near-black ink === */
  --bg:       #ffffff;
  --surface:  #fafafa;
  --surface-2:#f5f3ef;
  --border:   #e8e6e2;
  --border-2: #d4d2cd;

  --text:     #111111;
  --text-2:   #444444;
  --text-3:   #666666;
  --text-4:   #999999;

  --accent:      #c44a1f;
  --accent-dim:  #a83a14;
  --accent-soft: rgba(196,74,31,.10);

  --success: #15803d;
  --warning: #b45309;
  --danger:  #b91c1c;
  --info:    #1e40af;

  --black:    #111111;
  --white:    #ffffff;
  --grey-900: #111111;
  --grey-700: #444444;
  --grey-500: #777777;
  --grey-300: #aaaaaa;
  --grey-200: #d4d2cd;
  --grey-100: #e8e6e2;
  --grey-50:  #f5f3ef;
  --red:      #c44a1f;
  --red-dark: #a83a14;
  --blue:     #1e40af;
  --blue-dark:#1e3a8a;

  /* Topbar stays dark — MoMA pattern: black announcement strip above white nav */
  --topbar-bg:    #1a1a1a;
  --topbar-text:  #e8e8e8;
  --topbar-text-2:#b4b4b8;

  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 20px;

  --shadow-sm: 0 1px 2px rgba(0,0,0,.06);
  --shadow: 0 4px 14px rgba(0,0,0,.08);
  --shadow-lg: 0 12px 32px rgba(0,0,0,.12);

  --container: 1280px;
  --header-h: 76px;

  --fs-display: clamp(2.3rem, 4vw, 3.75rem);
  --fs-h1: clamp(1.8rem, 3vw, 2.5rem);
  --fs-h2: clamp(1.5rem, 2.3vw, 2rem);
  --fs-h3: 1.25rem;

  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  --mono: 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace;
  --serif: Georgia, 'Times New Roman', serif;

  --paper:        #f5f3ef;
  --paper-dim:    #e8e6e2;
  --ink:          #111111;
  --ink-soft:     rgba(17,17,17,.72);
  --ink-faint:    rgba(17,17,17,.5);
  --accent-deep:  #a83a14;
  --accent-bright:#c44a1f;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;
  --space-10:128px;

  --ease-out-quart:   cubic-bezier(0.25, 1, 0.5, 1);
  --ease-out-expo:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out-quad: cubic-bezier(0.45, 0, 0.55, 1);

  --duration-fast: 150ms;
  --duration:      250ms;
  --duration-slow: 400ms;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color .15s; }
a:hover { color: var(--accent); }
button { font-family: inherit; }
h1, h2, h3, h4 {
  font-family: var(--sans);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.12;
  margin: 0 0 .6em;
  color: var(--text);
}
h1 { font-weight: 800; letter-spacing: -0.035em; }
h2 { font-weight: 700; }
h3 { font-weight: 600; font-size: var(--fs-h3); line-height: 1.25; }
h4 { font-weight: 700; font-size: 1rem; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }

::selection { background: var(--accent); color: var(--bg); }


.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}
.section { padding: 80px 0; }
.section-sm { padding: 48px 0; }


.topbar {
  background: var(--topbar-bg);
  color: var(--topbar-text-2);
  border-bottom: 1px solid #2a2a2a;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  padding: 8px 0;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.topbar a { color: var(--topbar-text-2); }
.topbar a:hover { color: #fff; }
.topbar-announcement {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--topbar-text);
}
.topbar-announcement::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(196,74,31,.22);
}
.topbar-links { display: flex; gap: 20px; }

.header {
  position: sticky;
  top: 0;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}
.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 32px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  font-size: 22px;
  letter-spacing: -0.03em;
  color: var(--text);
}
.logo:hover { color: var(--text); }
.logo img { height: 42px; width: auto; border-radius: 8px; }
.logo-text { display: flex; align-items: baseline; gap: 2px; }
.logo-text .pan { color: var(--text); }
.logo-text .da { color: var(--text); }
.logo-text .threed { color: #f87171; }
.logo-text .threed-d { color: #38bdf8; }

.nav {
  display: flex;
  gap: 2px;
  align-items: center;
  flex: 1;
}
.nav a {
  padding: 10px 14px;
  font-weight: 500;
  font-size: 14px;
  color: var(--text-2);
  position: relative;
  transition: color .15s;
}
.nav a:hover { color: var(--text); }
.nav a.active { color: var(--text); }
.nav a.active::after {
  content: '';
  position: absolute;
  left: 14px; right: 14px; bottom: 4px;
  height: 1.5px;
  background: var(--accent);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}
.icon-btn {
  position: relative;
  width: 44px; height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  color: var(--text);
  transition: background .15s, color .15s;
}
.icon-btn:hover { color: var(--accent); }
.icon-btn svg { width: 22px; height: 22px; }
.icon-btn .badge {
  position: absolute;
  top: 4px; right: 4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  background: var(--accent);
  color: var(--bg);
  border-radius: 9px;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg);
}

.mobile-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 0; background: transparent; cursor: pointer;
  border-radius: 10px;
}
.mobile-toggle span {
  display: block;
  width: 22px; height: 2px; background: var(--text);
  margin: 5px auto;
  transition: transform .2s;
}


.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border: 0;
  border-radius: 10px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: transform .1s, box-shadow .2s, background .15s, color .15s, border-color .15s;
  text-decoration: none;
  line-height: 1;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--accent); color: var(--bg); }
.btn-primary:hover {
  background: var(--accent-dim);
  color: var(--bg);
  box-shadow: 0 8px 24px rgba(196,74,31,.28);
}
.btn-red { background: var(--accent); color: var(--bg); }
.btn-red:hover { background: var(--accent-dim); color: var(--bg); }
.btn-blue { background: var(--text); color: var(--bg); }
.btn-blue:hover { background: var(--text-2); color: var(--bg); }
.btn-outline {
  background: transparent;
  border: 1px solid var(--border-2);
  color: var(--text);
  padding: 12px 23px;
}
.btn-outline:hover { background: var(--text); color: var(--bg); border-color: var(--text); }
.btn-ghost { background: var(--surface); color: var(--text); }
.btn-ghost:hover { background: var(--surface-2); color: var(--text); }
.btn-lg { padding: 16px 30px; font-size: 15px; }
.btn-sm { padding: 8px 14px; font-size: 13px; border-radius: 8px; }
.btn-block { width: 100%; }
.btn-icon svg { width: 18px; height: 18px; }


/* Hero — MoMA-Store editorial, paper field + soft-placed product photo */
.hero {
  position: relative;
  padding: var(--space-7) 0 var(--space-8);
  background: var(--paper);
  color: var(--ink);
  overflow: clip;
}
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: var(--space-7);
  align-items: center;
}
.hero-text { max-width: 560px; }
.hero-kicker {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 var(--space-5);
}
.hero-kicker::before {
  content: '';
  width: 28px; height: 1px;
  background: var(--accent);
}
.hero h1 {
  font-family: var(--sans);
  font-weight: 800;
  font-size: clamp(2.7rem, 5.6vw, 5rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
  margin: 0 0 var(--space-5);
  color: var(--ink);
  text-wrap: balance;
}
.hero h1 em {
  font-style: normal;
  font-weight: 800;
  color: var(--accent-deep);
}
.hero-lead {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0 0 var(--space-6);
  max-width: 46ch;
  text-wrap: pretty;
}
.hero-ctas {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
}
.hero-photo {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 4px;
  overflow: hidden;
  background: var(--paper-dim);
  box-shadow:
    0 1px 0 rgba(28,22,17,.06),
    0 24px 48px -20px rgba(28,22,17,.28),
    0 8px 18px -10px rgba(28,22,17,.18);
}
.hero-photo > a { display: block; width: 100%; height: 100%; }
.hero .btn-outline {
  color: var(--ink);
  border-color: var(--ink);
}
.hero .btn-outline:hover {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.hero-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-out-quart);
}
@media (hover: hover) {
  .hero-photo:hover img { transform: scale(1.015); }
}
.hero-photo::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 50%;
  background: linear-gradient(transparent, rgba(0,0,0,.7));
  pointer-events: none;
}
.hero-photo-tag {
  position: absolute;
  left: var(--space-4); right: var(--space-4);
  bottom: var(--space-4);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: var(--space-4);
  z-index: 1;
  color: var(--paper);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.hero-photo-tag strong {
  display: block;
  font-family: var(--serif);
  font-weight: 500;
  font-style: italic;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  text-transform: none;
  margin-bottom: 4px;
  color: var(--paper);
}
.hero-photo-tag .price {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  text-transform: none;
  font-variant-numeric: tabular-nums;
  color: var(--paper);
  white-space: nowrap;
}
.hero-photo-empty {
  display: grid;
  place-items: center;
  text-align: center;
  padding: var(--space-7);
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background:
    radial-gradient(circle at 50% 55%, var(--paper) 0%, var(--paper-dim) 80%),
    var(--paper);
}
.hero-photo-empty svg {
  width: 64px; height: 64px;
  opacity: .55;
  margin-bottom: var(--space-4);
  color: var(--accent-deep);
}
@media (max-width: 880px) {
  .hero { padding: var(--space-6) 0 var(--space-7); }
  .hero-inner { grid-template-columns: 1fr; gap: var(--space-6); }
  .hero-text { max-width: none; }
  .hero-photo { max-width: 480px; margin: 0 auto; aspect-ratio: 1; }
}
.section-head {
  text-align: center;
  margin-bottom: 56px;
}
.section-head .kicker {
  font-family: var(--mono);
  color: var(--accent);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 12px;
  display: block;
}
.section-head h2 {
  font-size: var(--fs-h1);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 12px;
  color: var(--text);
}
.section-head p {
  color: var(--text-2);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}
.section-head.align-left { text-align: left; }
.section-head.align-left p { margin-left: 0; }


.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.product-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform .2s, border-color .2s, box-shadow .2s;
  position: relative;
}
.product-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-2);
  box-shadow: var(--shadow);
  color: inherit;
}
.product-media {
  position: relative;
  aspect-ratio: 1;
  background: var(--surface-2);
  overflow: hidden;
}
.product-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s cubic-bezier(.2,.8,.2,1);
}
.product-card:hover .product-media img { transform: scale(1.04); }
.product-badges {
  position: absolute;
  top: 12px; left: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 1;
}
.badge-pill {
  display: inline-block;
  padding: 5px 11px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}
.badge-sale { background: var(--red); color: var(--paper); }
.badge-new  { background: var(--blue); color: var(--paper); }
.badge-hot  { background: var(--black); color: var(--paper); }
.badge-out  { background: rgba(26,22,18,.5); color: var(--paper); }

.product-quick {
  position: absolute;
  right: 12px; top: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  opacity: 0;
  transform: translateX(8px);
  transition: all .2s;
}
.product-card:hover .product-quick { opacity: 1; transform: none; }
.quick-btn {
  width: 38px; height: 38px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  cursor: pointer;
  transition: background .15s, color .15s;
}
.quick-btn:hover { background: var(--accent); color: var(--bg); border-color: var(--accent); }
.quick-btn svg { width: 18px; height: 18px; }

.product-body {
  padding: 18px 18px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.product-cat {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-3);
  margin-bottom: 8px;
}
.product-name {
  font-weight: 700;
  font-size: 15px;
  line-height: 1.35;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
  flex: 1;
  color: var(--text);
}
.product-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-3);
  margin-bottom: 10px;
}
.product-price {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}
.price-now {
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--text);
  letter-spacing: -0.01em;
}
.price-old {
  color: var(--text-3);
  text-decoration: line-through;
  font-size: .9rem;
}
.product-body .btn { margin-top: 14px; }


.stars { color: var(--text-4); font-size: 14px; letter-spacing: 1px; }
.stars .full { color: var(--accent); }
.stars .half { background: linear-gradient(90deg, var(--accent) 50%, var(--text-4) 50%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.rating-count { color: var(--text-3); font-size: 13px; }


.breadcrumb {
  padding: 14px 0;
  font-size: 13px;
  color: var(--text-3);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  font-family: var(--mono);
  letter-spacing: 0.04em;
}
.breadcrumb a { color: var(--text-2); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { margin: 0 10px; color: var(--text-4); }


.shop-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 40px;
}
.shop-sidebar h4 {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-3);
  margin: 28px 0 14px;
}
.shop-sidebar h4:first-child { margin-top: 0; }
.filter-list { list-style: none; padding: 0; margin: 0; }
.filter-list li { padding: 2px 0; }
.filter-list a {
  display: flex;
  justify-content: space-between;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 14px;
  color: var(--text-2);
}
.filter-list a:hover { background: var(--surface); color: var(--text); }
.filter-list a.active { background: var(--accent-soft); color: var(--accent); }
.filter-list .count { color: var(--text-3); font-size: 12px; }
.filter-list a.active .count { color: var(--accent); }

.price-range input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  border-radius: 8px;
  font-size: 14px;
}
.price-range { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

.shop-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  gap: 16px;
  flex-wrap: wrap;
}
.shop-toolbar .result-count { color: var(--text-3); font-size: 14px; }
.shop-toolbar select {
  padding: 10px 36px 10px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  font-weight: 500;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%23b4b4b8' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}

.product-detail {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  padding: 40px 0;
}
.product-gallery .main-image {
  position: relative;
  aspect-ratio: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 14px;
}
.product-gallery .main-image img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}
.gallery-thumbs button {
  aspect-ratio: 1;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  background: var(--surface);
}
.gallery-thumbs button.active { border-color: var(--accent); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }

.product-info h1 {
  font-size: var(--fs-h1);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}
.product-info .product-cat { font-size: 12px; }
.product-price-big {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin: 20px 0;
}
.product-price-big .price-now { font-size: 2.3rem; }
.product-price-big .price-old { font-size: 1.2rem; }
.price-discount {
  background: var(--accent);
  color: var(--bg);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
}
.stock-info {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 20px;
}
.stock-info.in  { background: rgba(34,197,94,.14); color: #5edb83; }
.stock-info.low { background: rgba(245,158,11,.14); color: #f0b050; }
.stock-info.out { background: rgba(239,68,68,.14); color: #f57171; }
.stock-info::before {
  content: '';
  width: 8px; height: 8px; border-radius: 50%;
  background: currentColor;
}

.product-short {
  color: var(--text-2);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 24px;
}

.variants { margin: 24px 0; }
.variants-label {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 10px;
  color: var(--text-3);
}
.variant-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.variant-option {
  position: relative;
  padding: 10px 16px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all .1s;
}
.variant-option input { position: absolute; opacity: 0; }
.variant-option.color {
  padding: 0; width: 40px; height: 40px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
}
.variant-option.color::after {
  content: ''; width: 28px; height: 28px; border-radius: 50%;
  background: var(--swatch, #ccc);
}
.variant-option:has(input:checked),
.variant-option.active {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
}
.variant-option.color:has(input:checked) {
  border-color: var(--accent);
  transform: scale(1.08);
}

.qty-row {
  display: flex;
  gap: 12px;
  align-items: stretch;
  margin: 24px 0;
}
.qty-input {
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 10px;
  overflow: hidden;
}
.qty-input button {
  width: 44px; height: 50px;
  border: 0; background: transparent;
  font-size: 20px; font-weight: 700;
  cursor: pointer;
  color: var(--text);
}
.qty-input button:hover { background: var(--surface-2); }
.qty-input input {
  width: 50px;
  height: 50px;
  text-align: center;
  border: 0;
  font-weight: 700;
  font-size: 16px;
  background: transparent;
  color: var(--text);
}
.qty-input input:focus { outline: none; }

.add-to-cart-row { display: flex; gap: 10px; }

.product-meta {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 20px;
  font-size: 14px;
}
.product-meta dt { color: var(--text-3); }
.product-meta dd { margin: 0; font-weight: 600; color: var(--text); }

.product-safety-trigger {
  width: 100%;
  margin-top: 8px;
  padding: 16px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: border-color .15s, background .15s, transform .1s, box-shadow .15s;
}
.product-safety-trigger:hover {
  border-color: var(--border-2);
  background: var(--surface-2);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}
.product-safety-trigger strong {
  display: block;
  font-size: 15px;
  line-height: 1.25;
}
.product-safety-trigger small {
  display: block;
  margin-top: 3px;
  color: var(--text-3);
  font-size: 12px;
  line-height: 1.35;
}
.product-safety-icon {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
}
.product-safety-icon svg { width: 20px; height: 20px; }
.product-safety-arrow { width: 20px; height: 20px; color: var(--text-3); }

.drawer-open { overflow: hidden; }
.product-safety-drawer {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  justify-content: flex-end;
}
.product-safety-drawer[hidden] { display: none; }
.product-safety-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17,17,17,.42);
  opacity: 0;
  transition: opacity .22s ease;
}
.product-safety-panel {
  position: relative;
  width: min(520px, 100%);
  height: 100%;
  padding: 28px;
  background: var(--bg);
  box-shadow: -16px 0 36px rgba(0,0,0,.18);
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform .22s var(--ease-out-quart);
}
.product-safety-panel:focus { outline: none; }
.product-safety-drawer.open .product-safety-backdrop { opacity: 1; }
.product-safety-drawer.open .product-safety-panel { transform: translateX(0); }
.product-safety-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}
.product-safety-eyebrow {
  display: inline-block;
  margin-bottom: 8px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--accent);
}
.product-safety-head h2 {
  margin: 0;
  font-size: clamp(1.35rem, 2vw, 1.8rem);
}
.product-safety-close {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.product-safety-close:hover { background: var(--surface-2); }
.product-safety-close svg { width: 20px; height: 20px; }
.product-safety-content {
  color: var(--text-2);
  line-height: 1.7;
}
.product-safety-content ol {
  margin: 18px 0;
  padding-left: 22px;
}
.product-safety-content li { margin-bottom: 14px; }
.product-safety-content strong { color: var(--text); }

.product-tabs {
  margin-top: 48px;
  border-top: 1px solid var(--border);
  padding-top: 40px;
}
.tabs-nav {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
}
.tabs-nav button {
  padding: 12px 20px;
  border: 0;
  background: transparent;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  color: var(--text-3);
  position: relative;
}
.tabs-nav button:hover { color: var(--text-2); }
.tabs-nav button.active { color: var(--text); }
.tabs-nav button.active::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  height: 2px;
  background: var(--accent);
}
.tab-panel { display: none; }
.tab-panel.active { display: block; }
.prose { font-size: 1rem; line-height: 1.75; color: var(--text-2); max-width: 800px; }
.prose h3 { color: var(--text); margin-top: 1.5em; }


.form-grid { display: grid; gap: 16px; }
.form-grid.cols-2 { grid-template-columns: 1fr 1fr; }
.form-group label {
  display: block;
  font-weight: 600;
  font-size: 13px;
  margin-bottom: 8px;
  color: var(--text-2);
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-family: inherit;
  font-size: 15px;
  background: var(--surface);
  color: var(--text);
  transition: border-color .15s, background .15s;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-4); }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--surface-2);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-group .hint {
  color: var(--text-3);
  font-size: 12px;
  margin-top: 6px;
}
.check-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-2);
}
.check-row input { width: auto; margin: 0; accent-color: var(--accent); }


.flash-stack {
  position: fixed;
  top: calc(var(--header-h) + 20px);
  right: 20px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 380px;
}
.flash {
  padding: 14px 18px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  animation: flashIn var(--duration) var(--ease-out-quart);
}
@keyframes flashIn { from { transform: translateY(-8px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.flash-success { background: rgba(34,197,94,.10);  border-color: rgba(34,197,94,.4);  color: #9af0b8; }
.flash-error   { background: rgba(239,68,68,.10);  border-color: rgba(239,68,68,.45); color: #ffb3b3; }
.flash-warning { background: rgba(245,158,11,.12); border-color: rgba(245,158,11,.45); color: #fcd58e; }
.flash-info    { background: rgba(59,130,246,.10); border-color: rgba(59,130,246,.45); color: #aac9ff; }

.alert {
  padding: 14px 18px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  margin-bottom: 20px;
}
.alert-success { background: rgba(34,197,94,.10);  border-color: rgba(34,197,94,.4);  color: #b5edcb; }
.alert-error   { background: rgba(239,68,68,.10);  border-color: rgba(239,68,68,.45); color: #ffc1c1; }
.alert-warning { background: rgba(245,158,11,.12); border-color: rgba(245,158,11,.45); color: #fcd9a4; }


.cart-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 40px;
}
.cart-table { width: 100%; border-collapse: collapse; }
.cart-item {
  display: grid;
  grid-template-columns: 90px 1fr auto auto auto;
  gap: 20px;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}
.cart-item-img {
  width: 90px; height: 90px;
  border-radius: 10px;
  background: var(--surface);
  overflow: hidden;
}
.cart-item-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-name { font-weight: 700; margin-bottom: 4px; color: var(--text); }
.cart-item-name a:hover { color: var(--accent); }
.cart-item-variant { color: var(--text-3); font-size: 13px; }
.cart-item-price { font-weight: 700; min-width: 80px; text-align: right; color: var(--text); }
.cart-item-remove {
  width: 36px; height: 36px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-2);
  border-radius: 8px;
  cursor: pointer;
  transition: all .15s;
}
.cart-item-remove:hover { background: rgba(239,68,68,.12); color: var(--danger); border-color: var(--danger); }

.cart-summary {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: sticky;
  top: calc(var(--header-h) + 24px);
  height: fit-content;
}
.cart-summary h3 { font-size: 1.15rem; margin-bottom: 20px; color: var(--text); }
.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  font-size: 15px;
  color: var(--text-2);
}
.summary-row.total {
  border-top: 1px solid var(--border);
  margin-top: 10px;
  padding-top: 16px;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text);
}
.summary-row.discount { color: var(--success); }
.coupon-form { display: flex; gap: 6px; margin: 16px 0; }
.coupon-form input {
  flex: 1;
  padding: 10px 12px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  border-radius: 8px;
  font-size: 14px;
}
.coupon-form button {
  padding: 10px 14px;
  border: 0;
  background: var(--accent);
  color: var(--bg);
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
}
.coupon-applied {
  background: rgba(34,197,94,.08);
  border: 1px solid rgba(34,197,94,.2);
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 14px;
  color: var(--success);
  display: flex;
  justify-content: space-between;
  align-items: center;
}


.reviews-summary {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 32px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
}
.review-big { text-align: center; }
.review-big .big-num { font-size: 3.5rem; font-weight: 900; color: var(--text); line-height: 1; }
.review-big .stars { font-size: 18px; margin: 10px 0; }
.review-bars .bar-row { display: grid; grid-template-columns: 40px 1fr 40px; gap: 10px; align-items: center; margin-bottom: 6px; font-size: 13px; color: var(--text-2); }
.review-bars .bar { height: 6px; background: var(--surface); border-radius: 3px; overflow: hidden; }
.review-bars .bar-fill { height: 100%; background: var(--accent); border-radius: 3px; }

.review {
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}
.review-head { display: flex; justify-content: space-between; margin-bottom: 8px; }
.review-author { font-weight: 700; color: var(--text); }
.review-date { color: var(--text-3); font-size: 13px; }
.review-title { font-weight: 700; margin: 6px 0; color: var(--text); }


.footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  color: var(--text-2);
  padding: 80px 0 32px;
  margin-top: 100px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 64px;
}
.footer-brand p { color: var(--text-3); max-width: 340px; line-height: 1.7; margin-top: 18px; font-size: 14px; }
.footer h3 {
  font-family: var(--mono);
  color: var(--text);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  line-height: 1.2;
  margin: 0 0 20px;
}
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: var(--text-2); font-size: 14px; }
.footer-links a:hover { color: var(--accent); }
.footer-address { color: var(--text-3); font-size: 13px; margin-top: 10px; line-height: 1.5; }
.marketplaces {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 24px 0;
  margin-top: 16px;
  border-top: 1px solid var(--border);
}
.marketplaces-label {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-3);
  margin-right: 4px;
}
.marketplace {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.02em;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  transition: transform .15s, border-color .15s, background .15s;
}
.marketplace:hover { transform: translateY(-2px); }
.marketplace-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: currentColor;
}
.marketplace-allegro { color: #ff5a00; }
.marketplace-allegro:hover { background: rgba(255,90,0,.12); border-color: #ff5a00; }
.marketplace-erli { color: #f43f6c; }
.marketplace-erli:hover { background: rgba(244,63,108,.12); border-color: #f43f6c; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  flex-wrap: wrap;
  gap: 12px;
}
.social { display: flex; gap: 10px; }
.social a {
  width: 36px; height: 36px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .15s, border-color .15s, color .15s;
  color: var(--text-2);
}
.social a:hover { background: var(--accent); color: var(--bg); border-color: var(--accent); }
.social svg { width: 16px; height: 16px; }


.empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-3);
}
.empty svg { width: 80px; height: 80px; stroke: var(--text-4); margin-bottom: 16px; }
.empty h3 { color: var(--text-2); margin-bottom: 8px; }


.pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 40px;
}
.pagination a,
.pagination span {
  width: 42px; height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-2);
}
.pagination a:hover { background: var(--surface-2); color: var(--text); }
.pagination .current { background: var(--accent); color: var(--bg); border-color: var(--accent); }


.auth-wrap {
  max-width: 460px;
  margin: 60px auto;
  padding: 48px 40px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}
.auth-wrap h1 {
  font-weight: 800;
  font-size: 2rem;
  text-align: center;
  margin-bottom: 8px;
  letter-spacing: -0.03em;
  color: var(--text);
}
.auth-wrap .subtitle { text-align: center; color: var(--text-3); margin-bottom: 32px; font-size: 14px; }
.auth-footer { text-align: center; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--border); font-size: 14px; color: var(--text-3); }


.account-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 40px;
}
.account-nav {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  height: fit-content;
}
.account-nav a {
  display: block;
  padding: 10px 14px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 14px;
  margin-bottom: 2px;
  color: var(--text-2);
}
.account-nav a:hover { background: var(--surface-2); color: var(--text); }
.account-nav a.active { background: var(--accent); color: var(--bg); }

.table {
  width: 100%;
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  border-collapse: collapse;
}
.table th, .table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  color: var(--text-2);
}
.table th {
  background: var(--surface-2);
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-3);
  font-weight: 500;
}
.table td { color: var(--text); }
.table tr:last-child td { border-bottom: 0; }
.table tr:hover td { background: var(--surface-2); }

.status-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.status-pending    { background: rgba(245,158,11,.15); color: #f0b050; }
.status-paid       { background: rgba(59,130,246,.15); color: #6ba3e8; }
.status-processing { background: rgba(139,92,246,.15); color: #a583f5; }
.status-shipped    { background: rgba(14,165,233,.15); color: #4fb8e8; }
.status-completed  { background: rgba(34,197,94,.15); color: #5edb83; }
.status-cancelled  { background: rgba(239,68,68,.15); color: #f57171; }
.status-returned   { background: rgba(168,85,247,.15); color: #c084fc; }


@media (max-width: 1024px) {
  .products-grid { grid-template-columns: repeat(3, 1fr); }
  .shop-layout { grid-template-columns: 1fr; }
  .product-detail { grid-template-columns: 1fr; gap: 40px; }
  .cart-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .account-layout { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .nav { display: none; position: fixed; inset: var(--header-h) 0 auto; background: var(--bg); flex-direction: column; padding: 20px; border-bottom: 1px solid var(--border); z-index: 99; }
  .nav.open { display: flex; }
  .nav a { width: 100%; padding: 14px 0; }
  .mobile-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .topbar .topbar-links { display: none; }
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 20px 14px; }
  .section { padding: 56px 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
  .cart-item { grid-template-columns: 70px 1fr; grid-template-rows: auto auto; }
  .cart-item-img { width: 70px; height: 70px; }
  .cart-item-price, .cart-item-qty, .cart-item-remove { grid-column: 2; }
  .product-name { font-size: 14px; }
  .reviews-summary { grid-template-columns: 1fr; }
  .form-grid.cols-2 { grid-template-columns: 1fr; }
  .product-safety-panel { padding: 22px 18px; }
  .product-safety-trigger { grid-template-columns: auto 1fr; }
  .product-safety-arrow { display: none; }
}


/* ============================================================
   Homepage v2 — editorial composition
   ============================================================ */

.section-block { padding: var(--space-8) 0; }

.section-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-3);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 var(--space-3);
}
.section-eyebrow::before {
  content: '';
  width: 28px; height: 1px;
  background: currentColor;
  opacity: .55;
}
.section-block h2,
.section-block .section-h2 {
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-weight: 500;
  font-size: clamp(1.9rem, 3.4vw, 2.85rem);
  line-height: 1.05;
  letter-spacing: -0.015em;
  margin: 0 0 var(--space-3);
  color: var(--text);
  text-wrap: balance;
}
.section-block h2 em { font-style: italic; color: var(--accent); font-weight: 500; }

/* === Catalogue strip (Committed-orange full-bleed) === */

.cat-strip {
  background: var(--accent);
  color: var(--ink);
  padding: var(--space-8) 0 var(--space-9);
  position: relative;
  overflow: clip;
}
.cat-strip::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 92% -10%, rgba(0,0,0,.16), transparent 55%),
    radial-gradient(circle at 0% 110%, rgba(255,255,255,.12), transparent 45%);
  pointer-events: none;
}
.cat-strip .container { position: relative; z-index: 1; }
.cat-strip .section-eyebrow { color: var(--ink-soft); }
.cat-strip h2 { color: var(--ink); }
.cat-strip-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-5);
  align-items: end;
  margin-bottom: var(--space-7);
}
.cat-strip-head p {
  max-width: 42ch;
  color: var(--ink-soft);
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
  text-wrap: pretty;
}
.cat-strip-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  padding-bottom: 6px;
  border-bottom: 1px solid var(--ink);
  transition: gap var(--duration-fast) var(--ease-out-quart);
  align-self: end;
  white-space: nowrap;
}
.cat-strip-link:hover { gap: 14px; color: var(--ink); }
.cat-strip-link svg { width: 14px; height: 14px; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-4);
}
.feature-card {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  transition: transform var(--duration) var(--ease-out-quart),
              box-shadow var(--duration) var(--ease-out-quart);
}
@media (hover: hover) {
  .feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 48px -18px rgba(0,0,0,.45);
  }
  .feature-card:hover .feature-card-media img { transform: scale(1.03); }
}
.feature-card:hover { color: var(--ink); }
.feature-card-media {
  aspect-ratio: 1;
  background: var(--paper-dim);
  overflow: hidden;
  position: relative;
}
.feature-card-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-out-quart);
}
.feature-card-body {
  padding: var(--space-4) var(--space-4) var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.feature-card-cat {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.feature-card-name {
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-weight: 500;
  font-size: 1.2rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-wrap: balance;
}
.feature-card-price {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-variant-numeric: tabular-nums;
  margin-top: var(--space-2);
}
.feature-card-price .price-now {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--ink);
}
.feature-card-price .price-old {
  color: var(--ink-faint);
  text-decoration: line-through;
  font-size: .9rem;
}
.feature-card-badge {
  position: absolute;
  top: 12px; left: 12px;
  padding: 5px 10px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 999px;
  z-index: 1;
}
.feature-card-badge.sale { background: var(--accent-deep); color: var(--paper); }

.cat-strip-empty {
  background: var(--paper);
  color: var(--ink);
  padding: var(--space-8) var(--space-6);
  border-radius: 18px;
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}
.cat-strip-empty h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-style: italic;
  font-size: clamp(1.4rem, 2.4vw, 1.75rem);
  margin: 0 0 var(--space-3);
  color: var(--ink);
}
.cat-strip-empty p {
  margin: 0 auto var(--space-5);
  max-width: 48ch;
  color: var(--ink-soft);
  line-height: 1.6;
}

@media (max-width: 1024px) {
  .feature-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 680px) {
  .cat-strip { padding: var(--space-7) 0 var(--space-8); }
  .cat-strip-head { grid-template-columns: 1fr; }
  .cat-strip-link { justify-self: start; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-3); }
}

/* === Custom-order panel === */

.custom-panel {
  background: var(--bg);
  padding: var(--space-9) 0;
}
.custom-panel-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--paper);
  color: var(--ink);
  border-radius: 18px;
  overflow: hidden;
}
.custom-panel-photo {
  position: relative;
  min-height: 380px;
  background:
    linear-gradient(135deg, var(--paper-dim) 0%, var(--paper) 100%);
  overflow: hidden;
}
.custom-panel-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}
.custom-panel-photo-empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: var(--space-7);
}
.custom-panel-photo-empty .mark {
  width: clamp(140px, 22vw, 220px);
  height: clamp(140px, 22vw, 220px);
  border-radius: 50%;
  border: 2px solid var(--accent);
  color: var(--accent);
  display: grid;
  place-items: center;
  position: relative;
}
.custom-panel-photo-empty .mark svg {
  width: 48%; height: 48%;
}
.custom-panel-photo-empty .mark::before {
  content: 'STL · OBJ · 3MF';
  position: absolute;
  bottom: -32px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  white-space: nowrap;
}
.custom-panel-body {
  padding: var(--space-8) var(--space-7);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.custom-panel-body .section-eyebrow { color: var(--accent-deep); }
.custom-panel-body h2 {
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-weight: 500;
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0 0 var(--space-4);
  color: var(--ink);
  text-wrap: balance;
}
.custom-panel-body h2 em { font-style: italic; color: var(--accent-deep); font-weight: 500; }
.custom-panel-body p {
  color: var(--ink-soft);
  line-height: 1.65;
  margin: 0 0 var(--space-6);
  max-width: 42ch;
  font-size: 1.05rem;
  text-wrap: pretty;
}
.custom-panel-body .btn-ink { align-self: flex-start; }
.custom-panel-steps {
  list-style: none;
  padding: var(--space-5) 0 0;
  margin: var(--space-6) 0 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  border-top: 1px solid rgba(28,22,17,.18);
}
.custom-panel-steps li {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.custom-panel-steps li strong {
  display: block;
  font-family: var(--serif);
  font-weight: 600;
  font-style: italic;
  font-size: 1.5rem;
  letter-spacing: -0.01em;
  text-transform: none;
  color: var(--accent-deep);
  margin-bottom: 4px;
}

@media (max-width: 880px) {
  .custom-panel { padding: var(--space-7) 0; }
  .custom-panel-inner { grid-template-columns: 1fr; }
  .custom-panel-photo { min-height: 260px; }
  .custom-panel-body { padding: var(--space-6) var(--space-5) var(--space-7); }
  .custom-panel-steps { grid-template-columns: 1fr; gap: var(--space-3); }
}

/* === Story strip === */

.story-strip {
  background: var(--bg);
  padding: var(--space-8) 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.story-strip-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: var(--space-7);
  align-items: end;
}
.story-strip-quote {
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--text);
  text-wrap: balance;
  max-width: 22ch;
  margin: 0;
}
.story-strip-quote::before {
  content: '“';
  display: block;
  color: var(--accent);
  font-size: 2.4em;
  line-height: 0.4;
  margin-bottom: var(--space-3);
}
.story-proofs {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}
.story-proofs li {
  border-top: 1px solid var(--border-2);
  padding-top: var(--space-4);
}
.story-proofs .num {
  display: block;
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-weight: 500;
  font-size: clamp(2rem, 3.4vw, 2.8rem);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.story-proofs .num small {
  font-size: 0.55em;
  font-style: italic;
  font-weight: 500;
  color: var(--text-3);
  margin-left: 4px;
  letter-spacing: 0;
}
.story-proofs .unit {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-top: var(--space-2);
}
.story-marketplaces {
  margin-top: var(--space-7);
  padding-top: var(--space-5);
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
}
.story-marketplaces-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-right: var(--space-2);
}

@media (max-width: 880px) {
  .story-strip-inner { grid-template-columns: 1fr; gap: var(--space-6); }
  .story-proofs { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .story-proofs { grid-template-columns: 1fr; }
}

/* === Closer (small orange section) === */

.closer {
  background: var(--accent);
  color: var(--ink);
  padding: var(--space-8) 0;
  position: relative;
  overflow: clip;
}
.closer::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 50%, rgba(28,22,17,.12), transparent 60%);
  pointer-events: none;
}
.closer-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--space-6);
  align-items: end;
}
.closer .section-eyebrow { color: var(--ink-soft); }
.closer h2 {
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0;
  color: var(--ink);
  text-wrap: balance;
  max-width: 22ch;
}
.closer-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-end;
  text-align: right;
}
.closer-links a {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  padding: 8px 0;
  border-bottom: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: gap var(--duration-fast) var(--ease-out-quart),
              border-color var(--duration-fast) var(--ease-out-quart);
}
.closer-links a:hover {
  gap: 16px;
  color: var(--ink);
  border-bottom-color: var(--ink);
}
.closer-links a svg { width: 14px; height: 14px; }

@media (max-width: 720px) {
  .closer-inner { grid-template-columns: 1fr; gap: var(--space-5); }
  .closer-links { align-items: flex-start; text-align: left; }
}

/* === Button variants for new compositions === */

.btn-paper {
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--paper);
}
.btn-paper:hover {
  background: var(--paper-dim);
  color: var(--ink);
  border-color: var(--paper-dim);
}
.btn-ink {
  background: var(--ink);
  color: var(--paper);
}
.btn-ink:hover {
  background: #2a2018;
  color: var(--paper);
}
.btn-line {
  background: transparent;
  color: var(--text);
  padding: 13px 0;
  border-radius: 0;
  border: 0;
  border-bottom: 1px solid var(--text);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 12px;
  font-family: var(--mono);
}
.btn-line:hover { color: var(--accent); border-color: var(--accent); transform: none; }

/* === Header search popover (click-to-expand) === */

.header { position: sticky; }
.search-trigger {
  background: transparent;
  border: 0;
  cursor: pointer;
}
.search-popover {
  position: absolute;
  inset: 0;
  background: var(--bg);
  display: flex;
  align-items: center;
  padding: 0 20px;
  gap: 12px;
  border-bottom: 1px solid var(--border);
  z-index: 110;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--duration-fast) var(--ease-out-quart);
}
.search-popover.open {
  opacity: 1;
  pointer-events: auto;
}
.search-popover .search-icon {
  width: 22px; height: 22px;
  color: var(--text-2);
  flex-shrink: 0;
}
.search-popover input {
  flex: 1;
  height: 44px;
  padding: 0 8px;
  border: 0;
  background: transparent;
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  letter-spacing: -0.01em;
  min-width: 0;
}
.search-popover input:focus { outline: none; }
.search-popover input::placeholder { color: var(--text-3); }
.search-popover .search-close {
  background: transparent;
  border: 0;
  color: var(--text-2);
  cursor: pointer;
  height: 36px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 8px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.search-popover .search-close:hover { background: var(--surface); color: var(--text); }
.search-popover .search-close kbd {
  font-family: var(--mono);
  font-size: 10px;
  padding: 2px 6px;
  border: 1px solid var(--border-2);
  border-radius: 4px;
  color: var(--text-3);
}

/* === Global focus-visible (a11y) === */

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}
.btn:focus-visible { outline-offset: 4px; }
.feature-card:focus-visible,
.hero-photo > a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 6px;
}

/* === Mobile-toggle ARIA visualisation === */

.mobile-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.mobile-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* === Reduced motion === */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  html { scroll-behavior: auto; }
}

/* ============================================================
   Homepage v4 — moma.org/shop alignment, scoped to body.home
   White surface, centered serif section titles, caption-below
   tiles, minimal product cards, single accent (#c44a1f) on sale
   and hover. Surface inherits from global white tokens.
   ============================================================ */

/* body.home inherits global white from :root tokens */
.home main { display: block; }
.home .footer { margin-top: 0; }

.home-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 clamp(16px, 3vw, 32px);
}

.home-section {
  padding: clamp(2.5rem, 4.5vw, 4.5rem) 0;
  background: #fff;
}
.home-section + .home-section { padding-top: 0; }

.home-section-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.5rem, 2.6vw, 2.25rem);
  line-height: 1.15;
  letter-spacing: -0.005em;
  text-align: center;
  color: #111;
  margin: 0 0 clamp(1.75rem, 3vw, 2.75rem);
}

.home-section-foot {
  text-align: center;
  margin-top: clamp(2rem, 3.5vw, 2.75rem);
}
.home-section-link {
  display: inline-block;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  color: #111;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
  transition: color 200ms;
}
.home-section-link:hover,
.home-section-link:focus-visible { color: #c44a1f; }

/* === Collection tiles (uniform, caption below) === */

.home-collection {
  display: grid;
  gap: clamp(8px, 1.4vw, 16px);
}
.home-collection.is-1 { grid-template-columns: minmax(0, 720px); justify-content: center; }
.home-collection.is-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.home-collection.is-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.home-collection.is-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.home-collection.is-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.home-collection.is-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.home-tile { display: block; color: #111; }
.home-tile:hover { color: #111; }

.home-tile-media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  background: #f4f1ec;
  overflow: hidden;
  margin-bottom: 14px;
}
.home-tile-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms var(--ease-out-quart);
}
@media (hover: hover) {
  .home-tile:hover .home-tile-media img { transform: scale(1.025); }
}

.home-tile.no-image .home-tile-media {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(20px, 4vw, 40px);
  text-align: center;
}
.home-tile-inner-name {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.25rem, 2vw, 1.85rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: #111;
  text-wrap: balance;
}

/* Soft pastel variants for image-less tiles */
.home-tile.no-image:nth-child(5n+1) .home-tile-media { background: #efeae0; }
.home-tile.no-image:nth-child(5n+2) .home-tile-media { background: #e6e8df; }
.home-tile.no-image:nth-child(5n+3) .home-tile-media { background: #efe6dd; }
.home-tile.no-image:nth-child(5n+4) .home-tile-media { background: #e3e8eb; }
.home-tile.no-image:nth-child(5n+5) .home-tile-media { background: #ebe6ec; }

.home-tile-caption {
  text-align: center;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
  color: #111;
  letter-spacing: 0;
  transition: color 200ms;
}
.home-tile-caption-meta {
  display: block;
  font-weight: 400;
  font-size: 12px;
  color: #666;
  margin-top: 4px;
  letter-spacing: 0;
  text-transform: none;
}
@media (hover: hover) {
  .home-tile:hover .home-tile-caption { color: #c44a1f; }
}
.home-tile:focus-visible {
  outline: 2px solid #c44a1f;
  outline-offset: 4px;
}

/* === Product grid (6-up like MoMA Best Sellers) === */

.home-products {
  display: grid;
  gap: clamp(28px, 3vw, 44px) clamp(14px, 2vw, 28px);
  grid-template-columns: repeat(6, minmax(0, 1fr));
}
.home-products.is-1 { grid-template-columns: minmax(0, 320px); justify-content: center; }
.home-products.is-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 720px; margin-left: auto; margin-right: auto; }
.home-products.is-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 1000px; margin-left: auto; margin-right: auto; }
.home-products.is-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: 1200px; margin-left: auto; margin-right: auto; }
.home-products.is-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }

.home-product { display: block; color: #111; }
.home-product:hover { color: #111; }

.home-product-media {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  background: #f7f5f0;
  overflow: hidden;
  margin-bottom: 16px;
}
.home-product-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms var(--ease-out-quart);
}
@media (hover: hover) {
  .home-product:hover .home-product-media img { transform: scale(1.03); }
}

.home-product-name {
  display: block;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.35;
  color: #111;
  margin: 0 0 6px;
  text-align: center;
  text-wrap: balance;
  transition: color 200ms;
}
@media (hover: hover) {
  .home-product:hover .home-product-name { color: #c44a1f; }
}
.home-product-price {
  display: flex;
  justify-content: center;
  gap: 8px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 400;
  color: #111;
  font-variant-numeric: tabular-nums;
}
.home-product-price-old {
  color: #888;
  text-decoration: line-through;
}
.home-product-price-now.is-sale { color: #c44a1f; }

.home-product:focus-visible {
  outline: 2px solid #c44a1f;
  outline-offset: 4px;
}

/* === Empty state === */

.home-empty {
  padding: clamp(5rem, 12vw, 10rem) 0;
  background: #fff;
  text-align: center;
}
.home-empty-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: #111;
  margin: 0 auto 1rem;
  max-width: 18ch;
}
.home-empty-text {
  font-family: var(--sans);
  font-size: clamp(0.95rem, 1.4vw, 1.05rem);
  line-height: 1.55;
  color: #555;
  max-width: 50ch;
  margin: 0 auto 2rem;
}
.home-empty-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 28px;
  background: #111;
  color: #fff;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0;
  transition: background 200ms;
}
.home-empty-cta:hover,
.home-empty-cta:focus-visible {
  background: #c44a1f;
  color: #fff;
}
.home-empty-cta svg { width: 14px; height: 14px; }

/* === Responsive === */

@media (max-width: 1024px) {
  .home-products,
  .home-products.is-5 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .home-collection.is-5,
  .home-collection.is-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .home-collection.is-3,
  .home-collection.is-4,
  .home-collection.is-5,
  .home-collection.is-6 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-products,
  .home-products.is-3,
  .home-products.is-4,
  .home-products.is-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 480px) {
  .home-products,
  .home-products.is-3,
  .home-products.is-4,
  .home-products.is-5 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 12px;
  }
  .home-collection.is-2,
  .home-collection.is-3,
  .home-collection.is-4,
  .home-collection.is-5,
  .home-collection.is-6 {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-tile-media img,
  .home-product-media img,
  .home-tile-caption,
  .home-product-name { transition: none !important; }
  .home-tile:hover .home-tile-media img,
  .home-product:hover .home-product-media img { transform: none !important; }
}


.product-options-box {
  margin: 18px 0 4px;
  padding: 18px 18px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.product-options-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.opt-badge {
  display: inline-block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 8px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  border-radius: 4px;
  font-weight: 600;
}
.opt-hint {
  font-size: 12.5px;
  color: var(--text-3);
  line-height: 1.4;
}
.product-option {
  margin-bottom: 14px;
}
.product-option:last-child { margin-bottom: 0; }
.product-option .opt-label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}
.product-option .opt-req {
  color: var(--accent);
  font-weight: 700;
  margin-left: 2px;
}
.product-option input[type="text"],
.product-option input[type="number"],
.product-option input[type="date"],
.product-option textarea,
.product-option select {
  width: 100%;
  padding: 10px 12px;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-sm);
  transition: border-color .15s, box-shadow .15s;
}
.product-option input:focus,
.product-option textarea:focus,
.product-option select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.product-option textarea {
  resize: vertical;
  min-height: 70px;
  font-family: inherit;
}
.product-option .opt-help {
  margin-top: 5px;
  font-size: 12px;
  color: var(--text-3);
  line-height: 1.4;
}
.product-option.option-checkbox .opt-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text);
  cursor: pointer;
}
.product-option.option-checkbox .opt-check input {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
}


.cart-item-opts {
  list-style: none;
  padding: 0;
  margin: 6px 0 4px;
  font-size: 12.5px;
  line-height: 1.45;
}
.cart-item-opts li {
  display: block;
  color: var(--text-2);
  padding: 1px 0;
}
.cart-item-opts .opt-k {
  color: var(--text-3);
  font-weight: 500;
  margin-right: 4px;
}
.cart-item-opts .opt-v {
  color: var(--text);
  font-weight: 600;
}



.cart-trigger { position: relative; }

.cart-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: min(380px, 92vw);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 16px 40px rgba(0,0,0,.14);
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 180ms var(--ease-out-quart),
              transform 180ms var(--ease-out-quart),
              visibility 180ms linear;
}
.cart-dropdown::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 0;
  right: 0;
  height: 10px;
}
@media (hover: hover) and (min-width: 900px) {
  .cart-trigger:hover .cart-dropdown,
  .cart-trigger:focus-within .cart-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
}
.cart-trigger.open .cart-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.cart-dropdown-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
}
.cart-dropdown-head strong {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 16px;
  color: var(--text);
  letter-spacing: -0.01em;
}
.cart-dropdown-count {
  font-size: 11.5px;
  font-weight: 500;
  color: var(--text-3);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.cart-dropdown-empty {
  padding: 28px 18px 22px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.cart-dropdown-empty svg { color: var(--text-4); }
.cart-dropdown-empty p {
  margin: 0;
  color: var(--text-2);
  font-size: 14px;
}
.cart-dropdown-empty .btn { margin-top: 6px; }

.cart-dropdown-items {
  list-style: none;
  margin: 0;
  padding: 4px 0;
  max-height: 360px;
  overflow-y: auto;
}
.cart-dropdown-item {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  column-gap: 12px;
  align-items: center;
  padding: 12px 38px 12px 18px;
  position: relative;
}
.cart-dropdown-item + .cart-dropdown-item {
  border-top: 1px solid var(--border);
}
.cart-mini-thumb {
  display: block;
  width: 56px;
  height: 56px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface);
  flex-shrink: 0;
}
.cart-mini-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.cart-mini-info {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.cart-mini-name {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.35;
}
.cart-mini-name:hover { color: var(--accent); }
.cart-mini-variant {
  font-size: 11.5px;
  color: var(--text-3);
}
.cart-mini-qty {
  font-size: 12px;
  color: var(--text-3);
}
.cart-mini-price {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}
.cart-mini-remove {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--text-4);
  text-decoration: none;
  transition: background var(--duration-fast), color var(--duration-fast);
}
.cart-mini-remove:hover {
  background: var(--surface-2);
  color: var(--accent);
}

.cart-dropdown-foot {
  padding: 14px 18px 16px;
  border-top: 1px solid var(--border);
  background: var(--surface);
  border-bottom-left-radius: var(--radius);
  border-bottom-right-radius: var(--radius);
}
.cart-dropdown-totals {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 13px;
  color: var(--text-2);
  margin-bottom: 10px;
}
.cart-dropdown-totals strong {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 500;
  color: var(--text);
}
.cart-dropdown-progress {
  height: 4px;
  background: var(--border);
  border-radius: 999px;
  overflow: hidden;
}
.cart-dropdown-progress-bar {
  height: 100%;
  background: var(--accent);
  transition: width 250ms var(--ease-out-quart);
}
.cart-dropdown-progress-text {
  margin: 8px 0 12px;
  font-size: 12px;
  color: var(--text-3);
  text-align: center;
  line-height: 1.45;
}
.cart-dropdown-progress-text strong { color: var(--text); }
.cart-dropdown-progress-ok {
  color: var(--success);
}
.cart-dropdown-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.cart-dropdown-actions .btn {
  width: 100%;
  justify-content: center;
}

@media (max-width: 600px) {
  .cart-dropdown {
    right: -8px;
    width: min(360px, calc(100vw - 24px));
  }
}
@media (prefers-reduced-motion: reduce) {
  .cart-dropdown {
    transition: opacity 100ms linear, visibility 100ms linear;
    transform: none !important;
  }
}

/* ============================================================
   MoMA-style homepage upgrade (phases 2-7)
   ============================================================ */

/* Wider container only on home, so big imagery breathes. */
body.home .home-container { max-width: 1600px; }

/* Section rhythm: more air, smaller "quiet" labels. */
body.home .home-section { padding: clamp(3rem, 5.5vw, 5.5rem) 0; }
body.home .home-section-title {
  font-family: var(--sans);
  font-weight: 600;
  font-size: clamp(0.9rem, 1.1vw, 1rem);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text);
  text-align: center;
  margin: 0 0 clamp(1.25rem, 2.4vw, 2rem);
}
body.home .home-section-title::after {
  content: "";
  display: block;
  width: 32px;
  height: 1px;
  background: var(--text);
  margin: 14px auto 0;
}

/* === Phase 2: Editorial promo billboard === */

.home-billboard {
  padding: clamp(1rem, 2vw, 1.75rem) 0 0;
}
.home-billboard-card {
  border-radius: clamp(10px, 1.2vw, 18px);
  overflow: hidden;
  background: #1d1d1d;
  box-shadow: 0 1px 0 var(--border);
}
.home-billboard-strip {
  background: #fff7d6;
  color: #111;
  padding: 14px 22px;
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  font-size: 13px;
}
.home-billboard-strip-eyebrow {
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  color: #5a4d10;
  margin-right: 4px;
}
.home-billboard-strip strong {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1rem, 1.4vw, 1.25rem);
  color: #111;
}
.home-billboard-strip code {
  background: #fff;
  border: 1px dashed #c8b85a;
  padding: 3px 10px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: #111;
}
.home-billboard-strip-link {
  color: #111;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 500;
}
.home-billboard-strip-link:hover { color: var(--accent); }

.home-billboard-photo {
  position: relative;
  aspect-ratio: 16 / 6;
  background: #0a0a0a;
}
.home-billboard-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.home-billboard-copy {
  position: absolute;
  inset: clamp(16px, 3.5vw, 50px) auto auto clamp(20px, 4vw, 60px);
  width: max-content;
  max-width: min(46vw, 540px);
  color: #fff;
  background: rgba(8, 8, 8, 0.58);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 16px;
  padding: clamp(16px, 2vw, 28px) clamp(18px, 2.5vw, 34px);
  border: 1px solid rgba(255,255,255,.1);
  box-shadow: 0 4px 32px rgba(0,0,0,.35);
}
.home-billboard-copy h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.7rem, 3.4vw, 2.9rem);
  line-height: 1.06;
  margin: 0 0 10px;
}
.home-billboard-copy p {
  margin: 0 0 20px;
  font-size: clamp(13px, 1vw, 15px);
  line-height: 1.55;
  color: rgba(255,255,255,.88);
}
.home-billboard-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #111;
  color: #fff;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 14px;
  text-decoration: none;
  transition: transform var(--duration-fast) var(--ease-out-quart),
              background var(--duration-fast) var(--ease-out-quart);
}
.home-billboard-cta:hover { background: var(--accent); transform: translateY(-1px); color: #fff; }
.home-billboard-cta svg { width: 16px; height: 16px; }

@media (max-width: 720px) {
  .home-billboard-photo { aspect-ratio: 4 / 5; }
  .home-billboard-copy {
    position: absolute;
    inset: auto 14px 14px 14px;
    max-width: none;
    background: rgba(12,12,12,.78);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 18px 18px 20px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,.1);
  }
}

/* Billboard + daily deal row */
.home-billboard-row {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(290px, 1fr);
  gap: clamp(12px, 1.5vw, 20px);
  align-items: stretch;
}
.home-billboard-left {
  display: flex;
  flex-direction: column;
  gap: clamp(12px, 1.5vw, 20px);
  min-width: 0;
}
.home-billboard-sliders {
  padding: clamp(4px, .5vw, 8px) 0 0;
}
.home-billboard-sliders .home-slider {
  margin-bottom: clamp(1.25rem, 2.5vw, 2rem);
}
.home-billboard-sliders .home-slider:last-child { margin-bottom: 0; }
.home-billboard-row .home-daily-deal-shell {
  display: flex;
  flex-direction: column;
}
.home-billboard-row .home-deal-trust {
  margin-top: auto;
}
.home-billboard-row .home-daily-deal-next {
  grid-template-columns: repeat(2, 1fr);
}
@media (max-width: 1000px) {
  .home-billboard-row {
    grid-template-columns: 1fr;
  }
  .home-billboard-row .home-daily-deal-shell {
    grid-template-columns: minmax(260px, .85fr) minmax(320px, 1.15fr);
  }
  .home-billboard-row .home-daily-deal-next {
    grid-column: 1 / -1;
    grid-template-columns: repeat(4, 1fr);
  }
}
@media (max-width: 760px) {
  .home-billboard-row .home-daily-deal-shell {
    grid-template-columns: 1fr;
  }
}

/* === Category sliders === */

.home-sliders {
  padding: clamp(1.5rem, 3vw, 2.5rem) 0 0;
}
.home-slider {
  margin-bottom: clamp(1.75rem, 3.5vw, 3rem);
}
.home-slider:last-child { margin-bottom: 0; }
.home-slider-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.home-slider-title {
  font-family: var(--serif);
  font-size: clamp(1.1rem, 1.8vw, 1.45rem);
  font-weight: 400;
  margin: 0;
  color: var(--text);
}
.home-slider-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--duration-fast) var(--ease-out-quart);
}
.home-slider-more:hover { color: var(--accent); }
.home-slider-more svg { width: 14px; height: 14px; }
.home-slider-track {
  display: flex;
  gap: clamp(10px, 1.4vw, 18px);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 8px;
  /* Scroll hint: partly expose next card */
  padding-right: clamp(24px, 5vw, 56px);
}
.home-slider-track::-webkit-scrollbar { display: none; }
.home-slider-nav {
  display: flex;
  gap: 6px;
  margin-left: auto;
  flex-shrink: 0;
}
.home-slider-nav button {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: var(--bg);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  transition: background .15s, border-color .15s, opacity .15s;
  flex-shrink: 0;
  padding: 0;
}
.home-slider-nav button:hover:not(:disabled) {
  background: var(--grey-100);
  border-color: var(--grey-400);
}
.home-slider-nav button:disabled { opacity: .3; cursor: default; }
.home-slider-nav svg { width: 14px; height: 14px; pointer-events: none; }
.home-slider-track .home-product {
  flex: 0 0 clamp(148px, 18vw, 210px);
  scroll-snap-align: start;
  min-width: 0;
}

/* === Daily deal === */

.home-daily-deal {
  padding: clamp(1.25rem, 2.5vw, 2rem) 0 0;
}
.home-daily-deal-shell {
  display: grid;
  grid-template-columns: minmax(260px, .78fr) minmax(320px, 1.18fr) minmax(230px, .62fr);
  gap: clamp(14px, 2vw, 24px);
  align-items: stretch;
  padding: clamp(14px, 2vw, 22px);
  border-radius: clamp(16px, 2vw, 28px);
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  overflow: hidden;
}
.home-daily-deal-copy,
.home-daily-deal-next {
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--bg);
}
.home-daily-deal-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(20px, 3vw, 34px);
}
.home-daily-deal-kicker {
  display: inline-flex;
  width: max-content;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.home-daily-deal-copy h2 {
  margin: 0 0 10px;
  font-size: clamp(1.9rem, 4vw, 4.15rem);
  line-height: .92;
  letter-spacing: -.055em;
  text-transform: uppercase;
  color: var(--text);
}
.home-daily-deal-copy p {
  margin: 0 0 20px;
  max-width: 34ch;
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.5;
}
.home-daily-deal-countdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  max-width: 360px;
}
.home-daily-deal-countdown span {
  display: grid;
  place-items: center;
  min-height: 66px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface-2);
}
.home-daily-deal-countdown strong {
  font-size: clamp(1.15rem, 2vw, 1.7rem);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}
.home-daily-deal-countdown small {
  margin-top: 4px;
  color: var(--text-3);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.home-daily-deal-note {
  width: max-content;
  max-width: 100%;
  margin-top: 14px;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
}
.home-daily-deal-product {
  position: relative;
  display: grid;
  grid-template-rows: minmax(260px, 1fr) auto auto auto;
  min-height: 520px;
  overflow: hidden;
  border-radius: 22px;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}
.home-daily-deal-product:hover { color: var(--text); }
.home-daily-deal-badge {
  position: absolute;
  z-index: 2;
  top: 16px;
  left: 16px;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--bg);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.home-daily-deal-media {
  position: relative;
  display: block;
  min-height: 0;
  background: var(--surface-2);
}
.home-daily-deal-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  padding: clamp(18px, 3vw, 36px);
  transition: transform 500ms var(--ease-out-quart);
}
@media (hover: hover) {
  .home-daily-deal-product:hover .home-daily-deal-media img { transform: scale(1.035) rotate(-1deg); }
}
.home-daily-deal-info {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-end;
  padding: 20px 22px 16px;
}
.home-daily-deal-info strong,
.home-daily-deal-info small { display: block; }
.home-daily-deal-info strong {
  font-size: clamp(1.05rem, 1.8vw, 1.45rem);
  line-height: 1.15;
}
.home-daily-deal-info small {
  margin-top: 6px;
  color: var(--text-3);
  font-size: 12px;
}
.home-daily-deal-price {
  display: grid;
  justify-items: end;
  gap: 3px;
  white-space: nowrap;
}
.home-daily-deal-price del {
  color: var(--text-4);
  font-size: 13px;
}
.home-daily-deal-price b {
  color: var(--accent);
  font-size: clamp(1.2rem, 2vw, 1.7rem);
}
.home-daily-deal-omnibus {
  display: block;
  padding: 0 22px 10px;
  color: var(--text-3);
  font-size: 11px;
}
.home-daily-deal-cta {
  display: flex;
  justify-content: center;
  margin: 0 22px 22px;
  padding: 13px 18px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--bg);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.home-daily-deal-next {
  display: flex;
  flex-direction: column;
  padding: 16px;
  gap: 10px;
}
.home-daily-deal-next-title {
  display: block;
  margin: 0 0 4px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.home-daily-deal-next-item {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 70px;
  padding: 8px;
  border-radius: 14px;
  background: var(--surface-2);
  color: var(--text);
}
.home-daily-deal-next-item:hover { color: var(--text); background: var(--border); }
.home-daily-deal-next-item img {
  width: 54px;
  height: 54px;
  object-fit: contain;
  border-radius: 11px;
  background: var(--bg);
}
.home-daily-deal-next-item small,
.home-daily-deal-next-item strong,
.home-daily-deal-next-item em { display: block; }
.home-daily-deal-next-item small {
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
}
.home-daily-deal-next-item strong {
  overflow: hidden;
  color: var(--text);
  font-size: 12px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.home-daily-deal-next-item em {
  padding: 5px 7px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
}

@media (max-width: 1120px) {
  .home-daily-deal-shell { grid-template-columns: minmax(260px, .85fr) minmax(320px, 1.15fr); }
  .home-daily-deal-next { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .home-daily-deal-next-title { grid-column: 1 / -1; }
  .home-daily-deal-next-item { grid-template-columns: 46px minmax(0, 1fr); }
  .home-daily-deal-next-item em { grid-column: 2; width: max-content; }
}
@media (max-width: 760px) {
  .home-daily-deal-shell { grid-template-columns: 1fr; }
  .home-daily-deal-product { min-height: 0; }
  .home-daily-deal-media { aspect-ratio: 1 / 1; }
  .home-daily-deal-info { display: grid; }
  .home-daily-deal-price { justify-items: start; }
  .home-daily-deal-next { grid-template-columns: 1fr; }
}
@media (max-width: 440px) {
  .home-daily-deal-countdown { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Deal trust list */
.home-deal-trust {
  margin-top: 12px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--bg);
  overflow: hidden;
}
.home-deal-trust-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
  border-bottom: 1px solid var(--border);
}
.home-deal-trust-item:last-child { border-bottom: none; }
.home-deal-trust-item svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  color: var(--accent);
}

/* === Phase 3: Full-bleed category mosaic === */

body.home .home-collection--bleed-wrap {
  padding-top: clamp(2.5rem, 4.5vw, 4.5rem);
}

.omnibus-price,
.home-product-omnibus {
  display: block;
  margin-top: 4px;
  color: var(--grey-500);
  font-size: 12px;
  line-height: 1.35;
}
.omnibus-price.is-detail {
  margin: -6px 0 14px;
  font-size: 13px;
}
.personalization-notice {
  margin: 12px 0 16px;
  padding: 12px 14px;
  border: 1px solid rgba(180,83,9,.28);
  border-radius: var(--radius);
  background: rgba(180,83,9,.08);
  color: #7c2d12;
  font-size: 13px;
}
.personalization-check { margin-top: 14px; }
.reviews-policy {
  padding: 12px 14px;
  border-radius: var(--radius);
  background: var(--grey-50);
  color: var(--grey-700);
  font-size: 13px;
}
.legal-links-box {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--grey-200);
  font-size: 12px;
  color: var(--grey-500);
}
.legal-links-box a { text-decoration: underline; text-underline-offset: 2px; }
.home-newsletter-consent {
  flex-basis: 100%;
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.4;
  color: var(--text-3);
  text-align: left;
}
.home-newsletter-consent input { margin-top: 3px; }
.cookie-consent {
  position: fixed;
  inset: auto 16px 16px 16px;
  z-index: 1000;
  display: flex;
  justify-content: center;
  pointer-events: none;
}
.cookie-consent[hidden] { display: none; }
.cookie-consent-card {
  width: min(980px, 100%);
  display: grid;
  grid-template-columns: 1.5fr auto auto;
  gap: 18px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,.97);
  box-shadow: var(--shadow-lg);
  pointer-events: auto;
}
.cookie-consent-card h2 { margin: 0 0 6px; font-size: 18px; }
.cookie-consent-card p { margin: 0 0 6px; color: var(--grey-700); font-size: 13px; }
.cookie-consent-card a { color: var(--accent); font-size: 13px; text-decoration: underline; }
.cookie-consent-options {
  display: grid;
  gap: 6px;
  font-size: 13px;
  white-space: nowrap;
}
.cookie-consent-options label { display: flex; gap: 7px; align-items: center; }
.cookie-consent-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

@media (max-width: 820px) {
  .cookie-consent-card { grid-template-columns: 1fr; }
  .cookie-consent-actions { justify-content: stretch; }
  .cookie-consent-actions .btn { flex: 1; }
}
body.home .home-collection--bleed-wrap .home-container {
  max-width: 1180px;
  padding: 0 clamp(16px, 3vw, 32px);
}
.home-collection--bleed {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: clamp(10px, 1.4vw, 16px);
}
.home-collection--bleed .home-tile { color: #fff; }
.home-collection--bleed .home-tile-media {
  aspect-ratio: 4 / 3;
  border-radius: 14px;
  margin-bottom: 0;
  background: #1a1a1a;
}
.home-collection--bleed .home-tile-media img {
  filter: saturate(1.05);
}
.home-collection--bleed .home-tile-caption {
  position: absolute;
  inset: auto 0 0 0;
  text-align: left;
  padding: 18px clamp(16px, 2vw, 28px) 22px;
  color: #fff;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.55) 70%, rgba(0,0,0,.7) 100%);
}
.home-collection--bleed .home-tile-caption-meta {
  color: rgba(255,255,255,.78);
  font-size: 12px;
  letter-spacing: 0.04em;
}
.home-collection--bleed .home-tile-media {
  position: relative;
  overflow: hidden;
}

.home-collection--bleed .home-tile { position: relative; display: block; }
.home-collection--bleed .home-tile {
  border-radius: 14px;
  overflow: hidden;
}
.home-collection--bleed .home-tile-caption { z-index: 2; }


.home-collection--bleed .home-tile.no-image .home-tile-media { background: #1f1f1f; }
.home-collection--bleed .home-tile.no-image .home-tile-inner-name { color: #fafafa; }

@media (max-width: 1024px) { .home-collection--bleed { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 600px)  { .home-collection--bleed { grid-template-columns: 1fr; } }



.home-product { position: relative; }
.home-product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  background: #111;
  color: #fff;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}



.home-stories {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2.4vw, 36px);
}
.home-story {
  display: block;
  color: #111;
  text-decoration: none;
}
.home-story-media {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  background: var(--surface-2);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 16px;
}
.home-story-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms var(--ease-out-quart);
}
@media (hover: hover) {
  .home-story:hover .home-story-media img { transform: scale(1.025); }
}
.home-story-title {
  display: block;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.1rem, 1.4vw, 1.35rem);
  margin: 0 0 6px;
  text-align: center;
}
.home-story-caption {
  display: block;
  text-align: center;
  font-size: 13.5px;
  color: var(--text-3);
  line-height: 1.5;
  max-width: 38ch;
  margin: 0 auto;
}
@media (max-width: 720px) {
  .home-stories { grid-template-columns: 1fr; gap: 24px; }
}

.home-licenses-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto clamp(20px, 3vw, 34px);
}
.home-licenses-head p {
  margin: -10px 0 0;
  color: var(--text-3);
  font-size: 14px;
  line-height: 1.6;
}
.home-licenses {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}
.home-license-card {
  min-height: 96px;
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  color: var(--text);
  text-decoration: none;
  box-shadow: 0 1px 0 rgba(17,17,17,.04);
  transition: border-color .16s ease, transform .16s ease, box-shadow .16s ease;
}
a.home-license-card:hover {
  border-color: var(--border-2);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.home-license-card img {
  display: block;
  max-width: 100%;
  max-height: 52px;
  object-fit: contain;
}
.home-license-card span {
  font-weight: 700;
  text-align: center;
  font-size: 14px;
}
@media (max-width: 980px) {
  .home-licenses { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .home-licenses { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-license-card { min-height: 82px; padding: 14px; }
}


.home-contact {
  padding: clamp(2.5rem, 5vw, 5rem) 0;
  background: #fff;
}
.home-contact-card {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: start;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: clamp(24px, 4vw, 48px);
}
.home-contact-kicker {
  display: block;
  margin-bottom: 12px;
  color: #c44a1f;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.home-contact h2 {
  margin: 0 0 14px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  line-height: 1.12;
  color: #111;
}
.home-contact p {
  margin: 0;
  color: var(--text-3);
  line-height: 1.65;
  max-width: 48ch;
}
.home-contact-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
}
.home-contact-list div {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px 18px;
}
.home-contact-list div:first-child,
.home-contact-list div:nth-child(3) {
  grid-column: 1 / -1;
}
.home-contact-list dt {
  margin: 0 0 6px;
  color: var(--text-3);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.home-contact-list dd {
  margin: 0;
  color: #111;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.home-contact-list a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 820px) {
  .home-contact-card { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .home-contact-list { grid-template-columns: 1fr; }
  .home-contact-list div { grid-column: 1 / -1; }
}



.home-newsletter {
  background: var(--surface-2);
  padding: clamp(3rem, 6vw, 5rem) 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-top: clamp(2rem, 4vw, 4rem);
}
.home-newsletter-inner {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  padding: 0 20px;
}
.home-newsletter h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  line-height: 1.15;
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}
.home-newsletter p {
  margin: 0 0 24px;
  color: var(--text-3);
  font-size: 15px;
  line-height: 1.55;
}
.home-newsletter-form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 460px;
  margin: 0 auto;
}
.home-newsletter-form input[type="email"] {
  flex: 1;
  padding: 14px 18px;
  border: 1px solid var(--border-2);
  border-radius: 999px;
  background: #fff;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--text);
}
.home-newsletter-form input[type="email"]:focus {
  outline: none;
  border-color: var(--text);
  box-shadow: 0 0 0 3px rgba(17,17,17,.08);
}
.home-newsletter-form button {
  background: #111;
  color: #fff;
  border: 0;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  transition: background var(--duration-fast);
}
.home-newsletter-form button:hover { background: var(--accent); }
.home-newsletter-note {
  margin: 14px 0 0;
  font-size: 12px;
  color: var(--text-4);
}
@media (max-width: 520px) {
  .home-newsletter-form { flex-direction: column; }
  .home-newsletter-form input,
  .home-newsletter-form button { width: 100%; }
}
