/* 
  Sweet Bites Arifwala - Premium CSS Design System
  Color Palette: Chocolate Brown, Luxury Gold, Elegant Rose Accent
*/

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400..900;1,400..900&family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
  /* Default variables fallback */
  --chocolate-deep: #FAF6EE;
  --chocolate-mid: #FFFFFF;
  --chocolate-light: #F3ECE2;
  --gold-primary: #C5A059;
  --gold-glow: rgba(197, 160, 89, 0.4);
  --cream-bg: #FFFDF9;
  --cream-card: #ffffff;
  --rose-accent: #B88D8B;
  --text-dark: #FFFFFF;
  --text-light: #361F14;
  --text-muted: #735645;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Poppins', sans-serif;
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-luxury: 0 15px 35px rgba(61, 34, 20, 0.08);
  --shadow-gold: 0 0 15px rgba(197, 160, 89, 0.15);
  
  --navbar-bg: rgba(250, 246, 238, 0.85);
  --navbar-scrolled-bg: rgba(250, 246, 238, 0.95);
  --profile-panel-bg: rgba(250, 246, 238, 0.78);
}

/* Ivory Cream Theme (Default Light) */
body, body.theme-ivory {
  --chocolate-deep: #FAF6EE;
  --chocolate-mid: #FFFFFF;
  --chocolate-light: #F3ECE2;
  --gold-primary: #C5A059;
  --cream-bg: #FFFDF9;
  --cream-card: #ffffff;
  --rose-accent: #B88D8B;
  --text-light: #361F14;
  --text-muted: #735645;
  --navbar-bg: rgba(250, 246, 238, 0.85);
  --navbar-scrolled-bg: rgba(250, 246, 238, 0.95);
  --profile-panel-bg: rgba(250, 246, 238, 0.78);
  --shadow-luxury: 0 15px 35px rgba(61, 34, 20, 0.08);
}

/* Dark Chocolate Theme (Default Dark) */
body.dark-mode, body.theme-chocolate {
  --chocolate-deep: #1E0F07;
  --chocolate-mid: #2C180E;
  --chocolate-light: #3D2316;
  --cream-bg: #26140B;
  --cream-card: #2C180E;
  --text-light: #FBF7F0;
  --text-muted: #CEB6A7;
  --navbar-bg: rgba(30, 15, 7, 0.85);
  --navbar-scrolled-bg: rgba(30, 15, 7, 0.95);
  --profile-panel-bg: rgba(30, 15, 7, 0.78);
  --shadow-luxury: 0 15px 40px rgba(0, 0, 0, 0.35);
}

/* Royal Rose Theme (Sweet Strawberry/Pink) */
body.theme-rose {
  --chocolate-deep: #FFF0F2;     /* Soft Pastel Pink */
  --chocolate-mid: #FFFFFF;      /* White Cards */
  --chocolate-light: #FFE0E5;    /* Light Pink Borders */
  --gold-primary: #D4AF37;       /* Luxury Gold Accents */
  --cream-bg: #FFF5F7;
  --cream-card: #ffffff;
  --rose-accent: #E88388;        /* Vivid Rose Pink Accents */
  --text-light: #4A1E22;         /* Deep Crimson Rose Text */
  --text-muted: #915A60;         /* Muted Dark Rose Text */
  --navbar-bg: rgba(255, 240, 242, 0.85);
  --navbar-scrolled-bg: rgba(255, 240, 242, 0.95);
  --profile-panel-bg: rgba(255, 240, 242, 0.78);
  --shadow-luxury: 0 15px 35px rgba(74, 30, 34, 0.08);
}

/* Mint Gold Theme (Pistachio/Mint Fresh) */
body.theme-mint {
  --chocolate-deep: #F0F7F4;     /* Soft Mint Background */
  --chocolate-mid: #FFFFFF;      /* White Cards */
  --chocolate-light: #DCEBE3;    /* Light Mint Borders */
  --gold-primary: #C5A059;       /* Gold Accent */
  --cream-bg: #F5FAF7;
  --cream-card: #ffffff;
  --rose-accent: #78A08F;        /* Minty Green Accent */
  --text-light: #1A3C30;         /* Deep Forest Green Text */
  --text-muted: #4B6E60;         /* Muted Green Text */
  --navbar-bg: rgba(240, 247, 244, 0.85);
  --navbar-scrolled-bg: rgba(240, 247, 244, 0.95);
  --profile-panel-bg: rgba(240, 247, 244, 0.78);
  --shadow-luxury: 0 15px 35px rgba(26, 60, 48, 0.08);
}

/* Midnight Lavender Theme (Royal Grape/Purple) */
body.theme-lavender {
  --chocolate-deep: #120E2E;     /* Deep Midnight Blue/Purple */
  --chocolate-mid: #1C1743;      /* Royal Purple Card */
  --chocolate-light: #2A235D;    /* Midnight Purple Input BG */
  --gold-primary: #dfb257;       /* Bright Cream Gold Accent */
  --cream-bg: #17133B;
  --cream-card: #1C1743;
  --rose-accent: #A18CD1;        /* Lavender Glow Accent */
  --text-light: #FFF8F0;         /* Soft Cream Text */
  --text-muted: #A39CC9;         /* Lavendery Muted Text */
  --navbar-bg: rgba(18, 14, 46, 0.85);
  --navbar-scrolled-bg: rgba(18, 14, 46, 0.95);
  --profile-panel-bg: rgba(18, 14, 46, 0.78);
  --shadow-luxury: 0 15px 40px rgba(0, 0, 0, 0.35);
}

/* Reset & Global */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

html, body {
  overflow-x: hidden !important;
  width: 100% !important;
  max-width: 100% !important;
  position: relative;
}

body {
  background-color: var(--chocolate-deep);
  color: var(--text-light);
  font-family: var(--font-sans);
  line-height: 1.6;
}

/* Particles Canvas Background */
#particle-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* Typography Utility */
h1, h2, h3, h4, .brand-font {
  font-family: var(--font-serif);
}

.gold-text {
  color: var(--gold-primary);
  background: linear-gradient(135deg, #ffd700 0%, #dfb257 50%, #b8860b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--chocolate-deep);
}
::-webkit-scrollbar-thumb {
  background: var(--gold-primary);
  border-radius: 4px;
}

/* App Wrapper for relative layering above particles */
.app-content {
  position: relative;
  z-index: 1;
}

/* Navbar Style */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 2500;
  background: var(--navbar-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

header.scrolled {
  padding: 4px 0;
  background: rgba(30, 15, 7, 0.95);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
  border-bottom: 1.5px solid var(--gold-primary);
}

.navbar {
  max-width: 1280px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-img {
  height: 75px;
  width: auto;
  object-fit: contain;
  transition: all 0.35s ease;
}

header.scrolled .logo-img {
  height: 52px;
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-light);
}

.logo-text span {
  font-size: 0.85rem;
  display: block;
  font-family: var(--font-sans);
  font-weight: 300;
  color: var(--rose-accent);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  flex-wrap: nowrap !important;
  list-style: none;
  gap: 4px;
  align-items: center;
  background: rgba(255, 248, 240, 0.08) !important;
  backdrop-filter: blur(20px) saturate(120%);
  -webkit-backdrop-filter: blur(20px) saturate(120%);
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  outline: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 
    inset 0 1px 1px rgba(255, 255, 255, 0.2),
    inset -3px -3px 6px rgba(0, 0, 0, 0.35),
    inset 0 0 9px rgba(212, 175, 55, 0.15),
    inset 2px 4px 8px rgba(255, 255, 255, 0.2),
    inset -6px -12px 18px rgba(0, 0, 0, 0.4),
    0 8px 25px rgba(0, 0, 0, 0.45),
    0 2px 4px rgba(0, 0, 0, 0.6);
  transition: all 0.35s ease;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-light);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  padding: 8px 18px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap !important;
}

.nav-links a::after {
  display: none !important;
}

/* 3D Neumorphic Glass Indicator Pill for Active & Hover State */
.nav-links a.active,
.nav-links a:hover {
  background: linear-gradient(135deg, #FFF8F0 0%, #EAD2AC 100%) !important;
  color: #120703 !important;
  font-weight: 800 !important;
  border: 1px solid rgba(255, 255, 255, 0.9) !important;
  outline: 1.5px solid rgba(255, 255, 255, 0.2);
  box-shadow: 
    inset 0 0 0 rgba(0, 0, 0, 0.1),
    inset -3px -3px 6px rgba(0, 0, 0, 0.25),
    inset 0 0 9px rgba(255, 255, 255, 0.3),
    inset 2px 4px 8px rgba(255, 255, 255, 1),
    inset -6px -12px 18px rgba(0, 0, 0, 0.2),
    0 6px 15px rgba(212, 175, 55, 0.5),
    0 2px 4px rgba(0, 0, 0, 0.6) !important;
  transform: translateY(-2px) scale(1.03);
}

.btn-order-nav {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  white-space: nowrap !important;
  word-break: keep-all !important;
  background: rgba(30, 15, 7, 0.75) !important;
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1.8px solid var(--gold-primary) !important;
  color: #FFD700 !important;
  font-weight: 700 !important;
  font-size: 0.85rem !important;
  letter-spacing: 0.5px !important;
  padding: 8px 22px !important;
  border-radius: 50px !important;
  text-decoration: none !important;
  cursor: pointer !important;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.4), inset 0 1px 1px rgba(255, 248, 240, 0.25) !important;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

.btn-order-nav::after {
  display: none !important;
}

.btn-order-nav:hover {
  background: linear-gradient(135deg, #FFD700 0%, #D4AF37 100%) !important;
  color: #1E0F07 !important;
  border-color: #FFD700 !important;
  transform: translateY(-2px) scale(1.03) !important;
  box-shadow: 0 8px 25px rgba(212, 175, 55, 0.5) !important;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
}

.menu-toggle span {
  width: 28px;
  height: 2px;
  background: var(--text-light);
  transition: var(--transition-smooth);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 180px 20px 60px 20px;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
  width: 100%;
}

.hero-text {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.hero-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
  align-items: center;
  justify-content: flex-start;
}

.badge {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 50px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
  background: rgba(30, 15, 7, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 
    inset 0 1px 1px rgba(255, 255, 255, 0.15),
    0 4px 15px rgba(0, 0, 0, 0.35);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: default;
}

.badge i {
  font-size: 0.9rem;
}

.badge:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 
    inset 0 1px 2px rgba(255, 255, 255, 0.25),
    0 8px 20px rgba(0, 0, 0, 0.5);
}

/* Rose Accent Badge */
.badge-rose {
  border: 1.5px solid var(--rose-accent) !important;
  color: #fff !important;
  text-shadow: 0 0 8px rgba(184, 141, 139, 0.6);
}
.badge-rose i {
  color: var(--rose-accent);
  filter: drop-shadow(0 0 5px rgba(184, 141, 139, 0.8));
}
.badge-rose:hover {
  background: rgba(184, 141, 139, 0.15) !important;
  box-shadow: 0 0 15px rgba(184, 141, 139, 0.4), inset 0 1px 1px rgba(255,255,255,0.2) !important;
}

/* Gold Accent Badge */
.badge-gold {
  border: 1.5px solid var(--gold-primary) !important;
  color: #FFD700 !important;
  text-shadow: 0 0 8px rgba(212, 175, 55, 0.6);
}
.badge-gold i {
  color: var(--gold-primary);
  filter: drop-shadow(0 0 5px rgba(212, 175, 55, 0.8));
}
.badge-gold:hover {
  background: rgba(212, 175, 55, 0.15) !important;
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.5), inset 0 1px 1px rgba(255,255,255,0.2) !important;
}

/* Cream/White Accent Badge */
.badge-cream {
  border: 1.5px solid rgba(255, 248, 240, 0.35) !important;
  color: #FFF8F0 !important;
  text-shadow: 0 0 8px rgba(255, 248, 240, 0.4);
}
.badge-cream i {
  color: #FFF8F0;
  filter: drop-shadow(0 0 5px rgba(255, 248, 240, 0.6));
}
.badge-cream:hover {
  background: rgba(255, 248, 240, 0.1) !important;
  box-shadow: 0 0 15px rgba(255, 248, 240, 0.3), inset 0 1px 1px rgba(255,255,255,0.2) !important;
}

.hero-text h2 {
  font-size: 4rem;
  line-height: 1.1;
  font-weight: 800;
}

.hero-text p {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 500px;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  margin-top: 10px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold-primary) 0%, #b49142 100%);
  color: var(--text-light);
  font-weight: 600;
  text-decoration: none;
  padding: 15px 35px;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  transition: var(--transition-smooth);
  box-shadow: 0 8px 25px rgba(223, 178, 87, 0.25);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(223, 178, 87, 0.4);
}

/* ==========================================================================
   FLOATING GLASSMORPHIC PILL BUTTON (STARBUCKS & FOODPANDA STYLE)
   ========================================================================== */
@keyframes floatPill {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

@keyframes pillShimmer {
  0% {
    left: -100%;
  }
  100% {
    left: 200%;
  }
}

.btn-glass-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: rgba(30, 15, 7, 0.75) !important;
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1.8px solid var(--gold-primary) !important;
  color: #FFD700 !important;
  font-weight: 700 !important;
  font-size: 0.92rem !important;
  letter-spacing: 0.6px !important;
  padding: 14px 32px !important;
  border-radius: 50px !important;
  text-decoration: none !important;
  cursor: pointer !important;
  overflow: hidden !important;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.45), inset 0 1px 1px rgba(255, 248, 240, 0.25) !important;
  transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
  animation: floatPill 3.5s ease-in-out infinite;
}

.btn-glass-pill::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.4), transparent);
  transform: skewX(-25deg);
  animation: pillShimmer 3s ease-in-out infinite;
}

.btn-glass-pill:hover {
  background: linear-gradient(135deg, #FFD700 0%, #D4AF37 100%) !important;
  color: #1E0F07 !important;
  border-color: #FFD700 !important;
  transform: translateY(-4px) scale(1.03) !important;
  box-shadow: 0 14px 40px rgba(212, 175, 55, 0.55), inset 0 1px 1px rgba(255, 255, 255, 0.6) !important;
}

.btn-glass-pill:active {
  transform: translateY(1px) scale(0.98) !important;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3) !important;
}

.btn-secondary {
  background: transparent;
  color: var(--text-light);
  font-weight: 600;
  text-decoration: none;
  padding: 15px 35px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
  border: 1px solid rgba(54, 31, 20, 0.2);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-secondary:hover {
  border-color: var(--gold-primary);
  color: var(--gold-primary);
  background: rgba(223, 178, 87, 0.05);
}

.hero-slider-container {
  width: 100%;
  height: 500px;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-luxury);
  border: 1px solid rgba(197, 160, 89, 0.2);
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-slide.active {
  opacity: 1;
  z-index: 1;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slide-caption {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: rgba(54, 31, 20, 0.85);
  backdrop-filter: blur(5px);
  color: var(--gold-primary);
  padding: 8px 22px;
  border-radius: 30px;
  font-family: var(--font-serif);
  font-size: 1.05rem;
  border: 1px solid rgba(197, 160, 89, 0.3);
  z-index: 2;
}

.slider-nav {
  position: absolute;
  bottom: 20px;
  right: 20px;
  display: flex;
  gap: 10px;
  z-index: 10;
}

.slider-nav-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  border: 1px solid rgba(54, 31, 20, 0.3);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.slider-nav-dot.active {
  background: var(--gold-primary);
  transform: scale(1.25);
}

/* General Section Layout */
section {
  padding: 100px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.section-header h2 {
  font-size: 2.8rem;
  font-weight: 700;
}

.section-header p {
  color: var(--text-muted);
  max-width: 600px;
}

.divider {
  width: 60px;
  height: 2px;
  background: var(--gold-primary);
}

/* About Section */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-img-container {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-luxury);
  border: 1px solid rgba(223, 178, 87, 0.2);
}

.about-img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.about-img-container:hover .about-img {
  transform: scale(1.05);
}

.about-img-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 30px;
  background: linear-gradient(transparent, rgba(21, 11, 5, 0.95));
}

.about-img-overlay h3 {
  font-size: 1.8rem;
  color: var(--gold-primary);
  margin-bottom: 5px;
}

.about-text {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.about-text h3 {
  font-size: 2.2rem;
  line-height: 1.3;
}

.about-text p {
  color: var(--text-muted);
}

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 20px;
}

.stat-item {
  background: var(--chocolate-mid);
  padding: 20px;
  border-radius: 8px;
  border: 1px solid rgba(223, 178, 87, 0.1);
  text-align: center;
}

.stat-num {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  color: var(--gold-primary);
  font-weight: 700;
  margin-bottom: 5px;
}

.stat-lbl {
  font-size: 0.85rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Category Filter Bar */
.category-bar {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.category-btn {
  background: transparent;
  border: 1px solid rgba(223, 178, 87, 0.2);
  color: var(--text-light);
  padding: 10px 25px;
  border-radius: 30px;
  cursor: pointer;
  font-weight: 500;
  transition: var(--transition-smooth);
}

.category-btn:hover, .category-btn.active {
  background: var(--gold-primary);
  color: var(--chocolate-deep);
  border-color: var(--gold-primary);
  box-shadow: 0 4px 15px rgba(223, 178, 87, 0.25);
}

/* Products Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px;
}

/* 3D Flip Card Container */
.product-card-3d {
  background: transparent;
  perspective: 1000px;
  height: 480px;
}

.product-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transform-style: preserve-3d;
}

.product-card-3d:hover .product-card-inner {
  transform: rotateY(180deg);
}

/* Card Front & Back Styles */
.product-card-front, .product-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(223, 178, 87, 0.15);
  box-shadow: var(--shadow-luxury);
}

.product-card-front {
  background: var(--chocolate-mid);
  display: flex;
  flex-direction: column;
}

.product-img-wrapper {
  height: 250px;
  overflow: hidden;
  position: relative;
}

.product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.product-card-3d:hover .product-img {
  transform: scale(1.1);
}

.product-category-tag {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(21, 11, 5, 0.85);
  border: 1px solid var(--gold-primary);
  color: var(--gold-primary);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  text-transform: uppercase;
}

.product-info-front {
  padding: 25px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  justify-content: space-between;
}

.product-info-front h3 {
  font-size: 1.5rem;
  color: var(--text-light);
  margin-bottom: 10px;
}

.product-price {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--gold-primary);
  font-weight: 700;
}

.product-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-style: italic;
  margin-top: 15px;
}

/* Card Back Design */
.product-card-back {
  background: radial-gradient(circle at center, var(--chocolate-mid) 0%, var(--chocolate-deep) 100%);
  transform: rotateY(180deg);
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}

.product-card-back h3 {
  font-size: 1.8rem;
  color: var(--gold-primary);
  border-bottom: 1px solid rgba(223, 178, 87, 0.2);
  padding-bottom: 10px;
  width: 100%;
}

.product-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 20px 0;
  text-align: center;
}

.product-details-list {
  list-style: none;
  width: 100%;
  margin-bottom: 25px;
  text-align: left;
}

.product-details-list li {
  padding: 6px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.05);
  font-size: 0.85rem;
  display: flex;
  justify-content: space-between;
}

.product-details-list li span {
  color: var(--text-muted);
}

.btn-card-order {
  width: 100%;
  background: var(--gold-primary);
  color: var(--text-light);
  border: none;
  padding: 12px 0;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-card-order:hover {
  background: #ffdb85;
  box-shadow: 0 4px 15px rgba(223, 178, 87, 0.4);
}

/* Photo Gallery Filters */
.gallery-filters {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 30px;
  flex-wrap: wrap;
  padding: 0 15px;
}

.gallery-filter-btn {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-light);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 8px 22px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.gallery-filter-btn:hover {
  background: rgba(197, 160, 89, 0.15);
  border-color: rgba(197, 160, 89, 0.5);
  color: var(--gold-primary);
  transform: translateY(-2px);
}

.gallery-filter-btn.active {
  background: var(--gold-primary);
  color: var(--chocolate-deep);
  border-color: var(--gold-primary);
  font-weight: 800;
  box-shadow: 0 4px 15px rgba(197, 160, 89, 0.35);
  transform: translateY(0);
}

/* Photo Gallery Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.gallery-item {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  height: 280px;
  border: 1px solid rgba(223, 178, 87, 0.1);
  box-shadow: var(--shadow-luxury);
  cursor: pointer;
  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.gallery-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(21, 11, 5, 0.6);
  opacity: 0;
  z-index: 2;
  transition: var(--transition-smooth);
}

.gallery-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -40%);
  z-index: 3;
  opacity: 0;
  text-align: center;
  transition: var(--transition-smooth);
  width: 90%;
}

.gallery-overlay h4 {
  font-size: 1.4rem;
  color: var(--gold-primary);
  margin-bottom: 5px;
}

.gallery-overlay p {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-item:hover::before {
  opacity: 1;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
  transform: translate(-50%, -50%);
}

/* Lightbox Modal */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 5, 3, 0.95);
  backdrop-filter: blur(8px);
  z-index: 99999 !important;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-smooth);
}

.lightbox.active {
  opacity: 1;
  pointer-events: all;
}

.lightbox-content {
  max-width: 90%;
  max-height: 80vh;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(223, 178, 87, 0.3);
  box-shadow: var(--shadow-luxury);
}

.lightbox-content img {
  width: 100%;
  height: auto;
  max-height: 80vh;
  object-fit: contain;
  display: block;
}

.lightbox-caption {
  text-align: center;
  color: var(--text-light);
  margin-top: 15px;
  font-family: var(--font-serif);
  font-size: 1.3rem;
}

.lightbox-close {
  position: absolute;
  top: 30px;
  right: 40px;
  color: #fff;
  font-size: 3rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.lightbox-close:hover {
  color: var(--gold-primary);
}

/* Custom Order Forms */
.order-section {
  background: radial-gradient(circle at center, var(--chocolate-mid) 0%, var(--chocolate-deep) 100%);
  border-top: 1px solid rgba(223, 178, 87, 0.15);
  border-bottom: 1px solid rgba(223, 178, 87, 0.15);
}

.order-container {
  max-width: 800px;
  margin: 0 auto;
  background: var(--chocolate-mid);
  border: 1px solid rgba(197, 160, 89, 0.2);
  border-radius: 12px;
  padding: 40px;
  box-shadow: var(--shadow-luxury);
}

.order-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
  margin-bottom: 30px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group.full-width {
  grid-column: span 2;
}

.form-group label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gold-primary);
  font-weight: 500;
}

.form-group input, .form-group select, .form-group textarea {
  background: var(--cream-bg);
  border: 1px solid rgba(197, 160, 89, 0.2);
  border-radius: 4px;
  padding: 12px 15px;
  color: var(--text-light);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition-smooth);
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--gold-primary);
  box-shadow: 0 0 10px rgba(223, 178, 87, 0.25);
}

.form-group textarea {
  resize: vertical;
  height: 120px;
}

.btn-form-submit {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

/* Testimonials Carousel */
.testimonials-slider {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  height: 280px;
}

.testimonial-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.testimonial-slide.active {
  opacity: 1;
  pointer-events: all;
}

.quote-icon {
  font-size: 3rem;
  color: var(--gold-primary);
  opacity: 0.3;
  line-height: 1;
}

.testimonial-text {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  line-height: 1.5;
  margin: 20px 0;
  font-style: italic;
}

.testimonial-author {
  font-weight: 600;
  color: var(--gold-primary);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.testimonial-author span {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-weight: 400;
  margin-top: 5px;
}

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--chocolate-light);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.slider-dot.active {
  background: var(--gold-primary);
}

/* Footer Section */
footer {
  background: var(--cream-bg);
  padding: 80px 20px 30px 20px;
  border-top: 1px solid rgba(197, 160, 89, 0.15);
}

.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 50px;
  margin-bottom: 60px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-brand p {
  color: var(--text-muted);
  max-width: 320px;
}

.footer-links-col h4 {
  font-size: 1.3rem;
  color: var(--gold-primary);
  margin-bottom: 25px;
}

.footer-links-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links-col a {
  text-decoration: none;
  color: var(--text-muted);
  transition: var(--transition-smooth);
}

.footer-links-col a:hover {
  color: var(--gold-primary);
  padding-left: 5px;
}

.footer-contact-info {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.footer-contact-info p {
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-contact-info p i {
  color: var(--gold-primary);
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  border-top: 1px solid rgba(197, 160, 89, 0.15);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-bottom a {
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition-smooth);
}

.footer-bottom a:hover {
  color: var(--gold-primary);
}

/* ------------------- ADMIN DASHBOARD ------------------- */
.admin-body {
  background-color: #120703;
  color: var(--text-light);
  min-height: 100vh;
  margin: 0;
  padding: 0;
}

.admin-header {
  background: linear-gradient(135deg, #1E0F07 0%, #2C180E 100%);
  border-bottom: 2px solid rgba(197, 160, 89, 0.3);
  color: var(--text-light);
  padding: 15px 30px;
}

.admin-navbar {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.admin-nav-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.admin-container {
  max-width: 1400px;
  margin: 30px auto;
  padding: 0 20px;
}

.admin-login-wrapper {
  max-width: 420px;
  margin: 60px auto;
  background: linear-gradient(135deg, #1E0F07, #2C180E);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  border: 2px solid var(--gold-primary);
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.admin-login-title {
  text-align: center;
  color: var(--text-light);
}

.admin-login-form input,
.admin-form-group input,
.admin-form-group select,
.admin-form-group textarea {
  width: 100%;
  padding: 10px 14px;
  background: var(--chocolate-light);
  border: 1px solid rgba(197, 160, 89, 0.3);
  color: var(--text-light);
  border-radius: 8px;
  margin-bottom: 12px;
  outline: none;
  font-size: 0.9rem;
}

.admin-form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--gold-primary);
  margin-bottom: 6px;
}

.admin-login-form input:focus,
.admin-form-group input:focus,
.admin-form-group select:focus,
.admin-form-group textarea:focus {
  border-color: var(--gold-primary);
  box-shadow: 0 0 8px rgba(197, 160, 89, 0.3);
}

.admin-dashboard-view {
  display: none;
}

.admin-dashboard-view.active {
  display: block;
}

.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 35px;
}

.admin-stat-card {
  background: linear-gradient(135deg, #1E0F07, #2C180E);
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.3);
  border: 1px solid rgba(197, 160, 89, 0.25);
  padding: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.admin-stat-info h5 {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 5px;
  font-weight: 700;
}

.admin-stat-info p {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--gold-primary);
  font-family: var(--font-serif);
}

.admin-stat-icon {
  font-size: 2.2rem;
  color: var(--gold-primary);
}

/* Management Table Section */
.admin-table-section {
  background: linear-gradient(135deg, #1E0F07, #2C180E);
  border-radius: 12px;
  box-shadow: 0 5px 25px rgba(0,0,0,0.4);
  border: 1px solid rgba(197, 160, 89, 0.25);
  padding: 25px;
  margin-bottom: 30px;
}

.admin-table-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 15px;
  border-bottom: 1px dashed rgba(197,160,89,0.2);
  padding-bottom: 15px;
}

.admin-table-header h3 {
  font-size: 1.5rem;
  color: var(--text-light);
  font-family: var(--font-serif);
}

.admin-table-wrapper {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.admin-table th {
  background: var(--chocolate-light);
  border-bottom: 2px solid rgba(197, 160, 89, 0.3);
  color: var(--gold-primary);
  font-weight: 700;
  padding: 14px;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.admin-table td {
  padding: 14px;
  border-bottom: 1px solid rgba(197, 160, 89, 0.12);
  color: var(--text-light);
  font-size: 0.9rem;
}

.admin-table tr:hover {
  background: rgba(197, 160, 89, 0.08);
}

.admin-thumbnail {
  width: 55px;
  height: 55px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid var(--gold-primary);
}

.admin-action-btns {
  display: flex;
  gap: 8px;
}

.btn-edit, .btn-delete {
  padding: 6px 12px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 700;
  transition: var(--transition-smooth);
}

.btn-edit {
  background: linear-gradient(135deg, var(--gold-primary), #d4af37);
  color: var(--text-light);
}

.btn-edit:hover {
  background: #ffd678;
  color: #000;
}

.btn-delete {
  background: var(--rose-accent);
  color: #fff;
}

.btn-delete:hover {
  background: #f09595;
}

.btn-add {
  background: linear-gradient(135deg, var(--gold-primary), #d4af37);
  color: var(--text-light);
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.btn-add:hover {
  filter: brightness(1.1);
}

/* Modals for dashboard additions */
.admin-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  z-index: 2000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-smooth);
}

.admin-modal.active {
  opacity: 1;
  pointer-events: all;
}

.admin-modal-content {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.15);
  border: 1px solid rgba(223, 178, 87, 0.2);
  width: 90%;
  max-width: 600px;
  padding: 35px;
  max-height: 90vh;
  overflow-y: auto;
}

.admin-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  border-bottom: 1px solid #eae2dc;
  padding-bottom: 15px;
}

.admin-modal-header h4 {
  font-size: 1.5rem;
  color: var(--chocolate-deep);
}

.admin-modal-close {
  font-size: 1.8rem;
  cursor: pointer;
  color: #8c7365;
  transition: var(--transition-smooth);
}

.admin-modal-close:hover {
  color: var(--text-dark);
}

.admin-form-group {
  margin-bottom: 20px;
}

.admin-form-group label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #5c4335;
  text-transform: uppercase;
}

.admin-form-group input, .admin-form-group select, .admin-form-group textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d3c4bc;
  border-radius: 4px;
  outline: none;
  font-family: var(--font-sans);
  font-size: 0.95rem;
}

.admin-form-group input:focus, .admin-form-group select:focus, .admin-form-group textarea:focus {
  border-color: var(--chocolate-deep);
}

.image-preview-box {
  width: 100%;
  height: 150px;
  border: 2px dashed #d3c4bc;
  border-radius: 4px;
  margin-top: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  color: #8c7365;
  font-size: 0.85rem;
}

.image-preview-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admin-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 15px;
  margin-top: 30px;
  border-top: 1px solid #eae2dc;
  padding-top: 20px;
}

.btn-cancel {
  background: #eae2dc;
  color: var(--chocolate-deep);
  border: none;
  padding: 10px 20px;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-cancel:hover {
  background: #dcd4cc;
}

/* Responsive Media Queries */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 20px;
  }
  .hero-badges {
    justify-content: center !important;
  }
  .hero-text h2 {
    font-size: 3rem;
  }
  .hero-text p {
    margin: 0 auto;
  }
  .hero-buttons {
    justify-content: center;
  }
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .about-img {
    height: 350px;
  }
  .admin-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  /* Navbar size optimizations for mobile */
  .logo-img {
    height: 40px !important;
  }
  header.scrolled .logo-img {
    height: 36px !important;
  }
  .logo-text {
    font-size: 1.15rem !important;
  }
  .logo-text span {
    display: none !important;
  }
  .navbar {
    padding: 8px 12px !important;
  }

  .hero {
    padding: 110px 16px 40px 16px !important;
  }

  /* Compact Customer Avatar Badge on Mobile Header */
  #nav-user-badge {
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
  }
  #nav-user-name,
  #nav-user-badge button {
    display: none !important;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--chocolate-deep) !important;
    border: none !important;
    border-bottom: 2px solid var(--gold-primary) !important;
    outline: none !important;
    border-radius: 0 0 16px 16px !important;
    flex-direction: column;
    padding: 24px 16px !important;
    gap: 12px !important;
    z-index: 99999 !important; /* Render dropdown on top of all page elements */
    box-shadow: 0 12px 30px rgba(0,0,0,0.65) !important;
  }
  .nav-links a {
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 10px 20px !important;
    font-size: 0.9rem !important;
  }
  .nav-links.active {
    display: flex;
  }
  .menu-toggle {
    display: flex;
  }
  .order-container {
    padding: 20px 14px !important;
    border-radius: 8px !important;
  }
  .order-form-grid {
    grid-template-columns: 1fr !important;
    gap: 15px !important;
  }
  .order-form-grid .form-group,
  .order-form-grid div[style*="grid-column: span 2"],
  #form-points-redemption {
    grid-column: span 1 !important;
  }
  #live-price-estimator-box {
    flex-direction: column !important;
    text-align: center !important;
    gap: 12px !important;
    padding: 14px !important;
  }
  #live-price-estimator-box div {
    padding-right: 0 !important;
    text-align: center !important;
  }
  #live-estimated-total {
    text-align: center !important;
  }
  .admin-stats-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* ------------------- QUICK ORDER CALCULATOR MODAL ------------------- */
.order-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 5, 3, 0.88);
  z-index: 99999 !important;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow-y: auto;
  padding: 20px 0;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-smooth);
}

.order-modal.active {
  opacity: 1;
  pointer-events: all;
}

.order-modal-content {
  background: var(--chocolate-mid);
  border: 1px solid rgba(223, 178, 87, 0.3);
  border-radius: 12px;
  width: 95%;
  max-width: 450px;
  padding: 30px;
  box-shadow: var(--shadow-luxury);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.order-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(223, 178, 87, 0.15);
  padding-bottom: 15px;
}

.order-modal-header h3 {
  color: var(--gold-primary);
  font-size: 1.5rem;
  font-family: var(--font-serif);
}

.order-modal-close {
  color: var(--text-light);
  font-size: 1.8rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.order-modal-close:hover {
  color: var(--gold-primary);
}

.order-modal-body {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.order-modal-total {
  font-size: 1.3rem;
  color: var(--gold-primary);
  font-weight: 700;
  background: rgba(223, 178, 87, 0.08);
  padding: 12px;
  border-radius: 6px;
  border: 1px dashed rgba(223, 178, 87, 0.3);
  text-align: center;
  margin: 10px 0;
}

/* Customer Profile Sidebar & Overlay Styling */
#customer-profile-panel {
  position: fixed;
  top: 0;
  right: -480px;
  width: 420px;
  max-width: 90vw;
  height: 100vh;
  background: var(--chocolate-deep); /* Force solid background based on theme */
  border-left: 3px solid var(--gold-primary);
  z-index: 3000;
  box-shadow: -10px 0 45px rgba(0,0,0,0.5);
  transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

#profile-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.65);
  z-index: 2999;
}

/* ==========================================================================
   COOL ANIMATIONS FOR SOCIAL MEDIA ICONS (NAVBAR & FOOTER)
   ========================================================================== */

/* Floating Idle Animation */
@keyframes float-social {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

.nav-socials a, .footer-socials a {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 38px !important;
  height: 38px !important;
  border-radius: 50% !important;
  background: var(--chocolate-mid) !important;
  color: var(--gold-primary) !important;
  border: 1.5px solid rgba(212, 175, 55, 0.5) !important;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
  position: relative !important;
  text-decoration: none !important;
  font-size: 1.15rem !important;
  animation: float-social 3.5s ease-in-out infinite !important;
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.4), 0 4px 10px rgba(0,0,0,0.3) !important;
}

.footer-socials a {
  width: 44px !important;
  height: 44px !important;
  font-size: 1.3rem !important;
}

/* Stagger floating animations for all 7 icons */
.nav-socials a:nth-child(1), .footer-socials a:nth-child(1) { animation-delay: 0s !important; }
.nav-socials a:nth-child(2), .footer-socials a:nth-child(2) { animation-delay: 0.3s !important; }
.nav-socials a:nth-child(3), .footer-socials a:nth-child(3) { animation-delay: 0.6s !important; }
.nav-socials a:nth-child(4), .footer-socials a:nth-child(4) { animation-delay: 0.9s !important; }
.nav-socials a:nth-child(5), .footer-socials a:nth-child(5) { animation-delay: 1.2s !important; }
.nav-socials a:nth-child(6), .footer-socials a:nth-child(6) { animation-delay: 1.5s !important; }
.nav-socials a:nth-child(7), .footer-socials a:nth-child(7) { animation-delay: 1.8s !important; }

/* 3D Lift & Brand Glow on Hover */
.nav-socials a:hover, .footer-socials a:hover {
  transform: translateY(-8px) scale(1.22) rotate(6deg) !important;
  border-color: transparent !important;
}

/* 1. Instagram Brand Colors & Glow */
#nav-link-instagram:hover, #footer-link-instagram:hover {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 0 25px rgba(225, 48, 108, 0.85), 0 8px 20px rgba(225, 48, 108, 0.5) !important;
}

/* 2. Facebook Page Brand Colors & Glow */
#nav-link-facebook:hover, #footer-link-facebook:hover {
  background: #1877f2 !important;
  color: #ffffff !important;
  box-shadow: 0 0 25px rgba(24, 119, 242, 0.85), 0 8px 20px rgba(24, 119, 242, 0.5) !important;
}

/* 3. Facebook Profile Brand Colors & Glow */
#nav-link-facebook-profile:hover, #footer-link-facebook-profile:hover {
  background: linear-gradient(135deg, #1877f2 0%, #3b5998 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 0 25px rgba(59, 89, 152, 0.85), 0 8px 20px rgba(59, 89, 152, 0.5) !important;
}

/* 4. TikTok Brand Colors & Glow */
#nav-link-tiktok:hover, #footer-link-tiktok:hover {
  background: #000000 !important;
  color: #25f4ee !important;
  box-shadow: 0 0 25px rgba(37, 244, 238, 0.85), 0 0 18px rgba(254, 44, 85, 0.75) !important;
}

/* 5. WhatsApp Brand Colors & Glow */
#nav-link-whatsapp:hover, #footer-link-whatsapp:hover {
  background: #25d366 !important;
  color: #ffffff !important;
  box-shadow: 0 0 25px rgba(37, 211, 102, 0.85), 0 8px 20px rgba(37, 211, 102, 0.5) !important;
}

/* 6. YouTube Brand Colors & Glow */
#nav-link-youtube:hover, #footer-link-youtube:hover {
  background: #FF0000 !important;
  color: #ffffff !important;
  box-shadow: 0 0 25px rgba(255, 0, 0, 0.85), 0 8px 20px rgba(255, 0, 0, 0.5) !important;
}

/* 7. Snapchat Brand Colors & Glow */
#nav-link-snapchat:hover, #footer-link-snapchat:hover {
  background: #FFFC00 !important;
  color: #000000 !important;
  box-shadow: 0 0 25px rgba(255, 252, 0, 0.85), 0 8px 20px rgba(255, 252, 0, 0.5) !important;
}

/* Hide socials in navigation capsule on screens below 1550px to prevent horizontal overflow */
@media (max-width: 1550px) {
  .nav-socials {
    display: none !important;
  }
}

/* Prevent Header Navigation wrapping on laptop/tablet sizes (768px to 1250px) */
@media (min-width: 768px) and (max-width: 1250px) {
  .nav-links {
    gap: 3px !important;
    padding: 4px 8px !important;
  }
  .nav-links a {
    padding: 6px 12px !important;
    font-size: 0.76rem !important;
    letter-spacing: 0.5px !important;
  }
  .navbar {
    padding: 8px 12px !important;
  }
}

/* Guest Estimator Chips Styles */
.estimator-chip {
  background: rgba(255, 255, 255, 0.02) !important;
  border: 1.5px solid rgba(197, 160, 89, 0.2) !important;
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
}

.estimator-chip:hover {
  background: rgba(197, 160, 89, 0.08) !important;
  border-color: var(--gold-primary) !important;
  transform: translateY(-2px) scale(1.03) !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2) !important;
}

/* Star Rating Radio CSS Highlight Selector */
.star-rating-wrapper input:checked ~ label {
  color: #FFD700 !important;
}

.star-rating-wrapper label:hover,
.star-rating-wrapper label:hover ~ label {
  color: #FFD700 !important;
}

.star-rating-wrapper input:checked + label:hover,
.star-rating-wrapper input:checked + label:hover ~ label,
.star-rating-wrapper input:checked ~ label:hover,
.star-rating-wrapper input:checked ~ label:hover ~ label,
.star-rating-wrapper label:hover ~ input:checked ~ label {
  color: #FFA500 !important;
}

/* Onboarding Welcome and Congratulations Animations */
@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
  100% { transform: translateY(0px); }
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ==========================================================================
   MOBILE DEVICE VIEWPORT RESPONSIVE OPTIMIZATIONS (MAX-WIDTH: 480PX)
   ========================================================================== */
@media (max-width: 480px) {
  /* Reduce excessive section padding to save precious vertical space */
  section {
    padding: 40px 12px !important;
  }
  
  .hero {
    padding: 110px 12px 40px 12px !important;
  }
  
  .badge {
    padding: 6px 12px !important;
    font-size: 0.68rem !important;
    letter-spacing: 0.5px !important;
  }
  
  .container {
    padding: 0 10px !important;
  }

  /* Hero Typography & Button alignment */
  .hero-text h2 {
    font-size: 2.1rem !important;
    line-height: 1.25 !important;
    margin-bottom: 12px !important;
  }
  
  .hero-text p {
    font-size: 0.88rem !important;
    line-height: 1.5 !important;
    margin-bottom: 20px !important;
  }

  .hero-buttons {
    flex-direction: column !important;
    gap: 10px !important;
    width: 100% !important;
  }
  
  .hero-buttons a {
    width: 100% !important;
    text-align: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    padding: 12px 24px !important;
    font-size: 0.9rem !important;
  }

  /* Prevent horizontal grid overflow in product list */
  .products-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
    padding: 0 4px !important;
  }
  
  .product-card-3d {
    height: 455px !important;
  }
  
  .product-card-back {
    padding: 20px 15px !important;
  }
  
  .product-card-back h3 {
    font-size: 1.35rem !important;
    padding-bottom: 6px !important;
  }
  
  .product-desc {
    font-size: 0.85rem !important;
    margin: 10px 0 !important;
    line-height: 1.45 !important;
  }
  
  .product-details-list {
    margin-bottom: 12px !important;
  }
  
  .product-details-list li {
    padding: 4px 0 !important;
    font-size: 0.8rem !important;
  }

  /* Glassmorphic Modals padding reductions for small screens */
  .order-modal-content {
    width: 93% !important;
    padding: 20px 15px !important;
    margin: 8px auto !important;
    gap: 12px !important;
    box-sizing: border-box !important;
  }

  .order-modal-content h3 {
    font-size: 1.3rem !important;
  }

  #welcome-onboarding-modal .order-modal-content,
  #congrats-modal .order-modal-content,
  #customer-auth-modal .order-modal-content {
    padding: 22px 14px !important;
  }

  #welcome-onboarding-modal h3,
  #congrats-modal h3 {
    font-size: 1.45rem !important;
  }

  #welcome-onboarding-modal ul {
    padding-left: 14px !important;
  }

  /* Full screen customer profile panel for clean mobile rendering */
  #customer-profile-panel {
    width: 100vw !important;
    max-width: 100vw !important;
    right: -100vw;
    border-left: none !important;
  }
  
  /* Quick Actions grid layouts within profile drawer */
  .profile-quick-actions {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
  }

  /* Compact Auth login/signup padding on mobile to prevent input squishing */
  .auth-modal-body {
    padding: 20px 14px !important;
  }
}

/* Align modals to top on small heights to prevent offscreen clipping */
@media (max-height: 620px) {
  .order-modal {
    align-items: flex-start !important;
  }
}
