/*
Theme Name: Ayulent
Theme URI: https://ayulent.com
Author: Ayulent / Orgalto Naturals Inc.
Description: Custom WooCommerce theme for Ayulent — plant-based vegan supplement capsules. Built around the brand's Ayurvedic roots, liquid-filled capsule technology, and certifications.
Version: 1.0.0
Requires PHP: 7.4
Text Domain: ayulent
*/

/* ==========================================================================
   Design tokens
   ========================================================================== */
:root {
  --color-bg: #FBF7EF;
  --color-bg-alt: #F3EEDF;
  --color-ink: #26251F;
  --color-ink-soft: #52503F;
  --color-forest: #1F3B2E;
  --color-forest-light: #2E5943;
  --color-gold: #D9A02B;
  --color-gold-dark: #B9841C;
  --color-rust: #C1531B;
  --color-cream-text: #F6F1E4;
  --color-line: #DDD3BE;
  --color-line-dark: rgba(246, 241, 228, 0.22);

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Work Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --content-max: 1220px;
  --content-pad: 24px;
  --radius: 2px;
}

/* ==========================================================================
   Reset + base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; }
html, body { overflow-x: hidden; }

body h1, body h2, body h3, body h4 {
  font-family: var(--font-display);
  font-weight: 560;
  line-height: 1.15;
  color: var(--color-forest);
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}
body h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); }
body h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
body h3 { font-size: 1.35rem; }

p { margin: 0 0 1em; max-width: 62ch; }
p.wide { max-width: none; }

.container {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--content-pad);
}

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

.section { padding: 88px 0; }
.section--tight { padding: 56px 0; }
.section--forest { background: var(--color-forest); color: var(--color-cream-text); }
.section--forest h2, .section--forest h3 { color: var(--color-cream-text); }
.section--alt { background: var(--color-bg-alt); }

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--color-rust);
  font-weight: 600;
  margin: 0 0 0.9em;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.btn--primary { background: var(--color-forest); color: var(--color-cream-text); }
.btn--primary:hover { background: var(--color-forest-light); }
.btn--gold { background: var(--color-gold); color: var(--color-forest); }
.btn--gold:hover { background: var(--color-gold-dark); }
.btn--outline { background: transparent; border-color: currentColor; }
.btn--outline:hover { background: rgba(0,0,0,0.05); }
.section--forest .btn--outline:hover { background: rgba(255,255,255,0.08); }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-line);
}

.trust-bar {
  background: var(--color-forest);
  color: var(--color-cream-text);
}
.trust-bar .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0;
  padding-top: 10px;
  padding-bottom: 10px;
  font-size: 0.85rem;
  font-weight: 500;
}
.trust-bar span {
  padding: 0 16px;
  border-left: 1px solid var(--color-line-dark);
}
.trust-bar span:first-child { border-left: none; }
@media (max-width: 700px) {
  .trust-bar .container { font-size: 0.72rem; }
  .trust-bar span { padding: 2px 8px; }
}
@media (max-width: 480px) {
  /* At phone width, 5 certification claims can't fit on one line without
     wrapping into a ragged, hard-to-scan mess. Showing the two that matter
     most for trust at a glance reads cleaner than a jumbled two-line wrap. */
  .trust-bar span:nth-child(n+3) { display: none; }
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  gap: 24px;
}

.site-logo {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--color-forest);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  flex: 1 1 auto;
}
.site-logo img { height: 40px; width: auto; }
@media (max-width: 480px) {
  .site-logo { font-size: 1.1rem; }
}

.primary-nav ul {
  display: flex;
  gap: 34px;
}
.primary-nav a {
  font-weight: 500;
  font-size: 0.98rem;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.primary-nav a:hover,
.primary-nav a.current-menu-item { border-color: var(--color-gold); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-shrink: 0;
}
.cart-link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.95rem;
}
.cart-count {
  background: var(--color-rust);
  color: #fff;
  border-radius: 50%;
  min-width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 8px;
}
.nav-toggle span, .nav-toggle::before, .nav-toggle::after {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-ink);
  margin: 5px 0;
}

@media (max-width: 860px) {
  .primary-nav { display: none; }
  .nav-toggle { display: block; }
  .site-nav.is-open .primary-nav {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-bg);
    border-top: 1px solid var(--color-line);
    padding: 8px 0;
  }
  .site-nav.is-open .primary-nav ul { flex-direction: column; gap: 0; }
  .site-nav.is-open .primary-nav a { display: block; padding: 14px var(--content-pad); }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
  padding: 76px 0;
}
.hero-copy .eyebrow { margin-bottom: 1em; }
.hero-copy p { font-size: 1.15rem; color: var(--color-ink-soft); }
.hero-actions { display: flex; gap: 16px; margin-top: 1.6em; flex-wrap: wrap; }

.hero-visual {
  position: relative;
  aspect-ratio: 4 / 5;
  background: var(--color-forest);
  overflow: hidden;
}
.hero-visual img {
  width: 100%; height: 100%; object-fit: cover;
  mix-blend-mode: normal;
}
.hero-visual .capsule-motif {
  position: absolute;
  inset: 0;
}

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding: 48px 0; }
  .hero-visual { aspect-ratio: 5 / 4; order: -1; }
}

/* Responsive video embed — 16:9, no layout shift regardless of screen width */
.video-embed {
  position: relative;
  width: 100%;
  max-width: 860px;
  margin: 32px auto 0;
  aspect-ratio: 16 / 9;
}
.video-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Vertical/Shorts variant — a 16:9 box badly letterboxes a 9:16 video */
.video-embed--vertical {
  max-width: 380px;
  aspect-ratio: 9 / 16;
}

/* ==========================================================================
   Capsule diagram / differentiation band
   ========================================================================== */
.capsule-band {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: center;
}
.capsule-diagram { display: flex; justify-content: center; }
.capsule-facts { display: flex; flex-direction: column; gap: 28px; }
.capsule-fact { border-left: 3px solid var(--color-gold); padding-left: 20px; }
.capsule-fact h3 { margin-bottom: 0.35em; }
.capsule-fact p { color: var(--color-ink-soft); margin-bottom: 0; }

@media (max-width: 860px) {
  .capsule-band { grid-template-columns: 1fr; gap: 40px; }
  .capsule-diagram svg { max-width: 220px; }
}

/* ==========================================================================
   Product grid (also used by WooCommerce shop/archive)
   ========================================================================== */
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.section-head p { color: var(--color-ink-soft); margin: 0; }

ul.products,
.product-grid {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 1px;
  background: var(--color-bg);
  border: 1px solid var(--color-line);
  list-style: none;
  margin: 0 !important;
  padding: 0 !important;
}
/* WooCommerce's own base stylesheet adds a float-clearing ::before/::after
   pseudo-element to ul.products. Harmless in a float layout, but once this
   is display:grid, that pseudo-element becomes a real (invisible) grid
   item and silently occupies the first cell, pushing every actual product
   over by one column. Killing it here. */
ul.products::before,
ul.products::after {
  content: none !important;
  display: none !important;
}
@media (max-width: 980px) { ul.products, .product-grid { grid-template-columns: repeat(2, 1fr) !important; } }
@media (max-width: 560px) { ul.products, .product-grid { grid-template-columns: 1fr !important; } }

ul.products li.product,
.product-card {
  background: var(--color-bg);
  padding: 28px 24px 26px;
  border-top: 3px solid var(--color-forest);
  box-shadow: 0 0 0 1px var(--color-line);
  position: relative;
  transition: background-color 0.15s ease;
  float: none !important;
  width: auto !important;
  margin: 0 !important;
  clear: none !important;
}
ul.products li.product:nth-child(4n+2),
.product-card:nth-child(4n+2) { border-top-color: var(--color-gold); }
ul.products li.product:nth-child(4n+3),
.product-card:nth-child(4n+3) { border-top-color: var(--color-rust); }
ul.products li.product:nth-child(4n+4),
.product-card:nth-child(4n+4) { border-top-color: var(--color-forest-light); }
ul.products li.product:hover,
.product-card:hover { background: var(--color-bg-alt); }

ul.products li.product img,
.product-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background: #fff;
  margin-bottom: 18px;
}
ul.products li.product > a {
  display: block;
}
ul.products li.product h2,
ul.products li.product .woocommerce-loop-product__title,
.product-card h3 {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-ink);
  margin-bottom: 6px;
}
ul.products li.product .price,
.product-card .price {
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--color-forest);
  font-size: 0.98rem;
}
ul.products li.product .star-rating { font-size: 0.85rem; margin-bottom: 6px; }
ul.products li.product .button,
.product-card .button {
  display: inline-block;
  margin-top: 14px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-forest);
  border-bottom: 1px solid var(--color-forest);
  padding-bottom: 2px;
  background: none;
}
ul.products li.product .onsale {
  position: absolute;
  top: 18px;
  right: 18px;
  background: var(--color-rust);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 0;
}

/* ==========================================================================
   Certifications strip
   ========================================================================== */
.cert-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border-top: 1px solid var(--color-line);
  border-bottom: 1px solid var(--color-line);
}
.cert-strip span {
  flex: 1 1 160px;
  text-align: center;
  padding: 22px 12px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-forest);
  border-left: 1px solid var(--color-line);
}
.cert-strip span:first-child { border-left: none; }

/* ==========================================================================
   Story / packaging band
   ========================================================================== */
.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.story-grid + .story-grid { margin-top: 80px; }
@media (max-width: 860px) {
  .story-grid { grid-template-columns: 1fr; gap: 28px; }
  .story-grid + .story-grid { margin-top: 48px; }
}

/* ==========================================================================
   Testimonials
   ========================================================================== */
.testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--color-line-dark);
}
.testimonial {
  padding: 32px 28px;
  background: var(--color-forest);
}
.testimonial p { color: var(--color-cream-text); font-size: 1.02rem; margin-bottom: 1.2em; }
.testimonial cite { font-style: normal; font-weight: 600; font-size: 0.88rem; color: var(--color-gold); }
@media (max-width: 860px) { .testimonials { grid-template-columns: 1fr; } }

/* ==========================================================================
   Newsletter
   ========================================================================== */
.newsletter { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.newsletter-form { display: flex; gap: 0; max-width: 420px; width: 100%; }
.newsletter-form input {
  flex: 1;
  padding: 14px 16px;
  border: 1px solid var(--color-line-dark);
  background: rgba(255,255,255,0.06);
  color: var(--color-cream-text);
  font-family: var(--font-body);
}
.newsletter-form input::placeholder { color: rgba(246,241,228,0.55); }
.newsletter-form button {
  padding: 14px 22px;
  background: var(--color-gold);
  color: var(--color-forest);
  border: none;
  font-weight: 700;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--color-forest); color: var(--color-cream-text); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding: 64px 0 40px;
}
.footer-grid h4 { color: var(--color-cream-text); font-size: 0.95rem; font-family: var(--font-body); font-weight: 700; margin-bottom: 1em; }
.footer-grid ul li { margin-bottom: 0.65em; }
.footer-grid a { color: rgba(246,241,228,0.82); }
.footer-grid a:hover { color: var(--color-gold); }
.footer-brand p { color: rgba(246,241,228,0.75); }
.footer-social { display: flex; gap: 16px; margin-top: 1.2em; }
.footer-bottom {
  border-top: 1px solid var(--color-line-dark);
  padding: 22px 0;
  font-size: 0.85rem;
  color: rgba(246,241,228,0.6);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Generic page content (About / FAQ / Contact fallback)
   ========================================================================== */
.page-hero { padding: 64px 0 32px; border-bottom: 1px solid var(--color-line); }
.page-content { padding: 56px 0; }
.page-content .container { max-width: 800px; }
.page-content h2 { margin-top: 1.4em; }
.page-content img { margin: 1.5em 0; }

/* Legal/policy pages need real visible numbering and bullets, unlike the
   custom-styled lists elsewhere on the site — the global reset strips
   list-style everywhere, so it has to be restored deliberately here. */
.page-content ol,
.page-content ul {
  list-style: revert;
  margin: 0 0 1.2em 1.4em;
  padding: 0;
}
.page-content ol { list-style-type: decimal; }
.page-content ul { list-style-type: disc; }
.page-content li { margin-bottom: 0.5em; color: var(--color-ink-soft); }
.page-content ol ul,
.page-content ul ul {
  margin-top: 0.5em;
}

/* WooCommerce single product / cart / checkout baseline */
.single-product div.product::after {
  content: '';
  display: block;
  clear: both;
}
.single-product .summary { padding-left: 32px; }
.single-product .product_title {
  font-size: clamp(1.9rem, 3vw, 2.4rem);
  margin-bottom: 0.3em;
}
.single-product .price {
  font-size: 1.5rem;
  color: var(--color-forest);
  font-family: var(--font-display);
  display: block;
  margin: 0.4em 0 1em;
}
.single-product .woocommerce-product-gallery { max-width: 100%; }
.single-product .woocommerce-product-gallery .flex-control-thumbs {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  margin-top: 12px;
}
.single-product .woocommerce-product-gallery .flex-control-thumbs li img {
  border: 1px solid var(--color-line);
  opacity: 0.7;
}
.single-product .woocommerce-product-gallery .flex-control-thumbs li img.flex-active,
.single-product .woocommerce-product-gallery .flex-control-thumbs li img:hover {
  opacity: 1;
  border-color: var(--color-forest);
}

/* WooCommerce renders the pack-size selector as a raw <table class="variations">
   (label cell + dropdown cell). Left completely unstyled, it inherits only
   WooCommerce's bare defaults — no line-height/spacing control, and on a
   narrow phone a table row doesn't reflow the way a normal block does, so
   the row can end up fighting the viewport width. Converting each row to a
   flex row (and stacking it on small screens) fixes this properly instead
   of just shrinking the font and hoping. */
.single-product table.variations,
.single-product table.variations tbody,
.single-product table.variations tr {
  display: block;
  width: 100%;
}
.single-product table.variations tr {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}
.single-product table.variations td.label,
.single-product table.variations th.label {
  width: auto;
  flex: 0 0 auto;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--color-forest);
  padding: 0;
}
.single-product table.variations td.value {
  flex: 1 1 auto;
  padding: 0;
}
.single-product table.variations select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  background: var(--color-bg);
  font-family: inherit;
  font-size: 0.95rem;
}
@media (max-width: 480px) {
  .single-product table.variations tr {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }
}

@media (max-width: 860px) {
  .single-product .summary { padding-left: 0; padding-top: 28px; }
  .single-product .woocommerce-product-gallery .flex-control-thumbs {
    grid-template-columns: repeat(4, 1fr);
  }
}
.single-product .single_add_to_cart_button {
  background: var(--color-forest) !important;
  color: var(--color-cream-text) !important;
  border-radius: var(--radius) !important;
  padding: 14px 30px !important;
  font-weight: 600 !important;
}
.single-product .single_add_to_cart_button:hover { background: var(--color-forest-light) !important; }

/* WooCommerce cart / checkout baseline */
.woocommerce-cart table.shop_table,
.woocommerce-checkout table.shop_table { border: 1px solid var(--color-line); }
.woocommerce a.button, .woocommerce button.button {
  background: var(--color-forest) !important;
  color: var(--color-cream-text) !important;
  border-radius: var(--radius) !important;
}
.woocommerce a.button:hover, .woocommerce button.button:hover { background: var(--color-forest-light) !important; }

/* Product detail page trust badges — real icon badges (SVG, dark green
   circles, cream line icons) laid out on a fixed grid. A proper grid
   rather than wrapped flex items is what actually prevents an orphaned
   last row when the count doesn't divide evenly. */
.pdp-trust-badges {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 22px 10px;
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--color-line);
}
.pdp-trust-badges li {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
}
.pdp-trust-badges .badge-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--color-forest);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.pdp-trust-badges .badge-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: var(--color-cream-text);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.pdp-trust-badges .badge-label {
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--color-ink-soft);
  line-height: 1.3;
}
@media (max-width: 560px) {
  .pdp-trust-badges { grid-template-columns: repeat(3, 1fr); }
}

/* Quick-benefits — lives in WooCommerce's native "Short description" field,
   which already renders right in the summary column near Add to Cart.
   No custom fields needed; admin edits this like any other product field.
   A small leaf mark in front of every line, matching the live site's
   practice of repeating the same brand icon on every feature bullet. */
.woocommerce-product-details__short-description {
  margin: 24px 0;
}
.woocommerce-product-details__short-description ul {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.woocommerce-product-details__short-description ul li {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--color-forest);
  padding-left: 24px;
  position: relative;
}
.woocommerce-product-details__short-description ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 1px;
  width: 17px;
  height: 17px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23D9A02B' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 19C5 10 11 4 19 4c0 8-6 14-14 15z'/%3E%3Cpath d='M5 19c2-4 5-7 9-9'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}
@media (max-width: 480px) {
  .woocommerce-product-details__short-description ul { grid-template-columns: 1fr; }
}

/* Long description tab — "Why Should You Buy", FAQ, and ingredient
   sections all live here as normal rich text. Restrained, editorial
   treatment: generous space does the work, not borders and boxes. */
#tab-description { max-width: 720px; }
#tab-description h3 {
  font-size: 1.5rem;
  margin-top: 3em;
  margin-bottom: 0.6em;
}
#tab-description h3:first-child { margin-top: 0; }

/* "Why Should You Buy?" — the one h3 immediately followed by a list,
   so this selector reaches it without needing an extra class. A clean
   checklist with a simple circular mark, not a tinted box. */
#tab-description h3 + ul {
  list-style: none;
  margin: 28px 0 40px;
  padding: 0;
  display: grid;
  gap: 22px;
}
#tab-description h3 + ul li {
  padding-left: 38px;
  position: relative;
  color: var(--color-ink-soft);
  line-height: 1.65;
}
#tab-description h3 + ul li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  top: -1px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--color-forest);
  color: var(--color-cream-text);
  font-size: 0.65rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

#tab-description p em {
  display: block;
  margin-top: 1.4em;
  font-size: 0.88rem;
  color: var(--color-ink-soft);
  font-style: normal;
}
/* FAQ / ingredient pairs — a clean list separated by hairlines, question
   set in the display serif for real typographic weight, no boxes. */
#tab-description p:has(strong) {
  padding: 24px 0;
  margin: 0;
  border-bottom: 1px solid var(--color-line);
}
#tab-description p:has(strong):last-of-type { border-bottom: none; }
#tab-description p strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--color-forest);
  margin-bottom: 0.35em;
}

/* "Why Ayulent" band — identical content confirmed across every product
   on the live site, so this renders once via a theme hook rather than
   needing to be retyped into every product's description. A dark panel
   reads as a real section break, matching the homepage's rhythm. */
.why-ayulent-band {
  clear: both;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--color-forest);
  margin-top: 64px;
}
.why-ayulent-band > div {
  padding: 48px 36px;
  border-left: 1px solid var(--color-line-dark);
}
.why-ayulent-band > div:first-child { border-left: none; }
.why-ayulent-band h4 {
  font-family: var(--font-display);
  color: var(--color-cream-text);
  font-size: 1.25rem;
  margin-bottom: 0.55em;
}
.why-ayulent-band p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(246,241,228,0.75);
  margin-bottom: 0;
}
@media (max-width: 860px) {
  .why-ayulent-band { grid-template-columns: 1fr; }
  .why-ayulent-band > div { border-left: none; border-top: 1px solid var(--color-line-dark); }
  .why-ayulent-band > div:first-child { border-top: none; }
}

/* Shop archive intro */
.shop-intro { margin-bottom: 40px; max-width: 70ch; }
.shop-intro p { color: var(--color-ink-soft); }

/* ==========================================================================
   About / Sustainability hero
   ========================================================================== */
.about-hero { padding: 72px 0 24px; border-bottom: 1px solid var(--color-line); }

/* ==========================================================================
   FAQ accordion
   ========================================================================== */
.faq-list { max-width: 760px; }
.faq-item { border-bottom: 1px solid var(--color-line); }
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: none;
  border: none;
  text-align: left;
  padding: 22px 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--color-forest);
}
.faq-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  position: relative;
}
.faq-icon::before, .faq-icon::after {
  content: '';
  position: absolute;
  background: var(--color-forest);
  transition: transform 0.2s ease;
}
.faq-icon::before { top: 9px; left: 0; width: 20px; height: 2px; }
.faq-icon::after { top: 0; left: 9px; width: 2px; height: 20px; }
.faq-question[aria-expanded="true"] .faq-icon::after { transform: rotate(90deg); opacity: 0; }
.faq-answer { padding: 0 0 24px; max-width: 68ch; }
.faq-answer p { color: var(--color-ink-soft); margin-bottom: 0; }

/* ==========================================================================
   Contact page
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 64px;
}
.contact-details h3 { font-size: 1rem; margin-bottom: 0.3em; }
.contact-details p { margin-bottom: 1.6em; color: var(--color-ink-soft); }
.contact-form { display: flex; flex-direction: column; gap: 6px; max-width: 480px; }
.contact-form label { font-weight: 600; font-size: 0.9rem; margin-top: 12px; }
.contact-form input, .contact-form textarea {
  padding: 12px 14px;
  border: 1px solid var(--color-line);
  background: #fff;
  font-family: var(--font-body);
  font-size: 1rem;
}
.contact-form button { margin-top: 18px; align-self: flex-start; }
.form-notice { padding: 14px 18px; margin-bottom: 24px; font-size: 0.95rem; }
.form-notice--success { background: #E7F0EA; color: var(--color-forest); border-left: 3px solid var(--color-forest); }
.form-notice--error { background: #FBEAE3; color: var(--color-rust); border-left: 3px solid var(--color-rust); }

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