/* ============================================================
   SLEEPLYF — Global Stylesheet
   Colors, Typography, Layout, Components
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400&family=DM+Sans:wght@300;400;500;600&display=swap');

/* ── CSS VARIABLES ── */
:root {
  --night:   #0d0f14; /* Global Background */
  --deep:    #13161e; /* Section Background */
  --card:    #1a1d27; /* Card Background */
  --indigo:  #1e2235;
  --moon:    #c8b89a;
  --gold:    #e8c97a;
  --cream:   #f5f0e8;
  --mist:    #8a8fa8;
  --accent:  #6b8fad;
  --green:   #6bcf7f;
  --red:     #e87a7a;
  --border:  rgba(200,184,154,0.1);
  --border-hover: rgba(200,184,154,0.25);
  --glow:    rgba(232,201,122,0.08);
  --nav-bg:  rgba(13,15,20,0.97);
  --splash-bg: #0d0f14;
  
  --text-main: #f5f0e8;
  --text-sub:  #8a8fa8;
}

[data-theme="dark"] {
  --night: #05070a;
  --deep: #080a0f;
  --card: #0d111a;
  --indigo: #111421;
}

[data-theme="light"] {
  --night: #f9f9f9;
  --deep:  #f8f9fa;
  --nav-bg: #f9f9f9; 
  --splash-bg: #f9f9f9;
  --text-main: #1a1d27;
  --text-sub:  #4b5563;
  --border: rgba(0,0,0,0.08);
}
[data-theme="light"] .section-eyebrow { color: #a38025; }



.mega-item {
  position: relative;
}

.mega-item.active .mega-dropdown {
  display: block;
}

/* 3-Level Menu Layout */
.mega-dropdown-inner {
  display: flex;
  min-height: 200px;
}

.mega-side-list {
  width: max-content;
  min-width: 200px;
  padding-right: 25px;
  border-right: 1px solid transparent; /* Hide line by default */
  transition: border-color 0.3s;
}

.mega-dropdown.expanded .mega-side-list {
  border-right-color: var(--border); /* Show line when expanded */
}

.mega-side-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  color: var(--mist);
  border-radius: 4px;
  transition: all 0.2s;
  cursor: pointer;
  text-decoration: none;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.mega-side-item:hover, .mega-side-item.active {
  background: rgba(232,201,122,0.1);
  color: var(--gold);
}

.mega-mini-panes {
  flex: 1;
  padding-left: 30px;
  position: relative;
  display: none; /* Hide by default */
}

.mega-dropdown.expanded .mega-mini-panes {
  display: block; /* Show when expanded */
}

.mini-pane {
  display: none;
  animation: fadeIn 0.2s ease;
}

.mini-pane.active {
  display: flex !important;
  flex-direction: column !important;
  gap: 15px;
  text-align: left;
  min-width: 200px;
}

.mini-pane a {
  display: block;
  font-size: 14px;
  color: var(--mist);
  transition: color 0.2s;
  text-transform: none;
  letter-spacing: 0;
  margin-bottom: 5px;
}

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

@keyframes fadeIn {
  from { opacity: 0; transform: translateX(10px); }
  to { opacity: 1; transform: translateX(0); }
}

/* ── RESET ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
}
body {
  background: var(--night);
  color: rgb(250, 246, 246);
  font-weight: 600;
  font-family: 'DM Sans', sans-serif;
  cursor: default;
  line-height: 1.6;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  margin: 0;
  padding: 80px 0 0 0;
}

/* ── GLOBAL CONTAINER ── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 5%;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: 'DM Sans', sans-serif; }
input, textarea, select { font-family: 'DM Sans', sans-serif; }

/* ── CUSTOM CURSOR ── */
.cursor {
  width: 12px; height: 12px;
  background: var(--gold);
  border-radius: 50%;
  position: fixed; top: 0; left: 0;
  pointer-events: none; z-index: 9999;
  mix-blend-mode: screen;
  transition: transform 0.15s ease;
}
.cursor-ring {
  width: 40px; height: 40px;
  border: 1px solid rgba(200,184,154,0.4);
  border-radius: 50%;
  position: fixed; top: 0; left: 0;
  pointer-events: none; z-index: 9998;
  transition: all 0.35s cubic-bezier(0.25,0.46,0.45,0.94);
}

/* ── NAVBAR ── */
nav {
   position: fixed;
   top: 0; left: 0; right: 0;
  z-index: 10002;
  background: var(--nav-bg);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-top, .nav-single {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0 5%; height: 80px;
  position: relative;
}
.logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 26px; font-weight: 300;
  letter-spacing: 4px; color: var(--cream);
}
.logo span { color: var(--gold); font-style: italic; }
.logo img { height: 46px; width: auto; transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); }/* Light theme specific header overrides */
[data-theme="light"] nav {
  --mist: #4b5563;
  --cream: #0d0f14;
  border-bottom: 1px solid rgba(0,0,0,0.1);
}
[data-theme="light"] .logo {
  color: #0d0f14;
}
.logo:hover img { transform: rotate(-5deg) scale(1.1); filter: drop-shadow(0 5px 15px rgba(232,201,122,0.4)); }


/* Desktop Hamburger */
.hamburger-desktop {
  background: transparent;
  border: none;
  color: var(--gold);
  font-size: 28px;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s;
  position: absolute;
  left: 0;
  width: 80px;
  height: 100%;
}
.hamburger-desktop:hover {
  transform: scale(1.1);
  color: var(--cream);
}

.nav-right { display: flex; align-items: center; gap: 18px; }
.nav-icon-btn {
  position: relative; width: 42px; height: 42px;
  border: 1px solid var(--gold);
  background: transparent; /* Removed background color */
  color: var(--mist); font-size: 18px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); border-radius: 50%;
}
.nav-icon-btn:hover { border-color: var(--gold); color: var(--gold); transform: scale(1.1); }

.badge {
  position: absolute; top: -4px; right: -4px;
  width: 18px; height: 18px;
  background: var(--gold); color: var(--night);
  border-radius: 50%; font-size: 10px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.nav-cta {
  background: var(--gold); color: var(--night);
  border: none; padding: 10px 24px;
  font-size: 12px; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase;
  cursor: pointer; transition: all 0.3s;
}
.nav-cta:hover { background: var(--cream); }

/* Mega Menu */
.nav-mega {
  background: rgba(13,15,20,0.99);
  border-bottom: 1px solid var(--border);
  overflow: visible;
}
.nav-mega-inner {
  display: flex; align-items: center; gap: 0;
  height: 100%;
  overflow: visible;
}
.nav-mega-inner::-webkit-scrollbar { display: none; }
.mega-item {
  position: relative;
  height: 80px; display: flex; align-items: center;
}
.mega-trigger {
  padding: 0 18px; height: 100%;
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--mist); cursor: pointer; transition: color 0.2s;
  white-space: nowrap; background: transparent; border: none;
  border-bottom: 2px solid transparent;
}
.mega-trigger:hover, .mega-item:hover .mega-trigger { color: var(--cream); border-bottom-color: var(--gold); }
.mega-trigger svg { width: 10px; height: 10px; transition: transform 0.2s; }
.mega-item:hover .mega-trigger svg { transform: rotate(180deg); }

.mega-dropdown {
  position: absolute; top: 80px; left: 0;
  min-width: 260px; background: var(--deep);
  border: 1px solid var(--border);
  border-top: none; padding: 20px;
  display: none; z-index: 9999;
  box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

.mega-dropdown.mega-wide {
  width: max-content; /* Adjust based on text */
  min-width: 260px;
  max-width: 90vw; /* Prevent screen overflow */
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  overflow: visible; /* Allow content to dictate width */
}

.mega-dropdown.mega-wide.expanded {
  /* width is now automatic */
}

.mega-item.active .mega-dropdown,
.mega-item:hover .mega-dropdown { display: block !important; }

.mega-col h5 {
  font-size: 10px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--gold); margin-bottom: 12px;
}
.mega-col a {
  display: block; font-size: 13px; color: var(--mist);
  padding: 5px 0; transition: color 0.2s;
}
.mega-col a:hover { color: var(--cream); }
/* .mega-wide definition removed to avoid conflict */

/* Mobile Nav Toggle */
.hamburger {
  display: none; width: 42px; height: 42px;
  background: transparent; border: 1px solid var(--gold);
  color: var(--moon); font-size: 20px;
  align-items: center; justify-content: center;
  cursor: pointer; border-radius: 50%;
}
.mobile-nav {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: 320px;
  background: var(--night);
  z-index: 20000;
  overflow-y: auto;
  padding: 60px 20px;
  transform: translateX(-100%);
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  border-right: 1px solid var(--border);
}
.mobile-nav.open { transform: translateX(0); box-shadow: 0 0 100px rgba(0,0,0,0.8); }
.mob-sub-group {
  padding: 20px 0 8px;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  border-bottom: 1px solid rgba(232,201,122,0.1);
  margin-bottom: 5px;
}
.mobile-nav-item {
  padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,0.05);
  font-size: 15px; color: var(--cream); cursor: pointer;
  display: flex; align-items: center; justify-content: space-between;
}
.mobile-nav-item span { color: var(--gold); }
.mobile-sub { padding: 10px 0 10px 16px; display: none; }
.mobile-sub.open { display: block; }
.mobile-sub a { display: block; padding: 12px 0; font-size: 14px; color: var(--mist); transition: color 0.2s; }
.mobile-sub a:hover { color: var(--gold); }

/* ── PROMO BAR ── */
.promo-bar {
  background: linear-gradient(90deg, rgba(232,201,122,0.12), rgba(107,143,173,0.08), rgba(232,201,122,0.12));
  border-bottom: 1px solid rgba(232,201,122,0.15);
  padding: 9px 5%; text-align: center;
  font-size: 12px; letter-spacing: 1.5px; color: var(--gold);
  text-transform: uppercase;
}
.promo-bar marquee { max-width: 100%; }

/* ── REVEAL ANIMATIONS ── */
.reveal .product-card, 
.reveal .cat-card,
.reveal .testi-card, 
.reveal .trust-item, 
.reveal .service-card, 
.reveal .feature-item {
  opacity: 0;
  transform: translateY(24px);
  pointer-events: none;
}

.reveal.visible .product-card, 
.reveal.visible .cat-card,
.reveal.visible .testi-card, 
.reveal.visible .trust-item, 
.reveal.visible .service-card, 
.reveal.visible .feature-item {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

@media (max-width: 768px) {
  .reveal { opacity: 1 !important; transform: none !important; }
  .reveal .product-card, 
  .reveal .cat-card,
  .reveal .testi-card, 
  .reveal .trust-item, 
  .reveal .service-card, 
  .reveal .feature-item {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ── PAGE WRAPPER ── */
.page-top { padding-top: 80px; }


/* ── SECTION COMMONS ── */
.section-eyebrow {
  font-size: 11px; letter-spacing: 3px; text-transform: uppercase;
  color: var(--gold); margin-bottom: 12px;
  font-weight: 900;
}
.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(34px, 4vw, 56px);
  font-weight: 300; line-height: 1.1;
  color: var(--text-main);
}
.section-title em { font-style: italic; color: #71591d; font-weight: 600; }

/* ── BUTTONS ── */
.btn-primary {
  background: var(--gold); color: var(--night);
  border: none; padding: 16px 40px;
  font-size: 13px; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase;
  cursor: pointer; transition: all 0.3s;
  position: relative; overflow: hidden; display: inline-block;
}
.btn-primary::after {
  content: ''; position: absolute; inset: 0;
  background: rgba(255,255,255,0.18);
  transform: translateX(-100%); transition: transform 0.4s ease;
}
.btn-primary:hover::after { transform: translateX(0); }
.btn-primary:hover { background: var(--cream); }

.btn-ghost {
  background: transparent; color: var(--cream);
  border: 1px solid var(--border-hover);
  padding: 16px 40px; font-size: 13px; font-weight: 500;
  letter-spacing: 1px; text-transform: uppercase;
  cursor: pointer; transition: all 0.3s; display: inline-block;
}
.btn-ghost:hover { border-color: var(--moon); color: var(--moon); }

.btn-outline-gold {
  background: transparent; color: var(--gold);
  border: 1px solid rgba(232,201,122,0.35);
  padding: 12px 28px; font-size: 12px; font-weight: 600;
  letter-spacing: 1px; text-transform: uppercase;
  cursor: pointer; transition: all 0.3s; display: inline-block;
}
.btn-outline-gold:hover { background: var(--gold); color: var(--night); }

/* ── REVEAL ANIMATION ── */
.reveal { opacity: 0; transform: translateY(28px); transition: all 0.45s cubic-bezier(0.25,0.46,0.45,0.94); }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── PRODUCT CARD ── */
.product-card {
  background: var(--card); border: 1px solid var(--border);
  transition: all 0.35s; position: relative; overflow: hidden;
  cursor: pointer;
}
.product-card:hover { border-color: var(--border-hover); transform: translateY(-4px); box-shadow: 0 20px 60px rgba(0,0,0,0.4); }
.pc-image {
  aspect-ratio: 4/3; background: var(--indigo);
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.pc-image img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s ease;
}
.product-card:hover .pc-image img {
  transform: scale(1.08);
}
.pc-badge {
  position: absolute; top: 12px; left: 12px;
  background: var(--gold); color: var(--night);
  font-size: 10px; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; padding: 5px 12px;
}
.pc-badge.new { background: var(--accent); color: #fff; }
.pc-wish {
  width: 32px; height: 32px;
  background: rgba(255,255,255,0.05); border: 1px solid var(--border);
  border-radius: 50%; display: flex; align-items: center;
  justify-content: center; font-size: 15px; cursor: pointer;
  transition: all 0.3s; color: var(--mist);
}
.pc-wish.active { color: var(--gold); border-color: var(--gold); background: rgba(232,201,122,0.1); }
.pc-wish:hover { background: rgba(232,201,122,0.2); border-color: var(--gold); transform: scale(1.1); }
.pc-wish:hover { background: rgba(232,201,122,0.2); border-color: var(--gold); }
.pc-wish.active { opacity: 1; color: var(--gold); border-color: var(--gold); background: rgba(232,122,122,0.1); }

.pc-body { padding: 18px; }
.pc-brand { font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: var(--gold); margin-bottom: 6px; }
.pc-name { font-family: 'Cormorant Garamond', serif; font-size: 18px; font-weight: 300; line-height: 1.3; margin-bottom: 10px; color: #f5f0e8; }
.pc-specs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.pc-spec { font-size: 10px; color: #8a8fa8; background: rgba(26,29,39,0.8); border: 1px solid rgba(255,255,255,0.1); padding: 4px 10px; letter-spacing: 0.5px; }
.pc-rating { display: flex; align-items: center; gap: 6px; margin-bottom: 12px; }
.pc-stars { color: var(--gold); font-size: 12px; letter-spacing: 1px; }
.pc-rcount { font-size: 12px; color: #8a8fa8; }
.pc-price { display: flex; align-items: baseline; gap: 10px; margin-bottom: 16px; }
.pc-now { font-family: 'Cormorant Garamond', serif; font-size: 24px; font-weight: 400; color: #f5f0e8; }
.pc-was { font-size: 15px; color: #8a8fa8; text-decoration: line-through; }
.pc-save { font-size: 11px; color: var(--green); background: rgba(107,207,127,0.1); border: 1px solid rgba(107,207,127,0.2); padding: 3px 8px; }
.pc-emi { font-size: 11px; color: #8a8fa8; margin-bottom: 14px; }
.pc-emi span { color: var(--accent); }
.pc-actions { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.pc-add {
  background: var(--gold); color: #05070a; border: none;
  padding: 11px 0; font-size: 12px; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase; cursor: pointer;
  transition: all 0.3s; width: 100%;
}
.pc-add:hover { background: var(--cream); }
.pc-view {
  width: 42px; height: 42px; background: transparent;
  border: 1px solid var(--border);
  color: var(--mist); font-size: 16px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all 0.3s;
}
.pc-view:hover { border-color: var(--gold); color: var(--gold); }

/* ── FOOTER ── */
footer {
  background: #13161e; /* Keep dark even in light theme */
  border-top: 1px solid rgba(255,255,255,0.05);
  padding: 72px 5% 0;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px; padding-bottom: 56px;
  border-bottom: 1px solid var(--border);
}
.footer-brand-name img {
  height: 60px;   /* 🔥 adjust size */
  width: auto;
  max-width: 200px; /* optional limit */
}
.footer-brand-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 32px; font-weight: 300;
  letter-spacing: 4px; margin-bottom: 16px;
}
.footer-brand-name span { color: var(--gold); font-style: italic; }
.footer-tagline { font-size: 13px; color: var(--mist); line-height: 1.8; max-width: 320px; margin-bottom: 24px; }
.footer-socials { display: flex; gap: 10px; margin-bottom: 24px; }
.social-btn {
  width: 38px; height: 38px;
  border: 1px solid var(--gold); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; color: var(--mist);
  transition: all 0.3s; cursor: pointer;
}
.social-btn:hover { border-color: var(--gold); color: var(--gold); }
.footer-col h4 { font-size: 11px; letter-spacing: 2.5px; text-transform: uppercase; color: var(--cream); margin-bottom: 20px; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul a { font-size: 13px; color: var(--mist); transition: color 0.2s; }
.footer-col ul a:hover { color: var(--cream); }
.footer-contact { margin-top: 16px; }
.footer-contact p { font-size: 13px; color: var(--mist); line-height: 1.9; }
.footer-contact strong { color: var(--moon); display: block; margin-bottom: 4px; }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding: 24px 0; font-size: 12px; color: var(--mist);
}
.coverage-badge {
  background: rgba(232,201,122,0.08); border: 1px solid var(--border);
  padding: 8px 18px; font-size: 11px; letter-spacing: 1px;
  color: var(--moon);
}
.gstin { font-size: 11px; color: rgba(138,143,168,0.5); margin-top: 8px; letter-spacing: 0.5px; }

/* ── BREADCRUMB ── */
.breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: 21px; color:rgb(245, 240, 240); padding: 18px 0;
}
.breadcrumb a { color:rgb(247, 240, 240); transition: color 0.2s; }
.breadcrumb a:hover { color: var(--moon); }
.breadcrumb .sep { color: rgb(243, 238, 238); }

/* ── TOAST ── */
.toast {
  position: fixed; bottom: 24px; right: 24px;
  background: var(--card); border: 1px solid var(--border);
  padding: 16px 24px; z-index: 9000;
  display: flex; align-items: center; gap: 12px;
  transform: translateY(100px); opacity: 0;
  transition: all 0.4s cubic-bezier(0.25,0.46,0.45,0.94);
  max-width: 340px;
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast-icon { font-size: 20px; }
.toast-msg { font-size: 13px; color: var(--cream); }
.toast-msg strong { color: var(--gold); display: block; }

/* ── STICKY MOBILE BAR ── */
.sticky-mobile-bar {
  display: none; position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--deep); border-top: 1px solid var(--border);
  padding: 12px 16px; gap: 10px; z-index: 400;
}
.sticky-mobile-bar .btn-ghost, .sticky-mobile-bar .btn-primary { flex: 1; padding: 14px 0; text-align: center; }

/* ── UTILITIES ── */
.container { max-width: 1400px; margin: 0 auto; padding: 0 5%; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.text-gold { color: var(--gold); }
.text-mist { color: var(--mist); }
.text-moon { color: var(--moon); }
.text-green { color: var(--green); }
.text-red { color: var(--red); }
.font-serif { font-family: 'Cormorant Garamond', serif; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-40 { margin-top: 40px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-40 { margin-bottom: 40px; }
.divider { height: 1px; background: var(--border); margin: 32px 0; }

/* ── FORM FIELDS ── */
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--mist); margin-bottom: 8px; }
.form-input {
  width: 100%; background: var(--card);
  border: 1px solid var(--border); color: var(--cream);
  padding: 13px 16px; font-size: 14px;
  transition: border-color 0.3s; outline: none;
}
.form-input:focus { border-color: var(--gold); }
.form-input::placeholder { color: rgba(138,143,168,0.5); }
textarea.form-input { resize: vertical; min-height: 120px; }
select.form-input { cursor: pointer; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%238a8fa8' d='M6 8L1 3h10z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.form-error { font-size: 12px; color: var(--red); margin-top: 6px; display: none; }
.form-input.error { border-color: var(--red); }
.form-input.error + .form-error { display: block; }

/* ── MODAL ── */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.8); backdrop-filter: blur(6px);
  z-index: 800; display: flex; align-items: center;
  justify-content: center; opacity: 0; pointer-events: none;
  transition: opacity 0.3s;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal-box {
  background: var(--deep); border: 1px solid var(--border);
  max-width: 520px; width: 90%; max-height: 90vh;
  overflow-y: auto; transform: translateY(20px); transition: transform 0.3s;
}
.modal-overlay.open .modal-box { transform: translateY(0); }
.modal-header {
  padding: 24px 28px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.modal-title { font-family: 'Cormorant Garamond', serif; font-size: 26px; font-weight: 300; }
.modal-close {
  width: 36px; height: 36px; background: transparent;
  border: 1px solid var(--border); color: var(--mist);
  font-size: 18px; cursor: pointer; transition: all 0.2s;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
}
.modal-close:hover { border-color: var(--red); color: var(--red); }
.modal-body { padding: 28px; }

/* ── STARS ── */
.stars-display { color: var(--gold); letter-spacing: 2px; }

/* ── FILTER SIDEBAR CHIPS ── */
.filter-chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--card); border: 1px solid var(--border);
  padding: 7px 14px; font-size: 12px; color: var(--mist);
  cursor: pointer; transition: all 0.2s; white-space: nowrap;
}
.filter-chip:hover, .filter-chip.active { border-color: var(--gold); color: var(--cream); background: rgba(232,201,122,0.06); }
.filter-chip.active::before { content: '✓ '; color: var(--gold); font-weight: 700; }

/* ── PAGE HERO (inner pages) ── */
.page-hero {
  padding: 100px 5% 60px;
  text-align: left;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-bottom: 1px solid var(--border);
  position: relative;
  background-image: var(--page-hero-bg, none);
}
/* Ensure pages with heroes don't have double spacing */
.page-top:has(.page-hero) {
  padding-top: 0 !important;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255,255,255,0.4) 0%, rgba(255,255,255,0) 100%);
  pointer-events: none;
}
.page-hero .container {
  position: relative;
  z-index: 1;
}
.page-hero .breadcrumb {
  padding: 0 0 16px;
  margin-bottom: 0;
  color: #1a1d27 !important;
}
.page-hero .breadcrumb a,
.page-hero .breadcrumb .sep {
  color: #1a1d27 !important;
}
.page-hero .section-title {
  color: #1a1d27 !important;
  margin-bottom: 12px;
}
.page-hero .section-title em {
  color: var(--night);
}
.page-hero p {
  color: #5f6275;
  font-size: 15px;
  max-width: 600px;
  margin: 0;
  text-align: left;
}

/* ── RESPONSIVE ── */
@media (max-width: 1200px) {
  .grid-4 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 991px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links-desktop { display: none; }
}
@media (max-width: 767px) {
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .nav-right .nav-cta { display: none; }
}
@media (max-width: 480px) {
  .container { padding: 0 4%; }
}

/* new product-deatil css */
.product-info { padding: 40px 0 40px 40px; border-left: 1px solid rgba(200,184,154,0.06); }
.pi-brand { font-size: 11px; letter-spacing: 3px; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; }
.pi-title { font-family: 'Cormorant Garamond', serif; font-size: clamp(28px,3vw,42px); font-weight: 300; line-height: 1.15; margin-bottom: 16px; }
.pi-rating { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid rgba(200,184,154,0.08); }
.stars { color: var(--gold); letter-spacing: 2px; font-size: 14px; }
.rating-num { font-size: 14px; color: var(--cream); font-weight: 500; }
.rating-count { font-size: 13px; color: var(--mist); }
.rating-sep { color: rgba(200,184,154,0.2); }
.verified { font-size: 12px; color: var(--green); }

/* PRICE */
.pi-price { display: flex; align-items: baseline; gap: 14px; margin-bottom: 8px; flex-wrap: wrap; }
.price-current { font-family: 'Cormorant Garamond', serif; font-size: 42px; font-weight: 400; color: var(--cream); }
.price-original { font-size: 20px; color: var(--mist); text-decoration: line-through; }
.price-save { background: rgba(107,207,127,0.12); border: 1px solid rgba(107,207,127,0.25); color: var(--green); font-size: 12px; font-weight: 600; padding: 4px 12px; letter-spacing: 0.5px; }
.pi-emi { font-size: 13px; color: var(--mist); margin-bottom: 24px; padding-bottom: 24px; border-bottom: 1px solid rgba(200,184,154,0.08); }
.pi-emi span { color: var(--gold); }

/* SIZE */
.pi-section-label { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--mist); margin-bottom: 14px; display: flex; justify-content: space-between; align-items: center; }
.pi-section-label a { color: var(--gold); text-decoration: none; font-size: 11px; border-bottom: 1px solid rgba(232,201,122,0.3); }
.size-grid { display: grid; grid-template-columns: repeat(5,1fr); gap: 8px; margin-bottom: 24px; }
.size-btn { background: rgba(26,29,39, 0.8); border: 1px solid rgba(200,184,154, 0.15); padding: 12px 6px; text-align: center; font-family: 'DM Sans', sans-serif; font-size: 12px; font-weight: 500; color: var(--mist); cursor: pointer; transition: all 0.2s; letter-spacing: 0.5px; }
.size-btn:hover, .size-btn.active { border-color: var(--gold); color: var(--cream); background: rgba(232,201,122,0.06); }
.size-btn.out { opacity: 0.35; cursor: not-allowed; }
.size-dims { font-size: 12px; color: var(--mist); margin-bottom: 24px; padding: 12px 16px; background: rgba(26,29,39,0.5); border-left: 2px solid rgba(200,184,154,0.15); }
.size-dims strong { color: var(--moon); }

/* QUANTITY */
.qty-row { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.qty-label { font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: var(--mist); }
.qty-ctrl { display: flex; align-items: center; border: 1px solid rgba(200,184,154,0.2); }
.qty-btn { width: 40px; height: 40px; background: transparent; border: none; color: var(--moon); font-size: 18px; cursor: pointer; transition: background 0.2s; display: flex; align-items: center; justify-content: center; }
.qty-btn:hover { background: rgba(200,184,154,0.08); }
.qty-num { width: 48px; text-align: center; font-size: 15px; color: var(--cream); font-weight: 500; border: none; border-left: 1px solid rgba(200,184,154,0.15); border-right: 1px solid rgba(200,184,154,0.15); background: transparent; color: var(--cream); }
.qty-num:focus { outline: none; }

/* BUTTONS */
.btn-add-main { width: 100%; background: var(--gold); color: var(--night); border: none; padding: 20px; font-family: 'DM Sans', sans-serif; font-size: 14px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; cursor: pointer; transition: all 0.3s; position: relative; overflow: hidden; margin-bottom: 12px; }
.btn-add-main::after { content: ''; position: absolute; inset: 0; background: rgba(255,255,255,0.15); transform: translateX(-100%); transition: transform 0.4s ease; }
.btn-add-main:hover::after { transform: translateX(0); }
.btn-add-main:hover { background: var(--cream); }
.btn-emi { width: 100%; background: transparent; color: var(--moon); border: 1px solid rgba(200,184,154,0.25); padding: 16px; font-family: 'DM Sans', sans-serif; font-size: 13px; font-weight: 500; letter-spacing: 1px; text-transform: uppercase; cursor: pointer; transition: all 0.3s; margin-bottom: 20px; }
.btn-emi:hover { border-color: var(--accent); color: var(--accent); }

/* DELIVERY */
.delivery-row { display: flex; align-items: flex-start; gap: 12px; padding: 16px; background: rgba(107,143,173,0.06); border: 1px solid rgba(107,143,173,0.15); margin-bottom: 20px; }
.delivery-icon { font-size: 20px; flex-shrink: 0; margin-top: 2px; }
.delivery-text strong { display: block; font-size: 13px; color: var(--cream); margin-bottom: 3px; }
.delivery-text span { font-size: 12px; color: var(--mist); }
.delivery-text a { color: var(--accent); text-decoration: none; font-size: 12px; }

/* GUARANTEES */
.guarantees { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 28px; }
.guarantee-item { display: flex; align-items: center; gap: 10px; padding: 14px; background: rgba(26,29,39,0.6); border: 1px solid rgba(200,184,154,0.08); transition: border-color 0.2s; cursor: pointer; }
.guarantee-item:hover { border-color: rgba(200,184,154,0.2); }
.g-icon { font-size: 18px; flex-shrink: 0; }
.g-text strong { display: block; font-size: 12px; color: var(--cream); margin-bottom: 2px; }
.g-text span { font-size: 11px; color: var(--mist); }

/* HIGHLIGHTS */
.highlights-grid { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; padding-bottom: 28px; border-bottom: 1px solid rgba(200,184,154,0.08); }
.highlight-chip { display: flex; align-items: center; gap: 6px; background: rgba(26,29,39,0.8); border: 1px solid rgba(200,184,154,0.1); padding: 8px 14px; font-size: 11px; color: var(--mist); letter-spacing: 0.5px; }
.highlight-chip .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); flex-shrink: 0; }

/* ACCORDION */
.accordion { margin-bottom: 0; }
.acc-item { border-bottom: 1px solid rgba(200,184,154,0.08); }
.acc-trigger { width: 100%; background: transparent; border: none; padding: 20px 0; display: flex; justify-content: space-between; align-items: center; cursor: pointer; color: var(--cream); }
.acc-trigger:hover .acc-title { color: var(--moon); }
.acc-title { font-size: 14px; font-weight: 500; letter-spacing: 0.5px; text-align: left; }
.acc-icon { font-size: 18px; color: var(--mist); transition: transform 0.3s; flex-shrink: 0; }
.acc-item.open .acc-icon { transform: rotate(45deg); }
.acc-body { overflow: hidden; max-height: 0; transition: max-height 0.4s ease; }
.acc-item.open .acc-body { max-height: 1000px; }
.acc-content { padding: 0 0 20px; }
.acc-content p { font-size: 14px; color: var(--mist); line-height: 1.8; margin-bottom: 12px; }
.acc-content ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.acc-content ul li { font-size: 13px; color: var(--mist); line-height: 1.6; padding-left: 20px; position: relative; }
.acc-content ul li::before { content: '→'; position: absolute; left: 0; color: var(--gold); }
.spec-table { width: 100%; border-collapse: collapse; margin-top: 8px; }
.spec-table tr { border-bottom: 1px solid rgba(200,184,154,0.06); }
.spec-table td { padding: 10px 0; font-size: 13px; }
.spec-table td:first-child { color: var(--mist); width: 45%; }
.spec-table td:last-child { color: var(--cream); }

/* ── LIGHT THEME OVERRIDES FOR PRODUCT DETAIL ── */
[data-theme="light"] .pi-title,
[data-theme="light"] h1, [data-theme="light"] h2, [data-theme="light"] h3,
[data-theme="light"] .rating-num,
[data-theme="light"] .price-current,
[data-theme="light"] .delivery-text strong,
[data-theme="light"] .g-text strong,
[data-theme="light"] .acc-trigger,
[data-theme="light"] .spec-table td:first-child,
[data-theme="light"] .spec-table td:last-child,
[data-theme="light"] .cs-price .now,
[data-theme="light"] .btn-primary { color: var(--text-main); }

[data-theme="light"] .btn-outline-gold {
  background: var(--gold) !important;
  color: #ffffff !important;
}
[data-theme="light"] .btn-outline-gold:hover {
  color: var(--text-main) !important;
}

[data-theme="light"] .breadcrumb,
[data-theme="light"] .breadcrumb a,
[data-theme="light"] .breadcrumb .sep { color: var(--text-sub) !important; }

/* ── CROSS-SELL ── */
.cross-sell { padding: 30px 5%; background: rgba(26,29,39,0.3); border-top: 1px solid rgba(200,184,154,0.06); }
.cross-sell-inner { max-width: 1400px; margin: 0 auto; }
.cross-sell .section-eyebrow { font-size: 24px; font-weight: 600; letter-spacing: 3px; text-transform: uppercase; color: #a38025; margin-bottom: 12px; }
.section-title-sm { font-family: 'Cormorant Garamond', serif; font-size: 36px; font-weight: 300; margin-bottom: 40px; line-height: 1.1; }
.section-title-sm em { font-style: italic; color: var(--moon); }
.cs-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.cs-card { background: var(--card); border: 1px solid rgba(200,184,154,0.08); overflow: hidden; cursor: pointer; transition: border-color 0.3s, transform 0.3s; }
.cs-card:hover { border-color: rgba(200,184,154,0.25); transform: translateY(-4px); }
.cs-img { height: 160px; display: flex; align-items: center; justify-content: center; font-size: 60px; position: relative; }
.cs-img img { width: 100%; height: 100%; object-fit: cover; }
.cs-info { padding: 18px; }
.cs-brand { font-size: 10px; color: var(--gold); letter-spacing: 2px; text-transform: uppercase; margin-bottom: 5px; }
.cs-name { font-family: 'Cormorant Garamond', serif; font-size: 18px; font-weight: 400; margin-bottom: 10px; line-height: 1.2; }
.cs-price { display: flex; align-items: baseline; gap: 8px; margin-bottom: 14px; }
.cs-price .now { font-size: 18px; font-weight: 600; color: var(--cream); }
.cs-price .was { font-size: 13px; color: var(--mist); text-decoration: line-through; }
.cs-price .save { font-size: 11px; color: var(--green); }
.cs-btn { width: 100%; background: transparent; border: 1px solid rgba(200,184,154,0.2); color: var(--moon); padding: 11px; font-family: 'DM Sans', sans-serif; font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; cursor: pointer; transition: all 0.3s; }
.cs-btn:hover { background: var(--gold); border-color: var(--gold); color: var(--night); }

/* ── MATTRESS LAYERS ── */
.layers-section { padding: 0 5% 80px; max-width: 1400px; margin: 0 auto; }
.layers-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; margin-top: 48px; }
.layers-visual { position: relative; }
.layer-bars { display: flex; flex-direction: column; gap: 4px; }
.layer-bar { padding: 14px 20px; background: var(--card); border: 1px solid rgba(200,184,154,0.08); border-left: 3px solid var(--gold); transition: all 0.3s; cursor: pointer; }
.layer-bar:nth-child(2) { border-left-color: var(--accent); }
.layer-bar:nth-child(3) { border-left-color: var(--moon); }
.layer-bar:nth-child(4) { border-left-color: rgba(200,184,154,0.4); }
.layer-bar:hover, .layer-bar.active { background: rgba(26,29,39,0.9); transform: translateX(4px); border-color: var(--gold); }
.layer-label { font-size: 11px; color: var(--gold); letter-spacing: 1px; text-transform: uppercase; margin-bottom: 4px; }
.layer-bar:nth-child(2) .layer-label { color: var(--accent); }
.layer-bar:nth-child(3) .layer-label { color: var(--moon); }
.layer-name { font-size: 15px; font-weight: 500; color: var(--cream); margin-bottom: 3px; }
.layer-desc { font-size: 12px; color: var(--mist); }
.layers-info { flex: 1; }
.layers-info h3 { font-family: 'Cormorant Garamond', serif; font-size: 32px; font-weight: 300; margin-bottom: 20px; line-height: 1.2; }
.layers-info p { font-size: 14px; color: var(--mist); line-height: 1.8; margin-bottom: 16px; }
.cert-badges { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.cert-badge { background: rgba(26,29,39,0.8); border: 1px solid rgba(200,184,154,0.15); padding: 10px 16px; font-size: 11px; color: var(--mist); letter-spacing: 0.5px; display: flex; align-items: center; gap: 6px; }
.cert-badge::before { content: '✓'; color: var(--green); }

/* ── SLEEP EXPERT CTA ── */
.expert-cta { padding: 60px 5%; background: linear-gradient(135deg, rgba(107,143,173,0.1), rgba(200,184,154,0.05)); border-top: 1px solid rgba(200,184,154,0.06); border-bottom: 1px solid rgba(200,184,154,0.06); }
.expert-inner { max-width: 1400px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.expert-text h3 { font-family: 'Cormorant Garamond', serif; font-size: 32px; font-weight: 300; margin-bottom: 8px; }
.expert-text p { font-size: 14px; color: var(--mist); }
.expert-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-expert { padding: 14px 28px; font-family: 'DM Sans', sans-serif; font-size: 12px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; cursor: pointer; transition: all 0.3s; border: none; }
.btn-call { background: var(--gold); color: var(--night); }
.btn-call:hover { background: var(--cream); }
.btn-chat { background: transparent; border: 1px solid rgba(200,184,154,0.25); color: var(--moon); }
.btn-chat:hover { border-color: var(--moon); }

/* ── RECENTLY VIEWED ── */
.recently-viewed { padding: 80px 5%; }
.rv-inner { max-width: 1400px; margin: 0 auto; }

/* REVIEWS */
.reviews-strip { padding: 60px 5%; border-top: 1px solid rgba(200,184,154,0.06); }
.rv-strip-inner { max-width: 1400px; margin: 0 auto; }
.rv-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 32px; flex-wrap: wrap; gap: 12px; }
.rv-score { display: flex; align-items: center; gap: 16px; }
.rv-big { font-family: 'Cormorant Garamond', serif; font-size: 60px; font-weight: 300; color: var(--gold); line-height: 1; }
.rv-stars-col { flex: 1; }
.rv-stars-col .stars { display: block; margin-bottom: 4px; }
.rv-stars-col span { font-size: 12px; color: var(--mist); }
/* REVIEWS SLIDER */
.rv-slider { overflow: hidden; padding: 10px 0 40px; position: relative; }
.rv-track { display: flex; gap: 24px; width: max-content; animation: reviewScroll 40s linear infinite; }
.rv-track:hover { animation-play-state: paused; }
.rv-card { background: var(--card); border: 1px solid rgba(200,184,154,0.08); padding: 28px; width: 420px; flex-shrink: 0; transition: border-color 0.3s; }
.rv-card:hover { border-color: var(--gold); }

@keyframes reviewScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.rv-grid { display: none; } /* Replaced by slider */
.rv-card { background: var(--card); border: 1px solid rgba(200,184,154,0.08); padding: 28px; }
.rv-quote { font-family: 'Cormorant Garamond', serif; font-size: 56px; color: var(--gold); opacity: 0.15; line-height: 1; margin-bottom: 8px; }
.rv-text { font-size: 14px; color: var(--mist); line-height: 1.7; margin-bottom: 20px; font-style: italic; }
.rv-author { display: flex; align-items: center; gap: 12px; }
.rv-avatar { width: 40px; height: 40px; background: var(--gold); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; color: var(--night); font-size: 14px; flex-shrink: 0; }
.rv-name { font-size: 13px; font-weight: 500; color: var(--cream); }
.rv-loc { font-size: 11px; color: var(--mist); }
.rv-verified { font-size: 11px; color: var(--green); display: flex; align-items: center; gap: 4px; margin-top: 2px; }

@media (max-width: 1100px) {
  .product-main { grid-template-columns: 1fr; }
  .gallery { padding: 40px 0; position: static; }
  .product-info { padding: 40px 0; border-left: none; border-top: 1px solid rgba(200,184,154,0.06); }
  .cs-grid { grid-template-columns: 1fr 1fr; }
  .layers-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  nav .nav-links { display: none; }
  .rv-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-top, .nav-single { height: 65px; padding: 0 15px; }
  .logo img { height: 34px; }
  
  /* Hide desktop-specific absolute hamburger on mobile */
  .hamburger-desktop { display: none !important; }
  
  /* Hide secondary icons on mobile navbar to save space */
  .nav-right .nav-icon-btn[title="Wishlist"],
  .nav-right .nav-icon-btn[title="Account"] {
    display: none !important;
  }
  
  /* Show mobile hamburger */
  .hamburger { display: flex !important; }
  
  /* Ensure nav-right doesn't overflow */
  .nav-right { gap: 8px; }
  .nav-icon-btn { width: 38px; height: 38px; font-size: 16px; }
}

@media (max-width: 640px) {
  .cs-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .size-grid { grid-template-columns: repeat(3, 1fr); }
  .guarantees { grid-template-columns: 1fr; }
  .expert-inner { flex-direction: column; text-align: center; }
  .product-main { padding: 0 20px; }
  .cross-sell, .recently-viewed, .reviews-strip, .layers-section { padding: 60px 20px; }
}

/* ── ORDER SUCCESS ANIMATION (FLIPKART STYLE) ── */
.order-success-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(13, 15, 20, 0.98);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  backdrop-filter: blur(10px);
  animation: successFadeIn 0.4s ease-out forwards;
}

.success-animation-box {
  background: var(--card);
  border: 1px solid var(--border);
  padding: 60px 40px;
  border-radius: 24px;
  text-align: center;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
  animation: successSlideUp 0.6s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

.checkmark {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  display: block;
  stroke-width: 2;
  stroke: #fff;
  stroke-miterlimit: 10;
  margin: 0 auto 30px;
  box-shadow: inset 0px 0px 0px var(--green);
  animation: successFill 0.4s ease-in-out 0.4s forwards, successScale 0.3s ease-in-out 0.9s both;
}

.checkmark__circle {
  stroke-dasharray: 166;
  stroke-dashoffset: 166;
  stroke-width: 2;
  stroke-miterlimit: 10;
  stroke: var(--green);
  fill: none;
  animation: successStroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark__check {
  transform-origin: 50% 50%;
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  animation: successStroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}

@keyframes successStroke {
  100% { stroke-dashoffset: 0; }
}
@keyframes successScale {
  0%, 100% { transform: none; }
  50% { transform: scale3d(1.1, 1.1, 1); }
}
@keyframes successFill {
  100% { box-shadow: inset 0px 0px 0px 50px var(--green); }
}

.success-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 32px;
  color: var(--gold);
  margin-bottom: 12px;
}
.success-sub {
  color: var(--mist);
  font-size: 14px;
  line-height: 1.6;
}

@keyframes successFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes successSlideUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- MODALS --- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}
.modal-box {
  background: var(--card);
  border: 1px solid var(--border);
  position: relative;
  transform: translateY(20px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 40px 100px rgba(0,0,0,0.5);
}
.modal-overlay.open .modal-box {
  transform: translateY(0);
}
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--cream);
  border: 1px solid var(--border);
  padding: 12px 24px;
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  transition: all 0.3s;
  cursor: none;
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.05);
  border-color: var(--gold);
}

/* ── SPLASH SCREEN ── */
.splash-screen {
  position: fixed; inset: 0; 
  background: var(--splash-bg); 
  z-index: 99999;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  transition: all 1s cubic-bezier(0.77, 0, 0.175, 1);
  overflow: hidden;
}
.splash-screen.hidden { 
  opacity: 0; 
  visibility: hidden; 
  transform: translateY(-100%); /* Slide up to open */
}

.bee-logo-container {
  position: absolute;
  top: 55%;
  left: -150px;
  transform: translateY(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 20px;
  z-index: 3; /* 🔥 Topmost */
  animation: bee-flight-full 4s cubic-bezier(0.45, 0, 0.55, 1) forwards;
}



.bee-logo { 
  width: 100px; height: 100px; 
  position: relative;
  animation: bee-bob 0.4s infinite alternate ease-in-out;
}

.bee-svg { width: 100%; height: 100%; filter: drop-shadow(0 10px 20px rgba(0,0,0,0.5)); transform: rotate(90deg); } /* Rotate bee to face right */

.wing { transform-origin: 50% 50%; animation: flap 0.05s infinite alternate; }

@keyframes flap {
  from { transform: scaleX(1) rotate(0deg); }
  to { transform: scaleX(0.2) rotate(45deg); }
}

@keyframes bee-bob {
  from { transform: translateY(-5px); }
  to { transform: translateY(5px); }
}

.bee-trail-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  transform: translateY(5vh); /* Shift perfectly to exactly match 55% text center */
}



@keyframes draw-8-loop {
  0% { stroke-dashoffset: 2500; opacity: 0; }
  15% { opacity: 1; stroke-dashoffset: 2500; }
  
  /* Draw the 8 with a long trail that follows */
  40% { stroke-dashoffset: 1250; opacity: 1; }
  65% { stroke-dashoffset: 0; opacity: 1; }
  
  /* Trail disappears behind bee */
  85% { opacity: 0.5; }
  100% { opacity: 0; stroke-dashoffset: -500; }
}

.trail-path {
  fill: none;
  stroke: url(#honeyGradient);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 600 3000; /* 🔥 600px long trail, 3000px gap */
  stroke-dashoffset: 2500;
  filter: drop-shadow(0 0 12px var(--gold));
  animation: draw-8-loop 4s cubic-bezier(0.45, 0, 0.55, 1) forwards;
}



@keyframes bee-flight-full {
  0% { left: -150px; opacity: 1; transform: translate(0, -50%) scale(0.6) rotate(15deg); }
  10% { left: 50%; transform: translate(-50%, -50%) scale(1); } 
  15% { left: 50%; transform: translate(-120%, -60%) scale(1.1) rotate(-15deg); }
  25% { left: 50%; transform: translate(-120%, -40%) scale(1.1) rotate(15deg); }
  35% { left: 50%; transform: translate(-50%, -50%) scale(1.1) rotate(0deg); }
  45% { left: 50%; transform: translate(20%, -60%) scale(1.1) rotate(15deg); }
  55% { left: 50%; transform: translate(20%, -40%) scale(1.1) rotate(-15deg); }
  65% { left: 50%; transform: translate(-50%, -50%) scale(1); } 
  100% { left: 130%; opacity: 1; transform: translate(0, -50%) scale(0.8) rotate(-15deg); }
}

.splash-text {
  position: absolute;
  top: 55%; 
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(24px, 5vw, 42px);
  letter-spacing: 15px; 
  color: var(--gold);
  font-weight: 300;
  opacity: 0;
  text-align: center;
  width: 100%;
  z-index: 2; /* 🔥 Keep above the trail */
  text-shadow: 0 0 10px var(--night), 0 0 5px var(--night); /* Masking edge */
  animation: text-reveal-centered 1s 0.1s forwards;
  pointer-events: none;
}



@keyframes text-reveal-centered {
  0% { opacity: 0; letter-spacing: 25px; filter: blur(10px); }
  100% { opacity: 1; letter-spacing: 12px; filter: blur(0); }
}


.splash-loader { 
  width: 200px; height: 1px; background: var(--border); 
  position: absolute; bottom: 15%; left: 50%; transform: translateX(-50%); overflow: hidden;
}
.splash-loader::after { 
  content: ''; position: absolute; left: -100%; width: 100%; height: 100%; 
  background: var(--gold); 
  animation: splash-loading 2s infinite; 
}
@keyframes splash-loading { 0% { left: -100%; } 100% { left: 100%; } }

/* No longer needed opening class since we use flight path */
.splash-screen.opening {
    /* transition handles it */
}


/* ── BOTTOM NAVIGATION ── */
.bottom-nav {
  display: none; position: fixed; bottom: 0; left: 0; right: 0; height: 65px;
  background: var(--deep); backdrop-filter: blur(10px); z-index: 10001;
  border-top: 1px solid var(--border); align-items: center; justify-content: space-around;
}
.bottom-nav-item {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: var(--mist); font-size: 10px; gap: 4px; transition: all 0.3s; text-decoration: none;
}
.bottom-nav-item .icon { font-size: 18px; transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.bottom-nav-item:hover { color: var(--gold); }
.bottom-nav-item:hover .icon { transform: scale(1.2); }

/* User Requirement: Border color only for last 4 icons (Search -> Profile) */
/* Assuming icons: Home (1), Search (2), Wish (3), Cart (4), Profile (5) */
.bottom-nav-item:nth-child(n+2) { border-left: 1px solid var(--border); }
.bottom-nav-item { background: transparent !important; }

@media (max-width: 991px) {
  nav { position: fixed !important; top: 0 !important; left: 0 !important; right: 0 !important; }
  .bottom-nav { display: flex !important; position: fixed !important; bottom: 0 !important; left: 0 !important; right: 0 !important; }
  .sticky-mobile-bar { display: none !important; }
  body { padding-top: 80px !important; padding-bottom: 65px !important; }
  .breadcrumb { font-size: 14px !important; flex-wrap: wrap; }
  .nav-mega-inner { display: none !important; }
  .hamburger { 
    display: flex !important; 
    background: transparent; border: 1px solid var(--border); 
    color: var(--gold); font-size: 24px; cursor: pointer; 
    height: 42px; width: 42px; align-items: center; justify-content: center; border-radius: 50%;
  }
  .nav-right { gap: 10px !important; }
  .nav-icon-btn { width: 36px !important; height: 36px !important; font-size: 16px !important; }
  .nav-cta { padding: 8px 12px !important; font-size: 10px !important; }
}

/* ── MOBILE NAV DRAWER ── */
.mobile-nav {
  position: fixed; top: 80px; left: 0; right: 0; bottom: 65px;
  background: var(--deep); z-index: 10001;
  display: none; flex-direction: column; padding: 20px;
  overflow-y: auto; border-top: 1px solid var(--border);
}
.mobile-nav.active { display: flex; }
.mobile-nav-item {
  padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,0.05);
  font-size: 14px; color: var(--cream); cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
}
.mobile-sub { display: none; padding: 10px 0 20px 20px; flex-direction: column; gap: 12px; }
.mobile-sub.active { display: flex; }
.mobile-sub a { font-size: 13px; color: var(--mist); }
.mob-sub-group { font-size: 11px; color: var(--gold); text-transform: uppercase; letter-spacing: 1.5px; }

/* Fix extra scroll */
#mainNav { height: 80px; }
.hero { padding-top: 80px !important; min-height: calc(100vh - 80px) !important; }

/* GLOBAL ROUNDED CORNERS - USER REQUEST */
.product-card,
.cat-card,
.testi-card,
.trust-item,
.service-card,
.feature-item,
.btn-primary,
.btn-ghost,
.btn-outline-gold,
.pc-badge,
.pc-save,
.price-save,
.pc-add,
.pc-view,
.toast,
.coverage-badge,
.filter-chip,
.form-input,
.mega-dropdown,
.mega-side-item,
.product-detail-item,
.delivery-item,
.highlight-chip,
.review-card,
.tab-btn,
.checkout-box,
.cart-item,
.cart-summary,
.modal-box,
.size-options-panel,
.quiz-opt,
.account-card,
.dash-content,
.gallery-main,
.thumb,
.pc-image,
.gallery-badge {
  border-radius: 6px !important;
}