/* Core layout and common styling for Mothers Commerce */

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  color: var(--color-primary);
  line-height: 1.2;
  font-weight: 500;
}

p {
  color: var(--color-text-muted);
  font-size: 1rem;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

.text-serif {
  font-family: var(--font-serif);
}

.text-sans {
  font-family: var(--font-sans);
}

.italic {
  font-style: italic;
}

/* --- Layout Utility Classes --- */
.container {
  width: 90%;
  max-width: var(--max-width);
  margin: 0 auto;
}

.container-narrow {
  width: 90%;
  max-width: var(--max-width-narrow);
  margin: 0 auto;
}

.section {
  padding: var(--space-4xl) 0;
}

.flex-center {
  display: flex;
  justify-content: center;
  align-items: center;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-xl);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
}

@media (max-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .section {
    padding: var(--space-2xl) 0;
  }
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 2rem;
  border-radius: var(--radius-round);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--transition-smooth);
  border: 1px solid transparent;
}

.btn-primary {
  background-color: var(--color-primary);
  color: var(--color-bg);
}

.btn-primary:hover {
  background-color: var(--color-primary-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background-color: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.btn-outline:hover {
  background-color: var(--color-primary);
  color: var(--color-bg);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.btn-terracotta {
  background-color: var(--color-terracotta);
  color: var(--color-bg);
}

.btn-terracotta:hover {
  background-color: var(--color-terracotta-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* --- Premium Enquire Now CTA (#navCta) --- */
#navCta {
  position: relative;
  overflow: hidden;
  font-weight: 600;
  letter-spacing: 0.08em;
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Shimmer sweep on hover */
#navCta::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transform: skewX(-25deg);
  transition: none;
  z-index: 2;
  pointer-events: none;
}

#navCta:hover::before {
  left: 150%;
  transition: left 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Over dark hero (transparent header) — gold outline */
.header.header-transparent #navCta {
  color: var(--color-gold-light);
  border-color: rgba(212, 175, 55, 0.5);
  background: rgba(212, 175, 55, 0.06);
  backdrop-filter: blur(4px);
}

.header.header-transparent #navCta:hover {
  color: var(--color-primary);
  background: var(--color-gold);
  border-color: var(--color-gold);
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
  transform: translateY(-2px);
}

/* --- Navigation Header --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 100;
  transition: var(--transition-smooth);
}

/* Premium scrolling header */
.header {
  transition: height 0.4s cubic-bezier(0.25, 1, 0.5, 1), background-color 0.4s, border-color 0.4s, box-shadow 0.4s;
}

.header.scrolled {
  height: 68px !important;
  background-color: rgba(250, 248, 245, 0.88) !important;
  backdrop-filter: blur(20px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
  box-shadow: 0 10px 30px rgba(30, 58, 43, 0.04), 0 1px 0 rgba(212, 175, 55, 0.12) !important;
  border-bottom: 1px solid rgba(212, 175, 55, 0.15) !important;
}

/* Subtle golden shimmer line under scrolled header */
.header.scrolled::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.35), transparent);
  z-index: 10;
}

/* Scrolled: nav links go dark */
.header.scrolled .nav-link {
  color: var(--color-primary) !important;
  font-weight: 600 !important;
}

.header.scrolled .nav-link:hover,
.header.scrolled .nav-link.active {
  color: var(--color-terracotta) !important;
}

.header.scrolled .logo-text {
  color: var(--color-primary) !important;
}

.header.scrolled .logo-text span {
  color: var(--color-terracotta) !important;
}

/* Scrolled: Enquire Now button - dark outline */
.header.scrolled #navCta {
  color: var(--color-primary);
  border-color: var(--color-primary);
  background: transparent;
}

.header.scrolled #navCta:hover {
  color: var(--color-bg);
  background: var(--color-primary);
  border-color: var(--color-primary);
  box-shadow: 0 4px 12px rgba(30, 58, 43, 0.15);
  transform: translateY(-2px);
}

/* Transparent header: nav links white */
.header.header-transparent .nav-link {
  color: rgba(250, 248, 245, 0.95) !important;
  font-weight: 500 !important;
  letter-spacing: 0.06em;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

.header.header-transparent .nav-link:hover {
  color: var(--color-gold-light) !important;
}

.header-container {
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-wrapper {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.logo-icon {
  width: 32px;
  height: 32px;
  background-color: var(--color-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-gold);
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: bold;
}

.logo-text {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--color-primary);
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.logo-text span {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--color-terracotta);
  display: block;
  margin-top: -4px;
  letter-spacing: 0.15em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem !important;
}

.nav-link {
  margin-left: 0; /* Changed from 1.5rem */
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-text-main);
  position: relative;
  padding: 4px 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-terracotta);
  transition: var(--transition-smooth);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-terracotta);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

/* --- Transparent Header Overrides --- */
.header.header-transparent .logo-text {
  color: var(--color-bg);
}

.header.header-transparent .logo-text span {
  color: var(--color-gold-light);
}

.header.header-transparent .logo-icon {
  background-color: var(--color-bg);
  color: var(--color-primary);
}

.header.header-transparent .nav-link {
  margin-left: 0; /* Changed from 1.5rem */
  color: var(--color-bg);
}

.header.header-transparent .nav-link:hover,
.header.header-transparent .nav-link.active {
  color: var(--color-gold-light);
}

.header.header-transparent .nav-link::after {
  background-color: var(--color-gold-light);
}

.header.header-transparent .mobile-nav-toggle span {
  background-color: var(--color-bg);
}

/* Mobile Toggle */
.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 110;
  width: 30px;
  height: 20px;
  position: relative;
}

.mobile-nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--color-primary);
  position: absolute;
  left: 0;
  transition: var(--transition-smooth);
}

.mobile-nav-toggle span:nth-child(1) { top: 0; }
.mobile-nav-toggle span:nth-child(2) { top: 9px; }
.mobile-nav-toggle span:nth-child(3) { top: 18px; }

.mobile-nav-toggle.open span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}
.mobile-nav-toggle.open span:nth-child(2) {
  opacity: 0;
}
.mobile-nav-toggle.open span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -7px);
}

/* Mobile Menu Overlay */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100vh;
  background-color: var(--color-bg);
  z-index: 95;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  padding-top: 100px; /* Space for the header */
  padding-bottom: 50px;
  gap: var(--space-md); /* Reduced gap to fit content better */
  transition: var(--transition-smooth);
  overflow-y: auto; /* Allow scrolling if content is tall */
}

.mobile-menu.open {
  right: 0;
}

.mobile-menu > * {
  width: 80%; /* Give elements a consistent width */
  max-width: 400px;
  text-align: center; /* Center the text */
}

.mobile-menu .nav-link {
  margin-left: 0;
  font-size: 1.4rem;
  padding: 0.5rem 0;
  width: fit-content;
  margin: 0 auto;
}
.mobile-has-mega-menu > .nav-link::after {
  display: none;
}

@media (max-width: 900px) {
  .nav {
    display: none;
  }
  .nav-actions .btn {
    display: none;
  }
  .mobile-nav-toggle {
    display: block;
  }
}

/* --- Floating Inquiry Mini-Widget --- */
.inquiry-badge-floating {
  position: fixed;
  bottom: var(--space-lg);
  right: var(--space-lg);
  background-color: var(--color-primary);
  color: var(--color-bg);
  padding: 0.8rem 1.4rem;
  border-radius: var(--radius-round);
  box-shadow: var(--shadow-lg);
  z-index: 90;
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  cursor: pointer;
  transition: var(--transition-smooth);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.inquiry-badge-floating:hover {
  background-color: var(--color-terracotta);
  transform: translateY(-4px);
}

.inquiry-badge-floating .count {
  background-color: var(--color-gold);
  color: var(--color-primary);
  font-size: 0.75rem;
  font-weight: bold;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* --- Reveal Scroll Animation --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* --- Footer --- */
.footer {
  background-color: var(--color-bg-dark);
  color: var(--color-bg);
  padding: var(--space-5xl) 0 var(--space-xl) 0;
  border-top: 1px solid var(--color-border-dark);
  position: relative;
  overflow: hidden;
}

.footer .container {
  position: relative;
  z-index: 2;
}

.footer h3, .footer h4 {
  color: var(--color-bg);
  font-weight: 600;
  margin-bottom: var(--space-lg);
}

.footer p {
  color: #8C9690;
  font-size: 0.95rem;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: var(--space-xxl);
  margin-bottom: var(--space-4xl);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.footer-brand .logo-icon {
  background-color: var(--color-bg);
  color: var(--color-primary);
}

.footer-brand .logo-text {
  color: var(--color-bg);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.footer-links a {
  color: #8C9690;
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: var(--color-gold);
  padding-left: 4px;
}

.footer-contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  color: #8C9690;
  font-size: 0.95rem;
}

.footer-contact-info i {
  color: var(--color-gold);
}

.footer-newsletter {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.newsletter-form {
  display: flex;
  border-bottom: 1px solid var(--color-border-dark);
  padding-bottom: var(--space-xs);
}

.newsletter-input {
  background: none;
  border: none;
  outline: none;
  color: var(--color-bg);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  width: 100%;
}

.newsletter-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-gold);
  font-size: 1.2rem;
  transition: var(--transition-fast);
}

.newsletter-btn:hover {
  color: var(--color-gold-light);
  transform: translateX(4px);
}

.footer-bottom {
  border-top: 1px solid var(--color-border-dark);
  padding-top: var(--space-xl);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.footer-bottom p {
  font-size: 0.85rem;
}

.footer-socials {
  display: flex;
  gap: var(--space-md);
  position: relative;
  z-index: 3;
}

.footer-socials a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--color-border-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.1rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease;
}

.footer-socials a[href*="instagram.com"] {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  border-color: transparent;
}

.footer-socials a[href*="facebook.com"] {
  background-color: #1877F2;
  border-color: transparent;
}

.footer-socials a:hover {
  transform: translateY(-4px);
  filter: brightness(1.15);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

@media (max-width: 1024px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem 2rem;
  }
  .footer-brand {
    grid-column: 1 / -1;
    max-width: 650px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.18);
    padding-bottom: 1.5rem;
  }
  .footer-newsletter {
    grid-column: 1 / -1;
    border-top: 1px solid rgba(212, 175, 55, 0.18);
    padding-top: 1.8rem;
    margin-top: 0.5rem;
  }
}

@media (max-width: 768px) {
  .footer-top {
    grid-template-columns: 1fr;
    gap: 2.2rem;
  }
  .footer-brand,
  .footer-newsletter {
    grid-column: 1 / -1;
    border: none;
    padding: 0;
  }
  .footer {
    padding: var(--space-3xl) 0 var(--space-lg) 0;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 1.2rem;
    text-align: center;
  }
}

/* --- Common Global Page Hero Header --- */
.page-hero {
  padding-top: calc(var(--header-height) + var(--space-xxl));
  padding-bottom: var(--space-xxl);
  background-color: var(--color-primary);
  color: var(--color-bg);
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 80% 20%, rgba(194, 125, 86, 0.15) 0%, transparent 60%);
}

.page-hero h1 {
  color: var(--color-bg);
  font-size: 3.5rem;
  margin-bottom: var(--space-xs);
}

.page-hero p {
  color: rgba(250, 248, 245, 0.75);
  font-size: 1.15rem;
  max-width: var(--max-width-narrow);
}

@media (max-width: 768px) {
  .page-hero h1 {
    font-size: 2.5rem;
  }
}

/* Custom Inquiry Drawer */
.inquiry-drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-smooth);
}

.inquiry-drawer-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.inquiry-drawer {
  position: fixed;
  top: 0;
  right: -450px;
  width: 100%;
  max-width: 450px;
  height: 100%;
  background-color: var(--color-bg);
  box-shadow: var(--shadow-lg);
  z-index: 1001;
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
}

.inquiry-drawer.open {
  right: 0;
}

.drawer-header {
  padding: var(--space-lg);
  border-bottom: 1px solid var(--color-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.drawer-header h3 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--color-primary);
}

.drawer-close {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.5rem;
  color: var(--color-text-muted);
  transition: var(--transition-fast);
}

.drawer-close:hover {
  color: var(--color-terracotta);
}

.drawer-content {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-lg);
}

.drawer-items {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.drawer-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-sm);
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  position: relative;
}

.drawer-item-details {
  flex: 1;
}

.drawer-item-title {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--color-primary);
  font-weight: 600;
}

.drawer-item-desc {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.drawer-item-remove {
  background: none;
  border: none;
  color: var(--color-terracotta);
  cursor: pointer;
  font-size: 0.9rem;
  transition: var(--transition-fast);
}

.drawer-item-remove:hover {
  color: var(--color-primary);
}

.drawer-empty-state {
  text-align: center;
  padding: var(--space-3xl) 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
}

.drawer-empty-state i {
  font-size: 3rem;
  color: var(--color-border);
}

.drawer-footer {
  padding: var(--space-lg);
  border-top: 1px solid var(--color-border);
  background-color: var(--color-surface);
}

.drawer-footer .btn {
  width: 100%;
}

/* --- Product Slider (Horizontal Scroll) --- */
.product-slider {
  display: flex;
  overflow-x: auto;
  gap: var(--space-xl);
  padding-bottom: var(--space-lg);
  padding-top: var(--space-xs);
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch; /* smooth scrolling on iOS */
}

/* Hide scrollbar for Chrome, Safari and Opera */
.product-slider::-webkit-scrollbar {
  display: none;
}

/* Hide scrollbar for IE, Edge and Firefox */
.product-slider {
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;  /* Firefox */
}

.product-slider > * {
  flex: 0 0 300px; /* Fixed width for items */
  scroll-snap-align: start;
}

@media (max-width: 768px) {
  .product-slider > * {
    flex: 0 0 260px;
  }
}

/* --- Hero Slider --- */
.hero-slider-wrapper {
  position: relative;
  height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.hero-slider {
  width: 100%;
  height: 100%;
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.5s ease-in-out, transform 8s ease-out;
  transform: scale(1);
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1.05); /* subtle ken burns effect */
}

.hero-slider-controls {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.slider-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.4);
  border: none;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.slider-dot.active, .slider-dot:hover {
  background-color: var(--color-gold);
  transform: scale(1.2);
}

@media (max-width: 1024px) {
  /* Homepage Hero on Tablet: Stack vertically and center for a cinematic feel */
  .hero .grid-2 {
    grid-template-columns: 1fr !important;
    gap: 2.5rem !important;
    text-align: center;
  }
  .hero-card {
    max-width: 720px;
    margin: 0 auto;
  }
  .hero-actions {
    justify-content: center;
  }
  .hero-slider-wrapper {
    height: 420px;
    max-width: 680px;
    margin: 0 auto;
    width: 100%;
  }

  /* Inner Page Heroes (.page-hero) on Tablet */
  .page-hero {
    padding-top: calc(var(--header-height) + var(--space-xl));
    padding-bottom: var(--space-xl);
    text-align: center;
  }
  .page-hero h1 {
    font-size: 2.8rem !important;
  }
  .page-hero p {
    font-size: 1.1rem !important;
    max-width: 85% !important;
    margin: 0 auto;
  }
}

/* --- Video Section --- */
.video-section {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.video-container {
  position: relative;
  width: 100%;
  height: 70vh; /* 70% of viewport height */
  min-height: 400px;
  background-color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.background-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
  opacity: 0.6; /* darken slightly so text is readable */
  transition: opacity 0.5s ease;
}

.video-container.playing .background-video {
  opacity: 1;
}

.video-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(30, 58, 43, 0.4);
  transition: opacity 0.5s ease;
}

.video-container.playing .video-overlay {
  opacity: 0;
  pointer-events: none; /* Let clicks pass through to video controls if added */
}

.play-btn {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background-color: rgba(212, 175, 55, 0.9);
  color: var(--color-bg);
  border: none;
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.7);
  animation: pulse-gold 2s infinite;
  transition: transform 0.3s ease, background-color 0.3s ease;
  padding-left: 5px; /* offset play icon slightly */
}

.play-btn:hover {
  background-color: var(--color-gold);
  transform: scale(1.1);
  animation: none;
}

@keyframes pulse-gold {
  0% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.7); }
  70% { box-shadow: 0 0 0 20px rgba(212, 175, 55, 0); }
  100% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0); }
}

/* Wholesale CTA Standard */
.wholesale-cta {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-3xl) var(--space-xl);
  background-color: #050a07;
}
.cta-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.15) 0%, rgba(5, 10, 7, 0.8) 100%);
  z-index: 1;
}
.cta-bg {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.6;
}
.cta-content {
  position: relative;
  z-index: 2;
  text-align: center;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: var(--space-2xl);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(212, 175, 55, 0.2);
  max-width: 800px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}
.cta-content h2 {
  color: var(--color-gold);
  margin-bottom: var(--space-md);
  font-size: 2.5rem;
}
.cta-content p {
  color: #fff;
  margin-bottom: var(--space-lg);
  font-size: 1.2rem;
}

/* Mobile Menu Open State Visibility Overrides */
.header.menu-open {
  background-color: transparent !important;
  box-shadow: none !important;
  border-bottom: none !important;
}

.header.menu-open::after {
  display: none !important; /* Hide scrolled bottom gold line */
}

.header.menu-open .logo-text {
  color: var(--color-primary) !important;
}

.header.menu-open .logo-text span {
  color: var(--color-gold) !important;
}

.header.menu-open .mobile-nav-toggle span {
  background-color: var(--color-primary) !important;
}

/* --- Fragrances Showcase Section --- */
.fragrances-showcase-section {
  background: linear-gradient(180deg, #121413 0%, #1e3a2b 100%);
  color: var(--color-bg);
  padding: var(--space-4xl) 0;
  position: relative;
  overflow: hidden;
}

.fragrances-showcase-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: radial-gradient(circle at 80% 20%, rgba(212, 175, 55, 0.08) 0%, transparent 60%);
  pointer-events: none;
  z-index: 1;
}

.fragrance-filters {
  display: flex;
  gap: var(--space-sm);
  justify-content: center;
  margin-bottom: var(--space-3xl);
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
}

.btn-filter {
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(250, 248, 245, 0.7);
  padding: 0.65rem 1.5rem;
  border-radius: var(--radius-round);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-filter:hover {
  border-color: var(--color-gold);
  color: var(--color-bg);
  background-color: rgba(255, 255, 255, 0.06);
}

.btn-filter.active {
  border-color: var(--color-gold);
  color: var(--color-gold-light);
  background-color: rgba(212, 175, 55, 0.12);
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.1);
}

.fragrance-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xl);
  position: relative;
  z-index: 2;
  transition: all 0.4s ease;
}

.fragrance-card {
  background-color: rgba(26, 29, 27, 0.45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: opacity 0.5s cubic-bezier(0.25, 1, 0.5, 1), transform 0.5s cubic-bezier(0.25, 1, 0.5, 1), border-color 0.3s ease, box-shadow 0.3s ease;
  transform: scale(1);
  opacity: 1;
}

.fragrance-card:hover {
  transform: translateY(-8px);
  border-color: rgba(212, 175, 55, 0.3);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.45);
}

.frag-img-wrap {
  position: relative;
  height: 200px;
  overflow: hidden;
  background-color: #0f1210;
}

.frag-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
  opacity: 0.85;
}

.fragrance-card:hover .frag-img-wrap img {
  transform: scale(1.08);
  opacity: 1;
}

.frag-card-content {
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  gap: var(--space-xs);
}

.frag-cat-label {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-gold);
  letter-spacing: 0.08em;
}

.fragrance-card h3 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--color-bg);
  margin: 0.1rem 0;
  font-weight: 500;
}

.frag-desc {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(250, 248, 245, 0.75);
  margin-bottom: var(--space-md);
}

.frag-explore-link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  color: var(--color-gold);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: var(--transition-fast);
  padding-top: var(--space-xs);
}

.frag-explore-link i {
  transition: transform 0.3s ease;
}

.frag-explore-link:hover {
  color: var(--color-gold-light);
}

.frag-explore-link:hover i {
  transform: translateX(4px);
}

/* Hidden Class for Filter Animation */
.fragrance-card.hidden {
  opacity: 0;
  transform: scale(0.9);
  pointer-events: none;
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  border: none;
  padding: 0;
  margin: 0;
}

@media (max-width: 1200px) {
  .fragrance-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  .fragrance-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .fragrance-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
  .fragrances-showcase-section {
    padding: var(--space-2xl) 0;
  }
  .fragrance-card h3 {
    font-size: 1.3rem;
  }
}

/* --- Products Page Collections Showcase --- */
.product-grid-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
  margin-top: var(--space-xl);
}

.product-display-card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-shadow: var(--shadow-sm);
  transition: opacity 0.5s cubic-bezier(0.25, 1, 0.5, 1), transform 0.5s cubic-bezier(0.25, 1, 0.5, 1), border-color 0.3s ease, box-shadow 0.3s ease;
}

.product-display-card:hover {
  transform: translateY(-8px);
  border-color: rgba(30, 58, 43, 0.15);
  box-shadow: var(--shadow-md);
}

.product-display-img-wrap {
  position: relative;
  height: 300px;
  overflow: hidden;
  background-color: #f7f5f0;
}

.product-display-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.product-display-card:hover .product-display-img-wrap img {
  transform: scale(1.06);
}

.product-display-content {
  padding: var(--space-xl);
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  gap: var(--space-xs);
}

.product-display-content h3 {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  color: var(--color-primary);
  margin: 0.2rem 0;
  font-weight: 500;
}

.product-display-content p {
  color: var(--color-text-muted);
  line-height: 1.6;
  font-size: 0.98rem;
  margin-bottom: var(--space-lg);
}

.product-display-actions {
  margin-top: auto;
  padding-top: var(--space-md);
}

/* Informational Notice Banner */
.catalog-notice {
  background-color: rgba(194, 125, 86, 0.07);
  border-left: 4px solid var(--color-terracotta);
  padding: 1rem 1.5rem;
  border-radius: var(--radius-sm);
  color: var(--color-text-main);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: var(--space-3xl);
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
}

.catalog-notice i {
  color: var(--color-terracotta);
  font-size: 1.3rem;
  margin-top: 2px;
}

@media (max-width: 1024px) {
  .product-grid-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .product-grid-container {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
  .product-display-img-wrap {
    height: 250px;
  }
  .catalog-notice {
    margin-bottom: var(--space-xl);
  }
}


/* --- MEGA MENU STYLES --- */
.has-mega-menu {
  position: static; 
  display: flex;
  align-items: center;
}

/* Use a pseudo-element on the link to bridge the gap to the absolute mega menu */
.has-mega-menu > a::before {
  content: '';
  position: absolute;
  top: 100%;
  left: -20px;
  right: -20px;
  height: 50px;
  background: transparent;
}


.mega-menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: var(--color-bg);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  padding: 3rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  transition: opacity 0.4s ease, transform 0.4s ease, visibility 0.4s;
  z-index: 1000;
  border-top: 2px solid var(--color-gold);
  
  display: grid;
  grid-template-columns: 1fr 1fr 1.2fr;
  gap: 3rem;
  align-items: start;
}

/* On hover of the parent, show the mega menu */
.has-mega-menu:hover .mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mega-menu-column {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mega-menu-heading {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--color-primary);
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 0.5rem;
  margin-bottom: 0.5rem;
}

.mega-menu-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.mega-menu-list li a {
  font-family: var(--font-sans);
  color: var(--color-text-main);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.3s ease, transform 0.3s ease;
  display: inline-block;
}

.mega-menu-list li a:hover {
  color: var(--color-terracotta);
  transform: translateX(5px);
}

/* Featured Column */
.mega-menu-featured {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  height: 100%;
  min-height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mega-menu-featured img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  transition: transform 0.6s ease;
}

.mega-menu-featured:hover img {
  transform: scale(1.05);
}

.mega-menu-featured::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8), rgba(0,0,0,0.2));
  z-index: 2;
}

.mega-menu-featured-content {
  position: relative;
  z-index: 3;
  text-align: center;
  color: #fff;
  padding: 2rem;
}

.mega-menu-featured-content h3 {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  color: var(--color-gold);
}

.mega-menu-featured-content p {
  font-size: 0.9rem;
  margin-bottom: 1rem;
  color: #f0f0f0;
}

/* Ensure the parent nav wrapper can contain the mega menu absolutely */
.header .container {
  position: relative;
}

/* Mobile Mega Menu Adjustments */
.mobile-has-mega-menu > a {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mobile-mega-menu {
  display: none;
  padding-left: 1.25rem;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
  border-left: 2px solid var(--color-gold);
}

.mobile-has-mega-menu.active .mobile-mega-menu {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  animation: fadeIn 0.3s ease-out forwards;
}

.mobile-has-mega-menu > .nav-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.mobile-has-mega-menu > .nav-link i {
  transition: transform 0.3s ease;
  font-size: 0.9em;
}

.mobile-has-mega-menu.active > .nav-link i {
  transform: rotate(180deg);
}

.mobile-mega-column-heading {
  font-family: var(--font-serif);
  color: var(--color-gold);
  font-size: 1.15rem;
  margin-bottom: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-align: left;
}

.mobile-mega-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  padding: 0;
}

.mobile-mega-list a {
  font-size: 1.05rem;
  color: var(--color-text);
  text-decoration: none;
  transition: color 0.3s ease, padding-left 0.3s ease;
  display: block;
  text-align: left;
}

.mobile-mega-list a:hover {
  color: var(--color-gold-light);
  padding-left: 0.3rem;
}

/* Premium Mobile Accordion Cards */
.mobile-accordion-group {
  background: rgba(20, 24, 22, 0.65);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.mobile-accordion-group:hover {
  border-color: var(--color-gold);
  background: rgba(25, 31, 28, 0.85);
  transform: translateX(4px);
}

.mobile-accordion-title {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  padding: 0.85rem 1rem !important;
  color: #e6e0d4 !important;
  text-decoration: none;
  font-size: 1.02rem;
}

.mobile-accordion-title i {
  color: var(--color-gold);
  margin-right: 0.6rem;
  width: 20px;
  text-align: center;
}

.badge-gold {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  background: rgba(212, 175, 55, 0.15);
  color: var(--color-gold);
  border: 1px solid rgba(212, 175, 55, 0.3);
}




/* --- SAVON MEGA MENU STYLES --- */
.savon-mega-menu-wrapper {
  position: static; 
  display: flex;
  align-items: center;
}

.savon-mega-menu-wrapper > a {
  position: relative;
}

.savon-mega-menu-wrapper > a::before {
  content: '';
  position: absolute;
  top: 100%;
  left: -20px;
  right: -20px;
  height: 50px;
  background: transparent;
}

.savon-mega-menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: var(--color-bg);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  transition: opacity 0.4s ease, transform 0.4s ease, visibility 0.4s;
  z-index: 1000;
  border-top: 2px solid var(--color-gold);
  
  display: flex; /* Sidebar + Content */
  min-height: 450px;
}

.savon-mega-menu-wrapper:hover .savon-mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Sidebar */
.savon-sidebar {
  width: 280px;
  background: transparent !important;
  border-right: 1px solid rgba(212, 175, 55, 0.25);
  padding: 2rem 0;
  flex-shrink: 0;
}

.savon-tab {
  padding: 1rem 2rem;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: #e0d8c8;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 12px;
  border-left: 3px solid transparent;
}

.savon-tab i {
  color: var(--color-gold);
  font-size: 1.2rem;
  width: 24px;
  text-align: center;
  transition: transform 0.3s ease;
}

.savon-tab:hover, .savon-tab.active {
  background: rgba(212, 175, 55, 0.15);
  color: #ffffff;
  border-left-color: var(--color-gold);
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.savon-tab:hover i, .savon-tab.active i {
  transform: scale(1.1);
}

/* Content Area */
.savon-content {
  flex-grow: 1;
  padding: 3rem;
  background: transparent !important;
  position: relative;
  color: #f5f5f5;
}

.savon-panel {
  display: none;
  animation: fadeInMega 0.4s ease forwards;
}

.savon-panel.active {
  display: block;
}

@keyframes fadeInMega {
  from { opacity: 0; transform: translateX(-10px); }
  to { opacity: 1; transform: translateX(0); }
}

/* Grid Layouts */
.savon-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 2.5rem;
}

.savon-grid-simple {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.savon-col h4 {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--color-primary);
  border-bottom: 1px dashed var(--color-border);
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
  line-height: 1.4;
}

/* Lists */
.savon-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.multi-column-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem 1rem;
}

.multi-column-list-sm {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.2rem 1rem;
}

.savon-list a, .multi-column-list a, .multi-column-list-sm a {
  font-family: var(--font-sans);
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s ease, padding-left 0.2s ease;
  display: inline-block;
}

.savon-list a:hover, .multi-column-list a:hover, .multi-column-list-sm a:hover {
  color: var(--color-terracotta);
  padding-left: 5px;
}

/* Promo Images */
.savon-image-promo {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}

.savon-image-promo img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.6s ease;
  display: block;
}

.savon-image-promo:hover img {
  transform: scale(1.05);
}

.savon-promo-label {
  position: absolute;
  bottom: 15px;
  left: 15px;
  background: #fff;
  padding: 5px 12px;
  font-size: 0.75rem;
  font-weight: bold;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-primary);
  border-radius: 20px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}






/* Reference Image Layout */
.incense-carousel-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  position: relative;
  width: 100%;
}

.carousel-nav {
  background: #fff;
  border: 1px solid #e0dcd2;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #777;
  transition: all 0.3s ease;
  flex-shrink: 0;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.carousel-nav:hover {
  background: #fbfaf8;
  color: var(--color-primary);
  border-color: var(--color-gold);
}

.incense-carousel {
  display: flex;
  gap: 25px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  padding: 5px 2px;
  -ms-overflow-style: none;
  scrollbar-width: none;
  width: 100%;
  max-width: 700px;
}
.incense-carousel::-webkit-scrollbar {
  display: none;
}

.incense-card {
  flex: 0 0 calc(50% - 12.5px); 
  min-width: 320px;
  background: #fff;
  border: 1px solid #f0eee8;
  border-radius: 8px;
  padding: 25px;
  display: flex;
  flex-direction: column;
  height: 380px; 
  scroll-snap-align: start;
  box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}

.incense-card h4 {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: #3b5059; 
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 20px;
  border-bottom: 2px solid var(--color-gold);
  padding-bottom: 15px;
}

.incense-card h4 span {
  display: block;
  font-size: 0.85rem;
  color: #cc7a59; 
  margin-top: 8px;
  font-family: var(--font-sans);
  letter-spacing: 0.02em;
}

.incense-list-container {
  overflow-y: auto;
  flex-grow: 1;
  padding-right: 15px;
}

.incense-list-container::-webkit-scrollbar {
  width: 5px;
}
.incense-list-container::-webkit-scrollbar-track {
  background: #f7f6f2;
  border-radius: 4px;
}
.incense-list-container::-webkit-scrollbar-thumb {
  background: var(--color-gold);
  border-radius: 4px;
}

.incense-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.incense-list a {
  text-decoration: none;
  color: #333;
  font-size: 0.95rem;
  transition: color 0.2s;
}
.incense-list a:hover {
  color: var(--color-terracotta);
}

/* --- MEGA MENU DYNAMIC BACKGROUND & ANIMATIONS --- */

.savon-mega-menu {
  /* Replace solid background with Dark Luxurious glassmorphism */
  background: rgba(14, 18, 16, 0.92) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  overflow: hidden;
  border-top: 2px solid var(--color-gold);
}

/* Container for dynamic backgrounds */
.savon-mega-menu-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* Individual backgrounds */
.mega-bg-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.6s ease-in-out, transform 4s ease-out;
  transform: scale(1.02);
}

.mega-bg-layer::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(105deg, rgba(14, 18, 16, 0.94) 26%, rgba(14, 18, 16, 0.60) 60%, rgba(14, 18, 16, 0.30) 100%);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.mega-bg-layer.active {
  opacity: 1;
  transform: scale(1);
}

/* Ensure text and links sit above background layer */
.savon-sidebar, .savon-content {
  position: relative;
  z-index: 2;
}

.savon-col h4 {
  color: var(--color-gold) !important;
  border-bottom-color: rgba(212, 175, 55, 0.3) !important;
}

/* Glassmorphic Dark Cards inside Mega Menu */
.savon-mega-menu .incense-card {
  background: rgba(20, 24, 22, 0.78) !important;
  border: 1px solid rgba(212, 175, 55, 0.3) !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform 0.35s cubic-bezier(0.25, 0.8, 0.25, 1), border-color 0.35s ease, box-shadow 0.35s ease, background 0.35s ease !important;
}

.savon-mega-menu .incense-card:hover {
  transform: translateY(-6px) !important;
  border-color: rgba(212, 175, 55, 0.85) !important;
  background: rgba(25, 31, 28, 0.90) !important;
  box-shadow: 0 14px 38px rgba(212, 175, 55, 0.22), 0 0 18px rgba(212, 175, 55, 0.15) !important;
}

.savon-mega-menu .incense-card h4 {
  color: var(--color-gold) !important;
  border-bottom-color: rgba(212, 175, 55, 0.35) !important;
  transition: border-bottom-color 0.3s ease, text-shadow 0.3s ease;
}

.savon-mega-menu .incense-card:hover h4 {
  border-bottom-color: var(--color-gold) !important;
  text-shadow: 0 0 8px rgba(212, 175, 55, 0.4);
}

.savon-mega-menu .incense-card h4 span {
  color: #e0d4c0 !important;
}

/* Hover micro-animations for list items */
.incense-list a, .savon-list a {
  position: relative;
  display: inline-block;
  color: #e6e0d4 !important;
  transition: transform 0.3s ease, color 0.3s ease !important;
}

.incense-list a:hover, .savon-list a:hover {
  transform: translateX(6px);
  color: var(--color-gold) !important;
}

/* Image zoom on hover */
.incense-card, .savon-image-promo {
  overflow: hidden;
}

.incense-image-placeholder, .savon-image-promo img {
  transition: transform 0.8s ease !important;
}

.incense-card:hover .incense-image-placeholder, .savon-image-promo:hover img {
  transform: scale(1.08);
}

/* Staggered Entrance Animations */
.savon-sidebar {
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity 0.5s ease 0.1s, transform 0.5s ease 0.1s;
}
.savon-content {
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.5s ease 0.2s, transform 0.5s ease 0.2s;
}

.savon-mega-menu-wrapper:hover .savon-sidebar,
.savon-mega-menu-wrapper.open .savon-sidebar {
  opacity: 1;
  transform: translateX(0);
}
.savon-mega-menu-wrapper:hover .savon-content,
.savon-mega-menu-wrapper.open .savon-content {
  opacity: 1;
  transform: translateY(0);
}

.savon-mega-menu-wrapper.open .savon-mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* ============================================================
   COMPREHENSIVE MOBILE & TABLET RESPONSIVE FIXES
   ============================================================ */

/* --- TABLET (768px – 900px) --- */
@media (max-width: 900px) {
  /* Hide the desktop savon mega menu entirely on mobile/tablet */
  .savon-mega-menu-wrapper {
    display: none;
  }

  /* Hero titles scale smoothly on tablet */
  .hero-card h1,
  .hero h1 {
    font-size: 3.2rem;
  }
  .page-hero h1 {
    font-size: 2.8rem;
  }

  /* Header: clean responsive layout without overflow or edge crowding */
  .header {
    height: auto !important;
    min-height: 72px !important;
    padding: 0.65rem 0 !important;
    display: flex !important;
    align-items: center !important;
    top: 0 !important;
  }
  .header-container {
    width: 92% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    height: auto !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
  }
  .logo-wrapper {
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    flex: 1 !important;
    min-width: 0 !important;
    margin-right: 0.5rem !important;
  }
  .logo-text {
    font-size: 18px !important;
    white-space: normal !important;
    line-height: 1.2 !important;
  }
  .nav-actions {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    margin-left: auto !important;
    gap: 0 !important;
  }
  .mobile-nav-toggle {
    display: block !important;
    margin: 0 !important;
    padding: 4px !important;
  }

  /* Section padding tighter on tablet */
  .section {
    padding: var(--space-3xl) 0;
  }

  /* Mobile menu: fix center-alignment fighting with mega sub-menu */
  .mobile-menu > .mobile-has-mega-menu {
    text-align: left;
  }
}

/* --- MOBILE (max 768px) --- */
@media (max-width: 768px) {
  .header-container {
    width: 92% !important;
  }
  .logo-img {
    height: 32px !important;
    width: auto !important;
  }
  .logo-text {
    font-size: 15px !important;
    white-space: normal !important;
    line-height: 1.2 !important;
    max-width: calc(100vw - 110px) !important;
  }

  /* Hero headline */
  .hero-card h1,
  .hero h1 {
    font-size: 2.4rem !important;
    line-height: 1.2;
  }

  .hero-card p {
    font-size: 1rem;
  }

  /* Page hero headings */
  .page-hero h1 {
    font-size: 2.2rem;
  }

  .page-hero p {
    font-size: 1rem;
  }

  /* Section headings */
  h2 {
    font-size: 1.8rem;
  }

  /* Mobile menu: make sure sub-mega items align left properly overriding parent center */
  .mobile-menu > * {
    text-align: left;
  }

  .mobile-menu > .mobile-has-mega-menu {
    text-align: left;
  }

  .mobile-menu > a.nav-link {
    text-align: center; /* keep main links centered */
    width: fit-content;
    margin: 0 auto;
  }

  /* Mobile menu dropdown sub-items */
  .mobile-mega-menu {
    text-align: left;
  }

  /* Product slider items slightly wider on mobile for readability */
  .product-slider > * {
    flex: 0 0 240px;
  }

  /* Heritage slider: stack vertically for phones */
  .h-slide-title {
    font-size: 1.7rem;
  }

  .h-slide-step-num {
    font-size: 4rem;
  }

  /* Ingredient card height: shorter on mobile */
  .ingredient-card {
    height: 300px;
  }

  /* Fix video/about sections padding */
  .section {
    padding: var(--space-2xl) 0;
  }

  /* Feat slider height fix */
  .feat-slider-outer {
    height: 400px;
  }

  /* Make buttons full-width on small mobile in hero */
  .hero-actions .btn {
    width: 100%;
    max-width: 280px;
  }
}

/* --- SMALL PHONES (max 480px) --- */
@media (max-width: 480px) {
  /* Aggressive hero title shrink and fluid spacing */
  .hero-card h1,
  .hero h1 {
    font-size: 1.85rem !important;
    line-height: 1.2;
  }

  .hero-card p {
    font-size: 0.95rem;
    line-height: 1.5;
  }

  .hero-badge {
    font-size: 0.68rem;
    padding: 0.35rem 0.75rem;
  }

  /* Page hero */
  .page-hero h1 {
    font-size: 1.65rem;
  }

  /* Header logo: resize and allow dynamic wrapping on tiny screens */
  .logo-img {
    height: 28px !important;
  }
  .logo-text {
    display: block;
    font-size: 15px;
    white-space: normal;
    line-height: 1.2;
    max-width: calc(100vw - 110px);
  }

  /* Footer: tighter spacing */
  .footer {
    padding: var(--space-2xl) 0 var(--space-lg) 0;
  }

  /* Mobile menu slightly tighter padding */
  .mobile-menu {
    padding-top: 80px;
    gap: var(--space-sm);
  }

  .mobile-menu .nav-link {
    font-size: 1.2rem;
  }

  /* Product slider items */
  .product-slider > * {
    flex: 0 0 210px;
  }

  /* Ingredient cards */
  .ingredient-card {
    height: 260px;
  }

  /* Feature cards grid */
  .grid-2 {
    grid-template-columns: 1fr;
  }
}

