/* ==========================================================================
   FAUJI HERBALS — Design tokens derived from the brand shield/badge logo
   Theme: disciplined, soldier-grade trust meets natural Ayurvedic heritage
   ========================================================================== */
:root {
  --forest: #142A1C;        /* deep military green — primary */
  --forest-light: #1F3D28;  /* lighter panel green */
  --brass: #C6A15B;         /* gold from the shield/star */
  --brass-light: #E4C77E;
  --brass-dark: #8B6F3A;
  --cream: #F6F1E4;         /* warm parchment background */
  --cream-dark: #EDE4CD;
  --ink: #201C12;           /* near-black warm text */
  --ink-soft: #52503f;
  --white: #FFFFFF;
  --success: #3E7A3A;
  --danger: #A23B2E;

  --font-display: 'Oswald', sans-serif;
  --font-body: 'Source Sans 3', 'Segoe UI', sans-serif;

  --radius: 4px;
  --shadow-soft: 0 8px 24px rgba(20, 42, 28, 0.12);
  --shadow-badge: 0 4px 14px rgba(139, 111, 58, 0.35);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, .display {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--forest);
  margin: 0 0 0.5em;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Header ---------- */
.site-header {
  background: var(--forest);
  color: var(--cream);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: var(--shadow-soft);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  padding-bottom: 12px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand img { height: 52px; width: auto; }
.brand-name {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 0.06em;
  color: var(--brass-light);
}
.nav-links { display: flex; gap: 28px; }
.nav-links a {
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cream);
  border-bottom: 2px solid transparent;
  padding-bottom: 4px;
  transition: border-color .2s, color .2s;
}
.nav-links a:hover { color: var(--brass-light); border-color: var(--brass); }

.header-actions { display: flex; align-items: center; gap: 14px; }

.cart-icon-link {
  position: relative;
  font-size: 20px;
  color: var(--cream);
  display: flex;
  align-items: center;
}
.cart-count {
  position: absolute;
  top: -8px;
  right: -12px;
  background: var(--brass);
  color: var(--forest);
  font-family: var(--font-display);
  font-size: 11px;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid var(--brass-dark);
  border-radius: 4px;
  cursor: pointer;
  padding: 0;
}
.menu-toggle span { display: block; width: 18px; height: 2px; background: var(--brass-light); margin: 0 auto; transition: transform .2s, opacity .2s; }
.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  display: none;
  background: var(--forest-light);
  border-top: 1px solid var(--brass-dark);
}
.mobile-nav.open { display: block; }
.mobile-nav a {
  display: block;
  padding: 14px 20px;
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--cream);
  border-bottom: 1px solid rgba(198,161,91,0.15);
}
.mobile-nav a:active, .mobile-nav a:hover { color: var(--brass-light); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 15px;
  padding: 14px 32px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn-brass {
  background: linear-gradient(180deg, var(--brass-light), var(--brass));
  color: var(--forest);
  box-shadow: var(--shadow-badge);
}
.btn-brass:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(139,111,58,.45); }
.btn-outline {
  background: transparent;
  border-color: var(--brass);
  color: var(--brass-light);
}
.btn-outline:hover { background: rgba(198,161,91,0.12); }
.btn-block { width: 100%; }
.btn:disabled { opacity: .6; cursor: not-allowed; transform: none; }

/* ---------- Hero (badge motif) ---------- */
.hero {
  position: relative;
  background: radial-gradient(circle at 80% 20%, var(--forest-light), var(--forest) 65%);
  color: var(--cream);
  overflow: hidden;
  padding: 72px 0 60px;
}
.hero::before {
  /* faint watermark shield, echoing the badge logo */
  content: "";
  position: absolute;
  right: -80px;
  top: -60px;
  width: 460px;
  height: 520px;
  background: linear-gradient(180deg, rgba(198,161,91,0.10), rgba(198,161,91,0.02));
  clip-path: polygon(50% 0%, 100% 22%, 100% 62%, 50% 100%, 0% 62%, 0% 22%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

/* Product page desktop: JS merges details-block into title-block, so this
   grid sees exactly 2 children (text | image) — identical behaviour to the
   homepage's .hero-grid. Mobile CSS (below, in the media query) handles the
   3-part Title -> Image -> Details stacking separately and is untouched. */
.hero-grid-product {
  position: relative;
  display: grid;
  grid-template-columns: minmax(320px, max-content) minmax(320px, 460px);
  gap: 60px;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 100%;
}
.hero-title-block { max-width: 480px; }
.hero-details-block { margin-top: 24px; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.16em;
  color: var(--brass-light);
  border: 1px solid var(--brass-dark);
  border-radius: 999px;
  padding: 6px 16px;
  margin-bottom: 18px;
}
.hero h1 {
  color: var(--white);
  font-size: 44px;
  line-height: 1.12;
  margin-bottom: 18px;
}
.hero h1 span { color: var(--brass-light); }
.hero p.lead {
  color: #D9D3C0;
  font-size: 17px;
  max-width: 46ch;
  margin-bottom: 28px;
}
.price-row {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 24px;
}
.price-now { font-family: var(--font-display); font-size: 34px; color: var(--brass-light); }
.price-old { text-decoration: line-through; color: #8B876F; font-size: 18px; }
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-media {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 3px solid var(--brass-dark);
}
.hero-media img { width: 100%; height: auto; cursor: zoom-in; }

.gallery-thumbs {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 4px;
  scrollbar-width: thin;
}
.gallery-thumb {
  flex: 0 0 auto;
  width: 64px; height: 64px; object-fit: cover;
  border-radius: 6px; cursor: pointer;
  border: 2px solid var(--cream-dark);
  transition: border-color .15s, transform .15s;
}
.gallery-thumb:hover { border-color: var(--brass); transform: translateY(-2px); }

.lightbox-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(20, 26, 18, 0.94);
  z-index: 500;
  align-items: center;
  justify-content: center;
}
.lightbox-overlay.open { display: flex; }
.lightbox-image {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
}
.lightbox-close {
  position: absolute; top: 18px; right: 22px;
  background: none; border: none; color: var(--cream);
  font-size: 34px; line-height: 1; cursor: pointer;
  width: 44px; height: 44px;
}
.lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.12); border: none; color: var(--cream);
  font-size: 30px; width: 46px; height: 46px; border-radius: 50%;
  cursor: pointer; align-items: center; justify-content: center;
  display: flex;
}
.lightbox-nav:hover { background: rgba(255,255,255,0.22); }
.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }

@media (max-width: 480px) {
  .lightbox-nav { width: 38px; height: 38px; font-size: 24px; }
  .lightbox-close { top: 10px; right: 12px; font-size: 28px; }
}

.trust-strip {
  background: var(--brass-dark);
  color: var(--cream);
  padding: 10px 0;
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.trust-strip .container { display: flex; gap: 32px; justify-content: center; flex-wrap: wrap; }

/* ---------- Section shell ---------- */
.section { padding: 64px 0; }
.section-alt { background: var(--cream-dark); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 40px; }
.section-head .kicker {
  font-family: var(--font-display);
  color: var(--brass-dark);
  font-size: 13px;
  letter-spacing: 0.18em;
  display: block;
  margin-bottom: 8px;
}
.section-head h2 { font-size: 30px; }
.section-head p { color: var(--ink-soft); }

.divider-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 8px 0 32px;
}
.divider-badge .line { flex: 1; max-width: 120px; height: 1px; background: var(--brass-dark); }
.divider-badge .star { color: var(--brass); font-size: 18px; }

/* ---------- Benefit / herb grid ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: var(--white);
  border: 1px solid var(--cream-dark);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-soft);
}
.card .num {
  font-family: var(--font-display);
  color: var(--brass);
  font-size: 13px;
  letter-spacing: .1em;
  margin-bottom: 10px;
  display: block;
}
.card h3 { font-size: 18px; margin-bottom: 8px; }
.card p { color: var(--ink-soft); font-size: 15px; margin: 0; }

/* ---------- Reviews ---------- */
.review-scroll { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.review-card {
  background: var(--forest);
  color: var(--cream);
  border-radius: var(--radius);
  padding: 24px;
  border-left: 4px solid var(--brass);
}
.review-card .stars { color: var(--brass-light); margin-bottom: 10px; font-size: 14px; }
.review-card p.quote { font-size: 15px; color: #E4DFC9; margin-bottom: 14px; }
.review-card .who { display: flex; align-items: center; gap: 10px; }
.review-card .who img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 2px solid var(--brass); }
.review-card .who .name { font-family: var(--font-display); font-size: 14px; }
.review-card .who .loc { font-size: 12px; color: #A9A489; }

.rating-summary { display: flex; align-items: center; gap: 24px; justify-content: center; margin-bottom: 34px; flex-wrap: wrap;}
.rating-summary .big { font-family: var(--font-display); font-size: 48px; color: var(--forest); }

/* ---------- FAQ ---------- */
.faq-item { border-bottom: 1px solid var(--cream-dark); padding: 18px 0; }
.faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 16px;
  color: var(--forest);
}
.faq-a { display: none; color: var(--ink-soft); margin-top: 10px; font-size: 15px; }
.faq-item.open .faq-a { display: block; }
.faq-item.open .faq-q .chevron { transform: rotate(180deg); }
.chevron { transition: transform .2s; color: var(--brass-dark); }

/* ---------- Checkout ---------- */
.checkout-grid { display: grid; grid-template-columns: 1fr 380px; gap: 32px; align-items: start; }
.contact-grid { display: grid; grid-template-columns: 320px 1fr; gap: 32px; align-items: start; }
.panel {
  background: var(--white);
  border: 1px solid var(--cream-dark);
  border-radius: 6px;
  padding: 28px;
  box-shadow: var(--shadow-soft);
}
.panel h3 { font-size: 18px; margin-bottom: 18px; border-bottom: 2px solid var(--brass); padding-bottom: 10px; }
.form-row { margin-bottom: 16px; }
.form-row label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--forest); }
.form-row .hint { font-size: 12px; color: var(--ink-soft); margin-top: 4px; }
.form-row input, .form-row textarea, .form-row select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #D8D0B8;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 15px;
  background: var(--cream);
}
.form-row input:focus, .form-row textarea:focus, .form-row select:focus {
  outline: 2px solid var(--brass);
  outline-offset: 1px;
  background: var(--white);
}
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.otp-box { display: flex; gap: 10px; }
.otp-box input { letter-spacing: .3em; text-align: center; font-family: var(--font-display); font-size: 20px; }

.summary-row { display: flex; justify-content: space-between; font-size: 15px; padding: 8px 0; color: var(--ink-soft); }
.summary-row.total { font-family: var(--font-display); font-size: 20px; color: var(--forest); border-top: 2px solid var(--brass); margin-top: 10px; padding-top: 14px; }
.summary-row .discount { color: var(--success); }

.qty-stepper { display: inline-flex; align-items: center; border: 1px solid #D8D0B8; border-radius: var(--radius); overflow: hidden; }
.qty-stepper button { width: 40px; height: 40px; background: var(--cream-dark); border: none; font-size: 18px; cursor: pointer; }
.qty-stepper input { width: 50px; text-align: center; border: none; font-size: 16px; background: var(--white); }

.alert { padding: 12px 16px; border-radius: var(--radius); font-size: 14px; margin-bottom: 16px; }
.alert-success { background: #E4EFE3; color: var(--success); border: 1px solid var(--success); }
.alert-error { background: #F5E3DF; color: var(--danger); border: 1px solid var(--danger); }

.badge-secure { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-soft); margin-top: 14px; }

.contact-info-item { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--cream-dark); }
.contact-info-item:last-child { border-bottom: none; }
.contact-info-item .icon {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--forest); color: var(--brass-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; flex-shrink: 0;
}
.contact-info-item a, .contact-info-item span.text { color: var(--ink); font-size: 15px; font-weight: 600; }
.contact-info-item a:hover { color: var(--brass-dark); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #C8C4B2; padding: 48px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 32px; }
.site-footer h4 { color: var(--brass-light); font-size: 14px; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; font-size: 14px; }
.site-footer a:hover { color: var(--brass-light); }
.footer-bottom { border-top: 1px solid #33301F; padding-top: 20px; font-size: 12px; color: #857F63; text-align: center; }

/* ==========================================================================
   Responsive — Tablet (≤1024px)
   ========================================================================== */
@media (max-width: 1024px) {
  .container { padding: 0 18px; }
  .hero { padding: 52px 0 44px; }
  .hero h1 { font-size: 36px; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .review-scroll { grid-template-columns: repeat(2, 1fr); }
  .checkout-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* ==========================================================================
   Responsive — Mobile & small tablet (≤768px)
   ========================================================================== */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .menu-toggle { display: flex; }

  .hero::before { width: 320px; height: 360px; right: -100px; top: -40px; }
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-grid > div, .hero-media-wrap { min-width: 0; width: 100%; }
  .hero { text-align: left; padding: 40px 0 36px; }
  .hero h1 { font-size: 30px; }
  .hero p.lead { font-size: 15px; }
  .price-now { font-size: 28px; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { width: 100%; }

  .hero-grid-product {
    display: flex;
    flex-direction: column;
    gap: 0;
  }
  .hero-grid-product::after { display: none; }
  .hero-title-block { order: 1; }
  .hero-grid-product .hero-media-wrap {
    float: none;
    width: 100%;
    min-width: 0;
    margin: 16px 0;
    order: 2;
  }
  .hero-details-block { margin-top: 0; order: 3; min-width: 0; }

  .trust-strip .container { gap: 16px; font-size: 11px; }

  .section { padding: 44px 0; }
  .section-head h2 { font-size: 24px; }

  .grid-3 { grid-template-columns: 1fr; gap: 18px; }
  .review-scroll { grid-template-columns: 1fr; gap: 16px; }
  .rating-summary { flex-direction: column; text-align: center; gap: 10px; }

  .footer-grid { grid-template-columns: 1fr; gap: 28px; text-align: left; }

  .panel { padding: 20px; }
  .two-col { grid-template-columns: 1fr; gap: 0; }
  .otp-box { flex-wrap: wrap; }
  .otp-box input { max-width: 100%; flex: 1 1 140px; }
  .checkout-grid { gap: 20px; }

  table.a-table { font-size: 13px; }
}

/* ==========================================================================
   Responsive — Small phones (≤480px)
   ========================================================================== */
@media (max-width: 480px) {
  .container { padding: 0 14px; }
  .brand img { height: 40px; }
  .brand-name { font-size: 17px; }

  .hero h1 { font-size: 25px; }
  .eyebrow { font-size: 11px; padding: 5px 12px; }
  .price-now { font-size: 24px; }
  .price-old { font-size: 15px; }

  .btn { padding: 13px 22px; font-size: 13px; }
  .card { padding: 20px; }
  .review-card { padding: 18px; }

  .qty-stepper button { width: 36px; height: 36px; }
  .qty-stepper input { width: 40px; }

  .summary-row.total { font-size: 17px; }
  .site-footer { padding: 36px 0 20px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}