/* ==========================================================================
   WASSILA GIFTS (وسيلة للهدايا والمطبوعات) — Warm Emotional Gift-Brand System
   Sampled from assets/wassila-logo.webp: soft lilac ribbon, deep plum-ink,
   warm blush cream, coral-rose & champagne gold accents, official WhatsApp CTA.
   ========================================================================== */

:root {
  /* Warm Blush, Soft Lilac & Cream Alternating Surfaces */
  --bg-cream: #FFF8F2;
  --bg-blush: #FCEFE8;
  --bg-lilac-soft: #F5EFFC;
  --bg-cream-light: #FCEFE8;
  --surface-soft: #FFFBF7;
  --surface-white: #FFFFFF;
  --surface-raised: #F8EFE8;
  --surface-glass: rgba(255, 248, 242, 0.94);
  --surface-glass-strong: #FFFFFF;

  /* Vivid Brand Lilac (Sampled from Wassila Logo Ribbon) & Warm Secondary Accents */
  --brand-lilac: #7649C4;
  --brand-lilac-hover: #5E35A8;
  --brand-lilac-deep: #532D96;
  --brand-lilac-tint: #EFE7FB;
  --brand-lilac-glow: rgba(118, 73, 196, 0.22);
  --accent-coral: #C9526A;
  --accent-coral-soft: #FDECEF;
  --accent-gold: #B67628;
  --accent-gold-soft: #FDF2DF;
  --accent-gold-decor: #E0A64B;

  /* Soft Tinted Borders */
  --hairline: rgba(118, 73, 196, 0.14);
  --hairline-strong: rgba(118, 73, 196, 0.28);
  --border-lavender: 1px solid rgba(118, 73, 196, 0.16);
  --border-warm: rgba(201, 82, 106, 0.14);

  /* Deep Plum-Ink Text Roles (Never Pure Black — All >= WCAG AA 4.5:1) */
  --text-charcoal: #24192C;
  --text-secondary: #584962;
  --text-muted: #70607A;

  /* Official WhatsApp CTA Palette (Dark Green #06301A on #25D366 = 8.3:1 Contrast) */
  --ink-primary: #24192C;
  --ink-primary-hover: #3B2947;
  --whatsapp-green: #25D366;
  --whatsapp-hover: #1EBE5A;
  --whatsapp-text: #06301A;
  --whatsapp-shadow: 0 10px 24px -6px rgba(37, 211, 102, 0.44);
  --whatsapp-shadow-hover: 0 14px 28px -6px rgba(30, 190, 90, 0.54);

  /* Semantic Offer & Savings Tokens */
  --semantic-positive: #146334;
  --semantic-positive-bg: #E7F7EE;
  --semantic-warm: #A6334B;
  --semantic-warm-bg: #FDECEF;
  --gold-warm: #B67628;

  /* Soft Colored Shadows & Hero/Divider Gradients */
  --shadow-soft: 0 8px 24px -8px rgba(118, 73, 196, 0.14), 0 2px 6px rgba(36, 25, 44, 0.04);
  --shadow-elevated: 0 18px 40px -12px rgba(118, 73, 196, 0.22), 0 6px 16px -4px rgba(201, 82, 106, 0.10);
  --hero-gradient: linear-gradient(150deg, #FFF8F2 0%, #FCEFE8 52%, #F4ECFC 100%);
  --divider-gradient: linear-gradient(90deg, transparent 0%, rgba(118, 73, 196, 0.28) 30%, rgba(201, 82, 106, 0.28) 70%, transparent 100%);

  /* Strict 4px Spacing Scale */
  --space-0: 0px;
  --space-25: 2px;
  --space-50: 4px;
  --space-75: 8px;
  --space-100: 12px;
  --space-200: 16px;
  --space-250: 20px;
  --space-300: 24px;
  --space-400: 32px;
  --space-500: 40px;
  --space-600: 48px;
  --space-700: 64px;
  --space-800: 80px;
  --space-900: 96px;

  /* Soft Rounded Cards (16-20px) & Pill Primary Buttons */
  --radius-xs: 8px;
  --radius-sm: 12px;
  --radius-btn: 9999px;
  --radius-md: 16px;
  --radius-lg: 20px;
  --radius-xl: 24px;
  --radius-pill: 9999px;

  /* Typography: Readex Pro (Native Arabic + Latin, weights 400/500/600/700) */
  --font-en-sans: 'Readex Pro', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-en-serif: 'Readex Pro', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-en-script: 'Readex Pro', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-ar: 'Readex Pro', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Smooth Hover/Focus Motion (150-250ms) */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --transition-spring: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-fast: 180ms;
  --dur-mid: 220ms;
  --dur-enter: 350ms;
  --transition-smooth: background-color 180ms cubic-bezier(0.22, 1, 0.36, 1), border-color 180ms cubic-bezier(0.22, 1, 0.36, 1), color 180ms cubic-bezier(0.22, 1, 0.36, 1), opacity 220ms cubic-bezier(0.22, 1, 0.36, 1), transform 200ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 200ms cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-style: normal;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg-cream);
  color: var(--text-charcoal);
  font-family: var(--font-en-sans);
  font-size: 0.9375rem;
  font-weight: 400;
  line-height: 1.6;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

html[dir="rtl"] body {
  font-family: var(--font-ar);
  font-size: 0.9375rem;
  line-height: 1.7;
  letter-spacing: 0;
}

html[dir="rtl"] * {
  letter-spacing: 0 !important;
}

h1, h2, h3, h4, h5, h6 {
  text-wrap: balance;
  font-weight: 600;
  color: var(--text-charcoal);
}

html[dir="rtl"] h1,
html[dir="rtl"] h2,
html[dir="rtl"] h3 {
  line-height: 1.36;
}

p, li {
  text-wrap: pretty;
}

/* Tabular Figures Across All Numbers & Prices */
.price-current,
.price-old,
.price-badge,
.box-item-price,
.spec-meta,
.step-number-badge,
.kc-counter-pill,
.gift-box-count-pill {
  font-variant-numeric: tabular-nums;
}

/* Legacy Named Type Helpers (Capped at Weight 600) */
.heading-1 { font-size: clamp(2.25rem, 4.2vw, 3.5rem); line-height: 1.1; font-weight: 500; letter-spacing: -0.025em; }
.heading-2 { font-size: clamp(1.75rem, 3vw, 2.5rem); line-height: 1.18; font-weight: 500; letter-spacing: -0.02em; }
.heading-3 { font-size: clamp(1.5rem, 2.4vw, 2rem); line-height: 1.25; font-weight: 500; }
.heading-4 { font-size: 1.5rem; line-height: 1.3; font-weight: 500; }
.heading-5 { font-size: 1.25rem; line-height: 1.35; font-weight: 500; }
.heading-6 { font-size: 1.125rem; line-height: 1.4; font-weight: 500; }
.title-1 { font-size: 1.125rem; line-height: 1.4; font-weight: 500; }
.title-2 { font-size: 1rem; line-height: 1.45; font-weight: 500; }
.title-3 { font-size: 0.9375rem; line-height: 1.5; font-weight: 500; }
.title-4 { font-size: 0.875rem; line-height: 1.5; font-weight: 500; }
.title-5 { font-size: 0.8125rem; line-height: 1.45; font-weight: 500; }
.body-1, .body-2, .body-3 { font-size: 0.9375rem; line-height: 1.65; font-weight: 400; }
.body-4, .body-5, .body-6 { font-size: 0.875rem; line-height: 1.6; font-weight: 400; }
.button-lg { font-size: 1rem; line-height: 1.4; font-weight: 500; }
.button-md { font-size: 0.9375rem; line-height: 1.4; font-weight: 500; }
.button-sm { font-size: 0.875rem; line-height: 1.4; font-weight: 500; }
.button-xsm { font-size: 0.8125rem; line-height: 1.4; font-weight: 500; }
.caption-1, .caption-2, .caption-3, .caption-4, .caption-5 { font-size: 0.8125rem; line-height: 1.5; font-weight: 400; }

html[dir="rtl"] .heading-1,
html[dir="rtl"] .heading-2 {
  line-height: 1.35;
}

/* Accessibility: Skip Link & Focus Ring */
.skip-to-content {
  position: fixed;
  top: -100px;
  inset-inline-start: var(--space-200);
  z-index: 9999;
  background: var(--ink-primary);
  color: var(--surface-white);
  padding: var(--space-100) var(--space-200);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
}

.skip-to-content:focus {
  top: var(--space-200);
  outline: 2px solid var(--brand-lilac);
  outline-offset: 2px;
}

:focus-visible {
  outline: 2px solid var(--brand-lilac);
  outline-offset: 2px;
}

.ui-icon,
.ph-icon,
.wa-official-icon {
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
}

.wa-official-icon {
  width: 20px;
  height: 20px;
}

html[dir="rtl"] .rtl-flip {
  transform: scaleX(-1);
}

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

.skeleton-shimmer,
.product-media-box,
.mug360-card-preview,
.reel-phone-frame {
  background-color: var(--surface-raised);
}

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

/* Explicit Property Transitions Only — No transition-all, No Bouncy Lifts */
button,
.btn-primary-wa,
.btn-secondary-lilac,
.btn-accent,
.btn-ghost-link,
.lang-toggle-btn,
.nav-wa-btn,
.studio-tab-btn,
.filter-pill-btn,
.option-chip,
.angle-btn,
.size-option-btn,
.compare-all-sizes-btn,
.product-wa-cta,
.product-try-btn,
.scale-ref-toggle-btn {
  transition: background-color var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out),
              opacity var(--dur-fast) var(--ease-out),
              transform var(--dur-fast) var(--ease-out);
}

button:active,
.btn-primary-wa:active,
.btn-secondary-lilac:active,
.btn-accent:active,
.btn-ghost-link:active,
.lang-toggle-btn:active,
.nav-wa-btn:active,
.studio-tab-btn:active,
.filter-pill-btn:active,
.option-chip:active,
.product-wa-cta:active,
.product-try-btn:active {
  transform: scale(0.98);
}

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

/* Container */
.container {
  width: 100%;
  max-width: 1248px;
  margin-inline: auto;
  padding-inline: var(--space-300);
}

/* Ensure Anchor Targets Never Hide Under Sticky Header */
section[id],
div[id="top"] {
  scroll-margin-top: 96px;
}

/* ==========================================================================
   STICKY HEADER (Warm Blush Paper + Brand Ribbon Touch)
   ========================================================================== */
.navbar-shell {
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--hairline);
}

.navbar-shell::before {
  content: '';
  position: absolute;
  inset: 0;
  background-color: var(--surface-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: -1;
  pointer-events: none;
}

.navbar {
  width: 100%;
  position: relative;
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  gap: var(--space-200);
}

.brand-logo-link {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  position: relative;
}

.brand-logo-img-wrap {
  position: relative;
  width: 56px;
  height: 56px;
  border-radius: 15px;
  background-color: var(--surface-white);
  border: 1px solid rgba(118, 73, 196, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  box-shadow: 0 6px 18px -6px rgba(118, 73, 196, 0.22), 0 1px 3px rgba(36, 25, 44, 0.06);
  flex-shrink: 0;
  padding: 2px;
  transition: transform 200ms var(--ease-out), box-shadow 200ms var(--ease-out);
}

.brand-logo-link:hover .brand-logo-img-wrap {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px -6px rgba(118, 73, 196, 0.28), 0 2px 6px rgba(36, 25, 44, 0.08);
}

.brand-logo-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 12px;
}

.brand-text-wrap {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.brand-script-title {
  color: var(--text-charcoal);
  font-size: 1.22rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.brand-subtitle {
  color: var(--text-muted);
  font-size: 0.75rem;
  line-height: 1.25;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-50);
  list-style: none;
}

.nav-link {
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  padding: var(--space-75) var(--space-100);
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius-pill);
  cursor: pointer;
}

.nav-link:hover {
  color: var(--text-charcoal);
  background-color: var(--surface-raised);
}

.nav-link.active {
  color: var(--brand-lilac-deep);
  background-color: var(--brand-lilac-tint);
  font-weight: 600;
}

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

.lang-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 38px;
  padding: var(--space-50) var(--space-100);
  border-radius: var(--radius-pill);
  border: 1px solid var(--hairline);
  background-color: var(--surface-white);
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
}

.lang-toggle-btn:hover {
  color: var(--brand-lilac-deep);
  border-color: var(--brand-lilac);
  background-color: var(--brand-lilac-tint);
}

/* Official WhatsApp Header CTA */
.nav-wa-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-75);
  min-height: 40px;
  padding: var(--space-75) var(--space-250);
  border-radius: var(--radius-pill);
  background-color: var(--whatsapp-green);
  color: var(--whatsapp-text);
  font-size: 0.875rem;
  font-weight: 600;
  border: 1px solid rgba(6, 48, 26, 0.12);
  box-shadow: var(--whatsapp-shadow);
}

.nav-wa-btn:hover {
  background-color: var(--whatsapp-hover);
  box-shadow: var(--whatsapp-shadow-hover);
  transform: translateY(-2px);
}

/* Mobile Menu Toggle */
.mobile-menu-btn {
  display: none;
  background-color: var(--surface-white);
  border: 1px solid var(--hairline-strong);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-charcoal);
}

.menu-toggle-lines {
  position: relative;
  width: 18px;
  height: 12px;
  display: inline-block;
}

.menu-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 1.5px;
  background-color: var(--text-charcoal);
  border-radius: 2px;
  transition: transform var(--dur-mid) var(--ease-out);
}

.menu-line-top { top: 2px; }
.menu-line-bottom { bottom: 2px; }

.mobile-menu-btn.is-open .menu-line-top {
  transform: translateY(3.5px) rotate(45deg);
}

.mobile-menu-btn.is-open .menu-line-bottom {
  transform: translateY(-3.5px) rotate(-45deg);
}

/* ==========================================================================
   HERO SECTION (Warm Blush-to-Lilac Gradient, Emotional Typography, Clickable Cards)
   ========================================================================== */
.hero-section {
  position: relative;
  background: var(--hero-gradient);
  padding: var(--space-700) 0 var(--space-800);
  overflow-x: clip;
}

.hero-section::after {
  content: '';
  position: absolute;
  bottom: 0;
  inset-inline: 0;
  height: 1px;
  background: var(--divider-gradient);
}

.hero-grid {
  display: grid;
  grid-template-columns: 0.96fr 1.04fr;
  gap: var(--space-600);
  align-items: center;
}

.hero-copy-col {
  max-width: 560px;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: var(--space-75);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--brand-lilac-deep);
  background-color: var(--brand-lilac-tint);
  border: 1px solid var(--hairline);
  padding: 6px var(--space-200);
  border-radius: var(--radius-pill);
  margin-bottom: var(--space-250);
}

.hero-kicker-icon {
  color: var(--accent-coral);
  flex-shrink: 0;
}

.hero-title {
  font-size: clamp(2.375rem, 4.3vw, 3.375rem);
  line-height: 1.14;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--text-charcoal);
  margin-bottom: var(--space-250);
}

html[dir="rtl"] .hero-title {
  line-height: 1.32;
}

.hero-highlight {
  position: relative;
  display: inline;
  background-image: linear-gradient(transparent 66%, rgba(224, 166, 75, 0.34) 66%, rgba(201, 82, 106, 0.22) 94%, transparent 94%);
  padding-inline: 4px;
  border-radius: 4px;
}

.hero-subtitle {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--text-secondary);
  margin-bottom: var(--space-400);
  max-width: 35rem;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-100);
  margin-bottom: var(--space-400);
}

/* Primary WhatsApp CTA: Official Green #25D366 + Dark Green Ink #06301A + Pill Shape */
.btn-primary-wa {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-75);
  min-height: 48px;
  padding: var(--space-100) var(--space-300);
  border-radius: var(--radius-btn);
  background-color: var(--whatsapp-green);
  color: var(--whatsapp-text);
  font-size: 0.9375rem;
  font-weight: 600;
  border: 1px solid rgba(6, 48, 26, 0.14);
  box-shadow: var(--whatsapp-shadow);
  cursor: pointer;
}

.btn-primary-wa:hover {
  background-color: var(--whatsapp-hover);
  box-shadow: var(--whatsapp-shadow-hover);
  transform: translateY(-2px);
}

.btn-primary-wa.btn-sm {
  min-height: 44px;
  padding: var(--space-75) var(--space-250);
  font-size: 0.875rem;
}

.btn-block {
  width: 100%;
}

/* Vivid Brand Lilac Accent Button */
.btn-accent {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-75);
  min-height: 44px;
  padding: var(--space-100) var(--space-250);
  border-radius: var(--radius-pill);
  background-color: var(--brand-lilac);
  color: #FFFFFF;
  font-size: 0.9375rem;
  font-weight: 600;
  border: 1px solid var(--brand-lilac);
  box-shadow: 0 10px 22px -8px rgba(118, 73, 196, 0.45);
  cursor: pointer;
  width: 100%;
}

.btn-accent:hover {
  background-color: var(--brand-lilac-hover);
  border-color: var(--brand-lilac-hover);
  transform: translateY(-2px);
}

/* Secondary / Ghost Pill Actions */
.btn-ghost-link,
.btn-secondary-lilac {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-75);
  min-height: 48px;
  padding: var(--space-100) var(--space-250);
  border-radius: var(--radius-pill);
  color: var(--brand-lilac-deep);
  background-color: var(--surface-white);
  font-size: 0.9375rem;
  font-weight: 600;
  border: 1px solid var(--hairline-strong);
  box-shadow: var(--shadow-soft);
  cursor: pointer;
}

.btn-ghost-link:hover,
.btn-secondary-lilac:hover {
  background-color: var(--brand-lilac-tint);
  border-color: var(--brand-lilac);
  transform: translateY(-2px);
}

.btn-secondary-lilac.btn-sm {
  min-height: 42px;
  padding: var(--space-75) var(--space-200);
  font-size: 0.875rem;
  border-radius: var(--radius-pill);
}

/* Warm Inline Hero Assurances */
.hero-assurances {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-100);
  padding-top: var(--space-300);
  border-top: 1px solid var(--hairline);
}

.hero-assurances li {
  display: flex;
  align-items: center;
  gap: var(--space-100);
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.hero-assurances .ui-icon {
  color: var(--accent-coral);
}

/* Hero Visual Stage — Soft 20px Cards + Warm Colored Shadow (All 3 Interactive!) */
.hero-visual-stage {
  display: grid;
  grid-template-columns: 1.18fr 0.82fr;
  gap: var(--space-200);
  align-items: stretch;
}

.hero-main-card {
  width: 100%;
  text-align: start;
  background-color: var(--surface-white);
  border-radius: var(--radius-lg);
  padding: 10px;
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow-elevated);
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: transform var(--dur-mid) var(--ease-out), border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-mid) var(--ease-out);
}

.hero-main-card:hover {
  transform: translateY(-3px);
  border-color: var(--brand-lilac);
  box-shadow: 0 22px 44px -12px rgba(118, 73, 196, 0.28);
}

.hero-main-card img {
  width: 100%;
  height: 100%;
  min-height: 416px;
  max-height: 460px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  flex: 1;
}

.hero-side-stack {
  display: flex;
  flex-direction: column;
  gap: var(--space-200);
}

.hero-mini-card {
  width: 100%;
  text-align: start;
  background-color: var(--surface-white);
  border-radius: var(--radius-lg);
  padding: 10px;
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  flex: 1;
  transition: transform var(--dur-mid) var(--ease-out), border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-mid) var(--ease-out);
}

.hero-mini-card:hover {
  transform: translateY(-3px);
  border-color: var(--brand-lilac);
  box-shadow: var(--shadow-elevated);
}

.hero-mini-card img {
  width: 100%;
  height: 184px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.hero-card-caption {
  padding: var(--space-100) var(--space-50) var(--space-50);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-charcoal);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-75);
}

.spec-meta {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--brand-lilac-deep);
  white-space: nowrap;
}

/* ==========================================================================
   SECTION RHYTHM (Alternating Soft Blush / Soft Lilac / Warm Cream + Ribbon Dividers)
   ========================================================================== */
.section-block {
  padding: var(--space-800) 0;
  position: relative;
}

.section-block::after {
  content: '';
  position: absolute;
  bottom: 0;
  inset-inline: 10%;
  height: 1px;
  background: var(--divider-gradient);
}

.reveal-section {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity var(--dur-enter) var(--ease-out),
              transform var(--dur-enter) var(--ease-out);
}

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

.section-header {
  text-align: center;
  max-width: 660px;
  margin-inline: auto;
  margin-bottom: var(--space-500);
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--brand-lilac-deep);
  background-color: var(--brand-lilac-tint);
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: var(--space-100);
}

.section-eyebrow-start {
  text-align: start;
}

.section-title {
  font-size: clamp(1.75rem, 3vw, 2.375rem);
  line-height: 1.25;
  color: var(--text-charcoal);
  margin-bottom: var(--space-100);
  font-weight: 700;
}

html[dir="rtl"] .section-title {
  line-height: 1.36;
}

.section-desc {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.75;
}

/* ==========================================================================
   INTERACTIVE PRODUCT STUDIO (Soft Lilac Section Band + Live Studio Prices)
   ========================================================================== */
.magic-studio-section {
  background-color: var(--bg-lilac-soft);
}

.studio-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-75);
  margin-bottom: var(--space-300);
}

.studio-tab-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-75);
  min-height: 44px;
  padding: var(--space-75) var(--space-250);
  border-radius: var(--radius-pill);
  background-color: var(--surface-white);
  color: var(--text-secondary);
  border: 1px solid var(--hairline);
  font-weight: 600;
  font-size: 0.875rem;
  box-shadow: var(--shadow-soft);
  cursor: pointer;
}

.studio-tab-btn:hover {
  color: var(--brand-lilac-deep);
  border-color: var(--brand-lilac);
  transform: translateY(-2px);
}

.studio-tab-btn.active {
  background-color: var(--brand-lilac);
  color: #FFFFFF;
  border-color: var(--brand-lilac);
  box-shadow: 0 10px 24px -8px rgba(118, 73, 196, 0.5);
}

.studio-panel {
  display: none;
  background-color: var(--surface-white);
  border-radius: var(--radius-xl);
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow-elevated);
  padding: var(--space-400);
  animation: fadeSlideUp var(--dur-enter) var(--ease-out) forwards;
}

.studio-panel.active {
  display: block;
}

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

.studio-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: var(--space-500);
  align-items: start;
}

.studio-info-col {
  display: flex;
  flex-direction: column;
  gap: var(--space-200);
  padding-top: var(--space-75);
}

.studio-heading {
  font-size: 1.5rem;
  line-height: 1.35;
  font-weight: 700;
  color: var(--text-charcoal);
}

.studio-price-box {
  background-color: var(--surface-soft);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  padding: var(--space-100) var(--space-200);
}

.studio-price-box .price-row {
  margin: 0;
}

.studio-desc {
  font-size: 0.9375rem;
  line-height: 1.75;
  color: var(--text-secondary);
}

/* --------------------------------------------------------------------------
   1. MAGIC MUG KETTLE POUR ANIMATION STAGE (REALISTIC 11oz / 350ml, 20-21x9.5cm, 8s SLOW REVEAL)
   -------------------------------------------------------------------------- */
.kettle-stage {
  position: relative;
  min-height: 500px;
  border-radius: var(--radius-lg);
  background: radial-gradient(circle at 50% 25%, #5b4d44 0%, #382e29 52%, #221b18 100%);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 2rem 1.5rem 2.2rem;
  border: 1px solid rgba(158, 130, 216, 0.25);
  box-shadow: inset 0 0 70px rgba(0, 0, 0, 0.55), var(--shadow-soft);
  transition: background 2.5s ease;
}

.kettle-stage::before {
  /* Table surface */
  content: '';
  position: absolute;
  bottom: 0;
  inset-inline: 0;
  height: 115px;
  background: linear-gradient(180deg, #4b382a 0%, #332419 100%);
  border-top: 1px solid rgba(255, 230, 200, 0.14);
  z-index: 1;
}

.kettle-stage.is-hot {
  background: radial-gradient(circle at 50% 30%, #866345 0%, #4d382a 55%, #261c16 100%);
}

/* Golden hour sunlight bokeh particles */
.bokeh-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.28;
  transition: opacity 2.5s ease;
  z-index: 2;
}

.kettle-stage.is-hot .bokeh-layer {
  opacity: 0.92;
}

.bokeh-circle {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 226, 152, 0.82) 0%, rgba(255, 182, 72, 0) 70%);
  filter: blur(2px);
  animation: floatBokeh 5s ease-in-out infinite alternate;
}

.bokeh-circle.b1 { width: 115px; height: 115px; top: 12%; left: 10%; animation-delay: 0s; }
.bokeh-circle.b2 { width: 155px; height: 155px; top: 8%; right: 12%; animation-delay: 1.2s; }
.bokeh-circle.b3 { width: 90px; height: 90px; bottom: 28%; left: 18%; animation-delay: 0.6s; }
.bokeh-circle.b4 { width: 125px; height: 125px; bottom: 22%; right: 15%; animation-delay: 1.8s; }
.bokeh-circle.b5 { width: 70px; height: 70px; top: 38%; left: 72%; animation-delay: 0.9s; }

@keyframes floatBokeh {
  0% { transform: translateY(0) scale(0.95); }
  100% { transform: translateY(-16px) scale(1.1); }
}

/* White Electric Kettle Actor (Top-Left, matching real video) */
.kettle-actor {
  position: absolute;
  top: 22px;
  left: 8%;
  width: 175px;
  height: 145px;
  z-index: 8;
  direction: ltr;
  transform-origin: 75% 75%;
  transform: translate(-18px, -8px) rotate(0deg);
  transition: transform 1.1s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.8s ease;
  filter: drop-shadow(0 16px 24px rgba(0, 0, 0, 0.5));
}

.kettle-stage.is-pouring .kettle-actor {
  transform: translate(32px, 16px) rotate(36deg);
}

/* Hot Water SVG/Liquid Stream pouring into white ceramic interior */
.water-stream {
  position: absolute;
  top: 114px;
  left: 48.5%;
  transform: translateX(-50%);
  width: 12px;
  height: 0;
  background: linear-gradient(180deg,
    rgba(255, 255, 255, 0.96) 0%,
    rgba(210, 240, 255, 0.85) 45%,
    rgba(255, 248, 235, 0.95) 100%);
  border-radius: 10px;
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.78);
  z-index: 6;
  opacity: 0;
  overflow: hidden;
  transition: height 0.55s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.35s ease;
}

.kettle-stage.is-pouring .water-stream {
  height: 120px;
  opacity: 0.95;
  animation: streamWave 0.26s infinite alternate;
}

@keyframes streamWave {
  from { width: 8px; transform: translateX(-50%) scaleX(0.92); }
  to { width: 12px; transform: translateX(-48%) scaleX(1.1); }
}

/* Multi-layered Rising Blurred Steam Plumes */
.steam-container {
  position: absolute;
  top: 86px;
  left: 50%;
  transform: translateX(-50%);
  width: 170px;
  height: 135px;
  pointer-events: none;
  z-index: 7;
  opacity: 0;
  transition: opacity 1.4s ease;
}

.kettle-stage.is-pouring .steam-container,
.kettle-stage.is-hot .steam-container {
  opacity: 1;
}

.steam-wisp {
  position: absolute;
  bottom: 0;
  width: 32px;
  height: 88px;
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.68) 0%, rgba(255, 248, 240, 0.25) 45%, rgba(255, 255, 255, 0) 72%);
  border-radius: 50%;
  filter: blur(7px);
  animation: riseSteam 3.1s ease-in-out infinite;
}

.steam-wisp.s1 { left: 16%; animation-delay: 0s; }
.steam-wisp.s2 { left: 36%; height: 105px; width: 38px; filter: blur(9px); animation-delay: 0.6s; }
.steam-wisp.s3 { left: 56%; height: 96px; animation-delay: 1.2s; }
.steam-wisp.s4 { left: 72%; height: 80px; filter: blur(8px); animation-delay: 1.8s; }
.steam-wisp.s5 { left: 45%; height: 112px; width: 42px; filter: blur(11px); animation-delay: 2.3s; }

@keyframes riseSteam {
  0% { transform: translateY(16px) scaleX(0.8); opacity: 0; }
  45% { opacity: 0.85; }
  100% { transform: translateY(-86px) scaleX(1.65); opacity: 0; }
}

/* Realistic 11oz / 350ml Cylindrical Ceramic Mug (9.5cm Height x 8.2cm Dia, 20-21cm Wrap) */
.magic-mug-assembly {
  position: relative;
  width: 280px;
  height: 248px;
  z-index: 5;
  margin-top: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  direction: ltr;
}

/* Realistic C-Shaped Ear Handle on the LEFT (matching uploaded video & photo) */
.magic-mug-handle {
  position: absolute;
  left: 2px;
  top: 44px;
  width: 68px;
  height: 150px;
  border: 19px solid #141214;
  border-right: none;
  border-radius: 56px 0 0 56px;
  box-shadow:
    -8px 12px 20px rgba(0, 0, 0, 0.55),
    inset 4px 4px 8px rgba(255, 255, 255, 0.14);
  z-index: 3;
  transition: border-color 1.2s ease;
}

/* Cylindrical Mug Body: 11oz Standard Proportion (Width ~196px, Height ~222px + 3D top rim) */
.magic-mug-body {
  position: relative;
  width: 200px;
  height: 226px;
  margin-left: 38px;
  border-radius: 6px 6px 26px 26px / 4px 4px 22px 22px;
  background: #141114;
  box-shadow:
    0 24px 36px rgba(0, 0, 0, 0.65),
    0 6px 12px rgba(0, 0, 0, 0.4);
  z-index: 5;
}

/* 3D White Ceramic Open Top Rim & Hot Water Level Inside */
.magic-mug-rim-opening {
  position: absolute;
  top: -19px;
  left: 0;
  width: 100%;
  height: 38px;
  border-radius: 50%;
  background: radial-gradient(ellipse at 50% 60%, #cfd3d8 0%, #eef1f5 58%, #ffffff 100%);
  border: 4px solid #221d20;
  box-shadow:
    inset 0 8px 14px rgba(0, 0, 0, 0.28),
    0 2px 4px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  z-index: 8;
}

/* Water rippling inside the white ceramic rim */
.magic-mug-inner-water {
  position: absolute;
  left: 4%;
  right: 4%;
  bottom: -10px;
  height: 0%;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(225, 242, 248, 0.85) 0%, rgba(188, 212, 222, 0.65) 70%, rgba(255, 255, 255, 0.9) 100%);
  box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.9);
  transition: height 2.4s ease-out, bottom 2.4s ease-out;
}

.kettle-stage.is-pouring .magic-mug-inner-water,
.kettle-stage.is-hot .magic-mug-inner-water {
  height: 78%;
  bottom: 2px;
}

/* Mug Wrap Surface (20-21 cm x 9.5 cm print area with subtle margin near handle & base) */
.magic-mug-wrap-surface {
  position: absolute;
  inset: 0;
  border-radius: 4px 4px 26px 26px / 4px 4px 22px 22px;
  overflow: hidden;
  background: #141114;
}

/* Revealed Custom Print Underneath (White Ceramic Base + Printed Design)
   Uses smooth vertical thermal clip-path & mask-image reveal synced with the 8s organic coat */
.magic-mug-print-reveal {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg,
      #161215 0%,
      #2a2024 4.5%,
      rgba(42, 32, 36, 0) 9.5%,
      rgba(42, 32, 36, 0) 93%,
      rgba(26, 20, 23, 0.45) 100%),
    linear-gradient(0deg,
      #161215 0%,
      #2d2126 3.5%,
      #fbf9f7 7.5%,
      #ffffff 96%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  clip-path: inset(88% 0 0 0);
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,1) 25%, rgba(0,0,0,1) 100%);
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,1) 25%, rgba(0,0,0,1) 100%);
  transition: clip-path 1.4s ease-in-out;
}

.kettle-stage.is-hot .magic-mug-print-reveal {
  clip-path: inset(0% 0 0 0);
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,1) 0%, rgba(0,0,0,1) 100%);
  mask-image: linear-gradient(180deg, rgba(0,0,0,1) 0%, rgba(0,0,0,1) 100%);
  transition: clip-path 7.4s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Lily of My Life Design (Exact Match to Uploaded Video @WASSILA_GIFT) */
.mug-design-lily {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 26px 16px 14px 22px;
  text-align: center;
  background: radial-gradient(circle at 52% 58%, #ffffff 0%, #f7f3f0 78%, #e5ddd8 100%);
}

.mug-design-lily .lily-quote {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 0.94rem;
  line-height: 1.28;
  color: #231b1e;
  font-weight: 700;
  margin-bottom: 6px;
  letter-spacing: 0.01em;
}

.mug-design-lily .lily-flower-svg {
  width: 108px;
  height: 102px;
  filter: drop-shadow(0 4px 8px rgba(140, 25, 45, 0.22));
}

.magic-mug-print-reveal img.custom-mug-img {
  width: 88%;
  height: 86%;
  margin-top: 8px;
  margin-left: 6px;
  object-fit: cover;
  border-radius: 6px;
}

/* Realistic Cylindrical 3D Lighting & Specular Sheen Overlay */
.magic-mug-cylinder-lighting {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 6;
  background: linear-gradient(90deg,
    rgba(0, 0, 0, 0.42) 0%,
    rgba(0, 0, 0, 0.12) 14%,
    rgba(255, 255, 255, 0.22) 32%,
    rgba(255, 255, 255, 0.04) 54%,
    rgba(0, 0, 0, 0.16) 82%,
    rgba(0, 0, 0, 0.52) 100%);
}

/* Black Thermochromic Heat Overlay:
   Slow 7.8-second organic bottom-up gradient transition from Matte Black -> Warm Dark Burgundy -> Transparent! */
.magic-mug-black-coat {
  position: absolute;
  left: -4%;
  right: -4%;
  top: -120%;
  height: 230%;
  z-index: 5;
  pointer-events: none;
  background: linear-gradient(180deg,
    #110f12 0%,
    #151216 44%,
    rgba(34, 22, 26, 0.96) 51%,
    rgba(68, 32, 38, 0.78) 57%,
    rgba(110, 48, 54, 0.42) 63%,
    rgba(145, 75, 78, 0.14) 68%,
    rgba(255, 255, 255, 0) 73%,
    rgba(255, 255, 255, 0) 100%);
  transform: translateY(48%);
  transition: transform 1.6s ease-in-out;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 28%;
}

/* When hot water is poured, the thermochromic black coat slowly rises and dissolves from bottom to top over 7.5 seconds */
.kettle-stage.is-hot .magic-mug-black-coat {
  transition: transform 7.5s cubic-bezier(0.25, 0.88, 0.32, 1);
  transform: translateY(-49%);
}

.coat-hint-box {
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.75rem;
  font-weight: 600;
  text-align: center;
  max-width: 165px;
  padding: 0.5rem;
  transition: opacity 1.2s ease;
}

.kettle-stage.is-pouring .coat-hint-box,
.kettle-stage.is-hot .coat-hint-box {
  opacity: 0;
}

/* Dimension Callout Rulers on Mug Stage (20-21 cm Wrap x 9.5 cm Height) */
.mug-dim-height-tag {
  position: absolute;
  right: -52px;
  top: 18px;
  bottom: 12px;
  border-right: 2px dashed rgba(255, 240, 220, 0.55);
  display: flex;
  align-items: center;
  padding-right: 6px;
  color: #FCEAD2;
  font-size: 0.72rem;
  font-weight: 800;
  writing-mode: vertical-rl;
}

.mug-dim-width-tag {
  position: absolute;
  bottom: -26px;
  left: 42px;
  right: 4px;
  border-bottom: 2px dashed rgba(255, 240, 220, 0.55);
  text-align: center;
  color: #FCEAD2;
  font-size: 0.72rem;
  font-weight: 800;
  padding-bottom: 2px;
}

.kettle-top-bar {
  position: absolute;
  top: 12px;
  inset-inline: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem;
  flex-wrap: wrap;
  z-index: 9;
}

.temp-pill-indicator {
  background: rgba(20, 18, 22, 0.84);
  backdrop-filter: blur(12px);
  color: #FFFFFF;
  padding: 0.38rem 0.85rem;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.kettle-stage.is-hot .temp-pill-indicator {
  background: rgba(185, 58, 48, 0.92);
  border-color: rgba(255, 215, 190, 0.65);
}

.mug-spec-banner {
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
  color: #FDF8F2;
  padding: 0.34rem 0.75rem;
  border-radius: 10px;
  font-size: 0.73rem;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.22);
}

/* Thermal Progress Bar (0s - 8s) */
.thermal-progress-wrap {
  width: 86%;
  max-width: 320px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 99px;
  height: 8px;
  margin-top: 2.1rem;
  overflow: hidden;
  z-index: 6;
}

.thermal-progress-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #9E82D8 0%, #e05368 50%, #ff9f43 100%);
  transition: width 0.4s linear;
}

.kettle-stage.is-hot .thermal-progress-fill {
  width: 100%;
  transition: width 7.5s linear;
}

/* --------------------------------------------------------------------------
   2. UNIFIED 3D INTERACTIVE MUG STUDIO (Three.js 3D Mug + 4 2D Wraps + Basic Colors + Kettle Pour)
   -------------------------------------------------------------------------- */
.mug3d-stage-col {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  min-width: 0;
}

.mug3d-stage {
  position: relative;
  width: 100%;
  height: 380px;
  border-radius: 16px;
  overflow: hidden;
  background: radial-gradient(circle at 50% 34%, #FFFFFF 0%, #F4EEFC 56%, #E5DAF6 100%);
  border: 1px solid rgba(158, 130, 216, 0.35);
  box-shadow: var(--shadow-soft);
  user-select: none;
  -webkit-user-select: none;
}

.mug3d-top-overlay {
  position: absolute;
  top: 10px;
  inset-inline-start: 10px;
  inset-inline-end: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem;
  z-index: 5;
  pointer-events: none;
}

.mug3d-hint-pill,
.mug3d-status-pill {
  background: rgba(24, 20, 32, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #FFFFFF;
  font-size: 0.74rem;
  font-weight: 800;
  padding: 0.26rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  white-space: nowrap;
}

.mug3d-status-pill.is-hot {
  background: linear-gradient(90deg, #b8293d, #e85d33);
  border-color: #ffe2c8;
}

.mug3d-canvas-wrap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  cursor: grab;
  touch-action: pan-y;
}

.mug3d-canvas-wrap:active {
  cursor: grabbing;
}

.mug3d-canvas-wrap canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
  outline: none;
}

.mug3d-design-thumbs {
  justify-content: center;
}

.mug3d-design-thumbs .thumb-swatch img {
  width: 68px;
  height: 44px;
  object-fit: cover;
  border-radius: 8px;
}

.mug3d-mode-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem;
  background: var(--surface-soft);
  padding: 0.3rem;
  border-radius: 12px;
  border: 1px solid rgba(158, 130, 216, 0.32);
  margin-bottom: 0.6rem;
}

.mug3d-mode-btn {
  min-height: 36px;
  padding: 0.4rem 0.55rem;
  border-radius: 9px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-charcoal);
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 800;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.mug3d-mode-btn.active {
  background: #1B1622;
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(27, 22, 34, 0.28);
}

.mug3d-mode-btn[data-mug-mode="classic"].active {
  background: var(--brand-lilac);
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(158, 130, 216, 0.35);
}

.mug3d-magic-spec-box {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  background: #1B1622;
  color: #FDF8F2;
  border-radius: 12px;
  padding: 0.58rem 0.8rem;
  margin-bottom: 0.65rem;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.35;
  border: 1px solid rgba(158, 130, 216, 0.35);
}

.mug3d-magic-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, #FFFFFF 0%, #FFFFFF 36%, #141215 40%, #141215 100%);
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  flex-shrink: 0;
}

.mug3d-colors-block {
  background: var(--surface-soft);
  border: 1px solid rgba(158, 130, 216, 0.28);
  border-radius: 14px;
  padding: 0.65rem 0.85rem;
  margin-bottom: 0.75rem;
}

.mug3d-color-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.8rem;
  font-weight: 800;
}

.mug3d-color-title {
  color: var(--text-charcoal);
}

.mug3d-color-current {
  color: var(--brand-lilac-deep);
  background: var(--brand-lilac-tint);
  padding: 0.12rem 0.55rem;
  border-radius: 999px;
  font-size: 0.74rem;
}

.mug3d-color-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding: 4px 2px;
  scrollbar-width: none;
}

.mug3d-color-row::-webkit-scrollbar {
  display: none;
}

.mug3d-color-dot {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--swatch, #FFFFFF);
  border: 2px solid rgba(30, 24, 38, 0.22);
  padding: 0;
  flex-shrink: 0;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mug3d-color-dot:hover {
  transform: scale(1.1);
}

.mug3d-color-dot.active {
  border-color: #FFFFFF;
  box-shadow: 0 0 0 2.5px var(--brand-lilac-deep);
  transform: scale(1.14);
}

.mug3d-actions-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.mug3d-pour-btn {
  background: var(--brand-lilac) !important;
  color: #FFFFFF !important;
  font-weight: 800;
  padding: 0.65rem 0.9rem !important;
  font-size: 0.86rem !important;
}

.mug3d-cool-btn {
  padding: 0.65rem 0.85rem !important;
  font-size: 0.82rem !important;
  white-space: nowrap;
}

.mug3d-song-btn {
  grid-column: 1 / -1;
  background: var(--brand-lilac-tint) !important;
  color: var(--brand-lilac-deep) !important;
  font-weight: 800;
  padding: 0.58rem 0.9rem !important;
  font-size: 0.85rem !important;
}

/* --------------------------------------------------------------------------
   3. ILLUMINATED MAGIC MIRROR LIGHT SWITCH (PIXEL-ALIGNED DUAL-IMAGE CROSSFADE ENGINE)
   -------------------------------------------------------------------------- */
.mirror-stage {
  min-height: 0;
  width: 100%;
  border-radius: 16px;
  background: radial-gradient(circle at 45% 35%, #2b211a 0%, #15100d 100%);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 0;
  padding: 0;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(158, 130, 216, 0.25);
  box-shadow: var(--shadow-soft);
  transition: background 0.65s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.mirror-stage.light-on {
  background: radial-gradient(circle at 45% 35%, #8f571a 0%, #4d2909 58%, #1e120a 100%);
  box-shadow:
    0 0 35px rgba(255, 235, 180, 0.85),
    inset 0 0 20px rgba(255, 245, 215, 0.7);
}

.mirror-top-badges {
  position: absolute;
  top: 10px;
  inset-inline-start: 10px;
  width: auto;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  z-index: 6;
  pointer-events: none;
}

.mirror-shape-pill {
  background: rgba(20, 18, 24, 0.78);
  backdrop-filter: blur(10px);
  color: #FFFFFF;
  padding: 0.26rem 0.68rem;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.mirror-stage.light-on .mirror-shape-pill.status-pill {
  background: linear-gradient(90deg, #d4892a, #f2b749);
  color: #1E1E1E;
  border-color: #FFF5D7;
  box-shadow: 0 0 20px rgba(255, 235, 180, 0.85);
}

/* Edge-to-Edge Dual-Image Mirror Container (4:3 proportions showing full mirror body & base) */
.real-mirror-viewport {
  --split-pct: 50%;
  position: relative;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  aspect-ratio: 3 / 4;
  height: auto;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.65);
  border: 0;
  background: #1a120b;
  z-index: 4;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y;
  transition: box-shadow 0.65s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.mirror-stage.light-on .real-mirror-viewport {
  border-color: rgba(255, 235, 180, 0.92);
  box-shadow:
    0 0 36px rgba(255, 235, 180, 0.85),
    0 18px 40px rgba(0, 0, 0, 0.55);
}

/* Stacked Full-Frame Mirror Photographs (Bottom = Light OFF, Top = Light ON) */
.mirror-img-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transform: none;
  display: block;
  pointer-events: none;
  -webkit-user-drag: none;
}

.mirror-img-off {
  z-index: 1;
  opacity: 1;
}

.mirror-img-on {
  z-index: 3;
  opacity: 0;
  filter: brightness(1) contrast(1);
  transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, filter, clip-path;
}

.mirror-stage.light-on .mirror-img-on {
  opacity: 1;
  animation: mirrorLedIgnite 0.72s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes mirrorLedIgnite {
  0% {
    filter: brightness(1.06) contrast(1.02);
  }
  38% {
    filter: brightness(1.18) contrast(1.05);
  }
  100% {
    filter: brightness(1) contrast(1);
  }
}

/* Subtle diagonal mirror reflection glint sweeping across the glass when Light is OFF */
.mirror-surface-glint {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
  opacity: 1;
  transition: opacity 0.5s ease;
}

.mirror-surface-glint::before {
  content: '';
  position: absolute;
  top: 18%;
  left: -75%;
  width: 42%;
  height: 56%;
  background: linear-gradient(
    105deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 250, 240, 0.24) 48%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-24deg);
  filter: blur(2px);
  animation: mirrorGlintSweep 4.8s ease-in-out infinite;
}

@keyframes mirrorGlintSweep {
  0%, 18% { left: -75%; opacity: 0; }
  30% { opacity: 1; }
  62%, 100% { left: 135%; opacity: 0; }
}

.mirror-stage.light-on .mirror-surface-glint,
.real-mirror-viewport.split-mode .mirror-surface-glint {
  opacity: 0;
}

/* ---------- Before / After Split Comparison Mode ---------- */
.real-mirror-viewport.split-mode {
  cursor: ew-resize;
}

.real-mirror-viewport.split-mode .mirror-img-on {
  opacity: 1;
  transition: none;
  -webkit-clip-path: inset(0 0 0 var(--split-pct, 50%));
  clip-path: inset(0 0 0 var(--split-pct, 50%));
}

.mirror-split-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--split-pct, 50%);
  width: 2.5px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.65), 0 0 10px rgba(255, 235, 180, 0.85);
  transform: translateX(-50%);
  z-index: 8;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: ew-resize;
  touch-action: none;
}

.real-mirror-viewport.split-mode .mirror-split-divider {
  display: flex;
}

.mirror-split-handle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border: 2px solid var(--brand-lilac);
  color: var(--text-charcoal);
  font-weight: 800;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.mirror-split-divider:hover .mirror-split-handle {
  transform: scale(1.1);
}

.mirror-split-tag {
  position: absolute;
  top: 12px;
  z-index: 7;
  background: rgba(20, 18, 24, 0.78);
  backdrop-filter: blur(8px);
  color: #FFFFFF;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 0.24rem 0.6rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.25);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mirror-split-tag.tag-off {
  left: 10px;
}

.mirror-split-tag.tag-on {
  right: 10px;
  background: rgba(212, 137, 42, 0.9);
  color: #1E1E1E;
  border-color: #FFF5D7;
}

.real-mirror-viewport.split-mode .mirror-split-tag {
  opacity: 1;
}

.mirror-split-toggle-btn {
  width: 100%;
  min-height: 44px;
  padding: 0.65rem 1rem;
  border-radius: var(--radius-pill);
  border: 1.5px dashed var(--brand-lilac);
  background: rgba(255, 255, 255, 0.85);
  color: var(--brand-lilac-deep);
  font-weight: 800;
  font-size: 0.84rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  box-shadow: var(--shadow-soft);
}

.mirror-split-toggle-btn:hover {
  background: var(--brand-lilac-tint);
  transform: translateY(-3px);
}

.mirror-split-toggle-btn.active {
  background: var(--text-charcoal);
  color: #FFFFFF;
  border-style: solid;
  border-color: var(--text-charcoal);
}

/* ---------- Interactive Physical Switch Hotspot on the Mirror Base ---------- */
.mirror-base-switch-hotspot {
  position: absolute;
  top: 79.5%;
  left: 63.5%;
  transform: translate(-50%, -50%);
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 50%;
  background: rgba(255, 240, 195, 0.28);
  border: 2px solid #FFFFFF;
  box-shadow: 0 0 14px rgba(255, 220, 140, 0.85);
  cursor: pointer;
  z-index: 9;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
}

.hotspot-core-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #FFFDF7;
  box-shadow: 0 0 8px #FFD269, 0 0 14px #FFA826;
}

.mirror-stage.light-on .hotspot-core-dot {
  background: #FFD269;
  box-shadow: 0 0 12px #FFE699, 0 0 20px #FFB32C;
}

.hotspot-pulse-ring {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(255, 230, 165, 0.85);
  animation: mirrorSwitchPulse 1.9s cubic-bezier(0.22, 1, 0.36, 1) infinite;
  pointer-events: none;
}

@keyframes mirrorSwitchPulse {
  0% {
    transform: scale(0.82);
    opacity: 0.95;
  }
  75% {
    transform: scale(1.48);
    opacity: 0;
  }
  100% {
    transform: scale(1.48);
    opacity: 0;
  }
}

/* Floating Tooltip Pointing to the Physical Switch on the Base */
.mirror-switch-tooltip {
  position: absolute;
  top: calc(100% + 9px);
  left: 50%;
  transform: translateX(-56%);
  background: rgba(22, 18, 16, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #FFFDF9;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1.3;
  padding: 0.36rem 0.72rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 225, 160, 0.55);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.48);
  white-space: nowrap;
  pointer-events: none;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.3s ease;
}

.mirror-switch-tooltip::before {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 56%;
  transform: translateX(-50%);
  border-width: 5px;
  border-style: solid;
  border-color: transparent transparent rgba(255, 225, 160, 0.65) transparent;
}

.mirror-base-switch-hotspot:hover .mirror-switch-tooltip {
  background: rgba(125, 95, 194, 0.95);
}

.mirror-stage-footer {
  width: 100%;
  z-index: 6;
}

/* --------------------------------------------------------------------------
   4. PHOTOREALISTIC ROOM FRAME SIZE VISUALIZER (REAL SUNLIT LIVING-ROOM PHOTO)
   -------------------------------------------------------------------------- */
.room-vis-card {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  min-width: 0;
}

.room-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 16px;
  background: #eaded2;
  border: 1px solid rgba(158, 130, 216, 0.28);
  box-shadow: var(--shadow-soft);
  user-select: none;
  -webkit-user-select: none;
  direction: ltr;
}

.room-zoom {
  position: relative;
  width: 100%;
  height: 100%;
  transform-origin: 50% 50%;
  transform: scale(1.15) translate(-1%, 9%);
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.room-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.room-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  display: block;
  pointer-events: none;
}

/* Pixel-accurate inner frame artwork overlays with 100% true, clear colors */
.room-art {
  position: absolute;
  overflow: hidden;
  pointer-events: none;
  z-index: 2;
  mix-blend-mode: normal;
  box-shadow: inset 0 0 0 1px rgba(18, 16, 16, 0.28);
}

.room-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  pointer-events: none;
}

/* Clean interactive tap targets over each of the 3 frames (zero purple border or text overlays) */
.room-frame-hit,
.room-frame-hit:hover,
.room-frame-hit:focus,
.room-frame-hit:focus-visible,
.room-frame-hit.is-selected {
  position: absolute;
  z-index: 4;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  outline: none !important;
  padding: 0;
  cursor: pointer;
}

.room-tag {
  display: none !important;
}

/* Single compact 1-line segmented camera focus bar below the room photo */
.room-focus-bar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.38rem;
  background: var(--surface-soft);
  padding: 0.32rem;
  border-radius: 12px;
  border: 1px solid rgba(158, 130, 216, 0.28);
}

.room-focus-btn {
  min-height: 36px;
  padding: 0.35rem 0.4rem;
  border-radius: 9px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-charcoal);
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 800;
  line-height: 1.15;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: background-color 0.22s ease, color 0.22s ease, box-shadow 0.22s ease;
}

.room-focus-btn:hover {
  background: var(--brand-lilac-tint);
}

.room-focus-btn.active {
  background: var(--brand-lilac);
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(158, 130, 216, 0.35);
}

/* Concise selected size + mounting info pill */
.room-info-pill {
  text-align: center;
  background: var(--brand-lilac-tint);
  color: var(--brand-lilac-deep);
  border: 1px solid rgba(158, 130, 216, 0.35);
  border-radius: 999px;
  padding: 0.38rem 0.85rem;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.3;
}

/* Exact Mounting & Size Specification List in Info Column */
.frame-mount-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.frame-mount-badge {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.65rem 0.9rem;
  border-radius: 12px;
  border: 1.5px solid rgba(158, 130, 216, 0.28);
  background: var(--surface-soft);
  color: var(--text-charcoal);
  font-family: inherit;
  cursor: pointer;
  text-align: start;
  transition: border-color 0.22s ease, background-color 0.22s ease, transform 0.22s ease;
}

.frame-mount-badge strong {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--text-charcoal);
}

.frame-mount-badge span {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--brand-lilac-deep);
  background: var(--brand-lilac-tint);
  padding: 0.22rem 0.6rem;
  border-radius: 999px;
}

.frame-mount-badge:hover,
.frame-mount-badge.active {
  border-color: var(--brand-lilac);
  background: var(--brand-lilac-tint);
}

.frame-mount-badge.active span {
  background: var(--brand-lilac);
  color: #FFFFFF;
}

/* Compact 48x48 Visual Thumbnail Swatches Row (Frames, Kettle, 360 Mug, Mirror) */
.thumb-swatches {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0.65rem;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding: 0.25rem 0.15rem;
  scrollbar-width: none;
}

.thumb-swatches::-webkit-scrollbar {
  display: none;
}

.thumb-swatch {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.26rem;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  flex-shrink: 0;
  color: var(--text-charcoal);
  font-family: inherit;
}

.thumb-swatch img,
.thumb-swatch-emoji {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  object-fit: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  border: 2px solid rgba(158, 130, 216, 0.32);
  background: #FFFFFF;
  box-shadow: 0 3px 8px rgba(30, 25, 20, 0.12);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.thumb-swatch span:last-child {
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.1;
  max-width: 64px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.thumb-swatch.active img,
.thumb-swatch.active .thumb-swatch-emoji {
  border-color: var(--brand-lilac);
  box-shadow: 0 0 0 3px rgba(158, 130, 216, 0.35), 0 6px 14px rgba(94, 65, 163, 0.28);
  transform: translateY(-2px);
}

.thumb-swatch.active span:last-child {
  color: var(--brand-lilac-deep);
}

.thumb-swatches.on-dark .thumb-swatch {
  color: #FDF8F2;
}

.thumb-swatches.on-dark .thumb-swatch.active span:last-child {
  color: #EBE4F8;
}

.studio-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 0.95rem;
}

.studio-action-row.stacked {
  flex-direction: column;
}
/* --------------------------------------------------------------------------
   5. 16-PHOTO MINI ALBUM KEYCHAIN — PHOTOREALISTIC 3D CLEAR PVC FLIPBOOK
   Closed (snapped) → unclasp → two-page spread with real rotateY page turns.
   Leaf model: leaf 0 = front cover sleeve, leaves 1–7 double-sided, leaf 8 = back sleeve.
   -------------------------------------------------------------------------- */
.kc-stage {
  /* Single sleeve = 3:4 pocket proportions; open spread = 2 × --pw */
  --pw: 210px;
  --ph: 280px;
  --dir: 1;
  --kc-ease: cubic-bezier(0.645, 0.045, 0.355, 1);
  --kc-spring: cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
  border-radius: var(--radius-lg);
  /* Warm sunlit ivory tabletop (like the reference product shot) */
  background:
    radial-gradient(120% 70% at 18% 8%, rgba(255, 249, 238, 0.95) 0%, rgba(255, 249, 238, 0) 60%),
    radial-gradient(90% 60% at 85% 95%, rgba(235, 228, 248, 0.75) 0%, rgba(235, 228, 248, 0) 70%),
    linear-gradient(160deg, #FDF8F2 0%, #F7EFE4 55%, #F1E6D8 100%);
  border: 1px solid rgba(158, 130, 216, 0.25);
  box-shadow:
    0 12px 32px -8px rgba(30, 30, 30, 0.08),
    0 4px 12px -2px rgba(158, 130, 216, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  padding: 12px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  overflow: hidden;
  min-width: 0;
}

html[dir="rtl"] .kc-stage {
  --dir: -1;
}

/* Soft diagonal window light disabled for 100% clear photo contrast */
.kc-stage::before {
  display: none;
}

.kc-stage > * {
  position: relative;
}

/* Floating counter pill — sits ABOVE the keychain, never inside a sleeve */
.kc-counter-pill {
  z-index: 3;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(158, 130, 216, 0.3);
  color: var(--brand-lilac-deep);
  font-weight: 800;
  font-size: 0.84rem;
  padding: 0.4rem 1.05rem;
  border-radius: var(--radius-pill);
  box-shadow: 0 6px 18px -6px rgba(94, 65, 163, 0.35);
  min-width: 13.5rem;
  text-align: center;
  font-variant-numeric: tabular-nums;
  transition: transform 0.35s var(--kc-spring);
}

.kc-counter-pill.bump {
  animation: kcPillBump 0.45s var(--kc-spring);
}

@keyframes kcPillBump {
  0% { transform: scale(1); }
  40% { transform: scale(1.06); }
  100% { transform: scale(1); }
}

/* Scene reserves room for the clasp hardware above the album (no layout shift) */
.kc-scene {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: calc(var(--pw) * 0.98);
  padding-bottom: 1.4rem;
  touch-action: pan-y;
  outline: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.kc-scene:focus-visible .kc-book {
  outline: 2px dashed rgba(158, 130, 216, 0.7);
  outline-offset: 14px;
  border-radius: 12px;
}

.kc-float {
  animation: kcIdleFloat 5.5s ease-in-out infinite;
}

@keyframes kcIdleFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

.kc-book {
  position: relative;
  width: calc(var(--pw) * 2);
  height: var(--ph);
  perspective: 1600px;
  perspective-origin: 50% 42%;
  transition: transform 0.8s var(--kc-spring);
  cursor: pointer;
}

.kc-book.is-closed {
  /* Center the single closed sleeve block */
  transform: translateX(calc(var(--pw) * -0.5 * var(--dir)));
}

.kc-book.is-open {
  /* Slight offset balances the opened strap on the outer side */
  transform: translateX(calc(var(--pw) * -0.1 * var(--dir)));
}

/* Contact shadow on the tabletop */
.kc-floor-shadow {
  display: block;
  width: calc(var(--pw) * 1.05);
  height: 18px;
  margin-top: 10px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(40, 30, 20, 0.22), rgba(40, 30, 20, 0));
  transition: width 0.8s var(--kc-spring), transform 0.8s var(--kc-spring);
  pointer-events: none;
}

.kc-stage.is-open .kc-floor-shadow {
  width: calc(var(--pw) * 2.15);
}

/* ---------- Metallic hardware (SVG lobster clasp, keyring & chain) ---------- */
.kc-hardware {
  --tilt: calc(-17deg * var(--dir));
  position: absolute;
  z-index: 500;
  width: calc(var(--pw) * 0.5);
  height: auto;
  aspect-ratio: 84 / 172;
  left: calc(var(--pw) - var(--pw) * 0.25);
  bottom: calc(100% - 12px);
  transform-origin: 50% 100%;
  transform: rotate(var(--tilt));
  pointer-events: none;
  overflow: visible;
}

.kc-hardware.swing {
  animation: kcSwing 1.7s cubic-bezier(0.25, 0.6, 0.3, 1);
}

@keyframes kcSwing {
  0% { transform: rotate(var(--tilt)); }
  16% { transform: rotate(calc(var(--tilt) + 11deg)); }
  38% { transform: rotate(calc(var(--tilt) - 7deg)); }
  60% { transform: rotate(calc(var(--tilt) + 3.5deg)); }
  80% { transform: rotate(calc(var(--tilt) - 1.5deg)); }
  100% { transform: rotate(var(--tilt)); }
}

.kc-grommet {
  position: absolute;
  z-index: 510;
  width: 15px;
  height: 15px;
  left: calc(var(--pw) - 7.5px);
  top: 4.5px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #F8F9FA 0%, #CED4DA 34%, #6C757D 72%, #343A40 100%);
  box-shadow:
    0 1.5px 3px rgba(30, 25, 20, 0.45),
    inset 0 0 0 1px rgba(255, 255, 255, 0.55);
  pointer-events: none;
}

.kc-grommet::after {
  content: '';
  position: absolute;
  inset: 4.5px;
  border-radius: 50%;
  background: radial-gradient(circle at 60% 65%, rgba(255, 255, 255, 0.35), rgba(73, 80, 87, 0.55));
  box-shadow: inset 0 1px 1.5px rgba(0, 0, 0, 0.55);
}

/* ---------- Clear PVC spine ---------- */
.kc-spine {
  position: absolute;
  z-index: 2;
  left: calc(var(--pw) - 8px);
  top: -3px;
  width: 16px;
  height: calc(var(--ph) + 6px);
  border-radius: 6px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.75) 45%, rgba(255, 255, 255, 0.2) 100%),
    rgba(255, 255, 255, 0.28);
  border: 1.5px solid rgba(255, 255, 255, 0.8);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.3), 0 6px 14px rgba(30, 25, 20, 0.14);
}

/* ---------- Leaves (each = one clear PVC sleeve, double-sided) ---------- */
.kc-leaf,
.kc-plate-turned {
  position: absolute;
  top: 0;
  width: var(--pw);
  height: var(--ph);
  border-radius: 9px;
}

.kc-leaf {
  inset-inline-start: 50%;
  transform-origin: left center;
  transform-style: preserve-3d;
  transform: rotateY(0deg);
  transition: transform var(--dur, 650ms) var(--kc-ease) var(--d, 0ms);
  border-start-start-radius: 3px;
  border-end-start-radius: 3px;
}

html[dir="rtl"] .kc-leaf {
  transform-origin: right center;
}

.kc-leaf.is-flipped {
  transform: rotateY(calc(-180deg * var(--dir)));
}

.kc-leaf-base {
  cursor: pointer;
}

/* Static plate beneath the turned stack (only visible when open) */
.kc-plate-turned {
  z-index: 4;
  inset-inline-end: 50%;
  border-start-end-radius: 3px;
  border-end-end-radius: 3px;
  background: rgba(255, 255, 255, 0.22);
  border: 1.5px solid rgba(255, 255, 255, 0.75);
  opacity: 0;
  transition: opacity 0.45s ease 0.15s;
  pointer-events: none;
}

.kc-book.is-open .kc-plate-turned {
  opacity: 1;
}

/* Sleeve face = clear PVC pocket (6px heat-sealed margin) holding a full-bleed photo */
.kc-face {
  position: absolute;
  inset: 0;
  padding: 6px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  border: 1.5px solid rgba(255, 255, 255, 0.75);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.35);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  overflow: hidden;
  transition: box-shadow 0.3s ease;
}

.kc-face-front {
  border-start-start-radius: 3px;
  border-end-start-radius: 3px;
}

.kc-face-back {
  transform: rotateY(180deg);
  border-start-end-radius: 3px;
  border-end-end-radius: 3px;
}

/* Heat-sealed binding strip along the spine edge */
.kc-face::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 5px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.65), rgba(255, 255, 255, 0.12));
  pointer-events: none;
}

.kc-face-front::after {
  inset-inline-start: 0;
}

.kc-face-back::after {
  inset-inline-end: 0;
  transform: scaleX(-1);
}

.kc-leaf.turning .kc-face {
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.35), 0 18px 35px rgba(30, 25, 20, 0.18);
}

/* 2px white photo-paper border, full-bleed vertical photo */
.kc-photo {
  width: 100%;
  height: 100%;
  border: 2px solid #FFFFFF;
  border-radius: 2px;
  background: #FFFFFF;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(30, 25, 20, 0.2);
}

.kc-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
  pointer-events: none;
  -webkit-user-drag: none;
}

/* Diagonal glossy plastic specular highlight */
.kc-gloss {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(125deg, rgba(255, 255, 255, 0.45) 0%, rgba(255, 255, 255, 0.05) 38%, transparent 50%),
    linear-gradient(125deg, transparent 64%, rgba(255, 255, 255, 0.16) 71%, transparent 77%);
  background-size: 100% 100%, 220% 100%;
  background-position: 0 0, 100% 0;
  pointer-events: none;
}

.kc-leaf.turning .kc-gloss {
  animation: kcGlossSweep var(--dur, 650ms) var(--kc-ease) var(--d, 0ms) both;
}

@keyframes kcGlossSweep {
  from { background-position: 0 0, 100% 0; }
  to { background-position: 0 0, 0% 0; }
}

/* Dynamic shading on the turning leaf */
.kc-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(25, 18, 12, 0.6) 0%, rgba(25, 18, 12, 0.18) 100%);
  opacity: 0;
  pointer-events: none;
}

html[dir="rtl"] .kc-shade {
  background: linear-gradient(270deg, rgba(25, 18, 12, 0.6) 0%, rgba(25, 18, 12, 0.18) 100%);
}

.kc-leaf.turn-fwd .kc-face-front .kc-shade,
.kc-leaf.turn-back .kc-face-back .kc-shade {
  animation: kcShadeIn var(--dur, 650ms) var(--kc-ease) var(--d, 0ms) both;
}

.kc-leaf.turn-fwd .kc-face-back .kc-shade,
.kc-leaf.turn-back .kc-face-front .kc-shade {
  animation: kcShadeOut var(--dur, 650ms) var(--kc-ease) var(--d, 0ms) both;
}

@keyframes kcShadeIn {
  0% { opacity: 0; }
  50%, 100% { opacity: 0.55; }
}

@keyframes kcShadeOut {
  0%, 50% { opacity: 0.55; }
  100% { opacity: 0; }
}

/* Moving cast shadow across the spread during a page turn */
.kc-cast {
  position: absolute;
  z-index: 180;
  top: 0;
  width: var(--pw);
  height: var(--ph);
  border-radius: 9px;
  opacity: 0;
  pointer-events: none;
}

.kc-cast-a {
  inset-inline-start: 50%;
  transform-origin: left center;
  background: linear-gradient(90deg, rgba(25, 18, 12, 0.42) 0%, rgba(25, 18, 12, 0.12) 55%, rgba(25, 18, 12, 0) 100%);
}

.kc-cast-b {
  inset-inline-end: 50%;
  transform-origin: right center;
  background: linear-gradient(270deg, rgba(25, 18, 12, 0.42) 0%, rgba(25, 18, 12, 0.12) 55%, rgba(25, 18, 12, 0) 100%);
}

html[dir="rtl"] .kc-cast-a {
  transform-origin: right center;
  background: linear-gradient(270deg, rgba(25, 18, 12, 0.42) 0%, rgba(25, 18, 12, 0.12) 55%, rgba(25, 18, 12, 0) 100%);
}

html[dir="rtl"] .kc-cast-b {
  transform-origin: left center;
  background: linear-gradient(90deg, rgba(25, 18, 12, 0.42) 0%, rgba(25, 18, 12, 0.12) 55%, rgba(25, 18, 12, 0) 100%);
}

@keyframes kcCastRise {
  0% { opacity: 0; transform: scaleX(1); }
  18% { opacity: 0.85; transform: scaleX(0.82); }
  49% { opacity: 0.95; transform: scaleX(0.08); }
  51%, 100% { opacity: 0; transform: scaleX(0.05); }
}

@keyframes kcCastLand {
  0%, 49% { opacity: 0; transform: scaleX(0.05); }
  53% { opacity: 0.95; transform: scaleX(0.12); }
  84% { opacity: 0.55; transform: scaleX(0.86); }
  100% { opacity: 0; transform: scaleX(1); }
}

/* Snap stud on the front cover (visible once the strap is unclasped) */
.kc-cover-stud {
  position: absolute;
  z-index: 2;
  top: calc(50% - 7px);
  /* = strap width − (4px overhang + 7px padding + 1.5px border) − dome radius − stud radius */
  inset-inline-end: calc(var(--pw) * 0.36 - 12.5px - var(--ph) * 0.06 - 7px);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, #495057 0 2.5px, #CED4DA 3px, #F8F9FA 4.5px, #ADB5BD 6px, #6C757D 7px);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
  pointer-events: none;
}

/* ---------- Clear PVC closure strap + 3D metallic dome snap ---------- */
.kc-strap {
  --sw: calc(var(--pw) * 0.36);
  position: absolute;
  z-index: 420;
  top: calc(50% - var(--ph) * 0.105);
  inset-inline-start: calc(var(--pw) * 2 - var(--sw) + 4px);
  width: var(--sw);
  height: calc(var(--ph) * 0.21);
  padding: 0;
  margin: 0;
  border: 0;
  background: none;
  cursor: pointer;
  transform-origin: right center;
  transform-style: preserve-3d;
  transform: rotateY(0deg);
  transition:
    transform 0.6s var(--kc-ease),
    z-index 0s linear 0.3s;
  -webkit-tap-highlight-color: transparent;
}

html[dir="rtl"] .kc-strap {
  transform-origin: left center;
}

.kc-book.is-unclasped .kc-strap {
  z-index: 91;
  transform: rotateY(calc(150deg * var(--dir)));
}

.kc-strap:focus-visible {
  outline: 2px solid var(--brand-lilac);
  outline-offset: 3px;
  border-radius: 999px;
}

.kc-strap-face {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0.08) 45%, rgba(255, 255, 255, 0.25) 100%),
    rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  box-shadow:
    inset 0 0 0 2px rgba(255, 255, 255, 0.3),
    0 6px 14px rgba(30, 25, 20, 0.22);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.kc-strap-front {
  justify-content: flex-start;
  padding-inline-start: 7px;
  border-radius: 999px 4px 4px 999px;
}

html[dir="rtl"] .kc-strap-front {
  border-radius: 4px 999px 999px 4px;
}

.kc-strap-back {
  justify-content: flex-end;
  padding-inline-end: 7px;
  transform: rotateY(180deg);
  border-radius: 4px 999px 999px 4px;
}

html[dir="rtl"] .kc-strap-back {
  border-radius: 999px 4px 4px 999px;
}

.kc-snap-dome {
  position: relative;
  width: calc(var(--ph) * 0.12);
  height: calc(var(--ph) * 0.12);
  border-radius: 50%;
  background: radial-gradient(circle at 34% 28%, #FFFFFF 0%, #F8F9FA 12%, #E3DCCB 30%, #CED4DA 42%, #8D949B 64%, #495057 86%, #343A40 100%);
  box-shadow:
    0 0 0 1.5px #ADB5BD,
    0 0 0 2.6px #6C757D,
    0 3px 6px rgba(0, 0, 0, 0.38),
    inset 0 -2px 3px rgba(0, 0, 0, 0.35),
    inset 0 2px 2px rgba(255, 255, 255, 0.85);
  transition: transform 0.25s var(--kc-spring);
}

.kc-snap-dome::after {
  content: '';
  position: absolute;
  top: 16%;
  left: 20%;
  width: 34%;
  height: 22%;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  filter: blur(0.6px);
  transform: rotate(-30deg);
}

.kc-strap:hover .kc-snap-dome {
  transform: scale(1.08);
}

.kc-book.snap-pop .kc-snap-dome {
  animation: kcSnapPop 0.42s var(--kc-spring);
}

@keyframes kcSnapPop {
  0% { transform: scale(1.18); }
  45% { transform: scale(0.9); }
  100% { transform: scale(1); }
}

.kc-snap-socket {
  width: calc(var(--ph) * 0.1);
  height: calc(var(--ph) * 0.1);
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, #343A40 0 26%, #ADB5BD 30%, #F8F9FA 46%, #CED4DA 62%, #6C757D 100%);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

/* Disable all motion instantly while switching LTR ↔ RTL */
.kc-book.kc-instant,
.kc-book.kc-instant * {
  transition: none !important;
  animation: none !important;
}

/* ---------- Hint, controls & thumbnail strip ---------- */
.kc-hint {
  margin: -0.35rem 0 0;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--text-muted);
  text-align: center;
  min-height: 1.2em;
}

.kc-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  width: 100%;
}

.kc-btn {
  min-height: 44px;
  padding: 0.6rem 1rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(158, 130, 216, 0.3);
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: var(--text-charcoal);
  font-weight: 700;
  font-size: 0.84rem;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  transition:
    transform 0.35s var(--kc-spring),
    box-shadow 0.35s var(--kc-spring),
    background-color 0.35s var(--kc-spring),
    border-color 0.35s var(--kc-spring),
    color 0.35s var(--kc-spring),
    opacity 0.25s ease;
}

.kc-btn:hover:not(:disabled) {
  transform: translateY(-4px);
  border-color: var(--brand-lilac);
  box-shadow: 0 14px 28px -10px rgba(94, 65, 163, 0.35);
}

.kc-btn:active:not(:disabled) {
  transform: scale(0.98);
}

.kc-btn:disabled {
  opacity: 1;
  background: #EDE7F3;
  color: #544663;
  border: 1px dashed rgba(84, 70, 99, 0.45);
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.kc-btn-primary {
  background: linear-gradient(135deg, #9E82D8 0%, #7D5FC2 100%);
  color: #FFFFFF;
  border-color: #7D5FC2;
  box-shadow: 0 10px 24px -8px rgba(125, 95, 194, 0.6);
}

.kc-btn-primary:hover:not(:disabled) {
  background: linear-gradient(135deg, #8E70CF 0%, #6B4DB3 100%);
}

.kc-btn.is-active {
  background: var(--text-charcoal);
  color: #FFFFFF;
  border-color: var(--text-charcoal);
}

.kc-thumbs-wrap {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 0.65rem 0.7rem 0.55rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(158, 130, 216, 0.2);
}

.kc-thumbs-label {
  font-size: 0.74rem;
  font-weight: 800;
  color: var(--brand-lilac-deep);
  letter-spacing: 0.02em;
}

.kc-thumbs {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 6px;
  padding: 4px 2px 2px;
}

.kc-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  padding: 0;
  border-radius: 6px;
  border: 1.5px solid rgba(255, 255, 255, 0.95);
  background: #FFFFFF;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(30, 25, 20, 0.16);
  opacity: 0.76;
  transition: transform 0.3s var(--kc-spring), opacity 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.kc-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
  display: block;
  pointer-events: none;
}

.kc-thumb span {
  position: absolute;
  inset-inline-end: 1px;
  bottom: 1px;
  font-size: 0.55rem;
  font-weight: 800;
  line-height: 1;
  padding: 1px 3px;
  border-radius: 4px;
  background: rgba(30, 30, 30, 0.6);
  color: #FFFFFF;
}

.kc-thumb:hover {
  opacity: 1;
  transform: translateY(-3px);
}

.kc-thumb.is-active {
  opacity: 1;
  border-color: var(--brand-lilac);
  box-shadow: 0 0 0 2px rgba(158, 130, 216, 0.55), 0 6px 12px -4px rgba(94, 65, 163, 0.45);
  transform: translateY(-3px);
}

/* Info column extras */
.kc-spec-chips {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin: 0 0 1.1rem;
  padding: 0;
}

.kc-spec-chips li {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-charcoal);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(158, 130, 216, 0.25);
  border-radius: var(--radius-sm);
  padding: 0.55rem 0.7rem;
  box-shadow: 0 4px 12px -6px rgba(94, 65, 163, 0.2);
}

.kc-quote-box {
  background: var(--surface-soft);
  border: 1px solid rgba(158, 130, 216, 0.25);
  border-radius: 16px;
  padding: 0.85rem;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  box-shadow: var(--shadow-soft);
}

.kc-quote-box img {
  width: 74px;
  height: 74px;
  flex-shrink: 0;
  object-fit: cover;
  border-radius: 12px;
}

.kc-quote-box p {
  font-size: 0.85rem;
  color: var(--text-charcoal);
  font-weight: 600;
  margin: 0;
}

/* Responsive sleeve sizing (keeps strict 3:4 pocket proportions) */
@media (max-width: 1240px) and (min-width: 1025px) {
  .kc-stage {
    --pw: 190px;
    --ph: 253px;
  }
}

@media (max-width: 560px) {
  .kc-stage {
    --pw: 210px;
    --ph: 268px;
    padding: 12px 8px;
  }

  .kc-stage.is-open {
    --pw: clamp(142px, 42vw, 180px);
    --ph: clamp(190px, 56vw, 240px);
  }

  .kc-btn {
    font-size: 0.78rem;
    padding: 0.55rem 0.8rem;
    flex: 1 1 calc(50% - 0.5rem);
  }

  .kc-spec-chips {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 400px) {
  .kc-stage {
    --pw: 195px;
    --ph: 252px;
  }

  .kc-stage.is-open {
    --pw: clamp(136px, 42vw, 170px);
    --ph: clamp(182px, 56vw, 226px);
  }

  .kc-counter-pill {
    min-width: 0;
    font-size: 0.78rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .kc-float,
  .kc-hardware.swing {
    animation: none;
  }
}

/* ==========================================================================
   PRODUCT CATALOG & OCCASION FILTER BAR (Warm Cream Band + Soft 20px Cards)
   ========================================================================== */
#gift-catalog {
  background-color: var(--bg-cream);
}

.occasion-filter-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-75);
  margin-bottom: var(--space-400);
}

.filter-pill-btn {
  min-height: 42px;
  padding: var(--space-75) var(--space-250);
  border-radius: var(--radius-pill);
  border: 1px solid var(--hairline);
  background-color: var(--surface-white);
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.875rem;
  box-shadow: var(--shadow-soft);
  cursor: pointer;
}

.filter-pill-btn:hover {
  color: var(--brand-lilac-deep);
  border-color: var(--brand-lilac);
  transform: translateY(-2px);
}

.filter-pill-btn.active {
  background-color: var(--brand-lilac);
  color: #FFFFFF;
  border-color: var(--brand-lilac);
  box-shadow: 0 10px 22px -8px rgba(118, 73, 196, 0.45);
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-300);
  align-items: stretch;
}

.product-card {
  background-color: var(--surface-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform var(--dur-mid) var(--ease-out), border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-mid) var(--ease-out);
}

.product-card:hover {
  transform: translateY(-3px);
  border-color: var(--brand-lilac);
  box-shadow: var(--shadow-elevated);
}

.product-media-box {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  background-color: var(--surface-raised);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-bottom: 1px solid var(--hairline);
}

.product-media-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Magic mirror photo is portrait (3:4): use a square box and anchor the crop
   low so the whole mirror + base stays visible instead of being cut off. */
.product-media-box.product-media-box--mirror {
  aspect-ratio: 1 / 1;
  height: auto;
}

.product-media-box.product-media-box--mirror img {
  object-position: 50% 78%;
}

.product-interactive-badge {
  display: none;
}

.product-try-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 42px;
  background-color: var(--brand-lilac-tint);
  color: var(--brand-lilac-deep);
  border: 1px solid var(--hairline-strong);
  padding: var(--space-75) var(--space-200);
  border-radius: var(--radius-pill);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
}

.product-try-btn:hover {
  background-color: var(--brand-lilac);
  border-color: var(--brand-lilac);
  color: #FFFFFF;
  transform: translateY(-2px);
}

.product-card-actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-75);
}

.custom-product-stage {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* Product Card Body */
.product-card-body {
  padding: var(--space-300);
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-spec-line {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--brand-lilac-deep);
  margin-bottom: var(--space-50);
}

.product-title {
  font-size: 1.1875rem;
  font-weight: 700;
  color: var(--text-charcoal);
  margin-bottom: var(--space-50);
  line-height: 1.4;
}

.product-viewers-row {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--accent-coral);
  background-color: var(--accent-coral-soft);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  align-self: flex-start;
  margin-bottom: var(--space-100);
  font-variant-numeric: tabular-nums;
}

.viewers-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--accent-coral);
  flex-shrink: 0;
}

.product-copy {
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: var(--space-200);
  flex: 1;
}

.product-options-wrap {
  margin-bottom: var(--space-200);
}

.product-options-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: var(--space-75);
}

.product-option-pills {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-75);
}

.option-chip {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px var(--space-100);
  border-radius: var(--radius-sm);
  font-size: 0.8125rem;
  font-weight: 500;
  background-color: var(--surface-raised);
  color: var(--text-charcoal);
  border: 1px solid transparent;
  cursor: pointer;
  text-align: start;
}

.option-chip:hover {
  border-color: var(--hairline-strong);
}

.option-chip.active {
  background-color: var(--brand-lilac-tint);
  color: var(--brand-lilac-deep);
  border-color: var(--brand-lilac);
  font-weight: 600;
}

/* Product Card Official WhatsApp CTA */
.product-wa-cta {
  width: 100%;
  min-height: 46px;
  padding: var(--space-100) var(--space-250);
  border-radius: var(--radius-pill);
  background-color: var(--whatsapp-green);
  color: var(--whatsapp-text);
  font-weight: 600;
  font-size: 0.9375rem;
  border: 1px solid rgba(6, 48, 26, 0.14);
  box-shadow: var(--whatsapp-shadow);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-75);
}

.product-wa-cta:hover {
  background-color: var(--whatsapp-hover);
  box-shadow: var(--whatsapp-shadow-hover);
  transform: translateY(-2px);
}

.catalog-policy-notes {
  margin-top: var(--space-400);
  padding-top: var(--space-300);
  border-top: 1px solid var(--hairline);
  display: flex;
  flex-direction: column;
  gap: var(--space-50);
}

/* ==========================================================================
   HOW TO ORDER IN 3 EASY STEPS
   ========================================================================== */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-300);
}

.step-card {
  background-color: var(--surface-white);
  border-radius: var(--radius-lg);
  padding: var(--space-300);
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow-soft);
  text-align: start;
}

.step-number-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background-color: var(--brand-lilac-tint);
  color: var(--brand-lilac-deep);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: var(--space-200);
}

.step-card h3 {
  font-size: 1.0625rem;
  font-weight: 500;
  margin-bottom: var(--space-75);
  color: var(--text-charcoal);
}

.step-card p {
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--text-secondary);
}

/* ==========================================================================
   SOCIAL MEDIA & VIDEO REELS SHOWCASE
   ========================================================================== */
.reels-social-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: var(--space-400);
  align-items: center;
}

.reel-phone-frame {
  background-color: #1B1815;
  border-radius: var(--radius-xl);
  padding: var(--space-75);
  border: 1px solid var(--hairline-strong);
  box-shadow: var(--shadow-elevated);
  position: relative;
  overflow: hidden;
}

.reel-phone-frame video {
  width: 100%;
  height: 416px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.reel-overlay-bar {
  position: absolute;
  bottom: var(--space-200);
  inset-inline: var(--space-200);
  background-color: rgba(27, 24, 21, 0.84);
  color: #EFE9DE;
  padding: var(--space-75) var(--space-100);
  border-radius: var(--radius-sm);
  font-size: 0.8125rem;
  font-weight: 400;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-100);
}

.social-cards-stack {
  display: flex;
  flex-direction: column;
  gap: var(--space-200);
}

.social-platform-card {
  background-color: var(--surface-white);
  border-radius: var(--radius-lg);
  padding: var(--space-250);
  border: 1px solid var(--hairline);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-200);
  box-shadow: var(--shadow-soft);
  transition: border-color var(--dur-fast) var(--ease-out), background-color var(--dur-fast) var(--ease-out);
}

.social-platform-card:hover {
  border-color: var(--hairline-strong);
  background-color: var(--surface-raised);
}

.social-card-left {
  display: flex;
  align-items: center;
  gap: var(--space-200);
}

.social-icon-circle {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--surface-raised);
  color: var(--text-charcoal);
  border: 1px solid var(--hairline);
  flex-shrink: 0;
}

.social-card-title {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-charcoal);
  margin-bottom: 2px;
}

.social-card-sub {
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

.social-link-label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--brand-lilac-deep);
  white-space: nowrap;
}

/* ==========================================================================
   INTERACTIVE LOCATION & GOOGLE MAPS SECTION
   ========================================================================== */
.location-grid {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: var(--space-300);
  align-items: stretch;
}

.store-info-card {
  background-color: var(--surface-white);
  border-radius: var(--radius-lg);
  padding: var(--space-400);
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--space-300);
}

.store-brand-head {
  display: flex;
  align-items: center;
  gap: var(--space-200);
  margin-bottom: var(--space-200);
}

.store-logo-thumb {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--hairline);
  background-color: #FFFFFF;
  object-fit: contain;
}

.store-card-title {
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--text-charcoal);
}

.store-card-sub {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.address-box {
  background-color: var(--surface-raised);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
  padding: var(--space-200);
  margin-bottom: var(--space-200);
}

.address-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: var(--space-50);
}

.address-value {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-charcoal);
}

.store-phone-row {
  display: flex;
  align-items: center;
  gap: var(--space-75);
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.store-phone-row .ui-icon {
  color: var(--text-muted);
}

.store-phone-link {
  color: var(--brand-lilac-deep);
  font-weight: 500;
}

.store-phone-link:hover {
  text-decoration: underline;
}

.store-actions-stack {
  display: flex;
  flex-direction: column;
  gap: var(--space-100);
}

.store-actions-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-100);
}

.map-embed-card {
  position: relative;
  overflow: hidden;
  background-color: var(--surface-white);
  border-radius: var(--radius-lg);
  padding: var(--space-75);
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow-soft);
  min-height: 360px;
  display: flex;
}

.map-embed-card iframe {
  width: 100%;
  height: 100%;
  min-height: 344px;
  border: 0;
  border-radius: var(--radius-xs);
}

/* ==========================================================================
   WARM PLUM-INK FOOTER & LEGAL METADATA
   ========================================================================== */
.site-footer {
  background-color: #211629;
  color: #FDF6F0;
  padding: var(--space-700) 0 var(--space-800);
  border-top: 2px solid rgba(118, 73, 196, 0.35);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.85fr 0.85fr 1.25fr;
  gap: var(--space-400);
  margin-bottom: var(--space-500);
}

.footer-brand-box {
  display: flex;
  flex-direction: column;
  gap: var(--space-200);
}

.footer-logo-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-100);
  align-self: flex-start;
}

.footer-logo-badge img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  background-color: #FFFFFF;
  border-radius: var(--radius-sm);
  padding: 2px;
}

.footer-brand-name {
  display: block;
  font-size: 1rem;
  font-weight: 500;
  color: #EFE9DE;
}

.footer-brand-sub {
  display: block;
  font-size: 0.75rem;
  color: #AAA398;
}

.footer-about {
  font-size: 0.875rem;
  line-height: 1.7;
  color: #AAA398;
}

.footer-col h4 {
  color: #EFE9DE;
  font-size: 0.9375rem;
  font-weight: 500;
  margin-bottom: var(--space-200);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-100);
}

.footer-meta-list li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 0.875rem;
  color: #D6CFC3;
}

.footer-meta-key {
  font-size: 0.75rem;
  color: #968D81;
}

.footer-meta-en {
  font-size: 0.8125rem;
  color: #968D81;
}

.footer-phone-link {
  color: #EFE9DE !important;
  font-weight: 500;
}

.footer-social-inline {
  flex-direction: row !important;
  flex-wrap: wrap;
  gap: var(--space-200) !important;
  padding-top: var(--space-75);
}

.footer-links a,
.footer-links button {
  color: #AAA398;
  font-size: 0.875rem;
  background: none;
  border: none;
  cursor: pointer;
  text-align: inherit;
  transition: color var(--dur-fast) var(--ease-out);
}

.footer-links a:hover,
.footer-links button:hover {
  color: #EFE9DE;
}

.footer-bottom {
  border-top: 1px solid rgba(239, 233, 222, 0.1);
  padding-top: var(--space-300);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-200);
  font-size: 0.8125rem;
  color: #968D81;
}

/* ==========================================================================
   MODALS (QR DEMO, PRIVACY, TERMS, LIVE CUSTOMIZER)
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(31, 27, 22, 0.56);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--space-200);
}

.modal-backdrop.open {
  display: flex;
}

.modal-card {
  background-color: var(--surface-white);
  border-radius: var(--radius-xl);
  border: 1px solid var(--hairline-strong);
  max-width: 780px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  padding: var(--space-400);
  position: relative;
  box-shadow: var(--shadow-elevated);
}

.modal-card-narrow {
  max-width: 520px;
  text-align: center;
}

.modal-close-btn {
  position: sticky;
  top: 0;
  float: inline-end;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--hairline);
  background-color: var(--surface-raised);
  color: var(--text-charcoal);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
}

.modal-close-btn:hover {
  border-color: var(--hairline-strong);
}

.modal-title {
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: var(--space-100);
  color: var(--text-charcoal);
}

.modal-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-200);
}

.modal-audio-action {
  margin-bottom: var(--space-200);
}

.qr-scanner-box {
  width: 192px;
  height: 192px;
  margin-inline: auto;
  margin-bottom: var(--space-200);
  border-radius: var(--radius-md);
  padding: var(--space-100);
  background-color: #FFFFFF;
  border: 1px solid var(--hairline-strong);
  overflow: hidden;
}

.qr-scanner-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.qr-feature-list {
  list-style: none;
  text-align: start;
  background-color: var(--surface-raised);
  padding: var(--space-200);
  border-radius: var(--radius-sm);
  border: 1px solid var(--hairline);
  margin-bottom: var(--space-300);
  display: flex;
  flex-direction: column;
  gap: var(--space-75);
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   FLOATING MOBILE WHATSAPP BUTTON (Official Green #25D366 + Dark Green #06301A)
   ========================================================================== */
.floating-wa-btn {
  position: fixed;
  bottom: var(--space-250);
  inset-inline-end: var(--space-250);
  z-index: 1500;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-75);
  background-color: var(--whatsapp-green);
  color: var(--whatsapp-text);
  padding: var(--space-100) var(--space-250);
  border-radius: var(--radius-pill);
  border: 1px solid rgba(6, 48, 26, 0.14);
  font-weight: 600;
  font-size: 0.9375rem;
  box-shadow: var(--whatsapp-shadow);
  transition: background-color var(--dur-fast) var(--ease-out), opacity var(--dur-mid) var(--ease-out), transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}

.floating-wa-btn:hover {
  background-color: var(--whatsapp-hover);
  box-shadow: var(--whatsapp-shadow-hover);
  transform: translateY(-2px);
}

/* Show floating WhatsApp button on mobile only (desktop header already carries persistent WhatsApp CTA) */
@media (min-width: 769px) {
  .floating-wa-btn {
    display: none;
  }
}

.floating-wa-btn.is-hidden-in-studio {
  opacity: 0 !important;
  pointer-events: none !important;
}

.toast-notification {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(12px);
  background-color: var(--ink-primary);
  color: var(--surface-white);
  padding: var(--space-100) var(--space-250);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-mid) var(--ease-out), transform var(--dur-mid) var(--ease-out);
  z-index: 2500;
}

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

/* ==========================================================================
   TAGLINE SECTION
   ========================================================================== */
.tagline-reveal-section {
  background-color: var(--bg-lilac-soft);
  padding: var(--space-800) 0;
}

.tagline-reveal-inner {
  max-width: 720px;
  margin-inline: auto;
  text-align: center;
}

.tagline-reveal-heading {
  color: var(--text-charcoal);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  line-height: 1.45;
  font-weight: 500;
}

.tagline-reveal-heading .reveal-word {
  display: inline-block;
  opacity: 0.3;
  transition: opacity var(--dur-enter) var(--ease-out);
}

.tagline-reveal-heading .reveal-word.is-lit {
  opacity: 1;
}

.how-to-order-section {
  background-color: var(--bg-lilac-soft);
}

#social-reels {
  background-color: var(--bg-cream);
}

#cairo-location {
  background-color: var(--bg-blush);
}

/* ==========================================================================
   FAQ ACCORDION (Soft Lilac Band)
   ========================================================================== */
.faq-section {
  background-color: var(--bg-lilac-soft);
}

.faq-list {
  max-width: 780px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-100);
}

.faq-item {
  background-color: var(--surface-white);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--dur-fast) var(--ease-out);
}

.faq-item.is-open {
  border-color: var(--hairline-strong);
}

.faq-question {
  width: 100%;
  background: transparent;
  border: none;
  padding: var(--space-200) var(--space-300);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-200);
  text-align: start;
  color: var(--text-charcoal);
  font-size: 0.9375rem;
  font-weight: 500;
  cursor: pointer;
}

.faq-question:hover {
  background-color: var(--surface-raised);
}

.faq-chevron {
  color: var(--text-muted);
  transition: transform var(--dur-mid) var(--ease-out);
}

.faq-item.is-open .faq-chevron {
  transform: rotate(180deg);
  color: var(--brand-lilac);
}

.faq-answer {
  display: none;
  padding: 0 var(--space-300) var(--space-250);
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.7;
}

.faq-item.is-open .faq-answer {
  display: block;
}

/* ==========================================================================
   FINAL CTA SECTION
   ========================================================================== */
.final-cta-section {
  background-color: var(--bg-cream);
  padding-bottom: var(--space-800);
}

.final-cta-card {
  background-color: var(--surface-white);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-xl);
  padding: var(--space-600) var(--space-400);
  box-shadow: var(--shadow-soft);
  text-align: center;
}

.final-cta-copy {
  max-width: 640px;
  margin-inline: auto;
}

.final-cta-title {
  font-size: clamp(1.5rem, 2.8vw, 2.125rem);
  font-weight: 500;
  color: var(--text-charcoal);
  margin-bottom: var(--space-100);
}

.final-cta-desc {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.7;
  margin-bottom: var(--space-300);
}

.final-guarantee-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-100) var(--space-300);
  margin-bottom: var(--space-400);
}

.final-guarantee-list li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.final-guarantee-list .ui-icon {
  color: var(--brand-lilac);
}

.final-cta-action {
  display: flex;
  justify-content: center;
}

/* ==========================================================================
   RESPONSIVE DESIGN & MOBILE-FIRST TOUCH ERGONOMICS (360px - 430px)
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-grid,
  .studio-grid,
  .reels-social-grid,
  .location-grid {
    grid-template-columns: 1fr;
  }

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

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

  .nav-links {
    display: none;
  }

  .nav-links.mobile-open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: var(--space-75);
    position: fixed;
    top: 86px;
    inset-inline: var(--space-200);
    bottom: auto;
    max-height: calc(100dvh - 102px);
    background-color: var(--surface-white);
    padding: var(--space-250);
    border-radius: var(--radius-lg);
    border: 1.5px solid var(--hairline-strong);
    box-shadow: 0 22px 48px -12px rgba(36, 25, 44, 0.24), 0 4px 14px rgba(118, 73, 196, 0.14);
    z-index: 1250;
    overflow-y: auto;
  }

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

  .nav-links.mobile-open li {
    opacity: 0;
    animation: navLinkStaggerIn var(--dur-mid) var(--ease-out) forwards;
  }

  .nav-links.mobile-open li:nth-child(1) { animation-delay: 0ms; }
  .nav-links.mobile-open li:nth-child(2) { animation-delay: 40ms; }
  .nav-links.mobile-open li:nth-child(3) { animation-delay: 80ms; }
  .nav-links.mobile-open li:nth-child(4) { animation-delay: 120ms; }
  .nav-links.mobile-open li:nth-child(5) { animation-delay: 160ms; }

  .nav-links.mobile-open .nav-link {
    width: 100%;
    min-height: 44px;
    padding: var(--space-100) var(--space-200);
    font-size: 1rem;
    border-radius: var(--radius-sm);
    background-color: var(--bg-cream);
    border: 1px solid var(--hairline);
  }

  .mobile-menu-btn {
    display: inline-flex;
  }
}

@media (max-width: 768px) {
  body {
    overflow-x: clip;
  }

  section[id],
  div[id="top"] {
    scroll-margin-top: 136px;
  }

  .container {
    padding-inline: var(--space-200);
  }

  .navbar-inner {
    gap: var(--space-100);
  }

  .navbar-inner {
    min-height: 66px;
    gap: var(--space-75);
  }

  .brand-logo-link {
    gap: 8px;
    min-width: 0;
  }

  .brand-logo-img-wrap {
    width: 46px;
    height: 46px;
    border-radius: 12px;
  }

  .brand-script-title {
    font-size: 1rem;
  }

  .nav-links.mobile-open {
    top: 78px;
    left: 16px;
    right: 16px;
    inset-inline: 16px;
  }

  .brand-subtitle {
    font-size: 0.7rem;
    white-space: nowrap;
  }

  .nav-actions {
    gap: 6px;
    flex-shrink: 0;
  }

  .lang-toggle-btn {
    padding: 0 9px;
    min-height: 38px;
    font-size: 0.78rem;
    gap: 4px;
  }

  .lang-toggle-btn .ui-icon {
    width: 15px;
    height: 15px;
  }

  .header-cart-btn {
    min-height: 38px;
    min-width: 40px;
    padding: 0 8px;
  }

  .mobile-menu-btn {
    width: 38px;
    height: 38px;
  }

  .nav-wa-btn {
    display: none;
  }

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

  .hero-title {
    font-size: 2rem;
  }

  .hero-visual-stage {
    display: none;
  }

  .steps-grid,
  .footer-grid,
  .catalog-grid,
  .store-actions-pair {
    grid-template-columns: 1fr;
  }

  /* Compact Studio Header & Tabs on Mobile */
  .magic-studio-section {
    padding-block: 1.5rem;
  }

  .magic-studio-section .section-header {
    margin-bottom: 0.75rem;
  }

  .magic-studio-section .section-header .section-desc {
    display: none;
  }

  .magic-studio-section .section-title {
    font-size: 1.2rem;
    margin-bottom: 0.25rem;
  }

  .studio-tabs,
  .occasion-filter-bar {
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    max-width: 100%;
    padding-bottom: 0.35rem;
    margin-bottom: 0.65rem;
    margin-inline: 0;
    padding-inline: 0.15rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .studio-tabs::-webkit-scrollbar,
  .occasion-filter-bar::-webkit-scrollbar {
    display: none;
  }

  .studio-tab-btn,
  .filter-pill-btn {
    flex-shrink: 0;
    white-space: nowrap;
    min-height: 36px;
    padding: 0.4rem 0.75rem;
    font-size: 0.78rem;
  }

  /* Zero-Scroll Single-Screen Mobile Interactive Card */
  .studio-panel {
    padding: 12px;
    max-height: none;
    overflow: visible;
    display: none;
  }

  .studio-panel.active {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  .studio-grid {
    grid-template-columns: 1fr;
    gap: 0.45rem;
  }

  /* Remove text clutter inside interactive visualizers on mobile */
  .studio-info-col .price-inquiry-badge,
  .studio-info-col .studio-desc,
  .studio-info-col .mug-specs-box,
  .studio-info-col .kc-spec-chips,
  .studio-info-col .kc-quote-box,
  .studio-info-col .frame-mount-list,
  .studio-info-col .product-options-label,
  .mirror-stage-footer,
  .kc-hint,
  .kc-thumbs-wrap,
  .coat-hint-box {
    display: none !important;
  }

  .studio-info-col .studio-heading {
    font-size: 1.05rem !important;
    line-height: 1.25;
    margin-bottom: 0.3rem;
  }

  #panel-frames .studio-info-col .studio-heading,
  #panel-mug3d .studio-info-col .studio-heading {
    display: none;
  }

  .studio-info-col .product-options-wrap {
    margin-bottom: 0.4rem;
  }

  .studio-action-row,
  .studio-action-row.stacked {
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 0.4rem;
    margin-bottom: 0.4rem;
  }

  .studio-action-row > button {
    flex: 1 1 0;
    min-height: 38px !important;
    padding: 0.4rem 0.55rem !important;
    font-size: 0.76rem !important;
  }

  .studio-info-col .btn-primary-wa {
    min-height: 40px;
    padding: 0.5rem 0.85rem;
    font-size: 0.84rem;
  }

  /* 1. Kettle Stage Compact on Mobile */
  .kettle-stage {
    min-height: 230px;
    max-height: 36dvh;
    padding: 1.75rem 0.65rem 0.55rem;
  }

  .kettle-actor {
    top: 12px;
    left: 4%;
    width: 112px;
    height: 92px;
  }

  .magic-mug-assembly {
    transform: scale(0.62);
    transform-origin: bottom center;
    margin-bottom: -14px;
  }

  .thermal-progress-wrap {
    margin-top: 0.45rem;
    height: 6px;
  }

  .temp-pill-indicator,
  .mug-spec-banner {
    font-size: 0.64rem;
    padding: 0.22rem 0.5rem;
  }

  #kettle-real-video-box {
    margin-top: 1.1rem !important;
    max-width: 220px !important;
  }

  #kettle-real-video {
    height: 175px !important;
  }

  /* Compact Top Purple Announcement Bar into 1 single line on Mobile */
  .top-announcement {
    font-size: 0.78rem;
    padding: 6px 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .top-announcement-inner {
    flex-wrap: nowrap;
    justify-content: center;
    gap: 0.4rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .top-announcement-inner > span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .announcement-badge {
    font-size: 0.66rem;
    padding: 0.1rem 0.48rem;
    flex-shrink: 0;
  }

  /* Constrain Floating "Wassila • وسيلة" Badge inside Hero Image Container */
  .hero-floating-logo-card {
    inset-inline-start: 12px;
    top: 12px;
    max-width: calc(100% - 24px);
    padding: 0.38rem 0.65rem;
    border-radius: 14px;
  }

  /* 2. Unified 3D Interactive Mug Stage on Mobile (310px height) */
  .mug3d-stage-col {
    gap: 0.4rem;
  }

  .mug3d-stage {
    height: 310px;
  }

  .mug3d-hint-pill,
  .mug3d-status-pill {
    font-size: 0.64rem;
    padding: 0.18rem 0.55rem;
  }

  .mug3d-design-thumbs .thumb-swatch img {
    width: 58px;
    height: 38px;
  }

  .mug3d-mode-switch {
    margin-bottom: 0.42rem;
    padding: 0.22rem;
    gap: 0.3rem;
  }

  .mug3d-mode-btn {
    min-height: 32px;
    padding: 0.3rem 0.4rem;
    font-size: 0.72rem;
  }

  .mug3d-magic-spec-box {
    padding: 0.42rem 0.6rem;
    margin-bottom: 0.45rem;
    font-size: 0.7rem;
  }

  .mug3d-colors-block {
    padding: 0.45rem 0.6rem;
    margin-bottom: 0.45rem;
  }

  .mug3d-color-header {
    margin-bottom: 0.32rem;
    font-size: 0.72rem;
  }

  .mug3d-color-dot {
    width: 25px;
    height: 25px;
  }

  .mug3d-actions-grid {
    gap: 0.38rem;
    margin-bottom: 0.45rem;
  }

  .mug3d-pour-btn {
    padding: 0.48rem 0.65rem !important;
    font-size: 0.76rem !important;
    min-height: 36px;
  }

  .mug3d-cool-btn {
    padding: 0.48rem 0.6rem !important;
    font-size: 0.74rem !important;
    min-height: 36px;
  }

  .mug3d-song-btn {
    padding: 0.45rem 0.65rem !important;
    font-size: 0.76rem !important;
    min-height: 36px;
  }

  /* 3. Mirror Stage Full-Width Edge-to-Edge on Mobile */
  .mirror-stage {
    min-height: 0;
    width: 100%;
    padding: 0;
    gap: 0;
    border-radius: 16px;
  }

  .mirror-shape-pill {
    font-size: 0.66rem;
    padding: 0.22rem 0.55rem;
  }

  .real-mirror-viewport {
    width: 100%;
    max-width: 330px;
    margin: 0 auto;
    aspect-ratio: 3 / 4;
    height: auto;
    border-radius: 16px;
    overflow: hidden;
  }

  /* 4. Photorealistic Room Visualizer Compact on Mobile (4:3 locked aspect ratio) */
  .room-vis-card {
    gap: 0.38rem;
  }

  .room-stage {
    width: 100%;
    aspect-ratio: 4 / 3;
    max-height: none;
  }

  .room-focus-bar {
    gap: 0.22rem;
    padding: 0.22rem;
  }

  .room-focus-btn {
    min-height: 32px;
    padding: 0.25rem 0.2rem;
    font-size: 0.66rem;
  }

  .room-info-pill {
    font-size: 0.72rem;
    padding: 0.28rem 0.65rem;
  }

  /* 5. Keychain Flipbook Stage 45% Larger & Closer on Mobile */
  .kc-stage {
    --pw: 210px;
    --ph: 268px;
    padding: 12px 8px;
    gap: 0.35rem;
  }

  .kc-stage.is-open {
    --pw: clamp(142px, 42vw, 180px);
    --ph: clamp(190px, 56vw, 240px);
  }

  .kc-stage.is-open .kc-book {
    width: 92%;
    max-width: 360px;
  }

  .kc-hardware {
    width: 72px;
    left: calc(var(--pw) - 36px);
  }

  .kc-counter-pill {
    font-size: 0.72rem;
    padding: 0.25rem 0.75rem;
    min-width: 0;
  }

  .kc-scene {
    padding-top: 52px;
    padding-bottom: 0.3rem;
  }

  .kc-controls {
    gap: 0.32rem;
  }

  .kc-btn {
    min-height: 34px;
    font-size: 0.7rem;
    padding: 0.32rem 0.5rem;
    flex: 1 1 calc(50% - 0.35rem);
  }

  /* Thumbnail Swatches 48x48 on Mobile */
  .thumb-swatches {
    gap: 0.55rem;
    padding: 0.1rem;
  }

  .thumb-swatch img,
  .thumb-swatch-emoji {
    width: 48px;
    height: 48px;
  }

  .thumb-swatch span:last-child {
    font-size: 0.68rem;
  }

  /* Compact Product Cards on Mobile (fits cleanly without image clipping) */
  .product-card {
    max-height: none;
  }

  .product-media-box {
    width: 100%;
    height: auto;
  }

  .product-card-body {
    padding: 12px;
  }

  .product-card-body .price-inquiry-badge {
    font-size: 0.68rem;
    padding: 0.2rem 0.55rem;
    margin-bottom: 0.35rem;
  }

  .product-title {
    font-size: 1.05rem;
    margin-bottom: 0.25rem;
  }

  .product-copy {
    font-size: 0.78rem;
    margin-bottom: 0.45rem;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .product-options-wrap {
    margin-bottom: 0.55rem;
  }

  .product-options-label {
    font-size: 0.72rem;
    margin-bottom: 0.28rem;
  }

  .product-option-pills {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    gap: 0.35rem;
  }

  .product-option-pills::-webkit-scrollbar {
    display: none;
  }

  .option-chip {
    min-height: 34px;
    padding: 0.28rem 0.65rem;
    font-size: 0.72rem;
    flex-shrink: 0;
    white-space: nowrap;
  }

  .product-wa-cta {
    min-height: 40px;
    padding: 0.55rem 0.85rem;
    font-size: 0.84rem;
  }

  /* Non-Intrusive 44x44 Circular Floating WhatsApp Icon in Bottom Corner */
  .floating-wa-btn {
    width: 44px;
    height: 44px;
    min-height: 44px;
    padding: 0;
    border-radius: 50%;
    bottom: 12px;
    inset-inline-start: auto;
    inset-inline-end: 12px;
    justify-content: center;
  }

  .floating-wa-btn .floating-wa-label {
    display: none;
  }

  .site-footer {
    padding-bottom: 4.5rem;
  }

  .navbar-shell {
    top: 0;
    padding-inline: 0;
  }

  .navbar {
    border-radius: 0;
    padding: 0;
  }

  .heading-1 {
    font-size: 2.25rem;
    line-height: 2.5rem;
  }

  .heading-2 {
    font-size: 1.875rem;
    line-height: 2.25rem;
  }

  .heading-3 {
    font-size: 1.5rem;
    line-height: 2rem;
  }

  .benefits-grid {
    grid-template-columns: 1fr;
    gap: var(--space-200);
  }

  .tagline-reveal-section {
    padding: var(--space-600) 0;
  }

  .final-cta-card {
    padding: var(--space-400) var(--space-200);
    border-radius: var(--radius-lg);
  }

  .faq-question {
    padding: var(--space-200);
  }

  .faq-answer {
    padding: 0 var(--space-200) var(--space-200);
  }
}

@media (max-width: 400px) {
  .kc-stage {
    --pw: 195px;
    --ph: 252px;
  }

  .kc-stage.is-open {
    --pw: clamp(136px, 42vw, 170px);
    --ph: clamp(182px, 56vw, 226px);
  }

  .real-mirror-viewport {
    width: 100%;
    max-width: 285px;
    margin: 0 auto;
    aspect-ratio: 3 / 4;
    height: auto;
  }

  .room-focus-btn {
    font-size: 0.62rem;
  }
}

/* ==========================================================================
   FEATURE 1: LIVE CUSTOMER PHOTO PREVIEWER BAR & MIRROR APERTURE OVERLAY
   ========================================================================== */
.live-photo-bar {
  max-width: 920px;
  margin: 0 auto var(--space-300);
  background-color: var(--surface-white);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: var(--space-200) var(--space-250);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-200);
  box-shadow: var(--shadow-soft);
}

.live-photo-bar.has-photo {
  border-color: var(--brand-lilac);
  background-color: var(--brand-lilac-tint);
}

.live-photo-bar-main {
  display: flex;
  align-items: center;
  gap: var(--space-100);
  min-width: 0;
}

.live-photo-avatar-wrap {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-xs);
  overflow: hidden;
  border: 1px solid var(--brand-lilac);
  flex-shrink: 0;
}

.live-photo-avatar-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.live-photo-copy strong {
  display: block;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-charcoal);
}

.live-photo-copy span {
  display: block;
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

.live-photo-actions {
  display: flex;
  align-items: center;
  gap: var(--space-75);
  flex-shrink: 0;
}

.live-photo-upload-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-75);
  min-height: 40px;
  padding: var(--space-75) var(--space-200);
  border-radius: var(--radius-sm);
  border: 1px solid var(--brand-lilac);
  background-color: var(--brand-lilac);
  color: #FFFFFF;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
}

.live-photo-upload-btn:hover {
  background-color: var(--brand-lilac-hover);
  border-color: var(--brand-lilac-hover);
}

.live-photo-reset-btn {
  min-height: 40px;
  padding: var(--space-75) var(--space-100);
  border-radius: var(--radius-sm);
  border: 1px solid var(--hairline-strong);
  background-color: var(--surface-white);
  color: var(--text-charcoal);
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
}

.mirror-custom-aperture {
  z-index: 4;
  display: none;
}

.mirror-custom-aperture.has-photo {
  display: block;
}

.mirror-swatch-media {
  position: relative;
  width: 48px;
  height: 48px;
  display: block;
}

.thumb-swatch .mirror-swatch-media .mirror-swatch-custom,
.thumb-swatch.active .mirror-swatch-media .mirror-swatch-custom {
  position: absolute;
  inset: 0;
  border-color: transparent;
  background: transparent;
  box-shadow: none;
  pointer-events: none;
  display: none;
}

.thumb-swatch .mirror-swatch-media .mirror-swatch-custom.has-photo {
  display: block;
}

/* ==========================================================================
   FEATURE 2: 10-SECOND INTERACTIVE GIFT FINDER QUIZ
   ========================================================================== */
.gift-finder-section {
  background-color: var(--bg-blush);
  padding-top: var(--space-500);
}

.gift-finder-shell {
  background-color: var(--surface-white);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-xl);
  padding: var(--space-400);
  box-shadow: var(--shadow-soft);
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: var(--space-500);
  align-items: center;
}

.gift-finder-title {
  font-size: clamp(1.375rem, 2.4vw, 1.875rem);
  font-weight: 500;
  color: var(--text-charcoal);
  margin-bottom: var(--space-75);
}

.gift-finder-sub {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-300);
}

.quiz-step-block {
  margin-bottom: var(--space-250);
}

.quiz-step-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-charcoal);
  margin-bottom: var(--space-75);
}

.quiz-pills-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-75);
}

.quiz-pill {
  min-height: 40px;
  padding: var(--space-75) var(--space-200);
  border-radius: var(--radius-sm);
  border: 1px solid var(--hairline);
  background-color: var(--surface-raised);
  color: var(--text-charcoal);
  font-size: 0.875rem;
  font-weight: 400;
  cursor: pointer;
}

.quiz-pill:hover {
  border-color: var(--hairline-strong);
}

.quiz-pill.active {
  background-color: var(--brand-lilac);
  border-color: var(--brand-lilac);
  color: #FFFFFF;
  font-weight: 500;
}

.gift-finder-result {
  background-color: var(--bg-cream);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: var(--space-200);
  transition: opacity var(--dur-mid) var(--ease-out);
}

.gift-finder-result.is-updating {
  opacity: 0.6;
}

.quiz-result-media {
  position: relative;
  border-radius: var(--radius-xs);
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background-color: var(--surface-raised);
  margin-bottom: var(--space-200);
}

.quiz-result-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.quiz-match-badge {
  position: absolute;
  top: var(--space-100);
  inset-inline-start: var(--space-100);
  background-color: var(--ink-primary);
  color: var(--surface-white);
  font-size: 0.75rem;
  font-weight: 500;
  padding: 4px var(--space-100);
  border-radius: var(--radius-xs);
}

.quiz-result-body h3 {
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--text-charcoal);
  margin-bottom: var(--space-75);
}

.quiz-result-body p {
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--text-secondary);
  margin-bottom: var(--space-200);
}

.quiz-result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-100);
}

.quiz-result-actions > * {
  flex: 1 1 auto;
}

/* ==========================================================================
   FEATURE 3: INTERACTIVE WASSILA GIFT BOX BUILDER
   ========================================================================== */
.gift-box-section {
  background-color: var(--bg-blush);
}

.gift-box-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: var(--space-300);
  align-items: stretch;
}

.gift-box-stage-card {
  background-color: var(--surface-white);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: var(--space-300);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-200);
}

.gift-box-count-pill {
  background-color: var(--brand-lilac-tint);
  color: var(--brand-lilac-deep);
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 4px var(--space-100);
  border-radius: var(--radius-xs);
}

.wassila-box-scene {
  position: relative;
  width: 260px;
  height: 248px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding-bottom: 8px;
}

.wassila-box-lid {
  position: absolute;
  top: 4px;
  width: 236px;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 6;
  transform: translateY(-20px) rotate(-5deg);
  transition: transform 420ms var(--ease-out);
}

.wassila-box-scene.is-sealed .wassila-box-lid {
  transform: translateY(58px) rotate(0deg);
}

.wassila-lid-bow {
  width: 124px;
  height: 52px;
  margin-bottom: -6px;
}

.wassila-lid-bar {
  width: 100%;
  height: 28px;
  background-color: var(--surface-white);
  border: 2px solid var(--brand-lilac);
  border-radius: var(--radius-xs);
}

.wassila-box-tray {
  position: relative;
  z-index: 4;
  width: 196px;
  min-height: 76px;
  margin-bottom: -18px;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: center;
  gap: 8px;
  transition: transform 350ms var(--ease-out), opacity 250ms var(--ease-out);
}

.wassila-box-scene.is-sealed .wassila-box-tray {
  transform: translateY(24px) scale(0.9);
  opacity: 0;
}

@keyframes boxItemDropIn {
  0% { opacity: 0; transform: translateY(-16px) scale(0.92); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

.box-mini-token {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-xs);
  background-color: var(--surface-white);
  border: 1px solid var(--hairline-strong);
  padding: 2px;
  box-shadow: var(--shadow-soft);
  animation: boxItemDropIn 300ms var(--ease-out) forwards;
}

.box-mini-token img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
}

.wassila-box-body {
  position: relative;
  z-index: 5;
  width: 216px;
  height: 120px;
  background-color: var(--surface-white);
  border: 2px solid var(--brand-lilac);
  border-radius: 6px 6px 12px 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.wassila-box-ribbon {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 28px;
  background-color: var(--brand-lilac-tint);
  border-inline: 1px solid rgba(94, 65, 163, 0.25);
}

.wassila-box-brand {
  position: relative;
  z-index: 2;
  background-color: var(--surface-white);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-xs);
  padding: 6px 12px;
  text-align: center;
}

.wassila-box-brand strong {
  display: block;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-charcoal);
}

.wassila-box-brand span {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.gift-note-preview {
  width: 100%;
  background-color: var(--bg-cream);
  border: 1px dashed var(--hairline-strong);
  border-radius: var(--radius-sm);
  padding: var(--space-100) var(--space-200);
  text-align: center;
}

.gift-note-label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.gift-note-preview p {
  font-size: 0.875rem;
  color: var(--text-charcoal);
}

.gift-box-controls-card {
  background-color: var(--surface-white);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: var(--space-300);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.box-control-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-charcoal);
  margin-bottom: var(--space-100);
}

.box-items-picker {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-100);
  margin-bottom: var(--space-300);
}

.box-item-chip {
  display: flex;
  align-items: center;
  gap: var(--space-100);
  padding: var(--space-75);
  border-radius: var(--radius-sm);
  border: 1px solid var(--hairline);
  background-color: var(--bg-cream);
  color: var(--text-charcoal);
  cursor: pointer;
  text-align: start;
}

.box-item-chip:hover {
  border-color: var(--hairline-strong);
}

.box-item-chip img {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-xs);
  object-fit: cover;
  flex-shrink: 0;
}

.box-item-chip-info {
  flex: 1;
  min-width: 0;
}

.box-item-chip-info strong {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.35;
}

.box-item-check {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 1px solid var(--hairline-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  flex-shrink: 0;
  color: transparent;
  background-color: var(--surface-white);
}

.box-item-chip.is-selected {
  border-color: var(--brand-lilac);
  background-color: var(--brand-lilac-tint);
}

.box-item-chip.is-selected .box-item-check {
  background-color: var(--brand-lilac);
  border-color: var(--brand-lilac);
  color: #FFFFFF;
}

.box-note-input-wrap {
  margin-bottom: var(--space-250);
}

.box-text-input {
  width: 100%;
  min-height: 44px;
  padding: var(--space-100) var(--space-200);
  border-radius: var(--radius-sm);
  border: 1px solid var(--hairline-strong);
  background-color: var(--surface-white);
  color: var(--text-charcoal);
  font-size: 0.875rem;
}

.box-text-input:focus {
  border-color: var(--brand-lilac);
}

.box-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-100);
}

.box-cta-row .btn-primary-wa {
  flex: 1 1 220px;
}

/* ==========================================================================
   FEATURE 4: STORIES RINGS & CINEMA REEL
   ========================================================================== */
.stories-rings-bar {
  display: flex;
  justify-content: center;
  gap: var(--space-300);
  margin-bottom: var(--space-400);
  flex-wrap: wrap;
}

.story-ring-btn {
  background: transparent;
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-75);
  cursor: pointer;
  color: var(--text-secondary);
}

.story-ring-btn.active {
  color: var(--text-charcoal);
}

.story-ring-avatar {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  padding: 3px;
  border: 2px solid var(--hairline-strong);
  background-color: var(--surface-white);
  transition: border-color var(--dur-fast) var(--ease-out);
}

.story-ring-btn:hover .story-ring-avatar {
  border-color: var(--brand-lilac);
}

.story-ring-btn.active .story-ring-avatar {
  border-color: var(--brand-lilac);
}

.story-ring-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.story-ring-label {
  font-size: 0.8125rem;
  font-weight: 500;
}

.stories-cinema-layout {
  grid-template-columns: 0.78fr 1.22fr;
  align-items: center;
}

.cinema-reel-stage {
  display: flex;
  justify-content: center;
}

.cinema-single-frame {
  width: 100%;
  max-width: 312px;
  background-color: #1B1815;
  border-radius: var(--radius-xl);
  padding: var(--space-75);
  border: 1px solid var(--hairline-strong);
  position: relative;
}

.cinema-single-frame video {
  width: 100%;
  height: 416px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.story-progress-track {
  position: absolute;
  top: 16px;
  inset-inline: 16px;
  z-index: 6;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  pointer-events: none;
}

.story-progress-seg {
  height: 3px;
  background-color: rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  overflow: hidden;
}

.story-progress-seg span {
  display: block;
  height: 100%;
  width: 0%;
  background-color: #FFFFFF;
}

.story-progress-seg.done span {
  width: 100%;
}

.story-next-pill {
  background-color: var(--surface-white);
  color: var(--text-charcoal);
  border: none;
  padding: 4px 10px;
  border-radius: var(--radius-xs);
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
}

/* ==========================================================================
   FEATURE 5: LIVE WEDDING BANNER & PHONE-CASE VISA CARD CUSTOMIZER MODAL
   ========================================================================== */
.live-cust-modal-card {
  max-width: 760px;
}

.live-cust-tabs {
  display: flex;
  justify-content: center;
  gap: var(--space-75);
  margin-bottom: var(--space-200);
  flex-wrap: wrap;
}

.live-cust-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-300);
  align-items: center;
}

.live-banner-stage {
  background-color: var(--surface-raised);
  border-radius: var(--radius-md);
  padding: var(--space-300);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 296px;
}

.fabric-banner-sheet {
  position: relative;
  width: 220px;
  min-height: 248px;
  background-color: #FFFDF9;
  border: 1px solid #DFCBB2;
  border-radius: 6px 6px 16px 16px;
  padding: var(--space-300) var(--space-200);
  box-shadow: var(--shadow-elevated);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.banner-grommet {
  position: absolute;
  top: 10px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1.5px solid #B69B74;
  background-color: var(--surface-raised);
}

.banner-grommet.g-left { left: 14px; }
.banner-grommet.g-right { right: 14px; }

.banner-eyebrow-script {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: var(--space-100);
}

.banner-couple-names {
  font-size: 1.375rem;
  font-weight: 500;
  color: var(--text-charcoal);
  line-height: 1.35;
  word-break: break-word;
}

.banner-heart-divider {
  color: var(--brand-lilac);
  font-size: 0.9375rem;
  margin: var(--space-75) 0;
}

.banner-wedding-date {
  background-color: var(--brand-lilac-tint);
  color: var(--brand-lilac-deep);
  font-weight: 500;
  font-size: 0.8125rem;
  padding: 4px 12px;
  border-radius: var(--radius-xs);
  margin-bottom: var(--space-100);
}

.banner-sub-note {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.live-card-phone-stage {
  background-color: var(--surface-raised);
  border-radius: var(--radius-md);
  padding: var(--space-300);
  min-height: 304px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.interactive-phone-shell {
  width: 144px;
  height: 264px;
  border-radius: 24px;
  background-color: rgba(255, 255, 255, 0.55);
  border: 3px solid #FFFFFF;
  box-shadow: var(--shadow-elevated);
  position: relative;
  z-index: 3;
  pointer-events: none;
}

.interactive-camera-bump {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background-color: rgba(31, 27, 22, 0.1);
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
  padding: 4px;
}

.interactive-camera-bump span {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background-color: #272727;
  border: 2px solid #FFFFFF;
}

.sliding-visa-card {
  position: absolute;
  z-index: 2;
  width: 108px;
  height: 164px;
  background-color: #FFFFFF;
  border-radius: 8px;
  padding: 6px;
  box-shadow: var(--shadow-elevated);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  transform: translate(88px, 12px) rotate(8deg);
  transition: transform 450ms var(--ease-out);
}

.sliding-visa-card.is-inside-case {
  transform: translate(0px, 34px) rotate(0deg);
}

.sliding-visa-photo {
  width: 100%;
  height: 106px;
  border-radius: 4px;
  overflow: hidden;
  background-color: var(--surface-raised);
}

.sliding-visa-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sliding-visa-caption {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-charcoal);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 4px;
}

.sliding-visa-wave {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  height: 14px;
}

.sliding-visa-wave i {
  display: block;
  width: 2px;
  background-color: var(--brand-lilac);
  border-radius: 2px;
}

.sliding-visa-wave i:nth-child(odd) { height: 10px; }
.sliding-visa-wave i:nth-child(even) { height: 6px; }
.sliding-visa-wave i:nth-child(3n) { height: 14px; }

/* Card Specular Glare Disabled (Zero Decorative Glare / 3D Hover Slop) */
.card-specular-glare {
  display: none;
}

@media (max-width: 960px) {
  .gift-finder-shell,
  .gift-box-grid,
  .stories-cinema-layout,
  .live-cust-grid {
    grid-template-columns: 1fr;
  }

  .live-photo-bar {
    flex-direction: column;
    align-items: stretch;
    text-align: start;
  }

  .live-photo-actions {
    justify-content: flex-start;
  }

  .box-items-picker {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   PRICING, DELIVERY & STUDIO CONTROLS HARMONIZATION
   ========================================================================== */
.price-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--space-50) var(--space-100);
  margin: var(--space-75) 0 var(--space-100);
}

.price-current {
  font-weight: 700;
  font-size: 1.375rem;
  color: var(--brand-lilac-deep);
}

.price-old {
  color: var(--text-muted);
  font-size: 0.9375rem;
  text-decoration: line-through;
  text-decoration-thickness: 1.5px;
}

.price-badge {
  background-color: var(--semantic-positive-bg);
  color: var(--semantic-positive);
  font-weight: 600;
  font-size: 0.75rem;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
}

.offer-pill {
  background-color: var(--accent-coral);
  color: #FFFFFF;
  font-weight: 600;
  font-size: 0.75rem;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
}

.price-note {
  flex-basis: 100%;
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.price-ask {
  font-weight: 500;
  color: var(--text-secondary);
}

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

.price-policy-note {
  text-align: center;
  max-width: 780px;
  margin-inline: auto;
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

.box-item-price {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-top: 2px;
}

.box-item-price del {
  color: var(--text-muted);
  font-weight: 400;
  margin-inline-start: 4px;
}

.gift-box-total {
  text-align: start;
  padding: var(--space-200) 0;
  margin-bottom: var(--space-100);
  border-top: 1px solid var(--hairline);
}

.gift-box-total .price-row {
  justify-content: flex-start;
  margin: 0 0 4px;
}

.box-total-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
}

/* Delivery & Payment Cards */
.delivery-section {
  background-color: var(--bg-blush);
}

.delivery-section .del-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-200);
}

@media (max-width: 960px) {
  .delivery-section .del-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .delivery-section .del-grid {
    grid-template-columns: 1fr;
  }
}

.del-card {
  background-color: var(--surface-white);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: var(--space-250);
  box-shadow: var(--shadow-soft);
}

.del-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background-color: var(--surface-raised);
  color: var(--text-charcoal);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-200);
}

.del-card h3 {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-charcoal);
  margin-bottom: var(--space-50);
}

.del-card p {
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--text-secondary);
}

/* Studio Internal Controls Harmonization (Quiet Hairlines, 8px Radius, No Pulse) */
.kc-counter-pill,
.room-info-pill,
.mirror-shape-pill,
.mug3d-hint-pill,
.mug3d-status-pill {
  border-radius: var(--radius-xs) !important;
  font-weight: 500 !important;
  box-shadow: var(--shadow-soft) !important;
}

.kc-btn,
.room-focus-btn,
.mirror-split-toggle-btn,
.mug3d-mode-btn {
  border-radius: var(--radius-sm) !important;
  font-weight: 500 !important;
}

.kc-btn-primary,
.room-focus-btn.active,
.mug3d-mode-btn.active {
  background-color: var(--brand-lilac) !important;
  border-color: var(--brand-lilac) !important;
  color: #FFFFFF !important;
  box-shadow: none !important;
}

.thumb-swatch {
  border-radius: var(--radius-sm) !important;
}

.thumb-swatch.active {
  border-color: var(--brand-lilac) !important;
  box-shadow: 0 0 0 1px var(--brand-lilac) !important;
}

.hotspot-pulse-ring {
  display: none !important;
}

/* ==========================================================================
   SHORT ANIMATED SPLASH PRELOADER (Logo + Cute Animated Santa Hat + Progress)
   ========================================================================== */
.wassila-preloader {
  position: fixed;
  inset: 0;
  z-index: 9500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-300);
  background: radial-gradient(circle at 50% 35%, #FFFFFF 0%, #FFF7F1 55%, #F6EEFC 100%);
  transition: opacity 420ms cubic-bezier(0.22, 1, 0.36, 1), visibility 420ms ease, transform 420ms ease;
}

.wassila-preloader.is-hiding {
  opacity: 0;
  visibility: hidden;
  transform: scale(1.03);
  pointer-events: none;
}

.wassila-preloader[hidden] {
  display: none !important;
}

.preloader-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
  max-width: 280px;
  width: 100%;
}

.preloader-logo-wrap {
  position: relative;
  width: 112px;
  height: 112px;
  border-radius: 26px;
  background-color: #FFFFFF;
  border: 2px solid rgba(118, 73, 196, 0.22);
  box-shadow: 0 20px 44px -12px rgba(118, 73, 196, 0.28), 0 6px 18px rgba(198, 40, 40, 0.12);
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: preloaderLogoFloat 1.5s ease-in-out infinite;
}

.preloader-logo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 18px;
}

.preloader-santa-hat {
  position: absolute;
  top: -34px;
  inset-inline-start: -20px;
  width: 68px;
  height: 54px;
  pointer-events: none;
  transform-origin: 45% 80%;
  filter: drop-shadow(0 6px 10px rgba(36, 25, 44, 0.2));
  animation: preloaderHatWiggle 1.2s ease-in-out infinite;
}

html[dir="rtl"] .preloader-santa-hat {
  animation: preloaderHatWiggleRtl 1.2s ease-in-out infinite;
}

.preloader-brand-name {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-charcoal);
  margin: 4px 0 0;
  line-height: 1.25;
}

.preloader-brand-sub {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin: 0;
}

.preloader-bar-track {
  width: 190px;
  height: 7px;
  border-radius: 9999px;
  background-color: rgba(118, 73, 196, 0.14);
  overflow: hidden;
  margin-top: 4px;
  box-shadow: inset 0 1px 2px rgba(36, 25, 44, 0.08);
}

.preloader-bar-fill {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 9999px;
  background: linear-gradient(90deg, #C62828 0%, #E0B04A 42%, #7649C4 100%);
  transform-origin: left center;
  animation: preloaderProgressFill 1.15s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

html[dir="rtl"] .preloader-bar-fill {
  transform-origin: right center;
}

@keyframes preloaderLogoFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-6px) scale(1.03); }
}

@keyframes preloaderHatWiggle {
  0%, 100% { transform: rotate(-16deg) translateY(0); }
  50% { transform: rotate(-6deg) translateY(-3px); }
}

@keyframes preloaderHatWiggleRtl {
  0%, 100% { transform: scaleX(-1) rotate(-16deg) translateY(0); }
  50% { transform: scaleX(-1) rotate(-6deg) translateY(-3px); }
}

@keyframes preloaderProgressFill {
  0% { transform: scaleX(0.08); }
  65% { transform: scaleX(0.78); }
  100% { transform: scaleX(1); }
}

/* ==========================================================================
   HEADER CART BUTTON, ADD-TO-CART CTAs & SLIDE-OVER SHOPPING CART DRAWER
   ========================================================================== */
.header-cart-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 40px;
  padding: 0 13px;
  border-radius: var(--radius-pill);
  background-color: var(--surface-white);
  border: 1.5px solid var(--hairline-strong);
  color: var(--text-charcoal);
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  transition: transform 180ms var(--ease-out), border-color 180ms var(--ease-out), background-color 180ms var(--ease-out);
  flex-shrink: 0;
}

.header-cart-btn:hover {
  border-color: var(--brand-lilac);
  background-color: var(--brand-lilac-tint);
  transform: translateY(-1px);
}

.header-cart-btn.has-items {
  border-color: var(--brand-lilac);
  background-color: var(--brand-lilac-tint);
  color: var(--brand-lilac-deep);
}

.header-cart-badge {
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 9999px;
  background-color: var(--brand-lilac);
  color: #FFFFFF;
  font-size: 0.74rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.header-cart-btn.is-bumping .header-cart-badge {
  animation: cartBadgePop 320ms cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes cartBadgePop {
  0% { transform: scale(1); }
  45% { transform: scale(1.38); }
  100% { transform: scale(1); }
}

@media (max-width: 767px) {
  .header-cart-label {
    display: none;
  }

  .header-cart-btn {
    padding: 0 10px;
    min-width: 44px;
    gap: 4px;
  }
}

/* Add-to-Cart Button (Catalog Cards, Interactive Studio, Christmas Offers) */
.btn-add-cart {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  background-color: var(--brand-lilac);
  color: #FFFFFF;
  border: 1.5px solid var(--brand-lilac);
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 20px -6px rgba(118, 73, 196, 0.42);
  transition: transform 180ms var(--ease-out), background-color 180ms var(--ease-out), box-shadow 180ms var(--ease-out);
}

.btn-add-cart:hover {
  background-color: var(--brand-lilac-hover);
  border-color: var(--brand-lilac-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -6px rgba(94, 53, 168, 0.5);
}

.btn-add-cart svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.studio-cta-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: var(--space-200);
}

.studio-cta-stack .btn-primary-wa {
  margin-top: 0;
}

/* Cart Drawer Backdrop & Panel */
.cart-drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2200;
  background-color: rgba(36, 25, 44, 0.48);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  justify-content: flex-end;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 240ms ease, visibility 240ms ease;
}

.cart-drawer-backdrop.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.cart-drawer {
  width: min(440px, 100%);
  height: 100%;
  background-color: var(--bg-cream);
  box-shadow: -16px 0 44px rgba(36, 25, 44, 0.22);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 280ms cubic-bezier(0.22, 1, 0.36, 1);
}

html[dir="rtl"] .cart-drawer {
  box-shadow: 16px 0 44px rgba(36, 25, 44, 0.22);
  transform: translateX(-100%);
}

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

.cart-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
  background-color: var(--surface-white);
  border-bottom: 1px solid var(--hairline);
}

.cart-drawer-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cart-drawer-title {
  margin: 0;
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--text-charcoal);
}

.cart-drawer-count-pill {
  padding: 3px 10px;
  border-radius: 9999px;
  background-color: var(--brand-lilac-tint);
  color: var(--brand-lilac-deep);
  font-size: 0.78rem;
  font-weight: 700;
}

.cart-drawer-close {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--hairline-strong);
  background-color: var(--bg-cream);
  color: var(--text-charcoal);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cart-drawer-close:hover {
  background-color: var(--brand-lilac-tint);
  border-color: var(--brand-lilac);
}

.cart-drawer-body {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cart-empty-state {
  margin: auto 0;
  padding: 32px 18px;
  text-align: center;
  background-color: var(--surface-white);
  border: 1px dashed var(--hairline-strong);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.cart-empty-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background-color: var(--brand-lilac-tint);
  color: var(--brand-lilac);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cart-empty-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-charcoal);
}

.cart-empty-sub {
  margin: 0;
  font-size: 0.86rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

.cart-item-card {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  gap: 12px;
  padding: 12px;
  background-color: var(--surface-white);
  border: 1px solid var(--hairline);
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(36, 25, 44, 0.04);
}

.cart-item-thumb {
  width: 68px;
  height: 68px;
  border-radius: 12px;
  object-fit: cover;
  background-color: var(--bg-blush);
  border: 1px solid var(--hairline);
}

.cart-item-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.cart-item-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.cart-item-title {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-charcoal);
  line-height: 1.35;
}

.cart-item-remove {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cart-item-remove:hover {
  background-color: var(--accent-coral-soft);
  color: var(--accent-coral);
}

.cart-item-option {
  margin: 0;
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.cart-item-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 6px;
  flex-wrap: wrap;
}

.cart-item-prices {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
}

.cart-item-price {
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--brand-lilac-deep);
}

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

.cart-qty-stepper {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 2px;
  border-radius: 9999px;
  background-color: var(--bg-cream);
  border: 1px solid var(--hairline-strong);
}

.cart-qty-btn {
  width: 28px;
  height: 28px;
  border-radius: 9999px;
  border: none;
  background-color: var(--surface-white);
  color: var(--text-charcoal);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cart-qty-btn:hover {
  background-color: var(--brand-lilac-tint);
  color: var(--brand-lilac-deep);
}

.cart-qty-val {
  min-width: 24px;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-charcoal);
}

.cart-drawer-footer {
  padding: 16px 18px 20px;
  background-color: var(--surface-white);
  border-top: 1px solid var(--hairline-strong);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cart-note-wrap {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.cart-note-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.cart-note-input {
  width: 100%;
  min-height: 40px;
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid var(--hairline-strong);
  background-color: var(--bg-cream);
  color: var(--text-charcoal);
  font-family: inherit;
  font-size: 0.86rem;
}

.cart-note-input:focus {
  outline: 2px solid var(--brand-lilac);
  outline-offset: 1px;
  background-color: var(--surface-white);
}

.cart-shipping-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cart-shipping-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.cart-shipping-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.cart-shipping-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 7px 6px;
  border-radius: 11px;
  border: 1.5px solid var(--hairline-strong);
  background-color: var(--bg-cream);
  color: var(--text-charcoal);
  font-family: inherit;
  font-size: 0.74rem;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  cursor: pointer;
  transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease;
}

.cart-shipping-btn strong {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--brand-lilac-deep);
}

.cart-shipping-btn.active {
  border-color: var(--brand-lilac);
  background-color: var(--brand-lilac-tint);
  color: var(--brand-lilac-deep);
  box-shadow: 0 2px 8px rgba(118, 73, 196, 0.14);
}

.cart-summary-box {
  padding: 12px 14px;
  border-radius: 14px;
  background-color: var(--bg-lilac-soft);
  border: 1px solid var(--hairline);
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.cart-summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.cart-summary-row.is-savings {
  color: var(--semantic-positive);
  font-weight: 600;
}

.cart-summary-row.is-total {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-charcoal);
  padding-top: 6px;
  border-top: 1px dashed var(--hairline-strong);
}

.cart-summary-row.is-deposit {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--brand-lilac-deep);
}

.cart-footer-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cart-clear-btn {
  align-self: center;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 10px;
  text-decoration: underline;
}

.cart-clear-btn:hover {
  color: var(--accent-coral);
}

@media (max-width: 480px) {
  .brand-subtitle {
    display: none;
  }
}

/* ==========================================================================
   BUTTON HIERARCHY (PRIMARY ADD-TO-CART + LIVE PRICE / SECONDARY TEXT-LINK WA)
   ========================================================================== */
.btn-add-cart-sep {
  opacity: 0.72;
  font-weight: 400;
}

.btn-add-cart-price {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}

.btn-wa-ask-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  min-height: 40px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background-color: transparent;
  border: 1px solid transparent;
  color: var(--semantic-positive);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(20, 99, 52, 0.38);
  transition: background-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
}

.btn-wa-ask-link:hover {
  background-color: var(--semantic-positive-bg);
  border-color: rgba(20, 99, 52, 0.2);
  color: #0D4B26;
}

.btn-wa-ask-link .wa-official-icon {
  width: 16px;
  height: 16px;
}

.cta-hierarchy-hint {
  margin: 0;
  font-size: 0.74rem;
  line-height: 1.45;
  color: var(--text-muted);
  text-align: center;
}

/* Cart Drawer Prominent Summary Highlights (Total & 50% Deposit at Top of Footer) */
.cart-summary-highlights {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--hairline-strong);
}

.cart-summary-highlights .cart-summary-row.is-total {
  padding-top: 0;
  border-top: none;
  font-size: 1.08rem;
}

.cart-summary-highlights .cart-summary-row.is-deposit {
  font-size: 0.96rem;
}

.cart-summary-breakdown {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 2px;
}

.cart-summary-breakdown .cart-summary-row {
  font-size: 0.82rem;
}

.cart-wa-dominant {
  min-height: 52px;
  font-size: 1rem;
  font-weight: 700;
}

/* ==========================================================================
   MOBILE STICKY QUICK-NAV CHIPS (MOBILE ONLY <= 768px)
   ========================================================================== */
.mobile-quick-nav {
  display: none;
}

/* ==========================================================================
   LIGHTWEIGHT MOBILE STUDIO POSTERS (MOBILE ONLY <= 768px)
   ========================================================================== */
.studio-mobile-poster {
  display: none;
}

/* ==========================================================================
   MOBILE-ONLY COLLAPSIBLE ACCORDIONS (DESKTOP UNCHANGED >= 769px)
   ========================================================================== */
.m-acc-chevron {
  display: none;
}

.m-acc-policy-trigger,
.m-acc-product-trigger {
  display: none;
}

.m-acc-card-trigger,
.m-acc-footer-trigger {
  all: unset;
  display: block;
  width: 100%;
  box-sizing: border-box;
  pointer-events: none;
  cursor: default;
}

.m-acc-panel {
  display: block;
}

/* ==========================================================================
   STICKY MOBILE CART BAR (MOBILE ONLY <= 768px)
   ========================================================================== */
.mobile-cart-bar {
  display: none;
}

/* ==========================================================================
   BACK-TO-TOP BUTTON (MOBILE ONLY <= 768px; NEVER OVERLAPS FLOATING WA OR CART BAR)
   ========================================================================== */
.back-to-top-btn {
  display: none;
}

@media (max-width: 768px) {
  .back-to-top-btn {
    position: fixed;
    bottom: calc(14px + env(safe-area-inset-bottom, 0px));
    inset-inline-start: 12px;
    inset-inline-end: auto;
    z-index: 1550;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid var(--hairline-strong);
    background-color: var(--surface-white);
    color: var(--brand-lilac-deep);
    box-shadow: var(--shadow-soft);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out), background-color 180ms var(--ease-out), bottom 220ms var(--ease-out);
  }

  .back-to-top-btn[hidden] {
    display: none;
  }

  .back-to-top-btn.is-visible {
    opacity: 1;
    transform: translateY(0);
  }

  .back-to-top-btn:hover {
    background-color: var(--brand-lilac-tint);
  }
}

@media (max-width: 768px) {
  /* Task 4: Reduce vertical section padding on mobile (~30-40% reduction) */
  .section-block {
    padding: 46px 0;
  }

  .section-header {
    margin-bottom: 22px;
  }

  .hero-section {
    padding: 26px 0 36px;
  }

  .tagline-reveal-section {
    padding: 36px 0;
  }

  /* Task 6: Consistent RTL/LTR alignment on Mobile Hero */
  .hero-copy-col {
    text-align: start;
  }

  .hero-kicker {
    text-align: start;
    max-width: 100%;
  }

  .hero-cta-group {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin-bottom: var(--space-300);
  }

  .hero-cta-group .btn-primary-wa,
  .hero-cta-group .btn-ghost-link {
    width: 100%;
    justify-content: center;
  }

  .hero-assurances {
    align-items: flex-start;
    text-align: start;
  }

  /* Task 4: Horizontally Scrollable Sticky Quick-Nav Chips under Header */
  .mobile-quick-nav {
    display: block;
    border-top: 1px solid var(--hairline);
    background-color: rgba(255, 248, 242, 0.96);
    padding: 7px 0;
  }

  .mobile-quick-nav-track {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    padding-inline: 14px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .mobile-quick-nav-track::-webkit-scrollbar {
    display: none;
  }

  .quick-nav-chip {
    flex-shrink: 0;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 5px 13px;
    border-radius: var(--radius-pill);
    background-color: var(--surface-white);
    border: 1px solid var(--hairline-strong);
    color: var(--text-charcoal);
    font-size: 0.78rem;
    font-weight: 600;
    transition: background-color 160ms var(--ease-out), color 160ms var(--ease-out), border-color 160ms var(--ease-out);
  }

  .quick-nav-chip.active {
    background-color: var(--brand-lilac);
    border-color: var(--brand-lilac);
    color: #FFFFFF;
  }

  /* Task 4: Lightweight Mobile Studio Posters (load heavy JS/canvas only on tap) */
  .studio-panel.is-poster-mode .studio-grid {
    display: none;
  }

  .studio-panel.is-poster-mode .studio-mobile-poster {
    display: flex;
    flex-direction: column;
    gap: 12px;
    background-color: var(--surface-white);
    border-radius: var(--radius-md);
    overflow: hidden;
  }

  .studio-poster-media {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    background: linear-gradient(180deg, #FAF6F1 0%, #F4EDF9 100%);
    overflow: hidden;
    border-radius: var(--radius-sm);
    border: 1px solid var(--hairline);
  }

  .studio-poster-media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
  }

  .studio-poster-tag {
    position: absolute;
    top: 10px;
    inset-inline-start: 10px;
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    background-color: rgba(36, 25, 44, 0.78);
    color: #FFFFFF;
    font-size: 0.74rem;
    font-weight: 600;
  }

  .studio-poster-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 2px 4px 6px;
  }

  .studio-poster-title {
    margin: 0;
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--text-charcoal);
    text-align: start;
  }

  .studio-poster-btn {
    min-height: 46px;
    width: 100%;
    font-size: 0.92rem;
  }

  /* Task 4: Mobile-Only Collapsible Accordions (First Item Open) */
  .m-acc-chevron {
    display: inline-block;
    flex-shrink: 0;
    margin-inline-start: auto;
    color: var(--brand-lilac-deep);
    transition: transform 200ms var(--ease-out);
  }

  .m-acc-item.is-open > .m-acc-trigger .m-acc-chevron {
    transform: rotate(180deg);
  }

  .m-acc-panel {
    display: none;
  }

  .m-acc-item.is-open > .m-acc-panel {
    display: block;
  }

  .m-acc-card-trigger {
    pointer-events: auto;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    text-align: start;
    min-height: 44px;
  }

  .m-acc-card-trigger .step-number-badge,
  .m-acc-card-trigger .del-icon {
    margin-bottom: 0;
    flex-shrink: 0;
  }

  .m-acc-card-trigger h3 {
    margin-bottom: 0;
    font-size: 0.94rem;
    font-weight: 600;
  }

  .step-card.m-acc-item,
  .del-card.m-acc-item {
    padding: 12px 14px;
  }

  .step-card.m-acc-item .m-acc-panel,
  .del-card.m-acc-item .m-acc-panel {
    padding-top: 10px;
    margin-top: 8px;
    border-top: 1px solid var(--hairline);
  }

  .m-acc-policy-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 44px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--hairline-strong);
    background-color: var(--surface-white);
    color: var(--text-charcoal);
    font-size: 0.86rem;
    font-weight: 600;
    cursor: pointer;
  }

  .catalog-policy-notes {
    margin-top: var(--space-300);
    padding-top: 0;
    border-top: none;
  }

  .catalog-policy-notes .m-acc-panel {
    padding: 10px 12px 4px;
  }

  .catalog-policy-notes .price-policy-note {
    text-align: start;
    font-size: 0.8rem;
  }

  .m-acc-product-trigger {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: none;
    padding: 4px 0;
    margin-bottom: 6px;
    color: var(--brand-lilac-deep);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    min-height: 32px;
  }

  .product-details-acc .product-copy {
    display: block;
    -webkit-line-clamp: unset;
    overflow: visible;
    margin-bottom: 8px;
    font-size: 0.82rem;
    line-height: 1.6;
  }

  .m-acc-footer-trigger {
    pointer-events: auto;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 44px;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .m-acc-footer-trigger h4 {
    margin-bottom: 0;
  }

  .m-acc-footer-trigger .m-acc-chevron {
    color: #D6CFC3;
  }

  .footer-col.m-acc-item .m-acc-panel {
    padding-top: 10px;
  }

  /* Task 2: Sticky Mobile Bottom Cart Bar */
  .mobile-cart-bar {
    position: fixed;
    bottom: 0;
    inset-inline: 0;
    z-index: 1600;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
    background-color: var(--surface-white);
    border-top: 1px solid var(--hairline-strong);
    box-shadow: 0 -10px 30px rgba(36, 25, 44, 0.14);
    transform: translateY(100%);
    opacity: 0;
    transition: transform 220ms var(--ease-out), opacity 180ms ease;
  }

  .mobile-cart-bar[hidden] {
    display: none;
  }

  .mobile-cart-bar.is-visible {
    transform: translateY(0);
    opacity: 1;
  }

  .mobile-cart-bar-summary {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    text-align: start;
  }

  .mobile-cart-bar-count {
    font-size: 0.76rem;
    font-weight: 600;
    color: var(--text-secondary);
    font-variant-numeric: tabular-nums;
  }

  .mobile-cart-bar-total-row {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 4px 6px;
  }

  .mobile-cart-bar-total {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-charcoal);
    font-variant-numeric: tabular-nums;
    line-height: 1.2;
  }

  .mobile-cart-bar-ship-note {
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--text-muted);
  }

  .mobile-cart-bar-btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 48px;
    padding: 0 18px;
    border-radius: var(--radius-pill);
    border: 1.5px solid var(--brand-lilac);
    background-color: var(--brand-lilac);
    color: #FFFFFF;
    font-size: 0.92rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 18px -6px rgba(118, 73, 196, 0.48);
  }

  .mobile-cart-bar-btn:hover {
    background-color: var(--brand-lilac-hover);
    border-color: var(--brand-lilac-hover);
  }

  /* Keep footer clear & hide floating WA while bottom cart bar is visible */
  body.has-mobile-cart-bar {
    padding-bottom: calc(82px + env(safe-area-inset-bottom, 0px));
  }

  body.has-mobile-cart-bar .floating-wa-btn {
    opacity: 0 !important;
    pointer-events: none !important;
    transform: translateY(16px);
  }

  body.has-mobile-cart-bar .toast-notification {
    bottom: calc(96px + env(safe-area-inset-bottom, 0px));
  }

  /* Back-to-Top lifts above cart bar while visible */
  body.has-mobile-cart-bar .back-to-top-btn {
    bottom: calc(90px + env(safe-area-inset-bottom, 0px));
  }

  /* Keep Cart Drawer Footer compact on 390px screens */
  .cart-drawer-footer {
    padding: 12px 14px calc(14px + env(safe-area-inset-bottom, 0px));
    gap: 10px;
  }

  .cart-summary-box {
    padding: 10px 12px;
  }
}

/* ==========================================================================
   REDUCED MOTION ACCESSIBILITY
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal-section {
    opacity: 1 !important;
    transform: none !important;
  }

  .tagline-reveal-heading .reveal-word {
    opacity: 1 !important;
  }

  .mobile-cart-bar,
  .back-to-top-btn {
    transition: none !important;
  }
}
