/* ==========================================================================
   DESIGN SYSTEM & CSS VARIABLES
   CAVELL | Refined Old Money & Classic Sartorial Aesthetic
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;600;700&family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,600&family=Marcellus&family=Playfair+Display:ital,wght@0,400;0,600;0,700;0,800;1,400&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&family=Readex+Pro:wght@300;400;500;600;700&display=swap');

:root {
  /* Color Palette - High-Contrast Luxury Sartorial (Light Mode Default) */
  --bg-primary: #cec2af;          /* Strict Warm Linen/Sand */
  --bg-surface: #131E35;          /* Rich Dark Slate Navy for Cards/Surfaces */
  --bg-surface-subtle: #192644;   /* Subtle slate navy */
  --bg-canvas: #cec2af;           /* Seamless canvas integration */
  --text-primary: #0F172A;        /* Deep Midnight Navy */
  --text-secondary: #3D4451;      /* Muted slate gray-blue */
  --text-muted: #6B7280;          /* Warm stone gray */
  --border-subtle: #1E2C4A;       /* Deep Border Navy */
  --border-dark: #0F172A;
  
  /* Brand Accents & Bespoke Tailoring Details */
  --cta-bg: #0F172A;              /* Deep Midnight Navy primary CTA */
  --cta-hover: #1E293B;
  --cta-text: #FAF9F5;
  --accent-gold: #C5A880;         /* Antique muted gold */
  --accent-gold-bg: rgba(197, 168, 128, 0.15);
  --accent-camel: #C5A880;        /* Warm camel tan */
  --accent-green: #345C45;        /* Heritage British racing green */
  --accent-green-bg: #EBF2ED;
  --whatsapp-green: #25D366;
  --whatsapp-green-hover: #20BA59;
  --accent-tag: #0F172A;
  --focus-ring: rgba(197, 168, 128, 0.25);

  /* Typography Pairing */
  --font-serif: 'Playfair Display', 'Cormorant Garamond', Georgia, serif;
  --font-arabic: 'Readex Pro', -apple-system, sans-serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-price: 'Cinzel', 'Marcellus', 'Readex Pro', serif;
  --font-main: var(--font-sans);
  --font-display: var(--font-serif);

  /* Shadows & Elevations */
  --shadow-sm: 0 1px 3px 0 rgba(15, 23, 42, 0.08);
  --shadow-md: 0 4px 14px -2px rgba(15, 23, 42, 0.12), 0 2px 6px -2px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 14px 32px -4px rgba(15, 23, 42, 0.18), 0 6px 14px -4px rgba(15, 23, 42, 0.08);
  --shadow-sheet: 0 -10px 35px rgba(15, 23, 42, 0.25);

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 350ms cubic-bezier(0.16, 1, 0.3, 1);

  /* Layout sizing - Sharp Architectural Edges (0px) */
  --radius-sm: 0px;
  --radius-md: 0px;
  --radius-lg: 0px;
  --radius-full: 0px;
  --shipping-bar-height: 38px;
  --header-height: 64px;
  --mobile-checkout-height: 76px;
}

/* ==========================================================================
   DARK MODE ("Midnight Sartorial" Theme)
   ========================================================================== */
:root[data-theme="dark"],
html[data-theme="dark"],
body.dark-mode {
  --bg-primary: #0B1325;          /* Deep Oxford Midnight Navy */
  --bg-surface: #131E35;          /* Rich Dark Slate Navy */
  --bg-surface-subtle: #192644;   /* Subtle slate navy */
  --bg-canvas: #0B1325;
  --text-primary: #F5F3ED;        /* Warm Linen Cream */
  --text-secondary: #A8A29E;      /* Soft Muted Sand / Taupe */
  --text-muted: #78716C;          /* Muted warm slate */
  --border-subtle: #1E2C4A;       /* Deep Border Navy */
  --border-dark: #C5A880;         /* Antique Gold border highlight */
  
  --cta-bg: #C5A880;              /* Antique Muted Gold CTA */
  --cta-hover: #D6BD9B;
  --cta-text: #0B1325;            /* Deep navy text on gold */
  --accent-gold: #C5A880;         /* Antique Muted Gold */
  --accent-gold-bg: rgba(197, 168, 128, 0.15);
  --accent-camel: #C5A880;
  --accent-green: #34D399;
  --accent-green-bg: rgba(52, 211, 153, 0.15);
  --accent-tag: #C5A880;
  --focus-ring: rgba(197, 168, 128, 0.35);

  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 14px -2px rgba(0, 0, 0, 0.5), 0 2px 6px -2px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 14px 32px -4px rgba(0, 0, 0, 0.6), 0 6px 14px -4px rgba(0, 0, 0, 0.4);
  --shadow-sheet: 0 -10px 35px rgba(0, 0, 0, 0.6);
}

/* ==========================================================================
   RESET & SHARP ARCHITECTURAL EDGES MANDATE (ZERO BORDER-RADIUS)
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border-radius: 0px !important;
}

.live-pulse-dot {
  border-radius: 50% !important;
}

html {
  min-height: 100%;
  overflow-x: clip;
}

body {
  min-height: 100vh;
  font-family: var(--font-main);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

button, input, select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  border: none;
  background: none;
  outline: none;
}

button {
  cursor: pointer;
}

img {
  max-width: 100%;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}

/* ==========================================================================
   TOP FREE SHIPPING NOTIFICATION & DYNAMIC PROGRESS BAR
   ========================================================================== */
.free-shipping-top-bar {
  position: sticky;
  top: 0;
  height: var(--shipping-bar-height);
  background: #1B263B;
  color: #FAF9F5;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 1rem;
  border-bottom: 1px solid rgba(194, 166, 141, 0.25);
  transition: background 0.3s ease;
}

.shipping-bar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  max-width: 1200px;
}

.shipping-bar-text-group {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: #FAF9F5;
}

.shipping-icon {
  color: var(--accent-camel);
  flex-shrink: 0;
}

.shipping-progress-track {
  width: 85px;
  height: 5px;
  background: rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-full);
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
}

.shipping-progress-fill {
  height: 100%;
  width: 0%;
  background: var(--accent-camel);
  border-radius: var(--radius-full);
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 6px rgba(194, 166, 141, 0.6);
}

.free-shipping-top-bar.is-unlocked {
  background: #1C3325;
  border-bottom-color: #345C45;
}

.free-shipping-top-bar.is-unlocked .shipping-progress-fill {
  background: #4ade80;
}

/* ==========================================================================
   0. FULL-SCREEN INTRO COVER (HERO COVER)
   ========================================================================== */
.hero-intro-cover {
  min-height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #0B1325 !important;
  position: relative;
  z-index: 60;
  overflow: hidden;
  padding: 2.5rem 1.5rem;
}

.hero-intro-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
}

.hero-intro-logo-wrap {
  max-width: 520px;
  width: 86vw;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: heroLogoFadeIn 1.2s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-intro-logo {
  width: 100%;
  height: auto;
  max-height: 48vh;
  object-fit: contain;
  filter: drop-shadow(0 12px 35px rgba(0, 0, 0, 0.6));
}

.hero-scroll-cue {
  position: absolute;
  bottom: 2.2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  color: #cec2af !important;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  opacity: 0.85;
}

.hero-scroll-cue:hover {
  opacity: 1;
  color: #FFFFFF !important;
  transform: translateY(2px);
}

.scroll-cue-text {
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-family: var(--font-sans);
}

.scroll-cue-chevron {
  animation: heroChevronBounce 2s infinite ease-in-out;
}

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

@keyframes heroChevronBounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(7px);
  }
  60% {
    transform: translateY(3px);
  }
}

/* ==========================================================================
   HEADER / NAVIGATION BAR (PERMANENT MIDNIGHT DARK #0B1325)
   ========================================================================== */
.site-header {
  height: var(--header-height);
  background: #0B1325 !important;
  border-bottom: 1px solid rgba(206, 194, 175, 0.18) !important;
  position: sticky;
  top: var(--shipping-bar-height);
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.25rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

.header-corner-nav {
  display: flex;
  align-items: center;
  z-index: 2;
}

/* Sleek 3-Line Hamburger Menu Button */
.btn-header-hamburger {
  background: transparent !important;
  border: none !important;
  padding: 6px;
  cursor: pointer;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4.5px;
  width: 38px;
  height: 38px;
  border-radius: 0 !important;
  box-shadow: none !important;
  transition: opacity var(--transition-fast);
}

.btn-header-hamburger:hover {
  opacity: 0.75;
}

.hamburger-bar {
  display: block;
  width: 21px;
  height: 1.6px;
  background: #cec2af !important;
  border-radius: 0 !important;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* Dead-Center Standalone Logo Symbol */
.header-center-mark {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  z-index: 1;
  height: 100%;
}

.header-logo-icon {
  height: 36px;
  width: auto;
  max-width: 85px;
  object-fit: contain;
  transition: transform var(--transition-fast);
}

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

@media (max-width: 768px) {
  .site-header {
    padding: 0 0.85rem;
  }
  .header-logo-icon {
    height: 30px;
  }
}

/* ==========================================================================
   OFF-CANVAS SLIDE-OUT NAVIGATION DRAWER
   ========================================================================== */
.nav-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(5, 10, 20, 0.75);
  backdrop-filter: blur(5px);
  z-index: 150;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.nav-drawer-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.nav-drawer {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  width: 340px;
  max-width: 86vw;
  background: #0B1325 !important;
  border-right: 1px solid #1E2C4A;
  z-index: 160;
  display: flex;
  flex-direction: column;
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.75);
  transform: translateX(-100%);
  transition: transform var(--transition-smooth);
  border-radius: 0 !important;
}

html[dir="rtl"] .nav-drawer {
  left: auto;
  right: 0;
  border-right: none;
  border-left: 1px solid #1E2C4A;
  transform: translateX(100%);
}

.nav-drawer.is-open {
  transform: translateX(0) !important;
}

.nav-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.4rem;
  border-bottom: 1px solid #1E2C4A;
}

.nav-drawer-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.nav-drawer-logo {
  height: 26px;
  width: auto;
  object-fit: contain;
}

.nav-drawer-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: #cec2af;
}

.btn-close-drawer {
  background: #131E35 !important;
  border: 1px solid #1E2C4A !important;
  color: #cec2af !important;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 0 !important;
  transition: all var(--transition-fast);
}

.btn-close-drawer:hover {
  background: #1E2C4A !important;
  color: #FFFFFF !important;
  border-color: #C5A880 !important;
}

.nav-drawer-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.25rem 1.4rem 1.75rem 1.4rem;
  overflow-y: auto;
}

.nav-drawer-menu {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.nav-drawer-item {
  display: flex;
  flex-direction: column;
  padding: 0.9rem 1rem;
  border: 1px solid transparent;
  background: transparent;
  text-decoration: none;
  color: inherit;
  text-align: left;
  width: 100%;
  cursor: pointer;
  border-radius: 0 !important;
  transition: all var(--transition-fast);
}

html[dir="rtl"] .nav-drawer-item {
  text-align: right;
}

.nav-drawer-item:hover {
  background: #131E35;
  border-color: #1E2C4A;
  transform: translateX(4px);
}

html[dir="rtl"] .nav-drawer-item:hover {
  transform: translateX(-4px);
}

.drawer-item-title {
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 600;
  color: #cec2af;
  letter-spacing: 0.02em;
}

.drawer-item-desc {
  font-size: 0.72rem;
  color: #8C857B;
  margin-top: 3px;
  line-height: 1.35;
}

.nav-drawer-footer {
  padding-top: 1.5rem;
  border-top: 1px solid #1E2C4A;
}

.drawer-trust-tag {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.74rem;
  color: #C5A880;
  font-weight: 500;
}

.ticker-item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.ticker-dot {
  width: 4px;
  height: 4px;
  background: var(--accent-camel);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Minimalist Header Glyphs (Zero circular backgrounds, zero borders) */
.btn-header-icon {
  width: auto !important;
  height: auto !important;
  min-width: 32px;
  min-height: 32px;
  padding: 6px 8px !important;
  border-radius: 0 !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #cec2af !important;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  transition: color var(--transition-fast), opacity var(--transition-fast);
}

.btn-header-icon:hover {
  background: transparent !important;
  border: none !important;
  color: #FFFFFF !important;
  opacity: 1;
}

/* Minimalist Theme Toggle Button */
.theme-toggle-btn {
  position: relative;
  overflow: hidden;
  color: #cec2af !important;
  background: transparent !important;
  border: none !important;
  width: 32px !important;
  height: 32px !important;
}

.theme-toggle-btn:hover {
  background: transparent !important;
  border: none !important;
  color: #FFFFFF !important;
  transform: none !important;
}

.theme-icon {
  position: absolute;
  color: #cec2af !important;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
}

/* Light Mode: Moon visible, Sun hidden */
.icon-sun {
  opacity: 0;
  transform: rotate(90deg) scale(0.4);
  pointer-events: none;
  color: #cec2af !important;
}

.icon-moon {
  opacity: 1;
  transform: rotate(0deg) scale(1);
  color: #cec2af !important;
}

/* Dark Mode: Sun visible, Moon hidden */
[data-theme="dark"] .icon-sun {
  opacity: 1;
  transform: rotate(0deg) scale(1);
  color: #C5A880 !important;
}

[data-theme="dark"] .icon-moon {
  opacity: 0;
  transform: rotate(-90deg) scale(0.4);
  pointer-events: none;
  color: #cec2af !important;
}

/* Minimalist Language Toggle ('ع' / 'EN') */
#btn-lang-toggle {
  font-family: var(--font-sans) !important;
  font-weight: 700 !important;
  font-size: 0.88rem !important;
  letter-spacing: 0.05em;
  color: #cec2af !important;
  padding: 6px 8px !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

#btn-lang-toggle:hover {
  color: #FFFFFF !important;
}

.cart-counter-bubble {
  position: relative;
  background: transparent !important;
  border: none !important;
  color: #cec2af !important;
}

.cart-badge-count {
  position: absolute;
  top: -2px;
  right: -3px;
  background: #cec2af !important;
  color: #0B1325 !important;
  font-size: 0.62rem;
  font-weight: 800;
  width: 15px;
  height: 15px;
  border-radius: 0 !important;
  border: none !important;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* ==========================================================================
   APP MAIN WRAPPER (MOBILE SPLIT & DESKTOP SPLIT)
   ========================================================================== */
.app-container {
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - var(--header-height));
  position: relative;
}

/* ==========================================================================
   INTERACTIVE MANNEQUIN CANVAS (LIVE LAYERED STACK)
   ========================================================================== */
.outfit-builder-section {
  position: relative;
  z-index: 30;
  height: 46vh;
  min-height: 290px;
  max-height: 440px;
  background: var(--bg-canvas);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: height 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

.mannequin-canvas-stage {
  position: relative;
  height: 100%;
  aspect-ratio: 1792 / 2400; /* Exact 3:4.01 aspect ratio matching all assets */
  max-width: 100%;
  margin: 0 auto;
  overflow: hidden;
  background: radial-gradient(circle at 50% 45%, #DCD4C7 0%, #cec2af 100%);
  box-shadow: inset 0 0 30px rgba(27, 38, 59, 0.03);
  padding: 0;
  transition: all 0.3s ease-in-out;
}

/* Absolute Stacking Layers */
.canvas-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  pointer-events: none;
  user-select: none;
  transition: opacity var(--transition-fast) ease-in-out;
}

/* Fixed Multi-Layer Architecture (Strict z-index order) */
#base-model-layer,
.layer-base {
  z-index: 10; /* Base mannequin: main.jpeg */
}

#shoes-layer,
.layer-shoes {
  z-index: 20; /* Shoe cutouts: sh1, sh2, etc. */
}

#pants-layer,
.layer-bottom {
  z-index: 30; /* Pants cutouts: p1, p2, etc. */
}

#shirt-layer,
.layer-top {
  z-index: 40; /* Shirts/Tees cutouts: t1, t2, etc. */
}

#vest-layer,
.layer-vest {
  z-index: 50; /* Vests/Overwear cutouts: v1, v2, etc. */
}

/* Interactive Canvas Floating Elements (Always above all clothing layers) */
.canvas-ui-layer {
  position: absolute;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 0.65rem;
}

.canvas-ui-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  pointer-events: auto;
  width: 100%;
  gap: 0.5rem;
}

.canvas-badge-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  max-width: 130px;
  z-index: 5;
}

html[dir="rtl"] .canvas-badge-stack {
  align-items: flex-end;
}

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(27, 38, 59, 0.88);
  backdrop-filter: blur(8px);
  color: #FAF9F5;
  padding: 3px 9px;
  border-radius: var(--radius-full);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: 1px solid rgba(194, 166, 141, 0.3);
  white-space: nowrap;
}

.live-pulse-dot {
  width: 6px;
  height: 6px;
  background: #22C55E;
  border-radius: 50%;
  box-shadow: 0 0 8px #22C55E;
  animation: pulse-dot 1.8s infinite;
}

@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.7; }
}

/* Active item tags: vertical stack along side flank / empty margin */
.equipped-tags-list {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
  max-width: 130px;
}

html[dir="rtl"] .equipped-tags-list {
  align-items: flex-end;
}

.layer-tag {
  font-size: 0.62rem;
  font-weight: 600;
  background: rgba(250, 249, 245, 0.94);
  backdrop-filter: blur(6px);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.layer-tag .tag-remove-btn {
  color: var(--text-muted);
  display: flex;
  align-items: center;
  cursor: pointer;
}

.layer-tag .tag-remove-btn:hover {
  color: #EF4444;
}

.canvas-tools-group {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.btn-canvas-tool {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-full);
  background: rgba(250, 249, 245, 0.95);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  transition: all var(--transition-fast);
  position: relative;
}

.btn-canvas-tool:hover {
  background: #FFFFFF;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-canvas-tool.ig-btn {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  color: #FFFFFF;
  border: none;
}

/* Bottom floating look price pill removed to ensure full head-to-toe model visibility */
.canvas-ui-bottom {
  display: none !important;
}

.look-price-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(27, 38, 59, 0.92);
  backdrop-filter: blur(12px);
  color: #FAF9F5;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(194, 166, 141, 0.25);
  box-shadow: 0 4px 15px rgba(27, 38, 59, 0.15);
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  transition: transform var(--transition-fast);
}

.look-price-badge:hover {
  transform: scale(1.03);
}

.look-price-label {
  color: var(--accent-camel);
  font-weight: 500;
  text-transform: uppercase;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
}

.look-price-val {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 0.92rem;
  color: #FAF9F5;
}

.look-price-savings {
  background: var(--accent-green);
  color: #FFFFFF;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: var(--radius-full);
}

/* ==========================================================================
   CATALOG & MARKETPLACE SECTION (SCROLLABLE)
   ========================================================================== */
.marketplace-section {
  flex: 1;
  background: var(--bg-primary);
  display: flex;
  flex-direction: column;
  padding-bottom: calc(var(--mobile-checkout-height) + 1.5rem);
}

/* Category Filter Bar */
.category-filter-wrapper {
  position: sticky;
  top: calc(var(--shipping-bar-height) + var(--header-height));
  z-index: 25;
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.75rem 1rem;
}

.category-pills-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.category-pills-bar::-webkit-scrollbar {
  display: none;
}

.pill-filter {
  flex-shrink: 0;
  padding: 7px 16px;
  border-radius: 0 !important;
  font-size: 0.82rem;
  font-weight: 600;
  background: #131E35 !important;
  border: 1px solid #1E2C4A !important;
  color: #cec2af !important;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.pill-filter:hover {
  border-color: #C5A880 !important;
  color: #FFFFFF !important;
}

.pill-filter.active {
  background: #0B1325 !important;
  border-color: #C5A880 !important;
  color: #C5A880 !important;
  font-weight: 700;
}

/* Brand Ticker / Filter Strip */
.brand-filter-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1rem 0.25rem 1rem;
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.catalog-heading-wrap {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.catalog-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-primary);
}

.catalog-count {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.sort-select-wrapper {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.sort-select {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-primary);
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 2px 4px;
}

/* ==========================================================================
   PRODUCT CARDS GRID
   ========================================================================== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  padding: 0.75rem 1rem;
}

.product-card {
  background: #131E35 !important;
  border-radius: 0 !important;
  border: 1px solid #1E2C4A !important;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all var(--transition-normal);
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(11, 19, 37, 0.12);
}

.product-card:hover {
  border-color: #C5A880 !important;
  box-shadow: 0 8px 24px rgba(11, 19, 37, 0.25);
  transform: translateY(-2px);
}

/* Active indicator (subtle border ring when item is equipped) */
.product-card.is-equipped {
  border-color: #C5A880 !important;
  box-shadow: 0 0 0 2px #C5A880 !important;
}

.card-image-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1792 / 2400; /* Match asset ratio 3:4 */
  background: #0B1325 !important;
  overflow: hidden;
  border-radius: 0 !important;
}

.card-product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-smooth);
}

.product-card:hover .card-product-img {
  transform: scale(1.03);
}

/* Badges on card */
.card-badge-tag {
  position: absolute;
  top: 8px;
  left: 8px;
  background: #0B1325 !important;
  backdrop-filter: blur(4px);
  color: #cec2af !important;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 8px;
  border-radius: 0 !important;
  border: 1px solid rgba(206, 194, 175, 0.3) !important;
}

.equipped-check-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 24px;
  height: 24px;
  background: #C5A880 !important;
  color: #0B1325 !important;
  border-radius: 0 !important;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  animation: pop-in 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.product-card.is-equipped .equipped-check-badge {
  display: flex;
}

@keyframes pop-in {
  0% { transform: scale(0.6); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.card-tryon-overlay-btn {
  position: absolute;
  bottom: 8px;
  left: 8px;
  right: 8px;
  background: #0B1325 !important;
  backdrop-filter: blur(6px);
  color: #cec2af !important;
  border: 1px solid #1E2C4A !important;
  border-radius: 0 !important;
  padding: 7px;
  font-size: 0.75rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  opacity: 0.95;
  transition: all var(--transition-fast);
}

.product-card.is-equipped .card-tryon-overlay-btn,
.product-card:hover .card-tryon-overlay-btn {
  background: #C5A880 !important;
  color: #0B1325 !important;
  border-color: #C5A880 !important;
}

.card-body {
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-brand {
  font-size: 0.65rem;
  font-weight: 700;
  color: #C5A880 !important;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 2px;
}

.card-title {
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.35;
  color: #cec2af !important;
  margin-bottom: 0.45rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 2.25rem;
}

.card-price-row {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  margin-top: auto;
  margin-bottom: 0.45rem;
}

.card-price-current {
  font-family: var(--font-serif);
  font-size: 0.98rem;
  font-weight: 700;
  color: #cec2af !important;
}

.card-price-original {
  font-family: var(--font-serif);
  font-size: 0.74rem;
  color: #8C857B !important;
  text-decoration: line-through;
}

.card-discount-tag {
  font-size: 0.65rem;
  font-weight: 700;
  color: #34D399 !important;
}

.card-sizes-row {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-wrap: wrap;
}

.size-mini-chip {
  font-size: 0.65rem;
  padding: 2px 6px;
  background: #0B1325 !important;
  border: 1px solid #1E2C4A !important;
  border-radius: 0 !important;
  color: #A8A29E !important;
}

/* ==========================================================================
   MOBILE BOTTOM FIXED CHECKOUT BAR
   ========================================================================== */
.mobile-checkout-sticky-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--mobile-checkout-height);
  background: #0B1325 !important;
  backdrop-filter: blur(16px);
  border-top: 1px solid rgba(206, 194, 175, 0.2) !important;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.4);
  z-index: 45;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
}

.mobile-summary-col {
  display: flex;
  flex-direction: column;
}

.mobile-items-counter {
  font-size: 0.72rem;
  color: #A8A29E !important;
  font-weight: 500;
}

.mobile-total-price {
  font-size: 1.15rem;
  font-weight: 700;
  color: #cec2af !important;
  letter-spacing: -0.01em;
}

.btn-buy-complete-fit {
  background: #C5A880 !important;
  color: #0B1325 !important;
  font-family: var(--font-main);
  font-size: 0.9rem;
  font-weight: 700;
  padding: 0.8rem 1.35rem;
  border-radius: 0 !important;
  border: 1px solid #C5A880 !important;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  transition: all var(--transition-fast);
}

.btn-buy-complete-fit:hover {
  background: #D6BD9B !important;
  transform: translateY(-1px);
}

.btn-buy-complete-fit:active {
  transform: translateY(1px);
}

/* ==========================================================================
   DESKTOP COMPACT FIT ACTION BAR (DOCKED AT BOTTOM OF BUILDER PANEL)
   ========================================================================== */
.desktop-fit-summary-panel {
  display: none; /* Only visible in desktop 2-col mode */
}

.compact-action-info {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  min-width: 0;
  flex: 1;
}

.compact-items-strip {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  overflow: hidden;
}

.compact-count-badge {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-primary);
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-subtle);
  padding: 2px 7px;
  border-radius: var(--radius-full);
  white-space: nowrap;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}

.compact-chips-container {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  white-space: nowrap;
}

.compact-chips-container::-webkit-scrollbar {
  display: none;
}

.compact-item-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: #F3F4F6;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 2px 7px 2px 8px;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-primary);
  transition: all var(--transition-fast);
}

.compact-item-chip:hover {
  background: #E5E7EB;
}

.compact-item-chip.base-chip {
  color: var(--text-muted);
  background: transparent;
  border-style: dashed;
}

.chip-title {
  white-space: nowrap;
}

.chip-del-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 0.82rem;
  line-height: 1;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color var(--transition-fast);
}

.chip-del-btn:hover {
  color: #EF4444;
}

.compact-total-block {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
}

.compact-total-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
}

.compact-total-value {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.compact-buy-fit-btn {
  width: auto !important;
  flex-shrink: 0;
  background: var(--cta-bg);
  color: var(--cta-text);
  font-family: var(--font-main);
  font-weight: 700;
  font-size: 0.88rem;
  padding: 0.75rem 1.35rem;
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  border: 1px solid rgba(194, 166, 141, 0.3);
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(27, 38, 59, 0.2);
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.compact-buy-fit-btn:hover {
  background: var(--cta-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(27, 38, 59, 0.28);
}

.compact-buy-fit-btn:active {
  transform: translateY(1px);
}

/* ==========================================================================
   MODALS & BOTTOM SHEET (SIZE SELECTOR & COMPLETE FIT CHECKOUT)
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(6px);
  z-index: 100;
  display: flex;
  align-items: flex-end; /* Bottom sheet on mobile */
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.modal-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.bottom-sheet-container {
  width: 100%;
  max-width: 540px;
  max-height: 90vh;
  background: var(--bg-surface);
  border-top-left-radius: var(--radius-lg);
  border-top-right-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(100%);
  transition: transform var(--transition-smooth);
}

.modal-backdrop.is-open .bottom-sheet-container {
  transform: translateY(0);
}

.sheet-handle-bar {
  width: 40px;
  height: 4px;
  background: var(--border-subtle);
  border-radius: var(--radius-full);
  margin: 0.6rem auto 0.2rem auto;
}

.sheet-header {
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
}

.sheet-header-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
}

.sheet-header-subtitle {
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.btn-close-sheet {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  background: var(--bg-surface-subtle);
  transition: all var(--transition-fast);
}

.btn-close-sheet:hover {
  background: var(--border-subtle);
  color: var(--text-primary);
}

.sheet-body {
  padding: 1rem 1.25rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* Individual Fit Piece Size Selector Card */
.piece-size-card {
  display: flex;
  gap: 0.85rem;
  background: var(--bg-surface-subtle);
  padding: 0.85rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.piece-thumb {
  width: 64px;
  height: 80px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background: #E5E7EB;
  flex-shrink: 0;
}

.piece-details {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.piece-brand {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.piece-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.piece-price {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.piece-size-selector {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.size-btn-pill {
  min-width: 32px;
  height: 30px;
  padding: 0 6px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.size-btn-pill:hover {
  border-color: var(--text-primary);
}

.size-btn-pill.selected {
  background: var(--text-primary);
  color: #FFFFFF;
  border-color: var(--text-primary);
}

.piece-size-select {
  height: 32px;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  outline: none;
  transition: border-color var(--transition-fast);
}

.piece-size-select:focus {
  border-color: var(--text-primary);
}

/* Delivery & Promo Box */
.sheet-delivery-card {
  background: #F0FDF4;
  border: 1px solid #BBF7D0;
  border-radius: var(--radius-md);
  padding: 0.85rem;
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
}

.sheet-delivery-card svg {
  color: var(--accent-green);
  flex-shrink: 0;
  margin-top: 2px;
}

.delivery-card-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: #14532D;
}

.delivery-card-desc {
  font-size: 0.75rem;
  color: #166534;
  line-height: 1.35;
}

/* Promo Code Input */
.promo-input-group {
  display: flex;
  gap: 0.5rem;
}

.input-promo {
  flex: 1;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.6rem 0.85rem;
  font-size: 0.82rem;
  text-transform: uppercase;
}

.input-promo:focus {
  border-color: var(--text-primary);
}

.btn-apply-promo {
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-subtle);
  padding: 0 1rem;
  border-radius: var(--radius-md);
  font-size: 0.8rem;
  font-weight: 600;
  transition: all var(--transition-fast);
}

.btn-apply-promo:hover {
  background: var(--text-primary);
  color: #FFFFFF;
  border-color: var(--text-primary);
}

/* Sheet Order Summary */
.sheet-summary-box {
  background: var(--bg-surface-subtle);
  border-radius: var(--radius-md);
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.sheet-summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.sheet-summary-row.total {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  padding-top: 0.5rem;
  border-top: 1px dashed var(--border-subtle);
}

/* Trust Badges in Sheet */
.sheet-trust-badges {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border-subtle);
}

.sheet-badge-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.25rem;
}

.sheet-badge-col svg {
  color: var(--text-primary);
}

.sheet-badge-text {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-secondary);
  line-height: 1.2;
}

/* Sheet Footer */
.sheet-footer {
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-surface);
}

.btn-checkout-confirm {
  width: 100%;
  background: var(--cta-bg);
  color: var(--cta-text);
  font-family: var(--font-main);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.95rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(194, 166, 141, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 4px 14px rgba(27, 38, 59, 0.2);
  transition: all var(--transition-fast);
}

.btn-checkout-confirm:hover {
  background: var(--cta-hover);
  transform: translateY(-1px);
}

.btn-checkout-confirm.is-loading {
  pointer-events: none;
  opacity: 0.85;
}

.spinner-inline {
  width: 17px;
  height: 17px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #FFFFFF;
  border-radius: 50%;
  animation: spin-inline 0.75s linear infinite;
  display: inline-block;
  vertical-align: middle;
}

@keyframes spin-inline {
  to { transform: rotate(360deg); }
}

.sheet-footer-actions {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  width: 100%;
}

.btn-checkout-whatsapp {
  width: 100%;
  background: var(--whatsapp-green);
  color: #FFFFFF;
  font-family: var(--font-main);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.9rem 1.25rem;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
  transition: all var(--transition-fast);
  cursor: pointer;
  text-decoration: none;
  border: none;
}

.btn-checkout-whatsapp:hover {
  background: var(--whatsapp-green-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

.btn-checkout-cod {
  width: 100%;
  background: var(--cta-bg);
  color: var(--cta-text);
  font-family: var(--font-main);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 1px solid rgba(194, 166, 141, 0.3);
  transition: all var(--transition-fast);
  cursor: pointer;
}

.btn-checkout-cod:hover {
  background: var(--cta-hover);
  transform: translateY(-1px);
}

/* ==========================================================================
   CHECKOUT FAST FORM (CASH ON DELIVERY & DETAILS MODAL)
   ========================================================================== */
.checkout-form-grid {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.form-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.form-input {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.65rem 0.85rem;
  font-size: 0.85rem;
  transition: border-color var(--transition-fast);
}

.form-input:focus {
  border-color: var(--text-primary);
}

.payment-method-selector {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
}

.payment-option-card {
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.payment-option-card.selected {
  border-color: var(--text-primary);
  background: var(--bg-surface-subtle);
}

.payment-title {
  font-size: 0.8rem;
  font-weight: 700;
}

.payment-desc {
  font-size: 0.68rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   ORDER CONFIRMATION CELEBRATION MODAL
   ========================================================================== */
.success-card {
  text-align: center;
  padding: 1.5rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.success-icon-wrap {
  width: 60px;
  height: 60px;
  background: #DCFCE7;
  color: #16A34A;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  animation: pop-in 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.success-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.success-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  max-width: 320px;
  margin-bottom: 1.25rem;
  line-height: 1.4;
}

.order-box-receipt {
  width: 100%;
  background: var(--bg-surface-subtle);
  border: 1px dashed var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem;
  margin-bottom: 1.25rem;
  text-align: left;
}

.receipt-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  margin-bottom: 0.35rem;
  color: var(--text-secondary);
}

.receipt-row.bold {
  font-weight: 700;
  color: var(--text-primary);
}

/* ==========================================================================
   INSTAGRAM SHARE MODAL
   ========================================================================== */
.ig-share-preview-card {
  background: #121212;
  color: #FFFFFF;
  border-radius: var(--radius-lg);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 1rem;
  box-shadow: var(--shadow-lg);
}

.ig-canvas-thumb {
  width: 180px;
  aspect-ratio: 1792 / 2400;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  background: #FFFFFF;
  margin-bottom: 0.75rem;
}

.ig-canvas-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.ig-fit-caption {
  font-size: 0.8rem;
  color: #E5E7EB;
  text-align: center;
}

.btn-ig-action-row {
  display: flex;
  gap: 0.5rem;
  width: 100%;
}

.btn-ig-action {
  flex: 1;
  padding: 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  transition: all var(--transition-fast);
}

.btn-ig-action.primary {
  background: var(--cta-bg);
  color: #FFFFFF;
  border-color: var(--cta-bg);
}

/* ==========================================================================
   TOAST NOTIFICATION
   ========================================================================== */
.toast-notice {
  position: fixed;
  bottom: 85px;
  top: auto;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #0B1325;
  border: 1px solid rgba(206, 194, 175, 0.25);
  backdrop-filter: blur(10px);
  color: #cec2af;
  padding: 8px 18px;
  border-radius: 0px !important;
  font-size: 0.82rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  opacity: 0;
  pointer-events: none;
  z-index: 200;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* ==========================================================================
   FLOATING WHATSAPP SUPPORT WIDGET (DOCKED BOTTOM-RIGHT)
   ========================================================================== */
.floating-whatsapp-widget,
html[dir="rtl"] .floating-whatsapp-widget {
  position: fixed !important;
  bottom: 85px !important;
  right: 16px !important;
  left: auto !important;
  z-index: 999 !important;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  transition: transform var(--transition-normal), opacity var(--transition-fast);
}

body:has(.modal-backdrop.is-open) .floating-whatsapp-widget {
  opacity: 0 !important;
  pointer-events: none !important;
}

@media (min-width: 1024px) {
  .floating-whatsapp-widget,
  html[dir="rtl"] .floating-whatsapp-widget {
    bottom: 24px !important;
    right: 24px !important;
    left: auto !important;
  }
}

.whatsapp-btn-circle {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--whatsapp-green);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 18px rgba(37, 211, 102, 0.45);
  position: relative;
  transition: all var(--transition-fast);
}

.floating-whatsapp-widget:hover .whatsapp-btn-circle {
  transform: scale(1.08);
  background: var(--whatsapp-green-hover);
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.6);
}

.whatsapp-pulse-ring {
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 2px solid var(--whatsapp-green);
  animation: wa-pulse 2.2s infinite cubic-bezier(0.4, 0, 0.6, 1);
  pointer-events: none;
}

@keyframes wa-pulse {
  0% { transform: scale(0.95); opacity: 0.9; }
  60% { transform: scale(1.35); opacity: 0; }
  100% { transform: scale(1.35); opacity: 0; }
}

.whatsapp-tooltip {
  background: rgba(18, 18, 18, 0.92);
  backdrop-filter: blur(8px);
  color: #FFFFFF;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-md);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translateX(6px);
  transition: all var(--transition-fast);
}

.floating-whatsapp-widget:hover .whatsapp-tooltip {
  opacity: 1;
  transform: translateX(0);
}

/* ==========================================================================
   DESKTOP & TABLET RESPONSIVE LAYOUT (≥ 769px)
   42% Sticky Left Column / 58% Scrollable Right Column
   ========================================================================== */
@media (min-width: 769px) {
  .mobile-sticky-header {
    display: contents;
  }

  .mobile-mannequin-toggle-strip {
    display: none !important;
  }

  .app-container {
    flex-direction: row;
    max-width: 1440px;
    margin: 0 auto;
    width: 100%;
    padding: 1.25rem 1.5rem;
    gap: 2rem;
    min-height: calc(100vh - var(--header-height));
  }

  /* Outfit Builder Column: Fixed 42% Sticky Panel / 58% Catalog */
  .outfit-builder-section {
    width: 42%;
    position: sticky;
    top: calc(var(--shipping-bar-height) + var(--header-height) + 1rem);
    height: calc(100vh - var(--shipping-bar-height) - var(--header-height) - 2rem);
    max-height: none !important;
    min-height: 580px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-subtle);
    background: var(--bg-surface);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.5rem;
    overflow: hidden;
    z-index: 20;
  }

  .outfit-builder-section::-webkit-scrollbar {
    display: none;
  }

  .mannequin-canvas-stage {
    width: 100%;
    flex: 1 1 auto;
    min-height: 0;
    height: 100%;
    max-height: none;
    aspect-ratio: 1792 / 2400;
    border-radius: var(--radius-md);
    background: radial-gradient(circle at 50% 45%, #FAF9F5 0%, #EFECE4 95%);
    box-shadow: inset 0 0 25px rgba(27, 38, 59, 0.03);
    margin: 0 auto;
    padding: 0;
    position: relative;
    overflow: hidden;
  }

  /* Hide floating bottom price pill on desktop since docked action bar is right beneath */
  .canvas-ui-bottom {
    display: none;
  }

  /* Desktop Fit Summary Action Bar docked right below canvas */
  .desktop-fit-summary-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    flex-shrink: 0;
    margin-top: 0;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    background: var(--bg-surface);
    box-shadow: 0 4px 14px rgba(27, 38, 59, 0.04);
    gap: 0.85rem;
  }

  /* Right Column: 58% Full Marketplace Catalog */
  .marketplace-section {
    width: 58%;
    padding-bottom: 3rem;
  }

  .category-filter-wrapper {
    position: sticky;
    top: calc(var(--shipping-bar-height) + var(--header-height));
    background: var(--bg-primary);
    padding: 0 0 1rem 0;
    z-index: 25;
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    padding: 1rem 0;
  }

  /* Hide Mobile Bottom Bar on Desktop & Tablet */
  .mobile-checkout-sticky-bar {
    display: none;
  }

  /* Desktop Centered Modal instead of bottom sheet */
  .modal-backdrop {
    align-items: center;
  }

  .bottom-sheet-container {
    border-radius: var(--radius-lg);
    transform: scale(0.95);
    opacity: 0;
    transition: all var(--transition-normal);
  }

  .modal-backdrop.is-open .bottom-sheet-container {
    transform: scale(1);
    opacity: 1;
  }

  .sheet-handle-bar {
    display: none;
  }
}

@media (min-width: 1024px) {
  .site-header {
    padding: 0 3rem;
  }

  .header-trust-ticker {
    display: flex;
  }

  .app-container {
    padding: 1.5rem 2rem;
    gap: 2.5rem;
  }
}

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

/* ==========================================================================
   UNIFIED STICKY MOBILE HEADER (< 768px)
   Compact Mannequin + Category Bar Docked at top: 0
   ========================================================================== */
@media (max-width: 768px) {
  /* Header & Shipping bar scroll away naturally to maximize screen real estate */
  .free-shipping-top-bar {
    position: relative;
    top: auto;
  }

  .site-header {
    position: relative;
    top: auto;
  }

  /* Unified Sticky Header Container */
  .mobile-sticky-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--bg-primary);
    width: 100%;
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05);
  }

  /* Mannequin Section within Sticky Header */
  .outfit-builder-section {
    position: relative;
    top: auto;
    width: 100%;
    height: 46vh;
    min-height: 300px;
    max-height: 420px;
    background: var(--bg-canvas);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: height 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
    border-bottom: 1px solid var(--border-subtle);
    margin: 0;
    padding: 0;
  }

  /* Mobile Collapsed State (Compact State B: ~120px-130px) */
  .outfit-builder-section.is-collapsed {
    height: 125px !important;
    min-height: 125px !important;
    max-height: 125px !important;
    cursor: pointer;
    box-shadow: none;
  }

  .outfit-builder-section.is-collapsed .mannequin-canvas-stage {
    height: 100%;
    aspect-ratio: 1792 / 2400;
  }

  .outfit-builder-section.is-collapsed .equipped-tags-list {
    display: none !important;
  }

  .outfit-builder-section.is-collapsed .live-pill {
    transform: scale(0.8);
    transform-origin: top right;
  }

  .outfit-builder-section.is-collapsed .canvas-tools-group {
    transform: scale(0.8);
    transform-origin: top left;
  }

  /* Mobile Mannequin Two-State Toggle Controller Bar */
  .mobile-mannequin-toggle-strip {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    background: #0B1325;
    border-top: 1px solid rgba(206, 194, 175, 0.12);
    border-bottom: 1px solid rgba(206, 194, 175, 0.18);
    padding: 5px 12px;
    cursor: pointer;
    user-select: none;
    z-index: 10;
    transition: background-color 0.2s ease;
  }

  .mobile-mannequin-toggle-strip:hover {
    background: #111C35;
  }

  .btn-mannequin-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    background: transparent;
    border: none;
    color: #cec2af;
    font-family: inherit;
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    padding: 3px 10px;
    cursor: pointer;
    border-radius: 0px !important;
    transition: color 0.2s ease, opacity 0.2s ease;
  }

  .btn-mannequin-toggle:hover {
    color: #E2D9CC;
    opacity: 0.95;
  }

  .btn-mannequin-toggle .toggle-indicator-icon {
    font-size: 0.65rem;
    line-height: 1;
    color: #cec2af;
    display: inline-block;
  }

  .btn-mannequin-toggle .toggle-indicator-text {
    line-height: 1;
    color: #cec2af;
  }

  /* Category Filter Wrapper in Natural Flow directly under mannequin */
  .category-filter-wrapper {
    position: relative;
    top: auto;
    z-index: 2;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-subtle);
    padding: 0.45rem 0.75rem;
    width: 100%;
    flex-shrink: 0;
    margin: 0;
  }

  .category-pills-bar {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding: 2px 0;
  }

  .category-pills-bar::-webkit-scrollbar {
    display: none;
  }

  .marketplace-section {
    width: 100%;
    padding-top: 0;
  }
}

/* ==========================================================================
   RTL (ARABIC) SUPPORT
   ========================================================================== */
html[dir="rtl"] {
  font-family: var(--font-arabic);
}

html[dir="rtl"] .card-badge-tag {
  left: auto;
  right: 8px;
}

html[dir="rtl"] .equipped-check-badge {
  right: auto;
  left: 8px;
}

html[dir="rtl"] .cart-badge-count {
  right: auto;
  left: -4px;
}

html[dir="rtl"] .btn-canvas-tool.ig-btn {
  transform: none;
}

/* ==========================================================================
   ENHANCEMENTS: EXCHANGE BADGE, CARD DUAL ACTIONS, SIZE GUIDE & DYNAMIC SHIPPING
   ========================================================================== */

/* 1. Header 14-Day Exchange Badge */
.header-exchange-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--accent-gold-bg);
  border: 1px solid rgba(158, 128, 80, 0.3);
  color: #5C4318;
  font-size: 0.74rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  white-space: nowrap;
  letter-spacing: 0.01em;
  transition: all var(--transition-fast);
}

.header-exchange-badge:hover {
  background: #EFE6D5;
  border-color: rgba(158, 128, 80, 0.45);
}

@media (max-width: 768px) {
  .header-exchange-badge {
    font-size: 0.65rem;
    padding: 3px 8px;
    max-width: 170px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

/* 2. Product Card Dual Actions */
.card-actions-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  margin-top: 0.35rem;
  padding-top: 0.45rem;
  border-top: 1px dashed var(--border-subtle);
}

.card-sizes-chips {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  flex-wrap: wrap;
}

.btn-card-add-cart {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  background: #0B1325 !important;
  color: #cec2af !important;
  border: 1px solid #1E2C4A !important;
  border-radius: 0 !important;
  padding: 4px 10px;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
  font-family: var(--font-main);
}

.btn-card-add-cart:hover {
  background: #C5A880 !important;
  color: #0B1325 !important;
  border-color: #C5A880 !important;
  transform: translateY(-1px);
}

/* 3. Mannequin Reset Button Enhancement */
.btn-canvas-tool.btn-canvas-reset {
  color: #B91C1C;
}

.btn-canvas-tool.btn-canvas-reset:hover {
  background: #FEE2E2;
  border-color: #FCA5A5;
  color: #991B1B;
}

/* 4. Size Guide Modal & Trigger */
.sheet-sub-actions-bar {
  display: flex;
  justify-content: flex-end;
  padding: 0.35rem 1.25rem 0.6rem 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
}

.btn-size-guide-trigger {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 0.75rem;
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
  padding: 2px 6px;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: color var(--transition-fast);
}

.btn-size-guide-trigger:hover {
  color: var(--accent-gold);
}

#modal-size-guide,
#modal-quick-size-select,
#modal-checkout-address {
  z-index: 150;
  align-items: center;
}

@media (max-width: 768px) {
  #modal-size-guide,
  #modal-quick-size-select,
  #modal-checkout-address {
    align-items: flex-end;
  }
}

#modal-checkout-address .bottom-sheet-container {
  max-width: 520px;
  width: 94%;
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 60px rgba(27, 38, 59, 0.25);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  transform: translateY(0) scale(1);
}

.size-guide-modal-container {
  max-width: 520px;
  width: 92%;
  background: var(--bg-surface) !important;
  border-radius: var(--radius-lg) !important;
  box-shadow: 0 25px 60px rgba(27, 38, 59, 0.25);
  border: 1px solid var(--border-subtle);
  transform: translateY(0) scale(1) !important;
}

.size-guide-table-wrap {
  overflow-x: auto;
  margin-bottom: 1rem;
}

.size-guide-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
  text-align: center;
}

.size-guide-table th {
  background: var(--bg-surface-subtle);
  color: var(--text-primary);
  font-weight: 700;
  padding: 8px 10px;
  border: 1px solid var(--border-subtle);
}

.size-guide-table td {
  padding: 8px 10px;
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

.size-guide-table tbody tr:hover {
  background: rgba(158, 128, 80, 0.05);
}

.size-guide-tip {
  display: flex;
  gap: 0.5rem;
  background: var(--accent-gold-bg);
  border: 1px solid rgba(158, 128, 80, 0.25);
  color: #5C4318;
  font-size: 0.78rem;
  line-height: 1.45;
  padding: 10px 14px;
  border-radius: var(--radius-md);
}

/* 5. Quick Size Modal for Add to Cart */
.quick-size-modal-container {
  max-width: 420px;
  width: 92%;
  background: var(--bg-surface) !important;
  border-radius: var(--radius-lg) !important;
  box-shadow: 0 25px 60px rgba(27, 38, 59, 0.25);
  border: 1px solid var(--border-subtle);
  transform: translateY(0) scale(1) !important;
}

.quick-size-product-preview {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: var(--bg-surface-subtle);
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
}

.quick-size-thumb {
  width: 46px;
  height: 58px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background: #E5E7EB;
}

.quick-size-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.quick-size-brand {
  font-size: 0.65rem;
  text-transform: uppercase;
  color: var(--accent-gold);
  font-weight: 700;
  letter-spacing: 0.08em;
}

.quick-size-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-primary);
}

.quick-size-price {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
}

.quick-size-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

.quick-size-chips-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
}

.quick-size-chip-btn {
  background: var(--bg-surface);
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 10px;
  font-family: var(--font-main);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-primary);
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: center;
}

.quick-size-chip-btn:hover {
  background: var(--cta-bg);
  color: var(--cta-text);
  border-color: var(--cta-bg);
  transform: translateY(-1px);
}

/* 6. Dynamic Shipping Calculation Breakdown in Checkout */
.checkout-order-summary-box {
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: 0.5rem;
}

.checkout-order-summary-box .summary-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.checkout-order-summary-box .summary-line.total-due {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-primary);
  border-top: 1px dashed var(--border-subtle);
  padding-top: 0.45rem;
  margin-top: 0.2rem;
}

.shipping-eta-wrap {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.shipping-eta-tag {
  font-size: 0.68rem;
  font-weight: 600;
  background: var(--accent-green-bg);
  color: var(--accent-green);
  padding: 2px 7px;
  border-radius: var(--radius-full);
}

/* ==========================================================================
   PRICE & NUMBER TYPOGRAPHY FIX (Cinzel / Marcellus)
   ========================================================================== */
.card-price-current,
.look-price-val,
.mobile-total-price,
.compact-total-value,
.piece-price,
.sheet-summary-row.total span:last-child,
#sheet-subtotal-val,
#sheet-grand-total,
#sheet-promo-val,
.quick-size-price,
#checkout-subtotal-val,
#checkout-shipping-val,
#checkout-total-val,
#receipt-total-amount,
#receipt-shipping-fee,
.checkout-order-summary-box .summary-line.total-due span:last-child {
  font-family: var(--font-price) !important;
  font-variant-numeric: tabular-nums !important;
  font-weight: 600 !important;
  letter-spacing: 0.5px !important;
}

.card-price-original {
  font-family: var(--font-price) !important;
  font-variant-numeric: tabular-nums !important;
  font-weight: 500 !important;
  letter-spacing: 0.5px !important;
}

/* ==========================================================================
   LUXURY DARK MODE ("Midnight Sartorial" Component Overrides)
   ========================================================================== */
[data-theme="dark"] body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
}

[data-theme="dark"] .site-header {
  background: var(--bg-surface);
  border-bottom-color: var(--border-subtle);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

[data-theme="dark"] .free-shipping-top-bar {
  background: #080E1B;
  border-bottom-color: var(--border-subtle);
}

[data-theme="dark"] .free-shipping-top-bar.is-unlocked {
  background: #062314;
  border-bottom-color: #105930;
}

[data-theme="dark"] .header-trust-ticker {
  color: var(--text-secondary);
}

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

[data-theme="dark"] .header-exchange-badge {
  background: rgba(197, 168, 128, 0.12);
  border-color: rgba(197, 168, 128, 0.3);
  color: var(--accent-gold);
}

[data-theme="dark"] .outfit-builder-section {
  background: var(--bg-canvas);
  border-bottom-color: var(--border-subtle);
}

[data-theme="dark"] .mannequin-canvas-stage {
  background: radial-gradient(circle at 50% 45%, #192644 0%, #0B1325 100%);
  box-shadow: inset 0 0 45px rgba(0, 0, 0, 0.65);
}

[data-theme="dark"] .desktop-fit-summary-panel {
  background: var(--bg-surface);
  border-color: var(--border-subtle);
  box-shadow: 0 -4px 25px rgba(0, 0, 0, 0.35);
}

[data-theme="dark"] .product-card {
  background: var(--bg-surface);
  border-color: var(--border-subtle);
}

[data-theme="dark"] .product-card:hover {
  border-color: var(--accent-gold);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

[data-theme="dark"] .card-image-wrap {
  background: #0E182D;
}

[data-theme="dark"] .product-card.is-equipped {
  border-color: var(--accent-gold);
  box-shadow: 0 0 0 2px var(--accent-gold);
}

[data-theme="dark"] .card-tryon-overlay-btn {
  background: rgba(19, 30, 53, 0.94);
  color: var(--text-primary);
  border-color: var(--border-subtle);
}

[data-theme="dark"] .product-card.is-equipped .card-tryon-overlay-btn,
[data-theme="dark"] .product-card:hover .card-tryon-overlay-btn {
  background: var(--cta-bg);
  color: var(--cta-text);
  border-color: var(--cta-bg);
}

[data-theme="dark"] .pill-filter {
  background: var(--bg-surface);
  border-color: var(--border-subtle);
  color: var(--text-secondary);
}

[data-theme="dark"] .pill-filter:hover {
  border-color: var(--accent-gold);
  color: var(--text-primary);
}

[data-theme="dark"] .pill-filter.active {
  background: var(--cta-bg);
  border-color: var(--cta-bg);
  color: var(--cta-text);
  font-weight: 700;
}

[data-theme="dark"] .mobile-checkout-sticky-bar {
  background: rgba(19, 30, 53, 0.96);
  border-top-color: var(--border-subtle);
}

.bottom-sheet-container,
.quick-size-modal-container,
.size-guide-modal-container {
  background: #131E35 !important;
  border-color: #1E2C4A !important;
  color: #cec2af !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6) !important;
}

.sheet-header,
.sheet-footer,
.quick-size-header,
.quick-size-footer,
.size-guide-header {
  border-color: #1E2C4A !important;
  background: #131E35 !important;
  color: #cec2af !important;
}

.sheet-header-title,
.quick-size-title,
.size-guide-title {
  color: #cec2af !important;
}

.sheet-header-subtitle {
  color: #A8A29E !important;
}

.form-label {
  color: #C5A880 !important;
}

.form-input,
.form-select,
.form-textarea {
  background: #0B1325 !important;
  border-color: #1E2C4A !important;
  color: #cec2af !important;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: #C5A880 !important;
  box-shadow: 0 0 0 3px rgba(197, 168, 128, 0.2) !important;
}

.fixed-country-badge,
.checkout-order-summary-box,
.order-box-receipt,
.sheet-summary-box,
.fit-drawer-piece-card,
.piece-size-card {
  background: #0E182D !important;
  border-color: #1E2C4A !important;
  color: #cec2af !important;
}

.quick-size-chip-btn {
  background: #182542 !important;
  border-color: #1E2C4A !important;
  color: #cec2af !important;
}

.quick-size-chip-btn:hover,
.quick-size-chip-btn.selected {
  background: #C5A880 !important;
  color: #0B1325 !important;
  border-color: #C5A880 !important;
}

.size-table th {
  background: #192644 !important;
  color: #cec2af !important;
  border-color: #1E2C4A !important;
}

.size-table td {
  border-color: #1E2C4A !important;
  color: #A8A29E !important;
}

.size-table tr:hover td {
  background: rgba(197, 168, 128, 0.08) !important;
}

[data-theme="dark"] .btn-card-add-cart {
  background: #0B1325 !important;
  border-color: #1E2C4A !important;
  color: #cec2af !important;
}

[data-theme="dark"] .btn-card-add-cart:hover {
  background: #C5A880 !important;
  color: #0B1325 !important;
  border-color: #C5A880 !important;
}

[data-theme="dark"] .btn-canvas-tool {
  background: rgba(19, 30, 53, 0.9);
  border-color: var(--border-subtle);
  color: var(--text-primary);
}

[data-theme="dark"] .btn-canvas-tool:hover {
  background: var(--bg-surface-subtle);
  border-color: var(--accent-gold);
}

[data-theme="dark"] .size-mini-chip {
  background: #192644;
  border-color: var(--border-subtle);
  color: var(--text-secondary);
}

[data-theme="dark"] .size-btn-pill {
  background: #182542;
  border-color: var(--border-subtle);
  color: var(--text-primary);
}

[data-theme="dark"] .size-btn-pill.selected {
  background: var(--cta-bg);
  color: var(--cta-text);
  border-color: var(--cta-bg);
}

[data-theme="dark"] .look-price-badge {
  background: rgba(11, 19, 37, 0.95);
  border-color: rgba(197, 168, 128, 0.4);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .look-price-label {
  color: var(--accent-gold);
}

[data-theme="dark"] .modal-backdrop {
  background: rgba(5, 10, 20, 0.78);
}

[data-theme="dark"] .btn-close-sheet,
[data-theme="dark"] .btn-close-modal {
  background: #192644;
  border-color: var(--border-subtle);
  color: var(--text-primary);
}

[data-theme="dark"] .btn-close-sheet:hover,
[data-theme="dark"] .btn-close-modal:hover {
  background: #23355c;
  color: #FFFFFF;
}

[data-theme="dark"] .success-card {
  color: var(--text-primary);
}

[data-theme="dark"] .receipt-row {
  border-bottom-color: var(--border-subtle);
  color: var(--text-secondary);
}

[data-theme="dark"] .receipt-row.bold {
  color: var(--text-primary);
}

[data-theme="dark"] .layer-tag {
  background: rgba(19, 30, 53, 0.92);
  color: var(--text-primary);
  border-color: var(--border-subtle);
}

[data-theme="dark"] .layer-tag .tag-remove-btn {
  color: var(--text-secondary);
}

[data-theme="dark"] .layer-tag .tag-remove-btn:hover {
  color: #F87171;
}

[data-theme="dark"] .compact-item-chip {
  background: #182542;
  color: var(--text-primary);
  border-color: var(--border-subtle);
}

[data-theme="dark"] .compact-item-chip:hover {
  background: #22345a;
  border-color: var(--accent-gold);
}

[data-theme="dark"] .chip-del-btn {
  color: var(--text-secondary);
}

[data-theme="dark"] .chip-del-btn:hover {
  color: #F87171;
}

[data-theme="dark"] .cart-badge-count {
  background: var(--cta-bg);
  color: var(--cta-text);
  border-color: var(--bg-surface);
}

[data-theme="dark"] .mobile-sticky-header {
  background: var(--bg-primary);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.45);
}

[data-theme="dark"] .outfit-builder-section.is-collapsed {
  box-shadow: none;
}

/* ==========================================================================
   PERMANENT DARK LUXURY FOOTER (#0B1325 IN ALL MODES)
   ========================================================================== */
.site-luxury-footer {
  background: #0B1325 !important;
  border-top: 1px solid rgba(206, 194, 175, 0.18) !important;
  color: #cec2af !important;
  padding: 4.5rem 1.5rem calc(var(--mobile-checkout-height) + 2.5rem) 1.5rem;
  margin-top: 2.5rem;
  position: relative;
  z-index: 25;
}

.footer-inner {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2.5rem;
}

.footer-logo-link {
  display: inline-flex;
  text-decoration: none;
  transition: opacity var(--transition-fast);
}

.footer-logo-link:hover {
  opacity: 0.85;
}

.footer-brand-logo {
  max-width: 230px;
  width: 65vw;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.45));
}

.footer-about-section {
  max-width: 740px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
}

.footer-section-heading {
  font-family: var(--font-display);
  font-size: 0.96rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #C5A880 !important;
}

.footer-about-text {
  font-size: 0.88rem;
  line-height: 1.85;
  color: #A8A29E !important;
  font-family: var(--font-arabic), var(--font-main);
}

.footer-contact-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
}

.footer-social-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.footer-social-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 1.25rem;
  background: #131E35 !important;
  border: 1px solid #1E2C4A !important;
  color: #cec2af !important;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: 0 !important;
  transition: all var(--transition-fast);
}

.footer-social-btn:hover {
  background: #1E2C4A !important;
  border-color: #C5A880 !important;
  color: #FFFFFF !important;
  transform: translateY(-2px);
}

.footer-bottom-bar {
  padding-top: 1.75rem;
  border-top: 1px solid rgba(206, 194, 175, 0.12);
  width: 100%;
}

.footer-copyright-text {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: #6B7280 !important;
  font-family: var(--font-sans);
  text-transform: uppercase;
}

/* ==========================================================================
   EXCHANGE & RETURN POLICY MODAL
   ========================================================================== */
.exchange-modal-container {
  max-width: 520px;
  background: #131E35 !important;
  border: 1px solid #1E2C4A !important;
  border-radius: 0 !important;
}

.policy-modal-body {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 1.25rem 1.4rem;
}

.policy-feature-box {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.policy-feature-item {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding: 0.95rem;
  background: #0E182D;
  border: 1px solid #1E2C4A;
  border-radius: 0 !important;
}

.policy-icon {
  font-size: 1.4rem;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 2px;
}

.policy-item-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: #cec2af;
  margin-bottom: 0.3rem;
}

.policy-item-desc {
  font-size: 0.78rem;
  line-height: 1.5;
  color: #A8A29E;
}

.policy-modal-cta {
  padding-top: 0.5rem;
}


