/* ==========================================================================
   HerbsByTifah — Public Site
   Palette and type drawn from the brand's own logo (forest green + antique
   gold on warm parchment) — built for this brand, not a generic template.
   Mobile-first: base styles are mobile, larger screens layer on via @media.
   ========================================================================== */

:root {
  --forest: #1b4332;
  --forest-deep: #0f2b1f;
  --gold: #b08d57;
  --gold-deep: #8f6f3f;
  --cream: #f6f1e4;
  --paper: #ffffff;
  --ink: #24301f;
  --ink-soft: #5c6354;
  --line: #e3dcc6;
  --sage: #eef1e6;
  --warn: #a6392f;
  --radius-lg: 22px;
  --radius-md: 14px;
  --maxw: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: 'Karla', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Fraunces', Georgia, serif;
  color: var(--forest-deep);
  line-height: 1.15;
  margin: 0 0 0.4em;
  font-weight: 600;
}

h1 { font-size: 34px; }
h2 { font-size: 28px; }
h3 { font-size: 20px; }
p { margin: 0 0 1em; max-width: 62ch; }
a { color: var(--forest); text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap;
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 100px;
  font-size: 15px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  text-align: center;
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn:active { transform: scale(0.98); }

.btn-primary { background: var(--forest); color: #fff; }
.btn-primary:hover { background: var(--forest-deep); text-decoration: none; }

.btn-gold { background: var(--gold); color: #fff; }
.btn-gold:hover { background: var(--gold-deep); text-decoration: none; }

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--forest);
  color: var(--forest);
}
.btn-outline:hover { background: var(--forest); color: #fff; text-decoration: none; }

.btn-whatsapp { background: #25D366; color: #fff; }
.btn-whatsapp:hover { background: #1fb958; text-decoration: none; }

.btn-block { width: 100%; }

/* ---------- Header / Nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 241, 228, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Fraunces', serif;
  font-size: 20px;
  color: var(--forest-deep);
  font-weight: 600;
}
.brand img { height: 38px; width: auto; }

.nav-links {
  display: none;
  gap: 28px;
  align-items: center;
}
.nav-links a {
  color: var(--ink);
  font-weight: 600;
  font-size: 15px;
}
.nav-links a:hover { color: var(--forest); }

.nav-toggle {
  display: inline-flex;
  background: none;
  border: none;
  font-size: 24px;
  color: var(--forest-deep);
  cursor: pointer;
  padding: 4px 8px;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  padding: 10px 20px 18px;
  border-top: 1px solid var(--line);
  background: var(--cream);
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  padding: 12px 0;
  color: var(--ink);
  font-weight: 600;
  border-bottom: 1px solid var(--line);
}

@media (min-width: 860px) {
  .nav-links { display: flex; }
  .nav-toggle { display: none; }
  .mobile-menu { display: none !important; }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 44px 0 60px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}

.hero-copy .eyebrow-leaf {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gold-deep);
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 14px;
}

.hero-copy h1 {
  font-size: 36px;
  margin-bottom: 16px;
}
.hero-copy h1 em {
  font-style: italic;
  color: var(--gold-deep);
}

.hero-copy p.lead {
  font-size: 17px;
  color: var(--ink-soft);
  margin-bottom: 26px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--sage);
  aspect-ratio: 4 / 3;
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; }

.hero-ring {
  position: absolute;
  width: 140px; height: 140px;
  border: 2px solid var(--gold);
  border-radius: 50%;
  opacity: 0.5;
  top: -40px; right: -40px;
  z-index: -1;
}

@media (min-width: 860px) {
  .hero { padding: 70px 0 90px; }
  .hero-grid { grid-template-columns: 1.05fr 0.95fr; gap: 50px; }
  .hero-copy h1 { font-size: 48px; }
}

/* ---------- Trust strip ---------- */

.trust-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.trust-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  padding: 22px 0;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--forest-deep);
}
.trust-item .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--gold); flex-shrink: 0;
}
@media (min-width: 700px) {
  .trust-inner { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Section shell ---------- */

.section { padding: 56px 0; }
.section-alt { background: var(--sage); }

.section-head { margin-bottom: 30px; }
.section-head h2 { margin-bottom: 8px; }
.section-head p { color: var(--ink-soft); font-size: 15px; }

.section-head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- Product grid ---------- */

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
@media (min-width: 700px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; }
}
@media (min-width: 1000px) {
  .product-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
}

.product-card {
  background: var(--paper);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s ease;
}
.product-card:hover { box-shadow: 0 10px 30px rgba(27,67,50,0.12); }

.product-card .thumb-wrap {
  aspect-ratio: 1 / 1;
  background: var(--sage);
  overflow: hidden;
}
.product-card .thumb-wrap img { width: 100%; height: 100%; object-fit: cover; }

.product-card .body {
  padding: 14px 14px 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.product-card h3 { font-size: 16px; margin-bottom: 4px; }
.product-card .desc {
  font-size: 13px;
  color: var(--ink-soft);
  margin-bottom: 10px;
  flex: 1;
}
.product-card .price {
  font-family: 'Fraunces', serif;
  color: var(--forest-deep);
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 12px;
}
.product-card .out-badge {
  display: inline-block;
  background: rgba(166,57,47,0.1);
  color: var(--warn);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 8px;
}

/* Spotlight — first/featured product, larger */
.spotlight {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 28px;
}
.spotlight .thumb-wrap { aspect-ratio: 4/3; background: var(--sage); }
.spotlight .thumb-wrap img { width: 100%; height: 100%; object-fit: cover; }
.spotlight .body { padding: 24px; }
.spotlight h3 { font-size: 22px; }
.spotlight .desc { font-size: 14px; -webkit-line-clamp: unset; }

@media (min-width: 800px) {
  .spotlight { grid-template-columns: 1fr 1fr; align-items: stretch; }
  .spotlight .body { padding: 34px; display: flex; flex-direction: column; justify-content: center; }
}

/* ---------- About split ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  align-items: center;
}
.split img {
  border-radius: var(--radius-lg);
  aspect-ratio: 4/3;
  object-fit: cover;
  width: 100%;
}
@media (min-width: 860px) {
  .split { grid-template-columns: 1fr 1fr; gap: 50px; }
  .split.reverse .split-media { order: 2; }
}

/* ---------- Testimonials ---------- */

.testimonial-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 760px) {
  .testimonial-row { grid-template-columns: repeat(3, 1fr); }
}
.testimonial {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 22px;
}
.testimonial p {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 16px;
  color: var(--forest-deep);
  margin-bottom: 12px;
}
.testimonial .name { font-size: 13px; font-weight: 700; color: var(--ink-soft); }

/* ---------- CTA banner ---------- */

.cta-banner {
  background: var(--forest);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 40px 26px;
  text-align: center;
}
.cta-banner h2 { color: #fff; }
.cta-banner p { color: rgba(255,255,255,0.8); margin: 0 auto 22px; }
.cta-banner .actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--forest-deep);
  color: rgba(255,255,255,0.85);
  padding: 44px 0 26px;
  margin-top: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  margin-bottom: 30px;
}
@media (min-width: 760px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
}
.site-footer h4 { color: #fff; font-size: 15px; margin-bottom: 12px; }
.site-footer .brand-block { font-family: 'Fraunces', serif; font-size: 20px; color: #fff; margin-bottom: 10px; }
.site-footer p, .site-footer a { color: rgba(255,255,255,0.7); font-size: 14px; }
.site-footer a:hover { color: #fff; }
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 18px;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  text-align: center;
}

/* ---------- Breadcrumb ---------- */

.breadcrumb { font-size: 13px; color: var(--ink-soft); margin-bottom: 20px; }
.breadcrumb a { color: var(--ink-soft); }
.breadcrumb a:hover { color: var(--forest); }

/* ---------- Product detail page ---------- */

.product-detail {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}
@media (min-width: 900px) {
  .product-detail { grid-template-columns: 1fr 1fr; gap: 50px; }
}

.pd-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--sage);
  aspect-ratio: 1/1;
}
.pd-media img { width: 100%; height: 100%; object-fit: cover; }

.pd-info h1 { font-size: 26px; margin-bottom: 10px; }
.pd-price {
  font-family: 'Fraunces', serif;
  font-size: 24px;
  color: var(--forest-deep);
  font-weight: 600;
  margin-bottom: 16px;
}
.pd-short { color: var(--ink-soft); margin-bottom: 20px; }

.variant-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}
.variant-pill {
  border: 1.5px solid var(--line);
  border-radius: 100px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  background: var(--paper);
  color: var(--ink);
}
.variant-pill input { display: none; }
.variant-pill.active,
.variant-pill:has(input:checked) {
  border-color: var(--forest);
  background: var(--forest);
  color: #fff;
}

.qty-row { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.qty-stepper {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--line);
  border-radius: 100px;
  overflow: hidden;
}
.qty-stepper button {
  background: var(--sage);
  border: none;
  width: 38px; height: 38px;
  font-size: 18px;
  cursor: pointer;
  color: var(--forest-deep);
}
.qty-stepper input {
  width: 44px;
  text-align: center;
  border: none;
  font-size: 15px;
  font-weight: 700;
  background: transparent;
}

.pd-actions { display: flex; flex-direction: column; gap: 10px; margin-bottom: 26px; }
@media (min-width: 480px) {
  .pd-actions { flex-direction: row; }
}

.pd-trust {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.desc-block { margin-top: 50px; }
.desc-block h2 { margin-bottom: 16px; }
.desc-list { padding-left: 0; list-style: none; margin: 0 0 20px; }
.desc-list li {
  padding-left: 28px;
  position: relative;
  margin-bottom: 10px;
  color: var(--ink);
}
.desc-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 7px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: rgba(176,141,87,0.18);
  border: 1.5px solid var(--gold);
}

/* ---------- Floating WhatsApp button ---------- */

.wa-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 60;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  color: #fff;
  font-size: 28px;
}
.wa-float:hover { background: #1fb958; text-decoration: none; }

/* ---------- Empty states ---------- */

.empty-state { text-align: center; padding: 60px 20px; color: var(--ink-soft); }
