/* ==========================================================================
   Vedic Cosmetics - Core Luxury Dark Tech & Ayurvedic Wellness Design System
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  /* Dark Obsidian & Cyber-Navy Palette */
  --bg-darkest: #050811;
  --bg-primary: #070B14;
  --bg-secondary: #0D1627;
  --bg-card: #132038;
  --bg-card-hover: #192B4B;
  --bg-card-glass: rgba(19, 32, 56, 0.75);
  --bg-input: #0B1322;
  
  /* Glowing Gold & Amber Luxury Accents */
  --gold: #F5A623;
  --gold-light: #FFD700;
  --gold-dark: #C9820C;
  --gold-gradient: linear-gradient(135deg, #FFD700 0%, #F5A623 50%, #D97706 100%);
  --gold-glow: 0 0 20px rgba(245, 166, 35, 0.35);
  
  /* Cyber Teal & Emerald Ayurvedic Accents */
  --accent-green: #00E599;
  --accent-cyan: #00F5D4;
  --accent-teal: #0D9488;
  --green-glow: 0 0 15px rgba(0, 229, 153, 0.3);
  
  /* Status Colors */
  --color-success: #10B981;
  --color-danger: #EF4444;
  --color-warning: #F59E0B;
  --color-info: #38BDF8;
  
  /* Typography & High-Contrast Colors */
  --text-primary: #F8FAFC;
  --text-secondary: #CBD5E1;
  --text-muted: #8492A6;
  --border-subtle: rgba(245, 166, 35, 0.15);
  --border-gold: rgba(245, 166, 35, 0.35);
  --border-active: #F5A623;
  
  /* Typography Scale */
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  
  /* Layout & Shadows */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.5);
  --shadow-md: 0 10px 25px -3px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 20px 35px -5px rgba(0, 0, 0, 0.7);
  --shadow-gold: 0 8px 30px rgba(245, 166, 35, 0.25);
  
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-primary);
}

body {
  background-color: var(--bg-primary) !important;
  color: var(--text-primary) !important;
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Typography Scale */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-primary) !important;
  font-weight: 700;
  line-height: 1.25;
}

h1 { font-size: clamp(1.85rem, 5vw, 2.75rem); }
h2 { font-size: clamp(1.45rem, 4vw, 2.25rem); }
h3 { font-size: clamp(1.15rem, 3vw, 1.5rem); }
h4 { font-size: clamp(1rem, 2.5vw, 1.2rem); }

p {
  color: var(--text-secondary);
  font-size: clamp(0.9rem, 2vw, 1rem);
}

a {
  color: var(--gold);
  text-decoration: none;
  transition: color var(--transition-fast);
}
a:hover {
  color: var(--gold-light);
}

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

/* Containers & Grid */
.container {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .grid-2 { gap: 18px; }
}
@media (max-width: 768px) {
  .grid-4, .grid-3, .grid-2 {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-normal);
  text-decoration: none;
  white-space: nowrap;
}

.btn-gold {
  background: var(--gold-gradient);
  color: #070B14 !important;
  font-weight: 700;
  box-shadow: var(--shadow-gold);
}
.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(245, 166, 35, 0.45);
  color: #000 !important;
}

.btn-outline-gold {
  background: transparent;
  border: 1.5px solid var(--gold);
  color: var(--gold-light) !important;
}
.btn-outline-gold:hover {
  background: rgba(245, 166, 35, 0.12);
  border-color: var(--gold-light);
  transform: translateY(-2px);
}

.btn-cyber {
  background: linear-gradient(135deg, #00F5D4, #00E599);
  color: #070B14 !important;
  font-weight: 700;
  box-shadow: var(--green-glow);
}
.btn-cyber:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0, 229, 153, 0.45);
}

.btn-dark {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary) !important;
}
.btn-dark:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-gold);
}

.btn-sm { padding: 8px 16px; font-size: 0.85rem; }
.btn-lg { padding: 14px 32px; font-size: 1.05rem; }
.w-full { width: 100%; }

/* Badges & Pills */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.badge-gold { background: rgba(245, 166, 35, 0.15); color: var(--gold-light); border: 1px solid var(--border-gold); }
.badge-green { background: rgba(0, 229, 153, 0.15); color: var(--accent-green); border: 1px solid rgba(0, 229, 153, 0.3); }
.badge-bestseller { background: linear-gradient(135deg, #FF6B6B, #EE5253); color: #fff; }
.badge-new { background: linear-gradient(135deg, #00F5D4, #00E599); color: #070B14; font-weight: 800; }
.badge-organic { background: rgba(16, 185, 129, 0.2); color: #34D399; border: 1px solid #10B981; }

/* Section Styling */
.section { padding: 80px 0; background: var(--bg-primary); }
.section-sm { padding: 48px 0; }

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 40px;
  flex-wrap: wrap;
  gap: 16px;
}

.section-heading {
  font-size: 2.2rem;
  font-weight: 800;
  background: linear-gradient(180deg, #FFFFFF 0%, #CBD5E1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gold-line {
  width: 60px;
  height: 3px;
  background: var(--gold-gradient);
  border-radius: 2px;
  margin: 10px 0 12px;
}

.section-divider {
  width: 80px;
  height: 3px;
  background: var(--gold-gradient);
  margin: 14px auto 0;
  border-radius: 2px;
}

.section-subheading {
  font-size: 1rem;
  color: var(--text-secondary);
}

.text-center { text-align: center; }
.mt-4 { margin-top: 16px; }
.mt-8 { margin-top: 32px; }

/* Cards & Glassmorphism */
.glass-card {
  background: var(--bg-card-glass) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle) !important;
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
}
.glass-card:hover {
  border-color: var(--border-gold) !important;
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg), var(--gold-glow);
}

/* Form Inputs */
.form-group {
  margin-bottom: 20px;
}
.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
}
.form-control {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-input) !important;
  border: 1px solid var(--border-subtle) !important;
  border-radius: var(--radius-md);
  color: var(--text-primary) !important;
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: all var(--transition-fast);
}
.form-control:focus {
  outline: none;
  border-color: var(--gold) !important;
  box-shadow: 0 0 12px rgba(245, 166, 35, 0.3) !important;
  background: var(--bg-secondary) !important;
}

/* Toast Alerts */
.toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  color: var(--text-primary);
  padding: 16px 24px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg), var(--gold-glow);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 9999;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* Flash Messages */
.alert {
  padding: 14px 20px;
  border-radius: var(--radius-md);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
}
.alert-success { background: rgba(16, 185, 129, 0.15); border: 1px solid #10B981; color: #34D399; }
.alert-error { background: rgba(239, 68, 68, 0.15); border: 1px solid #EF4444; color: #F87171; }
.alert-warning { background: rgba(245, 158, 11, 0.15); border: 1px solid #F59E0B; color: #FBBF24; }

/* E-Commerce Layouts */
.product-detail-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 36px;
  align-items: start;
  margin-bottom: 48px;
}

.checkout-layout {
  display: grid;
  grid-template-columns: 1.6fr 1.2fr;
  gap: 28px;
  align-items: start;
}

.cart-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 28px;
  align-items: start;
}

@media (max-width: 900px) {
  .product-detail-layout, .checkout-layout, .cart-layout {
    display: flex !important;
    flex-direction: column !important;
    gap: 20px !important;
  }
}

@media (max-width: 768px) {
  .section { padding: 40px 0; }
  .section-sm { padding: 24px 0; }
  .container { padding-left: 14px; padding-right: 14px; }
  
  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 20px;
  }
  
  .glass-card {
    padding: 18px 14px;
    border-radius: var(--radius-md);
  }
  
  .form-control {
    font-size: 16px !important;
    padding: 11px 14px;
  }

  .toast {
    left: 14px;
    right: 14px;
    bottom: 75px;
    padding: 12px 16px;
  }
}

@media (max-width: 480px) {
  .btn {
    padding: 10px 16px;
    font-size: 0.9rem;
  }
  .btn-lg {
    padding: 12px 20px;
    font-size: 0.95rem;
  }
  .container {
    padding-left: 12px;
    padding-right: 12px;
  }
}
