/* ==================================================================
   The Longevity Edge — PDP-specific styles
   Loaded only on single-product pages (see inc/enqueue.php).
   Depends on tokens.css + components.css.
   ================================================================== */

/* Breadcrumb removed per design feedback — template no longer emits markup. */

/* ============ TOP: GALLERY + BUY COLUMN ============ */
.pdp-top { padding: var(--s-5) 0 var(--s-9); }
.pdp-top-grid { display: grid; grid-template-columns: 7fr 5fr; gap: var(--s-8); align-items: start; }
@media (max-width: 900px) { .pdp-top-grid { grid-template-columns: 1fr; gap: var(--s-6); } }

/* Neutralize Kadence + WC default floats on the grid children. */
.le-pdp .pdp-top-grid { display: grid !important; }
.le-pdp .pdp-top-grid > .pdp-gallery,
.le-pdp .pdp-top-grid > .pdp-buy-col,
.le-pdp .pdp-top-grid > .summary,
.le-pdp .pdp-top-grid > .entry-summary,
.le-pdp .pdp-top-grid > .images {
	float: none !important;
	width: auto !important;
	max-width: none !important;
	margin: 0 !important;
	clear: none !important;
}

/* ============ RIGHT COLUMN: TITLE BLOCK ============ */
.pdp-eyebrow { font-family: var(--font-body); font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: var(--ls-widest); color: var(--gold-600); font-weight: 700; margin: 0 0 var(--s-3); }
.pdp-title { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-3xl); line-height: var(--lh-tight); color: var(--navy-900); margin: 0 0 var(--s-3); letter-spacing: var(--ls-tight); }
.pdp-rating { display: flex; align-items: center; gap: var(--s-3); font-size: var(--fs-sm); color: var(--ink-700); margin-bottom: var(--s-4); flex-wrap: wrap; }
.pdp-rating-stars { color: var(--star); font-size: var(--fs-lg); letter-spacing: 0.08em; line-height: 1; }
.pdp-rating-sep { color: var(--ink-500); }
.pdp-rating strong { color: var(--navy-900); font-weight: 700; }
.pdp-rating a { color: var(--ink-700); text-decoration: underline; text-underline-offset: 0.2em; }
.pdp-rating a:hover { color: var(--navy-900); }
.pdp-positioning { font-family: var(--font-body); font-size: var(--fs-base); color: var(--ink-700); line-height: var(--lh-relaxed); margin: 0 0 var(--s-5); max-width: 46ch; }
.pdp-positioning strong { color: var(--navy-900); }
.pdp-shipping-inline { display: flex; align-items: center; gap: var(--s-2); font-size: var(--fs-sm); color: var(--success); font-weight: 600; margin-bottom: var(--s-5); }
.pdp-shipping-inline svg { flex-shrink: 0; }

/* ============ TRUST ICONS UNDER BUY BOX ============ */
.pdp-trust-icons { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-3); margin-top: var(--s-5); text-align: center; }
.pdp-trust-item { display: flex; flex-direction: column; align-items: center; gap: var(--s-2); font-size: var(--fs-xs); color: var(--ink-700); font-weight: 500; }
.pdp-trust-item svg { width: 24px; height: 24px; color: var(--navy-700); }

/* ============ AUTHORITY QUOTE STRIP ============ */
.authority-strip { background: var(--gold-50); border-top: 1px solid var(--gold-100); border-bottom: 1px solid var(--gold-100); padding: var(--s-7) 0; }
.authority-strip-inner { max-width: var(--container-text); margin: 0 auto; padding: 0 var(--s-5); display: flex; gap: var(--s-5); align-items: center; }
.authority-avatar { width: 80px; height: 80px; border-radius: 50%; background: linear-gradient(165deg, #3a3128 0%, #211a13 100%); flex-shrink: 0; display: flex; align-items: center; justify-content: center; color: var(--gold-300); font-family: var(--font-body); font-size: var(--fs-xs); text-align: center; overflow: hidden; border: 2px solid var(--gold-300); }
.authority-avatar img { width: 100%; height: 100%; object-fit: cover; }
.authority-strip blockquote { margin: 0; font-family: var(--font-display); font-style: italic; font-size: var(--fs-lg); line-height: var(--lh-snug); color: var(--navy-900); }
.authority-strip cite { display: block; margin-top: var(--s-2); font-style: normal; font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: var(--ls-wide); color: var(--ink-700); font-weight: 600; }
@media (max-width: 640px) { .authority-strip-inner { flex-direction: column; text-align: center; } }

/* ============ TABS ============ */
.pdp-tabs { padding: var(--s-9) 0; background: var(--surface); border-top: 1px solid var(--navy-100); border-bottom: 1px solid var(--navy-100); }
.pdp-tabs-nav { display: flex; gap: var(--s-7); border-bottom: 1px solid var(--navy-100); margin-bottom: var(--s-7); overflow-x: auto; scrollbar-width: none; }
.pdp-tabs-nav::-webkit-scrollbar { display: none; }
.le-pdp .pdp-tab,
.le-pdp button.pdp-tab { font-family: var(--font-body) !important; font-weight: 600 !important; font-size: var(--fs-base) !important; color: var(--ink-700) !important; background: transparent !important; border: 0 !important; border-bottom: 3px solid transparent !important; padding: var(--s-4) 0 !important; cursor: pointer; transition: color var(--t-default) var(--ease-out), border-color var(--t-default) var(--ease-out); white-space: nowrap; min-height: var(--tap-min); box-shadow: none !important; }
.le-pdp .pdp-tab:hover,
.le-pdp .pdp-tab:focus,
.le-pdp button.pdp-tab:hover,
.le-pdp button.pdp-tab:focus { background: transparent !important; color: var(--navy-900) !important; border-bottom-color: var(--gold-300) !important; box-shadow: none !important; }
.le-pdp .pdp-tab.is-active,
.le-pdp button.pdp-tab.is-active { color: var(--navy-900) !important; border-bottom-color: var(--gold-500) !important; background: transparent !important; }
.le-pdp .pdp-tab:focus-visible { outline: 3px solid var(--gold-300); outline-offset: 4px; border-radius: var(--r-sm); }
.pdp-tab-panel { display: none; }
.pdp-tab-panel.is-active { display: block; }
.pdp-tab-content { max-width: var(--container-text); }
.pdp-tab-content h3 { margin: var(--s-6) 0 var(--s-3); font-size: var(--fs-xl); }
.pdp-tab-content h3:first-child { margin-top: 0; }
.pdp-tab-content p { margin: 0 0 var(--s-4); color: var(--ink-700); line-height: var(--lh-relaxed); }
.pdp-tab-content ul, .pdp-tab-content ol { margin: 0 0 var(--s-4) var(--s-5); padding: 0; color: var(--ink-700); line-height: var(--lh-relaxed); }
.pdp-tab-content li { margin-bottom: var(--s-2); }
.pdp-tab-content em, .pdp-tab-content i { font-style: italic; }
.pdp-tab-content strong, .pdp-tab-content b { color: var(--navy-900); font-weight: 600; }
.pdp-tab-callout { margin-top: var(--s-5); padding: var(--s-4) var(--s-5); background: var(--gold-50); border-left: 3px solid var(--gold-500); border-radius: 0 var(--r-md) var(--r-md) 0; font-size: var(--fs-base); color: var(--ink-700); font-style: italic; }

/* ============ SUPPLEMENT FACTS ============ */
.supp-facts { background: var(--surface); border: 2px solid var(--navy-900); border-radius: var(--r-md); max-width: 520px; margin: 0 0 var(--s-5); font-family: Arial, sans-serif; }
.supp-facts h4 { font-family: Arial, sans-serif; font-weight: 700; font-size: var(--fs-2xl); color: var(--navy-900); margin: 0; padding: var(--s-3) var(--s-4); border-bottom: 8px solid var(--navy-900); text-transform: uppercase; letter-spacing: 0.04em; }
.supp-facts table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.supp-facts th, .supp-facts td { padding: var(--s-2) var(--s-4); text-align: left; border-bottom: 1px solid var(--navy-100); }
.supp-facts thead th { border-bottom: 1px solid var(--navy-900); font-weight: 700; background: var(--navy-50); }
.supp-facts td:nth-child(2), .supp-facts td:nth-child(3),
.supp-facts th:nth-child(2), .supp-facts th:nth-child(3) { text-align: right; font-feature-settings: "tnum","lnum"; }
.supp-facts tfoot td { border-top: 8px solid var(--navy-900); border-bottom: none; font-size: var(--fs-xs); color: var(--ink-700); font-family: var(--font-body); }

/* ============ INGREDIENTS ============ */
.ingredients { padding: var(--s-9) 0; }
.ingredients-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-5); margin-top: var(--s-7); }
.ingredient-card { background: var(--surface); border: 1px solid var(--navy-100); border-radius: var(--r-lg); padding: var(--s-6); display: flex; flex-direction: column; gap: var(--s-3); }
.ingredient-card-eyebrow { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: var(--ls-widest); color: var(--gold-600); font-weight: 700; margin: 0; }
.ingredient-card h3 { font-family: var(--font-display); font-weight: 600; font-size: var(--fs-xl); margin: 0; color: var(--navy-900); }
.ingredient-card p { font-size: var(--fs-base); color: var(--ink-700); margin: 0; line-height: var(--lh-relaxed); }
.ingredient-card-spec { font-family: var(--font-body); font-size: var(--fs-xs); color: var(--navy-700); font-weight: 600; background: var(--navy-50); padding: var(--s-2) var(--s-3); border-radius: var(--r-pill); align-self: flex-start; text-transform: uppercase; letter-spacing: var(--ls-wide); }
@media (max-width: 900px) { .ingredients-grid { grid-template-columns: 1fr; } }

/* ============ FAQ SECTION ============ */
.pdp-faq { padding: var(--s-9) 0; background: var(--canvas); }
.pdp-faq-inner { max-width: var(--container-text); margin: 0 auto; padding: 0 var(--s-5); }

/* ============ REVIEWS ============ */
.pdp-reviews { padding: var(--s-9) 0; background: var(--surface); border-top: 1px solid var(--navy-100); }
.reviews-summary { display: grid; grid-template-columns: 240px 1fr; gap: var(--s-7); margin-bottom: var(--s-7); align-items: center; }
.reviews-rating-num { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-5xl); line-height: 1; color: var(--navy-900); margin: 0; font-feature-settings: "tnum","lnum"; }
.reviews-rating-stars { color: var(--star); font-size: var(--fs-xl); letter-spacing: 0.08em; margin: var(--s-2) 0; }
.reviews-rating-meta { font-size: var(--fs-sm); color: var(--ink-700); margin: 0; }
.reviews-bars { display: flex; flex-direction: column; gap: var(--s-2); }
.reviews-bar-row { display: grid; grid-template-columns: 80px 1fr 60px; gap: var(--s-3); align-items: center; font-size: var(--fs-sm); color: var(--ink-700); font-feature-settings: "tnum","lnum"; }
.reviews-bar { height: 8px; background: var(--navy-50); border-radius: var(--r-pill); overflow: hidden; }
.reviews-bar-fill { height: 100%; background: var(--gold-500); border-radius: var(--r-pill); transition: width var(--t-slow) var(--ease-out); }
.reviews-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-5); }
.reviews-empty { padding: var(--s-7) 0; text-align: center; color: var(--ink-700); font-size: var(--fs-base); }
.reviews-empty a { color: var(--gold-600); }
@media (max-width: 900px) {
	.reviews-summary { grid-template-columns: 1fr; text-align: center; }
	.reviews-bar-row { grid-template-columns: 60px 1fr 40px; }
	.reviews-list { grid-template-columns: 1fr; }
}

/* Hide WC native review list — we render our own. */
.le-pdp .pdp-reviews #comments .woocommerce-noreviews,
.le-pdp .pdp-reviews #comments .commentlist,
.le-pdp .pdp-reviews #comments ol.commentlist,
.le-pdp .pdp-reviews #comments > h2,
.le-pdp .pdp-reviews #comments > h3 { display: none !important; }

/* ============ REVIEWS — ACTIONS + LOAD MORE + INLINE FORM ============ */
.le-pdp .reviews-actions { display: flex; gap: var(--s-3); justify-content: center; flex-wrap: wrap; margin-top: var(--s-7); }
.le-pdp [data-le-load-more]:disabled { opacity: 0.6; cursor: progress; }

/* Inline form panel — collapsed by default, expands on open */
.le-pdp .le-review-form-panel { display: none; margin-top: var(--s-7); border-top: 1px solid var(--navy-100); padding-top: var(--s-7); }
.le-pdp .le-review-form-panel.is-open { display: block; animation: leFormFadeIn var(--t-default) var(--ease-out); }
@keyframes leFormFadeIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
.le-pdp .le-review-form-inner { max-width: var(--container-text); margin: 0 auto; }
.le-pdp .le-review-form-heading { font-family: var(--font-display); font-weight: 600; font-size: var(--fs-2xl); color: var(--navy-900); margin: 0 0 var(--s-5); letter-spacing: var(--ls-tight); line-height: var(--lh-snug); text-align: center; }

/* Star rating widget — Kadence applies blue button bg + forces SVG path to black.
   Heavy !important needed to win. */
.le-pdp .le-stars-input { display: flex !important; gap: var(--s-2) !important; justify-content: center !important; margin: 0 0 var(--s-6); padding: var(--s-4) !important; background: var(--canvas) !important; border-radius: var(--r-md) !important; }
.le-pdp .le-star,
.le-pdp button.le-star { background: transparent !important; border: 0 !important; padding: var(--s-2) !important; cursor: pointer !important; line-height: 0 !important; box-shadow: none !important; min-height: 0 !important; height: auto !important; width: auto !important; color: inherit !important; transition: transform var(--t-fast) var(--ease-out); }
.le-pdp .le-star:hover, .le-pdp .le-star:focus, .le-pdp .le-star:focus-visible { background: transparent !important; box-shadow: none !important; transform: scale(1.08); outline: none; }
.le-pdp .le-star:focus-visible svg { stroke: var(--gold-600) !important; stroke-width: 2.5 !important; }
.le-pdp .le-star svg { display: block !important; width: 44px !important; height: 44px !important; fill: transparent !important; stroke: var(--ink-300) !important; stroke-width: 2 !important; stroke-linejoin: round !important; transition: fill var(--t-fast) var(--ease-out), stroke var(--t-fast) var(--ease-out); }
.le-pdp .le-star svg path { fill: inherit !important; stroke: inherit !important; stroke-width: inherit !important; }
.le-pdp .le-star.is-filled svg, .le-pdp .le-star.is-hovering svg { fill: var(--star) !important; stroke: var(--gold-600) !important; }

/* Form fields */
.le-pdp .le-review-field { margin-bottom: var(--s-5); }
.le-pdp .le-review-label { display: block; font-family: var(--font-body); font-weight: 600; font-size: var(--fs-sm); color: var(--navy-900); text-transform: uppercase; letter-spacing: var(--ls-wide); margin-bottom: var(--s-3); }
.le-pdp .le-review-textarea { width: 100%; font-family: var(--font-body); font-size: var(--fs-base); color: var(--ink-900); background: var(--surface); border: 1.5px solid var(--ink-300); border-radius: var(--r-md); padding: var(--s-4); min-height: 140px; resize: vertical; line-height: var(--lh-relaxed); transition: border-color var(--t-default) var(--ease-out), box-shadow var(--t-default) var(--ease-out); }
.le-pdp .le-review-textarea:focus { outline: none; border-color: var(--navy-900); box-shadow: 0 0 0 3px rgba(14,26,43,0.12); }
.le-pdp .le-review-textarea::placeholder { color: var(--ink-500); font-style: italic; }

/* Status + submit */
.le-pdp .le-review-status { font-family: var(--font-body); font-size: var(--fs-sm); margin-bottom: var(--s-4); min-height: 1.5em; }
.le-pdp .le-review-status.is-error { color: var(--error); background: var(--cta-100); padding: var(--s-3) var(--s-4); border-radius: var(--r-md); }
.le-pdp .le-review-status.is-success { color: var(--success); background: var(--success-50); padding: var(--s-4) var(--s-5); border-radius: var(--r-md); font-size: var(--fs-base); text-align: center; font-weight: 600; }
.le-pdp .le-review-submit-row { text-align: center; }

/* Login prompt */
.le-pdp .le-review-login-prompt { text-align: center; padding: var(--s-6); background: var(--canvas); border-radius: var(--r-md); }
.le-pdp .le-review-login-prompt p { color: var(--ink-700); font-size: var(--fs-base); margin: 0 0 var(--s-4); }

/* ============ STICKY MOBILE BUY ============ */
.le-sticky-buy { position: fixed; bottom: 0; left: 0; right: 0; background: var(--surface); border-top: 1px solid var(--navy-100); padding: var(--s-3) var(--s-4); display: none; z-index: var(--z-sticky); box-shadow: 0 -8px 24px rgba(14,26,43,0.08); align-items: center; gap: var(--s-3); }
.le-sticky-buy-info { flex: 1; font-size: var(--fs-sm); min-width: 0; }
.le-sticky-buy-info strong { display: block; color: var(--navy-900); font-weight: 700; font-feature-settings: "tnum","lnum"; }
.le-sticky-buy-info span { color: var(--ink-700); font-size: var(--fs-xs); display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.le-sticky-buy .btn { flex-shrink: 0; }
@media (max-width: 900px) { .le-sticky-buy { display: flex; } body.le-pdp { padding-bottom: 80px; } }

/* ============ RELATED ============ */
.le-related { padding: var(--s-9) 0; }
.le-related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-5); margin-top: var(--s-7); }
@media (max-width: 900px) { .le-related-grid { grid-template-columns: 1fr; } }

/* ============ SECTION HEAD VARIANT ============ */
.le-pdp .section-head--left { text-align: left; }
.le-pdp .section-head--left .lede { margin-left: 0; margin-right: 0; }

@media (max-width: 640px) {
	.le-pdp .le-stars-input { gap: var(--s-1) !important; padding: var(--s-3) !important; }
	.le-pdp .le-star svg { width: 36px !important; height: 36px !important; }
	.le-pdp .le-review-form-heading { font-size: var(--fs-xl); }
}

/* Tighten the gap between Stock Confidence + Delivery Estimate (they sit
   stacked in the buy column — components.css gives each its own margin
   plus a horizontal-rule separator; on PDP we want them visually together). */
.le-pdp .le-stock-confidence { margin: 0 0 var(--s-2) !important; }
.le-pdp .le-delivery-estimate { margin-top: 0 !important; padding-top: 0 !important; border-top: 0 !important; padding-bottom: 0 !important; margin-bottom: var(--s-2) !important; }
.le-pdp .le-stock-confidence + .le-delivery-estimate,
.le-pdp .le-delivery-estimate + .le-stock-confidence { margin-top: 0 !important; }

/* WCSO Add-to-Cart button — Kadence forces blue button background sitewide.
   Force the brand red (signal crimson) with !important so it wins. */
.le-pdp .wcso-add-to-cart-btn,
.le-pdp button.wcso-add-to-cart-btn { background: var(--cta-600) !important; color: #fff !important; border-color: var(--cta-600) !important; border-style: solid !important; border-width: 2px !important; box-shadow: none !important; }
.le-pdp .wcso-add-to-cart-btn:hover,
.le-pdp button.wcso-add-to-cart-btn:hover,
.le-pdp .wcso-add-to-cart-btn:focus,
.le-pdp button.wcso-add-to-cart-btn:focus { background: var(--cta-700) !important; border-color: var(--cta-700) !important; color: #fff !important; box-shadow: none !important; }
.le-pdp .wcso-add-to-cart-btn:focus-visible { outline: 3px solid var(--gold-300); outline-offset: 2px; }

/* WCSO plugin inline-styles the buy-box-trust to display:none and emits an
   inline <style> rule `.wcso-custom-options ~ * { display: none !important; }`
   that hides every sibling after the buy box. We override both with stronger
   specificity + !important so the 30-day guarantee + skip/swap text show. */
.le-pdp .buy-box-trust,
.le-pdp form.cart .buy-box-trust,
.le-pdp .wcso-custom-options ~ .buy-box-trust { display: flex !important; align-items: center; gap: var(--s-4); margin-top: var(--s-5) !important; padding-top: var(--s-4) !important; border-top: 1px solid var(--navy-100); font-size: var(--fs-sm); color: var(--ink-700); }

/* === Kadence wrapper background — force canvas on PDP so the hero area
   gets the warm cream tone from the mockup instead of pure white. */
.le-pdp .wp-site-blocks,
body.single-product .wp-site-blocks,
body.le-pdp .wp-site-blocks { background: transparent !important; }
body.le-pdp { background-color: var(--canvas) !important; }

/* === Force form.cart to stack children vertically and fill the column.
   WCSO plugin or Kadence's WC integration was floating/positioning the
   trust footer off to the right; this guarantees the proper layout. */
.le-pdp form.cart { display: block !important; width: 100% !important; }
.le-pdp form.cart > * { float: none !important; clear: both !important; }
.le-pdp form.cart .wcso-custom-options { width: 100% !important; display: block !important; }

/* === Trust footer — redesign as a card to match the mockup: gold-bordered
   container with stamp on left and skip/swap text on right. */
.le-pdp .buy-box-trust { display: flex !important; flex-direction: row !important; align-items: center !important; gap: var(--s-4) !important; width: 100% !important; margin: var(--s-5) 0 0 0 !important; padding: var(--s-4) var(--s-5) !important; background: var(--canvas) !important; border: 1px solid var(--gold-100) !important; border-radius: var(--r-md) !important; border-top: 1px solid var(--gold-100) !important; font-size: var(--fs-sm) !important; color: var(--ink-700) !important; }
.le-pdp .buy-box-trust .guarantee-stamp,
.le-pdp .buy-box-trust .guarantee-seal { flex: 0 0 auto !important; width: 160px !important; }
.le-pdp .buy-box-trust > div:not(.guarantee-stamp):not(.guarantee-seal) { flex: 1 1 auto !important; min-width: 0; line-height: var(--lh-normal); }

/* === Buy-box card — wrap form.cart in a white card so the buy options +
   quantity + frequency + add-to-cart + trust footer all sit inside one
   visual container (matches mockup). The WCSO plugin doesn't give us a
   .buy-box wrapper, so we style form.cart directly. */
.le-pdp form.cart { background: var(--surface) !important; border: 1px solid var(--navy-100) !important; border-radius: var(--r-lg) !important; padding: var(--s-6) !important; box-shadow: var(--shadow-sm) !important; }

/* Revert the trust footer to a top-divider treatment (no independent card)
   so it reads as the bottom segment of the buy-box card. */
.le-pdp .buy-box-trust,
.le-pdp form.cart .buy-box-trust { background: transparent !important; border: 0 !important; border-top: 1px solid var(--navy-100) !important; border-radius: 0 !important; padding: var(--s-4) 0 0 0 !important; margin: var(--s-5) 0 0 0 !important; }

/* === FULL-BLEED PDP SECTIONS ===
   Kadence wraps WC content in .content-container (max-width 1290px) and an
   even tighter .entry-content-wrap. The mockup wants each PDP section
   (.authority-strip, .pdp-tabs, .ingredients, .pdp-faq, .pdp-reviews,
   .le-related) to span the FULL viewport width with its own background
   color edge-to-edge — same pattern the home page sections use. This
   classic "full-bleed" hack pulls each section out of its parent's
   max-width and locks it to 100vw, while .container inside keeps the
   actual content centered. We scope to body.le-pdp so non-product pages
   are untouched. */
body.le-pdp .pdp-top,
body.le-pdp .authority-strip,
body.le-pdp .pdp-tabs,
body.le-pdp .ingredients,
body.le-pdp .pdp-faq,
body.le-pdp .pdp-reviews,
body.le-pdp .le-related {
	width: 100vw;
	position: relative;
	left: 50%;
	right: 50%;
	margin-left: -50vw;
	margin-right: -50vw;
}

/* Top of PDP shares the canvas background. */
body.le-pdp .pdp-top { background: var(--canvas); }

/* === TOP SPACING TRIM ===
   Kadence's content-container + entry-content-wrap add ~80px of inset
   above the gallery. Strip those + tighten the section's own top padding
   so the eyebrow sits closer to the header. */
body.le-pdp .content-container,
body.le-pdp .entry-content-wrap,
body.le-pdp .site-main,
body.le-pdp main#main { padding-top: 0 !important; padding-left: 0 !important; padding-right: 0 !important; margin-top: 0 !important; }
body.le-pdp .pdp-top { padding-top: var(--s-4) !important; }

/* Belt-and-suspenders: prevent calc() rounding from causing a horizontal
   scrollbar from the full-bleed -50vw margins. */
html, body { overflow-x: clip; }

/* === INGREDIENT CARD — IMAGE-ONLY VARIANT ===
   When an ingredient row has an image field set, the template renders an
   image-only card with an optional caption. Image fills the card edge-to-
   edge with a 4:3 aspect ratio crop; caption (if provided) sits below in
   the display serif at navy-900. */
.ingredient-card--image { padding: 0 !important; overflow: hidden; }
.ingredient-card--image .ingredient-card-img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}
.ingredient-card-caption {
	font-family: var(--font-display);
	font-weight: 600;
	font-size: var(--fs-lg);
	color: var(--navy-900);
	text-align: center;
	margin: 0;
	padding: var(--s-4) var(--s-5);
	line-height: var(--lh-snug);
}

/* === UNDER-GALLERY ELEMENTS (left column) ===
   The trust icons row + stock confidence line now render below the
   gallery thumbs inside the left column (.pdp-gallery wrapper). Center
   them and give the stock line some breathing room from the trust row. */
body.le-pdp .pdp-gallery .pdp-trust-icons { margin-top: var(--s-6); }
body.le-pdp .pdp-gallery .le-stock-confidence {
	margin: var(--s-4) auto 0;
	justify-content: center;
	text-align: center;
}

/* === SECTION TOP-SPACING TRIM (round 2) ===
   Halve the empty space above each PDP section per design feedback. Token
   math: --s-9 (96px) → --s-7 (48px), --s-4 (16px) → --s-2 (8px). Bottoms
   are left alone so the section→section transitions still have breathing
   room before the next colored band starts. */
body.le-pdp .pdp-top      { padding-top: var(--s-2) !important; }
body.le-pdp .pdp-tabs     { padding-top: var(--s-7) !important; }
body.le-pdp .ingredients  { padding-top: var(--s-7) !important; }
body.le-pdp .pdp-faq      { padding-top: var(--s-7) !important; }
body.le-pdp .pdp-reviews  { padding-top: var(--s-7) !important; }
body.le-pdp .le-related   { padding-top: var(--s-7) !important; }

/* === Kadence .content-area margin trim ===
   Inspection on the live PDP shows the 80px gap above the gallery comes
   from Kadence's .content-area div, which applies margin-top: 80px. My
   earlier trim block targeted .content-container / .entry-content-wrap /
   .site-main / main#main but missed this one. Halve to 40px. */
body.le-pdp .content-area { margin-top: 40px !important; }

/* === Stock confidence under gallery — force center + breathing room ===
   Live inspection: .le-stock-confidence is set to display:inline-flex by
   components.css, which makes margin:0 auto a no-op (auto margins don't
   center inline-level boxes). Force block-level flex, size to content,
   then auto-margin centers it. Bump top margin to var(--s-6) = 32px
   per design feedback. */
body.le-pdp .pdp-gallery .le-stock-confidence {
	display: flex !important;
	justify-content: center;
	align-items: center;
	gap: var(--s-2);
	width: fit-content;
	max-width: 100%;
	margin: var(--s-6) auto 0 !important;
	text-align: center;
}

/* === WHAT TO EXPECT — TIMELINE SECTION ===
   Lives between the gold authority strip and the white tabs section. Canvas
   background to differentiate from both. Cards mirror the ingredient-card
   styling so visual rhythm stays consistent — gold spec pill at top, navy
   heading, muted body. Auto-snaps to 2-col / 3-col grid based on row count
   via wte-grid--Nup modifier (set by the template). */
.what-to-expect { background: var(--canvas); padding: var(--s-9) 0; }
body.le-pdp .what-to-expect { padding-top: var(--s-7) !important; }
.what-to-expect .section-head { margin-bottom: var(--s-6); }
.wte-grid {
	display: grid;
	gap: var(--s-5);
	margin-top: var(--s-6);
}
.wte-grid--1up { grid-template-columns: minmax(0, 540px); justify-content: center; }
.wte-grid--2up { grid-template-columns: repeat(2, 1fr); }
.wte-grid--3up { grid-template-columns: repeat(3, 1fr); }
.wte-grid--4up,
.wte-grid--5up { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
	.wte-grid,
	.wte-grid--2up,
	.wte-grid--3up,
	.wte-grid--4up,
	.wte-grid--5up { grid-template-columns: 1fr; }
}

.wte-card {
	background: var(--surface);
	border: 1px solid var(--navy-100);
	border-radius: var(--r-lg);
	padding: var(--s-6);
	display: flex;
	flex-direction: column;
	gap: var(--s-3);
}
.wte-card-period {
	font-family: var(--font-body);
	font-size: var(--fs-xs);
	color: var(--navy-700);
	font-weight: 700;
	background: var(--gold-50);
	border: 1px solid var(--gold-100);
	padding: var(--s-2) var(--s-3);
	border-radius: var(--r-pill);
	align-self: flex-start;
	text-transform: uppercase;
	letter-spacing: var(--ls-wide);
}
.wte-card-heading {
	font-family: var(--font-display);
	font-weight: 600;
	font-size: var(--fs-xl);
	color: var(--navy-900);
	margin: 0;
	line-height: var(--lh-snug);
}
.wte-card p {
	font-size: var(--fs-base);
	color: var(--ink-700);
	line-height: var(--lh-relaxed);
	margin: 0;
}
.wte-disclaimer {
	max-width: var(--container-text);
	margin: var(--s-6) auto 0;
	text-align: center;
	font-size: var(--fs-xs);
	color: var(--ink-500);
	font-style: italic;
	line-height: var(--lh-relaxed);
}

/* Pull what-to-expect into the full-bleed roster so it spans viewport-width
   like the other PDP sections. */
body.le-pdp .what-to-expect {
	width: 100vw;
	position: relative;
	left: 50%;
	right: 50%;
	margin-left: -50vw;
	margin-right: -50vw;
}

/* === SOURCING PILLS — top of Supplement Facts tab panel ===
   Pipe-separated short pills that surface sourcing + allergen info at the
   eye-glance entry point for ingredient-anxious buyers (the Supp Facts tab
   is where they look anyway). */
.sourcing-pills {
	list-style: none;
	margin: 0 0 var(--s-6);
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: var(--s-2);
}
.sourcing-pill {
	font-family: var(--font-body);
	font-size: var(--fs-xs);
	font-weight: 600;
	color: var(--navy-900);
	background: var(--gold-50);
	border: 1px solid var(--gold-100);
	padding: var(--s-2) var(--s-3);
	border-radius: var(--r-pill);
	letter-spacing: 0.02em;
}
