@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@600;700;800;900&family=Playfair+Display:ital,wght@0,500;0,600;0,700;0,800;0,900;1,400;1,600;1,700&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800;900&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@500;600;700&display=swap');

/* Global High-Contrast Luxury Text Selection */
::selection {
  background-color: #fde68a !important; /* Rich warm amber highlight */
  color: #451a03 !important;            /* Deep espresso brown - 100% visible */
}
::-moz-selection {
  background-color: #fde68a !important;
  color: #451a03 !important;
}

/* ==============================================================================
   HIGH-LEGIBILITY COMMERCIAL PRICE & AMOUNT TYPOGRAPHY (Crystal Clear Rupee & Digits)
   ============================================================================== */
.font-price,
.price-tag,
.amount-text {
  font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  font-feature-settings: "tnum" 1, "lnum" 1 !important;
  font-variant-numeric: tabular-nums lining-nums !important;
  letter-spacing: -0.025em !important;
}

:root {
  /* Default Saurashtra Sarees Luxury Theme (Royal Heritage Maroon & Antique Gold) */
  --theme-primary: #8b1d40;
  --theme-primary-hover: #701432;
  --theme-primary-light: #fdf2f5;
  --theme-accent: #d4af37;
  --theme-accent-hover: #b89628;
  --theme-accent-light: #fefcf3;
  --theme-surface: #ffffff;
  --theme-bg: #fffdfa;
  --theme-card-bg: #ffffff;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --border: #f1e5d1;
  --border-gold: rgba(212, 175, 55, 0.35);
  --shadow-luxury: 0 12px 30px -10px rgba(139, 29, 64, 0.12), 0 4px 12px -2px rgba(0, 0, 0, 0.04);
}

/* ==============================================================================
   KEYA FASHION THEME (Vibrant Festive Cyan, Sunburst Marigold & Emerald Accents)
   ============================================================================== */
body.theme-keya {
  --theme-primary: #0284c7;
  --theme-primary-hover: #0369a1;
  --theme-primary-light: #f0f9ff;
  --theme-accent: #f59e0b;
  --theme-accent-hover: #d97706;
  --theme-accent-light: #fffbeb;
  --theme-surface: #ffffff;
  --theme-bg: #f8fafc;
  --theme-card-bg: #ffffff;
  --text-main: #0f172a;
  --text-muted: #475569;
  --border: #e0f2fe;
  --border-gold: rgba(245, 158, 11, 0.4);
  --shadow-luxury: 0 12px 30px -10px rgba(2, 132, 199, 0.15), 0 4px 12px -2px rgba(0, 0, 0, 0.04);

  /* Textured Jacquard Textile Weave (Light Festive Micro-Grid) */
  background-color: #f8fafc;
  background-image: 
    radial-gradient(circle at 50% 50%, rgba(2, 132, 199, 0.07) 1.5px, transparent 1.5px),
    radial-gradient(circle at 0 0, rgba(245, 158, 11, 0.06) 1.5px, transparent 1.5px),
    linear-gradient(to right, rgba(2, 132, 199, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(245, 158, 11, 0.02) 1px, transparent 1px);
  background-size: 28px 28px, 28px 28px, 14px 14px, 14px 14px;
  background-position: 0 0, 14px 14px, 0 0, 0 0;
}

/* ==============================================================================
   SAURASHTRA SAREES THEME (Royal Heritage Crimson Maroon & Antique Temple Gold)
   ============================================================================== */
body.theme-saurashtra {
  --theme-primary: #8b1d40;
  --theme-primary-hover: #701432;
  --theme-primary-light: #fdf2f5;
  --theme-accent: #d4af37;
  --theme-accent-hover: #b89628;
  --theme-accent-light: #fefcf3;
  --theme-surface: #ffffff;
  --theme-bg: #fffdfa;
  --theme-card-bg: #ffffff;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --border: #faecd8;
  --border-gold: rgba(212, 175, 55, 0.4);
  --shadow-luxury: 0 12px 30px -10px rgba(139, 29, 64, 0.12), 0 4px 12px -2px rgba(0, 0, 0, 0.04);

  /* Textured Royal Zari Silk Weave Pattern */
  background-color: #fffdfa;
  background-image: 
    radial-gradient(circle at 50% 50%, rgba(139, 29, 64, 0.06) 1.5px, transparent 1.5px),
    radial-gradient(circle at 0 0, rgba(212, 175, 55, 0.07) 1.5px, transparent 1.5px),
    linear-gradient(45deg, rgba(212, 175, 55, 0.025) 25%, transparent 25%, transparent 75%, rgba(212, 175, 55, 0.025) 75%),
    linear-gradient(-45deg, rgba(139, 29, 64, 0.02) 25%, transparent 25%, transparent 75%, rgba(139, 29, 64, 0.02) 75%);
  background-size: 32px 32px, 32px 32px, 16px 16px, 16px 16px;
  background-position: 0 0, 16px 16px, 0 0, 0 0;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--theme-bg);
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

.font-serif {
  font-family: 'Playfair Display', Georgia, serif;
}

/* ==============================================================================
   LIGHT LUXURY GLASSMORPHISM HEADER & NAV
   ============================================================================== */
.glass-nav {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-gold);
  box-shadow: 0 4px 20px -2px rgba(180, 83, 9, 0.05);
}

/* Custom Scrollbar in Luxury Warm Cream */
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}
::-webkit-scrollbar-track {
  background: #fdfaf5;
}
::-webkit-scrollbar-thumb {
  background: #e2d3be;
  border-radius: 9999px;
  border: 1px solid #f3ebe0;
}
::-webkit-scrollbar-thumb:hover {
  background: #c5af8d;
}

/* ==============================================================================
   SHOPIFY-GRADE LUXURY CATALOG CARDS
   ============================================================================== */
.catalog-card {
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  background: #ffffff;
  border: 1px solid var(--border);
  box-shadow: 0 4px 15px -3px rgba(0, 0, 0, 0.04);
}

.catalog-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-gold);
  box-shadow: var(--shadow-luxury), 0 0 0 1px var(--border-gold);
}

/* Out of Stock Card Overlay / Treatment */
.catalog-card.is-temp-out {
  border-color: #fde68a;
  background: #fffefb;
}

.catalog-card.is-perm-out {
  border-color: #f1f5f9;
  background: #fcfcfd;
  opacity: 0.88;
}

.catalog-card.is-perm-out img {
  filter: grayscale(40%);
}

/* ==============================================================================
   COLOR SWATCHES WITH ACCURATE TOOLTIPS & OUT-OF-STOCK STRIKE-THROUGH
   ============================================================================== */
.swatch-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.swatch-tooltip {
  visibility: hidden;
  position: absolute;
  bottom: 135%;
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: #1e293b;
  color: #ffffff;
  text-align: center;
  padding: 4px 9px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
  z-index: 60;
  opacity: 0;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  box-shadow: 0 8px 16px -2px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(212, 175, 55, 0.4);
}

.swatch-tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: #1e293b transparent transparent transparent;
}

.swatch-wrapper:hover .swatch-tooltip {
  visibility: visible;
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Swatch Out of Stock Diagonal Crossline */
.swatch-btn.is-sold-out {
  position: relative;
  opacity: 0.55;
  cursor: not-allowed;
  filter: grayscale(60%);
}

.swatch-btn.is-sold-out::after {
  content: "";
  position: absolute;
  top: 50%;
  left: -2px;
  right: -2px;
  height: 2px;
  background: #ef4444;
  transform: rotate(-45deg);
  box-shadow: 0 0 2px rgba(255, 255, 255, 0.8);
}

/* Selected Colorway Ring */
.swatch-btn.is-selected {
  outline: 2.5px solid #d4af37;
  outline-offset: 2.5px;
  transform: scale(1.15);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

/* ==============================================================================
   LIGHT LUXURY MOBILE BOTTOM ACTION BAR (Strictly Light Glassmorphism)
   ============================================================================== */
.mobile-sticky-action-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1.5px solid var(--border-gold);
  padding: 10px 16px;
  box-shadow: 0 -8px 25px -4px rgba(180, 83, 9, 0.12), 0 -2px 6px -1px rgba(0, 0, 0, 0.04);
}

/* ==============================================================================
   LIVELY MICRO-ANIMATIONS, GOLD SHIMMER & EMOJI GLOW
   ============================================================================== */
@keyframes shimmerGold {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.badge-shimmer-gold {
  background: linear-gradient(90deg, #fffbeb 0%, #fef3c7 25%, #fde68a 50%, #fef3c7 75%, #fffbeb 100%);
  background-size: 200% 100%;
  animation: shimmerGold 4s infinite linear;
  border: 1px solid #fde68a;
  color: #92400e;
}

@keyframes bounceSubtle {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}
.animate-bounce-subtle {
  animation: bounceSubtle 2.5s infinite ease-in-out;
}

@keyframes pulseGlow {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
  50% { transform: scale(1.02); box-shadow: 0 0 12px 3px rgba(16, 185, 129, 0.3); }
}
.animate-pulse-glow {
  animation: pulseGlow 2.5s infinite ease-in-out;
}

@keyframes pulseGoldGlow {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.4); }
  50% { transform: scale(1.02); box-shadow: 0 0 14px 4px rgba(212, 175, 55, 0.35); }
}
.animate-gold-glow {
  animation: pulseGoldGlow 3s infinite ease-in-out;
}

/* Image Zoom Magnifier */
.zoom-container {
  overflow: hidden;
  cursor: crosshair;
}
.zoom-container img {
  transition: transform 0.35s ease;
}
.zoom-container:hover img {
  transform: scale(1.4);
}

/* ==============================================================================
   BINDUGRID STUDIO [ØG] LIGHT LUXURY MONOGRAM
   ============================================================================== */
.monogram-og-light {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  letter-spacing: -0.05em;
  font-weight: 900;
}
.monogram-zero-light {
  color: #0284c7;
  text-shadow: 0 0 8px rgba(2, 132, 199, 0.35);
}
.monogram-g-light {
  color: #8b1d40;
}

/* View Screen Transition */
.view-screen {
  animation: screenFadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* ==============================================================================
   DREAMY ATMOSPHERIC CLOUD TEXTURES & RADIANT AURORA (Vibrant, Colorful, Cloud Look)
   ============================================================================== */
.cloud-hero-wrap {
  position: relative;
  overflow: hidden;
  background: radial-gradient(120% 120% at 50% 0%, #fffdfa 0%, #fdf6ec 35%, #f4f8fe 70%, #faf5ff 100%);
  border-bottom: 2px solid rgba(212, 175, 55, 0.4);
}

.cloud-orb {
  position: absolute;
  border-radius: 9999px;
  filter: blur(55px);
  pointer-events: none;
  opacity: 0.65;
  animation: cloudDrift 14s infinite ease-in-out alternate;
}
.cloud-orb-peach {
  width: 380px;
  height: 380px;
  top: -40px;
  left: 5%;
  background: radial-gradient(circle, rgba(254, 215, 170, 0.8) 0%, rgba(251, 146, 60, 0.25) 60%, transparent 80%);
}
.cloud-orb-cyan {
  width: 420px;
  height: 420px;
  bottom: -60px;
  right: 5%;
  background: radial-gradient(circle, rgba(186, 230, 253, 0.85) 0%, rgba(56, 189, 248, 0.25) 60%, transparent 80%);
  animation-delay: -5s;
}
.cloud-orb-rose {
  width: 320px;
  height: 320px;
  top: 15%;
  right: 25%;
  background: radial-gradient(circle, rgba(253, 164, 175, 0.7) 0%, rgba(244, 114, 182, 0.2) 60%, transparent 80%);
  animation-delay: -9s;
}
.cloud-orb-gold {
  width: 300px;
  height: 300px;
  bottom: -20px;
  left: 30%;
  background: radial-gradient(circle, rgba(254, 240, 138, 0.75) 0%, rgba(234, 179, 8, 0.2) 60%, transparent 80%);
  animation-delay: -3s;
}

@keyframes cloudDrift {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -15px) scale(1.1); }
  100% { transform: translate(-25px, 20px) scale(0.95); }
}

/* ==============================================================================
   LUXURY PRODUCT SPECIFICATION CARDS (Properly Aligned & Highly Attractive)
   ============================================================================== */
.spec-tile {
  background: linear-gradient(145deg, #ffffff 0%, #fdfbf7 100%);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 16px;
  padding: 12px 14px;
  box-shadow: 0 2px 8px -2px rgba(180, 83, 9, 0.05);
  transition: all 0.25s ease;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.spec-tile:hover {
  border-color: rgba(212, 175, 55, 0.7);
  box-shadow: 0 6px 16px -3px rgba(180, 83, 9, 0.1);
  transform: translateY(-2px);
}
.spec-icon-box {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 16px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

/* ========================================================================== */
/* STRICT 3:4 ASPECT RATIO IMAGE FIT (Catalog Cards, PDP Hero & Angles)      */
/* ========================================================================== */
.aspect-3-4 {
  aspect-ratio: 3 / 4 !important;
}

.aspect-\[3\/4\] {
  aspect-ratio: 3 / 4 !important;
}

.img-saree-fit {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center top !important;
}

/* ========================================================================== */
/* IMPERIAL ROYAL TEXTURES, DAMASK WATERMARKS & LUXURY CARDS                  */
/* ========================================================================== */
.bg-damask-subtle {
  background-color: #fdfbf7;
  background-image: radial-gradient(rgba(212, 175, 55, 0.12) 1px, transparent 1px), radial-gradient(rgba(139, 29, 64, 0.04) 1px, #fdfbf7 1px);
  background-size: 28px 28px;
  background-position: 0 0, 14px 14px;
}

.bg-royal-grain {
  background-image: radial-gradient(rgba(180, 83, 9, 0.06) 1px, transparent 0);
  background-size: 24px 24px;
}

.luxury-gold-glow {
  box-shadow: 0 12px 36px -8px rgba(212, 175, 55, 0.22);
}

.royal-glass-card {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  border: 1.5px solid rgba(212, 175, 55, 0.38);
  box-shadow: 0 8px 30px -4px rgba(139, 29, 64, 0.05);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.royal-glass-card:hover {
  border-color: rgba(212, 175, 55, 0.7);
  box-shadow: 0 16px 40px -6px rgba(139, 29, 64, 0.1);
  transform: translateY(-3px);
}

.crest-badge {
  background: linear-gradient(135deg, #fdfaf3 0%, #fef3c7 100%);
  border: 1.5px solid #d4af37;
  color: #78350f;
  box-shadow: 0 2px 8px -2px rgba(212, 175, 55, 0.3);
}

/* Multi-Select Custom Checkbox Dropdown Styling */
.multiselect-dropdown-menu {
  box-shadow: 0 20px 45px -10px rgba(139, 29, 64, 0.12), 0 0 0 1px rgba(212, 175, 55, 0.3);
  scrollbar-width: thin;
  scrollbar-color: #d4af37 #fdfbf7;
}
.multiselect-dropdown-menu::-webkit-scrollbar {
  width: 5px;
}
.multiselect-dropdown-menu::-webkit-scrollbar-thumb {
  background: #d4af37;
  border-radius: 9999px;
}


/* ==============================================================================
   UNIVERSAL HIGH-LUXURY TYPOGRAPHY & READABILITY SYSTEM
   ============================================================================== */
.font-display {
  font-family: 'Cinzel', 'Playfair Display', Georgia, serif !important;
  letter-spacing: 0.04em;
}

.font-serif {
  font-family: 'Playfair Display', Georgia, serif !important;
}

.font-sans {
  font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;
}

.font-mono {
  font-family: 'JetBrains Mono', monospace !important;
}

/* Enhanced High-Contrast Deep Pigment Reading */
h1, h2, h3, h4, h5, h6 {
  color: #1c1917;
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
}

p, span, li, label {
  text-rendering: optimizeLegibility;
}

/* ==============================================================================
   MOBILE RESPONSIVENESS & EXECUTIVE SMARTPHONE POLISH (@media <= 640px)
   ============================================================================== */
@media (max-width: 640px) {
  /* 1. Header & Brand Title - Adaptive Height to Prevent Any Overlap */
  header {
    min-height: 4.25rem !important;
    height: auto !important;
  }
  
  header img {
    height: 2.35rem !important;
  }

  header h1 {
    font-size: 1.05rem !important;
    line-height: 1.15 !important;
  }

  /* 2. Palace Hero Section */
  section:first-of-type {
    padding-top: 2.25rem !important;
    padding-bottom: 2.75rem !important;
  }

  /* Imperial Crest Badge */
  .imperial-crest,
  .inline-flex.rounded-full {
    max-width: 100% !important;
    white-space: normal !important;
    font-size: 0.68rem !important;
    padding: 0.4rem 0.75rem !important;
    line-height: 1.35 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.35rem !important;
  }

  /* Majestic Hero Titles */
  h1.font-serif,
  .hero-title {
    font-size: clamp(2rem, 8.5vw, 2.85rem) !important;
    line-height: 1.12 !important;
    letter-spacing: -0.02em !important;
  }

  .hero-subtitle {
    font-size: 1.05rem !important;
    line-height: 1.35 !important;
  }

  .hero-desc {
    font-size: 0.82rem !important;
    line-height: 1.55 !important;
  }

  /* 3. Touch-Friendly Action Buttons */
  .hero-btn,
  .mobile-full-btn {
    width: 100% !important;
    min-height: 48px !important;
    border-radius: 0.875rem !important;
    font-size: 0.85rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 4px 14px rgba(139, 29, 64, 0.2) !important;
  }

  /* 4. Mill Direct Assurance Badges Grid */
  .assurance-grid,
  .grid.grid-cols-2 {
    gap: 0.5rem !important;
  }

  .assurance-badge,
  .grid.grid-cols-2 > div {
    padding: 0.65rem 0.6rem !important;
    border-radius: 0.875rem !important;
  }

  /* 5. Cards & Section Padding */
  section {
    padding-top: 2.75rem !important;
    padding-bottom: 2.75rem !important;
  }

  .royal-glass-card,
  .weave-card,
  .executive-card {
    padding: 1.15rem !important;
    border-radius: 1.25rem !important;
  }

  /* 6. Executive Leadership Desks (Nayan Sir & Chetan Sir) */
  .desk-btn {
    width: 100% !important;
    min-height: 44px !important;
    border-radius: 0.75rem !important;
    font-size: 0.8rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  /* 7. Coordinates & Map Action */
  .coordinates-box {
    padding: 1.25rem !important;
    border-radius: 1.25rem !important;
  }

  .coordinates-btn {
    width: 100% !important;
    min-height: 44px !important;
    justify-content: center !important;
  }

  /* 8. Luxury Footer */
  footer {
    padding-top: 2.5rem !important;
    padding-bottom: 5.5rem !important; /* Extra bottom pad for mobile floating dock */
  }

  footer h5, footer h6 {
    font-size: 0.8rem !important;
  }

  footer p {
    font-size: 0.78rem !important;
    line-height: 1.5 !important;
  }

  /* 9. Floating Quick Contact Dock for Mobile */
  .mobile-bottom-dock {
    display: flex !important;
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 50 !important;
    background: rgba(255, 255, 255, 0.96) !important;
    backdrop-filter: blur(14px) !important;
    border-top: 1.5px solid rgba(212, 175, 55, 0.4) !important;
    padding: 0.65rem 0.85rem !important;
    gap: 0.5rem !important;
    box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.08) !important;
  }

  .mobile-bottom-dock a {
    flex: 1 !important;
    min-height: 44px !important;
    border-radius: 0.75rem !important;
    font-size: 0.78rem !important;
    font-weight: 800 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.4rem !important;
    text-decoration: none !important;
  }
}

/* Hide floating dock on desktop */
@media (min-width: 641px) {
  .mobile-bottom-dock {
    display: none !important;
  }
}
