/* ═══════════════════════════════════════════════════════════════
   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);
}

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

  --bg: #0c0c0e;
  --bg-elevated: #141418;
  --bg-soft: #1a1a1f;
  --accent: #f0ebe4;
  --accent-soft: rgba(240, 235, 228, 0.08);
  --accent-strong: #d4cfc8;
  --text: #f0ebe4;
  --text-muted: #8a8580;
  --border-subtle: rgba(240, 235, 228, 0.1);
  --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: #08080a;
  --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;
}

/* ─── 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;
}

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

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: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  background: var(--header-bg);
  border-bottom: 1px solid var(--border-subtle);
  transition:
    box-shadow var(--transition-medium),
    background var(--transition-fast),
    border-color var(--transition-fast);
}

.header.header--scrolled {
  box-shadow: var(--shadow-soft);
  border-bottom-color: transparent;
}

/* Logo & wordmark — centré, style maison de luxe */
.header-wordmark {
  margin: 0;
  grid-column: 2;
  grid-row: 1;
  justify-self: center;
  text-align: center;
  line-height: 1;
}

.header-wordmark .brand {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  text-decoration: none;
  color: inherit;
  padding: 0.1rem 0;
  transition: opacity var(--transition-fast);
}

.header-wordmark .brand:hover {
  opacity: 0.88;
}

.brand-logo-img {
  display: block;
  width: clamp(100px, 14vw, 132px);
  height: auto;
  max-height: clamp(72px, 10vw, 96px);
  object-fit: contain;
  object-position: center;
}

.header-slogan {
  display: none;
}

.modal-brand-logo-img {
  display: block;
  width: clamp(88px, 12vw, 112px);
  height: auto;
  max-height: clamp(64px, 9vw, 80px);
  object-fit: contain;
  object-position: center;
}

.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.15rem 0.25rem;
  min-width: min-content;
  position: relative;
  z-index: 2;
}

.header-icon-btn {
  box-sizing: border-box;
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  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: 21px;
  height: 21px;
  flex-shrink: 0;
  pointer-events: none;
  transition: transform var(--transition-fast);
}

.header-icon-btn:hover .header-icon-svg {
  transform: scale(1.05);
}

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

.header-account-btn.header-account-btn--logged {
  width: auto;
  min-width: 44px;
  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: 40px;
    min-width: 40px;
    max-width: 40px;
    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: 1280px;
  margin: 0 auto;
  box-sizing: border-box;
  padding: 0.5rem max(1rem, env(safe-area-inset-left, 0px)) 0.55rem max(1rem, env(safe-area-inset-right, 0px));
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-items: center;
  gap: 0.35rem 0.75rem;
}

.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: wrap;
  justify-content: center;
  padding: 0.15rem 0 0.05rem;
  border-top: 1px solid var(--border-subtle);
  margin-top: 0.15rem;
  padding-top: 0.45rem;
  max-width: min(100vw - 2rem, 52rem);
}

.header-nav-link {
  font-size: clamp(0.72rem, 0.3vw + 0.68rem, 0.8rem);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
  transition: color var(--transition-fast);
  position: relative;
}

.header-nav-link::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 50%;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width var(--transition-medium), left var(--transition-medium);
}

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

.header-nav-link:hover::after {
  width: 100%;
  left: 0;
}

.header-inner--lite {
  grid-template-rows: auto;
  padding-bottom: 0.65rem;
}

.header-inner--lite .header-wordmark {
  grid-column: 1 / -1;
}

@media (max-width: 700px) {
  .header-inner {
    padding-top: 0.4rem;
    padding-bottom: 0.45rem;
    column-gap: 0.35rem;
    row-gap: 0.4rem;
  }

  .header-wordmark {
    grid-column: 1 / -1;
    grid-row: 1;
    justify-self: center;
    z-index: 1;
    pointer-events: none;
  }

  .header-wordmark .brand {
    pointer-events: auto;
  }

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

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

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

  .brand-logo-img {
    width: clamp(88px, 22vw, 108px);
    max-height: clamp(64px, 18vw, 80px);
  }

  .header-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
    padding-top: 0.4rem;
    margin-top: 0.1rem;
    gap: 0.85rem 1rem;
    overflow-x: auto;
    flex-wrap: nowrap;
    max-width: none;
    mask-image: linear-gradient(to right, transparent, black 6%, black 94%, transparent);
    -webkit-overflow-scrolling: touch;
  }

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

.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: clamp(380px, 65vh, 520px);
    margin-bottom: 2rem;
    padding-bottom: 3.5rem;
  }

  .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 ─── */
.main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.25rem 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(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 1.75rem;
}

@media (min-width: 720px) {
  .products-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

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

.product-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  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: 0;
  transform: translateY(24px);
}

.product-card.motion-ready {
  animation: cardReveal 0.7s var(--ease-out-expo) var(--card-delay, 0s) forwards;
}

@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;
}

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

.product-image-inner {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--gallery-inner-bg);
  aspect-ratio: 4 / 5;
  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: 1.1rem 1.15rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  flex: 1;
}

.product-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 500;
  margin: 0;
  line-height: 1.3;
  letter-spacing: 0.01em;
}

.product-price {
  font-weight: 600;
  font-size: 1rem;
  color: var(--text);
  letter-spacing: 0.02em;
}

.product-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.stock-indicator {
  font-weight: 500;
  font-size: 0.72rem;
}

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

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

.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;
  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 {
  padding: 1.25rem 1.35rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-subtle);
}

.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-items {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 0.85rem 1.35rem 1rem;
}

.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.65rem 1.35rem 0.75rem;
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--text-muted);
  border-top: 1px dashed var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

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

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

.cart-footer {
  padding: 1rem 1.35rem 1.35rem;
  border-top: 1px solid var(--border-subtle);
  background: var(--cart-footer-bg);
}

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

.cart-total-row span:last-child {
  font-family: var(--font-display);
  font-size: 1.35rem;
  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.85rem;
  font-size: 0.78rem;
  line-height: 1.5;
  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-footer .btn-primary {
  padding: 0.9rem 1.25rem;
  font-size: 0.85rem;
}

/* ─── 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: auto;
}

/* ─── 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;
  background: var(--modal-bg);
  z-index: 55;
  animation: modalFadeIn 0.4s var(--ease-smooth);
}

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

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

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

.product-modal-dialog {
  width: 100%;
  max-width: none;
  height: 100%;
  margin: 0;
  background: var(--modal-dialog-bg);
  border-radius: 0;
  border: none;
  box-shadow: none;
  padding: 0;
  position: relative;
  display: flex;
  flex-direction: column;
  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: auto minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: 1rem;
  row-gap: 0.25rem;
  padding: 0.35rem max(1.25rem, env(safe-area-inset-right, 0px)) 0.3rem max(1.25rem, env(safe-area-inset-left, 0px));
  flex-shrink: 0;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--header-bg);
  backdrop-filter: blur(20px) saturate(1.3);
  -webkit-backdrop-filter: blur(20px) saturate(1.3);
  position: sticky;
  top: 0;
  z-index: 10;
}

.modal-home-btn {
  grid-column: 1;
  grid-row: 1 / -1;
  align-self: center;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color var(--transition-fast);
}

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

.product-modal-header-brand {
  grid-column: 2;
  grid-row: 1;
  justify-self: center;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-brand-home {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  -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: 2;
  justify-content: center;
  padding: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  flex-wrap: wrap;
  max-width: 100%;
}

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

@media (max-width: 640px) {
  .product-modal-header {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto auto;
    column-gap: 0.65rem;
    row-gap: 0.45rem;
    align-items: center;
  }

  .product-modal-header-brand {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
    align-self: center;
  }

  .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: center;
  }

  .modal-home-btn {
    grid-column: 1 / -1;
    grid-row: 3;
    justify-self: start;
    align-self: center;
  }

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

.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;
}

/* Premier écran : 2 colonnes */
.product-pdp-buy {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
  gap: clamp(1.25rem, 2.5vw, 2.5rem);
  align-items: start;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0.75rem max(1.25rem, env(safe-area-inset-right, 0px)) 2rem 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;
}

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

.product-pdp-carousel.product-modal-gallery {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 0.65rem;
  width: 100%;
}

.gallery-zoom-wrap {
  flex: 1;
  min-width: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--gallery-inner-bg);
  border: 1px solid var(--border-subtle);
}

.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: 0.7rem;
}

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

.product-pdp-info .product-modal-title {
  font-size: clamp(1.45rem, 1.6vw + 0.75rem, 2rem);
  margin: 0;
  line-height: 1.12;
}

.product-pdp-info .product-modal-price {
  font-size: clamp(1.35rem, 1.2vw + 0.7rem, 1.75rem);
  margin: 0;
}

.product-stock-status {
  margin: 0;
  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.15rem;
}

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

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

/* 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);
}

/* Galerie immersive — produit entier visible */
.product-pdp-immersive {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 max(1.25rem, env(safe-area-inset-left, 0px)) 2.5rem max(1.25rem, env(safe-area-inset-right, 0px));
}

.product-immersive-shot {
  margin: 0 auto;
  width: 100%;
  max-width: 920px;
  padding: clamp(1.25rem, 3vw, 2rem);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--gallery-inner-bg);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color var(--transition-medium), box-shadow var(--transition-medium);
}

.product-immersive-shot:hover {
  border-color: rgba(184, 149, 106, 0.28);
  box-shadow: var(--shadow-soft);
}

.product-immersive-shot img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: min(58vh, 560px);
  object-fit: contain;
  object-position: center;
  display: block;
  margin: 0 auto;
}

.product-immersive-shot--alt {
  max-width: 820px;
}

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

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

.product-similar-card {
  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.15rem;
  right: 1.15rem;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  z-index: 2;
}

.gallery-arrow {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--border-subtle);
  background: var(--gallery-arrow-bg);
  color: var(--gallery-arrow-color);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(8px);
  transition:
    background var(--transition-fast),
    transform var(--transition-fast),
    box-shadow var(--transition-medium);
}

.gallery-arrow-icon {
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 1;
  display: block;
}

.gallery-arrow:hover:not(:disabled) {
  background: #fff;
  box-shadow: var(--shadow-elevated);
  transform: scale(1.06);
}

.gallery-arrow:disabled {
  opacity: 0.35;
  cursor: default;
}

.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: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.product-size-btn {
  min-width: 52px;
  padding: 0.6rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: transparent;
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition:
    background var(--transition-fast),
    color var(--transition-fast),
    border-color var(--transition-fast),
    transform var(--transition-fast);
}

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

.product-size-btn.selected {
  background: var(--accent);
  color: var(--btn-primary-text);
  border-color: var(--accent);
}

[data-theme="dark"] .product-size-btn.selected {
  background: var(--gold);
  color: #0c0c0e;
  border-color: var(--gold);
}

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

.btn-add-cart {
  width: 100%;
  padding: 1rem 1.25rem;
  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.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  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%;
  padding: 0.85rem 1.25rem;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition:
    background var(--transition-fast),
    border-color var(--transition-fast),
    color var(--transition-fast);
}

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

/* ─── 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;
  animation: modalFadeIn 0.35s var(--ease-smooth);
}

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

.modal-box {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  padding: 2rem 1.75rem;
  max-width: 440px;
  width: 100%;
  position: relative;
  box-shadow: var(--shadow-elevated);
  backdrop-filter: blur(20px);
  animation: modalIn 0.45s var(--ease-out-expo);
}

@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 .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-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-panel .order-card {
  padding-bottom: 0.75rem;
}

.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 {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text);
}

.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;
}

/* ─── Footer Premium ─── */
.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.5rem 1.25rem 1.5rem;
  }

  .product-pdp-carousel.product-modal-gallery {
    flex-direction: column-reverse;
  }

  .product-pdp-carousel .gallery-main .gallery-inner {
    aspect-ratio: 4 / 5;
    max-height: min(52vh, 420px);
    min-height: 240px;
  }

  .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: none;
  }

  .gallery-dots:not(.gallery-dots--hidden) {
    display: flex;
  }

  .gallery-thumbnail {
    width: 52px;
    min-width: 52px;
    height: 52px;
  }

  .product-pdp-info {
    gap: 0.55rem;
  }

  .product-pdp-info .product-modal-title {
    font-size: clamp(1.4rem, 5vw, 1.8rem);
  }

  .product-pdp-info .product-modal-price {
    font-size: 1.25rem;
  }

  .product-specs-grid {
    grid-template-columns: 1fr;
  }

  .product-immersive-shot {
    max-width: 100%;
    padding: 1rem 1.15rem;
  }

  .product-immersive-shot img {
    max-height: min(50vh, 420px);
  }

  .product-immersive-shot--alt {
    max-width: 100%;
  }

  .product-pdp-description {
    padding: 2rem 0 1.75rem;
  }

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

  .product-size-btn {
    min-width: 54px;
    min-height: 50px;
    padding: 0.6rem 0.9rem;
    font-size: 0.92rem;
  }

  .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;
  }
}

/* ─── 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,
  .product-immersive-shot.pp-reveal,
  .pp-fade-in {
    opacity: 1;
    transform: none;
    animation: none;
  }
}
