/* --- Core Styles & Resets --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: #18211b;
  background-color: #f7f5f0;
  line-height: 1.6;
}

body.no-scroll {
  overflow: hidden;
}

/* --- Animation Keyframes & Classes --- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  opacity: 0; /* Start hidden */
  animation-fill-mode: forwards; /* Keep state after animation */
}

.fade-in-up.is-visible {
  animation-name: fadeInUp;
  animation-duration: 0.8s;
  animation-timing-function: cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* --- Layout & Section Helpers --- */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
}

.section {
  padding: 72px 0;
}

.section-alt {
  padding: 72px 0;
  background-color: rgba(240, 234, 223, 0.5);
}

.section-title {
  font-size: 2rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: 12px;
}

.section-title.small {
  font-size: 1.4rem;
  text-align: left;
}

.section-subtitle {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 32px;
  font-size: 0.98rem;
  color: #5c6157;
}

.section-subtitle.small {
  text-align: left;
  margin: 0 0 16px;
}

/* --- Theming & Shared Components --- */
.accent {
  color: #2f7d4a;
}

.card {
  background-color: #ffffff;
  border-radius: 18px;
  padding: 20px 20px 22px;
  /* UPDATED: Deep, multi-layered shadow for a more premium "lifted" feel */
  box-shadow: 
    0 2.8px 2.2px rgba(0, 0, 0, 0.02), 
    0 6.7px 5.3px rgba(0, 0, 0, 0.028), 
    0 12.5px 10px rgba(0, 0, 0, 0.035), 
    0 22.3px 17.9px rgba(0, 0, 0, 0.042), 
    0 41.8px 33.4px rgba(0, 0, 0, 0.05), 
    0 100px 80px rgba(0, 0, 0, 0.07);
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.card:hover {
    /* Enhanced hover effect with more lift */
    transform: translateY(-5px);
    box-shadow: 
        0 4px 3px rgba(0, 0, 0, 0.025), 
        0 8px 7px rgba(0, 0, 0, 0.035), 
        0 15px 13px rgba(0, 0, 0, 0.045), 
        0 27px 23px rgba(0, 0, 0, 0.055), 
        0 50px 45px rgba(0, 0, 0, 0.065), 
        0 120px 100px rgba(0, 0, 0, 0.09);
}

.mini-card {
  padding: 16px;
}

/* --- Navbar --- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 245, 240, 0.8);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.nav-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
}

.logo {
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 0.04em;
}

.nav-links-desktop {
  display: flex;
  gap: 18px;
  align-items: center;
  font-size: 0.9rem;
}

.nav-links-desktop a {
  text-decoration: none;
  color: #333c35;
  position: relative;
  transition: color 0.2s ease;
}
.nav-links-desktop a:hover { color: #2f7d4a; }

.nav-links-desktop a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: #2f7d4a;
  transition: width 0.2s ease;
}

.nav-links-desktop a:hover::after {
  width: 100%;
}

/* --- Hamburger Button & Mobile Menu --- */
.hamburger-btn {
  display: none; /* Hidden by default, shown in media query */
  background: none;
  border: none;
  cursor: pointer;
  width: 24px;
  height: 24px;
  padding: 0;
  position: relative;
  z-index: 101;
}

.hamburger-btn span {
  display: block;
  width: 20px;
  height: 2px;
  background: #18211b;
  position: absolute;
  left: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger-btn span:nth-child(1) { transform: translateY(-6px); }
.hamburger-btn span:nth-child(3) { transform: translateY(6px); }

/* Active (X) state */
.hamburger-btn.is-active span:nth-child(1) { transform: rotate(45deg); }
.hamburger-btn.is-active span:nth-child(2) { opacity: 0; }
.hamburger-btn.is-active span:nth-child(3) { transform: rotate(-45deg); }


.mobile-nav-panel {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #f7f5f0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.86, 0, 0.07, 1);
}

.mobile-nav-panel.is-open {
  transform: translateX(0);
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: center;
}

.mobile-nav-link {
  text-decoration: none;
  color: #18211b;
  font-size: 1.5rem;
  font-weight: 500;
  padding: 8px 16px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Staggered animation for links */
.mobile-nav-panel.is-open .mobile-nav-link {
  opacity: 1;
  transform: translateY(0);
}

.mobile-nav-panel.is-open .mobile-nav-link:nth-child(1) { transition-delay: 0.15s; }
.mobile-nav-panel.is-open .mobile-nav-link:nth-child(2) { transition-delay: 0.2s; }
.mobile-nav-panel.is-open .mobile-nav-link:nth-child(3) { transition-delay: 0.25s; }
.mobile-nav-panel.is-open .mobile-nav-link:nth-child(4) { transition-delay: 0.3s; }
.mobile-nav-panel.is-open .mobile-nav-link:nth-child(5) { transition-delay: 0.35s; }


/* --- Buttons --- */
.btn {
  border: none;
  outline: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.95rem;
  padding: 10px 20px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.nav-buy-btn, .btn-primary {
  background-color: #2f7d4a;
  color: #ffffff;
  /* UPDATED: Softer, more realistic glow for buttons */
  box-shadow: 0 4px 14px rgba(47, 125, 74, 0.35);
}

.nav-buy-btn:hover, .btn-primary:hover {
  background-color: #2a6f42; /* Slightly darker on hover */
  transform: translateY(-2px);
  /* UPDATED: More intense and widespread glow on hover */
  box-shadow: 0 7px 25px rgba(47, 125, 74, 0.45);
}

.nav-buy-btn {
  padding: 8px 16px;
}

.btn-ghost {
  background-color: transparent;
  color: #2f7d4a;
  border: 1px solid rgba(47, 125, 74, 0.5);
}

.btn-ghost:hover {
    background-color: rgba(47, 125, 74, 0.05);
}

.btn-full {
  width: 100%;
  margin-top: 10px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

/* --- Hero Section --- */
.hero {
  padding: 80px 0 64px;
}

.hero-grid {
  display: grid;
  gap: 32px;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  align-items: center;
}

.hero-text h1 {
  font-size: 2.4rem;
  line-height: 1.2;
  margin-bottom: 16px;
}

.hero-subtitle {
  font-size: 0.98rem;
  color: #4e544c;
  margin-bottom: 16px;
}

.hero-benefits {
  list-style: none;
  margin-bottom: 20px;
  font-size: 0.9rem;
  color: #3e463f;
}

.hero-benefits li + li { margin-top: 6px; }

.hero-tagline {
  font-size: 0.8rem;
  color: #5c6157;
  margin-top: 16px;
}

.small-label {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 6px;
  color: #778372;
}

.hero-image-wrapper {
  position: relative;
  justify-self: center;
}

.hero-image {
  max-width: 280px;
  border-radius: 26px;
  display: block;
}

.hero-badge {
  position: absolute;
  bottom: 10px;
  right: -8px;
  background: #2f7d4a;
  color: #ffffff;
  padding: 10px 12px;
  border-radius: 16px;
  font-size: 0.8rem;
  box-shadow: 0 10px 25px rgba(13, 51, 28, 0.4);
  max-width: 180px;
}

.badge-title { display: block; font-weight: 600; }
.badge-subtitle { font-size: 0.7rem; }

/* --- Other Sections (Benefits, Ingredients, How-To, Reviews) --- */
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }

.how-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  align-items: flex-start;
}

.steps-list { padding-left: 18px; font-size: 0.95rem; }
.steps-list li + li { margin-top: 8px; }

.how-box {
  background-color: #ffffff;
  border-radius: 18px;
  padding: 18px 20px;
  box-shadow: 0 8px 20px rgba(34, 46, 39, 0.08);
}

.check-list { list-style: none; margin-top: 10px; }
.check-list li::before { content: "•"; margin-right: 6px; color: #2f7d4a; }

.ingredients-grid .card h3 { margin-bottom: 6px; font-size: 0.98rem; }
.ingredients-grid .card p { font-size: 0.85rem; color: #51564e; }

.review-text { font-size: 0.9rem; margin-bottom: 10px; }
.review-name { font-size: 0.84rem; color: #4b5148; }

/* --- Buy / Checkout Section --- */
.buy-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr);
  gap: 24px;
  align-items: flex-start;
}

.buy-product-card .product-volume { font-size: 0.88rem; color: #636960; margin-bottom: 10px; }

.purchase-details { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; border-top: 1px solid #eee; padding-top: 16px; }
.price-row { display: flex; align-items: center; justify-content: space-between; }
.mrp { font-size: 0.9rem; color: #848a81; text-decoration: line-through; margin-right: 6px; }
.selling { font-size: 1.1rem; font-weight: 600; }
.off-badge { background-color: #f2563f; color: #ffffff; font-size: 0.8rem; padding: 4px 9px; border-radius: 999px; }
.tax-info { font-size: 0.8rem; color: #687066; margin-bottom: 10px; }

.qty-row { display: flex; justify-content: space-between; align-items: center; }
.qty-row label { font-size: 0.9rem; }
.qty-controls { display: inline-flex; align-items: center; border-radius: 999px; border: 1px solid #d0d4cc; overflow: hidden; }
.qty-btn { border: none; background-color: transparent; width: 38px; height: 34px; font-size: 1.1rem; cursor: pointer; transition: background-color 0.1s ease; }
.qty-btn:hover { background-color: #f0eadf; }
#qty-input { width: 48px; border: none; text-align: center; outline: none; font-size: 0.95rem; background: transparent; }

.total-row { display: flex; align-items: baseline; justify-content: space-between; font-weight: 600; margin-top: 4px; font-size: 1rem; border-top: 1px dashed #ddd; padding-top: 12px; }
.total-amount { font-size: 1.2rem; }
.small-note { font-size: 0.78rem; margin-top: 8px; color: #6d746a; }

/* --- Image Gallery --- */
.image-gallery { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.main-image-container { border: 1px solid #eee; border-radius: 12px; overflow: hidden; }
.main-product-image { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: contain; }
.thumbnail-container { display: flex; justify-content: center; gap: 8px; }
.thumbnail-image { width: 50px; height: 50px; border-radius: 6px; cursor: pointer; border: 2px solid transparent; transition: border-color 0.2s ease, transform 0.2s ease; object-fit: contain; }
.thumbnail-image:hover { transform: scale(1.05); border-color: #ddd; }
.thumbnail-image.active { border-color: #2f7d4a; transform: scale(1.05); }

/* --- Checkout Form --- */
#checkout-container { transition: opacity 0.3s ease; }
.form-row { margin-bottom: 10px; }
.form-row label { display: block; font-size: 0.8rem; margin-bottom: 4px; }
.form-row input, .form-row textarea { width: 100%; padding: 8px 10px; border-radius: 10px; border: 1px solid #d0d4cc; outline: none; font-size: 0.9rem; font-family: inherit; background-color: #fdfcf9; transition: all 0.2s ease; }
.form-row input:focus, .form-row textarea:focus { border-color: #2f7d4a; background-color: #ffffff; box-shadow: 0 0 0 3px rgba(47, 125, 74, 0.1); }

.form-row.two-col { display: grid; gap: 10px; grid-template-columns: repeat(2, 1fr); }
.form-row.three-col { display: grid; gap: 10px; grid-template-columns: 1.1fr 1.1fr 0.8fr; }
.error-msg { display: block; min-height: 14px; font-size: 0.72rem; color: #c2382b; margin-top: 2px; }

/* --- Footer --- */
.footer { padding: 30px 0 16px; background-color: #1b241e; color: #f1f3ef; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 20px; font-size: 0.85rem; }
.footer h3, .footer h4 { margin-bottom: 8px; }
.footer a { color: #d7ddda; text-decoration: none; transition: color 0.2s ease; }
.footer a:hover { color: #ffffff; text-decoration: none; }
.footer ul { list-style: none; }
.footer li + li { margin-top: 4px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.1); margin-top: 16px; padding-top: 12px; font-size: 0.78rem; text-align: center; color: #a0a8a3; }

/* --- Responsive Design --- */
@media (max-width: 900px) {
  .nav-links-desktop { display: none; }
  .hamburger-btn { display: block; }

  .hero-grid { grid-template-columns: 1fr; }
  .hero-image-wrapper { order: -1; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .how-grid, .buy-grid,.footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .section-title { font-size: 1.6rem; }
  .hero-text h1 { font-size: 1.9rem; }
  .form-row.two-col, .form-row.three-col { grid-template-columns: 1fr; }
}

/* --- General Styles for Static Pages --- */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Page Header --- */
.page-header {
    background-color: #fff;
    padding: 60px 0;
    text-align: center;
    margin-bottom: 40px;
    border-bottom: 1px solid #e0e0e0;
}

.page-header h1 {
    font-size: 42px;
    margin: 0;
    color: #2f7d4a;
}

.page-header p {
    font-size: 18px;
    color: #5c6157;
    max-width: 600px;
    margin: 10px auto 0;
}

/* --- Main Content --- */
.page-content {
    padding: 40px 0;
}

.page-content h2 {
    font-size: 28px;
    color: #2f7d4a;
    margin-bottom: 20px;
}

.page-content p {
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 20px;
}

/* --- Contact Form --- */
.contact-form {
    background-color: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.form-row {
    margin-bottom: 20px;
}

.form-row label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-row input, .form-row textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-family: inherit;
    font-size: 16px;
}

/* --- Button --- */
.btn {
  border: none;
  outline: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.95rem;
  padding: 12px 24px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  gap: 6px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
  background-color: #2f7d4a;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(47, 125, 74, 0.35);
}

.btn:hover {
  background-color: #2a6f42;
  transform: translateY(-2px);
  box-shadow: 0 7px 25px rgba(47, 125, 74, 0.45);
}
