/* ==========================================================================
   Anu Herbs Hair Oil Landing Page CSS
   ========================================================================== */

/* --- Google Fonts Import --- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400..900;1,400..900&family=Outfit:wght@100..900&display=swap');

/* --- Design Tokens & CSS Variables --- */
:root {
  --bg-primary: #FAF7F2;     /* Warm organic cream */
  --bg-secondary: #F3ECE1;   /* Soft warm taupe */
  --bg-card: #FFFFFF;        /* Pure white for container cards */
  --primary: #2D4B3E;        /* Luxurious forest green */
  --primary-light: #446C5A;
  --primary-dark: #1F332A;
  --secondary: #7C9A85;      /* Calming sage green */
  --accent-gold: #D4AF37;    /* Premium golden oil representation */
  --accent-gold-dark: #B5932A;
  --text-main: #1C2A22;      /* Soft off-black for high legibility */
  --text-muted: #54665C;     /* Sage-muted text */
  --highlight-red: #D97D64;  /* Hibiscus coral red for highlight elements */
  --highlight-red-light: #F9EBE7;
  --white: #FFFFFF;
  --border-color: rgba(45, 75, 62, 0.1);
  
  /* Shadows */
  --shadow-sm: 0 4px 12px rgba(45, 75, 62, 0.04);
  --shadow-md: 0 8px 24px rgba(45, 75, 62, 0.06);
  --shadow-lg: 0 16px 48px rgba(45, 75, 62, 0.1);
  --shadow-inner: inset 0 2px 4px rgba(0,0,0,0.06);
  
  /* Transitions */
  --transition-smooth: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.15s ease;
  
  /* Fonts */
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Outfit', sans-serif;
  
  /* Layout constraints */
  --max-width: 1280px;
  --header-height: 80px;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.6;
  overflow-x: hidden;
}

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

ul {
  list-style: none;
}

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

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

button {
  cursor: pointer;
}

/* --- Typography Utilities --- */
.font-serif { font-family: var(--font-serif); }
.font-sans { font-family: var(--font-sans); }

/* --- Layout Utilities --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section-padding {
  padding: 100px 0;
}

@media (max-width: 768px) {
  .section-padding {
    padding: 60px 0;
  }
}

/* --- Header & Announcement --- */
.promo-bar {
  background-color: var(--primary-dark);
  color: var(--bg-primary);
  text-align: center;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 8px 16px;
  position: relative;
  z-index: 101;
}

.promo-bar span {
  display: inline-block;
  animation: pulse-promo 3s infinite ease-in-out;
}

@keyframes pulse-promo {
  0%, 100% { opacity: 0.9; }
  50% { opacity: 0.6; }
}

header {
  background-color: rgba(250, 247, 242, 0.95);
  backdrop-filter: blur(10px);
  height: var(--header-height);
  width: 100%;
  position: sticky;
  top: 0;
  left: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition-smooth);
}

header.scrolled {
  box-shadow: var(--shadow-sm);
  background-color: var(--bg-primary);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-icon {
  width: 44px;
  height: 44px;
  font-size: 20px;
  background-color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-gold);
  font-weight: bold;
}

.logo-text {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.5px;
}

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

.nav-link {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-main);
  transition: var(--transition-fast);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: var(--transition-fast);
}

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

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

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

.cart-trigger {
  position: relative;
  background: var(--bg-secondary);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.cart-trigger:hover {
  background: var(--primary);
  color: var(--white);
}

.cart-count {
  position: absolute;
  top: -4px;
  right: -4px;
  background-color: var(--highlight-red);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  min-width: 20px;
  height: 20px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border: 2px solid var(--bg-primary);
}

.hamburger-btn {
  display: none;
  flex-direction: column;
  gap: 6px;
  width: 24px;
  justify-content: center;
  cursor: pointer;
}

.hamburger-btn span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--primary);
  transition: var(--transition-smooth);
}

/* --- Sticky Header Responsive Mobile Menu --- */
@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: calc(var(--header-height) + 33px); /* account for promo bar */
    left: -100%;
    width: 100%;
    height: calc(100vh - var(--header-height) - 33px);
    background-color: var(--bg-primary);
    flex-direction: column;
    padding: 40px 24px;
    gap: 24px;
    transition: var(--transition-smooth);
    border-top: 1px solid var(--border-color);
  }
  
  .nav-menu.open {
    left: 0;
  }
  
  .hamburger-btn {
    display: flex;
  }
  
  .hamburger-btn.open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  .hamburger-btn.open span:nth-child(2) {
    opacity: 0;
  }
  .hamburger-btn.open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
}

/* --- Reusable UI Elements --- */
.section-title-wrapper {
  text-align: center;
  margin-bottom: 60px;
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
}

.section-subtitle {
  color: var(--secondary);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 12px;
  display: block;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 42px;
  line-height: 1.2;
  color: var(--primary);
  margin-bottom: 16px;
}

@media (max-width: 768px) {
  .section-title {
    font-size: 32px;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 36px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 50px;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  gap: 10px;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--white);
}

.btn-primary:hover {
  background-color: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background-color: var(--white);
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-secondary:hover {
  background-color: var(--bg-secondary);
  transform: translateY(-2px);
}

.btn-accent {
  background-color: var(--accent-gold);
  color: var(--primary-dark);
  font-weight: 700;
}

.btn-accent:hover {
  background-color: var(--accent-gold-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-full {
  width: 100%;
}

/* Badge list */
.badge-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.badge-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--bg-secondary);
  color: var(--primary-dark);
  padding: 8px 16px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 500;
  border: 1px solid rgba(45, 75, 62, 0.05);
}

.badge-item svg {
  color: var(--accent-gold-dark);
  flex-shrink: 0;
}

/* --- Hero Section --- */
.hero {
  min-height: calc(100vh - var(--header-height) - 33px);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 60px 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}

@media (max-width: 991px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  .hero-left {
    order: 2;
  }
  .hero-right {
    order: 1;
    display: flex;
    justify-content: center;
  }
}

.hero-tag {
  background-color: var(--highlight-red-light);
  color: var(--highlight-red);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 20px;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: 56px;
  line-height: 1.15;
  color: var(--primary);
  margin-bottom: 24px;
}

.hero-title span {
  font-style: italic;
  color: var(--accent-gold-dark);
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 40px;
  }
}

.hero-description {
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 32px;
  max-width: 580px;
}

@media (max-width: 991px) {
  .hero-description {
    margin-left: auto;
    margin-right: auto;
  }
  .badge-group {
    justify-content: center;
  }
}

.hero-ctas {
  display: flex;
  gap: 16px;
  margin-bottom: 40px;
}

@media (max-width: 576px) {
  .hero-ctas {
    flex-direction: column;
    gap: 12px;
  }
}

.hero-image-outer {
  position: relative;
  width: 100%;
  max-width: 100%;
}

.hero-image-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 0;
  box-shadow: none;
}

.hero-image {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  border-radius: 0;
  box-shadow: none;
  display: block;
  transition: var(--transition-smooth);
  animation: float-bottle 6s ease-in-out infinite;
}

.hero-image:hover {
  transform: scale(1.02);
}

.hero-image-gradient {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, transparent 60%, var(--bg-primary) 100%);
  z-index: 2;
  pointer-events: none;
}

/* --- Desktop Hero Layout (Split Full-Bleed Screen) --- */
@media (min-width: 992px) {
  .hero {
    position: relative;
    overflow: hidden;
    min-height: 680px;
  }

  .hero-grid {
    grid-template-columns: 1.2fr 0.8fr; /* Keeps text in left grid, leaves right side for background image */
  }

  .hero-right {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 52vw; /* Increased width to move the image container further to the left */
    height: 100%;
    z-index: 1;
  }

  .hero-image-outer, .hero-image-container {
    width: 100%;
    height: 100%;
  }

  .hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 80% center; /* Align more to the right, pushing the bottle leftwards into view */
    animation: none; /* Turn off float animation for solid full-bleed layout */
  }

  .hero-image-gradient {
    /* Shorter, sharper gradient that fades to transparent at 45% width, keeping the bottle sharp and un-faded */
    background: linear-gradient(to right, var(--bg-primary) 0%, rgba(250, 247, 242, 0.85) 12%, rgba(250, 247, 242, 0.3) 30%, transparent 45%);
  }

}

@keyframes float-bottle {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* Trust review badge in hero */
.hero-reviews-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--white);
  padding: 12px 24px;
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  margin-top: 24px;
  width: fit-content;
}

.hero-reviews-stars {
  color: var(--accent-gold);
  display: flex;
  gap: 2px;
}

.hero-reviews-text {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
}

.hero-reviews-text span {
  font-weight: 400;
  color: var(--text-muted);
  display: block;
}

/* --- Features Badges Grid --- */
.features-strip {
  background-color: var(--primary);
  color: var(--bg-primary);
  padding: 40px 0;
  border-top: 1px solid rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.features-strip-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

@media (max-width: 991px) {
  .features-strip-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }
}

@media (max-width: 576px) {
  .features-strip-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

.feature-strip-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.feature-strip-icon {
  width: 56px;
  height: 56px;
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-gold);
  font-size: 24px;
  border: 1px solid rgba(255,255,255,0.1);
  transition: var(--transition-smooth);
}

.feature-strip-item:hover .feature-strip-icon {
  background-color: var(--accent-gold);
  color: var(--primary-dark);
  transform: rotateY(180deg);
}

.feature-strip-title {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 600;
  color: var(--white);
}

.feature-strip-desc {
  font-size: 13px;
  color: rgba(250, 247, 242, 0.7);
  max-width: 200px;
}

/* --- "Factory Concept" Interactive Tour --- */
.factory-tour {
  background-color: var(--bg-secondary);
}

.factory-tour-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}

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

.factory-interactive-container {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 4px solid var(--white);
}

.factory-img {
  width: 100%;
  display: block;
}

/* Hotspots overlay */
.hotspot {
  position: absolute;
  width: 32px;
  height: 32px;
  background-color: rgba(212, 175, 55, 0.85); /* Accent gold transparent */
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  border: 2px solid var(--white);
  box-shadow: var(--shadow-md);
  transition: var(--transition-smooth);
}

.hotspot::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid var(--accent-gold);
  animation: pulse-hotspot 2s infinite ease-out;
  box-sizing: border-box;
}

.hotspot svg {
  color: var(--primary-dark);
  font-size: 14px;
}

.hotspot:hover {
  transform: scale(1.2);
  background-color: var(--primary);
}

.hotspot:hover svg {
  color: var(--white);
}

@keyframes pulse-hotspot {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(2.2); opacity: 0; }
}

/* Hotspots positions (calibrated to factory render details) */
.hotspot-ingredients { top: 46%; left: 9%; }    /* Wooden checklist board */
.hotspot-purity { top: 21%; left: 18%; }         /* Zero Chemicals board */
.hotspot-bottle { top: 35%; left: 50%; }         /* Main Bottle center */
.hotspot-shipping { top: 72%; left: 16%; }       /* Delivery Van */
.hotspot-coldpressed { top: 38%; left: 74%; }    /* Cold Press Unit */
.hotspot-quality { top: 58%; left: 88%; }        /* Quality Checked seal tank */

/* Details cards column */
.factory-info-panel {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.factory-info-card {
  background: var(--bg-card);
  padding: 24px;
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  border-left: 5px solid var(--secondary);
  transition: var(--transition-smooth);
  cursor: pointer;
}

.factory-info-card.active {
  border-left-color: var(--accent-gold);
  box-shadow: var(--shadow-md);
  transform: translateX(6px);
}

.factory-info-card h4 {
  font-family: var(--font-serif);
  font-size: 20px;
  color: var(--primary);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.factory-info-card p {
  color: var(--text-muted);
  font-size: 14.5px;
}

.factory-prompt-mobile {
  display: none;
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  font-style: italic;
  margin-top: 10px;
}

@media (max-width: 991px) {
  .factory-prompt-mobile {
    display: block;
  }
}

/* --- Ingredients Explorer --- */
.ingredients-explorer {
  background-color: var(--bg-primary);
}

.ingredients-tabs {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 48px;
}

.ingredients-tab-btn {
  padding: 12px 32px;
  font-weight: 600;
  font-size: 15px;
  border-radius: 30px;
  background-color: var(--bg-secondary);
  color: var(--text-muted);
  border: 1px solid rgba(45, 75, 62, 0.05);
  transition: var(--transition-smooth);
}

.ingredients-tab-btn.active {
  background-color: var(--primary);
  color: var(--white);
  box-shadow: var(--shadow-md);
}

.ingredients-grid-container {
  position: relative;
  min-height: 400px;
}

.ingredients-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  opacity: 0;
  transform: translateY(20px);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  pointer-events: none;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.ingredients-grid.active {
  opacity: 1;
  transform: translateY(0);
  position: relative;
  pointer-events: auto;
}

@media (max-width: 1200px) {
  .ingredients-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .ingredients-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

@media (max-width: 480px) {
  .ingredients-grid {
    grid-template-columns: 1fr;
  }
}

.ingredient-card {
  background-color: var(--bg-card);
  border-radius: 16px;
  padding: 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(45, 75, 62, 0.04);
  transition: var(--transition-smooth);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ingredient-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
  border-color: rgba(45, 75, 62, 0.15);
}

.ingredient-icon-wrapper {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background-color: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  margin-bottom: 20px;
  transition: var(--transition-smooth);
}

.ingredient-card:hover .ingredient-icon-wrapper {
  background-color: var(--primary);
  color: var(--white);
  transform: scale(1.05);
}

.ingredient-title {
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}

.ingredient-role {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-gold-dark);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.ingredient-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Detail overlay for ingredient information when clicked (Modal style) */
.ingredient-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(28, 42, 34, 0.6);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-smooth);
  padding: 24px;
}

.ingredient-modal.open {
  opacity: 1;
  pointer-events: auto;
}

.ingredient-modal-content {
  background-color: var(--bg-primary);
  border-radius: 24px;
  max-width: 500px;
  width: 100%;
  padding: 40px;
  position: relative;
  box-shadow: var(--shadow-lg);
  transform: scale(0.9);
  transition: var(--transition-smooth);
  border: 1px solid rgba(45, 75, 62, 0.1);
}

.ingredient-modal.open .ingredient-modal-content {
  transform: scale(1);
}

.ingredient-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
  background-color: var(--bg-secondary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-dark);
  font-weight: bold;
  font-size: 20px;
  transition: var(--transition-smooth);
}

.ingredient-modal-close:hover {
  background-color: var(--highlight-red);
  color: var(--white);
}

.modal-ingredient-icon {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background-color: var(--primary);
  color: var(--accent-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 44px;
  margin: 0 auto 24px auto;
  box-shadow: var(--shadow-md);
}

.modal-ingredient-title {
  font-family: var(--font-serif);
  font-size: 28px;
  color: var(--primary);
  text-align: center;
  margin-bottom: 6px;
}

.modal-ingredient-subtitle {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent-gold-dark);
  text-align: center;
  margin-bottom: 24px;
}

.modal-ingredient-body h5 {
  font-size: 15px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.modal-ingredient-body p {
  color: var(--text-muted);
  margin-bottom: 20px;
  font-size: 15px;
  line-height: 1.6;
}

.modal-ingredient-bullets {
  background-color: var(--bg-secondary);
  padding: 20px;
  border-radius: 16px;
}

.modal-ingredient-bullets li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--text-main);
  margin-bottom: 10px;
}

.modal-ingredient-bullets li:last-child {
  margin-bottom: 0;
}

.modal-ingredient-bullets li svg {
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 3px;
}

/* --- Why Choose Us (Comparison) --- */
.comparison {
  background-color: var(--bg-secondary);
}

.comparison-table-wrapper {
  overflow-x: auto;
  border-radius: 20px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  background-color: var(--white);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  min-width: 600px;
}

.comparison-table th, .comparison-table td {
  padding: 24px;
  border-bottom: 1px solid rgba(45, 75, 62, 0.08);
}

.comparison-table th {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
  background-color: rgba(243, 236, 225, 0.4);
}

.comparison-table th:first-child {
  border-top-left-radius: 20px;
}
.comparison-table th:last-child {
  border-top-right-radius: 20px;
}

.comparison-table td:first-child {
  font-weight: 600;
  color: var(--text-main);
}

.comparison-table tr:last-child td {
  border-bottom: none;
}

.comparison-table .product-col {
  width: 33%;
}

.comparison-table .anu-col {
  background-color: rgba(124, 154, 133, 0.08);
  font-weight: 700;
  color: var(--primary-dark);
}

.comparison-table .check-icon {
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.comparison-table .cross-icon {
  color: #c9654d;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* --- Detailed Collage Gallery Section --- */
.details-gallery {
  background-color: var(--bg-primary);
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 60px;
  align-items: center;
}

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

.gallery-img-container {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 4px solid var(--white);
  transition: var(--transition-smooth);
}

.gallery-img-container:hover {
  transform: scale(1.01);
  box-shadow: var(--shadow-lg);
}

.gallery-info-content {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.gallery-info-title {
  font-family: var(--font-serif);
  font-size: 38px;
  color: var(--primary);
  line-height: 1.25;
}

.gallery-info-desc {
  color: var(--text-muted);
  font-size: 16px;
}

.gallery-features-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 576px) {
  .gallery-features-list {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

.gallery-feature-card {
  background-color: var(--bg-card);
  padding: 20px;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(45, 75, 62, 0.03);
}

.gallery-feature-card h5 {
  font-family: var(--font-serif);
  font-size: 18px;
  color: var(--primary);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.gallery-feature-card h5 svg {
  color: var(--accent-gold-dark);
}

.gallery-feature-card p {
  color: var(--text-muted);
  font-size: 13.5px;
}

/* --- The Ritual (How to Use) --- */
.ritual {
  background-color: var(--bg-secondary);
}

.ritual-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  position: relative;
}

/* Connect line between steps */
.ritual-steps::before {
  content: '';
  position: absolute;
  top: 60px;
  left: 10%;
  right: 10%;
  height: 2px;
  background-color: rgba(45, 75, 62, 0.15);
  z-index: 1;
}

@media (max-width: 991px) {
  .ritual-steps {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .ritual-steps::before {
    display: none;
  }
}

.ritual-step {
  text-align: center;
  position: relative;
  z-index: 2;
}

.ritual-number {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background-color: var(--bg-card);
  color: var(--primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin: 0 auto 24px auto;
  box-shadow: var(--shadow-md);
  border: 3px solid var(--white);
  transition: var(--transition-smooth);
}

.ritual-step:hover .ritual-number {
  background-color: var(--primary);
  color: var(--white);
  border-color: var(--accent-gold);
  transform: translateY(-5px) scale(1.03);
}

.ritual-step-num {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent-gold-dark);
  letter-spacing: 1px;
}

.ritual-step:hover .ritual-step-num {
  color: var(--accent-gold);
}

.ritual-icon {
  font-size: 32px;
  margin-top: 4px;
}

.ritual-title {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}

.ritual-desc {
  font-size: 14.5px;
  color: var(--text-muted);
  max-width: 240px;
  margin: 0 auto;
}

/* --- Customer Reviews --- */
.reviews {
  background-color: var(--bg-primary);
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

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

.review-card {
  background-color: var(--bg-card);
  border-radius: 16px;
  padding: 32px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(45, 75, 62, 0.03);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition-smooth);
}

.review-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.review-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.reviewer-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.reviewer-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--bg-secondary);
  color: var(--primary);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  border: 1px solid rgba(45, 75, 62, 0.1);
}

.reviewer-name {
  font-weight: 600;
  font-size: 15px;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 6px;
}

.verified-badge {
  color: #3b82f6; /* Verified blue */
  display: inline-flex;
}

.review-stars {
  color: var(--accent-gold);
  display: flex;
  gap: 2px;
}

.review-text {
  color: var(--text-muted);
  font-size: 15px;
  font-style: italic;
  line-height: 1.6;
  margin-bottom: 20px;
}

.review-product-tag {
  font-size: 12px;
  font-weight: 600;
  color: var(--primary-light);
  background-color: rgba(124, 154, 133, 0.1);
  padding: 4px 10px;
  border-radius: 20px;
  align-self: flex-start;
}

/* --- FAQ Accordion --- */
.faq {
  background-color: var(--bg-secondary);
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background-color: var(--bg-card);
  border-radius: 12px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  border: 1px solid rgba(45, 75, 62, 0.03);
  transition: var(--transition-smooth);
}

.faq-item.active {
  box-shadow: var(--shadow-md);
  border-color: rgba(45, 75, 62, 0.1);
}

.faq-question {
  width: 100%;
  padding: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: left;
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
  color: var(--primary-dark);
}

.faq-icon-toggle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  transition: var(--transition-smooth);
  flex-shrink: 0;
}

.faq-item.active .faq-icon-toggle {
  background-color: var(--primary);
  color: var(--white);
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-answer-inner {
  padding: 0 24px 24px 24px;
  color: var(--text-muted);
  font-size: 15px;
  border-top: 1px solid rgba(45, 75, 62, 0.05);
}

/* --- Dynamic Sticky Buy Bar (Call to action bar) --- */
.sticky-buy-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: rgba(250, 247, 242, 0.98);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--border-color);
  padding: 16px 0;
  box-shadow: 0 -4px 20px rgba(45, 75, 62, 0.08);
  z-index: 99;
  transform: translateY(100%);
  transition: var(--transition-smooth);
}

.sticky-buy-bar.show {
  transform: translateY(0);
}

.sticky-bar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

@media (max-width: 576px) {
  .sticky-bar-container {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

.sticky-bar-product {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sticky-bar-product img {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  object-fit: cover;
}

.sticky-product-title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 16px;
  color: var(--primary-dark);
}

.sticky-product-price {
  font-size: 14px;
  color: var(--accent-gold-dark);
  font-weight: 700;
}

.sticky-product-price span {
  text-decoration: line-through;
  color: var(--text-muted);
  font-size: 12px;
  margin-right: 4px;
  font-weight: 400;
}

/* --- Slide-Out Cart / Checkout Drawer --- */
.cart-drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(28, 42, 34, 0.5);
  backdrop-filter: blur(3px);
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-smooth);
}

.cart-drawer-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: -500px;
  width: 100%;
  max-width: 480px;
  height: 100%;
  background-color: var(--bg-primary);
  z-index: 1001;
  box-shadow: var(--shadow-lg);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

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

@media (max-width: 500px) {
  .cart-drawer {
    max-width: 100%;
    right: -100%;
  }
}

.cart-header {
  padding: 24px;
  background-color: var(--white);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-header h3 {
  font-family: var(--font-serif);
  font-size: 22px;
  color: var(--primary);
}

.cart-close-btn {
  width: 36px;
  height: 36px;
  background-color: var(--bg-secondary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: bold;
  transition: var(--transition-smooth);
}

.cart-close-btn:hover {
  background-color: var(--highlight-red);
  color: var(--white);
}

.cart-body {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
}

.cart-product-card {
  background-color: var(--white);
  border-radius: 12px;
  padding: 16px;
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 16px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
}

.cart-product-img {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid var(--border-color);
}

.cart-product-info {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.cart-product-title {
  font-family: var(--font-serif);
  font-size: 17px;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 4px;
}

.cart-product-price {
  font-weight: 700;
  color: var(--accent-gold-dark);
}

.cart-qty-selectors {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
}

.qty-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 14px;
  transition: var(--transition-fast);
}

.qty-btn:hover {
  background-color: var(--primary);
  color: var(--white);
}

.qty-num {
  font-weight: 600;
  font-size: 15px;
  width: 20px;
  text-align: center;
}

/* Shipping Details Form inside Cart */
.checkout-form-section {
  background-color: var(--white);
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--shadow-sm);
  margin-top: 12px;
}

.checkout-form-title {
  font-family: var(--font-serif);
  font-size: 18px;
  color: var(--primary);
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 8px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 14.5px;
  color: var(--text-main);
  transition: var(--transition-fast);
}

.form-control:focus {
  border-color: var(--primary);
  background-color: var(--white);
  box-shadow: 0 0 0 3px rgba(45, 75, 62, 0.08);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.checkout-disclaimer {
  font-size: 12px;
  color: var(--highlight-red);
  background-color: var(--highlight-red-light);
  padding: 10px 14px;
  border-radius: 8px;
  margin-bottom: 16px;
  font-weight: 500;
  border-left: 3px solid var(--highlight-red);
}

/* Cart summary footer */
.cart-footer {
  background-color: var(--white);
  padding: 24px;
  border-top: 1px solid var(--border-color);
  box-shadow: 0 -4px 12px rgba(0,0,0,0.02);
}

.cart-summary-line {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 14.5px;
  color: var(--text-muted);
}

.cart-summary-line.total {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary-dark);
  margin-top: 8px;
  border-top: 1px dashed var(--border-color);
  padding-top: 8px;
  margin-bottom: 20px;
}

.cart-action-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
}



/* --- Footer --- */
footer {
  background-color: var(--primary-dark);
  color: var(--bg-primary);
  padding: 60px 0 30px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

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

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

.footer-logo {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 700;
  color: var(--accent-gold);
  margin-bottom: 16px;
}

.footer-about {
  color: rgba(250, 247, 242, 0.7);
  font-size: 14.5px;
  max-width: 320px;
  margin-bottom: 24px;
}

.footer-socials {
  display: flex;
  margin-top: 16px;
}

.footer-ig-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: rgba(255, 255, 255, 0.08);
  color: var(--white);
  padding: 10px 20px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: var(--transition-smooth);
}

.footer-ig-btn:hover {
  background-color: var(--accent-gold);
  color: var(--primary-dark);
  border-color: var(--accent-gold);
  transform: translateY(-2px);
}

.footer-title {
  font-family: var(--font-serif);
  font-size: 18px;
  color: var(--white);
  margin-bottom: 20px;
  font-weight: 600;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: rgba(250, 247, 242, 0.7);
  font-size: 14.5px;
  transition: var(--transition-fast);
}

.footer-links a:hover {
  color: var(--accent-gold);
  padding-left: 4px;
}

.footer-disclaimer {
  color: rgba(250, 247, 242, 0.45);
  font-size: 12px;
  line-height: 1.6;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13.5px;
  color: rgba(250, 247, 242, 0.5);
}

@media (max-width: 576px) {
  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

/* --- Added Header Tagline & Hero Tagline --- */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-text-wrapper {
  display: flex;
  flex-direction: column;
}

.logo-tagline {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--text-muted);
  font-weight: 600;
  margin-top: 2px;
}

/* Hero tagline */
.hero-tagline-title {
  font-family: var(--font-serif);
  font-size: 20px;
  font-style: italic;
  color: var(--accent-gold-dark);
  margin-bottom: 20px;
  font-weight: 600;
}

@media (max-width: 991px) {
  .hero-tagline-title {
    text-align: center;
  }
}

/* --- Handmade Philosophy Section --- */
.handmade-philosophy {
  background-color: var(--bg-primary);
  border-bottom: 1px solid var(--border-color);
}

.handmade-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}

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

.handmade-tagline {
  font-family: var(--font-serif);
  font-size: 22px;
  font-style: italic;
  color: var(--accent-gold-dark);
  margin-bottom: 20px;
  font-weight: 600;
}

.handmade-lead {
  font-size: 17px;
  color: var(--text-muted);
  margin-bottom: 32px;
  line-height: 1.6;
}

.handmade-steps-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.handmade-step-item {
  display: flex;
  gap: 16px;
}

.handmade-step-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(45, 75, 62, 0.05);
}

.handmade-step-item h4 {
  font-family: var(--font-serif);
  font-size: 18px;
  color: var(--primary-dark);
  margin-bottom: 6px;
}

.handmade-step-item p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
}

.handmade-image-wrapper {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 6px solid var(--white);
  transition: var(--transition-smooth);
}

.handmade-image-wrapper:hover {
  transform: translateY(-4px);
}

.handmade-img {
  width: 100%;
  display: block;
}

.handmade-badge-overlay {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background-color: var(--primary);
  color: var(--white);
  padding: 10px 20px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 700;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--accent-gold);
}

.logo-img {
  max-height: 160px;
  width: auto;
  object-fit: contain;
  mix-blend-mode: multiply;
  margin: -50px -55px; /* Large negative margins crop out massive empty space in the square logo */
}

.logo-text-fallback {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* --- Brand Preloader --- */
#brand-preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: var(--primary-dark);
  z-index: 99999; /* Higher than header and overlays */
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity 0.8s cubic-bezier(0.77, 0, 0.175, 1), transform 0.8s cubic-bezier(0.77, 0, 0.175, 1);
}

#brand-preloader.fade-out {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-100%);
}

.preloader-content {
  text-align: center;
  color: var(--white);
  padding: 30px;
  max-width: 600px;
}

.preloader-logo {
  font-family: var(--font-serif);
  font-size: 44px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
  opacity: 0;
  transform: translateY(20px);
  animation: preloader-fade-in 1s forwards 0.2s;
  letter-spacing: 1px;
}

.preloader-tagline {
  font-family: var(--font-serif);
  font-size: 26px;
  font-style: italic;
  color: var(--accent-gold);
  margin-bottom: 30px;
  opacity: 0;
  transform: translateY(20px);
  animation: preloader-fade-in 1.2s forwards 0.8s;
  letter-spacing: 0.5px;
  font-weight: 500;
}

.preloader-line {
  width: 0;
  height: 2px;
  background-color: var(--accent-gold);
  margin: 0 auto;
  animation: preloader-line-grow 1.5s forwards 0.5s;
}

@keyframes preloader-fade-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes preloader-line-grow {
  to {
    width: 240px;
  }
}

/* --- Handmade Text Highlight --- */
.highlight-handmade {
  color: var(--accent-gold-dark);
  font-style: italic;
  font-weight: 800;
}

/* --- Floating Instagram Button --- */
.floating-ig-btn {
  position: fixed;
  right: 30px;
  bottom: 30px;
  z-index: 98; /* just below sticky buy bar (99) and cart overlay (1000) */
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%,#d6249f 60%,#285AEB 90%);
  color: var(--white);
  border-radius: 50px;
  box-shadow: 0 4px 16px rgba(214, 36, 159, 0.3);
  overflow: hidden;
  height: 52px;
  width: 52px;
  transition: var(--transition-smooth);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.ig-btn-content {
  display: flex;
  align-items: center;
  width: 250px; /* fixed size inside to allow expansion */
  height: 100%;
  padding: 0 14px;
  gap: 12px;
}

.ig-btn-text {
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(-10px);
  transition: var(--transition-smooth);
}

/* Hover expand logic */
@media (min-width: 992px) {
  .floating-ig-btn:hover {
    width: 220px;
    box-shadow: 0 8px 24px rgba(214, 36, 159, 0.4);
    transform: translateY(-2px);
  }

  .floating-ig-btn:hover .ig-btn-text {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Active touch state */
.floating-ig-btn:active {
  transform: scale(0.95);
}

/* --- Pain Points Section --- */
.pain-points {
  background-color: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
}

.pain-points-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.pain-card {
  background-color: var(--bg-card);
  border-radius: 20px;
  padding: 36px 30px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(45, 75, 62, 0.04);
  position: relative;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.pain-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
  border-color: rgba(217, 125, 100, 0.2); /* Subtle reddish highlight on hover */
}

.pain-badge {
  position: absolute;
  top: -12px;
  left: 30px;
  background-color: var(--highlight-red);
  color: var(--white);
  padding: 4px 14px;
  border-radius: 30px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 4px 8px rgba(217, 125, 100, 0.2);
}

.pain-icon {
  font-size: 40px;
  margin-bottom: 20px;
  line-height: 1;
}

.pain-card-title {
  font-family: var(--font-serif);
  font-size: 22px;
  color: var(--primary-dark);
  margin-bottom: 12px;
  font-weight: 700;
}

.pain-card-desc {
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 24px;
  flex: 1;
}

.pain-solution {
  background-color: rgba(124, 154, 133, 0.08);
  border-left: 3px solid var(--secondary);
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 13.5px;
  color: var(--primary-dark);
  line-height: 1.5;
}

/* --- Before/After Hair Transformation Slider --- */
.transformation {
  background-color: var(--bg-primary);
  border-bottom: 1px solid var(--border-color);
}

.slider-wrapper {
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
}

.slider-container {
  position: relative;
  width: 100%;
  aspect-ratio: 1.6; /* 16:10 aspect ratio for a premium, wider desktop experience */
  overflow: hidden;
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
  border: 4px solid var(--white);
  background-color: var(--bg-secondary);
  transition: transform 0.3s ease;
}

@media (max-width: 768px) {
  .slider-container {
    aspect-ratio: 4 / 3; /* Adjust to a taller 4:3 ratio on tablet/mobile screens */
  }
}

.slider-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  display: block;
}

.slider-before-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  /* Clip-path crops the before image without squeezing or stretching */
  clip-path: polygon(0 0, var(--clip-percent, 50%) 0, var(--clip-percent, 50%) 100%, 0 100%);
  pointer-events: none;
}

.slider-before-container .slider-img-before {
  width: 100%;
  height: 100%;
}

.slider-label {
  position: absolute;
  top: 20px;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  z-index: 4;
  color: var(--white);
  box-shadow: var(--shadow-sm);
  pointer-events: none;
}

.label-after {
  right: 20px;
  background-color: var(--primary-dark);
  color: var(--accent-gold);
  border: 1.5px solid var(--accent-gold);
  font-family: var(--font-serif);
  font-style: italic;
  text-transform: none;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.label-before {
  left: 20px;
  background-color: rgba(243, 236, 225, 0.9);
  color: var(--text-muted);
  border: 1px solid rgba(45, 75, 62, 0.2);
  font-weight: 500;
  letter-spacing: 1px;
}

@media (max-width: 576px) {
  .slider-label {
    font-size: 10px;
    padding: 4px 10px;
    top: 12px;
  }
  .label-before {
    left: 12px;
    font-size: 9px;
  }
  .label-after {
    right: 12px;
    font-size: 11.5px;
  }
}

/* Draggable divider handle styling */
.slider-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 4px;
  background-color: var(--white);
  z-index: 3;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}

.slider-handle-line {
  width: 2px;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.8);
}

.slider-handle-button {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--accent-gold);
  border: 3px solid var(--white);
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  cursor: ew-resize;
  pointer-events: auto;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.slider-container:hover .slider-handle-button {
  transform: scale(1.05);
  background-color: var(--accent-gold-dark);
  color: var(--white);
}

/* Invisible range input spanning the whole container to capture drag coordinates */
.slider-input {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: ew-resize;
  z-index: 5;
}

/* Adjust position when sticky buy bar is visible on mobile */
@media (max-width: 768px) {
  .floating-ig-btn {
    right: 20px;
    bottom: 96px; /* Default height above vertical sticky bar */
    box-shadow: 0 4px 12px rgba(214, 36, 159, 0.25);
  }

  /* Shrink hotspots on touch screens */
  .hotspot {
    width: 26px;
    height: 26px;
    border-width: 1.5px;
  }
  .hotspot::after {
    border-width: 1.5px;
  }
  .hotspot svg {
    width: 10px;
    height: 10px;
  }

  /* Header mobile layout: Logo center, hamburger left, cart right */
  .header-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .logo {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px; /* Framed box to bound the logo content */
    height: 50px;
    overflow: hidden; /* Crops out massive outer white padding from logo.png */
    mix-blend-mode: multiply; /* Blends residual inner white transparently */
  }
  
  /* Compact logo size for mobile headers */
  .logo-img {
    max-height: 110px; /* Scale down to crop outer space cleanly */
    width: auto;
    margin: 0; /* Reset offset negative margins for perfect alignment */
    mix-blend-mode: multiply;
  }

  .header-actions {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    pointer-events: none;
  }

  .cart-trigger, .hamburger-btn {
    pointer-events: auto;
  }

  .hamburger-btn {
    order: -1; /* Move hamburger button to the left side */
  }

  /* End to end image layout on mobile */
  .hero-right {
    margin-left: -24px;
    margin-right: -24px;
    width: calc(100% + 48px);
    max-width: none;
  }

  .hero-image-outer {
    max-width: 100%;
    width: 100%;
    margin: 0;
  }

  .hero-image-container {
    border-radius: 0;
  }

  .hero-image {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    object-position: 80% center; /* Focus on the bottle */
  }

  .hero-reviews-badge {
    margin: 24px auto 0 auto;
  }

  /* Stack Pain Points cards on mobile/tablet viewports */
  .pain-points-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .pain-card {
    padding: 30px 24px;
  }
}

@media (max-width: 576px) {
  /* Optimize sticky buy bar layout: horizontal & slim instead of vertical stacking */
  .sticky-buy-bar {
    padding: 10px 0;
  }
  .sticky-bar-container {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
  }
  .sticky-bar-product img {
    display: none; /* Hide thumbnail to save horizontal space */
  }
  .sticky-product-title {
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 140px;
    display: block;
  }
  .sticky-product-price {
    font-size: 12.5px;
    margin-top: 1px;
    display: block;
  }
  .sticky-bar-container .btn {
    padding: 10px 20px;
    font-size: 14px;
    height: 40px;
  }

  /* Reposition Instagram button right above the slim sticky bar */
  .floating-ig-btn {
    right: 16px;
    bottom: 76px;
  }
}

@media (max-width: 480px) {
  /* Prevent promo bar text wrapping from looking cluttered */
  .promo-bar {
    font-size: 11px;
    padding: 6px 12px;
    letter-spacing: 0.8px;
  }

  /* Clean sizes for preloader elements */
  .preloader-logo {
    font-size: 34px;
  }
  .preloader-tagline {
    font-size: 19px;
    margin-bottom: 24px;
  }
  
  /* Hero title & descriptions fit */
  .hero-title {
    font-size: 30px;
    line-height: 1.25;
  }
  .hero-tagline-title {
    font-size: 16px;
    margin-bottom: 12px;
  }
  .hero-description {
    font-size: 14.5px;
    margin-bottom: 24px;
  }

  /* Stack ingredients tabs vertically for small screens */
  .ingredients-tabs {
    flex-direction: column;
    gap: 10px;
    align-items: stretch;
  }
  .ingredients-tab-btn {
    padding: 10px 20px;
    font-size: 14px;
  }

  /* Maximize space in cart drawer */
  .cart-body {
    padding: 16px;
  }
  .checkout-form-section {
    padding: 16px;
  }
}
