/* ═══════════════════════════════════════════════════════════════
   Shop2tout — Design System Luxe Futuriste
   Premium · Minimal · Fluid · Future Retail
   ═══════════════════════════════════════════════════════════════ */

@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Outfit:wght@300;400;500;600;700&display=swap");

/* ─── Design Tokens — Light ─── */
:root {
  --font-display: "Cormorant Garamond", "Georgia", serif;
  --font-body: "Outfit", system-ui, -apple-system, sans-serif;

  --gold: #b8956a;
  --gold-light: #d4b896;
  --gold-dark: #9a7b52;
  --gold-glow: rgba(184, 149, 106, 0.22);
  --copper: #c49a6c;

  --bg: #faf9f7;
  --bg-elevated: #ffffff;
  --bg-soft: #f2f0ec;
  --accent: #1a1816;
  --accent-soft: rgba(26, 24, 22, 0.05);
  --accent-strong: #3d3a36;
  --text: #1a1816;
  --text-muted: #7a756d;
  --border-subtle: rgba(26, 24, 22, 0.08);
  --danger: #c0392b;
  --success: #2d6a4f;
  --shadow-soft: 0 8px 32px rgba(26, 24, 22, 0.07);
  --shadow-elevated: 0 20px 60px rgba(26, 24, 22, 0.12);
  --shadow-glow: 0 0 40px var(--gold-glow);
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --radius-pill: 999px;
  --btn-primary-text: #faf9f7;
  --body-bg: #f5f3ef;
  --header-bg: rgba(250, 249, 247, 0.82);
  --card-bg: rgba(255, 255, 255, 0.88);
  --input-bg: rgba(255, 255, 255, 0.95);
  --cart-bg: rgba(255, 255, 255, 0.96);
  --cart-footer-bg: rgba(242, 240, 236, 0.95);
  --modal-bg: rgba(245, 243, 239, 0.97);
  --modal-dialog-bg: #faf9f7;
  --gallery-inner-bg: #eceae6;
  --gallery-thumb-bg: rgba(26, 24, 22, 0.04);
  --gallery-arrow-bg: rgba(255, 255, 255, 0.95);
  --gallery-arrow-color: #1a1816;
  --overlay-bg: rgba(18, 16, 14, 0.45);
  --glass-border: rgba(255, 255, 255, 0.6);
  --ease-out-expo: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: 0.2s var(--ease-smooth);
  --transition-medium: 0.35s var(--ease-out-expo);
  --transition-slow: 0.6s var(--ease-out-expo);

  --dark-bg: #08080a;
  --dark-surface: #141418;
  --dark-surface-alt: #1a1a1f;
  --dark-border: rgba(240, 235, 228, 0.1);
  --dark-text: #f0ebe4;
  --dark-text-muted: #8a8580;
  --dark-accent: #d4b896;
}

/* ─── Design Tokens — Dark (luxueux) ─── */
[data-theme="dark"] {
  --gold: var(--dark-accent);
  --gold-light: #e8d4b8;
  --gold-dark: #b8956a;
  --gold-glow: rgba(212, 184, 150, 0.15);
  --copper: #c9a87a;

  --bg: var(--dark-bg);
  --bg-elevated: var(--dark-surface);
  --bg-soft: var(--dark-surface-alt);
  --accent: var(--dark-text);
  --accent-soft: rgba(240, 235, 228, 0.08);
  --accent-strong: #d4cfc8;
  --text: var(--dark-text);
  --text-muted: var(--dark-text-muted);
  --border-subtle: var(--dark-border);
  --danger: #e74c3c;
  --success: #52b788;
  --shadow-soft: 0 8px 32px rgba(0, 0, 0, 0.45);
  --shadow-elevated: 0 24px 64px rgba(0, 0, 0, 0.65);
  --shadow-glow: 0 0 48px var(--gold-glow);
  --btn-primary-text: #0c0c0e;
  --body-bg: var(--dark-bg);
  --header-bg: rgba(8, 8, 10, 0.88);
  --card-bg: rgba(20, 20, 24, 0.92);
  --input-bg: rgba(26, 26, 31, 0.95);
  --cart-bg: rgba(12, 12, 14, 0.98);
  --cart-footer-bg: rgba(18, 18, 22, 0.98);
  --modal-bg: rgba(8, 8, 10, 0.97);
  --modal-dialog-bg: #0c0c0e;
  --gallery-inner-bg: #1a1a1f;
  --gallery-thumb-bg: rgba(240, 235, 228, 0.06);
  --gallery-arrow-bg: rgba(240, 235, 228, 0.95);
  --gallery-arrow-color: #0c0c0e;
  --overlay-bg: rgba(0, 0, 0, 0.72);
  --glass-border: rgba(240, 235, 228, 0.08);
}

[data-theme="dark"] .btn-primary {
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 100%);
  color: #0c0c0e;
  box-shadow: 0 4px 20px rgba(212, 184, 150, 0.2);
}

[data-theme="dark"] .btn-primary:hover:not(:disabled) {
  background: linear-gradient(135deg, #e8d4b8 0%, var(--gold-light) 100%);
  box-shadow: 0 8px 28px rgba(212, 184, 150, 0.3);
}

[data-theme="dark"] .cart-count {
  background: var(--gold);
  color: #0c0c0e;
}

:where(
  .product-price,
  .product-modal-price,
  .search-suggestion-price,
  .cart-item-price,
  .cart-total-row span:last-child,
  .cart-page-item-side strong,
  .favorite-item-price,
  .product-similar-card-body span
) {
  font-family: var(--font-body);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1, "lnum" 1;
  letter-spacing: 0.01em;
}

/* ─── Reset & Base ─── */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  background: var(--body-bg);
  color: var(--text);
  min-height: 100%;
  transition: background var(--transition-medium), color var(--transition-fast);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body {
  display: flex;
  flex-direction: column;
}

html.panel-scroll-locked,
body.panel-scroll-locked {
  overflow: hidden;
  overscroll-behavior: none;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, var(--gold-glow), transparent 60%),
    radial-gradient(ellipse 60% 40% at 100% 100%, rgba(184, 149, 106, 0.04), transparent 50%);
  opacity: 0.7;
}

body > * {
  position: relative;
  z-index: 1;
}

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

button {
  font: inherit;
  cursor: pointer;
}

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

/* ─── Scroll Reveal ─── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity var(--transition-slow),
    transform var(--transition-slow);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── Header Premium ─── */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 80;
  background: color-mix(in srgb, var(--header-bg) 92%, transparent);
  border-bottom: 1px solid var(--border-subtle);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition:
    background var(--transition-fast),
    border-color var(--transition-fast),
    box-shadow var(--transition-fast);
}

.header.header--scrolled {
  background: color-mix(in srgb, var(--header-bg) 96%, transparent);
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.08);
  border-bottom-color: var(--border-subtle);
}

[data-theme="dark"] .header.header--scrolled {
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.34);
}

.main {
  padding-top: var(--site-header-height, 10.5rem);
}

.header-benefits {
  overflow: hidden;
  border-bottom: 1px solid var(--border-subtle);
  background:
    linear-gradient(90deg, rgba(184, 149, 106, 0.16), transparent 18%, transparent 82%, rgba(184, 149, 106, 0.16)),
    color-mix(in srgb, var(--header-bg) 96%, transparent);
  color: var(--text-muted);
  white-space: nowrap;
  max-width: 100vw;
}

.header-benefits-track {
  width: max-content;
  display: flex;
  align-items: center;
  gap: 0;
  min-height: 2.15rem;
  padding: 0.38rem 0;
  animation: headerBenefitsMarquee 34s linear infinite;
  will-change: transform;
}

.header-benefits-group {
  display: flex;
  align-items: center;
  gap: clamp(2.25rem, 6vw, 6.5rem);
  padding-right: clamp(2.25rem, 6vw, 6.5rem);
  flex: 0 0 auto;
}

.header-benefits-group span {
  display: inline-flex;
  align-items: center;
  color: color-mix(in srgb, var(--text) 72%, var(--gold));
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  line-height: 1;
  text-transform: uppercase;
}

[data-theme="dark"] .header-benefits {
  background:
    linear-gradient(90deg, rgba(201, 166, 107, 0.15), transparent 18%, transparent 82%, rgba(201, 166, 107, 0.15)),
    color-mix(in srgb, var(--header-bg) 97%, transparent);
}

[data-theme="dark"] .header-benefits-group span {
  color: color-mix(in srgb, var(--gold) 72%, var(--text) 28%);
}

.promo-nav-status {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.34rem;
  padding: 0.42rem clamp(0.85rem, 4vw, 2rem);
  border-top: 1px solid var(--border-subtle);
  background: color-mix(in srgb, var(--header-bg) 96%, var(--gold) 4%);
  color: var(--text);
  font-size: 0.78rem;
  letter-spacing: 0.03em;
}

.promo-nav-inner {
  width: min(100%, 820px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.58rem;
  text-align: center;
  flex-wrap: wrap;
}

.promo-nav-offer {
  color: var(--gold-dark);
  font-weight: 700;
}

.promo-nav-offer strong {
  font-weight: 800;
  letter-spacing: 0.06em;
}

.promo-nav-separator {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--gold) 58%, var(--text-muted));
}

.promo-nav-text {
  min-width: 0;
  color: var(--text-muted);
  font-weight: 600;
}

.promo-nav-progress {
  width: min(100%, 520px);
  height: 3px;
  overflow: hidden;
  border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--border-subtle) 70%, transparent);
}

.promo-nav-progress span {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold-light));
  transition: width 220ms ease;
}

[data-theme="dark"] .promo-nav-status {
  background: color-mix(in srgb, var(--header-bg) 92%, var(--gold) 8%);
}

[data-theme="dark"] .promo-nav-offer {
  color: var(--gold-light);
}

@keyframes headerBenefitsMarquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .header-benefits-track {
    animation-duration: 60s;
  }
}

@media (min-width: 769px) {
  .header.header--scrolled .header-benefits-track {
    min-height: 1.68rem;
    padding-block: 0.26rem;
  }

  .header.header--scrolled .header-inner {
    padding-top: 0.38rem;
    padding-bottom: 0.4rem;
    gap: 0.25rem 1rem;
  }

  .header.header--scrolled .brand-name {
    font-size: clamp(34px, 1vw + 28px, 40px);
  }

  .header.header--scrolled .header-slogan,
  .header.header--scrolled .brand-rule {
    display: none;
  }

  .header.header--scrolled .header-nav {
    padding-top: 0;
  }
}

/* Signature de marque — centrée au-dessus des catégories */
.header-wordmark {
  margin: 0;
  grid-column: 2;
  grid-row: 1;
  justify-self: center;
  align-self: center;
  text-align: center;
  line-height: 1;
  min-width: 0;
  z-index: 1;
}

.header-search {
  grid-column: 1;
  grid-row: 1;
  justify-self: start;
  align-self: center;
  position: relative;
  width: min(100%, 22rem);
  min-width: 14rem;
  height: 44px;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0 0.4rem 0 0.85rem;
  border: 1px solid color-mix(in srgb, var(--gold) 25%, var(--border-subtle));
  border-radius: var(--radius-pill);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--surface) 92%, transparent), color-mix(in srgb, var(--gold) 6%, var(--surface))),
    var(--surface);
  color: var(--text-muted);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.04);
  transition:
    border-color var(--transition-fast),
    box-shadow var(--transition-fast),
    background var(--transition-fast);
  z-index: 2;
}

.header-search:focus-within {
  border-color: color-mix(in srgb, var(--gold) 70%, var(--border-subtle));
  box-shadow: 0 0 0 3px var(--gold-glow), 0 12px 30px rgba(0, 0, 0, 0.06);
}

.header-search-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  color: color-mix(in srgb, var(--gold) 72%, var(--text-muted));
}

.header-search-input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 0.9rem;
  line-height: 1;
}

.header-search-input::placeholder {
  color: var(--text-muted);
  opacity: 0.78;
}

.header-search-clear {
  width: 30px;
  height: 30px;
  min-width: 30px;
  border: 0;
  border-radius: 50%;
  background: color-mix(in srgb, var(--gold) 14%, transparent);
  color: var(--text-muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  line-height: 1;
  transition:
    background var(--transition-fast),
    color var(--transition-fast),
    transform var(--transition-fast);
}

.header-search-clear:hover,
.header-search-clear:focus-visible {
  background: var(--accent-soft);
  color: var(--text);
}

.header-search-clear:active {
  transform: scale(0.95);
}

[data-theme="dark"] .header-search {
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--dark-surface) 92%, transparent), color-mix(in srgb, var(--gold) 7%, var(--dark-surface))),
    var(--dark-surface);
  border-color: color-mix(in srgb, var(--gold) 24%, var(--dark-border));
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.26);
}

.search-suggestions {
  position: absolute;
  top: calc(100% + 0.55rem);
  left: 0;
  width: min(24rem, calc(100vw - 2rem));
  max-height: min(26rem, calc(100vh - var(--site-header-height, 9rem) - 1.25rem));
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 0.45rem;
  border: 1px solid color-mix(in srgb, var(--gold) 30%, var(--border-subtle));
  border-radius: 1.1rem;
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--bg-elevated) 96%, var(--gold) 4%), color-mix(in srgb, var(--bg-elevated) 94%, var(--gold) 6%)),
    #ffffff;
  box-shadow: 0 26px 70px rgba(26, 24, 22, 0.24);
  z-index: 420;
}

[data-theme="dark"] .search-suggestions {
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--dark-surface) 96%, var(--gold) 4%), color-mix(in srgb, var(--dark-surface-alt) 92%, var(--gold) 8%)),
    #141418;
  border-color: color-mix(in srgb, var(--gold) 30%, var(--dark-border));
  box-shadow: 0 28px 76px rgba(0, 0, 0, 0.76);
}

.search-suggestion-item,
.search-suggestion-more,
.search-suggestion-empty {
  width: 100%;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
}

.search-suggestion-item {
  display: grid;
  grid-template-columns: 3.2rem minmax(0, 1fr);
  gap: 0.75rem;
  align-items: center;
  padding: 0.55rem;
  border-radius: 0.85rem;
  cursor: pointer;
  transition:
    background var(--transition-fast),
    transform var(--transition-fast);
}

.search-suggestion-item:hover,
.search-suggestion-item:focus-visible {
  background: var(--accent-soft);
  transform: translateY(-1px);
  outline: none;
}

.search-suggestion-thumb {
  width: 3.2rem;
  aspect-ratio: 1;
  border-radius: 0.8rem;
  overflow: hidden;
  background: color-mix(in srgb, var(--gold) 10%, var(--bg-elevated));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}

[data-theme="dark"] .search-suggestion-thumb {
  background: color-mix(in srgb, var(--gold) 10%, var(--dark-surface-alt));
}

.search-suggestion-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.search-suggestion-title {
  display: block;
  color: var(--text);
  font-weight: 650;
  font-size: 0.92rem;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-suggestion-meta {
  margin-top: 0.22rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
  color: var(--text-muted);
  font-size: 0.76rem;
  line-height: 1.25;
}

.search-suggestion-price {
  color: var(--accent);
  font-weight: 700;
}

.search-suggestion-badge {
  padding: 0.12rem 0.42rem;
  border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--gold) 12%, transparent);
  color: var(--text-muted);
  font-size: 0.68rem;
  font-weight: 600;
}

.search-suggestion-more {
  margin-top: 0.3rem;
  padding: 0.65rem 0.8rem;
  border-radius: 0.85rem;
  color: var(--accent);
  cursor: pointer;
  font-weight: 700;
  text-align: center;
  background: color-mix(in srgb, var(--gold) 8%, transparent);
}

.search-suggestion-empty {
  padding: 0.85rem 0.9rem;
  color: var(--text-muted);
  text-align: center;
  font-size: 0.9rem;
}

.header-wordmark .brand,
.product-modal-header-brand .brand {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  text-decoration: none;
  color: inherit;
  padding: 0.25rem 0 0.15rem;
  max-width: 100%;
  opacity: 1;
}

.header-wordmark .brand:hover,
.product-modal-header-brand .brand:hover {
  opacity: 1;
}

.brand-name {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(26px, 5vw, 30px);
  font-weight: 500;
  font-style: normal;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent);
  line-height: 1;
  white-space: nowrap;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  opacity: 1;
  text-shadow: none;
}

[data-theme="dark"] .brand-name {
  color: var(--accent);
}

.brand-number {
  font-family: inherit;
  font-weight: inherit;
  font-size: 1.1em;
  letter-spacing: inherit;
  font-variant-numeric: lining-nums;
  font-feature-settings: "lnum" 1, "onum" 0;
  vertical-align: baseline;
  display: inline-block;
  margin: 0;
  padding: 0;
  opacity: 1;
  line-height: 1;
  transform: translateY(-0.015em);
}

.logo-accent,
.brand-number {
  font-family: inherit;
  font-weight: inherit;
  font-size: 1.1em;
  line-height: 1;
  letter-spacing: inherit;
  font-variant-numeric: lining-nums;
  font-feature-settings: "lnum" 1, "onum" 0;
  vertical-align: baseline;
  display: inline-block;
  margin: 0;
  padding: 0;
  color: var(--gold);
  -webkit-text-fill-color: var(--gold);
  transform: translateY(-0.015em);
}

.header-slogan {
  display: block;
  font-family: var(--font-body);
  font-size: clamp(10px, 2.2vw, 11px);
  font-weight: 300;
  letter-spacing: 0.07em;
  text-transform: none;
  color: var(--gold-light);
  line-height: 1.35;
  white-space: nowrap;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  opacity: 1;
  text-shadow: none;
}

[data-theme="dark"] .header-slogan {
  color: var(--gold-light);
}

[data-theme="light"] .header-slogan {
  color: var(--gold-dark);
}

.brand-rule {
  display: block;
  width: 100%;
  max-width: 6rem;
  height: 1px;
  margin-top: 0.2rem;
  background: color-mix(in srgb, var(--gold-light) 35%, transparent);
  opacity: 1;
}

[data-theme="light"] .brand-rule {
  background: color-mix(in srgb, var(--gold-dark) 40%, transparent);
}

@media (min-width: 768px) {
  .brand-name {
    font-size: clamp(42px, 1.2vw + 36px, 48px);
    font-weight: 500;
    letter-spacing: 0.1em;
  }

  .header-slogan {
    font-size: clamp(12px, 0.35vw + 11px, 13px);
    letter-spacing: 0.08em;
  }

  .brand-rule {
    max-width: 8.5rem;
    margin-top: 0.3rem;
  }
}

.header-toolbar-right {
  grid-column: 3;
  grid-row: 1;
  align-self: center;
  justify-self: end;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.25rem 0.45rem;
  min-width: min-content;
  position: relative;
  z-index: 2;
}

.header-icon-btn {
  box-sizing: border-box;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  margin: 0;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
  transition:
    background var(--transition-fast),
    color var(--transition-fast),
    transform var(--transition-fast),
    box-shadow var(--transition-fast);
}

.header-icon-btn:hover {
  background: var(--accent-soft);
}

.header-icon-btn:active {
  transform: translateY(0) scale(0.96);
}

.header-icon-btn:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.header-icon-svg {
  width: 22.5px;
  height: 22.5px;
  flex-shrink: 0;
  pointer-events: none;
  transition: transform var(--transition-fast);
}

.header-icon-btn:hover .header-icon-svg {
  transform: none;
}

.header-account-wrap {
  position: relative;
  z-index: 30;
}

.header-account-btn.header-account-btn--logged {
  width: auto;
  min-width: 46px;
  max-width: 200px;
  padding: 0 0.65rem 0 0.75rem;
  border-radius: var(--radius-pill);
  gap: 0.4rem;
  border: 1px solid var(--border-subtle);
  background: var(--accent-soft);
}

.header-account-greeting {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 9rem;
  line-height: 1.2;
}

.header-account-greeting.hidden {
  display: none !important;
}

@media (max-width: 640px) {
  .header-account-btn.header-account-btn--logged .header-account-greeting {
    display: none !important;
  }

  .header-account-btn.header-account-btn--logged {
    padding: 0;
    width: 44px;
    min-width: 44px;
    max-width: 44px;
    border: none;
    background: transparent;
  }
}

.account-dropdown {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  min-width: 240px;
  padding: 0.5rem 0;
  margin: 0;
  list-style: none;
  background: var(--card-bg);
  color: var(--text);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-elevated);
  backdrop-filter: blur(20px);
  z-index: 100;
  animation: dropdownIn 0.3s var(--ease-out-expo);
}

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

[data-theme="dark"] .account-dropdown {
  background: rgba(20, 20, 24, 0.96);
  border-color: var(--glass-border);
}

.account-dropdown.hidden {
  display: none !important;
}

.account-dropdown-heading {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  padding: 0.35rem 1.15rem 0.55rem;
}

.account-dropdown-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.6rem 1.15rem;
  margin: 0;
  border: none;
  background: transparent;
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 400;
  cursor: pointer;
  transition: background var(--transition-fast), color var(--transition-fast);
}

.account-dropdown-item:hover {
  background: var(--accent-soft);
  color: var(--gold);
}

.account-dropdown-item:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: -2px;
}

.account-dropdown-logout {
  margin-top: 0.35rem;
  padding-top: 0.7rem;
  border-top: 1px solid var(--border-subtle);
  color: var(--text-muted);
}

.profile-summary {
  margin: 0.75rem 0 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.profile-field {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.profile-label {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold);
}

.profile-value {
  font-size: 0.95rem;
  color: var(--text);
  word-break: break-all;
}

.profile-admin-hint {
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--text-muted);
  margin: 0;
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  border: 1px solid var(--border-subtle);
}

.profile-admin-hint code {
  font-size: 0.78rem;
}

.profile-actions {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.header-top-link {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.header-top-link:hover {
  color: var(--gold);
}

.header-main {
  background: transparent;
}

.header-inner {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  box-sizing: border-box;
  padding: 0.65rem max(1rem, env(safe-area-inset-right, 0px)) 0.6rem max(1rem, env(safe-area-inset-left, 0px));
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  grid-template-rows: auto auto;
  align-items: center;
  gap: 0.45rem 1rem;
}

.header-nav {
  grid-column: 1 / -1;
  grid-row: 2;
  justify-self: center;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: clamp(1.1rem, 2.2vw, 2rem);
  flex-wrap: nowrap;
  justify-content: center;
  padding: 0.15rem 0 0;
  border: none;
  margin: 0;
  max-width: 100%;
}

.header-nav-link {
  font-size: clamp(0.68rem, 0.28vw + 0.64rem, 0.76rem);
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
  transition: color var(--transition-fast);
  position: relative;
}

.header-nav-link::after {
  display: none;
}

.header-nav-link:hover {
  color: var(--accent);
}

.header-nav-link.is-active {
  color: var(--accent);
  font-weight: 600;
}

[data-theme="dark"] .header-nav-link:hover {
  color: var(--gold-light);
}

[data-theme="dark"] .header-nav-link.is-active {
  color: var(--gold-light);
}

.header-inner--lite {
  grid-template-columns: 1fr;
  grid-template-rows: auto;
  padding-bottom: 0.75rem;
}

.header-inner--lite .header-wordmark {
  grid-column: 1;
  grid-row: 1;
  justify-self: center;
}

@media (max-width: 960px) {
  .header-inner {
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto auto;
    gap: 0.42rem 0.6rem;
    padding-top: 0.5rem;
    padding-bottom: 0.55rem;
  }

  .header-wordmark {
    grid-column: 1 / -1;
    grid-row: 1;
    justify-self: center;
    max-width: none;
    padding-top: 0.15rem;
  }

  .header-toolbar-right {
    grid-column: 1 / -1;
    grid-row: 1;
    justify-self: end;
    align-self: start;
    flex-wrap: nowrap;
    gap: 0.24rem;
    z-index: 2;
  }

  .header-search {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: stretch;
    width: 100%;
    min-width: 0;
    height: 42px;
  }

  .search-suggestions {
    width: 100%;
    max-height: min(22rem, calc(100vh - var(--site-header-height, 9rem) - 1rem));
  }

  .header-nav {
    grid-column: 1 / -1;
    grid-row: 3;
    justify-content: center;
    gap: 0.85rem 1rem;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 0.05rem;
    mask-image: linear-gradient(to right, transparent, black 4%, black 96%, transparent);
    -webkit-overflow-scrolling: touch;
  }
}

@media (max-width: 768px) {
  .promo-nav-status {
    gap: 0.25rem;
    padding: 0.35rem 0.78rem 0.4rem;
    font-size: 0.69rem;
  }

  .promo-nav-inner {
    gap: 0.3rem 0.42rem;
    line-height: 1.25;
  }

  .promo-nav-separator {
    width: 3px;
    height: 3px;
  }

  .header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 80;
    background: color-mix(in srgb, var(--header-bg) 88%, transparent);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
  }

  .header.header--scrolled {
    background: color-mix(in srgb, var(--header-bg) 94%, transparent);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
  }

  [data-theme="dark"] .header.header--scrolled {
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.32);
  }

  .header-main {
    position: relative;
  }

  .main {
    padding-top: var(--site-header-height, calc(5.9rem + env(safe-area-inset-top, 0px)));
  }

  .header-benefits-track {
    min-height: 1.68rem;
    padding: 0.27rem 0;
    animation-duration: 26s;
  }

  .header-benefits-group {
    gap: 1.55rem;
    padding-right: 1.55rem;
  }

  .header-benefits-group span {
    font-size: 0.67rem;
    letter-spacing: 0.06em;
  }

  .header.header--scrolled .header-benefits-track {
    min-height: 1.52rem;
    padding-block: 0.22rem;
  }

  .header-inner {
    position: relative;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto auto;
    align-items: center;
    gap: 0.46rem 0.52rem;
    padding-top: calc(0.42rem + env(safe-area-inset-top, 0px));
    padding-right: max(0.55rem, env(safe-area-inset-right, 0px));
    padding-bottom: 0.42rem;
    padding-left: max(0.55rem, env(safe-area-inset-left, 0px));
  }

  .header-wordmark {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
    align-self: center;
    width: auto;
    max-width: 100%;
    padding: 0;
    box-sizing: border-box;
    z-index: 1;
    text-align: left;
  }

  .header-wordmark .brand {
    align-items: flex-start;
    gap: 0.16rem;
    padding: 0;
    max-width: 100%;
    margin-inline: 0;
  }

  .brand-name {
    font-size: clamp(19px, 5.25vw, 24px);
    letter-spacing: 0.055em;
    margin-bottom: 0;
    line-height: 1;
  }

  .brand-number {
    vertical-align: baseline;
    font-size: 1.1em;
    margin: 0;
    transform: translateY(-0.015em);
  }

  .header-slogan {
    font-size: clamp(8.5px, 2.1vw, 10px);
    letter-spacing: 0.045em;
    margin-bottom: 0;
    line-height: 1.15;
  }

  .brand-rule {
    max-width: 4.25rem;
    margin-top: 0.06rem;
  }

  .header-toolbar-right {
    position: relative;
    top: auto;
    right: auto;
    left: auto;
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    align-self: center;
    flex-wrap: nowrap;
    gap: 0.22rem;
    z-index: 5;
    max-width: none;
    padding: 0;
  }

  .header-nav {
    grid-column: 1 / -1;
    grid-row: 3;
    justify-content: flex-start;
    margin-top: 0.1rem;
    padding-top: 0.1rem;
    gap: 0.8rem;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 0.02rem;
    scrollbar-width: none;
    mask-image: linear-gradient(to right, transparent, black 4%, black 96%, transparent);
    -webkit-overflow-scrolling: touch;
  }

  .header-nav::-webkit-scrollbar {
    display: none;
  }

  .header-icon-btn {
    width: 38px;
    height: 38px;
    min-width: 38px;
    min-height: 38px;
  }

  .header-icon-svg {
    width: 19px;
    height: 19px;
  }

  .header.header--scrolled .header-inner {
    gap: 0.34rem 0.48rem;
    padding-top: calc(0.28rem + env(safe-area-inset-top, 0px));
    padding-bottom: 0.28rem;
  }

  .header.header--scrolled .brand-name {
    font-size: clamp(17px, 4.65vw, 21px);
    letter-spacing: 0.045em;
  }

  .header.header--scrolled .header-slogan,
  .header.header--scrolled .brand-rule {
    display: none;
  }

  .header.header--scrolled .header-nav {
    margin-top: 0;
    padding-top: 0.02rem;
  }

  .header.header--scrolled .header-icon-btn {
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
  }

  .header-inner--lite {
    padding-top: 0.75rem;
  }
}

@media (max-width: 520px) {
  .header-inner {
    gap: 0.42rem 0.36rem;
    padding-right: max(0.45rem, env(safe-area-inset-right, 0px));
    padding-left: max(0.45rem, env(safe-area-inset-left, 0px));
  }

  .brand-name {
    font-size: clamp(17px, 4.9vw, 20px);
    letter-spacing: 0.04em;
  }

  .header-slogan,
  .brand-rule {
    display: none;
  }

  .brand-rule {
    max-width: 5rem;
  }

  .header-icon-btn {
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
  }

  .header-icon-svg {
    width: 18px;
    height: 18px;
  }

  .header-search {
    height: 39px;
    padding-left: 0.72rem;
    padding-right: 0.34rem;
  }

  .header-search-input {
    font-size: 0.84rem;
  }

  .header-search-icon {
    width: 17px;
    height: 17px;
  }

  .header-search-clear {
    width: 28px;
    height: 28px;
    min-width: 28px;
  }

  .search-suggestions {
    top: calc(100% + 0.42rem);
    padding: 0.38rem;
    border-radius: 0.95rem;
  }

  .search-suggestion-item {
    grid-template-columns: 2.85rem minmax(0, 1fr);
    gap: 0.62rem;
    padding: 0.48rem;
  }

  .search-suggestion-thumb {
    width: 2.85rem;
    border-radius: 0.7rem;
  }

  .search-suggestion-title {
    font-size: 0.86rem;
  }

  .search-suggestion-meta {
    font-size: 0.7rem;
  }

  .header-nav-link {
    font-size: 0.62rem;
    letter-spacing: 0.085em;
  }

  .header.header--scrolled .header-icon-btn {
    width: 35px;
    height: 35px;
    min-width: 35px;
    min-height: 35px;
  }
}

.cart-toggle {
  position: relative;
}

.cart-toggle .cart-count {
  position: absolute;
  top: 2px;
  right: 0;
  min-width: 1.05rem;
  height: 1.05rem;
  padding: 0 0.3rem;
  border-radius: var(--radius-pill);
  background: var(--gold);
  color: #0c0c0e;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.58rem;
  font-weight: 700;
  line-height: 1;
  box-sizing: border-box;
  animation: countPop 0.35s var(--ease-out-expo);
}

@keyframes countPop {
  0% { transform: scale(0.5); }
  70% { transform: scale(1.15); }
  100% { transform: scale(1); }
}

/* ─── Hero Section ─── */
.hero {
  position: relative;
  min-height: clamp(480px, 88vh, 820px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin: 0 -1.25rem 0;
  padding: 4rem 1.25rem 5rem;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  animation: heroGlowDrift 12s ease-in-out infinite alternate;
}

.hero-glow--1 {
  width: 55%;
  height: 55%;
  top: -15%;
  left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, var(--gold-glow) 0%, transparent 70%);
  opacity: 0.8;
}

.hero-glow--2 {
  width: 40%;
  height: 40%;
  bottom: -10%;
  right: -5%;
  background: radial-gradient(circle, rgba(184, 149, 106, 0.08) 0%, transparent 70%);
  animation-delay: -6s;
}

@keyframes heroGlowDrift {
  0% { transform: translateX(-50%) translateY(0); opacity: 0.6; }
  100% { transform: translateX(-45%) translateY(20px); opacity: 1; }
}

.hero-grid-pattern {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border-subtle) 1px, transparent 1px),
    linear-gradient(90deg, var(--border-subtle) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 20%, transparent 75%);
  opacity: 0.4;
}

.hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 720px;
  animation: heroContentIn 1s var(--ease-out-expo) backwards;
}

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

.hero-eyebrow {
  margin: 0 0 1.25rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  animation: heroContentIn 1s var(--ease-out-expo) 0.1s backwards;
}

.hero-title {
  margin: 0 0 1.25rem;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw + 0.5rem, 4.5rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--text);
  animation: heroContentIn 1s var(--ease-out-expo) 0.2s backwards;
}

.hero-title-accent {
  font-style: italic;
  background: linear-gradient(135deg, var(--gold-dark) 0%, var(--gold-light) 50%, var(--gold) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

[data-theme="dark"] .hero-title-accent {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 50%, #f0ebe4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-subtitle {
  margin: 0 auto 2.25rem;
  max-width: 480px;
  font-size: clamp(0.95rem, 1.5vw + 0.5rem, 1.1rem);
  font-weight: 300;
  line-height: 1.65;
  color: var(--text-muted);
  animation: heroContentIn 1s var(--ease-out-expo) 0.35s backwards;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: center;
  animation: heroContentIn 1s var(--ease-out-expo) 0.5s backwards;
}

.btn-hero-primary,
.btn-hero-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 2rem;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition:
    transform var(--transition-fast),
    box-shadow var(--transition-medium),
    background var(--transition-fast),
    border-color var(--transition-fast);
}

.btn-hero-primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
  color: var(--btn-primary-text);
  box-shadow: var(--shadow-soft);
  border: 1px solid transparent;
}

.btn-hero-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-elevated);
}

[data-theme="dark"] .btn-hero-primary {
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 100%);
  color: #0c0c0e;
}

.btn-hero-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(8px);
}

.btn-hero-secondary:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
}

.hero-scroll-hint {
  position: absolute;
  bottom: 1.75rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  animation: heroContentIn 1s var(--ease-out-expo) 0.8s backwards;
}

.hero-scroll-line {
  width: 1px;
  height: 36px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scrollLinePulse 2s ease-in-out infinite;
}

@keyframes scrollLinePulse {
  0%, 100% { opacity: 0.4; transform: scaleY(0.8); }
  50% { opacity: 1; transform: scaleY(1); }
}

@media (max-width: 640px) {
  .hero {
    min-height: auto;
    margin-bottom: 1.25rem;
    padding-top: clamp(2.4rem, 9vw, 3.5rem);
    padding-bottom: clamp(2.6rem, 10vw, 3.25rem);
  }

  .hero-scroll-hint {
    display: none;
  }
}

/* ─── Brand Storytelling ─── */
.brand-story {
  margin: 0 -1.25rem 4rem;
  padding: 4rem 1.25rem 4.5rem;
  position: relative;
  overflow: hidden;
}

.brand-story::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, var(--bg-soft) 30%, var(--bg-soft) 70%, transparent 100%);
  pointer-events: none;
}

.brand-story-intro {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3.5rem;
  position: relative;
}

.brand-story-title {
  margin: 0 0 1.25rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw + 0.5rem, 3rem);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.01em;
}

.brand-story-lead {
  margin: 0;
  font-size: clamp(0.95rem, 1.2vw + 0.5rem, 1.05rem);
  font-weight: 300;
  line-height: 1.7;
  color: var(--text-muted);
}

.brand-pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
}

.brand-pillar {
  padding: 2rem 1.75rem;
  border-radius: var(--radius-lg);
  background: var(--card-bg);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-soft);
  transition:
    transform var(--transition-medium),
    box-shadow var(--transition-medium),
    border-color var(--transition-fast);
}

.brand-pillar:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-elevated);
  border-color: rgba(184, 149, 106, 0.25);
}

.brand-pillar-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  background: var(--accent-soft);
  color: var(--gold);
  border: 1px solid var(--border-subtle);
}

.brand-pillar h3 {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.brand-pillar p {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 300;
  line-height: 1.6;
  color: var(--text-muted);
}

/* ─── Main & Catalogue ─── */
@media (max-width: 640px) {
  .brand-story {
    margin-bottom: 1.25rem;
    padding-top: 1.15rem;
    padding-bottom: 1.25rem;
  }

  .brand-story-intro {
    margin-bottom: 0.8rem;
    max-width: 100%;
  }

  .brand-story-intro .hero-eyebrow {
    margin-bottom: 0.45rem;
    font-size: 0.58rem;
    letter-spacing: 0.16em;
  }

  .brand-story-title {
    margin-bottom: 0.45rem;
    font-size: clamp(1.22rem, 6.2vw, 1.6rem);
    line-height: 1.05;
  }

  .brand-story-lead {
    max-width: 28rem;
    margin: 0 auto;
    font-size: 0.76rem;
    line-height: 1.35;
  }

  .brand-pillars {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
  }

  .brand-pillar {
    min-height: 0;
    padding: 0.72rem 0.62rem;
    border-radius: 1rem;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
  }

  .brand-pillar:hover {
    transform: none;
  }

  .brand-pillar-icon {
    width: 30px;
    height: 30px;
    margin-bottom: 0.42rem;
    border-radius: 0.65rem;
  }

  .brand-pillar-icon svg {
    width: 16px;
    height: 16px;
  }

  .brand-pillar h3 {
    margin-bottom: 0.24rem;
    font-size: 0.86rem;
    line-height: 1.15;
  }

  .brand-pillar p {
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    font-size: 0.68rem;
    line-height: 1.28;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

.main {
  max-width: 1280px;
  margin: 0 auto;
  padding: var(--site-header-height, 10.5rem) 0.75rem 3rem;
  width: 100%;
}

.section-header {
  margin-bottom: 1.25rem;
}

.section-header h2 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2vw + 0.8rem, 2.2rem);
  font-weight: 500;
  letter-spacing: 0.02em;
}

.section-header p {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.5;
}

.section-header-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  margin-bottom: 0.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
}

.catalog-toolbar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.catalog-toolbar label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
}

.catalog-toolbar select {
  font: inherit;
  font-size: 0.85rem;
  padding: 0.55rem 2rem 0.55rem 0.85rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
  background: var(--input-bg);
  color: var(--text);
  min-width: 11rem;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%237a756d' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.catalog-toolbar select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-glow);
}

/* ─── Product Cards Premium ─── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.72rem;
  margin-top: 1.1rem;
  align-items: stretch;
  min-height: 540px;
}

.catalog-empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: clamp(1.6rem, 5vw, 2.4rem);
  border: 1px solid color-mix(in srgb, var(--gold) 22%, var(--border-subtle));
  border-radius: var(--radius-lg);
  background: color-mix(in srgb, var(--surface) 88%, var(--gold) 4%);
  color: var(--text-muted);
  text-align: center;
  font-size: clamp(0.95rem, 1.2vw, 1.05rem);
  letter-spacing: 0.01em;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .catalog-empty {
  background: color-mix(in srgb, var(--dark-surface) 92%, var(--gold) 4%);
  border-color: color-mix(in srgb, var(--gold) 20%, var(--dark-border));
}

@media (min-width: 720px) {
  .main {
    padding-inline: 1.25rem;
  }

  .products-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
    margin-top: 1.5rem;
    min-height: 420px;
  }
}

@media (min-width: 1100px) {
  .products-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.75rem;
    min-height: 460px;
  }
}

.product-card {
  background: var(--card-bg);
  border-radius: 16px;
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-soft);
  transition:
    transform var(--transition-medium),
    box-shadow var(--transition-medium),
    border-color var(--transition-fast);
  opacity: 1;
  transform: none;
  min-width: 0;
  height: 100%;
}

.product-card.motion-ready {
  animation: none;
}

@keyframes cardReveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-elevated), var(--shadow-glow);
  border-color: rgba(184, 149, 106, 0.25);
}

.product-card.motion-ready:hover {
  transform: translateY(-6px);
}

.product-clickable {
  display: flex;
  flex-direction: column;
  height: 100%;
  cursor: pointer;
  min-width: 0;
}

.product-image {
  position: relative;
  padding: 0.45rem 0.45rem 0;
}

.product-image-inner {
  border-radius: 12px;
  overflow: hidden;
  background: var(--gallery-inner-bg);
  aspect-ratio: 1 / 1.08;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-medium);
}

.product-image-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease-out-expo);
}

.product-card:hover .product-image-inner img {
  transform: scale(1.05);
}

.product-image-inner span {
  font-size: 2.5rem;
}

.badge {
  position: absolute;
  left: 1.35rem;
  top: 1.35rem;
  padding: 0.28rem 0.75rem;
  border-radius: var(--radius-pill);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.92);
  color: var(--accent);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(8px);
  z-index: 1;
}

[data-theme="dark"] .badge {
  background: rgba(20, 20, 24, 0.9);
  color: var(--gold-light);
  border-color: var(--glass-border);
}

.product-body {
  padding: 0.62rem 0.62rem 0.72rem;
  display: flex;
  flex-direction: column;
  gap: 0.42rem;
  flex: 1;
  min-width: 0;
}

.product-title {
  font-family: var(--font-display);
  font-size: clamp(0.92rem, 3.1vw, 1.05rem);
  font-weight: 500;
  margin: 0;
  line-height: 1.16;
  letter-spacing: 0.01em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.32em;
}

.product-price {
  font-weight: 600;
  font-size: clamp(0.94rem, 3vw, 1.05rem);
  color: var(--text);
  letter-spacing: 0.02em;
}

.product-meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 0.45rem;
  margin-top: auto;
  font-size: 0.72rem;
  color: var(--text-muted);
  min-width: 0;
}

.stock-indicator {
  flex: 0 0 auto;
  max-width: 5.6rem;
  padding: 0.16rem 0.42rem;
  border: 1px solid currentColor;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.58rem;
  line-height: 1.1;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  white-space: nowrap;
}

.stock-low {
  color: var(--danger);
}

.stock-ok {
  color: var(--success);
}

.stock-out {
  color: var(--text-muted);
}

@media (min-width: 720px) {
  .product-card {
    border-radius: var(--radius-lg);
  }

  .product-image {
    padding: 0.85rem 0.85rem 0;
  }

  .product-image-inner {
    border-radius: var(--radius-md);
    aspect-ratio: 4 / 5;
  }

  .product-body {
    padding: 0.95rem 1rem 1.05rem;
    gap: 0.5rem;
  }

  .product-title {
    font-size: 1.05rem;
    line-height: 1.25;
    min-height: 2.5em;
  }

  .stock-indicator {
    font-size: 0.64rem;
    padding: 0.2rem 0.55rem;
  }
}

.size-select {
  width: 100%;
  padding: 0.55rem 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: var(--input-bg);
  color: var(--text);
  font-size: 0.82rem;
  cursor: pointer;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.size-select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-glow);
}

.card-actions {
  margin-top: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.quantity-input {
  width: 68px;
  padding: 0.45rem 0.4rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
  background: var(--input-bg);
  color: var(--text);
  text-align: center;
  font-size: 0.82rem;
  transition: border-color var(--transition-fast);
}

.quantity-input:focus {
  outline: none;
  border-color: var(--gold);
}

/* ─── Buttons ─── */
.btn-primary,
.btn-secondary,
.btn-stripe,
.btn-full {
  border: none;
  cursor: pointer;
}

.btn-primary {
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
  color: var(--btn-primary-text);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow: var(--shadow-soft);
  transition:
    transform var(--transition-fast),
    box-shadow var(--transition-medium),
    background var(--transition-fast);
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: var(--shadow-elevated);
}

.btn-primary:active:not(:disabled) {
  transform: translateY(0) scale(0.98);
}

.btn-secondary {
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--text);
  font-weight: 500;
  font-size: 0.85rem;
  border: 1px solid var(--border-subtle);
  transition:
    border-color var(--transition-fast),
    color var(--transition-fast),
    background var(--transition-fast);
}

.btn-secondary:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: var(--accent-soft);
}

.btn-full {
  width: 100%;
  justify-content: center;
  display: inline-flex;
  align-items: center;
}

.btn-primary:disabled,
.btn-stripe:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none !important;
}

/* ─── Checkout / Confirmation ─── */
.checkout {
  margin-top: 2rem;
}

.checkout-layout {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 900px) {
  .checkout-layout {
    flex-direction: row;
    align-items: flex-start;
  }

  .checkout-form {
    flex: 3;
  }

  .payment-panel {
    flex: 2;
  }
}

.checkout-form,
.payment-panel,
.confirmation-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(12px);
}

.confirmation-card {
  max-width: 520px;
  margin: 3rem auto;
  text-align: center;
  animation: modalIn 0.6s var(--ease-out-expo);
}

.confirmation-card h2 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 500;
  margin: 0 0 0.75rem;
}

.confirmation-note {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.form-group {
  margin-bottom: 0.85rem;
}

.form-row {
  display: flex;
  gap: 0.75rem;
}

.form-row .form-group {
  flex: 1;
}

label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"] {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: var(--input-bg);
  color: var(--text);
  font-size: 0.9rem;
  transition:
    border-color var(--transition-fast),
    box-shadow var(--transition-fast);
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-glow);
}

.checkout-summary-mini {
  margin-top: 0.85rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  background: var(--bg-soft);
  border: 1px dashed var(--border-subtle);
  font-size: 0.82rem;
}

.checkout-summary-mini h3 {
  margin: 0 0 0.35rem;
  font-size: 0.88rem;
}

.total-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.25rem;
  font-weight: 600;
}

.checkout-note {
  margin-top: 0.75rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.payment-panel h3 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
}

.payment-info,
.payment-warning {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  line-height: 1.5;
}

.btn-stripe {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, #1a1a2e 0%, #0f0f1a 100%);
  color: #f0ebe4;
  transition: transform var(--transition-fast), box-shadow var(--transition-medium);
}

.btn-stripe:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.payment-warning {
  margin-top: 0.35rem;
}

.confirmation {
  margin-top: 2rem;
}

.confirmation-card p {
  margin: 0 0 0.75rem;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.confirmation-details {
  margin: 1rem 0 1.5rem;
  font-size: 0.85rem;
  color: var(--text);
  border-radius: var(--radius-md);
  padding: 1rem 1.1rem;
  background: var(--bg-soft);
  border: 1px solid var(--border-subtle);
  text-align: left;
}

/* ─── Cart Panel Premium ─── */
.cart-panel {
  position: fixed;
  top: var(--cart-panel-top, 0px);
  right: 0;
  bottom: 0;
  left: auto;
  width: min(400px, 100%);
  max-width: 100%;
  background: var(--cart-bg);
  border-left: 1px solid var(--border-subtle);
  box-shadow: -8px 0 48px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  min-height: 0;
  max-height: calc(100dvh - var(--cart-panel-top, 0px));
  overflow: hidden;
  overscroll-behavior: contain;
  transform: translateX(105%);
  transition: transform 0.4s var(--ease-out-expo);
  z-index: 60;
  pointer-events: none;
  backdrop-filter: blur(24px);
}

.cart-panel.open {
  transform: translateX(0);
  pointer-events: auto;
}

.cart-header {
  flex: 0 0 auto;
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 1rem 1.2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-subtle);
  background: color-mix(in srgb, var(--cart-bg) 94%, transparent);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.cart-header h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.icon-button {
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 1.15rem;
  cursor: pointer;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    background var(--transition-fast),
    color var(--transition-fast),
    transform var(--transition-fast);
}

.icon-button:hover {
  background: var(--accent-soft);
  color: var(--text);
  transform: rotate(90deg);
}

.cart-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  touch-action: pan-y;
  padding: 0.75rem 1.15rem calc(1.25rem + env(safe-area-inset-bottom, 0px));
  display: grid;
  align-content: start;
  gap: 0.56rem;
}

.cart-items {
  min-height: 0;
}

.cart-panel > .cart-items {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  touch-action: pan-y;
  padding: 0.75rem 1.15rem calc(1.25rem + env(safe-area-inset-bottom, 0px));
}

.cart-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.15rem 0.75rem;
  padding: 0.85rem 0.9rem;
  border-radius: var(--radius-md);
  background: var(--bg-soft);
  border: 1px solid var(--border-subtle);
  font-size: 0.82rem;
  margin-bottom: 0.65rem;
  transition: border-color var(--transition-fast);
}

.cart-item:hover {
  border-color: rgba(184, 149, 106, 0.3);
}

.cart-item-header {
  font-weight: 500;
  font-size: 0.88rem;
}

.cart-item-meta {
  color: var(--text-muted);
  font-size: 0.78rem;
}

.cart-item-price {
  justify-self: end;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--gold-dark);
}

[data-theme="dark"] .cart-item-price {
  color: var(--gold-light);
}

.cart-item-remove {
  grid-column: 1 / -1;
  justify-self: flex-start;
  margin-top: 0.25rem;
  font-size: 0.72rem;
  border-radius: var(--radius-pill);
  border: none;
  padding: 0.3rem 0.75rem;
  background: rgba(192, 57, 43, 0.1);
  color: var(--danger);
  cursor: pointer;
  transition: background var(--transition-fast);
}

.cart-item-remove:hover {
  background: rgba(192, 57, 43, 0.18);
}

.cart-empty {
  margin: 1.5rem 0;
  font-size: 0.88rem;
  color: var(--text-muted);
  text-align: center;
  font-style: italic;
}

.cart-shipping-hint {
  padding: 0;
  margin: 0;
  font-size: 0.68rem;
  line-height: 1.35;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 0.08rem;
}

.cart-shipping-hint.hidden {
  display: none !important;
}

#cartShippingFrom {
  color: var(--text);
  font-weight: 500;
}

#cartShippingWeight {
  display: none;
}

.cart-free-shipping-card,
.cart-promo-box {
  margin: 0;
  padding: 0.55rem 0.68rem;
  border: 1px solid color-mix(in srgb, var(--gold) 22%, var(--border-subtle));
  border-radius: 14px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--gold) 10%, transparent), transparent 55%),
    var(--bg-elevated);
}

[data-theme="dark"] .cart-free-shipping-card,
[data-theme="dark"] .cart-promo-box {
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--gold) 10%, transparent), transparent 55%),
    var(--dark-surface);
}

.cart-free-shipping-top {
  display: flex;
  justify-content: space-between;
  gap: 0.45rem;
  font-size: 0.73rem;
  color: var(--text);
  font-weight: 650;
}

.cart-free-shipping-bar {
  height: 4px;
  margin-top: 0.38rem;
  overflow: hidden;
  border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--border-subtle) 75%, transparent);
}

.cart-free-shipping-bar span {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold-light));
  transition: width 220ms ease;
}

.cart-promo-summary-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem;
  cursor: pointer;
  list-style: none;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.cart-page-promo .cart-promo-summary-toggle {
  cursor: default;
}

.cart-promo-summary-toggle::-webkit-details-marker {
  display: none;
}

.cart-promo-summary-toggle::after {
  content: "+";
  width: 1.25rem;
  height: 1.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--gold) 32%, var(--border-subtle));
  color: var(--gold-dark);
  font-weight: 800;
  line-height: 1;
}

.cart-page-promo .cart-promo-summary-toggle::after {
  display: none;
}

.cart-promo-box[open] .cart-promo-summary-toggle::after {
  content: "−";
}

.cart-promo-summary-toggle strong {
  color: var(--gold-dark);
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.cart-promo-copy {
  margin: 0.35rem 0 0.38rem;
  font-size: 0.68rem;
  color: var(--text-muted);
}

.cart-promo-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 0.35rem;
}

.cart-promo-form input {
  min-width: 0;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  padding: 0.52rem 0.72rem;
  background: var(--input-bg);
  color: var(--text);
  font: inherit;
  text-transform: uppercase;
}

.cart-promo-form button {
  border: 1px solid color-mix(in srgb, var(--gold) 46%, var(--border-subtle));
  border-radius: var(--radius-pill);
  padding: 0.5rem 0.7rem;
  background: var(--gold-dark);
  color: #fff;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
}

.cart-promo-form #cartPromoRemove {
  background: transparent;
  color: var(--gold-dark);
}

.cart-promo-applied,
.cart-promo-feedback {
  margin: 0.3rem 0 0;
  font-size: 0.68rem;
  color: var(--text-muted);
}

.cart-promo-applied {
  color: var(--gold-dark);
  font-weight: 700;
}

.cart-summary-breakdown {
  display: grid;
  gap: 0.22rem;
  margin-bottom: 0.42rem;
  font-size: 0.74rem;
  color: var(--text-muted);
}

.cart-summary-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.cart-summary-line--discount {
  color: var(--gold-dark);
  font-weight: 700;
}

[data-theme="dark"] .cart-promo-summary-toggle strong,
[data-theme="dark"] .cart-promo-summary-toggle::after,
[data-theme="dark"] .cart-promo-applied,
[data-theme="dark"] .cart-summary-line--discount,
[data-theme="dark"] .cart-promo-form #cartPromoRemove {
  color: var(--gold-light);
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.15rem;
  font-size: 0.95rem;
  font-weight: 500;
}

.cart-total-row span:last-child {
  font-family: var(--font-display);
  font-size: 1.16rem;
  font-weight: 600;
  color: var(--gold-dark);
}

[data-theme="dark"] .cart-total-row span:last-child {
  color: var(--gold-light);
}

.cart-cgv-label {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-bottom: 0.2rem;
  font-size: 0.7rem;
  line-height: 1.35;
  color: var(--text-muted);
  cursor: pointer;
}

.cart-cgv-label input {
  margin-top: 0.15rem;
  flex-shrink: 0;
  width: 1rem;
  height: 1rem;
  accent-color: var(--gold);
}

.cart-cgv-label a {
  color: var(--gold-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
}

[data-theme="dark"] .cart-cgv-label a {
  color: var(--gold-light);
}

.cart-body .btn-primary {
  padding: 0.72rem 1rem;
  font-size: 0.8rem;
}

/* ─── Dedicated Cart Page ─── */
.cart-page {
  min-height: 100dvh;
  overflow-x: hidden;
}

.cart-page .main,
.cart-page-main {
  padding-top: var(--site-header-height, 8.5rem);
}

.cart-page-header {
  position: fixed;
}

.cart-page-topbar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(0.8rem, 2vw, 1.6rem);
  padding: 0.72rem clamp(1rem, 4vw, 2.8rem);
  background: color-mix(in srgb, var(--header-bg) 94%, transparent);
  border-bottom: 1px solid var(--border-subtle);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.cart-page-brand .brand-name {
  font-size: clamp(1.45rem, 3vw, 2.1rem);
}

.cart-page-nav {
  justify-content: center;
  padding: 0;
}

.cart-page-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.45rem;
}

.cart-page-main {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding-bottom: calc(2rem + env(safe-area-inset-bottom, 0px));
}

.cart-back-link {
  display: inline-flex;
  margin: 1rem 0 0.5rem;
  color: var(--text-muted);
  font-size: 0.88rem;
  text-decoration: none;
}

.cart-back-link:hover {
  color: var(--gold-dark);
}

.cart-page-hero {
  margin: 0.65rem 0 1.25rem;
}

.cart-page-hero h1 {
  margin: 0.1rem 0 0.3rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 500;
}

.cart-page-hero p:last-child {
  max-width: 680px;
  margin: 0;
  color: var(--text-muted);
}

.cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 390px);
  gap: clamp(1rem, 3vw, 1.6rem);
  align-items: start;
}

.cart-page-items-card,
.cart-summary-card {
  border: 1px solid var(--border-subtle);
  border-radius: 24px;
  background: var(--card-bg);
  box-shadow: var(--shadow-soft);
}

.cart-page-items-card {
  padding: clamp(0.75rem, 2vw, 1.15rem);
}

.cart-page-items {
  display: grid;
  gap: 0.85rem;
}

.cart-page-item {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) auto;
  gap: 0.9rem;
  align-items: center;
  padding: 0.85rem;
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  background: var(--bg-soft);
}

.cart-page-item-media {
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 16px;
  background: var(--gallery-inner-bg);
  display: grid;
  place-items: center;
  color: var(--gold-dark);
  font-family: var(--font-display);
  font-size: 2rem;
}

.cart-page-item-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cart-page-item-info h2 {
  margin: 0 0 0.25rem;
  font-size: 1rem;
}

.cart-page-item-info p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.86rem;
}

.cart-page-remove {
  margin-top: 0.42rem;
  border: none;
  background: transparent;
  color: var(--danger);
  padding: 0;
  font: inherit;
  font-size: 0.8rem;
  cursor: pointer;
}

.cart-page-item-side {
  display: grid;
  justify-items: end;
  gap: 0.55rem;
}

.cart-page-item-side strong {
  color: var(--gold-dark);
}

.cart-page-qty {
  display: inline-grid;
  grid-template-columns: 34px 48px 34px;
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  background: var(--input-bg);
}

.cart-page-qty button,
.cart-page-qty input {
  height: 34px;
  border: none;
  background: transparent;
  color: var(--text);
  text-align: center;
  font: inherit;
}

.cart-page-qty button {
  cursor: pointer;
  color: var(--gold-dark);
  font-weight: 800;
}

.cart-page-qty input {
  width: 48px;
  border-inline: 1px solid var(--border-subtle);
}

.cart-summary-card {
  position: sticky;
  top: calc(var(--site-header-height, 8.5rem) + 1rem);
  display: grid;
  gap: 0.75rem;
  padding: 1rem;
}

.cart-page-promo,
.cart-page-free-shipping,
.cart-checkout-box,
.cart-delivery-box {
  margin: 0;
}

.cart-checkout-box,
.cart-delivery-box {
  display: grid;
  gap: 0.75rem;
  padding: 0.82rem 0.92rem;
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  background: var(--bg-soft);
}

.cart-checkout-grid {
  display: grid;
  gap: 0.65rem;
}

.cart-checkout-grid--two,
.cart-checkout-grid--address {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cart-checkout-grid--address {
  grid-template-columns: 0.9fr 1fr 0.9fr;
}

.cart-checkout-grid label {
  display: grid;
  gap: 0.28rem;
  min-width: 0;
}

.cart-checkout-grid label > span {
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.cart-checkout-grid input,
.cart-checkout-grid select {
  width: 100%;
  min-height: 2.45rem;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  background: var(--input-bg);
  color: var(--text);
  padding: 0 0.75rem;
  font: inherit;
}

.cart-checkout-grid input:focus,
.cart-checkout-grid select:focus {
  outline: 2px solid color-mix(in srgb, var(--gold) 48%, transparent);
  outline-offset: 1px;
  border-color: var(--gold);
}

.cart-delivery-head,
.cart-delivery-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.cart-delivery-head span {
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cart-delivery-head strong {
  color: var(--gold-dark);
  font-size: 0.85rem;
}

.cart-delivery-options {
  display: grid;
  gap: 0.55rem;
}

.cart-delivery-option {
  justify-content: flex-start;
  padding: 0.65rem 0.7rem;
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  background: var(--card-bg);
  cursor: pointer;
}

.cart-delivery-option input {
  accent-color: var(--gold);
}

.cart-delivery-option span {
  display: grid;
  gap: 0.12rem;
}

.cart-delivery-option strong {
  font-size: 0.86rem;
}

.cart-delivery-option-title {
  display: flex !important;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
}

.cart-delivery-option-title b {
  color: var(--gold-dark);
  font-size: 0.84rem;
  white-space: nowrap;
}

.cart-delivery-free-note,
.cart-delivery-preparation-note {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.74rem;
  line-height: 1.45;
}

.cart-delivery-free-note {
  padding: 0.62rem 0.7rem;
  border: 1px solid color-mix(in srgb, var(--gold) 30%, var(--border-subtle));
  border-radius: 12px;
  background: color-mix(in srgb, var(--gold) 8%, transparent);
}

.cart-delivery-preparation-note {
  font-weight: 700;
}

.cart-delivery-option small,
.cart-pickup-helper,
.cart-boxtal-map p,
.cart-pickup-manual summary {
  color: var(--text-muted);
  font-size: 0.75rem;
  line-height: 1.35;
}

.cart-pickup-panel {
  display: grid;
  gap: 0.7rem;
}

.cart-pickup-chooser {
  display: grid;
  gap: 0.55rem;
  padding: 0.8rem;
  border: 1px dashed color-mix(in srgb, var(--gold) 36%, var(--border-subtle));
  border-radius: 16px;
  background: color-mix(in srgb, var(--gold) 7%, var(--card-bg));
}

.cart-pickup-status {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.76rem;
  line-height: 1.35;
}

#parcel-point-map-modal {
  display: block;
  width: 100%;
  height: min(68vh, 650px);
  min-height: 500px;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--gold) 7%, transparent), transparent 44%),
    var(--card-bg);
  color-scheme: light;
}

.cart-boxtal-map-shell {
  position: relative;
  width: 100%;
  min-width: 0;
  overflow: hidden;
  border-radius: 14px;
}

.cart-boxtal-map-state {
  position: absolute;
  z-index: 2;
  inset: 1px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 0.85rem;
  padding: 1.5rem;
  color: var(--text);
  text-align: center;
  border-radius: 13px;
  background:
    radial-gradient(circle at 50% 42%, color-mix(in srgb, var(--gold) 13%, transparent), transparent 40%),
    color-mix(in srgb, var(--card-bg) 96%, var(--bg) 4%);
}

.cart-boxtal-map-state[hidden] {
  display: none !important;
}

.cart-boxtal-map-state p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.86rem;
  font-weight: 650;
  line-height: 1.5;
}

.cart-boxtal-map-spinner {
  width: 2.1rem;
  height: 2.1rem;
  border: 2px solid color-mix(in srgb, var(--gold) 22%, var(--border-subtle));
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: cartBoxtalMapSpin 900ms linear infinite;
}

.cart-boxtal-map-state.is-error .cart-boxtal-map-spinner {
  display: none;
}

.cart-boxtal-map-state.is-error p {
  color: var(--text);
}

@keyframes cartBoxtalMapSpin {
  to {
    transform: rotate(360deg);
  }
}

#parcel-point-map-modal iframe {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 500px;
  border: 0;
  color-scheme: light;
  background: #fff;
}

.cart-pickup-manual {
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  background: var(--card-bg);
  padding: 0.6rem 0.7rem;
}

.cart-pickup-manual summary {
  cursor: pointer;
  font-weight: 750;
}

.cart-pickup-grid {
  display: grid;
  gap: 0.5rem;
  margin-top: 0.65rem;
}

.cart-pickup-grid input {
  width: 100%;
  min-height: 2.35rem;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  background: var(--input-bg);
  color: var(--text);
  padding: 0 0.75rem;
  font: inherit;
}

.cart-pickup-grid button {
  min-height: 2.4rem;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  background: var(--gold);
  color: var(--ink);
  font-weight: 800;
  cursor: pointer;
}

.cart-pickup-summary {
  display: grid;
  gap: 0.55rem;
  padding: 0.9rem;
  border: 1px solid color-mix(in srgb, var(--gold) 40%, var(--border-subtle));
  border-radius: 14px;
  background: color-mix(in srgb, var(--gold) 10%, var(--card-bg));
}

.cart-pickup-summary strong {
  display: block;
  color: var(--gold-dark);
  margin-bottom: 0.25rem;
}

.cart-pickup-summary strong span {
  color: #3f9d68;
}

.cart-pickup-summary p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.78rem;
  line-height: 1.45;
}

.cart-pickup-summary .cart-pickup-edit {
  justify-self: start;
  min-height: 2.2rem;
  padding: 0 0.9rem;
  border: 1px solid color-mix(in srgb, var(--gold) 44%, var(--border-subtle));
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--gold-dark);
  font-weight: 800;
  cursor: pointer;
}

.cart-boxtal-modal {
  position: fixed;
  inset: 0;
  z-index: 4000;
  display: grid;
  place-items: center;
  padding: max(1rem, env(safe-area-inset-top)) 1rem max(1rem, env(safe-area-inset-bottom));
  background: rgba(10, 8, 6, 0.78);
  backdrop-filter: blur(10px);
  overscroll-behavior: contain;
}

.cart-boxtal-modal.hidden {
  display: none;
}

.cart-boxtal-modal-card {
  width: min(1180px, calc(100vw - 40px));
  height: min(760px, calc(100vh - 40px));
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 0.8rem;
  padding: 0.85rem;
  border: 1px solid color-mix(in srgb, var(--gold) 36%, var(--border-subtle));
  border-radius: 24px;
  background: var(--card-bg);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
  overscroll-behavior: contain;
  touch-action: auto;
}

.cart-boxtal-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cart-boxtal-modal-header p {
  margin: 0 0 0.15rem;
  color: var(--gold-dark);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.cart-boxtal-modal-header h2 {
  margin: 0;
  color: var(--text);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
}

.cart-boxtal-modal-header button {
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  background: color-mix(in srgb, var(--gold) 9%, var(--card-bg));
  color: var(--text);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

body.cart-boxtal-modal-open {
  overflow: hidden;
  touch-action: none;
}

@media (min-width: 769px) {
  #parcel-point-map-modal,
  #parcel-point-map-modal iframe {
    min-height: 500px;
  }
}

@media (max-width: 768px) {
  #parcel-point-map-modal,
  #parcel-point-map-modal iframe {
    height: calc(100dvh - 130px);
    min-height: 520px;
    color-scheme: light;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cart-boxtal-map-spinner {
    animation: none;
    border-color: color-mix(in srgb, var(--gold) 60%, var(--border-subtle));
  }
}

@media (max-width: 640px) {
  .cart-checkout-grid--two,
  .cart-checkout-grid--address {
    grid-template-columns: 1fr;
  }

  .cart-boxtal-modal {
    place-items: stretch;
    padding: 0;
  }

  .cart-boxtal-modal-card {
    width: 100vw;
    height: 100dvh;
    max-width: none;
    max-height: none;
    border-radius: 0;
    border: 0;
    padding: max(0.75rem, env(safe-area-inset-top)) 0.75rem max(0.75rem, env(safe-area-inset-bottom));
  }

}

.cart-page-breakdown {
  margin: 0;
  padding: 0.2rem 0;
}

.cart-page-total-row {
  margin: 0.35rem 0 0;
  padding-top: 0.7rem;
  border-top: 1px solid var(--border-subtle);
}

.cart-page-cgv {
  margin: 0;
}

.cart-page-message {
  min-height: 1rem;
  margin: 0;
  color: var(--text-muted);
  font-size: 0.78rem;
}

.cart-page-message--error {
  color: var(--danger);
  font-weight: 700;
}

.cart-page-message--success {
  color: var(--success);
  font-weight: 700;
}

.cart-marketing-notice {
  margin: 0.85rem 0;
  padding: 0.9rem 1rem;
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  background: var(--bg-soft);
  color: var(--text-muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

.cart-marketing-notice p,
.cart-marketing-notice small {
  display: block;
  margin: 0;
}

.cart-marketing-link {
  min-height: 38px;
  margin: 0.25rem 0 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--accent);
  font: inherit;
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.cart-marketing-link:disabled {
  cursor: wait;
  opacity: 0.65;
}

#cartMarketingPreferenceStatus:not(:empty) {
  margin-top: 0.25rem;
}

.cart-page-empty {
  display: grid;
  justify-items: start;
  gap: 0.65rem;
  padding: clamp(1.4rem, 5vw, 2.2rem);
  border: 1px dashed var(--border-subtle);
  border-radius: 22px;
  color: var(--text-muted);
}

.cart-page-empty h2 {
  margin: 0;
  color: var(--text);
}

@media (max-width: 860px) {
  .cart-page-topbar {
    grid-template-columns: 1fr auto;
  }

  .cart-page-nav {
    grid-column: 1 / -1;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 0.15rem;
  }

  .cart-layout {
    grid-template-columns: 1fr;
  }

  .cart-summary-card {
    position: static;
  }
}

@media (max-width: 520px) {
  .cart-page-main {
    width: min(100% - 1rem, 1180px);
  }

  .cart-page-item {
    grid-template-columns: 74px minmax(0, 1fr);
    align-items: start;
  }

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

  .cart-page-item-side strong {
    justify-self: start;
  }

  .cart-summary-card {
    padding: 0.78rem;
    border-radius: 20px;
  }
}

@media (max-width: 480px) {
  .cart-header {
    padding: 0.78rem 0.95rem;
  }

  .cart-header h2 {
    font-size: 1.16rem;
  }

  .cart-body {
    gap: 0.42rem;
    padding: 0.62rem 0.82rem calc(1.15rem + env(safe-area-inset-bottom, 0px));
  }

  .cart-items {
    min-height: 0;
  }

  .cart-item {
    padding: 0.72rem 0.78rem;
    margin-bottom: 0.52rem;
  }

  .cart-free-shipping-card,
  .cart-promo-box {
    padding: 0.48rem 0.58rem;
    border-radius: 12px;
  }

  .cart-promo-summary-toggle {
    gap: 0.32rem;
    font-size: 0.69rem;
  }

  .cart-promo-summary-toggle strong {
    font-size: 0.7rem;
  }

  .cart-promo-copy {
    margin-block: 0.28rem 0.32rem;
  }

  .cart-promo-form {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .cart-promo-form #cartPromoRemove {
    grid-column: 1 / -1;
    justify-self: stretch;
  }

  .cart-total-row {
    font-size: 0.88rem;
  }

  .cart-total-row span:last-child {
    font-size: 1.05rem;
  }
}

/* ─── Overlay ─── */
.overlay {
  position: fixed;
  inset: 0;
  background: var(--overlay-bg);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--ease-smooth);
  z-index: 30;
}

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

/* ─── Toast Premium ─── */
.toast {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  transform: translateX(-50%) translateY(120%);
  background: var(--card-bg);
  color: var(--text);
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-pill);
  font-size: 0.88rem;
  font-weight: 500;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-elevated);
  backdrop-filter: blur(16px);
  z-index: 70;
  transition: transform 0.4s var(--ease-out-expo), opacity 0.35s ease;
  opacity: 0;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.toast.error {
  background: rgba(192, 57, 43, 0.95);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}

.hidden {
  display: none;
}

/* ─── Product Modal ─── */
.product-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: stretch;
  justify-content: center;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  min-height: 100vh;
  min-height: 100svh;
  background: var(--modal-dialog-bg);
  z-index: 140;
  overflow: hidden;
  isolation: isolate;
  contain: layout paint style;
  animation: modalFadeIn 0.4s var(--ease-smooth);
}

.product-modal-benefits,
.product-modal-promo-nav-status {
  position: relative;
  z-index: 8;
  flex-shrink: 0;
}

@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.product-modal.hidden {
  display: none;
}

body.product-page-open {
  overflow: hidden;
  overflow-x: clip;
}

body.product-detail-active > .header,
body.product-detail-active > .main,
body.product-detail-active > .site-footer {
  visibility: hidden;
  pointer-events: none;
}

body.product-detail-active .main .product-card,
body.product-detail-active #productsGrid {
  visibility: hidden;
  pointer-events: none;
}

.product-modal-dialog {
  width: 100%;
  max-width: none;
  height: 100%;
  margin: 0;
  background: var(--modal-dialog-bg);
  isolation: isolate;
  border-radius: 0;
  border: none;
  box-shadow: none;
  padding: 0;
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: modalSlideUp 0.55s var(--ease-out-expo);
}

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

.product-modal-header {
  display: grid;
  grid-template-columns: minmax(0, auto) 1fr minmax(0, auto);
  grid-template-rows: auto;
  align-items: center;
  column-gap: 1.25rem;
  row-gap: 0;
  padding: 0.45rem max(1.25rem, env(safe-area-inset-right, 0px)) 0.45rem max(1.25rem, env(safe-area-inset-left, 0px));
  flex-shrink: 0;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--header-bg);
  position: sticky;
  top: 0;
  z-index: 10;
}

.product-modal-header-brand .brand-name {
  font-family: var(--font-display);
  font-size: clamp(20px, 4vw, 24px);
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1;
}

.product-modal-header-brand .header-slogan {
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 0.06em;
}

@media (min-width: 768px) {
  .product-modal-header-brand .brand-name {
    font-size: 32px;
    letter-spacing: 0.09em;
  }

  .product-modal-header-brand .header-slogan {
    font-size: 12px;
    letter-spacing: 0.07em;
  }
}

.product-modal-header-left {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 0;
}

.modal-home-btn {
  flex-shrink: 0;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 0;
  transition: color var(--transition-fast);
}

.modal-home-btn:hover {
  color: var(--gold);
}

.product-modal-header-brand {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.modal-brand-home {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.modal-brand-home:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 6px;
}

.header-nav-modal {
  grid-column: 2;
  grid-row: 1;
  justify-content: center;
  padding: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  flex-wrap: nowrap;
  max-width: 100%;
  border: none;
  margin: 0;
}

.product-modal-header-right {
  grid-column: 3;
  grid-row: 1;
  align-self: center;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  justify-self: end;
  flex-shrink: 0;
}

@media (max-width: 900px) {
  .product-modal-header {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    column-gap: 0.5rem;
    row-gap: 0.4rem;
  }

  .product-modal-header-left {
    grid-column: 1;
    grid-row: 1;
    gap: 0.65rem;
  }

  .product-modal-header-right {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    width: auto;
  }

  .header-nav-modal {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
  }

  .header-nav-modal .header-nav-link {
    font-size: 0.66rem;
  }
}

@media (max-width: 520px) {
  .product-modal-header-left .header-slogan {
    display: none;
  }

  .product-modal-header-left .brand-rule {
    max-width: 3.5rem;
  }
}

.modal-cart-btn {
  position: relative;
  flex-shrink: 0;
}

.modal-cart-btn .cart-count {
  position: absolute;
  top: 2px;
  right: 0;
  min-width: 1.05rem;
  height: 1.05rem;
  padding: 0 0.3rem;
  border-radius: var(--radius-pill);
  background: var(--gold);
  color: #0c0c0e;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.58rem;
  font-weight: 700;
  line-height: 1;
  box-sizing: border-box;
}

.product-modal-close {
  margin-left: 0.25rem;
}

/* ─── Page produit (PDP commerciale) ─── */
.product-page-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  scroll-behavior: smooth;
  background:
    radial-gradient(circle at 18% 10%, color-mix(in srgb, var(--gold) 8%, transparent), transparent 28rem),
    var(--modal-dialog-bg);
  position: relative;
  z-index: 1;
  isolation: isolate;
}

/* Premier écran : 2 colonnes */
.product-pdp-buy {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(340px, 0.78fr);
  gap: clamp(2rem, 4vw, 4.25rem);
  align-items: start;
  max-width: 1380px;
  margin: 0 auto;
  padding: clamp(1.35rem, 2.7vw, 2.5rem) max(1.25rem, env(safe-area-inset-right, 0px)) clamp(2rem, 3.5vw, 3.5rem) max(1.25rem, env(safe-area-inset-left, 0px));
}

.pp-fade-in {
  animation: pdpFadeIn 0.45s var(--ease-out-expo) both;
}

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

.product-pdp-gallery-col {
  min-width: 0;
  position: sticky;
  top: 1rem;
}

.product-pdp-gallery {
  min-width: 0;
}

.product-pdp-carousel.product-modal-gallery {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: clamp(0.7rem, 1.3vw, 1rem);
  width: 100%;
}

.gallery-zoom-wrap {
  flex: 1;
  min-width: 0;
  border-radius: clamp(18px, 2vw, 28px);
  overflow: hidden;
  background: var(--gallery-inner-bg);
  border: 1px solid color-mix(in srgb, var(--gold) 18%, var(--border-subtle));
  box-shadow: 0 22px 60px rgba(26, 24, 22, 0.08);
}

[data-theme="dark"] .gallery-zoom-wrap {
  box-shadow: 0 24px 72px rgba(0, 0, 0, 0.38);
}

.product-pdp-carousel .gallery-main {
  width: 100%;
  height: 100%;
}

.product-pdp-info-col {
  min-width: 0;
}

.product-pdp-info {
  display: flex;
  flex-direction: column;
  gap: clamp(0.82rem, 1vw, 1rem);
  padding: clamp(1rem, 1.8vw, 1.45rem);
  border: 1px solid color-mix(in srgb, var(--gold) 16%, var(--border-subtle));
  border-radius: clamp(18px, 2vw, 26px);
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--gold) 5%, transparent), transparent 42%),
    color-mix(in srgb, var(--bg-elevated) 86%, transparent);
  box-shadow: var(--shadow-soft);
}

[data-theme="dark"] .product-pdp-info {
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--gold) 8%, transparent), transparent 44%),
    color-mix(in srgb, var(--dark-surface) 92%, transparent);
  border-color: color-mix(in srgb, var(--gold) 18%, var(--dark-border));
}

.product-pdp-info .product-badge {
  margin: 0;
  width: fit-content;
}

.product-pdp-info .product-modal-title {
  font-size: clamp(1.8rem, 2.2vw + 0.8rem, 3rem);
  margin: 0;
  line-height: 0.98;
  letter-spacing: -0.025em;
}

.product-pdp-info .product-modal-price {
  font-size: clamp(1.45rem, 1.25vw + 0.95rem, 2.15rem);
  margin: 0 0 0.2rem;
  letter-spacing: 0.01em;
}

.product-promo-note {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  margin: 0.08rem 0 0;
  padding: 0.48rem 0.78rem;
  border: 1px solid color-mix(in srgb, var(--gold) 32%, var(--border-subtle));
  border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--gold) 9%, transparent);
  color: var(--gold-dark);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

[data-theme="dark"] .product-promo-note {
  color: var(--gold-light);
  background: color-mix(in srgb, var(--gold) 12%, transparent);
}

.product-stock-status {
  margin: 0.1rem 0 0;
  padding-top: 0.72rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.product-stock-status--in {
  color: #2d8a5e;
}

.product-stock-status--low {
  color: #c47a1a;
}

.product-stock-status--out {
  color: #c0392b;
}

[data-theme="dark"] .product-stock-status--in {
  color: #6dd4a0;
}

[data-theme="dark"] .product-stock-status--low {
  color: var(--gold-light);
}

[data-theme="dark"] .product-stock-status--out {
  color: #ff8a80;
}

.product-qty-section {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.product-qty-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.product-qty-stepper {
  display: inline-flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  overflow: hidden;
  background: var(--input-bg);
  width: fit-content;
}

.product-qty-btn {
  width: 42px;
  height: 42px;
  border: none;
  background: transparent;
  color: var(--text);
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
  transition:
    background var(--transition-fast),
    color var(--transition-fast);
}

.product-qty-btn:hover:not(:disabled) {
  background: var(--accent-soft);
  color: var(--gold);
}

.product-qty-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.product-qty-input {
  width: 52px;
  height: 42px;
  border: none;
  border-left: 1px solid var(--border-subtle);
  border-right: 1px solid var(--border-subtle);
  background: transparent;
  color: var(--text);
  text-align: center;
  font-size: 0.9rem;
  font-weight: 600;
  -moz-appearance: textfield;
}

.product-qty-input::-webkit-outer-spin-button,
.product-qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.product-pdp-info .product-size-section {
  margin-top: 0.25rem;
}

.product-pdp-info .btn-add-cart--pdp {
  margin-top: 0.55rem;
}

.product-pdp-info .btn-add-favorites {
  margin-top: 0.08rem;
}

/* Sections sous le fold */
.product-pdp-section-inner {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 max(1.25rem, env(safe-area-inset-left, 0px)) 0 max(1.25rem, env(safe-area-inset-right, 0px));
}

.product-pdp-section-title {
  margin: 0 0 1.35rem;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  font-weight: 500;
  letter-spacing: 0.02em;
}

.product-pdp-section-title--center {
  text-align: center;
}

.product-pdp-description {
  padding: 2.5rem 0 2rem;
  border-top: 1px solid var(--border-subtle);
}

.product-description-body p {
  margin: 0 0 1.1rem;
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.75;
  color: var(--text-muted);
}

.product-description-body p:last-child {
  margin-bottom: 0;
}

.product-pdp-specs {
  padding: 0 0 2.5rem;
}

.product-specs-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  margin: 0;
}

.product-spec-item {
  padding: 1rem 1.15rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: var(--card-bg);
  transition:
    border-color var(--transition-fast),
    box-shadow var(--transition-fast),
    transform var(--transition-fast);
}

.product-spec-item:hover {
  border-color: rgba(184, 149, 106, 0.35);
  box-shadow: var(--shadow-soft);
  transform: translateY(-2px);
}

.product-spec-item dt {
  margin: 0 0 0.35rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}

.product-spec-item dd {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 400;
  line-height: 1.45;
  color: var(--text);
}

/* Produits similaires */
.product-pdp-similar {
  position: static;
  padding: 2.5rem 0 3.5rem;
  border-top: 1px solid var(--border-subtle);
  z-index: auto;
}

.product-similar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.25rem;
}

.product-similar-card {
  position: relative;
  background: var(--card-bg);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition:
    transform var(--transition-medium),
    box-shadow var(--transition-medium),
    border-color var(--transition-fast);
}

.product-similar-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-elevated);
  border-color: rgba(184, 149, 106, 0.3);
}

.product-similar-card-image {
  aspect-ratio: 4 / 5;
  background: var(--gallery-inner-bg);
  overflow: hidden;
}

.product-similar-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease-out-expo);
}

.product-similar-card:hover .product-similar-card-image img {
  transform: scale(1.05);
}

.product-similar-card-body {
  padding: 1rem 1.1rem 1.15rem;
}

.product-similar-card-body h4 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
}

.product-similar-card-body span {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--gold-dark);
}

[data-theme="dark"] .product-similar-card-body span {
  color: var(--gold-light);
}

/* Reveal dans page produit */
.pp-reveal {
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity 0.75s var(--ease-out-expo),
    transform 0.75s var(--ease-out-expo);
}

.pp-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.product-modal-gallery {
  display: flex;
  gap: 0.85rem;
  min-height: 0;
  width: 100%;
  min-width: 0;
}

.gallery-thumbnails {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  flex-shrink: 0;
  overflow-y: auto;
  max-height: clamp(300px, 48vh, 480px);
  padding: 0.15rem 0;
}

.gallery-thumbnail {
  width: 68px;
  min-width: 68px;
  height: 68px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--gallery-thumb-bg);
  cursor: pointer;
  flex-shrink: 0;
  transition:
    border-color var(--transition-fast),
    box-shadow var(--transition-fast),
    transform var(--transition-fast);
}

.gallery-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-thumbnail:hover,
.gallery-thumbnail:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 1px var(--gold-glow);
  outline: none;
  transform: scale(1.03);
}

.gallery-thumbnail.active {
  border-color: var(--gold);
  box-shadow: 0 0 0 1px var(--gold);
}

.gallery-main {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: stretch;
}

.product-pdp-carousel .gallery-main .gallery-inner {
  flex: 1;
  min-width: 0;
  position: relative;
  border-radius: 0;
  overflow: hidden;
  background: transparent;
  aspect-ratio: 1 / 1;
  width: 100%;
  height: auto;
  max-height: min(calc(100dvh - 11rem), 520px);
  min-height: 280px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  border: none;
}

.gallery-main .gallery-inner {
  flex: 1;
  min-width: 0;
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--gallery-inner-bg);
  aspect-ratio: 4 / 5;
  width: 100%;
  height: auto;
  max-height: clamp(300px, 48vh, 480px);
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  border: 1px solid var(--border-subtle);
}

.gallery-viewport {
  flex: 1;
  min-height: 0;
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  touch-action: manipulation;
  overscroll-behavior-x: contain;
}

.gallery-viewport::-webkit-scrollbar {
  display: none;
}

.gallery-track {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  height: 100%;
  width: max-content;
  min-height: 100%;
}

.gallery-slide {
  flex-shrink: 0;
  height: 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.gallery-slide img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  pointer-events: none;
  user-select: none;
  transition: transform 0.45s var(--ease-out-expo);
}

.product-pdp-carousel .gallery-thumbnails {
  flex-direction: column;
  max-height: min(calc(100dvh - 11rem), 520px);
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0.1rem 0;
}

.gallery-dots {
  display: none;
  position: absolute;
  bottom: 0.75rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.4rem 0.65rem;
  margin: 0;
  list-style: none;
  pointer-events: auto;
}

.gallery-dot {
  width: 6px;
  height: 6px;
  min-width: 6px;
  min-height: 6px;
  padding: 0;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.4);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1);
  transition:
    background var(--transition-fast),
    transform var(--transition-fast),
    box-shadow var(--transition-fast);
  -webkit-tap-highlight-color: transparent;
}

.gallery-dot:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.gallery-dot.active {
  background: var(--gold);
  box-shadow: 0 0 8px var(--gold-glow);
  transform: scale(1.3);
}

[data-theme="dark"] .gallery-dot {
  background: rgba(255, 255, 255, 0.3);
}

[data-theme="dark"] .gallery-dot.active {
  background: var(--gold-light);
}

.gallery-dots.gallery-dots--hidden {
  display: none !important;
}

.gallery-arrows-wrap {
  position: absolute;
  bottom: 1.05rem;
  right: 1.05rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  z-index: 4;
  pointer-events: none;
}

.gallery-arrow {
  -webkit-appearance: none;
  appearance: none;
  width: 50px;
  height: 50px;
  min-width: 50px;
  min-height: 50px;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--gold) 34%, rgba(255, 255, 255, 0.5));
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(242, 240, 236, 0.84));
  color: var(--gallery-arrow-color);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 12px 34px rgba(26, 24, 22, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  pointer-events: auto;
  -webkit-tap-highlight-color: transparent;
  transition:
    background var(--transition-fast),
    border-color var(--transition-fast),
    color var(--transition-fast),
    transform var(--transition-fast),
    box-shadow var(--transition-medium);
}

.gallery-arrow-icon {
  font-size: 1.85rem;
  font-weight: 500;
  line-height: 1;
  display: block;
  transform: translateY(-1px);
}

.gallery-arrow:hover:not(:disabled) {
  border-color: var(--gold);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 1), color-mix(in srgb, var(--gold) 16%, #f7f4ef));
  box-shadow:
    0 18px 42px rgba(26, 24, 22, 0.22),
    0 0 0 1px color-mix(in srgb, var(--gold) 18%, transparent);
  transform: translateY(-1px) scale(1.04);
}

.gallery-arrow:active:not(:disabled) {
  transform: translateY(0) scale(0.98);
}

.gallery-arrow:disabled {
  display: none;
}

[data-theme="dark"] .gallery-arrow {
  border-color: color-mix(in srgb, var(--gold) 36%, var(--dark-border));
  background:
    linear-gradient(145deg, rgba(240, 235, 228, 0.96), rgba(212, 184, 150, 0.86));
  color: #0c0c0e;
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.44),
    inset 0 1px 0 rgba(255, 255, 255, 0.42);
}

[data-theme="dark"] .gallery-arrow:hover:not(:disabled) {
  background:
    linear-gradient(145deg, #fff8ee, var(--gold-light));
  border-color: var(--gold-light);
}

.product-modal-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding-top: 0.5rem;
}

.product-badge {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

.product-modal-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2vw + 0.8rem, 2rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: 0.01em;
}

.product-modal-desc {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.55;
}

.product-modal-price {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--gold-dark);
  letter-spacing: 0.02em;
}

[data-theme="dark"] .product-modal-price {
  color: var(--gold-light);
}

.product-size-section {
  margin-top: 0.5rem;
}

.product-size-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.65rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.size-guide-link {
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--text-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.size-guide-link:hover {
  color: var(--gold);
}

.product-size-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.55rem;
}

.product-size-btn {
  -webkit-appearance: none;
  appearance: none;
  min-width: 0;
  min-height: 3rem;
  padding: 0.72rem 0.7rem;
  border-radius: 14px;
  border: 1px solid color-mix(in srgb, var(--text) 13%, var(--border-subtle));
  background: color-mix(in srgb, var(--bg-elevated) 72%, transparent);
  color: var(--text);
  -webkit-text-fill-color: currentColor;
  font-size: 0.9rem;
  font-weight: 650;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transform: translateZ(0);
  transition:
    background var(--transition-fast),
    color var(--transition-fast),
    border-color var(--transition-fast),
    transform var(--transition-fast),
    box-shadow var(--transition-fast);
}

.product-size-btn:hover:not(:disabled) {
  border-color: var(--gold);
  background: color-mix(in srgb, var(--gold) 8%, var(--bg-elevated));
  transform: translateY(-1px);
}

.product-size-btn.selected {
  background: linear-gradient(135deg, #12100e 0%, #24201b 100%);
  color: #fffdf8 !important;
  -webkit-text-fill-color: #fffdf8;
  border-color: var(--gold);
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--gold) 35%, transparent),
    0 12px 24px rgba(26, 24, 22, 0.16);
  transform: translateZ(0);
}

[data-theme="dark"] .product-size-btn.selected {
  background: linear-gradient(135deg, #f3dfc2 0%, var(--gold) 100%);
  color: #0c0c0e !important;
  -webkit-text-fill-color: #0c0c0e;
  border-color: var(--gold);
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--gold-light) 42%, transparent),
    0 12px 28px rgba(0, 0, 0, 0.34);
}

.product-size-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  color: var(--text-muted);
  -webkit-text-fill-color: var(--text-muted);
  background: color-mix(in srgb, var(--bg-soft) 84%, transparent);
  border-color: var(--border-subtle);
}

.btn-add-cart {
  width: 100%;
  min-height: 3.45rem;
  padding: 1.05rem 1.35rem;
  margin-top: 0.65rem;
  border: none;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
  color: var(--btn-primary-text);
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    transform var(--transition-fast),
    box-shadow var(--transition-medium),
    background var(--transition-fast);
}

[data-theme="dark"] .btn-add-cart {
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 100%);
  color: #0c0c0e;
}

.btn-add-cart:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-elevated);
}

.btn-add-favorites {
  width: 100%;
  min-height: 3.1rem;
  padding: 0.9rem 1.25rem;
  border: 1px solid color-mix(in srgb, var(--gold) 30%, var(--border-subtle));
  border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--bg-elevated) 72%, transparent);
  color: var(--text);
  font-size: 0.84rem;
  font-weight: 750;
  letter-spacing: 0.035em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition:
    background var(--transition-fast),
    border-color var(--transition-fast),
    color var(--transition-fast),
    transform var(--transition-fast),
    box-shadow var(--transition-fast);
}

.btn-add-favorites:hover {
  background: color-mix(in srgb, var(--gold) 8%, var(--bg-elevated));
  border-color: var(--gold);
  color: var(--gold-dark);
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(26, 24, 22, 0.08);
}

.btn-add-favorites[aria-pressed="true"] {
  border-color: color-mix(in srgb, var(--gold) 55%, var(--border-subtle));
  background: color-mix(in srgb, var(--gold) 12%, var(--bg-elevated));
  color: var(--gold-dark);
}

[data-theme="dark"] .btn-add-favorites {
  background: color-mix(in srgb, var(--dark-surface-alt) 82%, transparent);
  border-color: color-mix(in srgb, var(--gold) 28%, var(--dark-border));
}

[data-theme="dark"] .btn-add-favorites:hover,
[data-theme="dark"] .btn-add-favorites[aria-pressed="true"] {
  color: var(--gold-light);
  background: color-mix(in srgb, var(--gold) 12%, var(--dark-surface));
}

/* ─── Modals ─── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: var(--overlay-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 65;
  padding: 1.25rem;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  animation: modalFadeIn 0.35s var(--ease-smooth);
}

.modal-overlay.hidden {
  display: none;
}

.auth-modal-overlay {
  z-index: 130;
  background: color-mix(in srgb, var(--overlay-bg) 88%, rgba(18, 16, 14, 0.72));
}

.modal-box {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  padding: 2rem 1.75rem;
  max-width: 440px;
  max-height: calc(100dvh - 2.5rem);
  width: 100%;
  position: relative;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  box-shadow: var(--shadow-elevated);
  backdrop-filter: blur(20px);
  animation: modalIn 0.45s var(--ease-out-expo);
}

.auth-modal-overlay .modal-box {
  max-height: calc(100dvh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px) - 2.5rem);
  overscroll-behavior: contain;
}

@media (max-width: 760px) {
  .auth-modal-overlay {
    align-items: flex-start;
    padding:
      calc(env(safe-area-inset-top, 0px) + 1rem)
      0.85rem
      calc(env(safe-area-inset-bottom, 0px) + 1rem);
  }

  .auth-modal-overlay .modal-box {
    width: min(100%, 27rem);
    max-height: calc(100dvh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px) - 2rem);
    margin: 0 auto;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
}

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

.modal-box .modal-close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
}

.modal-title {
  margin: 0 0 1.25rem;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.help-contact-line {
  margin: 0.65rem 0;
  font-size: 0.92rem;
  line-height: 1.5;
}

.help-contact-line a {
  color: var(--gold-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition-fast);
}

.help-contact-line a:hover {
  color: var(--gold);
}

[data-theme="dark"] .help-contact-line a {
  color: var(--gold-light);
}

.modal-auth .form-group input {
  width: 100%;
}

.modal-tracking {
  background: #fff;
  color: #111;
  max-width: 420px;
}

.modal-tracking .modal-title {
  margin-bottom: 0.65rem;
}

.tracking-modal-lead {
  margin: 0 0 1.25rem;
  color: #555;
  font-size: 0.95rem;
  line-height: 1.5;
}

.modal-tracking .form-group label {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: #333;
}

.modal-tracking .form-group input {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border-subtle, #ddd);
  border-radius: var(--radius-md, 10px);
  font-size: 1rem;
  background: #fff;
  color: #111;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.modal-tracking .form-group input:focus {
  outline: none;
  border-color: var(--gold-dark, #b8860b);
  box-shadow: 0 0 0 3px rgba(184, 134, 11, 0.15);
}

.tracking-modal-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.tracking-modal-actions .btn-secondary,
.tracking-modal-actions .btn-primary {
  flex: 1;
  min-height: 44px;
}

@media (max-width: 480px) {
  .modal-tracking {
    padding: 1.5rem 1.25rem;
  }

  .tracking-modal-actions {
    flex-direction: column-reverse;
  }
}

.modal-auth .auth-form {
  margin-bottom: 0.85rem;
}

.modal-auth .form-group {
  margin-bottom: 0.65rem;
}

.modal-auth .form-group input {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: var(--input-bg);
  color: var(--text);
  font-size: 0.9rem;
}

.auth-switch {
  margin: 0.85rem 0 0;
  text-align: center;
}

.link-btn {
  background: none;
  border: none;
  color: var(--gold-dark);
  cursor: pointer;
  font-size: 0.88rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition-fast);
}

.link-btn:hover {
  color: var(--gold);
}

[data-theme="dark"] .link-btn {
  color: var(--gold-light);
}

.form-error {
  margin: 0.5rem 0 0.25rem;
  font-size: 0.85rem;
  color: var(--danger);
  font-weight: 500;
}

.form-notice {
  margin: 0 0 1rem;
  padding: 0.85rem 0.95rem;
  border: 1px solid color-mix(in srgb, var(--gold) 32%, var(--border-subtle));
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--gold) 8%, var(--card-bg));
  color: var(--text);
  font-size: 0.86rem;
  line-height: 1.5;
}

.form-notice p {
  margin: 0;
}

.form-notice p + p {
  margin-top: 0.45rem;
  color: var(--text-muted);
}

.form-hint {
  margin: 0.25rem 0 0.65rem;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.code-inputs {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.55rem;
  margin-bottom: 0.85rem;
}

.code-digit {
  width: 100%;
  text-align: center;
  padding: 0.7rem 0.4rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: var(--input-bg);
  color: var(--text);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.code-digit:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-glow);
}

.auth-resend {
  text-align: center;
  margin-top: 0.35rem;
}

.password-field {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.password-field input {
  flex: 1;
}

.password-toggle {
  border: 1px solid var(--border-subtle);
  background: var(--bg-soft);
  color: var(--text-muted);
  border-radius: var(--radius-pill);
  padding: 0.35rem 0.75rem;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--transition-fast), color var(--transition-fast);
}

.password-toggle:hover {
  background: var(--accent-soft);
  color: var(--text);
}

/* ─── Favorites & Orders Panels ─── */
.favorites-panel {
  z-index: 62;
}

.orders-panel {
  z-index: 63;
}

.orders-promo-summary {
  margin: 0.85rem 1.35rem 0;
  padding: 0.7rem 0.85rem;
  border: 1px solid color-mix(in srgb, var(--gold) 34%, var(--border-subtle));
  border-radius: 16px;
  background: color-mix(in srgb, var(--gold) 9%, var(--surface));
  color: var(--gold-dark);
  font-size: 0.82rem;
  font-weight: 750;
  text-align: center;
}

[data-theme="dark"] .orders-promo-summary {
  color: var(--gold-light);
  background: color-mix(in srgb, var(--gold) 11%, var(--surface));
}

.orders-panel .order-card {
  padding-bottom: 0.75rem;
}

.order-financial-details {
  display: grid;
  gap: 0.22rem;
  margin-top: 0.45rem;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  background: color-mix(in srgb, var(--surface) 88%, var(--gold) 12%);
  color: var(--text-muted);
  font-size: 0.78rem;
}

.order-financial-details strong {
  color: var(--text);
}

.orders-panel .order-status-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.75rem;
  margin-top: 0.2rem;
}

.orders-panel .order-status-row label {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin: 0;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 500;
}

.orders-panel .order-status-select {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 100%;
  font: inherit;
  font-size: 0.82rem;
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
  background: var(--input-bg);
  color: var(--text);
  cursor: pointer;
}

.orders-panel .order-status-select:disabled {
  opacity: 0.6;
  cursor: wait;
}

.orders-panel .order-status-date {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.orders-panel .order-status-readonly {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin-top: 0.15rem;
}

.order-status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.4rem 1.05rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1.25;
  border: 1.5px solid transparent;
  white-space: nowrap;
}

.order-status-badge--paid {
  background: rgba(22, 42, 74, 0.24);
  color: #142a52;
  border-color: rgba(22, 42, 74, 0.48);
}

.order-status-badge--preparation {
  background: rgba(42, 45, 50, 0.22);
  color: #2a2e34;
  border-color: rgba(42, 45, 50, 0.46);
}

.order-status-badge--shipping {
  background: rgba(184, 149, 106, 0.28);
  color: #6b4f24;
  border-color: rgba(154, 118, 72, 0.52);
}

.order-status-badge--delivered {
  background: rgba(12, 118, 86, 0.26);
  color: #0a5c44;
  border-color: rgba(12, 118, 86, 0.5);
  font-weight: 700;
  box-shadow: 0 1px 0 rgba(12, 118, 86, 0.1);
}

[data-theme="dark"] .order-status-badge--paid {
  background: rgba(72, 108, 168, 0.28);
  color: #b8cce8;
  border-color: rgba(110, 145, 205, 0.55);
}

[data-theme="dark"] .order-status-badge--preparation {
  background: rgba(120, 125, 132, 0.26);
  color: #d8dce2;
  border-color: rgba(150, 156, 164, 0.52);
}

[data-theme="dark"] .order-status-badge--shipping {
  background: rgba(196, 154, 108, 0.3);
  color: #f0d4a8;
  border-color: rgba(212, 176, 128, 0.58);
}

[data-theme="dark"] .order-status-badge--delivered {
  background: rgba(40, 168, 122, 0.3);
  color: #8ce8be;
  border-color: rgba(72, 188, 142, 0.58);
  box-shadow: 0 1px 0 rgba(56, 168, 104, 0.16);
}

.favorites-panel .favorite-item {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 0.75rem 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.9rem;
}

.favorites-panel .favorite-item-open {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  width: 100%;
  margin: 0;
  padding: 0.35rem;
  border: none;
  background: transparent;
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: inherit;
  border-radius: var(--radius-sm);
  min-height: 44px;
  transition: background var(--transition-fast);
}

.favorites-panel .favorite-item-open:hover,
.favorites-panel .favorite-item-open:focus-visible {
  outline: none;
  background: var(--accent-soft);
}

.favorites-panel .favorite-item-text {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.favorites-panel .favorite-item-text strong {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.25;
}

.favorites-panel .favorite-item-price {
  font-size: 0.85rem;
  color: var(--gold-dark);
}

[data-theme="dark"] .favorites-panel .favorite-item-price {
  color: var(--gold-light);
}

.favorites-panel .favorite-item img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  border: 1px solid var(--border-subtle);
}

.favorites-panel .favorite-item-placeholder {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
  border: 1px solid var(--border-subtle);
}

.favorites-panel .favorite-item .remove-fav {
  align-self: center;
  white-space: nowrap;
}

/* ─── Dedicated Favorites Page ─── */
.favorites-page {
  min-height: 100dvh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at top right, rgba(184, 149, 106, 0.12), transparent 32rem),
    var(--bg);
}

.favorites-page-main {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding-top: var(--site-header-height, 8.5rem);
  padding-bottom: calc(2rem + env(safe-area-inset-bottom, 0px));
}

.favorites-hero {
  display: grid;
  gap: 0.45rem;
  margin: 0.65rem 0 1.25rem;
  padding: clamp(1.2rem, 3vw, 2rem);
  border: 1px solid var(--border-subtle);
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(184, 149, 106, 0.14), transparent 42%),
    var(--bg-elevated);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.08);
}

.favorites-hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 4rem);
  line-height: 0.95;
  letter-spacing: -0.035em;
}

.favorites-hero p:last-child {
  max-width: 36rem;
  margin: 0;
  color: var(--text-muted);
  line-height: 1.65;
}

.favorites-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
  gap: clamp(1rem, 2.4vw, 1.5rem);
  align-items: start;
}

.favorites-list-card,
.favorites-side-card {
  border: 1px solid var(--border-subtle);
  border-radius: 28px;
  background: var(--bg-elevated);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.08);
}

.favorites-list-card {
  overflow: hidden;
}

.favorites-list-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1rem, 3vw, 1.35rem);
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.favorites-page-items {
  display: grid;
  gap: 0;
}

.favorite-page-card {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) minmax(180px, 220px);
  gap: clamp(0.9rem, 2vw, 1.25rem);
  align-items: center;
  padding: clamp(1rem, 2.5vw, 1.25rem);
  border-bottom: 1px solid var(--border-subtle);
}

.favorite-page-card:last-child {
  border-bottom: none;
}

.favorite-page-media {
  display: block;
  aspect-ratio: 1 / 1;
  border: 1px solid color-mix(in srgb, var(--gold) 22%, var(--border-subtle));
  border-radius: 22px;
  overflow: hidden;
  background: var(--bg-soft);
}

.favorite-page-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform var(--transition-medium);
}

.favorite-page-media:hover img {
  transform: scale(1.035);
}

.favorite-page-placeholder {
  display: grid;
  place-items: center;
  height: 100%;
  color: var(--gold);
  font-size: 2rem;
}

.favorite-page-info {
  display: grid;
  gap: 0.85rem;
  min-width: 0;
}

.favorite-page-kicker {
  margin: 0 0 0.25rem;
  color: var(--gold-dark);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.favorite-page-info h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 3vw, 1.8rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
}

.favorite-page-price {
  margin: 0.35rem 0 0;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}

.favorite-page-meta {
  display: grid;
  gap: 0.65rem;
}

.favorite-stock {
  width: fit-content;
  padding: 0.36rem 0.72rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.favorite-stock--in {
  color: #0a5c44;
  background: rgba(12, 118, 86, 0.12);
  border-color: rgba(12, 118, 86, 0.26);
}

.favorite-stock--low {
  color: #7a4c0a;
  background: rgba(184, 149, 106, 0.17);
  border-color: rgba(184, 149, 106, 0.36);
}

.favorite-stock--out {
  color: #8f2d2d;
  background: rgba(143, 45, 45, 0.12);
  border-color: rgba(143, 45, 45, 0.3);
}

.favorite-size-note {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.86rem;
}

.favorite-size-select {
  display: grid;
  gap: 0.3rem;
  max-width: 12rem;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.favorite-size-select select {
  width: 100%;
  min-height: 2.45rem;
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  background: var(--input-bg);
  color: var(--text);
  padding: 0 0.8rem;
  font: inherit;
  text-transform: none;
  letter-spacing: 0;
}

.favorite-page-actions {
  display: grid;
  gap: 0.65rem;
  justify-items: stretch;
}

.favorite-page-actions .btn-primary,
.favorite-page-actions .btn-secondary,
.favorite-remove {
  min-height: 2.75rem;
  width: 100%;
}

.favorite-view-product {
  text-align: center;
  text-decoration: none;
}

.favorite-remove {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color var(--transition-fast), color var(--transition-fast), background var(--transition-fast);
}

.favorite-remove:hover {
  border-color: rgba(143, 45, 45, 0.35);
  background: rgba(143, 45, 45, 0.08);
  color: #8f2d2d;
}

.favorites-empty {
  display: grid;
  justify-items: center;
  gap: 0.85rem;
  padding: clamp(2rem, 6vw, 4rem) 1.25rem;
  text-align: center;
}

.favorites-empty-icon {
  display: grid;
  place-items: center;
  width: 4rem;
  height: 4rem;
  border: 1px solid color-mix(in srgb, var(--gold) 34%, var(--border-subtle));
  border-radius: 999px;
  color: var(--gold);
  background: color-mix(in srgb, var(--gold) 10%, var(--surface));
  font-size: 2rem;
}

.favorites-empty h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 5vw, 2.2rem);
}

.favorites-empty p {
  max-width: 30rem;
  margin: 0;
  color: var(--text-muted);
  line-height: 1.65;
}

.favorites-side-card {
  position: sticky;
  top: calc(var(--site-header-height, 8.5rem) + 1rem);
  padding: 1.2rem;
}

.favorites-side-card h2 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
}

.favorites-benefits-grid {
  display: grid;
  gap: 0.75rem;
}

.favorites-benefits-grid article {
  display: grid;
  gap: 0.25rem;
  padding: 0.9rem;
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  background: var(--bg-soft);
}

.favorites-benefits-grid strong {
  color: var(--text);
}

.favorites-benefits-grid span {
  color: var(--text-muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

[data-theme="dark"] .favorites-page {
  background:
    radial-gradient(circle at top right, rgba(184, 149, 106, 0.12), transparent 32rem),
    var(--dark-bg, #0d0d0d);
}

[data-theme="dark"] .favorites-hero,
[data-theme="dark"] .favorites-list-card,
[data-theme="dark"] .favorites-side-card {
  background: var(--dark-surface, #151515);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.36);
}

[data-theme="dark"] .favorite-page-kicker,
[data-theme="dark"] .favorite-page-price {
  color: var(--gold-light);
}

[data-theme="dark"] .favorite-stock--in {
  color: #8ce8be;
  background: rgba(40, 168, 122, 0.16);
  border-color: rgba(72, 188, 142, 0.34);
}

[data-theme="dark"] .favorite-stock--low {
  color: #f0d4a8;
  background: rgba(196, 154, 108, 0.16);
  border-color: rgba(212, 176, 128, 0.36);
}

[data-theme="dark"] .favorite-stock--out {
  color: #ffb3b3;
  background: rgba(190, 70, 70, 0.16);
  border-color: rgba(210, 90, 90, 0.36);
}

@media (max-width: 980px) {
  .favorites-layout {
    grid-template-columns: 1fr;
  }

  .favorites-side-card {
    position: static;
  }

  .favorite-page-card {
    grid-template-columns: 132px minmax(0, 1fr);
  }

  .favorite-page-actions {
    grid-column: 1 / -1;
    grid-template-columns: 1fr 1fr;
  }

  .favorite-remove {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .favorites-page-main {
    width: min(100% - 1rem, 44rem);
  }

  .favorites-list-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.25rem;
  }

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

  .favorite-page-media {
    max-width: none;
  }

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

  .favorite-size-select {
    max-width: none;
  }
}

/* ─── Avis accueil ─── */
.demo-reviews-section[hidden] {
  display: none !important;
}

body.demo-reviews-visible .main {
  padding-bottom: 0;
}

body.demo-reviews-visible .site-footer {
  margin-top: 0;
}

.demo-reviews-section {
  position: relative;
  overflow: hidden;
  margin-top: clamp(3.5rem, 7vw, 6.5rem);
  padding: clamp(3.5rem, 7vw, 6rem) 1.25rem;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 10%, color-mix(in srgb, var(--gold) 16%, transparent), transparent 34%),
    radial-gradient(circle at 88% 88%, color-mix(in srgb, var(--gold-light) 9%, transparent), transparent 30%),
    var(--bg);
  border-top: 1px solid color-mix(in srgb, var(--gold) 22%, var(--border-subtle));
  border-bottom: 1px solid color-mix(in srgb, var(--gold) 14%, var(--border-subtle));
  transition: color var(--transition-fast), background-color var(--transition-medium), border-color var(--transition-fast);
}

.demo-reviews-inner {
  width: min(100%, 1280px);
  margin: 0 auto;
}

.demo-reviews-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: clamp(1.75rem, 4vw, 3rem);
}

.demo-reviews-heading {
  max-width: 45rem;
}

.demo-reviews-heading h2 {
  margin: 0;
  color: var(--text);
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.65rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.demo-reviews-heading > p:last-child {
  margin: 1rem 0 0;
  color: var(--text-muted);
  font-size: clamp(0.9rem, 1.5vw, 1.02rem);
  line-height: 1.65;
}

.demo-reviews-rating {
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  gap: 0.2rem 0.75rem;
  flex: 0 0 auto;
  padding: 1rem 1.15rem;
  border: 1px solid color-mix(in srgb, var(--gold) 28%, var(--border-subtle));
  border-radius: 16px;
  background: color-mix(in srgb, var(--bg-elevated) 94%, var(--gold) 6%);
  box-shadow: var(--shadow-soft);
}

.demo-reviews-rating strong {
  grid-row: span 2;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 2.05rem;
  line-height: 1;
}

.demo-reviews-rating > span:last-child {
  color: var(--text-muted);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
}

.demo-reviews-stars {
  color: var(--gold);
  font-size: 0.88rem;
  letter-spacing: 0.14em;
  white-space: nowrap;
}

.demo-reviews-stage {
  display: block;
  min-width: 0;
}

.demo-reviews-track {
  display: block;
  min-width: 0;
  overflow: hidden;
  padding: 0.35rem 0.1rem 0.75rem;
  cursor: grab;
  overscroll-behavior-inline: contain;
  touch-action: pan-y;
}

.demo-reviews-marquee,
.demo-reviews-group {
  display: flex;
  align-items: stretch;
  gap: var(--demo-reviews-gap, 1rem);
}

.demo-reviews-marquee {
  width: max-content;
  transform: translate3d(0, 0, 0);
  will-change: transform;
  backface-visibility: hidden;
}

.demo-reviews-group {
  flex: 0 0 auto;
}

.demo-reviews-track:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 5px;
  border-radius: 18px;
}

.demo-reviews-track.is-dragging {
  cursor: grabbing;
  user-select: none;
}

.demo-reviews-track.is-dragging * {
  user-select: none;
  pointer-events: none;
}

.demo-review-card {
  position: relative;
  display: flex;
  flex: 0 0 var(--demo-reviews-card-width, 390px);
  flex-direction: column;
  min-width: 0;
  min-height: 255px;
  padding: 1.35rem;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--gold) 22%, var(--border-subtle));
  border-radius: 20px;
  background: linear-gradient(
    145deg,
    color-mix(in srgb, var(--bg-elevated) 93%, var(--gold) 7%),
    color-mix(in srgb, var(--bg-elevated) 98%, var(--bg) 2%)
  );
  box-shadow: var(--shadow-soft);
  transition: transform 220ms ease, border-color 220ms ease, background 220ms ease, color var(--transition-fast);
}

.demo-review-card::after {
  content: "”";
  position: absolute;
  right: 1rem;
  bottom: -1.1rem;
  color: color-mix(in srgb, var(--gold) 13%, transparent);
  font-family: Georgia, serif;
  font-size: 8rem;
  line-height: 1;
  pointer-events: none;
}

.demo-review-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--gold) 42%, var(--border-subtle));
  background: linear-gradient(
    145deg,
    color-mix(in srgb, var(--bg-elevated) 88%, var(--gold) 12%),
    color-mix(in srgb, var(--bg-elevated) 96%, var(--bg) 4%)
  );
}

.demo-review-card[aria-hidden="true"] {
  pointer-events: none;
}

.demo-review-card-top,
.demo-review-author {
  display: flex;
  align-items: center;
}

.demo-review-card-top {
  justify-content: flex-start;
  margin-bottom: 1.15rem;
}

.demo-review-card-stars {
  color: var(--gold);
  font-size: 0.84rem;
  letter-spacing: 0.13em;
  white-space: nowrap;
}

.demo-review-comment {
  position: relative;
  z-index: 1;
  flex: 1;
  margin: 0 0 1.35rem;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1.08rem;
  line-height: 1.55;
}

.demo-review-author {
  position: relative;
  z-index: 1;
  gap: 0.8rem;
}

.demo-review-avatar {
  position: relative;
  display: grid;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  place-items: center;
  overflow: hidden;
  color: #17130f;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  border: 1px solid color-mix(in srgb, var(--gold) 28%, var(--border-subtle));
  border-radius: 50%;
  background: linear-gradient(135deg, #d9c09d, #9b7953);
}

.demo-review-card:nth-child(3n + 2) .demo-review-avatar {
  background: linear-gradient(135deg, #cabfae, #817467);
}

.demo-review-card:nth-child(3n) .demo-review-avatar {
  background: linear-gradient(135deg, #d6c9ad, #8c8767);
}

.demo-review-avatar img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.demo-review-author-copy {
  min-width: 0;
}

.demo-review-author-copy strong,
.demo-review-author-copy time {
  display: block;
}

.demo-review-author-copy strong {
  overflow: hidden;
  color: var(--text);
  font-size: 0.86rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.demo-review-author-copy time {
  margin-top: 0.2rem;
  color: var(--text-muted);
  font-size: 0.69rem;
}

.demo-reviews-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
}

.demo-reviews-dots {
  display: flex;
  align-items: center;
  gap: 0.42rem;
}

.demo-reviews-dot {
  width: 7px;
  height: 7px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: color-mix(in srgb, var(--text-muted) 38%, transparent);
  transition: width 180ms ease, background 180ms ease;
}

.demo-reviews-dot.is-active {
  width: 24px;
  background: var(--gold);
}

.demo-reviews-dot:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.demo-reviews-position {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.69rem;
  letter-spacing: 0.05em;
  text-align: center;
}

@media (max-width: 1050px) and (min-width: 769px) {
  .demo-review-card { min-width: 0; }
}

@media (max-width: 768px) {
  .demo-reviews-section {
    margin-top: 3.5rem;
    padding: 3.25rem 1rem 3rem;
  }

  .demo-reviews-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 1.35rem;
  }

  .demo-reviews-heading h2 {
    font-size: clamp(2rem, 10vw, 2.75rem);
  }

  .demo-reviews-rating {
    align-self: stretch;
    grid-template-columns: auto 1fr;
    width: 100%;
  }

  .demo-reviews-stage {
    margin-right: -1rem;
  }

  .demo-reviews-track {
    padding-right: 1rem;
  }

  .demo-review-card {
    min-height: 238px;
    padding: 1.2rem;
  }

  .demo-reviews-meta {
    gap: 0.8rem;
  }

  .demo-reviews-dots {
    overflow: hidden;
  }

  .demo-reviews-position {
    text-align: right;
  }

}

@media (prefers-reduced-motion: reduce) {
  .demo-reviews-track {
    scroll-behavior: auto;
  }

  .demo-review-card:hover {
    transform: none;
  }
}

/* ─── Footer Premium ─── */
.verified-reviews-empty {
  margin: 0;
  padding: 2rem;
  color: var(--text-muted);
  text-align: center;
  border: 1px dashed color-mix(in srgb, var(--gold) 28%, var(--border-subtle));
  border-radius: 18px;
  background: color-mix(in srgb, var(--bg-elevated) 96%, var(--gold) 4%);
}

.verified-reviews-track {
  overflow-x: auto;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
  cursor: grab;
}

.verified-reviews-track::-webkit-scrollbar {
  display: none;
}

.verified-reviews-list {
  display: flex;
  width: max-content;
  gap: 1rem;
  padding-right: 1rem;
}

.verified-review-card {
  scroll-snap-align: start;
}

.verified-review-card-top {
  justify-content: space-between;
  gap: 0.8rem;
}

.verified-purchase-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 0.35rem 0.6rem;
  color: color-mix(in srgb, var(--gold) 80%, var(--text));
  font-size: 0.7rem;
  font-weight: 750;
  border: 1px solid color-mix(in srgb, var(--gold) 35%, var(--border-subtle));
  border-radius: 999px;
  background: color-mix(in srgb, var(--gold) 10%, transparent);
}

.product-card-review-summary {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0.65rem 0 0;
  color: var(--text-muted);
  font-size: 0.75rem;
}

.product-card-review-summary > span:first-child,
.verified-review-stars {
  color: var(--gold);
  letter-spacing: 0.08em;
}

.product-pdp-reviews {
  padding: clamp(2.75rem, 6vw, 5rem) 1.25rem;
  border-top: 1px solid var(--border-subtle);
}

.product-reviews-content {
  display: grid;
  grid-template-columns: minmax(230px, 0.34fr) minmax(0, 1fr);
  gap: clamp(1.25rem, 4vw, 2.5rem);
  align-items: start;
}

.product-review-summary-card,
.product-review-entry {
  border: 1px solid color-mix(in srgb, var(--gold) 24%, var(--border-subtle));
  border-radius: 18px;
  background: var(--bg-elevated);
  box-shadow: var(--shadow-soft);
}

.product-review-summary-card {
  display: grid;
  gap: 0.65rem;
  padding: 1.4rem;
}

.product-review-summary-card > strong {
  color: var(--text);
  font-family: var(--font-display);
  font-size: 2.4rem;
}

.product-review-summary-card > span:not(.verified-review-stars) {
  color: var(--text-muted);
  font-size: 0.82rem;
}

.product-review-distribution {
  display: grid;
  gap: 0.45rem;
  margin-top: 0.65rem;
}

.product-review-distribution-row {
  display: grid;
  grid-template-columns: 34px minmax(80px, 1fr) 24px;
  gap: 0.55rem;
  align-items: center;
  color: var(--text-muted);
  font-size: 0.72rem;
}

.product-review-distribution-meter {
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: color-mix(in srgb, var(--text-muted) 18%, transparent);
}

.product-review-distribution-meter > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--gold);
}

.product-review-list {
  display: grid;
  gap: 1rem;
}

.product-review-entry {
  display: grid;
  gap: 0.8rem;
  padding: 1.25rem;
}

.product-review-entry-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: baseline;
}

.product-review-entry-head strong {
  color: var(--text);
}

.product-review-entry-head time,
.product-reviews-loading {
  color: var(--text-muted);
  font-size: 0.78rem;
}

.product-review-entry p {
  margin: 0;
  color: var(--text);
  line-height: 1.65;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

@media (max-width: 768px) {
  .verified-reviews-list {
    gap: 0.8rem;
  }

  .verified-review-card {
    flex-basis: min(82vw, 315px);
  }

  .product-reviews-content {
    grid-template-columns: 1fr;
  }

  .product-pdp-reviews {
    padding: 2.5rem 1rem;
  }
}

.site-footer {
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-elevated);
  margin-top: 3rem;
  padding: 2.5rem 1.25rem 2.75rem;
}

.site-footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  text-align: center;
}

.site-footer-brand {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.site-footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem 1.5rem;
  margin-bottom: 1rem;
}

.site-footer-nav a {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.site-footer-nav a:hover {
  color: var(--gold);
}

.site-footer-note {
  margin: 0;
  font-size: 0.75rem;
  color: var(--text-muted);
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}

/* ─── Product Page Mobile ─── */
@media (max-width: 768px) {
  .product-pdp-buy {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 0.85rem max(0.95rem, env(safe-area-inset-right, 0px)) 1.75rem max(0.95rem, env(safe-area-inset-left, 0px));
  }

  .product-pdp-gallery-col {
    position: static;
  }

  .product-pdp-carousel.product-modal-gallery {
    flex-direction: column-reverse;
    gap: 0.55rem;
  }

  .product-pdp-carousel .gallery-main .gallery-inner {
    aspect-ratio: 1 / 1.08;
    max-height: min(48vh, 410px);
    min-height: 230px;
  }

  .gallery-zoom-wrap {
    border-radius: 18px;
  }

  .product-pdp-carousel .gallery-thumbnails {
    flex-direction: row;
    max-height: none;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0.35rem 0 0;
    gap: 0.45rem;
  }

  .gallery-arrows-wrap {
    display: flex;
    right: 0.75rem;
    bottom: 0.75rem;
    gap: 0.42rem;
  }

  .gallery-arrow {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    box-shadow:
      0 10px 28px rgba(26, 24, 22, 0.16),
      inset 0 1px 0 rgba(255, 255, 255, 0.62);
  }

  .gallery-arrow-icon {
    font-size: 1.65rem;
  }

  .gallery-dots:not(.gallery-dots--hidden) {
    display: flex;
  }

  .gallery-thumbnail {
    width: 54px;
    min-width: 54px;
    height: 54px;
    border-radius: 14px;
  }

  .product-pdp-info {
    gap: 0.7rem;
    padding: 1rem;
    border-radius: 18px;
  }

  .product-pdp-info .product-modal-title {
    font-size: clamp(1.65rem, 8vw, 2.25rem);
  }

  .product-pdp-info .product-modal-price {
    font-size: 1.45rem;
  }

  .product-promo-note {
    width: 100%;
    justify-content: center;
    font-size: 0.72rem;
  }

  .product-size-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem;
  }

  .product-size-btn {
    min-height: 3.1rem;
    padding: 0.72rem 0.45rem;
  }

  .product-qty-stepper {
    width: 100%;
    justify-content: space-between;
  }

  .product-qty-input {
    flex: 1;
  }

  .btn-add-cart,
  .btn-add-favorites {
    min-height: 3.35rem;
  }

  .product-specs-grid {
    grid-template-columns: 1fr;
  }

  .product-pdp-description {
    padding: 2rem 0 1.75rem;
  }

  .product-similar-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
  }

  .product-modal .header-nav-modal {
    display: none;
  }

  .product-modal .modal-home-btn {
    display: none;
  }

  .product-modal-header {
    grid-template-rows: auto;
    row-gap: 0;
  }

  .product-modal-header-brand {
    grid-row: 1;
  }

  .product-modal-header-right {
    grid-row: 1;
  }
}

/* Verrou couleur tailles sélectionnées : doit gagner contre hover/focus/active mobile Safari. */
.product-size-btn.selected,
.product-size-btn.selected:hover:not(:disabled),
.product-size-btn.selected:focus:not(:disabled),
.product-size-btn.selected:focus-visible:not(:disabled),
.product-size-btn.selected:active:not(:disabled) {
  background: linear-gradient(135deg, #12100e 0%, #24201b 100%) !important;
  color: #fffdf8 !important;
  -webkit-text-fill-color: #fffdf8 !important;
  border-color: var(--gold) !important;
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--gold) 38%, transparent),
    0 12px 24px rgba(26, 24, 22, 0.18) !important;
  transform: translateZ(0) !important;
}

[data-theme="dark"] .product-size-btn.selected,
[data-theme="dark"] .product-size-btn.selected:hover:not(:disabled),
[data-theme="dark"] .product-size-btn.selected:focus:not(:disabled),
[data-theme="dark"] .product-size-btn.selected:focus-visible:not(:disabled),
[data-theme="dark"] .product-size-btn.selected:active:not(:disabled) {
  background: linear-gradient(135deg, #12100e 0%, #24201b 100%) !important;
  color: #fffdf8 !important;
  -webkit-text-fill-color: #fffdf8 !important;
  border-color: var(--gold-light) !important;
}

/* ─── Reduced Motion ─── */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .product-card {
    opacity: 1;
    transform: none;
  }

  .pp-reveal,
  .pp-fade-in {
    opacity: 1;
    transform: none;
    animation: none;
  }

  .header-benefits-track {
    animation-name: headerBenefitsMarquee !important;
    animation-duration: 60s !important;
    animation-timing-function: linear !important;
    animation-iteration-count: infinite !important;
  }
}
