:root {
  --ink: #171717;
  --muted: #65615b;
  --paper: #fbfaf7;
  --panel: #ffffff;
  --panel-soft: rgba(255, 255, 255, 0.9);
  --line: #e2ded6;
  --sage: #526b58;
  --sage-dark: #263a2d;
  --wine: #7b2636;
  --denim: #244d68;
  --brass: #b88746;
  --shadow: 0 24px 80px rgba(23, 23, 23, 0.14);
  --header-height: 76px;
  --hero-image: url("assets/brand/hero-light.jpg");
  --hero-overlay: linear-gradient(90deg, rgba(251, 250, 247, 0.94), rgba(251, 250, 247, 0.72) 42%, rgba(251, 250, 247, 0.08) 78%);
  --hero-text: #171717;
  --hero-muted: rgba(23, 23, 23, 0.72);
  --hero-eyebrow: #7b2636;
  --hero-card-bg: rgba(255, 255, 255, 0.72);
  --hero-card-border: rgba(23, 23, 23, 0.14);
  --hero-card-muted: #65615b;
  --quality-image: url("assets/brand/rack-light.jpg");
  --quality-overlay: linear-gradient(120deg, rgba(251, 250, 247, 0.9), rgba(238, 231, 218, 0.58));
  --quality-text: #171717;
  --quality-muted: rgba(23, 23, 23, 0.68);
  --glass-bg: rgba(255, 255, 255, 0.66);
  --glass-border: rgba(23, 23, 23, 0.12);
  --thankyou-image: url("assets/brand/boutique-light.jpg");
  --thankyou-overlay: linear-gradient(120deg, rgba(251, 250, 247, 0.82), rgba(247, 240, 230, 0.62));
  --header-hero-color: #171717;
  --header-hero-border: rgba(23, 23, 23, 0.14);
  --button-ink-bg: #171717;
  --button-ink-text: #ffffff;
  --button-ink-hover: #333333;
  color-scheme: light;
}

[data-theme="dark"] {
  --ink: #f4f0e8;
  --muted: #bdb6aa;
  --paper: #10110f;
  --panel: #181a16;
  --panel-soft: rgba(24, 26, 22, 0.92);
  --line: #34372f;
  --sage: #8aa277;
  --sage-dark: #b9d1a6;
  --wine: #b94d62;
  --denim: #7aa0b9;
  --brass: #d7aa66;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
  --hero-image: url("assets/brand/hero-dark.jpg");
  --hero-overlay: linear-gradient(90deg, rgba(7, 9, 8, 0.88), rgba(7, 9, 8, 0.52) 44%, rgba(7, 9, 8, 0.16) 78%);
  --hero-text: #f4f0e8;
  --hero-muted: rgba(244, 240, 232, 0.82);
  --hero-eyebrow: #f0c48b;
  --hero-card-bg: rgba(10, 12, 10, 0.52);
  --hero-card-border: rgba(255, 255, 255, 0.24);
  --hero-card-muted: rgba(244, 240, 232, 0.72);
  --quality-image: url("assets/brand/rack-dark.jpg");
  --quality-overlay: linear-gradient(120deg, rgba(18, 22, 18, 0.94), rgba(32, 46, 54, 0.76));
  --quality-text: #ffffff;
  --quality-muted: rgba(255, 255, 255, 0.76);
  --glass-bg: rgba(255, 255, 255, 0.1);
  --glass-border: rgba(255, 255, 255, 0.22);
  --thankyou-image: url("assets/brand/boutique-dark.jpg");
  --thankyou-overlay: linear-gradient(120deg, rgba(16, 17, 15, 0.88), rgba(66, 24, 34, 0.72));
  --header-hero-color: #ffffff;
  --header-hero-border: rgba(255, 255, 255, 0.24);
  --button-ink-bg: #f4f0e8;
  --button-ink-text: #10110f;
  --button-ink-hover: #d8d0c4;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

body.cart-open,
body.nav-open,
body.search-open,
body.wishlist-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button,
input {
  font: inherit;
}

button,
.button,
.icon-button,
.filter,
.add-button,
.product-card,
.coupon-card,
.admin-data-row,
.favorite-card {
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    color 180ms ease,
    opacity 180ms ease;
}

button,
.button,
.icon-button,
.filter,
.add-button,
.color-pill,
.size-button,
a,
[role="button"] {
  -webkit-tap-highlight-color: transparent;
}

button:active,
.button:active,
.icon-button:active,
.filter:active,
.add-button:active,
.color-pill:active,
.size-button:active,
.favorite-button:active,
.product-card:active,
.category-tile:active,
.mobile-tabbar a:active,
.mobile-tabbar button:active {
  box-shadow: inset 0 3px 10px rgba(0, 0, 0, 0.18);
  transform: scale(0.97);
}

button:disabled,
.button:disabled,
.add-button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

button:focus-visible,
.button:focus-visible,
.icon-button:focus-visible,
.filter:focus-visible,
.add-button:focus-visible,
.color-pill:focus-visible,
.size-button:focus-visible,
.thumbnail-button:focus-visible,
.mobile-tabbar a:focus-visible,
.mobile-tabbar button:focus-visible {
  outline: 3px solid rgba(184, 135, 70, 0.38);
  outline-offset: 3px;
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes panelDrop {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes softPop {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes previewOut {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  to {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 clamp(18px, 4vw, 56px);
  border-bottom: 1px solid var(--header-hero-border);
  color: var(--header-hero-color);
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.site-header.is-scrolled,
.site-header.nav-active {
  color: var(--ink);
  background: rgba(251, 250, 247, 0.94);
  border-color: var(--line);
  box-shadow: 0 12px 36px rgba(23, 23, 23, 0.08);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: 136px;
  letter-spacing: 0;
  text-transform: uppercase;
}

.brand::before {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  content: "VS";
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.82rem;
  font-weight: 900;
}

.brand span,
.brand small {
  line-height: 1;
}

.brand span {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
  font-weight: 700;
}

.brand small {
  font-size: 0.72rem;
  font-weight: 700;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 3vw, 38px);
  font-size: 0.91rem;
  font-weight: 700;
}

.main-nav a,
.main-nav .nav-action {
  position: relative;
  padding-block: 8px;
}

.main-nav a::after,
.main-nav .nav-action::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  content: "";
  background: currentColor;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 160ms ease;
}

.main-nav a:hover::after,
.main-nav a:focus-visible::after,
.main-nav .nav-action:hover::after,
.main-nav .nav-action:focus-visible::after {
  transform: scaleX(1);
}

.main-nav .nav-action {
  border: 0;
  color: inherit;
  background: transparent;
  cursor: pointer;
  font-weight: 700;
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  min-width: 136px;
}

.icon-button {
  position: relative;
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 999px;
  color: inherit;
  background: transparent;
  cursor: pointer;
  transition: transform 150ms ease, background 150ms ease;
}

.icon-button:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.14);
}

.site-header.is-scrolled .icon-button:hover,
.site-header.nav-active .icon-button:hover {
  background: rgba(23, 23, 23, 0.06);
}

.icon-button svg,
.button svg,
.trust-strip svg,
.quote svg {
  width: 18px;
  height: 18px;
  stroke-width: 2;
}

i[data-lucide] {
  display: inline-grid;
  width: 18px;
  height: 18px;
  place-items: center;
  font-style: normal;
  line-height: 1;
}

i[data-lucide]::before {
  content: "•";
  font-size: 0.95rem;
  font-weight: 900;
}

i[data-lucide="search"]::before {
  content: "⌕";
}

i[data-lucide="heart"]::before {
  content: "♡";
}

i[data-lucide="shopping-bag"]::before {
  content: "▢";
}

i[data-lucide="user"]::before {
  content: "U";
}

i[data-lucide="menu"]::before {
  content: "≡";
}

i[data-lucide="plus"]::before {
  content: "+";
}

i[data-lucide="x"]::before {
  content: "×";
}

i[data-lucide="arrow-right"]::before {
  content: "→";
}

i[data-lucide="truck"]::before {
  content: "▱";
}

i[data-lucide="rotate-ccw"]::before {
  content: "↺";
}

i[data-lucide="shield-check"]::before,
i[data-lucide="check"]::before {
  content: "✓";
}

i[data-lucide="sparkles"]::before {
  content: "✦";
}

i[data-lucide="mail"]::before,
i[data-lucide="send"]::before {
  content: "✉";
}

i[data-lucide="quote"]::before {
  content: "“";
}

i[data-lucide="credit-card"]::before {
  content: "▭";
}

i[data-lucide="moon"]::before {
  content: "◐";
}

i[data-lucide="sun"]::before {
  content: "☼";
}

i[data-lucide="home"]::before {
  content: "⌂";
}

i[data-lucide="layout-grid"]::before {
  content: "▦";
}

i[data-lucide="log-in"]::before {
  content: "↪";
}

i[data-lucide="log-out"]::before {
  content: "↩";
}

i[data-lucide="package-check"]::before {
  content: "□";
}

i[data-lucide="party-popper"]::before {
  content: "✦";
}

i[data-lucide="search-x"]::before {
  content: "⌧";
}

.cart-count {
  position: absolute;
  top: -5px;
  right: -5px;
  display: grid;
  min-width: 20px;
  height: 20px;
  place-items: center;
  padding: 0 5px;
  border-radius: 999px;
  color: #fff;
  background: var(--wine);
  font-size: 0.72rem;
  font-weight: 800;
}

.menu-button {
  display: none;
}

.theme-toggle {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 95;
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 15px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  color: #fff;
  background: rgba(23, 23, 23, 0.78);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(16px);
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 900;
  transition: transform 150ms ease, background 150ms ease;
}

.theme-toggle:hover {
  background: rgba(23, 23, 23, 0.92);
  transform: translateY(-2px);
}

[data-theme="dark"] .theme-toggle {
  color: #10110f;
  background: rgba(244, 240, 232, 0.9);
}

.hero {
  position: relative;
  min-height: min(760px, 82vh);
  display: grid;
  align-items: center;
  padding: calc(var(--header-height) + 56px) clamp(20px, 6vw, 84px) 76px;
  color: var(--hero-text);
  background:
    var(--hero-overlay),
    var(--hero-image) center / cover;
}

.hero-copy {
  max-width: 620px;
}

.eyebrow {
  margin: 0 0 13px;
  color: var(--brass);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: var(--hero-eyebrow);
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  letter-spacing: 0;
}

h1 {
  max-width: 11ch;
  font-size: clamp(4rem, 10vw, 8.8rem);
  line-height: 0.88;
}

h2 {
  max-width: 760px;
  font-size: clamp(2.15rem, 5vw, 4.6rem);
  line-height: 0.98;
}

h3 {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.25;
}

.hero-copy p:not(.eyebrow) {
  max-width: 520px;
  margin: 25px 0 0;
  color: var(--hero-muted);
  font-size: clamp(1rem, 2vw, 1.18rem);
  line-height: 1.65;
}

.hero-actions,
.product-buy,
.cart-footer .button {
  display: flex;
  align-items: center;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 850;
  cursor: pointer;
  transition: transform 150ms ease, background 150ms ease, color 150ms ease, border-color 150ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  color: #fff;
  background: var(--wine);
}

.button-primary:hover {
  background: #641c2a;
}

.button-secondary {
  color: var(--hero-text);
  border-color: currentColor;
  background: rgba(255, 255, 255, 0.12);
}

.hero-card {
  position: absolute;
  right: clamp(20px, 5vw, 70px);
  bottom: 28px;
  display: grid;
  gap: 5px;
  width: min(330px, calc(100% - 40px));
  padding: 18px 20px;
  border: 1px solid var(--hero-card-border);
  border-radius: 8px;
  background: var(--hero-card-bg);
  backdrop-filter: blur(16px);
}

.hero-card span {
  color: var(--hero-card-muted);
  font-size: 0.82rem;
}

.hero-card strong {
  font-size: 1.1rem;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--line);
  background: var(--panel);
}

.trust-strip div {
  display: flex;
  min-height: 86px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px;
  border-right: 1px solid var(--line);
  color: var(--sage-dark);
  font-weight: 800;
}

.trust-strip div:last-child {
  border-right: 0;
}

.section {
  padding: clamp(58px, 9vw, 118px) clamp(20px, 6vw, 84px);
}

.intro-band {
  background: var(--paper);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 34px;
}

.section-heading p:not(.eyebrow) {
  color: var(--muted);
}

.category-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.85fr 0.85fr;
  gap: 18px;
}

.category-tile {
  position: relative;
  min-height: 330px;
  overflow: hidden;
  border-radius: 8px;
  background: #ddd;
}

.category-tile.large {
  min-height: 460px;
}

.category-tile img,
.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 260ms ease;
}

.category-tile:hover img,
.product-card:hover .product-media img {
  transform: scale(1.035);
}

.category-tile::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, transparent 30%, rgba(0, 0, 0, 0.66));
}

.category-tile div {
  position: absolute;
  right: 20px;
  bottom: 20px;
  left: 20px;
  z-index: 1;
  display: grid;
  gap: 7px;
  color: #fff;
}

.category-tile span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.category-tile strong {
  max-width: 360px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.35rem, 2vw, 2.15rem);
  line-height: 1.02;
}

.category-tile[role="button"] {
  cursor: pointer;
}

.category-tile[role="button"]:focus-visible {
  outline: 3px solid var(--brass);
  outline-offset: 3px;
}

.favorites-board {
  display: grid;
  grid-template-columns: minmax(260px, 0.5fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  margin-top: 24px;
  padding: clamp(20px, 4vw, 34px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 18px 56px rgba(23, 23, 23, 0.08);
}

.favorites-board h3 {
  max-width: 360px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1;
}

.favorite-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.favorite-card {
  display: grid;
  grid-template-columns: 74px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  cursor: pointer;
}

.favorite-card img {
  width: 74px;
  height: 82px;
  border-radius: 8px;
  object-fit: cover;
}

.favorite-card div {
  display: grid;
  gap: 4px;
}

.favorite-card span,
.favorite-card small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.favorite-card button {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
}

.favorite-card-actions {
  justify-self: end;
  opacity: 0;
  transform: translateX(6px);
}

.favorite-card:hover .favorite-card-actions,
.favorite-card:focus-within .favorite-card-actions {
  opacity: 1;
  transform: translateX(0);
}

.favorite-card:hover {
  border-color: rgba(82, 107, 88, 0.42);
  box-shadow: 0 16px 38px rgba(23, 23, 23, 0.1);
  transform: translateY(-1px);
}

.empty-favorites {
  grid-column: 1 / -1;
  display: flex;
  min-height: 104px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-weight: 850;
}

.product-section {
  background: var(--panel);
}

.product-heading {
  align-items: center;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.filter {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: var(--panel);
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.filter.is-active {
  color: #fff;
  border-color: var(--sage);
  background: linear-gradient(135deg, var(--sage-dark), var(--sage));
  box-shadow: 0 0 0 4px rgba(82, 107, 88, 0.16);
  transform: translateY(-1px);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.product-card {
  position: relative;
  display: grid;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 14px 42px rgba(23, 23, 23, 0.06);
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
  animation: riseIn 420ms ease both;
}

.product-card:hover,
.product-card:focus-visible {
  border-color: rgba(38, 58, 45, 0.34);
  box-shadow: 0 26px 64px rgba(23, 23, 23, 0.13);
  outline: none;
  transform: translateY(-5px);
}

.product-card.is-hidden {
  display: none;
}

.quick-preview {
  position: absolute;
  right: 12px;
  bottom: 12px;
  left: 12px;
  z-index: 4;
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 48px rgba(23, 23, 23, 0.18);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px) scale(0.98);
  transition: opacity 190ms ease, transform 190ms ease;
}

.quick-preview p,
.quick-preview ul {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.quick-preview ul {
  padding-left: 18px;
}

.quick-preview.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.quick-preview.is-hiding {
  animation: previewOut 220ms ease both;
}

.product-media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #e8e2d8;
}

.product-media::after {
  position: absolute;
  inset: auto 0 0;
  height: 34%;
  content: "";
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.22));
  opacity: 0;
  transition: opacity 180ms ease;
}

.product-card:hover .product-media::after,
.product-card:focus-visible .product-media::after {
  opacity: 1;
}

.badge {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 7px 10px;
  border-radius: 999px;
  color: #fff;
  background: var(--wine);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.badge.neutral {
  background: var(--denim);
}

.favorite-button {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  color: #fff;
  background: rgba(20, 20, 20, 0.36);
  backdrop-filter: blur(14px);
  cursor: pointer;
  transition: transform 150ms ease, background 150ms ease, color 150ms ease;
}

.favorite-button:hover,
.favorite-button.is-active {
  color: #fff;
  background: var(--wine);
  transform: translateY(-1px);
}

.favorite-button.is-active,
.favorite-detail-button.is-active {
  box-shadow: 0 0 0 4px rgba(123, 38, 54, 0.18), 0 12px 30px rgba(123, 38, 54, 0.22);
}

.product-info {
  display: grid;
  gap: 22px;
  padding: 18px;
}

.product-copy {
  display: grid;
  gap: 6px;
}

.product-copy > span {
  color: var(--brass);
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.product-hint {
  color: var(--sage-dark);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.product-info p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.product-buy {
  justify-content: space-between;
  gap: 12px;
}

.product-buy strong {
  white-space: nowrap;
  font-size: 1.06rem;
}

.add-button {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 13px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  color: var(--ink);
  background: transparent;
  font-weight: 850;
  cursor: pointer;
}

.add-button:hover {
  color: #fff;
  background: var(--ink);
}

.button-ink {
  color: var(--button-ink-text);
  background: var(--button-ink-bg);
}

.button-ink:hover {
  background: var(--button-ink-hover);
}

.empty-products {
  grid-column: 1 / -1;
  display: grid;
  justify-items: center;
  gap: 12px;
  min-height: 320px;
  padding: 50px 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  text-align: center;
}

.empty-products svg {
  width: 36px;
  height: 36px;
  color: var(--wine);
}

.empty-products p {
  max-width: 420px;
  margin: 0;
  color: var(--muted);
}

.quality-band {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.72fr);
  gap: clamp(34px, 6vw, 88px);
  padding: clamp(64px, 10vw, 132px) clamp(20px, 6vw, 84px);
  color: var(--quality-text);
  background:
    var(--quality-overlay),
    var(--quality-image) center / cover;
}

.quality-copy {
  max-width: 720px;
}

.quality-copy .eyebrow {
  color: var(--hero-eyebrow);
}

.quality-copy p:not(.eyebrow) {
  max-width: 610px;
  color: var(--quality-muted);
  line-height: 1.65;
}

.quality-list {
  display: grid;
  align-content: center;
  gap: 14px;
}

.quality-list div {
  display: grid;
  gap: 7px;
  padding: 20px;
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  background: var(--glass-bg);
  backdrop-filter: blur(14px);
}

.quality-list strong {
  font-size: 1.02rem;
}

.quality-list span {
  color: var(--quality-muted);
  line-height: 1.5;
}

.testimonial-section {
  background: var(--paper);
}

.quote {
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
}

.quote svg {
  width: 34px;
  height: 34px;
  color: var(--wine);
}

.quote p {
  margin: 20px 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.55rem, 3vw, 3rem);
  line-height: 1.12;
}

.quote span {
  color: var(--muted);
  font-weight: 800;
}

.newsletter {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(300px, 0.72fr);
  gap: 28px;
  align-items: center;
  padding: clamp(48px, 8vw, 92px) clamp(20px, 6vw, 84px);
  color: var(--ink);
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.82), rgba(238, 231, 218, 0.72)),
    url("assets/brand/rack-light.jpg") center / cover;
}

.newsletter .eyebrow {
  color: var(--wine);
}

.newsletter h2 {
  max-width: 690px;
  font-size: clamp(2rem, 4vw, 3.8rem);
}

.newsletter form {
  display: grid;
  gap: 10px;
}

.newsletter input {
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  border: 1px solid rgba(23, 23, 23, 0.16);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
  outline: none;
}

.newsletter input::placeholder {
  color: rgba(23, 23, 23, 0.48);
}

.newsletter input:focus {
  border-color: var(--sage-dark);
}

.form-message {
  min-height: 22px;
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 80;
  display: grid;
  grid-template-rows: auto 1fr auto;
  width: min(420px, 100%);
  height: 100dvh;
  background: var(--panel);
  box-shadow: var(--shadow);
  opacity: 0.96;
  transform: translateX(105%);
  transition: transform 260ms cubic-bezier(0.2, 0.8, 0.2, 1), opacity 220ms ease;
}

.cart-drawer.is-open {
  opacity: 1;
  transform: translateX(0);
}

.search-panel {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 80;
  display: grid;
  grid-template-rows: auto auto 1fr;
  width: min(560px, 100%);
  height: 100dvh;
  background: var(--panel);
  box-shadow: var(--shadow);
  opacity: 0.96;
  transform: translateX(-105%);
  transition: transform 260ms cubic-bezier(0.2, 0.8, 0.2, 1), opacity 220ms ease;
}

.search-panel.is-open {
  opacity: 1;
  transform: translateX(0);
}

.wishlist-popover {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 82;
  display: grid;
  grid-template-rows: auto 1fr;
  width: min(420px, 100%);
  height: 100dvh;
  background: var(--panel);
  box-shadow: var(--shadow);
  opacity: 0.96;
  transform: translateX(105%);
  transition: transform 260ms cubic-bezier(0.2, 0.8, 0.2, 1), opacity 220ms ease;
}

.wishlist-popover.is-open {
  opacity: 1;
  transform: translateX(0);
}

.wishlist-popover-list {
  display: grid;
  align-content: start;
  gap: 10px;
  overflow: auto;
  padding: 16px;
}

.search-panel-header,
.wishlist-popover-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px;
  border-bottom: 1px solid var(--line);
}

.search-panel-header div,
.wishlist-popover-head div {
  display: grid;
  gap: 4px;
}

.search-panel-header span,
.wishlist-popover-head span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.search-panel-header strong,
.wishlist-popover-head strong {
  font-size: 1.18rem;
}

.search-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
}

.search-form input {
  min-height: 46px;
  min-width: 0;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: var(--panel);
  outline: none;
}

.search-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px 22px 0;
}

.search-suggestions button {
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: var(--panel);
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 850;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.search-suggestions button:hover,
.search-suggestions button:focus-visible {
  color: #fff;
  border-color: var(--sage-dark);
  background: var(--sage-dark);
  outline: none;
  transform: translateY(-1px);
}

.search-results {
  display: grid;
  align-content: start;
  gap: 10px;
  overflow: auto;
  padding: 18px 22px 26px;
}

.search-helper {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 0.92rem;
}

.search-result {
  display: grid;
  grid-template-columns: 74px 1fr auto;
  gap: 12px;
  align-items: center;
  width: 100%;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.search-result:hover,
.search-result:focus-visible {
  background: rgba(82, 107, 88, 0.08);
  outline: none;
}

.search-result img {
  width: 74px;
  height: 82px;
  border-radius: 8px;
  object-fit: cover;
}

.search-result span {
  display: grid;
  gap: 4px;
}

.search-result small {
  color: var(--muted);
  line-height: 1.35;
}

.empty-search {
  display: grid;
  justify-items: center;
  gap: 8px;
  min-height: 220px;
  align-content: center;
  color: var(--muted);
  text-align: center;
}

.empty-search svg {
  width: 34px;
  height: 34px;
  color: var(--wine);
}

.cart-header,
.cart-footer {
  padding: 22px;
  border-bottom: 1px solid var(--line);
}

.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.cart-header div {
  display: grid;
  gap: 4px;
}

.cart-header span,
.cart-footer span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.cart-header strong {
  font-size: 1.25rem;
}

.cart-items {
  overflow: auto;
  padding: 18px 22px;
}

.empty-cart {
  margin: 0;
  color: var(--muted);
}

.cart-line {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.cart-line strong,
.cart-line span {
  display: block;
}

.cart-line span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.88rem;
}

.cart-mini-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 9px;
}

.cart-mini-actions button {
  min-height: 28px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: var(--panel);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 900;
}

.cart-footer {
  display: grid;
  gap: 18px;
  border-top: 1px solid var(--line);
  border-bottom: 0;
}

.cart-footer div {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.full {
  width: 100%;
}

.overlay {
  position: fixed;
  inset: 0;
  z-index: 70;
  pointer-events: none;
  background: rgba(0, 0, 0, 0.38);
  opacity: 0;
  transition: opacity 200ms ease;
}

.overlay.is-visible {
  pointer-events: auto;
  opacity: 1;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 28px clamp(20px, 6vw, 84px);
  color: rgba(255, 255, 255, 0.78);
  background: #111;
}

.site-footer span {
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  font-weight: 700;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: #fff;
  font-weight: 800;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.legal-footer-links {
  flex-basis: 100%;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.legal-footer-links a,
.legal-footer-links button {
  color: rgba(255, 255, 255, 0.88);
  border: 0;
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  padding: 0;
}

.legal-footer-links a:hover,
.legal-footer-links button:hover {
  color: #fff;
  text-decoration: underline;
}

.cookie-panel {
  position: fixed;
  z-index: 120;
  right: clamp(16px, 4vw, 42px);
  bottom: clamp(18px, 4vw, 42px);
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 22px;
  width: min(880px, calc(100vw - 32px));
  padding: 22px;
  color: var(--ink);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(14px) scale(0.985);
  transition: opacity 180ms ease, transform 180ms ease;
}

.cookie-panel.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.cookie-panel-copy span {
  color: var(--wine);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.cookie-panel-copy strong {
  display: block;
  margin-top: 6px;
  font-size: clamp(1.35rem, 2vw, 1.9rem);
}

.cookie-panel-copy p {
  color: var(--muted);
  line-height: 1.6;
}

.cookie-panel-copy a {
  color: var(--wine);
  font-weight: 900;
}

.cookie-options {
  display: grid;
  gap: 12px;
}

.cookie-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 44px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  font-weight: 900;
}

.cookie-toggle input {
  width: 18px;
  height: 18px;
  accent-color: var(--wine);
}

.cookie-toggle.is-disabled {
  color: var(--muted);
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.legal-main {
  width: min(1100px, calc(100% - 32px));
  margin: 0 auto;
  padding: calc(var(--header-height) + 52px) 0 72px;
}

.legal-hero {
  display: grid;
  gap: 14px;
  max-width: 780px;
  margin-bottom: 28px;
}

.legal-hero h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.3rem, 5vw, 4.8rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.legal-hero p {
  margin: 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.7;
}

.legal-index {
  position: sticky;
  top: calc(var(--header-height) + 14px);
  z-index: 5;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 28px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
  backdrop-filter: blur(14px);
}

.legal-index a {
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 900;
}

.legal-card {
  margin-bottom: 18px;
  padding: clamp(22px, 4vw, 38px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 12px 32px rgba(23, 23, 23, 0.06);
}

.legal-card h2,
.legal-card h3 {
  margin: 0 0 12px;
  letter-spacing: 0;
}

.legal-card h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.7rem, 3vw, 2.6rem);
}

.legal-card p,
.legal-list {
  color: var(--muted);
  line-height: 1.75;
}

.legal-warning {
  border-color: rgba(184, 135, 70, 0.48);
  background: linear-gradient(120deg, rgba(184, 135, 70, 0.12), var(--panel));
}

.legal-data {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 22px 0;
}

.legal-data div,
.cookie-table div,
.legal-columns article {
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.legal-data dt,
.cookie-table strong {
  margin-bottom: 6px;
  color: var(--ink);
  font-weight: 900;
}

.legal-data dd {
  margin: 0;
  color: var(--muted);
}

.legal-columns,
.cookie-table {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 20px 0;
}

.cookie-table div {
  display: grid;
  gap: 6px;
}

.cookie-table span {
  color: var(--muted);
  line-height: 1.55;
}

.legal-list {
  padding-left: 20px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.solid-header {
  color: var(--ink);
  background: rgba(251, 250, 247, 0.96);
  border-color: var(--line);
  box-shadow: 0 12px 36px rgba(23, 23, 23, 0.08);
  backdrop-filter: blur(16px);
}

.static-nav a {
  color: var(--ink);
}

.checkout-count {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  gap: 9px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  font-weight: 900;
}

.rich-cart-line {
  grid-template-columns: 64px 1fr auto;
  align-items: center;
}

.rich-cart-line img {
  width: 64px;
  height: 78px;
  border-radius: 8px;
  object-fit: cover;
  background: var(--line);
}

.detail-body,
.checkout-body {
  background:
    linear-gradient(180deg, #f7f3ec 0, #fbfaf7 380px),
    var(--paper);
}

.detail-main,
.checkout-main {
  padding-top: var(--header-height);
}

.loading-state,
.empty-page-state {
  display: grid;
  min-height: 70vh;
  place-items: center;
  padding: 80px 20px;
  text-align: center;
}

.empty-page-state {
  align-content: center;
  gap: 20px;
}

.empty-page-state h1 {
  max-width: 680px;
  font-size: clamp(2.4rem, 6vw, 5rem);
}

.product-detail {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(360px, 0.78fr);
  gap: clamp(28px, 5vw, 76px);
  padding: clamp(32px, 6vw, 84px) clamp(20px, 6vw, 84px);
}

.detail-gallery {
  display: grid;
  align-self: start;
  gap: 14px;
}

.main-product-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 5 / 6;
  border-radius: 8px;
  background: #e7e1d8;
  box-shadow: 0 28px 80px rgba(23, 23, 23, 0.12);
}

.main-product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumbnail-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.thumbnail-button {
  overflow: hidden;
  aspect-ratio: 1;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 8px;
  background: var(--panel);
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.thumbnail-button.is-active {
  border-color: var(--wine);
  box-shadow: 0 0 0 4px rgba(123, 38, 54, 0.14);
  transform: translateY(-1px);
}

.thumbnail-button img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-info {
  position: sticky;
  top: calc(var(--header-height) + 22px);
  align-self: start;
  display: grid;
  gap: 20px;
  padding: clamp(22px, 4vw, 38px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
  box-shadow: 0 24px 72px rgba(23, 23, 23, 0.08);
  backdrop-filter: blur(18px);
}

.breadcrumb-link {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
}

.detail-info h1,
.checkout-hero h1 {
  max-width: 12ch;
  font-size: clamp(2.6rem, 6vw, 5.8rem);
  line-height: 0.9;
}

.rating-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--brass);
}

.rating-line small {
  color: var(--muted);
  font-weight: 700;
}

.detail-price {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 950;
}

.detail-description {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.favorite-detail-button {
  display: inline-flex;
  width: fit-content;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: var(--panel);
  cursor: pointer;
  font-weight: 900;
}

.favorite-detail-button.is-active {
  color: #fff;
  border-color: var(--wine);
  background: var(--wine);
}

.option-block {
  display: grid;
  gap: 10px;
}

.option-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  font-size: 0.9rem;
}

.option-heading a,
.option-heading span {
  color: var(--muted);
  font-weight: 800;
}

.color-options,
.size-grid,
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.color-pill,
.size-button {
  min-height: 42px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: var(--panel);
  cursor: pointer;
  font-weight: 850;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.color-pill.is-active,
.size-button.is-active {
  color: #fff;
  border-color: var(--wine);
  background: linear-gradient(135deg, var(--wine), #9b4050);
  box-shadow: 0 0 0 4px rgba(123, 38, 54, 0.16), 0 12px 26px rgba(123, 38, 54, 0.2);
  transform: translateY(-1px);
}

.color-pill:disabled,
.size-button:disabled,
.size-button.is-out {
  text-decoration: line-through;
  cursor: not-allowed;
  opacity: 0.42;
}

.stock-chip {
  width: fit-content;
  margin-top: 4px;
  padding: 5px 8px;
  border: 1px solid rgba(82, 107, 88, 0.24);
  border-radius: 999px;
  color: var(--sage-dark);
  background: rgba(82, 107, 88, 0.09);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.rating-chip {
  width: fit-content;
  margin-top: 4px;
  padding: 5px 8px;
  border: 1px solid rgba(184, 135, 70, 0.34);
  border-radius: 999px;
  color: var(--brass);
  background: rgba(184, 135, 70, 0.1);
  font-size: 0.72rem;
  font-weight: 900;
}

.stock-chip.is-low,
.stock-line.is-low {
  color: var(--wine);
  border-color: rgba(123, 38, 54, 0.26);
  background: rgba(123, 38, 54, 0.08);
}

.stock-line {
  width: fit-content;
  margin: 0;
  padding: 8px 10px;
  border: 1px solid rgba(82, 107, 88, 0.22);
  border-radius: 999px;
  color: var(--sage-dark);
  background: rgba(82, 107, 88, 0.08);
  font-size: 0.84rem;
  font-weight: 900;
}

.detail-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.delivery-panel {
  display: grid;
  gap: 10px;
  padding-top: 8px;
}

.delivery-panel div {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--sage-dark);
  font-weight: 850;
}

.delivery-panel svg {
  width: 18px;
  height: 18px;
}

.product-story,
.spec-section,
.related-section {
  padding: clamp(46px, 7vw, 88px) clamp(20px, 6vw, 84px);
}

.product-story {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1fr);
  gap: clamp(24px, 5vw, 70px);
  color: #fff;
  background: var(--sage-dark);
}

.product-story .eyebrow {
  color: #f0c48b;
}

.product-story h2,
.spec-section h2,
.related-section h2 {
  font-size: clamp(2rem, 4vw, 4rem);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.feature-grid div {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.spec-section {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1fr);
  gap: clamp(24px, 5vw, 70px);
  background: var(--panel);
}

.spec-list {
  display: grid;
  border-top: 1px solid var(--line);
}

.spec-list div {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-weight: 750;
}

.spec-stack {
  display: grid;
  gap: 18px;
}

.size-guide-card {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.size-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 520px;
}

.size-table th,
.size-table td {
  padding: 13px 15px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.size-table th {
  color: var(--sage-dark);
  background: rgba(82, 107, 88, 0.08);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.size-table tr:last-child td {
  border-bottom: 0;
}

.reviews-section {
  padding: clamp(46px, 7vw, 88px) clamp(20px, 6vw, 84px);
  background: var(--paper);
}

.reviews-section .section-heading strong {
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--sage-dark);
  background: var(--panel);
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.review-card {
  display: grid;
  gap: 13px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 16px 42px rgba(23, 23, 23, 0.06);
}

.review-card span {
  color: var(--brass);
  letter-spacing: 0;
}

.review-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.related-section {
  background: var(--paper);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.related-card {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 16px 44px rgba(23, 23, 23, 0.06);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.related-card:hover {
  box-shadow: 0 24px 60px rgba(23, 23, 23, 0.12);
  transform: translateY(-4px);
}

.related-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 8px;
  object-fit: cover;
}

.related-card span {
  color: var(--muted);
  font-weight: 850;
}

.checkout-main {
  padding-bottom: clamp(52px, 8vw, 96px);
}

.checkout-hero {
  padding: clamp(44px, 8vw, 92px) clamp(20px, 6vw, 84px) 28px;
}

.checkout-hero p:not(.eyebrow) {
  max-width: 620px;
  color: var(--muted);
  line-height: 1.65;
}

.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 420px);
  gap: 22px;
  padding: 0 clamp(20px, 6vw, 84px);
}

.checkout-panel,
.summary-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
  box-shadow: 0 24px 72px rgba(23, 23, 23, 0.08);
}

.checkout-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px;
  border-bottom: 1px solid var(--line);
}

.checkout-panel-header div {
  display: grid;
  gap: 4px;
}

.checkout-panel-header span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.checkout-panel-header strong {
  font-size: 1.28rem;
}

.checkout-panel-header a {
  color: var(--sage-dark);
  font-weight: 900;
}

.checkout-items {
  display: grid;
}

.checkout-item {
  display: grid;
  grid-template-columns: 126px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 22px;
  border-bottom: 1px solid var(--line);
}

.checkout-item:last-child {
  border-bottom: 0;
}

.checkout-item img {
  width: 126px;
  aspect-ratio: 1;
  border-radius: 8px;
  object-fit: cover;
  background: var(--line);
}

.checkout-item-info {
  display: grid;
  gap: 7px;
}

.checkout-item-info span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.checkout-item-info p {
  margin: 0;
  color: var(--muted);
}

.checkout-item-end {
  display: grid;
  justify-items: end;
  gap: 14px;
}

.checkout-item-end button,
.quantity-control button,
.promo-form button {
  border: 0;
  color: var(--sage-dark);
  background: transparent;
  cursor: pointer;
  font-weight: 900;
}

.quantity-control {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
}

.quantity-control button {
  width: 38px;
  height: 34px;
  color: var(--ink);
}

.quantity-control strong {
  min-width: 28px;
  text-align: center;
}

.summary-panel {
  position: sticky;
  top: calc(var(--header-height) + 22px);
  align-self: start;
  display: grid;
  gap: 20px;
  padding: 24px;
}

.summary-panel h2 {
  font-size: 2rem;
}

.promo-form,
.checkout-form {
  display: grid;
  gap: 12px;
}

.promo-form label,
.checkout-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 850;
}

.promo-form div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.promo-form input,
.checkout-form input,
.checkout-form select {
  min-height: 46px;
  width: 100%;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--panel);
  outline: none;
}

.promo-form button {
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid var(--wine);
  border-radius: 8px;
  color: #fff;
  background: var(--wine);
}

.promo-form p {
  min-height: 20px;
  margin: 0;
  color: var(--sage-dark);
  font-size: 0.86rem;
  font-weight: 800;
}

.summary-lines {
  display: grid;
  border-top: 1px solid var(--line);
}

.summary-lines div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.summary-lines span {
  color: var(--muted);
  font-weight: 800;
}

.summary-total strong {
  font-size: 1.35rem;
}

.empty-checkout {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 70px 20px;
  text-align: center;
}

.empty-checkout svg {
  width: 42px;
  height: 42px;
  color: var(--wine);
}

.empty-checkout p {
  max-width: 420px;
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.checkout-form button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.mobile-tabbar {
  position: fixed;
  right: 12px;
  bottom: 12px;
  left: 12px;
  z-index: 90;
  display: none;
  grid-auto-flow: column;
  grid-auto-columns: minmax(48px, 1fr);
  gap: 4px;
  overflow-x: auto;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel-soft);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(18px);
  scrollbar-width: none;
}

.mobile-tabbar::-webkit-scrollbar {
  display: none;
}

.mobile-tabbar a,
.mobile-tabbar button {
  display: grid;
  min-height: 48px;
  place-items: center;
  gap: 2px;
  border: 0;
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-size: 0.64rem;
  font-weight: 900;
  white-space: nowrap;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease;
}

.mobile-tabbar svg {
  width: 18px;
  height: 18px;
}

.mobile-tabbar a:hover,
.mobile-tabbar button:hover,
.mobile-tabbar a:focus-visible,
.mobile-tabbar button:focus-visible {
  color: var(--ink);
  background: rgba(82, 107, 88, 0.1);
  transform: translateY(-1px);
}

.collection-main,
.account-main,
.tracking-main,
.thankyou-main {
  padding-top: var(--header-height);
}

.collection-hero,
.account-hero,
.tracking-hero {
  padding: clamp(48px, 8vw, 96px) clamp(20px, 6vw, 84px) 26px;
}

.collection-hero h1,
.account-hero h1,
.tracking-hero h1,
.thankyou-card h1 {
  max-width: 860px;
  font-size: clamp(2.8rem, 7vw, 6.4rem);
  line-height: 0.9;
}

.collection-hero p:not(.eyebrow),
.account-hero p:not(.eyebrow),
.tracking-hero p:not(.eyebrow) {
  max-width: 620px;
  color: var(--muted);
  line-height: 1.6;
}

.collection-shell {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 24px;
  padding: 0 clamp(20px, 6vw, 84px) clamp(70px, 10vw, 120px);
}

.filter-panel,
.account-card,
.tracking-card,
.thankyou-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 24px 72px rgba(23, 23, 23, 0.08);
}

.filter-panel {
  position: sticky;
  top: calc(var(--header-height) + 22px);
  align-self: start;
  display: grid;
  gap: 16px;
  max-height: calc(100dvh - var(--header-height) - 44px);
  overflow: auto;
  padding: 20px;
}

.filter-block,
.account-card label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 900;
}

.filter-block input,
.filter-block select,
.account-card input {
  min-height: 44px;
  width: 100%;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--panel);
  outline: none;
}

.collection-results {
  display: grid;
  gap: 18px;
}

.collection-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.collection-toolbar span {
  color: var(--muted);
  font-weight: 800;
}

.collection-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.account-shell {
  padding: 0 clamp(20px, 6vw, 84px) clamp(70px, 10vw, 120px);
}

.account-auth-layout {
  display: grid;
  grid-template-columns: minmax(0, 520px) minmax(280px, 0.7fr);
  gap: 18px;
  align-items: start;
}

.account-auth-layout.account-auth-centered {
  grid-template-columns: minmax(0, 560px);
  justify-content: center;
}

.account-auth-centered .account-login {
  max-width: none;
}

.account-login {
  max-width: 520px;
  display: grid;
  gap: 16px;
  padding: clamp(22px, 4vw, 36px);
}

.account-login h2,
.account-card h2 {
  font-size: clamp(2rem, 4vw, 3.6rem);
}

.account-dashboard {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr 1fr;
  gap: 18px;
}

.account-card {
  display: grid;
  align-content: start;
  gap: 16px;
  padding: 22px;
}

.auth-tabs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.auth-tabs button {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-weight: 900;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.auth-tabs button.is-active {
  color: #fff;
  border-color: var(--wine);
  background: var(--wine);
  box-shadow: 0 0 0 4px rgba(123, 38, 54, 0.15);
}

.auth-link-button {
  justify-self: center;
  border: 0;
  color: var(--wine);
  background: transparent;
  cursor: pointer;
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: color 160ms ease, transform 160ms ease;
}

.auth-link-button:hover {
  color: var(--sage-dark);
  transform: translateY(-1px);
}

.password-reset-note {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid rgba(123, 38, 54, 0.16);
  border-radius: 14px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.46);
  line-height: 1.5;
}

.account-message {
  min-height: 22px;
  margin: 0;
  color: var(--sage-dark);
  font-weight: 850;
}

.account-data-note p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.account-list,
.order-list {
  display: grid;
  gap: 10px;
}

.account-list a,
.order-list article,
.account-order-link {
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.account-order-link {
  grid-template-columns: 1fr;
  color: var(--ink);
  text-decoration: none;
}

.account-list img {
  width: 62px;
  height: 70px;
  border-radius: 8px;
  object-fit: cover;
}

.account-list span,
.order-list article {
  color: var(--muted);
}

.account-list strong,
.order-list strong {
  display: block;
  color: var(--ink);
}

.admin-body {
  background:
    linear-gradient(180deg, #f7f3ec 0, #fbfaf7 420px),
    var(--paper);
}

.admin-main {
  padding-top: var(--header-height);
}

.admin-hero {
  padding: clamp(48px, 8vw, 96px) clamp(20px, 6vw, 84px) 26px;
}

.admin-hero h1 {
  max-width: 860px;
  font-size: clamp(2.8rem, 7vw, 6.4rem);
  line-height: 0.9;
}

.admin-hero p:not(.eyebrow) {
  max-width: 680px;
  color: var(--muted);
  line-height: 1.6;
}

.admin-shell {
  display: grid;
  gap: 18px;
  padding: 0 clamp(20px, 6vw, 84px) clamp(70px, 10vw, 120px);
}

.admin-login-card,
.admin-card,
.admin-products-list,
.admin-topbar,
.admin-stats article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 24px 72px rgba(23, 23, 23, 0.08);
}

.admin-login-card {
  display: grid;
  gap: 16px;
  max-width: 520px;
  padding: clamp(22px, 4vw, 36px);
}

.admin-login-card h2,
.admin-editor h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
}

.admin-login-card label,
.admin-form-grid label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 900;
}

.admin-login-card input,
.admin-form-grid input,
.admin-form-grid select,
.admin-form-grid textarea {
  min-height: 44px;
  width: 100%;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--panel);
  outline: none;
}

.admin-form-grid textarea {
  min-height: 110px;
  padding-block: 12px;
  resize: vertical;
}

.admin-message {
  min-height: 22px;
  margin: 0;
  color: var(--sage-dark);
  font-weight: 850;
}

.admin-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
}

.admin-topbar span,
.admin-panel-heading span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.admin-stats article {
  display: grid;
  gap: 8px;
  padding: 18px;
}

.admin-stats span {
  color: var(--muted);
  font-weight: 900;
}

.admin-stats strong {
  font-size: 2rem;
}

.admin-layout {
  display: grid;
  grid-template-columns: minmax(240px, 310px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.admin-products-list {
  position: sticky;
  top: calc(var(--header-height) + 22px);
  display: grid;
  gap: 10px;
  max-height: calc(100dvh - var(--header-height) - 44px);
  overflow: auto;
  padding: 14px;
}

.admin-panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.admin-products-list button:not(.button) {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 10px;
  align-items: center;
  width: 100%;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.admin-products-list button.is-active {
  border-color: var(--sage-dark);
  background: rgba(82, 107, 88, 0.1);
}

.admin-products-list img {
  width: 58px;
  height: 70px;
  border-radius: 8px;
  object-fit: cover;
  background: var(--line);
}

.admin-products-list small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

.admin-main-column,
.admin-editor,
.admin-orders {
  display: grid;
  gap: 18px;
}

.admin-card {
  padding: clamp(18px, 3vw, 26px);
}

.admin-editor-preview {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 18px;
  align-items: center;
}

.admin-editor-preview img {
  width: 170px;
  aspect-ratio: 4 / 5;
  border-radius: 8px;
  object-fit: cover;
  background: var(--line);
}

.admin-editor-preview span {
  color: var(--muted);
  font-weight: 850;
}

.admin-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.admin-form-grid .wide {
  grid-column: 1 / -1;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-view-link {
  color: var(--ink);
  border-color: var(--line);
  background: transparent;
}

.admin-exportbar {
  align-items: center;
  justify-content: space-between;
}

.admin-export-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-account-menu {
  position: relative;
}

.admin-account-menu-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 8;
  display: grid;
  width: min(360px, 92vw);
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
  transform-origin: top right;
  animation: softPop 180ms ease both;
}

.admin-account-menu-panel .button {
  width: 100%;
  justify-content: flex-start;
}

.admin-account-menu-panel small {
  color: var(--muted);
  font-weight: 850;
}

.admin-delete-current.is-enabled {
  color: #fff;
  border: 1px solid #9f1028;
  background: #9f1028;
}

.admin-delete-current.is-disabled {
  color: rgba(123, 38, 54, 0.62);
  border: 1px solid rgba(123, 38, 54, 0.18);
  background: rgba(123, 38, 54, 0.08);
}

.variant-matrix {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.variant-matrix table {
  width: 100%;
  border-collapse: collapse;
  min-width: 520px;
}

.variant-matrix th,
.variant-matrix td {
  padding: 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-size: 0.82rem;
}

.variant-matrix th {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.variant-matrix tr:last-child td {
  border-bottom: 0;
}

.variant-matrix input {
  min-height: 38px;
  width: 92px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--panel);
  font-weight: 900;
}

.admin-low-stock {
  display: grid;
  gap: 10px;
}

.admin-low-stock article,
.admin-customers article {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(82, 107, 88, 0.07);
}

.admin-low-stock article span,
.admin-customers small {
  color: var(--muted);
}

.admin-order-card {
  display: grid;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.admin-order-card:last-child {
  border-bottom: 0;
}

.admin-order-head,
.admin-order-controls {
  display: grid;
  gap: 10px;
}

.admin-order-head {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
}

.admin-order-head span,
.admin-order-card small {
  color: var(--muted);
}

.admin-order-controls {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.admin-order-controls label,
.admin-customers article span {
  display: grid;
  gap: 6px;
}

.admin-order-controls input,
.admin-order-controls select {
  min-height: 42px;
  width: 100%;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--panel);
}

.admin-actions.compact {
  gap: 8px;
}

.admin-order {
  display: grid;
  gap: 8px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.admin-order:last-child {
  border-bottom: 0;
}

.admin-order div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.admin-order p,
.admin-order small {
  margin: 0;
  color: var(--muted);
}

.admin-coupons {
  display: grid;
  gap: 14px;
}

.admin-coupons p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.admin-coupons textarea {
  min-height: 220px;
  width: 100%;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--panel);
  font: 0.86rem/1.45 ui-monospace, SFMono-Regular, Consolas, monospace;
  resize: vertical;
}

.coupon-preview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.coupon-preview-grid article {
  display: grid;
  gap: 5px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(82, 107, 88, 0.08);
}

.coupon-preview-grid article.is-disabled {
  opacity: 0.48;
}

.coupon-preview-grid span,
.coupon-preview-grid small {
  color: var(--muted);
}

.admin-heading-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.admin-heading-actions strong {
  color: var(--muted);
  font-size: 0.78rem;
}

.icon-button.mini-icon,
.admin-products-list .icon-button.mini-icon {
  display: inline-grid;
  grid-template-columns: 1fr;
  place-items: center;
  width: 34px;
  height: 34px;
  min-width: 34px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--panel);
  box-shadow: none;
}

.icon-button.mini-icon svg {
  width: 17px;
  height: 17px;
}

.icon-button.mini-icon.positive,
.icon-button.mini-icon.success {
  color: #fff;
  border-color: var(--sage);
  background: var(--sage);
}

.icon-button.mini-icon.danger,
.danger-text {
  color: var(--wine);
}

.icon-button.mini-icon.danger {
  border-color: rgba(123, 38, 54, 0.38);
  background: rgba(123, 38, 54, 0.08);
}

.compact-button {
  min-height: 34px;
  padding: 0 12px;
  font-size: 0.78rem;
}

.admin-product-list-inner {
  display: grid;
  gap: 8px;
}

.admin-product-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
  gap: 8px;
}

.admin-products-list .admin-product-main {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  width: 100%;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.admin-product-main strong,
.admin-product-main small {
  overflow: hidden;
  text-overflow: ellipsis;
}

.row-hover-actions {
  display: grid;
  gap: 6px;
  opacity: 0;
  transform: translateX(4px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.admin-product-row:hover .row-hover-actions,
.admin-product-row:focus-within .row-hover-actions {
  opacity: 1;
  transform: translateX(0);
}

.admin-collapsible {
  padding: 0;
  overflow: hidden;
}

.admin-section-toggle {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 18px 20px;
  border: 0;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  text-align: left;
  transition: background 160ms ease, color 160ms ease;
}

.admin-section-toggle:hover,
.admin-section-toggle:focus-visible {
  background: rgba(82, 107, 88, 0.08);
}

.admin-section-toggle span {
  font-size: 1.04rem;
  font-weight: 950;
}

.admin-section-toggle strong {
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.76rem;
}

.admin-section-content {
  display: grid;
  gap: 14px;
  padding: 0 20px 20px;
  transform-origin: top;
}

.admin-collapsible.is-open .admin-section-content {
  animation: panelDrop 240ms ease both;
}

.admin-data-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(82, 107, 88, 0.07);
}

.admin-data-row span {
  display: grid;
  gap: 3px;
}

.admin-data-row small,
.admin-data-row strong {
  color: var(--muted);
}

.admin-data-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.low-stock-group {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(82, 107, 88, 0.07);
}

.low-stock-head,
.coupon-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.low-stock-head span {
  font-weight: 950;
}

.low-stock-head strong {
  color: var(--muted);
  font-size: 0.78rem;
}

.low-stock-colors {
  display: grid;
  gap: 7px;
}

.low-stock-colors span {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: 0.86rem;
}

.admin-global-notice {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid rgba(82, 107, 88, 0.28);
  border-radius: 8px;
  color: var(--sage-dark);
  background: rgba(82, 107, 88, 0.1);
  font-weight: 850;
}

.coupon-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.coupon-toolbar p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.coupon-section {
  display: grid;
  gap: 10px;
}

.coupon-section h3 {
  margin: 0;
  font-size: 1rem;
}

.coupon-card {
  position: relative;
  min-height: 132px;
  display: grid;
  gap: 12px;
  align-content: space-between;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(82, 107, 88, 0.08);
}

.coupon-card strong {
  font-size: 1.16rem;
  letter-spacing: 0.04em;
}

.coupon-card span,
.coupon-card small {
  display: block;
  color: var(--muted);
}

.coupon-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.coupon-card:hover .coupon-card-actions,
.coupon-card:focus-within .coupon-card-actions {
  opacity: 1;
  transform: translateY(0);
}

.coupon-card.is-disabled {
  opacity: 0.56;
}

.coupon-countdown {
  color: var(--sage-dark) !important;
  font-weight: 900;
}

.status-pill {
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 950;
  text-transform: uppercase;
}

.status-pill.success {
  color: #fff;
  background: var(--sage);
}

.status-pill.warning {
  color: #171717;
  background: var(--brass);
}

.status-pill.danger,
.status-pill.muted {
  color: #fff;
  background: var(--wine);
}

.image-uploader {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px dashed rgba(82, 107, 88, 0.44);
  border-radius: 8px;
  background: rgba(82, 107, 88, 0.07);
}

.image-uploader label {
  display: grid;
  justify-items: center;
  gap: 7px;
  padding: 16px;
  border-radius: 8px;
  color: var(--muted);
  cursor: pointer;
  text-align: center;
}

.image-uploader label svg {
  width: 28px;
  height: 28px;
  color: var(--sage-dark);
}

.image-uploader span {
  color: var(--ink);
  font-weight: 950;
}

.image-preview-strip {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
  gap: 8px;
}

.image-preview-strip img {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 8px;
  object-fit: cover;
  background: var(--line);
}

.confirm-typed-field {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-weight: 850;
}

.confirm-typed-field input {
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--panel);
}

.danger-action {
  color: #fff;
  border-color: var(--wine);
  background: var(--wine);
}

.admin-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 160;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(18, 18, 16, 0.48);
  backdrop-filter: blur(10px);
}

.admin-modal {
  width: min(980px, 100%);
  max-height: min(88dvh, 980px);
  overflow: auto;
  display: grid;
  gap: 18px;
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--panel);
  box-shadow: var(--shadow);
  animation: softPop 220ms ease both;
}

.admin-modal.coupon-editor,
.admin-modal.confirm-modal {
  width: min(620px, 100%);
}

.admin-modal-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
}

.admin-modal-head h2,
.admin-modal-head p {
  margin: 0;
}

.modal-head-actions {
  display: inline-flex;
  gap: 8px;
}

.admin-modal-bottom-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.admin-editor-preview > div {
  display: grid;
  gap: 12px;
  align-content: center;
}

.admin-check-label {
  align-content: center;
  grid-template-columns: auto 1fr;
  align-items: center;
}

.admin-check-label input {
  width: 18px;
  min-height: 18px;
  accent-color: var(--sage);
}

.admin-footer-note strong {
  color: #fff;
}

.checkout-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.checkout-steps button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-weight: 900;
}

.checkout-steps button.is-active {
  color: #fff;
  border-color: var(--wine);
  background: var(--wine);
}

.checkout-step-panel {
  display: none;
  gap: 12px;
}

.checkout-step-panel.is-active {
  display: grid;
}

.thankyou-main {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: calc(var(--header-height) + 50px) 20px 80px;
  background:
    var(--thankyou-overlay),
    var(--thankyou-image) center / cover;
}

.thankyou-card {
  display: grid;
  justify-items: center;
  gap: 16px;
  max-width: 760px;
  padding: clamp(28px, 6vw, 58px);
  text-align: center;
}

.thankyou-card > svg {
  width: 48px;
  height: 48px;
  color: var(--wine);
}

.thankyou-card p {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.thankyou-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: min(420px, 100%);
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.thankyou-lines {
  display: grid;
  gap: 8px;
  width: min(520px, 100%);
  margin: 0;
  padding: 0;
  list-style: none;
}

.thankyou-lines li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  text-align: left;
}

.thankyou-lines strong {
  color: var(--ink);
  white-space: nowrap;
}

.thankyou-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.tracking-shell {
  display: grid;
  grid-template-columns: minmax(280px, 380px) minmax(0, 1fr);
  gap: 24px;
  padding: 0 clamp(20px, 6vw, 84px) clamp(70px, 10vw, 120px);
}

.tracking-card {
  padding: clamp(20px, 3vw, 32px);
}

.tracking-form {
  align-self: start;
  display: grid;
  gap: 14px;
}

.tracking-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 900;
}

.tracking-form input {
  min-height: 46px;
  width: 100%;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--panel);
}

.tracking-message {
  min-height: 22px;
  margin: 0;
  color: var(--wine);
  font-weight: 850;
}

.tracking-result {
  display: grid;
  gap: 20px;
}

.tracking-result > svg {
  width: 32px;
  height: 32px;
  color: var(--wine);
}

.tracking-result-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
}

.tracking-result-head h2,
.tracking-result-head p {
  margin: 0;
}

.tracking-result-head p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.55;
}

.tracking-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.tracking-meta-grid article {
  display: grid;
  gap: 5px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(82, 107, 88, 0.07);
}

.tracking-meta-grid span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.tracking-progress {
  position: relative;
  height: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(82, 107, 88, 0.12);
}

.tracking-progress span {
  display: block;
  width: var(--progress, 0%);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--sage), var(--brass));
  transition: width 560ms ease;
}

.tracking-timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tracking-timeline li {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.tracking-timeline li > span {
  width: 18px;
  height: 18px;
  border: 2px solid var(--line);
  border-radius: 999px;
}

.tracking-timeline li.is-done > span {
  border-color: var(--sage);
  background: var(--sage);
}

.tracking-timeline small,
.tracking-lines small,
.tracking-cancelled {
  color: var(--muted);
}

.tracking-lines {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tracking-lines li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.tracking-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

[data-theme="dark"] body {
  background:
    linear-gradient(180deg, rgba(34, 36, 31, 0.52), transparent 420px),
    var(--paper);
}

[data-theme="dark"] .site-header.is-scrolled,
[data-theme="dark"] .site-header.nav-active,
[data-theme="dark"] .solid-header {
  color: var(--ink);
  background: rgba(16, 17, 15, 0.92);
  border-color: var(--line);
}

[data-theme="dark"] .main-nav,
[data-theme="dark"] .main-nav a,
[data-theme="dark"] .static-nav a {
  color: var(--ink);
}

[data-theme="dark"] .trust-strip,
[data-theme="dark"] .product-section,
[data-theme="dark"] .spec-section,
[data-theme="dark"] .newsletter input,
[data-theme="dark"] .filter,
[data-theme="dark"] .product-card,
[data-theme="dark"] .cart-drawer,
[data-theme="dark"] .search-panel,
[data-theme="dark"] .wishlist-popover,
[data-theme="dark"] .search-suggestions button,
[data-theme="dark"] .favorites-board,
[data-theme="dark"] .favorite-card,
[data-theme="dark"] .quick-preview,
[data-theme="dark"] .checkout-panel,
[data-theme="dark"] .summary-panel,
[data-theme="dark"] .detail-info,
[data-theme="dark"] .related-card,
[data-theme="dark"] .thumbnail-button,
[data-theme="dark"] .color-pill,
[data-theme="dark"] .size-button,
[data-theme="dark"] .quantity-control,
[data-theme="dark"] .checkout-count,
[data-theme="dark"] .size-guide-card,
[data-theme="dark"] .review-card,
[data-theme="dark"] .reviews-section .section-heading strong,
[data-theme="dark"] .admin-login-card,
[data-theme="dark"] .admin-card,
[data-theme="dark"] .admin-products-list,
[data-theme="dark"] .admin-topbar,
[data-theme="dark"] .admin-stats article,
[data-theme="dark"] .admin-products-list button:not(.button),
[data-theme="dark"] .tracking-card,
[data-theme="dark"] .tracking-meta-grid article,
[data-theme="dark"] .tracking-timeline li,
[data-theme="dark"] .promo-form input,
[data-theme="dark"] .checkout-form input,
[data-theme="dark"] .checkout-form select,
[data-theme="dark"] .admin-login-card input,
[data-theme="dark"] .admin-form-grid input,
[data-theme="dark"] .admin-form-grid select,
[data-theme="dark"] .admin-form-grid textarea,
[data-theme="dark"] .admin-order-controls input,
[data-theme="dark"] .admin-order-controls select,
[data-theme="dark"] .variant-matrix input,
[data-theme="dark"] .tracking-form input,
[data-theme="dark"] .admin-coupons textarea,
[data-theme="dark"] .coupon-preview-grid article,
[data-theme="dark"] .image-uploader,
[data-theme="dark"] .confirm-typed-field input,
[data-theme="dark"] .auth-tabs button {
  color: var(--ink);
  background: var(--panel);
  border-color: var(--line);
}

[data-theme="dark"] .newsletter {
  color: var(--ink);
  background:
    linear-gradient(120deg, rgba(16, 17, 15, 0.9), rgba(66, 24, 34, 0.72)),
    url("assets/brand/rack-dark.jpg") center / cover;
}

[data-theme="dark"] .newsletter .eyebrow {
  color: var(--brass);
}

[data-theme="dark"] .newsletter input::placeholder {
  color: rgba(244, 240, 232, 0.58);
}

[data-theme="dark"] .form-message {
  color: var(--muted);
}

[data-theme="dark"] .auth-link-button {
  color: var(--brass);
}

[data-theme="dark"] .auth-link-button:hover {
  color: var(--rose);
}

[data-theme="dark"] .password-reset-note {
  color: var(--muted);
  border-color: rgba(216, 199, 162, 0.24);
  background: rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .intro-band,
[data-theme="dark"] .testimonial-section,
[data-theme="dark"] .related-section,
[data-theme="dark"] .reviews-section {
  background: var(--paper);
}

[data-theme="dark"] .detail-body,
[data-theme="dark"] .checkout-body,
[data-theme="dark"] .tracking-body,
[data-theme="dark"] .admin-body {
  background:
    linear-gradient(180deg, #181a16 0, #10110f 420px),
    var(--paper);
}

[data-theme="dark"] .product-story,
[data-theme="dark"] .quality-band {
  color: #fff;
}

[data-theme="dark"] .button-secondary {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .add-button,
[data-theme="dark"] .favorite-card button,
[data-theme="dark"] .favorite-detail-button {
  color: var(--ink);
  border-color: var(--line);
  background: transparent;
}

[data-theme="dark"] .add-button:hover,
[data-theme="dark"] .favorite-detail-button.is-active {
  color: #fff;
  border-color: var(--wine);
  background: var(--wine);
}

[data-theme="dark"] .search-result:hover,
[data-theme="dark"] .search-result:focus-visible {
  background: rgba(185, 209, 166, 0.1);
}

[data-theme="dark"] .site-footer {
  background: #080908;
}

[data-theme="dark"] .legal-card,
[data-theme="dark"] .cookie-panel,
[data-theme="dark"] .legal-index {
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.34);
}

[data-theme="dark"] .legal-warning {
  background: linear-gradient(120deg, rgba(215, 170, 102, 0.14), var(--panel));
}

[data-theme="dark"] .mobile-tabbar,
[data-theme="dark"] .filter-panel,
[data-theme="dark"] .account-card,
[data-theme="dark"] .thankyou-card,
[data-theme="dark"] .collection-toolbar,
[data-theme="dark"] .filter-block input,
[data-theme="dark"] .filter-block select,
[data-theme="dark"] .account-card input,
[data-theme="dark"] .cart-mini-actions button,
[data-theme="dark"] .checkout-steps button,
[data-theme="dark"] .thankyou-summary {
  color: var(--ink);
  background: var(--panel);
  border-color: var(--line);
}

[data-theme="dark"] .checkout-steps button.is-active {
  color: #fff;
  border-color: var(--wine);
  background: var(--wine);
}

[data-theme="dark"] .auth-tabs button.is-active {
  color: #fff;
  border-color: var(--wine);
  background: var(--wine);
}

[data-theme="dark"] .admin-modal,
[data-theme="dark"] .admin-account-menu-panel,
[data-theme="dark"] .icon-button.mini-icon,
[data-theme="dark"] .admin-products-list .icon-button.mini-icon,
[data-theme="dark"] .coupon-card,
[data-theme="dark"] .admin-data-row,
[data-theme="dark"] .low-stock-group,
[data-theme="dark"] .tracking-progress,
[data-theme="dark"] .admin-global-notice {
  color: var(--ink);
  border-color: var(--line);
  background: var(--panel);
}

[data-theme="dark"] .admin-modal-backdrop {
  background: rgba(0, 0, 0, 0.62);
}

[data-theme="dark"] .icon-button.mini-icon.positive,
[data-theme="dark"] .icon-button.mini-icon.success {
  color: #10110f;
  border-color: var(--sage-dark);
  background: var(--sage-dark);
}

@media (max-width: 980px) {
  .main-nav {
    position: fixed;
    top: var(--header-height);
    right: 0;
    left: 0;
    z-index: 35;
    display: grid;
    gap: 0;
    padding: 10px 20px 20px;
    color: var(--ink);
    background: rgba(251, 250, 247, 0.98);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 26px 60px rgba(23, 23, 23, 0.13);
    transform: translateY(-130%);
    transition: transform 180ms ease;
  }

  .main-nav.is-open {
    transform: translateY(0);
  }

  .main-nav a,
  .main-nav .nav-action {
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
  }

  .main-nav a:last-child,
  .main-nav .nav-action:last-child {
    border-bottom: 0;
  }

  .menu-button {
    display: inline-grid;
  }

  .hero {
    min-height: 740px;
    background-position: 58% center;
  }

  .category-grid,
  .favorites-board,
  .product-grid,
  .quality-band,
  .newsletter,
  .product-detail,
  .product-story,
  .spec-section,
  .related-grid,
  .checkout-layout,
  .reviews-grid,
  .admin-layout,
  .admin-stats,
  .account-auth-layout,
  .tracking-shell,
  .tracking-meta-grid,
  .tracking-timeline,
  .admin-order-controls,
  .coupon-preview-grid {
    grid-template-columns: 1fr;
  }

  .cookie-panel,
  .legal-data,
  .legal-columns,
  .cookie-table {
    grid-template-columns: 1fr;
  }

  .collection-shell,
  .account-dashboard {
    grid-template-columns: 1fr;
  }

  .filter-panel,
  .admin-products-list {
    position: static;
    max-height: none;
  }

  .collection-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .category-tile,
  .category-tile.large {
    min-height: 360px;
  }

  .product-heading {
    align-items: start;
  }

  .detail-info,
  .summary-panel {
    position: static;
  }

  .detail-actions {
    grid-template-columns: 1fr;
  }

  .admin-editor-preview,
  .admin-form-grid {
    grid-template-columns: 1fr;
  }

  .row-hover-actions,
  .coupon-card-actions,
  .favorite-card-actions {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 720px) {
  :root {
    --header-height: 68px;
  }

  .site-header {
    padding-inline: 16px;
  }

  .brand,
  .header-actions {
    min-width: auto;
  }

  .hero {
    min-height: 680px;
    padding: calc(var(--header-height) + 42px) 20px 126px;
    background:
      var(--hero-overlay),
      var(--hero-image) center / cover;
  }

  h1 {
    font-size: clamp(3.4rem, 18vw, 5.4rem);
  }

  .hero-card {
    right: 20px;
    bottom: 20px;
    left: 20px;
    width: auto;
  }

  .trust-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .trust-strip div {
    min-height: 76px;
    border-bottom: 1px solid var(--line);
    font-size: 0.88rem;
  }

  .section-heading {
    display: grid;
    align-items: start;
  }

  .filters {
    justify-content: start;
  }

  .product-grid {
    gap: 16px;
  }

  .product-buy {
    align-items: stretch;
    flex-direction: column;
  }

  .add-button {
    width: 100%;
  }

  .newsletter form {
    width: 100%;
  }

  .static-nav {
    display: none;
  }

  .product-detail,
  .product-story,
  .spec-section,
  .related-section,
  .checkout-layout,
  .checkout-hero {
    padding-inline: 18px;
  }

  .detail-info h1,
  .checkout-hero h1 {
    font-size: clamp(2.5rem, 14vw, 4.2rem);
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .checkout-item {
    grid-template-columns: 92px 1fr;
    align-items: start;
  }

  .checkout-item img {
    width: 92px;
  }

  .checkout-item-end {
    grid-column: 1 / -1;
    grid-template-columns: 1fr auto;
    justify-items: start;
    align-items: center;
  }

  .promo-form div {
    grid-template-columns: 1fr;
  }

  .favorite-list {
    grid-template-columns: 1fr;
  }

  .search-form,
  .search-result {
    grid-template-columns: 1fr;
  }

  .search-result img {
    width: 100%;
    height: 150px;
  }

  .theme-toggle {
    right: 14px;
    bottom: 78px;
  }

  .legal-main {
    width: min(100% - 24px, 1100px);
    padding-top: calc(var(--header-height) + 34px);
  }

  .legal-index {
    position: static;
  }

  .cookie-panel {
    right: 12px;
    bottom: 88px;
    width: calc(100vw - 24px);
    max-height: calc(100vh - 112px);
    overflow: auto;
    padding: 18px;
  }

  .cookie-actions {
    justify-content: stretch;
  }

  .cookie-actions .button {
    width: 100%;
  }

  .mobile-tabbar {
    display: grid;
  }

  body {
    padding-bottom: 78px;
  }
}

@media (max-width: 620px) {
  .collection-grid {
    grid-template-columns: 1fr;
  }

  .collection-toolbar,
  .thankyou-actions {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (max-width: 440px) {
  .button,
  .filter,
  .add-button {
    width: 100%;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .trust-strip {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  [data-theme="dark"] .main-nav {
    background: rgba(16, 17, 15, 0.98);
    border-color: var(--line);
  }
}
