/* ═══════════════════════════════════════════════════════════
   M R International — Premium Design System v3.0
   Apple-inspired, luxury-grade CSS
   ═══════════════════════════════════════════════════════════ */

/* ===== CSS CUSTOM PROPERTIES ===== */
:root {
  --bg-primary: #0a0a0f;
  --bg-secondary: #111118;
  --bg-card: rgba(17,17,24,0.7);
  --bg-card-hover: rgba(25,25,35,0.85);
  --bg-glass: rgba(17,17,24,0.65);
  --text-primary: #f5f5f7;
  --text-secondary: #a1a1a6;
  --text-muted: #6e6e73;
  --border-color: rgba(255,255,255,0.06);
  --border-hover: rgba(255,255,255,0.12);
  --gold: #C6A96B;
  --gold-hover: #d4ba7e;
  --gold-light: rgba(198,169,107,0.15);
  --gold-glow: rgba(198,169,107,0.4);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-2xl: 32px;
  --transition: 0.3s cubic-bezier(0.25,0.46,0.45,0.94);
  --transition-slow: 0.6s cubic-bezier(0.25,0.46,0.45,0.94);
}

/* ===== LIGHT MODE — Premium Warm Palette (🌿 Nature-Inspired) ===== */
[data-theme="light"] {
  --bg-primary: #F7F3EC;
  --bg-secondary: #FFFFFF;
  --bg-card: rgba(255,255,255,0.95);
  --bg-card-hover: rgba(255,255,255,1);
  --bg-glass: rgba(247,243,236,0.9);
  --text-primary: #2E2A26;
  --text-secondary: #6F6A63;
  --text-muted: #9C978F;
  --border-color: #E0D6C5;
  --border-hover: #C8A25D;
  --gold: #C8A25D;
  --gold-hover: #A8843E;
  --gold-light: rgba(200,162,93,0.12);
  --gold-glow: rgba(200,162,93,0.3);
  --accent-sand: #E8D8B5;
  --section-alt: #EFE6D6;
  --feature-bg: #F4EBDD;
  --input-bg: #F2EADF;
  --divider: #E8E0D2;
}

/* ===== GLOBAL RESET & BASE ===== */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }

html { 
  scroll-behavior: smooth; 
  -webkit-text-size-adjust: 100%;
  font-feature-settings: "kern" 1;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Inter', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.5;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }

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

/* ===== TYPOGRAPHY — Apple Scale ===== */
h1 { font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 700; line-height: 1.08; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.8rem, 3.5vw, 3rem); font-weight: 700; line-height: 1.12; letter-spacing: -0.02em; }
h3 { font-size: clamp(1.25rem, 2vw, 1.75rem); font-weight: 600; line-height: 1.2; letter-spacing: -0.01em; }
h4 { font-size: 1.125rem; font-weight: 600; line-height: 1.3; }
p { font-size: 1rem; line-height: 1.65; color: var(--text-secondary); }

h2::after { content: none; }

.font-display { font-family: 'Playfair Display', Georgia, 'Times New Roman', serif; }

/* ===== SELECTION ===== */
::selection { background: var(--gold-light); color: var(--text-primary); }

/* ===== SCROLLBAR — Minimal ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(198,169,107,0.3); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(198,169,107,0.5); }

/* ===== PREMIUM AMBIENT GLOW ===== */
body::before {
  content: "";
  position: fixed;
  width: 50vw; height: 50vw;
  background: radial-gradient(circle, rgba(198,169,107,0.04), transparent 70%);
  top: -20vh; right: -20vw;
  pointer-events: none; z-index: 0;
  animation: ambientDrift 30s ease-in-out infinite;
}
body::after {
  content: "";
  position: fixed;
  width: 40vw; height: 40vw;
  background: radial-gradient(circle, rgba(198,169,107,0.03), transparent 70%);
  bottom: -15vh; left: -15vw;
  pointer-events: none; z-index: 0;
  animation: ambientDrift 25s ease-in-out infinite reverse;
}
@keyframes ambientDrift {
  0%,100% { opacity: 0.6; transform: translate(0,0) scale(1); }
  50% { opacity: 1; transform: translate(30px,20px) scale(1.1); }
}
[data-theme="light"] body::before,
[data-theme="light"] body::after { opacity: 0.4; }

/* ===== GLASS MORPHISM ===== */
.glass {
  background: var(--bg-glass);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border: 1px solid var(--border-color);
}

/* ===== NAVBAR ===== */
#main-navbar {
  transition: all var(--transition);
  will-change: transform;
}
#main-navbar a::after { content: none !important; }

.nav-link {
  position: relative;
  padding: 6px 14px;
  border-radius: 980px;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all var(--transition);
  letter-spacing: -0.01em;
}
.nav-link:hover { background: var(--gold-light); }
.nav-link .absolute { display: none; }

/* ===== INPUTS — Apple Style ===== */
input, textarea, select {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-primary);
  font-size: 0.9375rem;
  font-family: inherit;
  outline: none;
  transition: all var(--transition);
}
input::placeholder, textarea::placeholder { color: var(--text-muted); }
input:focus, textarea:focus, select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px var(--gold-light);
  background: var(--bg-card-hover);
}
input:hover, textarea:hover, select:hover { border-color: var(--border-hover); }

input[type="radio"], input[type="checkbox"] {
  width: auto; padding: 0;
  accent-color: var(--gold);
}

label { display: block; margin-bottom: 6px; font-size: 0.8125rem; font-weight: 500; color: var(--text-secondary); }

/* ===== BUTTONS — Apple Style ===== */
.btn-premium {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 32px;
  background: linear-gradient(135deg, #C6A96B, #d4ba7e);
  color: #0a0a0f;
  font-weight: 600; font-size: 0.9375rem;
  border: none; border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition);
  position: relative; overflow: hidden;
  box-shadow: 0 2px 12px rgba(198,169,107,0.3);
  letter-spacing: -0.01em;
}
.btn-premium:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 30px var(--gold-glow);
}
.btn-premium:active { transform: translateY(0) scale(0.98); }

.btn-outline-premium {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 32px;
  background: transparent;
  color: var(--gold);
  font-weight: 600; font-size: 0.9375rem;
  border: 1.5px solid var(--gold);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition);
  letter-spacing: -0.01em;
}
.btn-outline-premium:hover {
  background: var(--gold);
  color: #0a0a0f;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--gold-glow);
}

.luxury-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 32px;
  border: 1.5px solid var(--gold);
  color: var(--gold);
  font-weight: 600; font-size: 0.875rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  background: transparent;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition);
  font-family: inherit;
}
.luxury-btn:hover {
  background: var(--gold);
  color: #0a0a0f;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--gold-glow);
}

/* ===== PRODUCT CARDS — Premium Glass ===== */
.luxury-product-card, .card-shine {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.25,0.46,0.45,0.94);
  position: relative;
  transform-style: preserve-3d;
  will-change: transform;
}
.luxury-product-card::before, .card-shine::before { content: none; }
.luxury-product-card::after, .card-shine::after { content: none; }

.luxury-product-card:hover, .card-shine:hover {
  transform: translateY(-8px) scale(1.01);
  border-color: rgba(198,169,107,0.25);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4), 0 0 0 1px rgba(198,169,107,0.15), 0 0 40px rgba(198,169,107,0.08);
}

[data-theme="light"] .luxury-product-card,
[data-theme="light"] .card-shine {
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
[data-theme="light"] .luxury-product-card:hover,
[data-theme="light"] .card-shine:hover {
  box-shadow: 0 20px 60px rgba(0,0,0,0.08), 0 0 0 1px rgba(166,125,61,0.2);
}

.product-info {
  padding: 20px 24px 24px;
}
.product-info h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.125rem; font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}
.product-info p { font-size: 0.8125rem; color: var(--text-muted); }

/* ===== PRODUCT GRID ===== */
.luxury-product-grid, .product-grid-regular {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
@media (max-width: 1024px) { .luxury-product-grid, .product-grid-regular { grid-template-columns: repeat(2, 1fr); gap: 20px; } }
@media (max-width: 640px) { .luxury-product-grid, .product-grid-regular { grid-template-columns: 1fr; gap: 16px; } }

/* ===== HERO ===== */
.luxury-hero {
  min-height: 85vh;
  display: flex;
  align-items: center;
  padding: 100px 8% 60px;
  position: relative;
  overflow: hidden;
}
@media (max-width: 900px) {
  .luxury-hero {
    min-height: auto;
    flex-direction: column;
    text-align: center;
    padding: 100px 5% 60px;
  }
}

.hero-slider {
  position: absolute; inset: 0; z-index: 0;
}
.hero-slide {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity 1.5s ease-in-out, transform 10s ease-out;
  background-size: cover;
  background-position: center;
  transform: scale(1.08);
}
.hero-slide.active { opacity: 1; transform: scale(1); }

.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to right, rgba(10,10,15,0.92) 0%, rgba(10,10,15,0.7) 40%, rgba(10,10,15,0.3) 70%, transparent 100%);
}
@media (max-width: 900px) {
  .hero-overlay { background: linear-gradient(to bottom, rgba(10,10,15,0.6), rgba(10,10,15,0.95)); }
}

.luxury-hero-content {
  max-width: 640px; position: relative; z-index: 2; flex: 1;
}
.luxury-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  font-weight: 700; line-height: 1.08;
  letter-spacing: -0.02em; margin-bottom: 20px;
  color: #f5f5f7;
}
.luxury-hero p {
  color: rgba(245,245,247,0.7);
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  font-weight: 400; line-height: 1.6;
  max-width: 540px; margin-bottom: 32px;
}

.hero-stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 12px; margin-top: 36px;
}
.hero-stat {
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.06);
  padding: 16px 12px; border-radius: var(--radius-md);
  text-align: center;
  transition: all var(--transition);
}
.hero-stat:hover {
  transform: translateY(-4px);
  border-color: rgba(198,169,107,0.3);
  box-shadow: 0 12px 32px rgba(198,169,107,0.15);
}
.hero-stat-number {
  font-family: 'Playfair Display', serif;
  font-size: 1.75rem; font-weight: 700;
  color: var(--gold); line-height: 1;
}
.hero-stat-label {
  font-size: 0.6875rem;
  color: rgba(245,245,247,0.5);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 4px;
}

.hero-slider-dots {
  position: absolute; bottom: 32px;
  left: 50%; transform: translateX(-50%);
  z-index: 2; display: flex; gap: 8px;
}
.hero-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,0.2);
  cursor: pointer; transition: all var(--transition);
}
.hero-dot.active {
  background: var(--gold);
  width: 24px; border-radius: 4px;
}

@media (max-width: 640px) {
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
}

/* ===== HERO PARTICLES ===== */
.hero-particles { position: absolute; inset: 0; z-index: 1; overflow: hidden; pointer-events: none; }
.hero-particle {
  position: absolute;
  width: 3px; height: 3px;
  background: rgba(198,169,107,0.5);
  border-radius: 50%;
  animation: particleFloat 18s infinite;
}
@keyframes particleFloat {
  0% { transform: translateY(100vh) scale(0); opacity: 0; }
  10% { opacity: 0.8; transform: translateY(80vh) scale(1); }
  90% { opacity: 0.2; }
  100% { transform: translateY(-10vh) scale(0.3); opacity: 0; }
}

/* ===== SECTIONS ===== */
.section-gold {
  background: linear-gradient(180deg, var(--bg-primary), var(--bg-secondary));
  position: relative;
}
.section-alt {
  background: var(--bg-secondary);
}

/* ===== BRAND STATEMENT ===== */
.brand-statement {
  text-align: center; padding: 60px 20px;
  position: relative;
}

/* ===== PARTNER/STORY SECTION ===== */
.partner-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 60px; align-items: center;
}
@media (max-width: 900px) { .partner-grid { grid-template-columns: 1fr !important; gap: 40px !important; } }

/* ===== CENTER SECTION ===== */
.center-section {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
}

/* ===== CTA SECTION ===== */
.luxury-cta {
  text-align: center; padding: 100px 20px;
  position: relative; overflow: hidden;
}
.luxury-cta::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, rgba(198,169,107,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.luxury-cta h2 { color: var(--text-primary); margin-bottom: 16px; }
.luxury-cta p { max-width: 600px; margin: 0 auto 36px; font-size: 1.125rem; }
.luxury-cta-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ===== GRADIENT TEXT ===== */
.gradient-text {
  background: linear-gradient(135deg, #C6A96B 0%, #E8CC8E 50%, #C6A96B 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 4s ease-in-out infinite;
}
@keyframes gradientShift {
  0%,100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
[data-theme="light"] .gradient-text {
  background: linear-gradient(135deg, #8B6530, #A67D3D, #8B6530);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  filter: none !important;
}

/* ===== SCROLL REVEAL ===== */
.reveal, .fade-up {
  opacity: 0; transform: translateY(30px);
  transition: all 0.7s cubic-bezier(0.25,0.46,0.45,0.94);
}
.reveal.active, .reveal.show, .fade-up.show { opacity: 1; transform: translateY(0); }
.fade-up-delay-1 { transition-delay: 0.08s; }
.fade-up-delay-2 { transition-delay: 0.16s; }
.fade-up-delay-3 { transition-delay: 0.24s; }
.fade-up-delay-4 { transition-delay: 0.32s; }
.fade-up-delay-5 { transition-delay: 0.4s; }
.fade-up-delay-6 { transition-delay: 0.48s; }

.stagger { opacity: 0; transform: translateY(30px); transition: all 0.6s var(--transition-slow); }
.stagger.show { opacity: 1; transform: translateY(0); }

/* ===== PAGE TRANSITION ===== */
.page-transition { animation: pageIn 0.4s ease-out; }
@keyframes pageIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

/* ===== LOADER ===== */
#loader { transition: opacity 0.6s ease; }
#loader.hide { opacity: 0; pointer-events: none; }

/* ===== PREMIUM DIVIDER ===== */
.premium-divider {
  height: 1px; margin: 48px 0;
  background: linear-gradient(90deg, transparent, rgba(198,169,107,0.3), transparent);
}

/* ===== CUSTOM CURSOR (GPU Accelerated) ===== */
.custom-cursor {
  width: 10px; height: 10px;
  background: var(--gold);
  border-radius: 50%;
  position: fixed; top: 0; left: 0;
  pointer-events: none;
  z-index: 99999;
  will-change: transform;
  box-shadow: 0 0 12px rgba(198,169,107,0.5);
  mix-blend-mode: screen;
}
.cursor-follower {
  width: 36px; height: 36px;
  border: 1px solid rgba(198,169,107,0.25);
  border-radius: 50%;
  position: fixed; top: 0; left: 0;
  pointer-events: none;
  z-index: 99998;
  will-change: transform;
  transition: width 0.2s ease, height 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.custom-cursor.cursor-hover { width: 14px; height: 14px; background: #E8CC8E; }
.cursor-follower.follower-hover {
  width: 50px; height: 50px;
  border-color: rgba(198,169,107,0.5);
  background: rgba(198,169,107,0.04);
}

/* ===== CHAT WIDGET ===== */
#chat-window {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  box-shadow: 0 25px 80px rgba(0,0,0,0.5);
  backdrop-filter: blur(20px);
}
[data-theme="light"] #chat-window {
  background: #fff; box-shadow: 0 25px 80px rgba(0,0,0,0.12);
}

/* ===== TOAST ===== */
#toast-container { z-index: 99999; }

/* ===== SKELETON LOADING ===== */
.skeleton {
  background: linear-gradient(90deg, rgba(255,255,255,0.03) 25%, rgba(255,255,255,0.06) 50%, rgba(255,255,255,0.03) 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s ease-in-out infinite;
  border-radius: 8px;
}
@keyframes skeleton-loading { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ===== PAYMENT OPTIONS ===== */
.payment-option {
  transition: all var(--transition);
  border-radius: var(--radius-md);
}
.payment-option input[type="radio"] { accent-color: var(--gold); }
.payment-option:has(input:checked) {
  border-color: var(--gold) !important;
  background: var(--gold-light);
  box-shadow: 0 0 20px rgba(198,169,107,0.08);
}

/* ===== LINE CLAMP ===== */
.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.line-clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* ===== GLOW EFFECTS ===== */
.glow-gold { box-shadow: 0 0 40px rgba(198,169,107,0.2), 0 0 80px rgba(198,169,107,0.1); }
.shadow-premium { box-shadow: 0 8px 32px rgba(0,0,0,0.3), 0 0 0 1px var(--border-color); }

/* ===== DROPDOWN ===== */
.dropdown-menu {
  background: var(--bg-glass);
  backdrop-filter: saturate(180%) blur(20px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 48px rgba(0,0,0,0.4);
}
[data-theme="light"] .dropdown-menu {
  background: rgba(255,255,255,0.95);
  box-shadow: 0 12px 48px rgba(0,0,0,0.1);
}

/* ===== PRINT ===== */
@media print { nav, footer, #chat-toggle, #chat-window, .no-print { display: none !important; } body { background: white; color: black; } }

/* ===== FOCUS ===== */
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* ═══════════════════════════════════════════════════════════
   COMPREHENSIVE LIGHT MODE — Every element accounted for
   ═══════════════════════════════════════════════════════════ */

[data-theme="light"] body { background: #F7F3EC !important; color: #2E2A26 !important; }

/* Navbar */
[data-theme="light"] #main-navbar { background: rgba(247,243,236,0.95) !important; border-bottom-color: #E0D6C5 !important; box-shadow: 0 1px 3px rgba(0,0,0,0.05) !important; }
[data-theme="light"] #main-navbar .text-white,
[data-theme="light"] #main-navbar span.font-display { color: #2E2A26 !important; }
[data-theme="light"] #main-navbar .text-gray-300,
[data-theme="light"] #main-navbar .text-gray-400 { color: #6F6A63 !important; }
[data-theme="light"] .nav-link.text-primary-400 { color: #C8A25D !important; background: rgba(200,162,93,0.1) !important; }
[data-theme="light"] #search-bar, [data-theme="light"] #mobile-menu { background: rgba(247,243,236,0.98) !important; }
[data-theme="light"] #search-bar input { background: #F2EADF !important; color: #2E2A26 !important; }

/* Hero — keep white text */
[data-theme="light"] .luxury-hero { color: white !important; }
[data-theme="light"] .luxury-hero h1, [data-theme="light"] .luxury-hero p { color: inherit !important; }
[data-theme="light"] .hero-overlay { background: linear-gradient(to right, rgba(0,0,0,0.8), rgba(0,0,0,0.5), rgba(0,0,0,0.2), transparent) !important; }

/* Cards & panels */
[data-theme="light"] .bg-dark-800\/50,
[data-theme="light"] [class*="bg-dark-800"],
[data-theme="light"] [class*="bg-dark-900"] { background: #FFFFFF !important; border-color: #E0D6C5 !important; }
[data-theme="light"] .bg-dark-950,
[data-theme="light"] [class*="bg-dark-950"] { background: #EFE6D6 !important; }

/* Text overrides — warm earth tones */
[data-theme="light"] .text-white { color: #2E2A26 !important; }
[data-theme="light"] .text-gray-300 { color: #2E2A26 !important; }
[data-theme="light"] .text-gray-400 { color: #6F6A63 !important; }
[data-theme="light"] .text-gray-500 { color: #9C978F !important; }
[data-theme="light"] .text-gray-600 { color: #6F6A63 !important; }
[data-theme="light"] .text-primary-400 { color: #C8A25D !important; }

/* Inputs */
[data-theme="light"] input, [data-theme="light"] textarea, [data-theme="light"] select {
  background: #F2EADF !important; border-color: #E0D6C5 !important; color: #2E2A26 !important;
}
[data-theme="light"] input::placeholder, [data-theme="light"] textarea::placeholder { color: #9C978F !important; }
[data-theme="light"] input:focus, [data-theme="light"] textarea:focus, [data-theme="light"] select:focus {
  border-color: #C8A25D !important; box-shadow: 0 0 0 4px rgba(200,162,93,0.1) !important; background: #fff !important;
}

/* Product cards */
[data-theme="light"] .product-info h3 { color: #2E2A26 !important; }
[data-theme="light"] .product-info p { color: #6F6A63 !important; }

/* Sections */
[data-theme="light"] .section-gold { background: #F7F3EC !important; }
[data-theme="light"] .section-alt, [data-theme="light"] .luxury-products, [data-theme="light"] .brand-statement, [data-theme="light"] .full-section { background: #EFE6D6 !important; }
[data-theme="light"] .luxury-cta { background: #F4EBDD !important; }

[data-theme="light"] .luxury-products h2, [data-theme="light"] .luxury-cta h2 { color: #2E2A26 !important; }
[data-theme="light"] .luxury-products-subtitle, [data-theme="light"] .luxury-cta p { color: #6F6A63 !important; }

/* Footer — keep dark */
[data-theme="light"] footer { background: #1d1d1f !important; color: white !important; }
[data-theme="light"] footer .text-white { color: #fff !important; }
[data-theme="light"] footer .text-gray-400 { color: #a1a1a6 !important; }
[data-theme="light"] footer .text-gray-500 { color: #86868b !important; }

/* Loader */
[data-theme="light"] #loader { background: #F7F3EC !important; }

/* Login */
[data-theme="light"] .login-title { background: linear-gradient(135deg, #2E2A26, #C8A25D) !important; -webkit-background-clip: text !important; -webkit-text-fill-color: transparent !important; }
[data-theme="light"] .login-subtitle { color: #6F6A63 !important; }
[data-theme="light"] .login-card { background: rgba(255,255,255,0.95) !important; border-color: #E0D6C5 !important; }
[data-theme="light"] .form-label { color: #6F6A63 !important; }
[data-theme="light"] .form-input { background: #F2EADF !important; color: #2E2A26 !important; border-color: #E0D6C5 !important; }
[data-theme="light"] .login-page { background: #F7F3EC !important; }

/* Table */
[data-theme="light"] table th { color: #6F6A63 !important; border-color: #E8E0D2 !important; }
[data-theme="light"] table td { border-color: #E8E0D2 !important; }

/* Scrollbar */
[data-theme="light"] ::-webkit-scrollbar-track { background: #EFE6D6; }
[data-theme="light"] ::-webkit-scrollbar-thumb { background: rgba(200,162,93,0.4); }

/* Stat cards in hero — keep glass look */
[data-theme="light"] .hero-stat { background: rgba(255,255,255,0.2) !important; border-color: rgba(255,255,255,0.25) !important; }

/* Buttons */
[data-theme="light"] .luxury-btn { 
  border-color: #C8A25D !important; 
  color: #C8A25D !important;
  background: transparent !important;
}
[data-theme="light"] .luxury-btn:hover { 
  background: #C8A25D !important; 
  color: #FFFFFF !important; 
}

/* Brand statement & section text */
[data-theme="light"] .brand-statement h2 { color: #2E2A26 !important; }
[data-theme="light"] .brand-statement p { color: #6F6A63 !important; }

/* Story section */
[data-theme="light"] .luxury-story { background: #F7F3EC !important; }
[data-theme="light"] .luxury-story h2 { color: #2E2A26 !important; }
[data-theme="light"] .luxury-story p { color: #6F6A63 !important; }

/* Feature cards */
[data-theme="light"] [class*="feature-card"],
[data-theme="light"] [class*="why-card"] {
  background: #F4EBDD !important;
  border-color: #E8D8B5 !important;
}
[data-theme="light"] [class*="feature-card"] i,
[data-theme="light"] [class*="why-card"] i { color: #C8A25D !important; }

/* Chatbot */
[data-theme="light"] #chat-window { background: #FFFFFF !important; border-color: #E0D6C5 !important; }

/* Dropdown */
[data-theme="light"] .dropdown-menu { background: #FFFFFF !important; border-color: #E0D6C5 !important; }
[data-theme="light"] .brand-statement span { color: #C8A25D !important; }

/* Product info text in light mode */
[data-theme="light"] .product-info h3 { color: #2E2A26 !important; }
[data-theme="light"] .product-info p { color: #6F6A63 !important; }

/* CTA / hero text that uses inline styles with var(--ivory/--gray) */
[data-theme="light"] [style*="color: var(--ivory)"] { color: #2E2A26 !important; }
[data-theme="light"] [style*="color: var(--gray)"] { color: #6F6A63 !important; }

/* Contact card light mode */
[data-theme="light"] .contact-card { background: rgba(255,255,255,0.95) !important; border-color: #E0D6C5 !important; }
[data-theme="light"] .track-box { background: rgba(255,255,255,0.95) !important; border-color: #E0D6C5 !important; }
[data-theme="light"] .track-input { background: #F2EADF !important; color: #2E2A26 !important; border-color: #E0D6C5 !important; }

/* Chat in light mode */
[data-theme="light"] #chat-toggle { box-shadow: 0 4px 24px rgba(200,162,93,0.3) !important; }

/* Profile and other dark-bg cards */
[data-theme="light"] .profile-card { background: rgba(255,255,255,0.95) !important; border-color: #E0D6C5 !important; }
[data-theme="light"] .section-title { color: #C8A25D !important; }

/* Badges */
[data-theme="light"] .bg-primary-500\/10, [data-theme="light"] .bg-primary-500\/20 { background: rgba(200,162,93,0.1) !important; }
[data-theme="light"] .bg-primary-600 { background: #C8A25D !important; }

/* Chat */
[data-theme="light"] #chat-window .bg-dark-800 { background: #F2EADF !important; }

/* Dropdowns */
[data-theme="light"] .dropdown-menu .text-white { color: #2E2A26 !important; }
[data-theme="light"] .dropdown-menu .text-gray-400 { color: #6F6A63 !important; }

/* Border utilities */
[data-theme="light"] .border-white\/5, [data-theme="light"] .border-white\/10 { border-color: #E0D6C5 !important; }
[data-theme="light"] .border-primary-500\/20 { border-color: rgba(200,162,93,0.2) !important; }

/* ===== RESPONSIVE MOBILE ===== */
@media (max-width: 768px) {
  html, body { font-size: 15px; }
  section { padding: 40px 4% !important; }
  .luxury-hero { padding: 80px 4% 48px !important; min-height: auto !important; }
  .hero-stats { grid-template-columns: repeat(2,1fr) !important; gap: 8px; }
  .hero-stat { padding: 12px 8px; }
  .hero-stat-number { font-size: 1.3rem; }
  .hero-stat-label { font-size: 0.6rem; }
  .luxury-cta-buttons { flex-direction: column; padding: 0 4%; }
  .luxury-cta-buttons .luxury-btn, .luxury-cta-buttons .btn-premium { width: 100%; }
  h1 { font-size: clamp(1.8rem, 5vw, 2.5rem); }
  h2 { font-size: clamp(1.4rem, 3.5vw, 2rem); }
  h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); }
  .luxury-hero h1 { font-size: clamp(1.8rem, 5vw, 2.5rem) !important; }
  .luxury-hero p { font-size: 0.9rem !important; }
  .partner-grid { grid-template-columns: 1fr !important; gap: 24px !important; }
  .btn-premium, .btn-outline-premium, .luxury-btn { padding: 12px 24px; font-size: 0.85rem; }
  .center-section { min-height: auto; padding: 40px 4%; }
  .luxury-cta { padding: 60px 4% !important; }
  .luxury-cta p { font-size: 0.95rem; }
  .brand-statement { padding: 40px 4%; }
  .product-info { padding: 14px 16px 18px; }
  .product-info h3 { font-size: 1rem; }
  .custom-cursor, .cursor-follower { display: none !important; }
  .premium-divider { margin: 32px 0; }
  /* Fix stacked layout on phone */
  .flex { flex-wrap: wrap; }
  .grid { grid-template-columns: 1fr !important; }
  /* Navbar mobile */
  #main-navbar { padding: 0 12px !important; }
  /* Chat widget mobile */
  #chat-window { width: calc(100vw - 24px) !important; right: 12px !important; bottom: 80px !important; max-height: 70vh !important; }
  /* Form elements */
  input, textarea, select { font-size: 16px !important; /* Prevent iOS zoom */ }
  /* Product page mobile */
  .product-detail-grid { grid-template-columns: 1fr !important; }
  /* Cart mobile */
  .cart-sidebar { width: 100% !important; max-width: none !important; }
}

@media (max-width: 480px) {
  section { padding: 32px 3% !important; }
  .luxury-hero { padding: 70px 3% 36px !important; }
  .hero-stats { grid-template-columns: repeat(2,1fr) !important; gap: 6px; }
  .hero-stat { padding: 10px 6px; }
  .hero-stat-number { font-size: 1.1rem; }
  .hero-stat-label { font-size: 0.55rem; letter-spacing: 0.5px; }
  h1 { font-size: 1.6rem; }
  h2 { font-size: 1.3rem; }
  .luxury-product-grid, .product-grid-regular { gap: 12px; }
  .luxury-product-card, .card-shine { border-radius: 16px; }
  .product-info { padding: 12px 14px 16px; }
  .glass { backdrop-filter: blur(10px); }
  #toast-container { left: 12px; right: 12px; top: auto; bottom: 12px; }
  .btn-premium, .btn-outline-premium, .luxury-btn { padding: 10px 20px; font-size: 0.8rem; }
  .dropdown-menu { width: calc(100vw - 24px) !important; left: 12px !important; right: 12px !important; }
}

/* ═══════════════════════════════════════════════════════════
   v4.0 — COMPREHENSIVE MOBILE FIXES
   ═══════════════════════════════════════════════════════════ */

/* Fix all grid layouts on mobile */
@media (max-width: 768px) {
  .grid-cols-2, [class*="grid-cols-2"],
  .grid-cols-3, [class*="grid-cols-3"],
  .grid-cols-4, [class*="grid-cols-4"] { grid-template-columns: 1fr !important; }
  
  [class*="lg:grid-cols"] { grid-template-columns: 1fr !important; }
  
  /* Fix checkout grid */
  .grid-cols-1.lg\\:grid-cols-\\[1\\.3fr_1fr\\],
  [class*="grid-cols"][class*="lg:grid-cols"] { grid-template-columns: 1fr !important; }
  
  /* Fix product detail layout */
  .grid.md\\:grid-cols-2, .md\\:grid-cols-2 { grid-template-columns: 1fr !important; }
  
  /* Fix profile layout */
  .grid.lg\\:grid-cols-3 { grid-template-columns: 1fr !important; }
  
  /* Navbar improvements */
  #main-navbar .max-w-7xl { padding: 0 12px !important; }
  #main-navbar .h-14 { height: 52px !important; }
  
  /* Better dropdown on mobile */
  .dropdown-menu { 
    position: fixed !important; 
    top: auto !important; bottom: 0 !important; 
    left: 0 !important; right: 0 !important;
    width: 100% !important; max-width: 100% !important;
    border-radius: 16px 16px 0 0 !important;
    transform: none !important;
    padding: 12px !important;
    z-index: 9999 !important;
  }
  
  /* Fix hidden elements */
  .hidden.md\\:flex { display: none !important; }
  
  /* Better spacing */
  .max-w-7xl { padding-left: 16px !important; padding-right: 16px !important; }
  .py-12 { padding-top: 2rem !important; padding-bottom: 2rem !important; }
  .py-16 { padding-top: 2.5rem !important; padding-bottom: 2.5rem !important; }
  .py-20 { padding-top: 3rem !important; padding-bottom: 3rem !important; }
  
  /* Fix card padding */
  .p-6 { padding: 16px !important; }
  .p-8 { padding: 20px !important; }
  .p-12 { padding: 24px !important; }
  
  /* Fix text sizes */
  .text-4xl { font-size: 1.75rem !important; }
  .text-3xl { font-size: 1.5rem !important; }
  .text-2xl { font-size: 1.25rem !important; }
  
  /* Login/Register pages */
  .login-card { padding: 28px 20px !important; border-radius: 16px !important; }
  .login-page { padding: 70px 16px 30px !important; }
  .max-w-md { max-width: 100% !important; }
  .max-w-lg { max-width: 100% !important; }
  
  /* Form improvements */
  .form-input-wrapper input { font-size: 16px !important; }
  .form-input { font-size: 16px !important; }
  
  /* Checkout */
  .sticky { position: relative !important; top: auto !important; }
  
  /* Better buttons on mobile */
  button, .btn-premium, .btn-outline-premium {
    min-height: 44px; /* Touch target */
  }
  
  /* Fix footer grid */
  footer .grid-cols-1.md\\:grid-cols-4,
  footer .md\\:grid-cols-4 { grid-template-columns: 1fr 1fr !important; }
  footer .md\\:col-span-1 { grid-column: span 2 !important; }
  
  /* Product images */
  .luxury-product-card .h-\\[280px\\] { height: 200px !important; }
  
  /* Fix gap issues */
  .gap-10 { gap: 20px !important; }
  .gap-8 { gap: 16px !important; }
  
  /* Fix profile page tabs */
  .border-b .flex { overflow-x: auto; white-space: nowrap; -webkit-overflow-scrolling: touch; }
  
  /* Cart items */
  .max-h-64 { max-height: 200px !important; }
  
  /* Toast positioning */
  #toast-container { 
    top: auto !important; bottom: 12px !important; 
    left: 12px !important; right: 12px !important;
    align-items: stretch !important;
  }
  #toast-container > div { max-width: 100% !important; }
}

@media (max-width: 480px) {
  /* Even smaller adjustments */
  footer .grid { grid-template-columns: 1fr !important; }
  footer .md\\:col-span-1 { grid-column: span 1 !important; }
  
  .hero-stats { grid-template-columns: repeat(2, 1fr) !important; }
  
  /* Fix OTP input */
  input[inputmode="numeric"] { 
    font-size: 24px !important; 
    letter-spacing: 8px; 
    text-align: center;
    padding: 16px !important;
  }
  
  /* Better product cards */
  .luxury-product-card .h-\\[280px\\] { height: 180px !important; }
  .product-info h3 { font-size: 0.875rem !important; }
  
  /* Compact header */
  .font-display.text-base { font-size: 0.875rem !important; }
  .text-\\[9px\\] { display: none !important; }
}

/* Fix for iOS Safari bottom bar */
@supports (-webkit-touch-callout: none) {
  .min-h-screen { min-height: -webkit-fill-available; }
}

/* Better touch interactions */
@media (hover: none) and (pointer: coarse) {
  .group:hover .group-hover\\:opacity-100 { opacity: 0; }
  .luxury-product-card:active { transform: scale(0.98); }
  .nav-link:active { background: var(--gold-light); }
}


/* ═══════════════════════════════════════════════════════════
   v5.0 — WORLD-CLASS MOBILE RESPONSIVE OVERHAUL
   Premium mobile experience matching desktop quality
   ═══════════════════════════════════════════════════════════ */

/* ===== Mobile-First Base ===== */
@media (max-width: 768px) {
  /* Smooth scrolling and momentum scrolling */
  html, body {
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: none;
  }

  /* Prevent horizontal overflow at all costs */
  body, #app, main, section, header, footer {
    max-width: 100vw;
    overflow-x: hidden;
  }

  /* Tap highlight */
  a, button, [role="button"], .clickable {
    -webkit-tap-highlight-color: rgba(198,169,107,0.15);
    touch-action: manipulation;
  }

  /* Min tap target sizes (Apple HIG: 44px) */
  button, a.btn, .nav-link, .icon-btn, [role="button"] {
    min-height: 44px;
    min-width: 44px;
  }

  /* Improve text legibility */
  body { font-size: 15px; line-height: 1.55; }

  /* Sane heading sizes */
  h1 { font-size: clamp(1.65rem, 6vw, 2.2rem) !important; line-height: 1.15 !important; }
  h2 { font-size: clamp(1.4rem, 5vw, 1.75rem) !important; line-height: 1.2 !important; }
  h3 { font-size: clamp(1.15rem, 4vw, 1.35rem) !important; }

  /* No more cut-off at viewport edges */
  .container, .max-w-7xl, .max-w-6xl, .max-w-5xl, .max-w-4xl, .max-w-3xl, .max-w-2xl, .max-w-xl {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  /* Section padding */
  section { padding-left: 16px !important; padding-right: 16px !important; }

  /* Forms — prevent zoom on focus */
  input, select, textarea {
    font-size: 16px !important;
    min-height: 44px;
    border-radius: 10px !important;
  }
  textarea { min-height: 80px; }

  /* Better input wrappers */
  .form-input-wrapper { width: 100%; }
  .form-input-wrapper input { width: 100%; }

  /* ===== NAVBAR MOBILE ===== */
  #main-navbar {
    padding: 0 12px !important;
    background: rgba(10,10,15,0.95) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
  }
  #main-navbar .max-w-7xl { padding: 0 !important; }
  #main-navbar .h-14 { height: 56px !important; }
  /* Logo size */
  #main-navbar img { max-height: 36px !important; width: auto !important; }
  /* Hide desktop-only nav items */
  #main-navbar nav.hidden { display: none !important; }
  /* Mobile menu button */
  #mobile-menu-toggle { display: flex !important; align-items: center; justify-content: center; }

  /* ===== BUTTONS — TOUCH OPTIMIZED ===== */
  .btn-premium, .btn-outline-premium, .luxury-btn, .btn {
    padding: 12px 20px !important;
    font-size: 0.9rem !important;
    border-radius: 12px !important;
    min-height: 48px;
    width: auto;
  }
  .btn.btn-block, .btn-full { width: 100% !important; }

  /* CTA stacks vertically with full width */
  .luxury-cta-buttons,
  .cta-row {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px !important;
  }
  .luxury-cta-buttons > * { width: 100% !important; }

  /* ===== CARDS & GRIDS ===== */
  .grid, [class*="grid-cols-"] { gap: 16px !important; }

  /* Force single column on mobile */
  .grid-cols-1, .grid-cols-2, .grid-cols-3, .grid-cols-4,
  [class*="grid-cols-2"], [class*="grid-cols-3"], [class*="grid-cols-4"] {
    grid-template-columns: 1fr !important;
  }
  /* Allow 2-col only for product grids */
  .luxury-product-grid, .product-grid-regular, .product-grid-mobile-2 {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
  }

  /* Stats grid stays 2-col */
  .hero-stats, .stats-grid, .grid-stats-2 {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
  }

  /* Footer 2-col */
  footer .grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 24px !important;
  }
  footer .md\:col-span-1 { grid-column: span 2 !important; }
  footer h4 { font-size: 0.95rem !important; margin-bottom: 12px !important; }
  footer ul li { font-size: 0.85rem !important; padding: 6px 0 !important; }

  /* Product cards - mobile optimized */
  .luxury-product-card, .card-shine {
    border-radius: 14px !important;
  }
  .luxury-product-card .h-\\[280px\\],
  .luxury-product-card [class*="h-\\["] {
    height: 180px !important;
  }
  .product-info {
    padding: 12px 14px 14px !important;
  }
  .product-info h3 {
    font-size: 0.95rem !important;
    line-height: 1.3 !important;
    margin-bottom: 6px !important;
  }
  .product-info p { font-size: 0.78rem !important; }
  .product-price { font-size: 1rem !important; }

  /* ===== HERO ===== */
  .luxury-hero, .hero-section {
    padding: 70px 16px 40px !important;
    min-height: auto !important;
  }
  .luxury-hero h1, .hero-section h1 {
    font-size: clamp(1.8rem, 7vw, 2.6rem) !important;
    margin-bottom: 12px !important;
  }
  .luxury-hero p, .hero-section p {
    font-size: 0.95rem !important;
    margin-bottom: 20px !important;
  }
  .hero-stat { padding: 10px 6px !important; }
  .hero-stat-number { font-size: 1.25rem !important; }
  .hero-stat-label { font-size: 0.6rem !important; letter-spacing: 0.5px !important; }

  /* ===== SECTIONS ===== */
  .center-section, .brand-statement, .luxury-cta {
    padding: 40px 16px !important;
    min-height: auto !important;
  }
  .premium-divider { margin: 28px 0 !important; }

  /* ===== PARTNER GRID ===== */
  .partner-grid {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }

  /* ===== PRODUCT DETAIL PAGE ===== */
  .product-detail-grid,
  .grid.md\:grid-cols-2 {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }
  .product-detail-image {
    max-width: 100% !important;
    height: auto !important;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 16px !important;
  }
  .product-detail-info h1 { font-size: 1.6rem !important; }

  /* ===== CART / CHECKOUT ===== */
  .cart-sidebar {
    width: 100vw !important;
    max-width: 100vw !important;
    right: 0 !important;
    border-radius: 0 !important;
  }
  .checkout-grid,
  [class*="lg\\:grid-cols-\\[1\\.3fr_1fr\\]"] {
    grid-template-columns: 1fr !important;
  }
  .checkout-item {
    flex-direction: row !important;
    align-items: center !important;
    gap: 12px !important;
  }
  .checkout-item img { width: 60px !important; height: 60px !important; }

  /* Cart drawer */
  .cart-drawer {
    width: 100% !important;
    max-width: 100% !important;
  }

  /* ===== PROFILE / DASHBOARD ===== */
  .profile-grid, .dashboard-grid,
  .grid.lg\:grid-cols-3 {
    grid-template-columns: 1fr !important;
  }

  /* Tabs become horizontal scroll */
  .tabs-bar, .border-b .flex, .tab-nav {
    overflow-x: auto !important;
    flex-wrap: nowrap !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    white-space: nowrap;
  }
  .tabs-bar::-webkit-scrollbar { display: none; }
  .tabs-bar a, .tab-nav a, .tabs-bar button { flex-shrink: 0; }

  /* ===== LOGIN / REGISTER PAGES ===== */
  .login-page {
    padding: 80px 16px 40px !important;
    min-height: 100vh;
  }
  .login-card {
    padding: 28px 22px !important;
    border-radius: 18px !important;
    max-width: 100% !important;
  }
  .login-card h2 { font-size: 1.6rem !important; }
  .login-card .form-group { margin-bottom: 16px !important; }

  /* ===== OTP / CODE INPUT ===== */
  input[inputmode="numeric"],
  .otp-input {
    font-size: 22px !important;
    letter-spacing: 6px !important;
    text-align: center !important;
    padding: 14px !important;
    font-weight: 600 !important;
  }

  /* ===== DROPDOWNS — Bottom Sheet on Mobile ===== */
  .dropdown-menu {
    position: fixed !important;
    top: auto !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    border-radius: 20px 20px 0 0 !important;
    transform: none !important;
    padding: 12px !important;
    z-index: 9999 !important;
    box-shadow: 0 -10px 40px rgba(0,0,0,0.4) !important;
  }
  .dropdown-menu::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 4px;
    background: rgba(255,255,255,0.3);
    border-radius: 2px;
  }
  .dropdown-menu > * { padding-top: 16px; }

  /* ===== CHATBOT WIDGET ===== */
  #chat-window {
    width: calc(100vw - 16px) !important;
    right: 8px !important;
    left: 8px !important;
    bottom: 80px !important;
    max-height: 75vh !important;
    border-radius: 18px !important;
  }
  #chat-toggle {
    bottom: 16px !important;
    right: 16px !important;
    width: 56px !important;
    height: 56px !important;
  }

  /* ===== TOASTS (Bottom on mobile) ===== */
  #toast-container {
    top: auto !important;
    bottom: 16px !important;
    left: 12px !important;
    right: 12px !important;
    align-items: stretch !important;
  }
  #toast-container > div {
    max-width: 100% !important;
    border-radius: 14px !important;
  }

  /* ===== CURSOR EFFECTS — Hide on touch ===== */
  .custom-cursor, .cursor-follower, #cursor-fx { display: none !important; }

  /* ===== MODALS ===== */
  .modal-content, .modal-card {
    width: calc(100% - 24px) !important;
    max-width: calc(100% - 24px) !important;
    margin: 12px auto !important;
    max-height: calc(100vh - 24px) !important;
    overflow-y: auto !important;
    border-radius: 18px !important;
  }

  /* ===== UTILITY OVERRIDES ===== */
  .py-12 { padding-top: 2rem !important; padding-bottom: 2rem !important; }
  .py-16 { padding-top: 2.5rem !important; padding-bottom: 2.5rem !important; }
  .py-20 { padding-top: 3rem !important; padding-bottom: 3rem !important; }
  .py-24 { padding-top: 3.5rem !important; padding-bottom: 3.5rem !important; }
  .px-8 { padding-left: 16px !important; padding-right: 16px !important; }
  .px-12 { padding-left: 20px !important; padding-right: 20px !important; }
  .gap-10, .gap-12 { gap: 20px !important; }
  .text-4xl { font-size: 1.75rem !important; line-height: 1.15 !important; }
  .text-5xl { font-size: 2rem !important; line-height: 1.1 !important; }
  .text-3xl { font-size: 1.5rem !important; }
  .text-2xl { font-size: 1.25rem !important; }
  .p-6 { padding: 16px !important; }
  .p-8 { padding: 20px !important; }
  .p-10, .p-12 { padding: 24px !important; }

  /* Sticky elements break on mobile */
  .sticky.top-0, .sticky.top-20 {
    position: relative !important;
    top: auto !important;
  }
  /* Keep navbar sticky */
  #main-navbar.sticky, nav.sticky {
    position: sticky !important;
    top: 0 !important;
  }
}

/* ===== SMALL PHONES (≤480px) ===== */
@media (max-width: 480px) {
  body { font-size: 14px; }

  h1 { font-size: 1.55rem !important; }
  h2 { font-size: 1.3rem !important; }
  h3 { font-size: 1.1rem !important; }

  .luxury-product-grid, .product-grid-regular {
    gap: 10px !important;
  }
  .luxury-product-card .h-\\[280px\\] { height: 160px !important; }
  .product-info h3 { font-size: 0.85rem !important; }

  /* Even smaller padding */
  .container, .max-w-7xl { padding-left: 12px !important; padding-right: 12px !important; }
  section { padding-left: 12px !important; padding-right: 12px !important; }
  .login-card { padding: 22px 18px !important; }

  /* Footer becomes 1 col on tiny screens */
  footer .grid { grid-template-columns: 1fr !important; gap: 20px !important; }
  footer .md\:col-span-1 { grid-column: span 1 !important; }

  /* Smaller buttons */
  .btn-premium, .btn-outline-premium, .luxury-btn { padding: 11px 18px !important; font-size: 0.85rem !important; }
}

/* ===== iOS Safari Specific Fixes ===== */
@supports (-webkit-touch-callout: none) {
  .min-h-screen { min-height: -webkit-fill-available; }
  /* Prevent rubber-band scroll affecting fixed elements */
  body { position: relative; }
  /* Better safe-area inset */
  .safe-bottom { padding-bottom: env(safe-area-inset-bottom); }
  .safe-top { padding-top: env(safe-area-inset-top); }
}

/* ===== TOUCH-SPECIFIC INTERACTIONS ===== */
@media (hover: none) and (pointer: coarse) {
  /* Disable hover-only effects */
  .group:hover .group-hover\:opacity-100 { opacity: 0; }
  .hover\:scale-105:hover { transform: scale(1) !important; }

  /* Active feedback */
  .luxury-product-card:active,
  .card-shine:active {
    transform: scale(0.98);
    transition: transform 0.1s ease;
  }
  button:active, .btn:active {
    transform: scale(0.97);
  }
  .nav-link:active { background: var(--gold-light); }
}

/* ===== LANDSCAPE ORIENTATION FIX ===== */
@media (max-width: 900px) and (orientation: landscape) {
  .luxury-hero {
    padding-top: 60px !important;
    min-height: auto !important;
  }
  .login-page { padding: 60px 16px 30px !important; }
}

/* ===== REDUCE MOTION FOR ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ===== FORGOT PASSWORD FLOW STYLES ===== */
.fp-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 40px 32px;
  max-width: 460px;
  margin: 0 auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.fp-step-indicator {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 24px;
}
.fp-step-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border-color);
  transition: all 0.3s;
}
.fp-step-dot.active {
  background: var(--gold);
  width: 28px;
  border-radius: 4px;
}
.fp-step-dot.complete {
  background: #22c55e;
}
.fp-icon-wrap {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-light), transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: var(--gold);
  border: 2px solid var(--gold);
}
.fp-otp-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  margin: 24px 0;
}
.fp-otp-input {
  width: 100%;
  aspect-ratio: 1;
  text-align: center;
  font-size: 24px;
  font-weight: 700;
  background: var(--input-bg, var(--bg-secondary));
  border: 2px solid var(--border-color);
  border-radius: 12px;
  color: var(--text-primary);
  transition: all 0.2s;
  -webkit-appearance: none;
}
.fp-otp-input:focus {
  outline: none;
  border-color: var(--gold);
  background: var(--bg-secondary);
  box-shadow: 0 0 0 3px var(--gold-light);
  transform: scale(1.05);
}
.fp-otp-input.filled {
  border-color: var(--gold);
  background: var(--gold-light);
}

@media (max-width: 480px) {
  .fp-card { padding: 32px 22px; border-radius: 18px; }
  .fp-otp-grid { gap: 6px; }
  .fp-otp-input { font-size: 20px; border-radius: 10px; }
}

/* ===== PASSWORD STRENGTH METER ===== */
.pw-strength {
  margin-top: 8px;
  padding: 8px 0;
}
.pw-strength-bar {
  height: 4px;
  background: var(--border-color);
  border-radius: 2px;
  overflow: hidden;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
}
.pw-strength-bar > span {
  background: var(--border-color);
  border-radius: 2px;
  transition: background 0.3s;
}
.pw-strength-bar.weak > span:nth-child(1) { background: #ef4444; }
.pw-strength-bar.fair > span:nth-child(-n+2) { background: #f59e0b; }
.pw-strength-bar.good > span:nth-child(-n+3) { background: #3b82f6; }
.pw-strength-bar.strong > span { background: #22c55e; }
.pw-strength-text {
  font-size: 12px;
  margin-top: 6px;
  color: var(--text-secondary);
}

/* ===== Shake animation for invalid OTP ===== */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-8px); }
  40%, 80% { transform: translateX(8px); }
}

/* Form input wrapper position fix for password toggle button */
.form-input-wrapper {
  position: relative;
}

/* ═══════════════════════════════════════════════════════════
   COMPREHENSIVE MOBILE RESPONSIVE OVERHAUL v5.0
   Fix ALL phone view issues - stacking, overflow, sizing
   ═══════════════════════════════════════════════════════════ */

/* ===== GLOBAL MOBILE FIXES ===== */
@media (max-width: 768px) {
  /* Prevent horizontal overflow */
  html, body {
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100vw !important;
  }
  
  /* Fix body pseudo-elements on mobile - reduce visual noise */
  body::before, body::after {
    display: none !important;
  }
  
  /* Custom cursor not needed on touch */
  .custom-cursor, .cursor-follower {
    display: none !important;
  }
  
  /* Global text sizing for mobile readability */
  h1 { font-size: clamp(1.75rem, 7vw, 2.5rem) !important; }
  h2 { font-size: clamp(1.4rem, 5vw, 2rem) !important; }
  h3 { font-size: clamp(1.1rem, 4vw, 1.5rem) !important; }
  p { font-size: 0.9375rem !important; line-height: 1.6 !important; }
  
  /* Fix all paddings and margins */
  section, .section-gold, .section-alt, .luxury-cta, .brand-statement {
    padding: 40px 16px !important;
  }
  
  /* Container max-width fix */
  .max-w-7xl, .max-w-6xl, .max-w-5xl, .max-w-4xl, .max-w-3xl {
    padding-left: 16px !important;
    padding-right: 16px !important;
    max-width: 100% !important;
  }
}

/* ===== NAVBAR MOBILE ===== */
@media (max-width: 768px) {
  #main-navbar {
    padding: 8px 12px !important;
  }
  
  #main-navbar .text-xl, #main-navbar .text-lg {
    font-size: 1rem !important;
  }
  
  /* Navbar buttons & icons */
  #main-navbar button, #main-navbar a {
    min-width: 36px;
    min-height: 36px;
  }
  
  /* Logo in navbar */
  #main-navbar img {
    width: 28px !important;
    height: 28px !important;
  }
  
  /* Cart count badge */
  .cart-count, #main-navbar .bg-primary-500 {
    font-size: 10px !important;
    min-width: 16px;
    height: 16px;
    line-height: 16px;
  }
  
  /* Mobile menu */
  #mobile-menu {
    padding: 16px !important;
    max-height: 80vh !important;
    overflow-y: auto !important;
  }
  
  #mobile-menu a {
    padding: 14px 16px !important;
    font-size: 1rem !important;
    border-radius: var(--radius-md);
  }
  
  /* Search bar mobile */
  #search-bar {
    padding: 12px 16px !important;
  }
  
  #search-bar input {
    font-size: 16px !important; /* Prevent iOS zoom */
    padding: 12px 16px !important;
  }
}

/* ===== HERO SECTION MOBILE ===== */
@media (max-width: 768px) {
  .luxury-hero {
    min-height: 80vh !important;
    padding: 80px 20px 40px !important;
    flex-direction: column !important;
    text-align: center !important;
  }
  
  .luxury-hero-content {
    max-width: 100% !important;
  }
  
  .luxury-hero h1 {
    font-size: clamp(1.75rem, 7vw, 2.5rem) !important;
    margin-bottom: 12px !important;
    line-height: 1.15 !important;
  }
  
  .luxury-hero p {
    font-size: 0.9375rem !important;
    margin-bottom: 24px !important;
    max-width: 100% !important;
  }
  
  .hero-overlay {
    background: linear-gradient(to bottom, rgba(10,10,15,0.4) 0%, rgba(10,10,15,0.85) 50%, rgba(10,10,15,0.95) 100%) !important;
  }
  
  /* Hero stats - 2x2 grid on mobile */
  .hero-stats {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
    margin-top: 20px !important;
  }
  
  .hero-stat {
    padding: 12px 8px !important;
    border-radius: 10px !important;
  }
  
  .hero-stat-number {
    font-size: 1.25rem !important;
  }
  
  .hero-stat-label {
    font-size: 0.6rem !important;
    letter-spacing: 0.5px !important;
  }
  
  /* Hero buttons */
  .luxury-hero .flex {
    flex-direction: column !important;
    gap: 10px !important;
    width: 100% !important;
  }
  
  .luxury-hero .btn-premium,
  .luxury-hero .btn-outline-premium,
  .luxury-hero .luxury-btn {
    width: 100% !important;
    justify-content: center !important;
    padding: 14px 20px !important;
  }
  
  /* Hero slider dots */
  .hero-slider-dots {
    bottom: 16px !important;
  }
  
  .hero-particles { display: none !important; }
}

/* ===== PRODUCT CARDS MOBILE ===== */
@media (max-width: 768px) {
  .luxury-product-grid, .product-grid-regular {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }
  
  .luxury-product-card, .card-shine {
    border-radius: 12px !important;
  }
  
  .luxury-product-card:hover, .card-shine:hover {
    transform: none !important; /* No hover effects on mobile */
  }
  
  .product-info {
    padding: 10px 12px 14px !important;
  }
  
  .product-info h3 {
    font-size: 0.85rem !important;
    line-height: 1.3 !important;
    margin-bottom: 4px !important;
  }
  
  .product-info p {
    font-size: 0.7rem !important;
    line-height: 1.4 !important;
  }
  
  /* Product image container */
  .luxury-product-card .relative,
  .luxury-product-card [class*="aspect-"],
  .card-shine .relative {
    height: 140px !important;
    min-height: 140px !important;
  }
  
  .luxury-product-card img, .card-shine img {
    height: 140px !important;
    object-fit: cover !important;
  }
  
  /* Price display */
  .product-info .text-primary-400,
  .product-info .text-lg,
  .product-info .font-bold {
    font-size: 0.85rem !important;
  }
  
  .product-info .text-sm, .product-info .text-xs {
    font-size: 0.7rem !important;
  }
  
  /* Buttons inside product cards */
  .product-info button, .product-info .btn-premium {
    padding: 8px 12px !important;
    font-size: 0.75rem !important;
    width: 100% !important;
    margin-top: 6px !important;
  }
}

/* Very small phones */
@media (max-width: 380px) {
  .luxury-product-grid, .product-grid-regular {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }
  
  .luxury-product-card .relative,
  .luxury-product-card [class*="aspect-"],
  .card-shine .relative {
    height: 200px !important;
  }
  
  .luxury-product-card img, .card-shine img {
    height: 200px !important;
  }
}

/* ===== PRODUCT DETAIL PAGE MOBILE ===== */
@media (max-width: 768px) {
  /* Product detail grid -> stack */
  .product-detail-grid, .grid.grid-cols-2 {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
  
  /* Product detail images */
  .product-gallery {
    max-height: 300px !important;
    border-radius: 12px !important;
  }
  
  /* Product detail info */
  .product-detail-info {
    padding: 0 4px !important;
  }
  
  /* Quantity selector */
  .quantity-selector, [class*="quantity"] {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
  }
}

/* ===== BRAND STATEMENT & SECTIONS MOBILE ===== */
@media (max-width: 768px) {
  .brand-statement {
    padding: 40px 16px !important;
  }
  
  .brand-statement h2 {
    font-size: 1.5rem !important;
    line-height: 1.2 !important;
  }
  
  .brand-statement p {
    font-size: 0.9rem !important;
  }
  
  /* Partner/Story grid - stack on mobile */
  .partner-grid {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }
  
  /* CTA section */
  .luxury-cta {
    padding: 48px 16px !important;
  }
  
  .luxury-cta h2 {
    font-size: 1.5rem !important;
    margin-bottom: 12px !important;
  }
  
  .luxury-cta p {
    font-size: 0.9rem !important;
    margin-bottom: 24px !important;
  }
  
  .luxury-cta-buttons {
    flex-direction: column !important;
    width: 100% !important;
    gap: 10px !important;
  }
  
  .luxury-cta-buttons .btn-premium,
  .luxury-cta-buttons .btn-outline-premium,
  .luxury-cta-buttons .luxury-btn {
    width: 100% !important;
    text-align: center !important;
    justify-content: center !important;
  }
}

/* ===== FEATURES / WHY CHOOSE US GRID MOBILE ===== */
@media (max-width: 768px) {
  .grid-cols-3, .grid-cols-4,
  [class*="grid-cols-3"], [class*="grid-cols-4"] {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }
  
  .md\:grid-cols-3, .md\:grid-cols-4 {
    grid-template-columns: 1fr !important;
  }
  
  /* Two-column grids on mobile */
  .grid-cols-2, [class*="grid-cols-2"] {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }
}

/* ===== FORMS & INPUTS MOBILE ===== */
@media (max-width: 768px) {
  input, textarea, select {
    font-size: 16px !important; /* Prevent iOS zoom */
    padding: 12px 14px !important;
    border-radius: 10px !important;
  }
  
  .btn-premium, .btn-outline-premium, .luxury-btn {
    padding: 12px 20px !important;
    font-size: 0.875rem !important;
    width: 100% !important;
    text-align: center !important;
    justify-content: center !important;
  }
  
  label {
    font-size: 0.8125rem !important;
    margin-bottom: 4px !important;
  }
}

/* ===== LOGIN/REGISTER PAGE MOBILE ===== */
@media (max-width: 768px) {
  .login-page, .center-section {
    padding: 20px 16px !important;
    min-height: auto !important;
  }
  
  .login-card {
    padding: 24px 16px !important;
    border-radius: 16px !important;
    margin: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
  }
  
  .login-title, .login-card h1, .login-card h2 {
    font-size: 1.5rem !important;
    margin-bottom: 8px !important;
  }
  
  .login-subtitle {
    font-size: 0.875rem !important;
    margin-bottom: 20px !important;
  }
  
  /* OTP input grid */
  .otp-input-grid, [class*="otp"] {
    gap: 8px !important;
  }
  
  .otp-input-grid input {
    width: 42px !important;
    height: 48px !important;
    font-size: 1.25rem !important;
  }
}

/* ===== CART & CHECKOUT MOBILE ===== */
@media (max-width: 768px) {
  /* Cart items */
  .cart-item, [class*="cart-item"] {
    flex-direction: column !important;
    gap: 12px !important;
    padding: 12px !important;
  }
  
  .cart-item img {
    width: 100% !important;
    max-height: 120px !important;
    object-fit: cover !important;
    border-radius: 8px !important;
  }
  
  /* Checkout form */
  .checkout-grid, .checkout-form {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
  
  /* Order summary */
  .order-summary {
    padding: 16px !important;
    border-radius: 12px !important;
  }
  
  /* Payment options */
  .payment-option {
    padding: 12px !important;
  }
}

/* ===== TABLE MOBILE ===== */
@media (max-width: 768px) {
  table {
    display: block !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    font-size: 0.8125rem !important;
  }
  
  th, td {
    padding: 8px 10px !important;
    white-space: nowrap !important;
  }
}

/* ===== FOOTER MOBILE ===== */
@media (max-width: 768px) {
  footer {
    padding: 32px 16px 20px !important;
  }
  
  footer .grid {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }
  
  footer h3, footer h4 {
    font-size: 1rem !important;
    margin-bottom: 12px !important;
  }
  
  footer p, footer a, footer li {
    font-size: 0.8125rem !important;
  }
  
  footer .flex {
    flex-direction: column !important;
    gap: 8px !important;
  }
}

/* ===== CHATBOT MOBILE ===== */
@media (max-width: 768px) {
  #chat-toggle {
    bottom: 16px !important;
    right: 16px !important;
    width: 52px !important;
    height: 52px !important;
  }
  
  #chat-window {
    position: fixed !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-height: 100vh !important;
    border-radius: 0 !important;
    z-index: 99999 !important;
  }
  
  #chat-window .chat-messages {
    height: calc(100vh - 140px) !important;
  }
}

/* ===== TOAST NOTIFICATIONS MOBILE ===== */
@media (max-width: 768px) {
  #toast-container {
    top: 8px !important;
    right: 8px !important;
    left: 8px !important;
    width: auto !important;
  }
  
  #toast-container > div {
    width: 100% !important;
    font-size: 0.8125rem !important;
    padding: 10px 14px !important;
  }
}

/* ===== MODAL / DIALOG MOBILE ===== */
@media (max-width: 768px) {
  .modal-overlay, [class*="fixed"][class*="inset-0"] {
    padding: 12px !important;
  }
  
  .modal-content, .modal-body {
    width: 100% !important;
    max-width: 100% !important;
    max-height: 90vh !important;
    overflow-y: auto !important;
    border-radius: 16px !important;
    padding: 20px 16px !important;
  }
}

/* ===== ORDER TRACKING PAGE MOBILE ===== */
@media (max-width: 768px) {
  .tracking-timeline {
    padding-left: 20px !important;
  }
  
  .tracking-step {
    padding: 12px !important;
    margin-bottom: 12px !important;
  }
}

/* ===== PROFILE PAGE MOBILE ===== */
@media (max-width: 768px) {
  .profile-header {
    flex-direction: column !important;
    text-align: center !important;
    gap: 12px !important;
  }
  
  .profile-stats {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
  }
  
  .profile-form .grid-cols-2 {
    grid-template-columns: 1fr !important;
  }
}

/* ===== ANIMATIONS - Reduce motion on mobile ===== */
@media (max-width: 768px) {
  .reveal, .fade-up, .stagger {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  
  * {
    scroll-behavior: smooth !important;
  }
}

/* ===== FLEX LAYOUTS MOBILE FIX ===== */
@media (max-width: 768px) {
  /* Fix flex containers that cause horizontal overflow */
  .flex-row, [class*="flex-row"] {
    flex-wrap: wrap !important;
  }
  
  /* Fix gap issues */
  .gap-6, .gap-8, .gap-10, .gap-12 {
    gap: 12px !important;
  }
  
  /* Fix padding on all containers */
  .px-8, .px-10, .px-12, .px-16, .px-20 {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
  
  .py-16, .py-20, .py-24 {
    padding-top: 32px !important;
    padding-bottom: 32px !important;
  }
  
  /* Fix text overflow */
  .truncate, .line-clamp-2, .line-clamp-3 {
    word-break: break-word !important;
  }
}

/* ===== SKELETON LOADING MOBILE ===== */
@media (max-width: 768px) {
  .skeleton {
    border-radius: 6px !important;
  }
}

/* ===== WISHLIST PAGE MOBILE ===== */
@media (max-width: 768px) {
  .wishlist-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }
}

/* ===== CONTACT PAGE MOBILE ===== */
@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }
  
  .contact-info {
    padding: 20px 16px !important;
  }
}

/* ===== ABOUT PAGE MOBILE ===== */
@media (max-width: 768px) {
  .about-grid, .team-grid, .stats-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
  
  .stat-card {
    padding: 16px !important;
  }
}

/* ===== FORGOT PASSWORD PAGE MOBILE ===== */
@media (max-width: 768px) {
  .forgot-password-card {
    padding: 24px 16px !important;
    margin: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
  }
}

