/* ==========================================================================
   MADHAVA AROMA PRODUCTS - PREMIUM AGARBATTI CATALOG DESIGN SYSTEM
   Theme: Warm Saffron, Royal Maroon, Pure Cream & Regal Gold Accents
   ========================================================================== */

/* --- Google Fonts Import --- */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,600&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

:root {
  /* Color Palette */
  --primary-maroon: #4A0E17;
  --primary-maroon-dark: #32070D;
  --primary-maroon-light: #6A1823;
  --primary-maroon-90: rgba(74, 14, 23, 0.9);
  --primary-maroon-10: rgba(74, 14, 23, 0.08);

  --primary-saffron: #D97706;
  --primary-saffron-dark: #B45309;
  --primary-saffron-light: #FBBF24;
  --primary-saffron-soft: #FEF3C7;

  --accent-gold: #C5A059;
  --accent-gold-light: #E6C875;
  --accent-gold-dark: #8C6D23;
  --accent-gold-soft: rgba(197, 160, 89, 0.15);
  --gold-gradient: linear-gradient(135deg, #ECC878 0%, #C5A059 50%, #9B7829 100%);
  --maroon-gradient: linear-gradient(135deg, #4A0E17 0%, #2D060C 100%);

  /* Neutrals & Surfaces */
  --bg-cream: #FDFBF7;
  --bg-cream-surface: #FAF6EE;
  --bg-cream-card: #FFFFFF;
  --border-cream: #EFE8DC;
  --border-gold: rgba(197, 160, 89, 0.35);

  --text-primary: #1F1916;
  --text-secondary: #5F544D;
  --text-muted: #8C7E75;
  --text-white: #FFFFFF;

  /* State & Utility Colors */
  --whatsapp-green: #25D366;
  --whatsapp-hover: #20BA5A;
  --badge-new: #15803D;
  --badge-bestseller: #B45309;
  --badge-premium: #4A0E17;
  --badge-gift: #7C2D12;

  /* Typography */
  --font-serif: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Elevations */
  --shadow-sm: 0 2px 8px rgba(74, 14, 23, 0.04);
  --shadow-md: 0 8px 24px rgba(74, 14, 23, 0.08);
  --shadow-lg: 0 16px 40px rgba(74, 14, 23, 0.12);
  --shadow-gold: 0 8px 25px rgba(197, 160, 89, 0.25);

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);

  /* Container */
  --container-max: 1280px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-full: 9999px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-cream);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1 0 auto;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

ul, ol {
  list-style: none;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  border: none;
  background: none;
  outline: none;
}

button {
  cursor: pointer;
}

/* Accessibility Focus Outline */
:focus-visible {
  outline: 2px solid var(--accent-gold);
  outline-offset: 3px;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

@media (min-width: 768px) {
  .container {
    padding-left: 32px;
    padding-right: 32px;
  }
}

/* --- Typography Helpers --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  color: var(--primary-maroon);
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 600; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.75rem); }
h3 { font-size: clamp(1.4rem, 2.5vw, 1.85rem); }
h4 { font-size: 1.25rem; }

/* Numeric Value Clarity (Ensures digits like '1' do not look like capital 'I') */
.num-pure,
.numeric-val {
  font-family: var(--font-sans) !important;
  font-weight: 700;
  letter-spacing: -0.01em;
  display: inline-block;
}

h1 .num-pure,
h2 .num-pure,
h3 .num-pure,
.hero-title .num-pure,
.catalog-banner-title .num-pure {
  font-family: var(--font-sans) !important;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 0.96em;
  vertical-align: baseline;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--primary-saffron-dark);
  background: var(--primary-saffron-soft);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  margin-bottom: 12px;
}

.section-tag.gold {
  color: var(--accent-gold-dark);
  background: var(--accent-gold-soft);
  border: 1px solid var(--border-gold);
}

.section-tag::before {
  content: '✦';
  font-size: 0.75rem;
  color: var(--accent-gold);
}

.section-tag::after {
  content: '✦';
  font-size: 0.75rem;
  color: var(--accent-gold);
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 48px auto;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-top: 12px;
}

.text-gold { color: var(--accent-gold); }
.text-maroon { color: var(--primary-maroon); }
.text-saffron { color: var(--primary-saffron); }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-align: center;
  transition: all var(--transition-normal);
  white-space: nowrap;
  position: relative;
  max-width: 100%;
  box-sizing: border-box;
}

.btn-primary {
  background: var(--gold-gradient);
  color: var(--primary-maroon-dark);
  box-shadow: 0 4px 15px rgba(197, 160, 89, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.4);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  transform: skewX(-25deg);
  transition: 0.65s ease;
}

.btn-primary:hover::before {
  left: 130%;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(197, 160, 89, 0.5);
  filter: brightness(1.05);
}

.btn-secondary {
  background: transparent;
  color: var(--primary-maroon);
  border: 1.5px solid var(--primary-maroon);
}

.btn-secondary:hover {
  background: var(--primary-maroon);
  color: var(--text-white);
  transform: translateY(-2px);
}

.btn-white {
  background: var(--text-white);
  color: var(--primary-maroon);
  box-shadow: var(--shadow-md);
}

.btn-white:hover {
  background: var(--bg-cream-surface);
  transform: translateY(-2px);
}

.btn-whatsapp {
  background-color: var(--whatsapp-green);
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
}

.btn-whatsapp:hover {
  background-color: var(--whatsapp-hover);
  transform: translateY(-2px);
  color: #FFFFFF;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1rem;
}

/* --- Top Announcement Bar --- */
.top-bar,
.top-announcement-bar {
  background-color: var(--primary-maroon-dark);
  color: #E8D8C8;
  font-size: 0.82rem;
  padding: 7px 0;
  border-bottom: 1px solid rgba(197, 160, 89, 0.25);
}

.top-bar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.top-bar-notice,
.top-bar-badge {
  display: flex;
  align-items: center;
  gap: 8px;
}

.top-bar-notice .dot,
.top-bar-badge .dot {
  width: 6px;
  height: 6px;
  background-color: var(--accent-gold);
  border-radius: 50%;
  animation: pulseGold 2s infinite;
}

.top-bar-contact {
  display: flex;
  align-items: center;
  gap: 20px;
}

.top-bar-contact a {
  color: #E8D8C8;
  display: flex;
  align-items: center;
  gap: 6px;
}

.top-bar-contact a:hover {
  color: var(--accent-gold-light);
}

@keyframes pulseGold {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.5); opacity: 0.4; }
  100% { transform: scale(1); opacity: 1; }
}

@media (max-width: 768px) {
  .btn {
    padding: 11px 18px;
    font-size: 0.88rem;
    gap: 8px;
    white-space: normal;
    line-height: 1.25;
  }
  .btn-lg {
    padding: 12px 22px;
    font-size: 0.92rem;
  }
  .btn-sm {
    padding: 7px 14px;
    font-size: 0.8rem;
  }
  .top-bar-contact {
    display: none;
  }
  .top-bar-content {
    justify-content: center;
    text-align: center;
  }
}

/* --- Sticky Header / Navbar --- */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(253, 251, 247, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-cream);
  transition: all var(--transition-normal);
}

.site-header.scrolled {
  box-shadow: 0 4px 20px rgba(74, 14, 23, 0.08);
  background-color: rgba(253, 251, 247, 0.98);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
}

/* Brand Logo */
.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-symbol {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gold-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-maroon-dark);
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--primary-maroon);
  line-height: 1.1;
  text-transform: uppercase;
}

.brand-subtext {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--primary-saffron-dark);
  font-weight: 600;
}

/* Navigation Links */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 6px 0;
  position: relative;
  transition: color var(--transition-fast);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold-gradient);
  transition: width var(--transition-normal);
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-maroon);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Hamburger button */
.mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 26px;
  height: 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1010;
}

.mobile-toggle span {
  display: block;
  height: 2.5px;
  width: 100%;
  background: var(--primary-maroon);
  border-radius: 2px;
  transition: all var(--transition-normal);
}

.mobile-toggle.active span:nth-child(1) {
  transform: translateY(8.5px) rotate(45deg);
}
.mobile-toggle.active span:nth-child(2) {
  opacity: 0;
}
.mobile-toggle.active span:nth-child(3) {
  transform: translateY(-8.5px) rotate(-45deg);
}

/* Mobile Drawer */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 82%;
  max-width: 360px;
  height: 100vh;
  background-color: var(--bg-cream);
  z-index: 1005;
  box-shadow: -4px 0 25px rgba(74, 14, 23, 0.15);
  display: flex;
  flex-direction: column;
  padding: 90px 28px 36px 28px;
  transition: right var(--transition-normal);
}

.mobile-drawer.open {
  right: 0;
}

.mobile-drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(45, 6, 12, 0.5);
  backdrop-filter: blur(4px);
  z-index: 1002;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

.mobile-drawer-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 32px;
}

.mobile-nav-link {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  color: var(--primary-maroon);
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-cream);
  padding-bottom: 12px;
}

.mobile-nav-link.active {
  color: var(--primary-saffron);
}

@media (max-width: 991px) {
  .nav-menu {
    display: none;
  }
  .mobile-toggle {
    display: flex;
  }
}

/* --- Floating WhatsApp Quick Chat Button --- */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 10px;
  background-color: var(--whatsapp-green);
  color: #FFFFFF;
  padding: 12px 20px 12px 14px;
  border-radius: var(--radius-full);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  font-size: 0.92rem;
  font-weight: 600;
  transition: all var(--transition-normal);
  text-decoration: none;
}

.whatsapp-float:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.55);
  color: #FFFFFF;
}

.whatsapp-float svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
}

.whatsapp-float-pulse {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: var(--radius-full);
  background: var(--whatsapp-green);
  opacity: 0.4;
  top: 0;
  left: 0;
  z-index: -1;
  animation: waPulse 2.5s infinite;
}

@keyframes waPulse {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.35); opacity: 0; }
}

@media (max-width: 600px) {
  .whatsapp-float span {
    display: none;
  }
  .whatsapp-float {
    padding: 14px;
    bottom: 20px;
    right: 20px;
  }
}

/* --- Footer --- */
.site-footer {
  background-color: var(--primary-maroon-dark);
  color: #E2D4C8;
  position: relative;
  overflow: hidden;
  margin-top: auto;
  border-top: 3px solid var(--accent-gold);
}

.footer-top {
  padding: 70px 0 50px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
}

.footer-brand .brand-name {
  color: #FFFFFF;
  font-size: 1.6rem;
}

.footer-brand .brand-subtext {
  color: var(--accent-gold);
}

.footer-brand p {
  margin-top: 16px;
  font-size: 0.92rem;
  color: #C7B5A7;
  max-width: 360px;
  line-height: 1.65;
}

.footer-heading {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--accent-gold-light);
  margin-bottom: 22px;
  position: relative;
  padding-bottom: 10px;
}

.footer-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 32px;
  height: 2px;
  background: var(--accent-gold);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  color: #C7B5A7;
  font-size: 0.92rem;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer-links a:hover {
  color: var(--accent-gold-light);
  transform: translateX(4px);
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.92rem;
  color: #C7B5A7;
  margin-bottom: 14px;
}

.footer-contact-item svg {
  width: 18px;
  height: 18px;
  color: var(--accent-gold);
  flex-shrink: 0;
  margin-top: 3px;
}

.footer-social-links {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.social-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-gold-light);
  transition: all var(--transition-fast);
  border: 1px solid rgba(197, 160, 89, 0.2);
}

.social-btn:hover {
  background: var(--gold-gradient);
  color: var(--primary-maroon-dark);
  transform: translateY(-2px);
}

.footer-bottom {
  padding: 24px 0;
  border-top: 1px solid rgba(197, 160, 89, 0.2);
  font-size: 0.84rem;
  color: #A99B90;
}

.footer-bottom-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.catalog-disclaimer {
  color: var(--accent-gold);
  font-size: 0.82rem;
  font-style: italic;
}

@media (max-width: 991px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
}

@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .footer-bottom-content {
    flex-direction: column;
    text-align: center;
  }
}

/* --- Common UI Badges --- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.badge-bestseller {
  background: #FFFBEB;
  color: #B45309;
  border: 1px solid #FCD34D;
}

.badge-new {
  background: #F0FDF4;
  color: #15803D;
  border: 1px solid #86EFAC;
}

.badge-premium {
  background: var(--primary-maroon);
  color: var(--accent-gold-light);
  border: 1px solid var(--accent-gold);
}

.badge-gift {
  background: #FFF1F2;
  color: #BE123C;
  border: 1px solid #FECDD3;
}

/* Toast Message */
.toast-container {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: var(--primary-maroon-dark);
  color: #FFFFFF;
  border-left: 4px solid var(--accent-gold);
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  font-size: 0.92rem;
  display: flex;
  align-items: center;
  gap: 12px;
  animation: slideInRight 0.3s ease;
  min-width: 280px;
  max-width: 400px;
}

@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}
