/* === DESIGN SYSTEM 2.0 — MW Butik Luxury === */

:root {
  /* ── Colors (Dark — default) ── */
  --bg: #121214;
  --bg-soft: #1a1a1d;
  --bg-card: #202023;
  --bg-card-hover: #28282c;
  --bg-elevated: #2a2a2e;
  --text: #f5f1e8;
  --text-muted: #a8a096;
  --text-subtle: #7a746a;
  --gold: #d4a84b;
  --gold-hover: #c99a3e;
  --gold-muted: #b8923e;
  --gold-light: #e8d5a3;
  --cream: #f5efe0;
  --brass: #8a7a52;
  --danger: #8b3a3a;
  --danger-bg: rgba(139, 58, 58, 0.15);
  --success: #5a8f5a;
  --success-bg: rgba(90, 143, 90, 0.15);
  --surface-overlay: rgba(0, 0, 0, 0.6);
  --glass-bg: rgba(255, 255, 255, 0.04);
  --glass-border: rgba(255, 255, 255, 0.06);
  --noise: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");

  /* ── Typography — Modular Scale 1.25 ── */
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: "Cormorant Garamond", Georgia, serif;
  --font-display: "Cormorant Garamond", Georgia, serif;

  --text-xs: 0.7rem;
  --text-sm: 0.8rem;
  --text-base: 0.925rem;
  --text-lg: 1rem;
  --text-xl: 1.1rem;
  --text-2xl: 1.3rem;
  --text-3xl: 1.6rem;
  --text-4xl: 1.9rem;
  --text-5xl: 2.4rem;
  --text-6xl: 3rem;
  --text-7xl: 3.6rem;
  --text-8xl: 4.2rem;

  --leading-tight: 1.05;
  --leading-snug: 1.15;
  --leading-normal: 1.5;
  --leading-relaxed: 1.65;

  --tracking-tight: -0.02em;
  --tracking-normal: 0;
  --tracking-wide: 0.05em;
  --tracking-wider: 0.08em;
  --tracking-widest: 0.12em;

  --max-width-read: 580px;

  /* ── Spacing — 4px base scale ── */
  --space-1: 3px;
  --space-2: 6px;
  --space-3: 9px;
  --space-4: 12px;
  --space-5: 15px;
  --space-6: 18px;
  --space-8: 24px;
  --space-10: 30px;
  --space-12: 36px;
  --space-14: 42px;
  --space-16: 48px;
  --space-20: 60px;
  --space-24: 72px;
  --space-32: 96px;

  /* ── Surfaces & Shadows ── */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.25);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.3);
  --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.35);
  --shadow-glow: 0 4px 20px rgba(212, 168, 75, 0.15);
  --shadow-glow-strong: 0 4px 28px rgba(212, 168, 75, 0.25);

  /* ── Borders ── */
  --border: rgba(255, 255, 255, 0.06);
  --border-soft: rgba(255, 255, 255, 0.08);
  --border-gold: rgba(212, 168, 75, 0.25);

  /* ── Radius ── */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-full: 9999px;

  /* ── Layout ── */
  --container-w: 1200px;
  --container-narrow: 820px;
  --header-h: 60px;
  --header-h-mobile: 54px;

  /* ── Motion ── */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quart: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration-fast: 0.2s;
  --duration-normal: 0.35s;
  --duration-slow: 0.5s;
  --duration-xl: 0.8s;
  --transition: var(--duration-normal) var(--ease-out-expo);
}

/* ── Light theme ── */
.theme-light {
  --bg: #f8f6f1;
  --bg-soft: #efebe4;
  --bg-card: #ffffff;
  --bg-card-hover: #f5f2ec;
  --bg-elevated: #ffffff;
  --text: #1f1d1a;
  --text-muted: #6b655c;
  --text-subtle: #9c958a;
  --surface-overlay: rgba(0, 0, 0, 0.4);
  --glass-bg: rgba(0, 0, 0, 0.03);
  --glass-border: rgba(0, 0, 0, 0.06);
  --noise: none;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.3;
  pointer-events: none;
}

body.menu-open {
  overflow: hidden;
}

/* ── Theme toggle ── */
.theme-toggle {
  background: none;
  border: 0;
  cursor: pointer;
  color: var(--text-muted);
  padding: var(--space-1);
  display: flex;
  align-items: center;
  transition: color var(--transition), transform var(--duration-normal) var(--ease-spring);
}
.theme-toggle:hover {
  color: var(--gold);
  transform: rotate(15deg);
}
.theme-light .theme-icon-sun { display: none; }
.theme-light .theme-icon-moon { display: block; }
.theme-icon-moon { display: none; }

img {
  display: block;
  width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--gold);
}

button, input, textarea, select {
  font: inherit;
}

::selection {
  background: rgba(212, 168, 75, 0.25);
  color: var(--text);
}

/* ── Container ── */
.container {
  width: min(calc(100% - var(--space-8)), var(--container-w));
  margin: 0 auto;
}

.container-narrow {
  width: min(calc(100% - var(--space-8)), var(--container-narrow));
  margin: 0 auto;
}

/* ── Section ── */
.section {
  padding: var(--space-24) 0;
}

.section-compact {
  padding: var(--space-16) 0;
}

.section + .section {
  padding-top: 0;
}

.section-heading {
  margin-bottom: var(--space-14);
  position: relative;
}

.section-heading p {
  margin: 0;
  max-width: var(--max-width-read);
  color: var(--text-muted);
  font-size: var(--text-lg);
  line-height: var(--leading-relaxed);
}

.section-heading::after {
  content: "";
  display: block;
  width: 40px;
  height: 2px;
  background: var(--gold);
  opacity: 0.35;
  margin-top: var(--space-5);
  border-radius: 2px;
  transition: width 0.7s var(--ease-out-expo);
}

.section-heading:hover::after {
  width: 64px;
}

.section-heading h2 {
  margin: 0 0 var(--space-3);
  font-family: var(--font-display);
  font-size: var(--text-5xl);
  font-weight: 700;
  line-height: var(--leading-tight);
  letter-spacing: -0.02em;
}

.section-heading p {
  margin: 0;
  max-width: var(--max-width-read);
  color: var(--text-muted);
  font-size: var(--text-lg);
  line-height: var(--leading-relaxed);
}

.eyebrow {
  margin: 0 0 var(--space-3);
  color: var(--gold-muted);
  font-size: var(--text-xs);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 500;
}

/* ── Buttons ── */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 44px;
  padding: 0 var(--space-8);
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  font-weight: 600;
  font-size: var(--text-sm);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform var(--duration-normal) var(--ease-out-expo),
              box-shadow var(--duration-normal) var(--ease-out-expo),
              background var(--duration-normal) var(--ease-out-expo),
              border-color var(--duration-normal) var(--ease-out-expo),
              color var(--duration-normal) var(--ease-out-expo);
  -webkit-tap-highlight-color: transparent;
}

.btn:hover, .btn:focus-visible {
  transform: translateY(-1px);
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--gold);
  color: #0d0d0d;
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
  background: var(--gold-muted);
  box-shadow: var(--shadow-glow-strong);
  color: #0d0d0d;
}

.btn-secondary {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}

.btn-secondary:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(212, 168, 75, 0.08);
  box-shadow: var(--shadow-glow);
}

.btn-ghost {
  background: transparent;
  border-color: transparent;
  color: var(--text-muted);
}

.btn-ghost:hover {
  color: var(--text);
  background: var(--glass-bg);
}

.btn-full {
  width: 100%;
}

.btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

.btn-link {
  border: 0;
  background: none;
  color: var(--danger);
  padding: 0;
  cursor: pointer;
  font-weight: 600;
  font-size: var(--text-sm);
  transition: opacity var(--transition);
}

.btn-link:hover {
  opacity: 0.7;
  color: var(--danger);
}

/* ── Inputs ── */
input, select, textarea {
  width: 100%;
  border: 1px solid var(--border-soft);
  background: var(--glass-bg);
  color: var(--text);
  border-radius: var(--radius-md);
  padding: 14px var(--space-4);
  outline: none;
  font-size: var(--text-base);
  transition: border-color var(--transition), background var(--transition), box-shadow var(--transition);
}

input:hover, select:hover, textarea:hover {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
}

input:focus, select:focus, textarea:focus {
  border-color: var(--gold);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 0 3px rgba(212, 168, 75, 0.1);
}

input::placeholder, textarea::placeholder {
  color: var(--text-subtle);
}

select option {
  background: var(--bg-card);
  color: var(--text);
}

/* ── Forms ── */
label {
  display: block;
  margin-bottom: var(--space-2);
  font-weight: 500;
  font-size: var(--text-sm);
  color: var(--text-muted);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
}

.form-row {
  margin-bottom: var(--space-5);
}

.form-row.two-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

fieldset {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  margin: 0;
}

legend {
  font-weight: 600;
  padding: 0 var(--space-2);
  color: var(--text);
  font-size: var(--text-sm);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
}

.two-inline {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
}

/* ── Flash Messages ── */
.flash {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-4);
  border: 1px solid transparent;
  font-weight: 500;
  font-size: var(--text-sm);
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  animation: flash-in 0.35s var(--ease-out-expo);
}

.flash.is-dismissed {
  animation: flash-out 0.3s var(--ease-out-expo) forwards;
}

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

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

.flash-error {
  background: var(--danger-bg);
  border-color: rgba(139, 58, 58, 0.25);
  color: #e8a0a0;
}

.flash-success {
  background: var(--success-bg);
  border-color: rgba(90, 143, 90, 0.25);
  color: #a5d6a7;
}

.flash-dismiss {
  background: none;
  border: 0;
  color: inherit;
  opacity: 0.5;
  cursor: pointer;
  padding: 0;
  font-size: 18px;
  line-height: 1;
  flex-shrink: 0;
  transition: opacity 0.2s;
}

.flash-dismiss:hover {
  opacity: 1;
}

/* ── Breadcrumb ── */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  margin-bottom: var(--space-5);
  color: var(--text-subtle);
}

.breadcrumb a {
  color: var(--text-muted);
  transition: color var(--transition);
}

.breadcrumb a:hover {
  color: var(--gold);
}

.breadcrumb-sep {
  color: var(--border-soft);
}

.breadcrumb-current {
  color: var(--text);
}

/* ── Pagination ── */
.pagination {
  margin-top: var(--space-8);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  justify-content: center;
}

.pagination a, .pagination span {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 500;
  font-size: var(--text-sm);
  background: transparent;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.pagination a:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(212, 168, 75, 0.06);
}

.pagination .is-active {
  background: var(--gold);
  color: #0d0d0d;
  border-color: var(--gold);
  font-weight: 600;
}

/* ── Header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(18, 18, 20, 0.75);
  border-bottom: 1px solid var(--glass-border);
  height: var(--header-h);
  transition: height var(--duration-slow) var(--ease-out-expo),
              background var(--duration-slow) var(--ease-out-expo);
}

.site-header.is-scrolled {
  height: 60px;
  background: rgba(18, 18, 20, 0.88);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  height: var(--header-h);
  transition: height var(--duration-slow) var(--ease-out-expo);
}

.site-header.is-scrolled .header-inner {
  height: 60px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  flex-shrink: 0;
  transition: opacity var(--transition);
}

.brand:hover {
  opacity: 0.85;
}

.brand img {
  width: auto;
  height: 36px;
  object-fit: contain;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.brand strong {
  display: block;
  font-size: var(--text-lg);
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text);
}

.brand span {
  display: block;
  font-size: var(--text-xs);
  color: var(--text-subtle);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}

.main-nav a {
  color: var(--text-muted);
  transition: color var(--transition);
  white-space: nowrap;
  font-size: var(--text-sm);
  letter-spacing: 0.08em;
  font-weight: 500;
}

.main-nav a:hover, .main-nav a:focus-visible {
  color: var(--text);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.header-icon {
  display: flex;
  align-items: center;
  color: var(--text-muted);
  transition: color var(--transition);
  flex-shrink: 0;
}
.header-icon svg {
  width: 20px;
  height: 20px;
  display: block;
  flex-shrink: 0;
}
.header-icon:hover {
  color: var(--gold);
}

.cart-icon {
  position: relative;
}

.cart-badge {
  position: absolute;
  top: -6px;
  right: -8px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: var(--gold);
  color: #0d0d0d;
  font-size: 10px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
  pointer-events: none;
}

.nav-cta {
  position: relative;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-gold);
  color: var(--gold) !important;
  font-weight: 600;
  transition: background var(--transition), color var(--transition), border-color var(--transition) !important;
}

.nav-cta:hover {
  background: rgba(212, 168, 75, 0.1);
  color: var(--gold-light) !important;
  border-color: var(--gold-light);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: var(--glass-bg);
  border-radius: var(--radius-md);
  padding: 0;
  cursor: pointer;
  flex-shrink: 0;
  transition: background var(--transition);
}

.nav-toggle:hover {
  background: rgba(255, 255, 255, 0.08);
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--text);
  margin: 5px auto;
  border-radius: 1px;
  transition: transform var(--duration-normal) var(--ease-out-expo),
              opacity var(--duration-normal) var(--ease-out-expo);
}

/* ── Footer ── */
.site-footer {
  padding: var(--space-16) 0 var(--space-20);
  border-top: 1px solid var(--border);
  margin-top: var(--space-24);
  position: relative;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 1px;
  background: var(--gold);
  opacity: 0.3;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: var(--space-8);
  align-items: start;
}

.footer-copy {
  max-width: 360px;
  color: var(--text-muted);
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
}

.footer-grid h3 {
  margin: 0 0 var(--space-3);
  font-size: var(--text-sm);
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--gold);
}

.footer-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-list li {
  margin-bottom: var(--space-2);
  color: var(--text-muted);
  font-size: var(--text-sm);
}

.footer-list a {
  color: var(--text-muted);
  transition: color var(--transition);
}

.footer-list a:hover {
  color: var(--text);
}

.footer-brand {
  margin-bottom: var(--space-4);
}

/* ── Utilities ── */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  padding: 12px 20px;
  background: var(--gold);
  color: #111;
  font-weight: 700;
  border-radius: 0;
}

.skip-link:focus {
  left: 0;
  outline: none;
}

.gold-link {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

.flex-between {
  display: flex;
  justify-content: space-between;
}

.flash-wrap {
  margin-top: var(--space-4);
  margin-bottom: 0;
}

/* ── Empty states ── */
.empty-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-16) var(--space-6);
  text-align: center;
}

.empty-box h1 {
  margin-top: 0;
  font-family: var(--font-heading);
  font-size: var(--text-5xl);
  font-weight: 600;
}

.empty-box .btn {
  margin-top: var(--space-4);
}

/* ── Checkout Payment Radios ── */
.payment-option {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  margin-bottom: var(--space-3);
  cursor: pointer;
  padding: var(--space-4);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  transition: border-color var(--transition), background var(--transition);
}

.payment-option:hover {
  border-color: var(--border-soft);
  background: rgba(255, 255, 255, 0.03);
}

.payment-option input[type="radio"]:checked + span {
  color: var(--gold);
}

.payment-option.has-checked {
  border-color: var(--border-gold);
  background: rgba(212, 168, 75, 0.04);
}

.payment-option input[type="radio"] {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--gold);
}

.payment-option span {
  font-weight: 500;
  font-size: var(--text-sm);
}

.payment-option small {
  display: block;
  color: var(--text-muted);
  font-weight: 400;
  margin-top: 2px;
  font-size: var(--text-xs);
}

/* ── Orders ── */
.order-item {
  display: block;
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--border);
}

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

.order-item strong {
  color: var(--gold);
}

/* ── Mobile Nav ── */
@media (max-width: 860px) {
  .nav-toggle {
    display: block;
  }

  .main-nav {
    position: fixed;
    inset: var(--header-h) var(--space-4) auto var(--space-4);
    display: grid;
    gap: var(--space-1);
    padding: var(--space-4);
    background: rgba(18, 18, 20, 0.96);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-12px);
    transition: opacity var(--duration-normal) var(--ease-out-expo),
                transform var(--duration-normal) var(--ease-out-expo);
  }

  .main-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    z-index: 31;
  }

  .main-nav a {
    padding: var(--space-3) var(--space-3);
    border-radius: var(--radius-sm);
  }

  .main-nav form {
    padding: var(--space-1) var(--space-3);
  }

  .main-nav .theme-toggle {
    padding: var(--space-3) var(--space-3);
    border-radius: var(--radius-sm);
    justify-content: flex-start;
    width: 100%;
  }

  .site-header, .header-inner {
    height: var(--header-h-mobile);
  }

  .brand img {
    height: 30px;
  }

  .brand strong {
    font-size: var(--text-base);
  }

  .brand span {
    display: none;
  }
}

/* ── Product badges ── */
.product-thumb {
  position: relative;
  overflow: hidden;
}

.product-thumb img {
  transition: filter 0.5s ease, opacity 0.5s ease;
}

.product-thumb img.is-loading {
  filter: blur(12px);
  opacity: 0.6;
  transform: scale(1.03);
}

.product-thumb img.is-loaded {
  filter: blur(0);
  opacity: 1;
  transform: scale(1);
}

.store-card img,
.main-image,
.marquee-item img {
  transition: filter 0.5s ease, opacity 0.5s ease;
}

.store-card img.is-loading,
.main-image.is-loading,
.marquee-item img.is-loading {
  filter: blur(12px);
  opacity: 0.6;
  transform: scale(1.03);
}

.store-card img.is-loaded,
.main-image.is-loaded,
.marquee-item img.is-loaded {
  filter: blur(0);
  opacity: 1;
  transform: scale(1);
}

.product-badge {
  position: absolute;
  top: var(--space-2);
  left: var(--space-2);
  z-index: 2;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  pointer-events: none;
}

.product-badge-sale {
  background: var(--gold);
  color: #0d0d0d;
}

.product-badge-new {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
  backdrop-filter: blur(4px);
  border: 1px solid var(--border-soft);
}

/* ── Mobile menu overlay ── */
.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 29;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--duration-normal) ease;
}

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

body.menu-open {
  overflow: hidden;
}

/* ── Scroll to top ── */
.scroll-top {
  position: fixed;
  bottom: var(--space-6);
  right: var(--space-6);
  z-index: 25;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity var(--duration-normal) var(--ease-out-expo),
              transform var(--duration-normal) var(--ease-out-expo),
              background 0.2s,
              border-color 0.2s,
              color 0.2s;
  box-shadow: var(--shadow-lg);
}

.scroll-top.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.scroll-top:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: #0d0d0d;
}

@media (max-width: 640px) {
  .scroll-top {
    bottom: var(--space-4);
    right: var(--space-4);
    width: 40px;
    height: 40px;
  }
}

/* ── Size Guide Modal ── */
.size-guide-btn {
  background: none;
  border: 0;
  color: var(--gold);
  font-size: var(--text-sm);
  font-weight: 500;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(212, 168, 75, 0.3);
  transition: text-decoration-color 0.2s;
}

.size-guide-btn:hover {
  text-decoration-color: var(--gold);
}

.size-guide-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
  padding: var(--space-5);
}

.size-guide-modal.is-open {
  display: flex;
}

.size-guide-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  padding: var(--space-8);
  max-width: 520px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  animation: modal-in 0.3s var(--ease-out-expo);
}

@keyframes modal-in {
  from { opacity: 0; transform: scale(0.95) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.size-guide-panel h2 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 600;
  margin: 0 0 var(--space-2);
}

.size-guide-panel > p {
  color: var(--text-muted);
  font-size: var(--text-sm);
  margin: 0 0 var(--space-5);
}

.size-guide-close {
  float: right;
  background: none;
  border: 0;
  color: var(--text-subtle);
  font-size: 22px;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  transition: color 0.2s;
}

.size-guide-close:hover {
  color: var(--text);
}

.size-guide-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
}

.size-guide-table th {
  text-align: left;
  padding: var(--space-2) var(--space-3);
  border-bottom: 1px solid var(--border);
  font-weight: 600;
  color: var(--text-muted);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.size-guide-table td {
  padding: var(--space-2) var(--space-3);
  border-bottom: 1px solid var(--border);
  color: var(--text);
}

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

.size-guide-table td:first-child {
  font-weight: 600;
  color: var(--gold);
}

/* ── Image zoom ── */
.main-image-wrap {
  position: relative;
  overflow: hidden;
  cursor: crosshair;
}

.zoom-lens {
  position: absolute;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  background-repeat: no-repeat;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -50%);
  z-index: 5;
  box-shadow: 0 0 20px rgba(212,168,75,0.15);
  transition: opacity 0.15s ease;
}

.main-image-wrap:hover .zoom-lens {
  opacity: 1;
}

@media (max-width: 900px) {
  .zoom-lens { display: none; }
}

/* ── Recently Viewed ── */
.recent-section {
  margin-top: var(--space-12);
}

.recent-section h2 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 600;
  margin-bottom: var(--space-2);
  letter-spacing: -0.01em;
}

.recent-section h2::after {
  content: "";
  display: block;
  width: 40px;
  height: 2px;
  background: var(--gold);
  opacity: 0.35;
  margin-top: var(--space-3);
  margin-bottom: var(--space-5);
  border-radius: 2px;
}

.recent-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
}

@media (max-width: 860px) {
  .recent-grid { grid-template-columns: repeat(2, 1fr); }
}

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

/* ── Quick View Modal ── */
.quick-view-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
  padding: var(--space-5);
}

.quick-view-modal.is-open {
  display: flex;
}

.quick-view-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  padding: var(--space-6);
  max-width: 720px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  animation: modal-in 0.3s var(--ease-out-expo);
  position: relative;
}

.quick-view-close {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  background: none;
  border: 0;
  color: var(--text-subtle);
  font-size: 24px;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  z-index: 1;
  transition: color 0.2s;
}

.quick-view-close:hover {
  color: var(--text);
}

.quick-view-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
}

.quick-view-image img {
  width: 100%;
  aspect-ratio: 0.78;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

.quick-view-info h2 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 600;
  margin: 0 0 var(--space-2);
}

.quick-view-info .product-category {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  color: var(--gold);
  margin-bottom: var(--space-1);
}

.quick-view-info .price-wrap {
  margin: var(--space-3) 0;
}

.quick-view-info .price-wrap strong {
  font-size: var(--text-xl);
  color: var(--gold);
  font-weight: 600;
}

.quick-view-info .product-description {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-5);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.quick-view-form {
  margin-bottom: var(--space-2);
}

@media (max-width: 640px) {
  .quick-view-grid {
    grid-template-columns: 1fr;
  }
  .quick-view-panel {
    padding: var(--space-5);
  }
}

/* ── Share bar ── */
.share-bar {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-6);
  padding: var(--space-4) 0;
  border-top: 1px solid var(--border);
}

.share-label {
  font-size: var(--text-sm);
  color: var(--text-muted);
  font-weight: 500;
  margin-right: var(--space-1);
}

.share-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  color: var(--text-muted);
  background: transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.share-btn:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: #0d0d0d;
}

.share-copy.is-copied {
  background: var(--success);
  border-color: var(--success);
  color: #0d0d0d;
}

/* ── Product card quick view btn ── */
.product-card-actions {
  display: flex;
  gap: var(--space-2);
  flex-direction: column;
}

.quick-view-btn {
  font-size: var(--text-xs);
  padding: 0 var(--space-3);
  min-height: 36px;
}

/* ── Cart add animation ── */
.cart-fly {
  position: fixed;
  z-index: 9999;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  pointer-events: none;
  animation: cart-fly 0.6s var(--ease-out-expo) forwards;
  box-shadow: 0 4px 20px rgba(212, 168, 75, 0.3);
}

@keyframes cart-fly {
  0% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(0.3);
  }
}

/* ── Color swatches ── */
.color-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.color-swatch {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--border);
  cursor: pointer;
  padding: 0;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  position: relative;
}

.color-swatch:hover {
  transform: scale(1.12);
}

.color-swatch.is-selected {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px var(--bg-card), 0 0 0 4px var(--gold);
  transform: scale(1.1);
}

.color-swatch-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: block;
}

.color-swatch-name {
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2px 8px;
  font-size: 10px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  text-transform: capitalize;
}

.color-swatch:hover .color-swatch-name {
  opacity: 1;
}

/* ── Order timeline ── */
.order-timeline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin: var(--space-8) 0;
  padding: 0 var(--space-4);
  position: relative;
}

.order-timeline::before {
  content: "";
  position: absolute;
  top: 14px;
  left: calc(var(--space-4) + 14px);
  right: calc(var(--space-4) + 14px);
  height: 2px;
  background: var(--border);
  z-index: 0;
}

.order-timeline-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  position: relative;
  z-index: 1;
  flex: 1;
  text-align: center;
}

.order-timeline-dot {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-subtle);
  transition: background 0.3s, border-color 0.3s, color 0.3s;
}

.order-timeline-step.is-done .order-timeline-dot {
  background: var(--gold);
  border-color: var(--gold);
  color: #0d0d0d;
}

.order-timeline-step.is-current .order-timeline-dot {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212, 168, 75, 0.15);
  color: var(--gold);
}

.order-timeline-label {
  font-size: var(--text-xs);
  color: var(--text-subtle);
  font-weight: 500;
}

.order-timeline-step.is-done .order-timeline-label {
  color: var(--text);
}

.order-timeline-step.is-current .order-timeline-label {
  color: var(--gold);
  font-weight: 600;
}

@media (max-width: 520px) {
  .order-timeline {
    flex-direction: column;
    gap: var(--space-4);
    padding: 0;
  }
  .order-timeline::before {
    display: none;
  }
  .order-timeline-step {
    flex-direction: row;
    text-align: left;
    flex: none;
    width: 100%;
  }
}

/* ── Pagination enhanced ── */
.pagination a, .pagination span {
  min-width: 42px;
  height: 42px;
  font-size: var(--text-sm);
}

/* ── Responsive Common ── */
@media (max-width: 860px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .container {
    width: min(calc(100% - var(--space-5)), var(--container-w));
  }

  .section {
    padding: var(--space-16) 0;
  }

  .section-heading h2 {
    font-size: var(--text-4xl);
  }
}

@media (max-width: 640px) {
  .section {
    padding: var(--space-12) 0;
  }

  .section-heading h2 {
    font-size: var(--text-3xl);
  }

  .section-heading::after {
    margin-top: var(--space-4);
  }
}

@media (max-width: 640px) {
  .brand strong {
    font-size: var(--text-base);
  }

  .btn {
    min-height: 44px;
    padding: 0 var(--space-5);
  }

  .container {
    width: min(calc(100% - var(--space-5)), var(--container-w));
  }

  .section {
    padding: var(--space-10) 0;
  }

  .section-heading h2 {
    font-size: var(--text-3xl);
  }

  .payment-option {
    padding: var(--space-3);
  }
}

/* ── Particle canvas ── */
.particle-canvas {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
}

/* ── Floating chat widget ── */
.chat-widget-btn {
  position: fixed;
  right: var(--space-6);
  bottom: var(--space-6);
  z-index: 999;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--gold);
  color: #000;
  border: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(212, 168, 75, 0.3);
  transition: transform var(--duration-normal) var(--ease-spring), box-shadow var(--duration-normal);
}
.chat-widget-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(212, 168, 75, 0.45);
}
.chat-widget-panel {
  position: fixed;
  right: var(--space-6);
  bottom: calc(var(--space-6) + 64px);
  z-index: 999;
  width: 320px;
  max-width: calc(100vw - var(--space-8));
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  display: none;
  overflow: hidden;
}
.chat-widget-panel.is-open { display: block; }
.chat-widget-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-4) var(--space-5);
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
}
.chat-widget-header strong {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
}
.chat-widget-close {
  background: none;
  border: 0;
  color: var(--text-muted);
  font-size: var(--text-2xl);
  cursor: pointer;
  line-height: 1;
}
.chat-widget-body {
  padding: var(--space-5);
}
.chat-widget-body p {
  margin: 0 0 var(--space-4);
  color: var(--text-muted);
  font-size: var(--text-sm);
}
.chat-widget-link {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  margin-bottom: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 500;
  transition: background var(--transition), border-color var(--transition);
}
.chat-widget-link:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-soft);
  color: inherit;
}
.chat-widget-fb { color: #1877f2; }
.chat-widget-fb:hover { color: #1877f2 !important; }

@media (max-width: 520px) {
  .chat-widget-btn {
    width: 48px;
    height: 48px;
    right: var(--space-4);
    bottom: var(--space-4);
  }
  .chat-widget-panel {
    right: var(--space-4);
    bottom: calc(var(--space-4) + 56px);
  }
}
