/* ==========================================================================
   SpectrumMirror™ — Luxury Indian Handloom Virtual Try-On Design System
   Themes: Light (Ivory Silk), Dark (Obsidian Velvet), Spectrum (Iridescent Prism)
   Adheres to master prompt rules:
   - Warm off-white and deep charcoal (never raw #fff and #000)
   - One accent under 5% (Royal Crimson #7c1328 & Temple Gold #cfa643)
   - Min touch targets >= 44px
   - Fluid typography, accessible focus rings, zero horizontal scroll
   ========================================================================== */

/* 1. Theme Color Tokens & Variables */
:root, [data-theme="light"] {
  --bg-primary: #faf8f4;
  --bg-surface: #ffffff;
  --bg-subtle: #f3eee5;
  --bg-card: #ffffff;
  --bg-header: rgba(250, 248, 244, 0.94);
  --bg-dark: #19181a;
  --bg-dark-card: #232226;

  --text-primary: #1e1e24;
  --text-secondary: #58554e;
  --text-muted: #858279;
  --text-inverse: #faf7f2;

  --accent-crimson: #7c1328;
  --accent-crimson-hover: #961b33;
  --accent-gold: #cfa643;
  --accent-gold-light: #f3cc69;
  --accent-gold-soft: rgba(207, 166, 67, 0.15);

  --border-subtle: #e5ded3;
  --border-gold: #d8b761;
  --border-card: #e5ded3;

  --warning-box-bg: #fff9ee;
  --warning-box-border: #ebd9a8;
  --warning-box-text: #945308;

  --semantic-success: #1f6e43;
  --semantic-warning: #945308;
  --semantic-danger: #a31d1d;

  --shadow-sm: 0 2px 4px rgba(30, 30, 36, 0.04);
  --shadow-md: 0 6px 18px rgba(30, 30, 36, 0.08);
  --shadow-lg: 0 12px 32px rgba(30, 30, 36, 0.12);
  --shadow-gold: 0 4px 20px rgba(207, 166, 67, 0.25);

  --spectrum-gradient: linear-gradient(135deg, #7c1328, #cfa643);
  --spectrum-border: linear-gradient(135deg, rgba(207, 166, 67, 0.4), rgba(124, 19, 40, 0.3));
  --spectrum-badge-bg: rgba(124, 19, 40, 0.08);
  --spectrum-badge-text: #7c1328;

  --btn-active-bg: #1e1e24;
  --btn-active-text: #ffffff;

  /* Typography */
  --font-serif: "Cinzel", "Playfair Display", Georgia, serif;
  --font-sans: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", Menlo, monospace;

  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;

  /* Radii */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;
}

/* Dark Theme (Obsidian Velvet) */
[data-theme="dark"] {
  --bg-primary: #0e0d13;
  --bg-surface: #17151e;
  --bg-subtle: #211e2b;
  --bg-card: #17151e;
  --bg-header: rgba(14, 13, 19, 0.94);
  --bg-dark: #0a090e;
  --bg-dark-card: #14131b;

  --text-primary: #f5f3ee;
  --text-secondary: #c2bdb3;
  --text-muted: #84808e;
  --text-inverse: #1e1e24;

  --accent-crimson: #a81c38;
  --accent-crimson-hover: #c42646;
  --accent-gold: #e2b74f;
  --accent-gold-light: #fce293;
  --accent-gold-soft: rgba(226, 183, 79, 0.18);

  --border-subtle: #2d2938;
  --border-gold: #b38b36;
  --border-card: #2d2938;

  --warning-box-bg: #231b10;
  --warning-box-border: #4d3a1a;
  --warning-box-text: #e2b74f;

  --semantic-success: #2ecc71;
  --semantic-warning: #f39c12;
  --semantic-danger: #e74c3c;

  --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.55);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.7);
  --shadow-gold: 0 4px 24px rgba(226, 183, 79, 0.3);

  --spectrum-gradient: linear-gradient(135deg, #a81c38, #e2b74f);
  --spectrum-border: linear-gradient(135deg, rgba(226, 183, 79, 0.4), rgba(168, 28, 56, 0.35));
  --spectrum-badge-bg: rgba(226, 183, 79, 0.12);
  --spectrum-badge-text: #fce293;

  --btn-active-bg: #e2b74f;
  --btn-active-text: #1e1e24;
}

/* Spectrum Theme (Iridescent Jewel Prism) */
[data-theme="spectrum"] {
  --bg-primary: #07060c;
  --bg-surface: rgba(18, 16, 27, 0.88);
  --bg-subtle: rgba(28, 25, 44, 0.75);
  --bg-card: rgba(18, 16, 27, 0.92);
  --bg-header: rgba(8, 7, 14, 0.92);
  --bg-dark: #040307;
  --bg-dark-card: rgba(14, 12, 22, 0.96);

  --text-primary: #ffffff;
  --text-secondary: #dcd8eb;
  --text-muted: #9e99b5;
  --text-inverse: #06050b;

  --accent-crimson: #f4256d;
  --accent-crimson-hover: #ff4785;
  --accent-gold: #ffd152;
  --accent-gold-light: #fff275;
  --accent-gold-soft: rgba(255, 209, 82, 0.22);

  --border-subtle: rgba(255, 255, 255, 0.14);
  --border-gold: rgba(255, 209, 82, 0.6);
  --border-card: rgba(255, 255, 255, 0.16);

  --warning-box-bg: rgba(45, 30, 15, 0.7);
  --warning-box-border: rgba(255, 209, 82, 0.35);
  --warning-box-text: #ffd152;

  --semantic-success: #00dfd8;
  --semantic-warning: #ffd152;
  --semantic-danger: #f4256d;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.5);
  --shadow-md: 0 8px 28px rgba(0, 0, 0, 0.7);
  --shadow-lg: 0 16px 48px rgba(121, 40, 202, 0.25);
  --shadow-gold: 0 0 24px rgba(255, 209, 82, 0.35);

  --spectrum-gradient: linear-gradient(135deg, #ff007f 0%, #7928ca 20%, #0070f3 40%, #00dfd8 60%, #ffd152 80%, #ff5e62 100%);
  --spectrum-gradient-h: linear-gradient(90deg, #ff007f 0%, #7928ca 20%, #0070f3 40%, #00dfd8 60%, #ffd152 80%, #ff5e62 100%);
  --spectrum-border: var(--spectrum-gradient);
  --spectrum-glow: 0 0 28px rgba(121, 40, 202, 0.35), 0 0 14px rgba(0, 223, 216, 0.3);
  --spectrum-badge-bg: linear-gradient(135deg, rgba(255, 0, 127, 0.15), rgba(0, 223, 216, 0.15));
  --spectrum-badge-text: #00dfd8;

  --btn-active-bg: var(--spectrum-gradient);
  --btn-active-text: #ffffff;
}

/* Spectrum Animation Keyframes */
@keyframes spectrumShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes spectrumPulse {
  0% { box-shadow: 0 0 12px rgba(121, 40, 202, 0.3); }
  50% { box-shadow: 0 0 24px rgba(0, 223, 216, 0.5), 0 0 12px rgba(255, 0, 127, 0.4); }
  100% { box-shadow: 0 0 12px rgba(121, 40, 202, 0.3); }
}

/* Ambient Backdrop Glow for Spectrum Theme */
[data-theme="spectrum"] body::before {
  content: "";
  position: fixed;
  top: -15%;
  left: -15%;
  width: 130%;
  height: 130%;
  background: radial-gradient(circle at 18% 18%, rgba(121, 40, 202, 0.14), transparent 40%),
              radial-gradient(circle at 82% 24%, rgba(0, 223, 216, 0.12), transparent 45%),
              radial-gradient(circle at 50% 85%, rgba(255, 0, 127, 0.10), transparent 50%),
              radial-gradient(circle at 85% 85%, rgba(255, 209, 82, 0.08), transparent 40%);
  pointer-events: none;
  z-index: -1;
}

/* Reset & Foundation */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100vh;
  transition: background-color 0.25s ease, color 0.25s ease;
}

/* Focus Rings */
:focus-visible {
  outline: 2px solid var(--accent-gold);
  outline-offset: 3px;
}

/* Base Headings */
h1, h2, h3, h4, .serif-heading {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.25;
  color: var(--text-primary);
}

/* Touch Targets Minimum 44px */
button, input, select, a, .touch-target {
  min-height: 44px;
  min-width: 44px;
}

/* Top App Header - Haute Couture Digital Drape Studio */
.app-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: var(--bg-header);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 8px 0 6px 0;
  transition: all 0.25s ease;
}

.header-container {
  max-width: 100%;
  width: 100%;
  margin: 0;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-sizing: border-box;
}

.brand-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-primary);
  flex-shrink: 0;
}

.brand-logo-img {
  height: 38px;
  width: auto;
  max-width: 175px;
  object-fit: contain;
  display: block;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.brand-badge:hover .brand-logo-img {
  transform: scale(1.03);
}

[data-theme="dark"] .brand-logo-img {
  filter: drop-shadow(0 0 10px rgba(226, 183, 79, 0.3)) drop-shadow(0 0 3px rgba(255, 255, 255, 0.15));
}

[data-theme="spectrum"] .brand-logo-img {
  filter: drop-shadow(0 0 14px rgba(0, 223, 216, 0.45)) drop-shadow(0 0 8px rgba(121, 40, 202, 0.35));
}

.brand-sub-badge {
  display: flex;
  flex-direction: column;
}

.brand-tagline {
  font-size: 0.70rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 1px;
  white-space: nowrap;
}

/* Tier 2: Dedicated Luxury Collections Menu Bar */
.header-nav-bar {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 6px 24px 0 24px;
  margin-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  box-sizing: border-box;
}

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

/* Haute Couture Curated Collection Navigation */
.header-cat-tabs {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(18, 15, 24, 0.85);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-full);
  padding: 3px 6px;
  box-sizing: border-box;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.5);
  flex-shrink: 0;
}

.header-cat-tab {
  border: 1px solid transparent;
  background: transparent;
  color: #c4beb4;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 5px 16px;
  height: 32px;
  min-height: 32px;
  min-width: unset;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.header-cat-tab:hover {
  color: #ffffff;
  background: rgba(226, 183, 79, 0.12);
  border-color: rgba(226, 183, 79, 0.3);
}

.header-cat-tab.active {
  background: linear-gradient(135deg, rgba(168, 28, 56, 0.65), rgba(226, 183, 79, 0.4));
  color: #ffffff;
  border-color: var(--accent-gold);
  font-weight: 700;
  box-shadow: 0 0 14px rgba(226, 183, 79, 0.35);
}

[data-theme="spectrum"] .header-cat-tab.active {
  background: var(--spectrum-gradient);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 0 16px rgba(0, 223, 216, 0.5);
}

/* Header Action Cluster */
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
  justify-content: flex-end;
  flex-shrink: 0;
}

.header-cta-btn {
  height: 38px;
  min-height: 38px;
  padding: 0 14px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(226, 183, 79, 0.22);
}

.header-icon-btn {
  width: 38px;
  height: 38px;
  min-height: 38px;
  min-width: 38px;
  padding: 0;
  display: grid;
  place-items: center;
  font-size: 1.25rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  border-color: var(--border-subtle);
}

.header-icon-btn:hover {
  border-color: var(--accent-gold);
  color: var(--accent-gold);
}

.header-dropdown-wrap {
  position: relative;
}

.header-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  min-width: 220px;
  padding: 6px;
  display: none;
  flex-direction: column;
  gap: 2px;
  z-index: 100;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.header-dropdown-menu.show {
  display: flex;
  animation: dropdownFadeIn 0.16s ease-out;
}

@keyframes dropdownFadeIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.dropdown-item {
  border: none;
  background: transparent;
  color: var(--text-primary);
  padding: 9px 12px;
  font-size: 0.82rem;
  font-weight: 600;
  text-align: left;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
}

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

.dropdown-divider {
  height: 1px;
  background: var(--border-subtle);
  margin: 4px 0;
}

.dropdown-item-danger {
  color: var(--semantic-danger);
}

.dropdown-item-danger:hover {
  background: rgba(231, 76, 60, 0.12);
  color: #ff6b6b;
}

/* Pre-Designs / Curated Looks Bar */
.pre-designs-bar {
  background: linear-gradient(180deg, rgba(23, 20, 29, 0.95), rgba(13, 11, 17, 0.98));
  border: 1px solid rgba(226, 183, 79, 0.32);
  border-radius: var(--radius-md);
  padding: 6px 10px;
  margin-bottom: 6px;
}

.pre-designs-hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 5px;
}

.pre-designs-title {
  font-family: var(--font-serif);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent-gold);
  letter-spacing: 0.04em;
}

.pre-designs-hint {
  font-size: 0.70rem;
  color: var(--text-muted);
}

.pre-designs-scroll {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 5px;
  width: 100%;
  box-sizing: border-box;
}

.preset-look-chip {
  background: rgba(30, 27, 38, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  padding: 5px 6px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  min-width: 0;
  width: 100%;
  transition: all 0.2s ease;
  text-align: left;
  box-sizing: border-box;
  overflow: hidden;
}

.preset-look-chip:hover {
  border-color: var(--accent-gold);
  background: rgba(45, 40, 56, 0.95);
  transform: translateY(-1px);
}

.preset-look-chip.active {
  background: linear-gradient(135deg, rgba(168, 28, 56, 0.45), rgba(226, 183, 79, 0.28));
  border: 1.5px solid var(--accent-gold);
  box-shadow: 0 0 14px rgba(226, 183, 79, 0.28);
}

.preset-badge {
  font-weight: 700;
  font-size: 0.74rem;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}

.preset-detail {
  font-size: 0.63rem;
  color: #c4beb2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}

/* Studio Muse Selector Strip */
.muse-selector-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  padding: 4px 8px;
  background: rgba(18, 16, 24, 0.75);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
}

.muse-strip-lbl {
  font-size: 0.70rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.muse-options {
  display: flex;
  gap: 5px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.muse-options::-webkit-scrollbar {
  display: none;
}

.muse-pill {
  border: 1px solid var(--border-subtle);
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.74rem;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.muse-pill:hover {
  color: var(--text-primary);
  border-color: var(--accent-gold);
}

.muse-pill.active {
  background: var(--accent-gold-soft);
  color: var(--accent-gold);
  border-color: var(--accent-gold);
  font-weight: 700;
}

/* Standardized 38px Header Buttons */
.header-btn {
  height: 38px;
  min-height: 38px;
  padding: 0 14px;
  font-size: 0.84rem;
  font-weight: 600;
  white-space: nowrap;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.header-btn-dim {
  color: var(--text-muted);
  border-color: var(--border-subtle);
}

.header-btn-dim:hover {
  color: var(--text-primary);
  border-color: var(--accent-gold);
}

.header-btn-bag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
}

.bag-count-badge {
  background: var(--accent-crimson);
  color: #fff;
  font-size: 0.75rem;
  padding: 2px 7px;
  border-radius: 10px;
  font-weight: 700;
  min-width: 20px;
  text-align: center;
}

/* Theme Switcher Segmented Control */
.theme-switcher {
  display: inline-flex;
  align-items: center;
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 2px;
  gap: 2px;
  height: 38px;
  box-sizing: border-box;
}

.theme-btn {
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0 10px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.18s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 32px;
  min-height: 32px;
  min-width: unset;
  user-select: none;
  box-sizing: border-box;
}

.theme-btn:hover {
  color: var(--text-primary);
}

.theme-btn.active {
  background: var(--bg-surface);
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
  font-weight: 700;
}

[data-theme="dark"] .theme-btn.active[data-theme-val="dark"] {
  background: var(--accent-gold);
  color: #1e1e24;
  font-weight: 700;
}

[data-theme="spectrum"] .theme-btn.active[data-theme-val="spectrum"] {
  background: var(--spectrum-gradient);
  background-size: 200% auto;
  animation: spectrumShift 4s linear infinite;
  color: #ffffff;
  box-shadow: 0 0 14px rgba(0, 223, 216, 0.45);
  font-weight: 700;
}

.locale-picker {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0 12px;
  height: 38px;
  min-height: 38px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

/* Base Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.18s ease;
  border: 1px solid transparent;
  text-decoration: none;
  user-select: none;
}

.btn-primary {
  background-color: var(--accent-crimson);
  color: #ffffff;
}

.btn-primary:hover {
  background-color: var(--accent-crimson-hover);
  box-shadow: 0 4px 14px rgba(124, 19, 40, 0.32);
}

.btn-gold {
  background-color: var(--accent-gold);
  color: #1e1e24;
  border-color: #b89033;
}

.btn-gold:hover {
  background-color: var(--accent-gold-light);
  box-shadow: var(--shadow-gold);
}

[data-theme="spectrum"] .btn-gold {
  background: var(--spectrum-gradient);
  background-size: 200% auto;
  animation: spectrumShift 5s linear infinite;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 0 16px rgba(0, 223, 216, 0.4);
}

.btn-outline {
  background-color: transparent;
  border-color: var(--border-subtle);
  color: var(--text-primary);
}

.btn-outline:hover {
  background-color: var(--bg-subtle);
  border-color: var(--accent-gold);
}

.btn-whatsapp {
  background-color: #25d366;
  color: #ffffff;
}

.btn-whatsapp:hover {
  background-color: #1eb857;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
}

/* Main Container Layout - Full Page Width */
.main-wrapper {
  max-width: 100%;
  width: 100%;
  margin: 0;
  padding: 10px 24px 24px 24px;
  box-sizing: border-box;
}

/* Hero / Mirror Dual Column - Expansive Desktop Layout (Equal 50/50 Panes) */
.tryon-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  width: 100%;
}

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

/* Mirror Studio Viewport Card - Fits 100% Inside Desktop Screen */
.mirror-card {
  background-color: var(--bg-dark);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 14px;
  transition: all 0.25s ease;
}

[data-theme="spectrum"] .mirror-card {
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: var(--shadow-lg), var(--spectrum-glow);
}

.mirror-header {
  padding: 6px 8px;
  background-color: transparent;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.mirror-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #f3cc69;
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

[data-theme="spectrum"] .mirror-badge {
  color: #00dfd8;
}

.status-pulse {
  width: 8px;
  height: 8px;
  background-color: #25d366;
  border-radius: 50%;
  box-shadow: 0 0 8px #25d366;
}

.mirror-viewport-wrapper {
  position: relative;
  width: 100%;
  max-width: 660px;
  height: clamp(440px, 70vh, 840px);
  aspect-ratio: 3 / 4;
  margin: 0 auto;
  background: radial-gradient(circle at 50% 35%, #2a223a 0%, #151221 65%, #090812 100%);
  border-radius: 16px;
  border: 1.5px solid rgba(255, 209, 82, 0.45);
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.75), 0 0 32px rgba(226, 183, 79, 0.22), inset 0 0 25px rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: crosshair;
}

:fullscreen .mirror-viewport-wrapper,
:-webkit-full-screen .mirror-viewport-wrapper {
  max-width: 780px;
  height: clamp(680px, 84vh, 980px);
}

#mirrorCanvas {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 14px;
}

#rawVideo {
  display: none;
}

/* Camera Outline Silhouette */
.body-outline-guide {
  position: absolute;
  inset: 0;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.35;
  transition: opacity 0.3s ease;
}

.body-outline-guide.hidden {
  opacity: 0;
}

.body-outline-svg {
  width: 75%;
  height: 85%;
  stroke: var(--accent-gold);
  stroke-dasharray: 6 6;
  stroke-width: 2;
  fill: none;
}

/* Floating Split Slider Handle on Canvas */
.canvas-split-slider-bar {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(20, 19, 22, 0.88);
  backdrop-filter: blur(8px);
  border: 1px solid #4a4750;
  border-radius: var(--radius-full);
  padding: 6px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 15;
  color: #fff;
  font-size: 0.82rem;
  box-shadow: var(--shadow-md);
}

.canvas-split-slider-bar.hidden {
  display: none;
}

/* Countdown Overlay */
.countdown-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.65);
  display: none;
  place-items: center;
  z-index: 20;
}

.countdown-number {
  font-family: var(--font-serif);
  font-size: 5rem;
  color: var(--accent-gold-light);
  animation: pulseZoom 1s infinite;
}

@keyframes pulseZoom {
  0% { transform: scale(0.8); opacity: 0.7; }
  50% { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(0.8); opacity: 0.7; }
}

/* Mirror Controls Bar - Compact Desktop Dock */
.mirror-toolbar {
  padding: 8px 12px;
  background-color: var(--bg-dark-card);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.toolbar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
}

.drape-mode-toggle {
  display: inline-flex;
  background-color: #141316;
  padding: 4px;
  border-radius: var(--radius-sm);
  border: 1px solid #38353d;
  flex-wrap: wrap;
  gap: 2px;
}

.toggle-option {
  padding: 6px 12px;
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
  color: #aba8a2;
  border: none;
  background: transparent;
  transition: all 0.15s ease;
  min-height: 36px;
  min-width: unset;
}

.toggle-option.active {
  background-color: var(--accent-crimson);
  color: #ffffff;
}

[data-theme="spectrum"] .toggle-option.active {
  background: var(--spectrum-gradient);
  background-size: 200% auto;
  animation: spectrumShift 4s linear infinite;
  box-shadow: 0 0 10px rgba(0, 223, 216, 0.4);
}

/* Accessory Chips */
.accessory-chip {
  padding: 6px 12px;
  font-size: 0.8rem;
  border-radius: var(--radius-full);
  border: 1px solid #4a4750;
  background: #141316;
  color: #d1cdc7;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
  min-height: 36px;
  min-width: unset;
}

.accessory-chip.active {
  background: var(--accent-gold);
  color: #1e1e24;
  border-color: #f3cc69;
  font-weight: 700;
}

[data-theme="spectrum"] .accessory-chip.active {
  background: var(--spectrum-gradient);
  background-size: 200% auto;
  animation: spectrumShift 4s linear infinite;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 0 12px rgba(0, 223, 216, 0.45);
}

/* Lighting Preset Pills */
.lighting-pill {
  padding: 5px 10px;
  font-size: 0.78rem;
  border-radius: var(--radius-sm);
  border: 1px solid #38353d;
  background: #141316;
  color: #b0aba2;
  cursor: pointer;
  transition: all 0.15s ease;
  min-height: 36px;
  min-width: unset;
}

.lighting-pill.active {
  background: #f3cc69;
  color: #1e1e24;
  border-color: #f3cc69;
  font-weight: 700;
}

[data-theme="spectrum"] .lighting-pill.active {
  background: #00dfd8;
  color: #06050b;
  border-color: #00dfd8;
  box-shadow: 0 0 10px rgba(0, 223, 216, 0.6);
}

/* Varna Gyaan Harmony Card */
.harmony-card {
  background-color: var(--bg-surface);
  border: 1.5px solid var(--border-gold);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  transition: all 0.25s ease;
}

.harmony-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-crimson), var(--accent-gold), var(--accent-crimson));
}

[data-theme="spectrum"] .harmony-card {
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: var(--shadow-md), 0 0 20px rgba(121, 40, 202, 0.2);
}

[data-theme="spectrum"] .harmony-card::before {
  background: var(--spectrum-gradient-h);
  background-size: 200% auto;
  animation: spectrumShift 4s linear infinite;
  height: 5px;
}

.harmony-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  gap: 12px;
}

.harmony-score-circle {
  width: 60px;
  height: 60px;
  min-width: 60px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--bg-subtle) 60%, var(--accent-gold-soft) 100%);
  border: 2px solid var(--accent-gold);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
  flex-shrink: 0;
  padding: 4px;
  box-sizing: border-box;
}

[data-theme="spectrum"] .harmony-score-circle {
  background: radial-gradient(circle, rgba(28, 25, 44, 0.9) 50%, rgba(121, 40, 202, 0.4) 100%);
  border: 2px solid #00dfd8;
  box-shadow: 0 0 16px rgba(0, 223, 216, 0.5);
}

.harmony-score-val {
  font-family: var(--font-serif);
  font-size: 1.18rem;
  font-weight: 800;
  color: var(--accent-crimson);
  line-height: 1;
}

[data-theme="spectrum"] .harmony-score-val {
  color: #00dfd8;
  text-shadow: 0 0 8px rgba(0, 223, 216, 0.6);
}

.harmony-score-label {
  font-size: 0.56rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  margin-top: 2px;
  line-height: 1;
}

.skin-tone-swatch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  background-color: var(--bg-subtle);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
}

.tone-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.15);
}

/* Saree Detail Side-Panel */
.product-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.product-meta-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
}

.product-side-split {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 16px;
  align-items: start;
}

@media (max-width: 860px) {
  .product-side-split {
    grid-template-columns: 1fr;
  }
}

[data-theme="spectrum"] .product-meta-card {
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: var(--shadow-md);
}

.stock-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background-color: var(--spectrum-badge-bg);
  color: var(--spectrum-badge-text);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: var(--radius-full);
  margin-bottom: 12px;
  border: 1px solid rgba(207, 166, 67, 0.2);
}

[data-theme="spectrum"] .stock-pill {
  border-color: rgba(0, 223, 216, 0.35);
  box-shadow: 0 0 10px rgba(0, 223, 216, 0.25);
}

.product-title {
  font-size: 1.75rem;
  margin-bottom: 6px;
}

.product-subtitle {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 18px;
}

.price-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 18px;
}

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

.price-tax-badge {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Saree Specific Specs Grid */
.specs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}

.spec-item {
  background-color: var(--bg-subtle);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  transition: all 0.2s ease;
}

.spec-key {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 2px;
}

.spec-val {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
}

/* Fall & Pico Service Checkbox (Master prompt requirement) */
.fall-pico-box {
  background-color: var(--warning-box-bg);
  border: 1px solid var(--warning-box-border);
  border-radius: var(--radius-sm);
  padding: 14px;
  margin-bottom: 20px;
  transition: all 0.2s ease;
}

.fall-pico-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  color: var(--text-primary);
}

.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--accent-crimson);
}

.fall-warning {
  font-size: 0.78rem;
  color: var(--warning-box-text);
  padding-left: 28px;
  line-height: 1.4;
}

/* Studio Body Diversity Tabs */
.body-types-section {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
  transition: all 0.25s ease;
}

.body-tab-buttons {
  display: flex;
  gap: 8px;
  margin: 14px 0;
  flex-wrap: wrap;
}

.body-tab-btn {
  padding: 8px 14px;
  font-size: 0.82rem;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  background: var(--bg-subtle);
  color: var(--text-secondary);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  min-height: 38px;
  min-width: unset;
}

.body-tab-btn.active {
  background: var(--btn-active-bg);
  color: var(--btn-active-text);
  border-color: var(--btn-active-bg);
}

[data-theme="spectrum"] .body-tab-btn.active {
  background: var(--spectrum-gradient);
  background-size: 200% auto;
  animation: spectrumShift 4s linear infinite;
  box-shadow: 0 0 12px rgba(0, 223, 216, 0.4);
}

/* Saree Selector Carousel / Thumbnails */
.catalog-strip {
  margin-top: 40px;
}

.catalog-heading {
  font-size: 1.35rem;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.saree-cards-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.saree-thumb-card {
  background-color: var(--bg-surface);
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.saree-thumb-card:hover, .saree-thumb-card.active {
  border-color: var(--accent-gold);
  box-shadow: var(--shadow-gold);
  transform: translateY(-2px);
}

[data-theme="spectrum"] .saree-thumb-card.active {
  border-color: #00dfd8;
  box-shadow: 0 0 20px rgba(0, 223, 216, 0.35);
}

.saree-color-strip {
  height: 8px;
  border-radius: 4px;
  margin-bottom: 12px;
}

.saree-thumb-title {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--text-primary);
}

.saree-thumb-price {
  font-weight: 700;
  color: var(--accent-crimson);
  font-size: 0.95rem;
}

[data-theme="spectrum"] .saree-thumb-price {
  color: #ffd152;
}

/* Modal Backdrops & Content */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 100;
  display: none;
  place-items: center;
  padding: 20px;
}

.modal-content {
  background-color: var(--bg-surface);
  color: var(--text-primary);
  border: 2px solid var(--border-gold);
  border-radius: var(--radius-md);
  max-width: 640px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 26px;
  position: relative;
  box-shadow: var(--shadow-lg);
  transition: all 0.25s ease;
}

[data-theme="spectrum"] .modal-content {
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: var(--shadow-lg), var(--spectrum-glow);
}

.modal-close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  background: transparent;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-muted);
  min-height: 36px;
  min-width: 36px;
  display: grid;
  place-items: center;
}

.modal-close-btn:hover {
  color: var(--text-primary);
}

#shareCardPreview {
  width: 100%;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  margin: 16px 0;
  display: block;
}

/* Fine-tune Drawer Controls */
.fine-tune-drawer {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-top: 12px;
}

.slider-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

.slider-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-weight: 600;
}

.range-slider {
  width: 100%;
  accent-color: var(--accent-crimson);
}

[data-theme="spectrum"] .range-slider {
  accent-color: #00dfd8;
}

/* Bag Modal / Checkout Drawer */
.bag-item-row {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-subtle);
}

/* Printable Tax Invoice Styles (Strictly high-contrast printable sheet) */
.tax-invoice-sheet {
  background: #ffffff !important;
  color: #1e1e24 !important;
  padding: 24px;
  border: 1px solid #d4cdc3;
  border-radius: 4px;
  font-family: var(--font-sans);
  font-size: 0.85rem;
}

.invoice-header-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 16px;
}

.invoice-items-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
}

.invoice-items-table th, .invoice-items-table td {
  border: 1px solid #ccc;
  padding: 8px 10px;
}

.invoice-items-table th {
  background-color: #f7f4ee;
  text-align: left;
}

@media print {
  body * {
    visibility: hidden;
  }
  #invoiceModal, #invoiceModal * {
    visibility: visible;
  }
  #invoiceModal {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    background: #fff;
  }
}

/* ==========================================================================
   COMPREHENSIVE RESPONSIVE DESIGN SYSTEM
   Supports: 4K / Widescreen Desktop, Laptop, Tablets, Phablets & Mobile Phones
   ========================================================================== */

/* 1. Large Laptops & Medium Screens (<= 1100px) */
@media (max-width: 1100px) {
  .tryon-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .mirror-viewport-wrapper {
    max-width: 580px;
    height: clamp(400px, 66vh, 740px);
  }

  .pre-designs-scroll {
    display: flex;
    overflow-x: auto;
    gap: 8px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
    scrollbar-width: thin;
  }

  .preset-look-chip {
    flex: 0 0 160px;
    min-width: 160px;
    scroll-snap-align: start;
  }
}

/* 2. Tablets & Small Laptops (<= 900px) */
@media (max-width: 900px) {
  .header-nav-bar {
    justify-content: flex-start;
    padding: 6px 14px;
  }

  .product-side-split {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .harmony-header {
    gap: 10px;
  }
}

/* 3. Mobile Landscape & Tablets (<= 768px) */
@media (max-width: 768px) {
  .main-wrapper {
    padding: 8px 14px 28px 14px;
  }

  .app-header {
    padding: 6px 0 4px 0;
  }

  .header-container {
    padding: 0 12px;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .brand-logo-img {
    height: 30px;
  }

  .brand-tagline {
    display: none;
  }

  .header-actions {
    gap: 6px;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .header-cta-btn {
    height: 36px;
    min-height: 36px;
    padding: 0 10px;
    font-size: 0.78rem;
  }

  .header-btn {
    height: 36px;
    min-height: 36px;
    padding: 0 10px;
    font-size: 0.78rem;
  }

  .locale-picker {
    height: 36px;
    min-height: 36px;
    padding: 0 6px;
    font-size: 0.76rem;
    max-width: 90px;
  }

  .theme-switcher {
    height: 36px;
  }

  .theme-btn {
    height: 30px;
    min-height: 30px;
    padding: 0 8px;
    font-size: 0.74rem;
  }

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

  /* Pre-designs & Muse Strips */
  .pre-designs-bar {
    padding: 6px 8px;
  }

  .pre-designs-scroll {
    display: flex;
    overflow-x: auto;
    gap: 6px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 2px;
  }

  .pre-designs-scroll::-webkit-scrollbar {
    display: none;
  }

  .preset-look-chip {
    flex: 0 0 145px;
    min-width: 145px;
    padding: 5px 6px;
  }

  .muse-selector-strip {
    flex-wrap: wrap;
    gap: 6px;
    padding: 4px 6px;
  }

  .muse-options {
    display: flex;
    overflow-x: auto;
    gap: 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    width: 100%;
  }

  .muse-options::-webkit-scrollbar {
    display: none;
  }

  .muse-pill {
    font-size: 0.72rem;
    padding: 3px 8px;
    white-space: nowrap;
    flex-shrink: 0;
  }

  /* Mirror Viewport on Mobile */
  .mirror-card {
    padding: 8px 10px;
  }

  .mirror-viewport-wrapper {
    width: 100%;
    max-width: 100%;
    height: clamp(320px, 58vh, 520px);
    aspect-ratio: 3 / 4;
    border-radius: 12px;
  }

  #mirrorCanvas {
    border-radius: 10px;
  }

  /* Mirror Toolbar Responsiveness */
  .mirror-toolbar {
    padding: 8px 10px;
    gap: 8px;
  }

  .toolbar-row {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .toolbar-row > div {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }

  #startCamBtn {
    flex: 1 1 140px;
    min-height: 42px;
    font-size: 0.85rem;
    justify-content: center;
  }

  #flipCamBtn, #photoUploadLabel {
    flex: 1 1 80px;
    min-height: 42px;
    font-size: 0.82rem;
    justify-content: center;
    text-align: center;
  }

  #splitViewBtn, #timer3sBtn, #timer5sBtn, #toggleGuideBtn {
    flex: 1 1 calc(25% - 6px);
    min-height: 38px;
    padding: 6px 4px;
    font-size: 0.76rem;
    justify-content: center;
    text-align: center;
  }

  .drape-mode-toggle {
    display: flex;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 2px;
  }

  .drape-mode-toggle::-webkit-scrollbar {
    display: none;
  }

  .toggle-option {
    flex: 1 0 auto;
    text-align: center;
    white-space: nowrap;
    padding: 6px 8px;
    font-size: 0.76rem;
    min-height: 36px;
  }

  .lighting-pill {
    flex: 1 0 auto;
    font-size: 0.74rem;
    padding: 5px 8px;
    text-align: center;
  }

  .accessory-chip {
    flex: 1 1 calc(50% - 4px);
    justify-content: center;
    font-size: 0.76rem;
    min-height: 36px;
  }

  .fine-tune-drawer > div {
    grid-template-columns: 1fr !important;
  }

  /* Product Details & Actions */
  .product-meta-card {
    padding: 14px 12px;
  }

  .product-title {
    font-size: 1.35rem;
  }

  .product-subtitle {
    font-size: 0.82rem;
  }

  .specs-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
  }

  .btn-whatsapp, .btn-primary {
    min-height: 48px;
    font-size: 0.95rem;
    justify-content: center;
  }

  /* Modals */
  .modal-backdrop {
    padding: 10px;
  }

  .modal-content {
    padding: 18px 14px;
    max-height: calc(100dvh - 20px);
  }

  .tax-invoice-sheet {
    padding: 12px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* Saree Cards Grid */
  .saree-cards-row {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
  }

  .saree-thumb-card {
    padding: 12px 10px;
  }
}

/* 4. Ultra-Small Smartphones (<= 480px, e.g. iPhone SE, Galaxy S) */
@media (max-width: 480px) {
  .main-wrapper {
    padding: 6px 8px 24px 8px;
  }

  .header-actions {
    gap: 4px;
  }

  .header-cta-btn {
    height: 34px;
    min-height: 34px;
    padding: 0 8px;
    font-size: 0.74rem;
  }

  #headerStartCamBtnText {
    display: inline;
  }

  #openScannerBtn, #openMatchmakerBtn {
    padding: 0 6px;
  }

  .locale-picker {
    max-width: 72px;
    font-size: 0.72rem;
    padding: 0 4px;
  }

  .mirror-viewport-wrapper {
    height: clamp(280px, 54vh, 460px);
  }

  .specs-grid {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .saree-cards-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .saree-thumb-card {
    padding: 10px 8px;
  }

  .saree-thumb-title {
    font-size: 0.82rem;
  }

  .saree-thumb-price {
    font-size: 0.84rem;
  }

  .preset-look-chip {
    flex: 0 0 135px;
    min-width: 135px;
  }

  .preset-badge {
    font-size: 0.70rem;
  }

  .preset-detail {
    font-size: 0.60rem;
  }

  .countdown-number {
    font-size: 3.5rem;
  }
}
