/* =========================================================================
   SP Slim — main stylesheet
   Brand tokens extracted from the live site: navy #2d3265, sage #81a368,
   Urbanist. Mobile-first. Targets both sp-* classes and standard WC classes.
   ========================================================================= */

/* Self-hosted Urbanist (static per-weight) — matches the live brand font with no
   Google Fonts dependency (the network's DNS filtering made the CDN load flaky). */
@font-face { font-family: 'Urbanist'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/urbanist-400.woff2') format('woff2'); }
@font-face { font-family: 'Urbanist'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/urbanist-500.woff2') format('woff2'); }
@font-face { font-family: 'Urbanist'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/urbanist-600.woff2') format('woff2'); }
@font-face { font-family: 'Urbanist'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/urbanist-700.woff2') format('woff2'); }
/* Jura (test font) — flip --font below to 'Jura, sans-serif' to use; revert to Urbanist to undo. */
@font-face { font-family: 'Jura'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/jura-400.woff2') format('woff2'); }
@font-face { font-family: 'Jura'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/jura-500.woff2') format('woff2'); }
@font-face { font-family: 'Jura'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/jura-600.woff2') format('woff2'); }
@font-face { font-family: 'Jura'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/jura-700.woff2') format('woff2'); }
/* Carlito (test font) — Calibri-metric-compatible; ships only 400 & 700, so 500→400 and 600→700. */
@font-face { font-family: 'Carlito'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/carlito-400.woff2') format('woff2'); }
@font-face { font-family: 'Carlito'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/carlito-400.woff2') format('woff2'); }
@font-face { font-family: 'Carlito'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/carlito-700.woff2') format('woff2'); }
@font-face { font-family: 'Carlito'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/carlito-700.woff2') format('woff2'); }

:root {
	--navy: #2d3265;
	--navy-d: #1f264a;
	--sage: #81a368;
	--sage-d: #6b8d55;
	/* Add-to-cart / primary button gradient, left → right (100deg). Round 3 (Nick
	   2026-09-29): the homepage's deep navy — the proof band (#0b1233 → #060a22,
	   #28326e glow) and the hero plate (#040819) — replaces round 2's lighter
	   #2d3265 → #3b4590. Still two tones: the band's base on the left, a modest
	   lift toward its glow on the right. White 15px bold text: 18.3:1 left,
	   13.4:1 right (keep both ends ≥ 5:1 whenever these change). Also paints the
	   homepage category-tile labels (.sp-cat-label, home.css).
	   Candidates on dev (?sp_grad=d1|d2|d3 via the dev-only mu-plugin):
	     d1  #060a22 → #161d4a  deepest (the band's dark end)
	     d2  #0b1233 → #1f2a63  ← committed default
	     d3  #0b1233 → #28326e  a touch more lift (the band's glow)
	   History: round 2 (2026-09-15) s2 #2d3265 → #3b4590; round 1's royal-blue
	   right end (#4a62c9) was "too light, too drastic".
	   Used by: the shared .button rule, the catalog card quick-add, the product-page
	   .single_add_to_cart_button, the V2 card CTA (.sp-rel-card__cta — related grid,
	   homepage, cart cross-sells), the mobile sticky bar (.sp-atcbar__btn), the hero
	   CTA icon and the funnel quiz. Hover is brightness(1.16): 1.08 barely shows on
	   navy this dark (the touch-only sticky bar keeps 1.08, :hover sticks after a tap). */
	--btn-a: #0b1233;
	--btn-b: #1f2a63;
	--ink: #2c2c2c;
	--muted: #6b7280;
	--line: #e2e6f0;
	--soft: #f8f9fc;
	--bg: #ffffff;
	--yellow-1: #fff8dc;
	--yellow-2: #ffe9a0;
	--yellow-b: #f8d775;
	--ok: #2e7d32;
	--r: 8px;
	--r-lg: 12px;
	--shadow: 0 4px 24px rgba(45, 50, 101, .08);
	--shadow-h: 0 8px 24px rgba(45, 50, 101, .18);
	--maxw: 1200px;
	--gut: 20px;
	--font: Carlito, sans-serif;
}

/* Font parity for Elementor/footer pages (About Us, FAQ, Shipping, Returns, Terms,
   Privacy). Those pages ship a hardcoded body/.btn font ('Urbanist') baked into their
   page data -- a leftover from before --font was switched to Carlito. These selectors
   outrank those inline rules (html body = 0,0,2 beats body 0,0,1; html body .btn beats
   .btn 0,1,0), so every page follows the theme font and matches the homepage. If --font
   ever changes again, these pages follow automatically. */
html body,
html body .btn { font-family: var(--font); }

/* SITE-WIDE font unification. Elementor drives headings/body copy off its kit
   typography vars (they were Philosopher for headings, Mulish for text), which is why
   Elementor pages -- the footer pages AND the 50+ blog/SEO articles -- rendered in a
   different font from the theme. Point all four vars at --font so EVERY page uses one
   font. Attribute selector on the kit class keeps this working whatever the kit id is,
   and beats Elementor's own .elementor-kit-N rule (both 0,1,0 -- ours wins on source
   order since the theme stylesheet loads after the kit CSS). Flip --font once and the
   entire site, Elementor included, follows. */
body[class*="elementor-kit-"] {
	--e-global-typography-primary-font-family: var(--font);
	--e-global-typography-secondary-font-family: var(--font);
	--e-global-typography-text-font-family: var(--font);
	--e-global-typography-accent-font-family: var(--font);
}

/* ---- Reset / base ---- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	font-family: var(--font);
	font-size: 16px;
	line-height: 1.6;
	color: var(--ink);
	background: var(--bg);
	overflow-x: hidden;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--sage); }
h1, h2, h3, h4, h5 { font-weight: 700; color: var(--navy); line-height: 1.25; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
button { font-family: inherit; }
:focus-visible { outline: 2px solid var(--sage); outline-offset: 2px; }

/* ---- Layout ---- */
.sp-container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gut); }
.sp-main { display: block; padding: 24px 0 48px; min-height: 40vh; }
/* Elementor pages have no theme title and bring their own top spacing — pull them
   flush under the header (compound selector beats the desktop .sp-main padding). */
.sp-main.sp-main--flush { padding-top: 8px; }

.sp-skip {
	position: absolute; left: -9999px; top: 0; z-index: 1000;
	background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 0 0 var(--r) 0;
}
.sp-skip:focus { left: 0; color: #fff; }

/* ---- Top promo bar ---- */
.sp-topbar {
	background: linear-gradient(135deg, var(--navy) 0%, var(--navy-d) 100%);
	color: #fff;
	text-align: center;
	font-weight: 700;
	font-size: 13px;
	letter-spacing: 1.2px;
	text-transform: uppercase;
}
.sp-topbar .sp-container { padding-block: 10px; }

/* ---- Header ---- */
.sp-header {
	position: sticky; top: 0; z-index: 100;
	background: #fff;
	border-bottom: 1px solid var(--line);
	transition: box-shadow .2s ease;
}
.sp-header.is-scrolled { box-shadow: 0 2px 12px rgba(0, 0, 0, .06); }
.sp-header__inner {
	display: flex; align-items: center; flex-wrap: wrap; gap: 12px;
	padding-block: 12px;
}
.sp-logo { margin-right: auto; display: inline-flex; align-items: center; }
.sp-header .sp-logo__img { height: 34px; width: auto; max-width: 240px; }
.sp-logo__text { font-weight: 700; font-size: 20px; color: var(--navy); }

.sp-cart { position: relative; display: inline-flex; align-items: center; color: var(--navy); padding: 6px; }
.sp-cart:hover { color: var(--sage); }
.sp-cart__count {
	position: absolute; top: -2px; right: -4px;
	min-width: 18px; height: 18px; padding: 0 4px;
	background: var(--sage); color: #fff; font-size: 11px; font-weight: 700;
	border-radius: 9px; display: inline-flex; align-items: center; justify-content: center;
}

/* Mobile nav — CSS-only checkbox hack */
.sp-burger { display: inline-flex; flex-direction: column; gap: 5px; padding: 8px; cursor: pointer; }
.sp-burger span { width: 24px; height: 2px; background: var(--navy); border-radius: 2px; transition: transform .2s, opacity .2s; }
.sp-nav-toggle:checked ~ .sp-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.sp-nav-toggle:checked ~ .sp-burger span:nth-child(2) { opacity: 0; }
.sp-nav-toggle:checked ~ .sp-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.sp-nav { order: 5; flex-basis: 100%; display: none; }
.sp-nav-toggle:checked ~ .sp-nav { display: block; }
.sp-menu { list-style: none; margin: 0; padding: 0; }
.sp-menu li { border-top: 1px solid var(--line); }
.sp-menu a { display: block; padding: 13px 4px; color: var(--navy); font-weight: 600; }
.sp-menu .sub-menu { list-style: none; margin: 0; padding: 0 0 0 14px; }

/* ---- Buttons ---- */
.button, .sp-btn,
.woocommerce a.button, .woocommerce button.button,
.woocommerce .button, .single_add_to_cart_button {
	display: inline-flex; align-items: center; justify-content: center;
	gap: 8px;
	background: linear-gradient(100deg, var(--btn-a) 0%, var(--btn-b) 100%);
	color: #fff; font-weight: 700; font-size: 15px; line-height: 1;
	padding: 13px 26px; border: 0; border-radius: var(--r); cursor: pointer;
	box-shadow: 0 3px 8px rgba(45, 50, 101, .22);
	transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
	text-align: center;
}
/* Hover keeps the two-tone gradient (it is the button's identity now — the old
   flip to a sage gradient threw that away and, with a blue→blue gradient, read as
   a different button entirely). Brighten + lift, the same treatment the V2 card
   CTAs already use. */
.button:hover, .sp-btn:hover,
.woocommerce a.button:hover, .woocommerce button.button:hover,
.woocommerce .button:hover, .single_add_to_cart_button:hover {
	background: linear-gradient(100deg, var(--btn-a) 0%, var(--btn-b) 100%);
	filter: brightness(1.16);
	color: #fff; transform: translateY(-1px);
	box-shadow: 0 6px 14px rgba(45, 50, 101, .3);
}
.button.disabled, .button:disabled { opacity: .6; cursor: not-allowed; transform: none; }

/* Cart "Proceed to checkout" — covers classic (.checkout-button) and the block cart */
.woocommerce a.checkout-button,
.wc-block-cart__submit-button {
	background: linear-gradient(135deg, var(--navy) 0%, var(--navy-d) 100%) !important;
	color: #fff !important; border: 0 !important; border-radius: var(--r) !important; font-weight: 700 !important;
}
.wc-block-cart__submit-button .wc-block-components-button__text { color: #fff !important; }

/* ---- Cart page (WC blocks): padding + a tidier coupon chip ---- */
/* Items + totals columns sit flush to the content edge — give them a gutter so
   product names/prices/totals aren't touching the sides. */
.wp-block-woocommerce-cart .wc-block-cart__main,
.wp-block-woocommerce-cart .wc-block-cart__sidebar { padding-left: 16px !important; padding-right: 16px !important; }
/* The applied-coupon chip is an <li>, so sp-slim's blog-prose "→" bullet leaks
   onto it (the green arrow). Kill it, and soften the harsh black pill into a
   subtle "discount applied" chip. */
.wp-block-woocommerce-cart .wc-block-components-chip::before,
.wp-block-woocommerce-cart .wc-block-components-totals-discount__coupon-list li::before { content: none !important; }
.wp-block-woocommerce-cart .wc-block-components-totals-discount__coupon-list li { padding-left: 0 !important; margin-bottom: 0 !important; }
.wp-block-woocommerce-cart .wc-block-components-chip {
	border-color: #cfe3bf !important;
	background: #eef7e8 !important;
	border-radius: 8px !important;
	padding: 4px 6px 4px 12px !important;
}
.wp-block-woocommerce-cart .wc-block-components-chip__text { color: #3f7a2e !important; font-weight: 600 !important; }
.wp-block-woocommerce-cart .wc-block-components-chip__remove { color: #6b9e4b !important; opacity: .7; }
.wp-block-woocommerce-cart .wc-block-components-chip__remove:hover { opacity: 1; color: #d23b3b !important; }

/* Mobile cart item rows: WC's block grid crams a desktop 4-column layout into
   the phone width, stranding the line total top-right with dead space below.
   Rebuild each row as: [image spanning] | name (+price top-right) over qty. */
@media (max-width: 600px) {
	.wp-block-woocommerce-cart .wc-block-cart-items__row {
		grid-template-columns: 64px minmax(0, 1fr) !important;
		grid-template-rows: auto auto !important;
		column-gap: 14px !important;
		row-gap: 6px !important;
		align-items: start !important;
		padding: 18px 0 !important;
	}
	.wp-block-woocommerce-cart .wc-block-cart-item__image {
		grid-column: 1 !important;
		grid-row: 1 / span 2 !important;
		width: 64px !important;
	}
	.wp-block-woocommerce-cart .wc-block-cart-item__image img { width: 64px !important; }
	/* name / unit price / qty live here; reserve right room for the price */
	.wp-block-woocommerce-cart .wc-block-cart-item__product {
		grid-column: 2 !important;
		grid-row: 1 !important;
		padding-right: 76px !important;
	}
	/* line total pinned to the top-right of the same cell (no empty 4th column) */
	.wp-block-woocommerce-cart .wc-block-cart-item__total {
		grid-column: 2 !important;
		grid-row: 1 !important;
		justify-self: end !important;
		align-self: start !important;
		text-align: right !important;
	}
	.wp-block-woocommerce-cart .wc-block-cart-item__total .wc-block-components-product-price {
		font-size: 15px !important;
		font-weight: 600 !important;
	}
	/* tighten the qty stepper a touch */
	.wp-block-woocommerce-cart .wc-block-components-quantity-selector { margin-top: 4px !important; }
	/* product name room */
	.wp-block-woocommerce-cart .wc-block-cart-item__product .wc-block-components-product-name {
		font-size: 14.5px !important; line-height: 1.35 !important;
	}
}

/* ---- WooCommerce notices ---- */
.woocommerce-message, .woocommerce-info, .woocommerce-error {
	list-style: none; margin: 0 0 20px; padding: 14px 18px;
	border-radius: var(--r); border-left: 4px solid var(--sage);
	background: var(--soft); font-size: 14px;
}
.woocommerce-error { border-left-color: #ef4444; }

/* ---- Breadcrumb ---- */
.woocommerce-breadcrumb {
	font-size: 13px; font-weight: 600; color: var(--navy);
	margin-bottom: 16px;
}
.woocommerce-breadcrumb a { color: var(--navy); }
.woocommerce-breadcrumb a:hover { color: var(--sage); }

/* =========================================================================
   Shop archive
   NOTE: selectors are .woocommerce-prefixed to win the specificity battle with
   WooCommerce core CSS, which boosts every rule via the .woocommerce body class.
   ========================================================================= */
.sp-shop-header { margin: 0 0 16px; }
.woocommerce-products-header__title { font-size: 28px; margin: 0; }
.woocommerce-products-header__title:empty { display: none; }

.woocommerce .woocommerce-result-count { color: var(--muted); font-size: 14px; font-weight: 500; }
.woocommerce .woocommerce-ordering { margin: 0 0 18px; }
.woocommerce .woocommerce-ordering .orderby {
	font-family: var(--font); color: var(--navy); font-weight: 600;
	padding: 8px 14px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; max-width: 240px;
}

/* Grid — overrides WooCommerce's default float layout */
.woocommerce ul.products {
	list-style: none; margin: 0; padding: 0;
	display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px 18px;
}
/* Kill WC's clearfix pseudos — they otherwise become GRID ITEMS (WC sets
   content:" ";display:table) and steal the first cell, pushing every product
   forward one slot ("missing" top-left product). !important is required because
   on shop pages the theme CSS is inlined and WC's CSS loads async AFTER it, so
   equal-specificity WC rules would otherwise win the cascade. */
.woocommerce ul.products::before,
.woocommerce ul.products::after { content: none !important; display: none !important; }
.woocommerce ul.products li.product {
	/* !important defeats WooCommerce's .columns-N width/margin rules (specificity 0,4,2)
	   that otherwise size each grid item to 30.75% of its track. */
	width: auto !important; float: none; margin: 0 !important; padding: 0;
	background: none; border: 0; text-align: left; position: relative;
	display: flex; flex-direction: column;
}
.woocommerce ul.products li.product .woocommerce-LoopProduct-link {
	display: flex; flex-direction: column; color: inherit;
}
.woocommerce ul.products li.product img {
	width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: contain;
	margin: 0 0 12px; background: #fff; border-radius: 0; box-shadow: none;
}
.woocommerce ul.products li.product .sp-cat {
	color: var(--sage); font-size: 11px; font-weight: 700; letter-spacing: .6px;
	text-transform: uppercase; margin: 0 0 5px;
}
.woocommerce ul.products li.product .woocommerce-loop-product__title {
	font-size: 15px; font-weight: 600; color: var(--navy); line-height: 1.3; margin: 0 0 7px; padding: 0;
}
.woocommerce ul.products li.product .price {
	color: var(--navy); font-weight: 700; font-size: 16px; margin: 0;
}
.woocommerce ul.products li.product .price del { color: var(--muted); font-weight: 400; font-size: 14px; margin-right: 6px; }
.woocommerce ul.products li.product .price ins { text-decoration: none; }
/* Card quick-add lives in the "Quick add on cards" block below (it covers both
   the .woocommerce-wrapped catalog and plain ul.products grids). */

.woocommerce span.onsale {
	position: absolute; top: 8px; left: 8px; right: auto; z-index: 2; margin: 0;
	min-width: 0; min-height: 0; line-height: 1;
	background: var(--sage); color: #fff; font-size: 11px; font-weight: 700;
	padding: 5px 10px; border-radius: 20px; text-transform: uppercase; letter-spacing: .5px;
}

/* ---- Product grids rendered OUTSIDE a .woocommerce wrapper (e.g. homepage [products] previews).
   Plain ul.products selectors; on the catalog the more-specific .woocommerce rules above win. ---- */
ul.products {
	list-style: none; margin: 0; padding: 0;
	display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 26px 20px;
}
ul.products li.product {
	width: auto; margin: 0; padding: 0; list-style: none;
	display: flex; flex-direction: column; text-align: left; position: relative;
}
ul.products li.product .woocommerce-LoopProduct-link { display: flex; flex-direction: column; color: inherit; }
ul.products li.product img {
	width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: contain; margin: 0 0 12px; background: #fff;
}
ul.products li.product .sp-cat { color: var(--sage); font-size: 11px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; margin: 0 0 5px; }
ul.products li.product .woocommerce-loop-product__title { font-size: 15px; font-weight: 600; color: var(--navy); line-height: 1.3; margin: 0 0 7px; padding: 0; }
ul.products li.product .price { color: var(--navy); font-weight: 700; font-size: 16px; margin: 0; }

/* ---- Quick add on cards (Nick 2026-09-15). WooCommerce prints the loop button in
   every card (content-product.php fires woocommerce_after_shop_loop_item); it used
   to be hidden here. Now it is the card's full-width CTA, pinned to the bottom of
   the flex-column card with margin-top:auto (grid rows stretch, so a whole row's
   buttons line up), with a fixed 14px gap above it from the link's padding.
   inc/enqueue.php loads wc-add-to-cart on the grid pages: the click POSTs
   ?wc-ajax=add_to_cart, then jQuery `added_to_cart` opens the FunnelKit slide cart.
   The "View cart" link WC appends after a successful add stays hidden.
   Selectors are listed twice (with and without .woocommerce) so the catalog and any
   un-wrapped grid behave the same; !important where WooCommerce's async-loaded CSS
   sets the same property (display / margin-top / .loading / .added — see the
   load-order note on the ::before/::after rule above).
   The gradient, colour, radius and shadow are RESTATED here on purpose: WC 10.9's
   woocommerce.css wraps its button reset in :where(), so `.woocommerce a.button`
   there is (0,2,1) — the same specificity as our shared button rule — and it loads
   async AFTER the inlined theme CSS, greying any card link (#e9e6ed, #515151 text,
   3px radius, no shadow). These (0,4,2) selectors outrank it. ---- */
.woocommerce ul.products li.product .woocommerce-LoopProduct-link,
ul.products li.product .woocommerce-LoopProduct-link { padding-bottom: 14px; }
.woocommerce ul.products li.product .button,
ul.products li.product .button {
	display: inline-flex !important; width: 100%; box-sizing: border-box;
	height: 46px; margin: auto 0 0 !important; padding: 0 14px;
	background: linear-gradient(100deg, var(--btn-a) 0%, var(--btn-b) 100%);
	color: #fff; font-size: 15px; font-weight: 700; line-height: 1; white-space: nowrap;
	border-radius: var(--r); box-shadow: 0 3px 8px rgba(45, 50, 101, .22);
	position: relative; overflow: hidden;
}
.woocommerce ul.products li.product .button:hover,
ul.products li.product .button:hover {
	background: linear-gradient(100deg, var(--btn-a) 0%, var(--btn-b) 100%);
	color: #fff; filter: brightness(1.16); transform: translateY(-1px);
	box-shadow: 0 6px 14px rgba(45, 50, 101, .3);
}
.woocommerce ul.products li.product .added_to_cart,
ul.products li.product .added_to_cart { display: none !important; }
/* Loading / added feedback with zero layout shift: an absolutely positioned
   overlay (same gradient via background:inherit) covers the label. WooCommerce's
   own .loading/.added rules (opacity .25, extra padding-right, a WooCommerce-font
   spinner/tick glyph — that font is not loaded on this theme) are neutralised.
   The "Added ✓" overlay holds ~1.7s, its text fades, then the overlay itself fades
   so the two labels never overlap; WC removes .added on the next click. */
.woocommerce ul.products li.product .button.loading,
ul.products li.product .button.loading { opacity: 1 !important; padding-right: 14px !important; pointer-events: none; }
.woocommerce ul.products li.product .button.added,
ul.products li.product .button.added { padding-right: 14px !important; }
.woocommerce ul.products li.product .button.loading::after,
ul.products li.product .button.loading::after,
.woocommerce ul.products li.product .button.added::after,
ul.products li.product .button.added::after {
	content: 'Adding\2026' !important;
	position: absolute !important; top: 0 !important; right: 0 !important; bottom: 0; left: 0;
	display: flex; align-items: center; justify-content: center;
	margin: 0 !important; font: inherit !important; font-weight: 700 !important; line-height: 1 !important;
	color: #fff; background: inherit; border-radius: inherit;
	animation: none !important; pointer-events: none;
}
.woocommerce ul.products li.product .button.added::after,
ul.products li.product .button.added::after {
	content: 'Added \2713' !important;
	animation: sp-qa-added 2.4s ease forwards !important;
}
@keyframes sp-qa-added {
	0%, 70% { opacity: 1; color: #fff; }
	86%     { opacity: 1; color: transparent; }
	100%    { opacity: 0; color: transparent; }
}
/* Out-of-stock cards: the loop link goes to the product page ("View", via the
   woocommerce_product_add_to_cart_text filter in content-product.php). Muted
   outline so it never reads as a buy button. */
.woocommerce ul.products li.product .button:not(.add_to_cart_button),
ul.products li.product .button:not(.add_to_cart_button) {
	background: #fff; color: var(--muted); border: 1.5px solid var(--line); box-shadow: none;
}
.woocommerce ul.products li.product .button:not(.add_to_cart_button):hover,
ul.products li.product .button:not(.add_to_cart_button):hover {
	background: #fff; color: var(--navy); border-color: var(--navy);
	filter: none; transform: none; box-shadow: none;
}

/* ---- Shop sidebar (shown on tablet/desktop, hidden on mobile) ---- */
.sp-shop-main { min-width: 0; }

/* ---- Mobile catalog: match the live site's archive UX. The sidebar becomes a
   left off-canvas "Filter" drawer; a centered FILTER toggle + the curated
   swipeable category pill row sit above the grid; the H1 / result count /
   sort dropdown are dropped (breadcrumb carries the page identity, centered).
   Desktop (≥768px, further down) reverts the sidebar to a static column and
   hides all of this chrome. ---- */
.sp-shop-sidebar {
	position: fixed; top: 0; left: 0; bottom: 0; z-index: 100000; /* below the age gate (999999) */
	width: min(84vw, 360px); background: #fff; padding: 0 20px 28px;
	overflow-y: auto; -webkit-overflow-scrolling: touch;
	transform: translateX(-105%); transition: transform .28s ease;
	box-shadow: 0 0 40px rgba(0,0,0,.18);
}
html.sp-drawer-open .sp-shop-sidebar { transform: none; }
.sp-drawer-backdrop {
	position: fixed; inset: 0; z-index: 99999; background: rgba(15,18,40,.45);
	opacity: 0; pointer-events: none; transition: opacity .25s ease;
}
html.sp-drawer-open .sp-drawer-backdrop { opacity: 1; pointer-events: auto; }
html.sp-drawer-open, html.sp-drawer-open body { overflow: hidden; }
.sp-drawer-head {
	position: sticky; top: 0; z-index: 2; background: #fff;
	display: flex; align-items: center; justify-content: space-between;
	padding: 14px 0 10px; margin: 0 0 14px; border-bottom: 1px solid var(--line);
	font-weight: 700; color: var(--navy); letter-spacing: 1px; text-transform: uppercase; font-size: 13px;
}
.sp-drawer-close {
	background: none; border: 0; font-size: 26px; line-height: 1; padding: 2px 6px;
	color: var(--muted); cursor: pointer;
}
.sp-catbar { margin: 2px 0 18px; }
.sp-filter-toggle {
	display: flex; align-items: center; gap: 8px; margin: 0 auto 14px;
	background: none; border: 0; cursor: pointer;
	font-family: var(--font); font-size: 13px; font-weight: 700;
	letter-spacing: 2px; text-transform: uppercase; color: var(--muted);
}
/* One swipeable row with every category (2026-10-20, Nick picked option A). The right edge fades while
   pills sit off-screen; the inline script in sp_slim_mobile_catalog_controls() centres the active pill
   and adds .is-end once the row is scrolled to its end. */
.sp-cat-pills {
	position: relative; display: flex; gap: 8px; padding: 2px 2px 4px;
	overflow-x: auto; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; scrollbar-width: none;
	-webkit-mask-image: linear-gradient(90deg, #000 80%, transparent); mask-image: linear-gradient(90deg, #000 80%, transparent);
}
.sp-cat-pills::-webkit-scrollbar { display: none; }
.sp-cat-pills.is-end { -webkit-mask-image: none; mask-image: none; }
.sp-cat-pills a {
	flex: 0 0 auto; scroll-snap-align: start; white-space: nowrap;
	padding: 11px 16px; border: 1px solid var(--line); border-radius: 999px; background: #fff;
	font-size: 15px; font-weight: 700; color: var(--navy);
}
.sp-cat-pills a.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }
.sp-cat-new {
	display: inline-block; margin-left: 6px; padding: 2px 6px 1px; border-radius: 999px;
	background: #2fa36b; color: #fff; font-size: 10px; font-weight: 800; letter-spacing: .6px;
	line-height: 1.4; text-transform: uppercase; vertical-align: 2px;
}
/* mobile declutter: breadcrumb (centered, small caps) carries the identity */
.sp-shop-main .sp-shop-header .page-title { display: none; }
.sp-shop-main .woocommerce-result-count,
.sp-shop-main .woocommerce-ordering { display: none; }
.sp-shop-main .woocommerce-breadcrumb {
	text-align: center; text-transform: uppercase;
	font-size: 12.5px; letter-spacing: .8px; margin-bottom: 14px;
}
.woocommerce .sp-shop-sidebar .sp-widget { margin: 0 0 30px; }
.woocommerce .sp-shop-sidebar .sp-widget__title {
	font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px;
	color: var(--navy); margin: 0 0 12px; padding-bottom: 8px; border-bottom: 2px solid var(--line);
}
.woocommerce .sp-shop-sidebar ul { list-style: none; margin: 0; padding: 0; }
/* Category pills — subtle gradient chips; the queried category inverts to navy.
   Vertical tree: one pill per line, left-aligned, children indented under the
   parent (Nick 2026-08-08 — "structured, vertical, like a tree"). */
.woocommerce .sp-shop-sidebar .product-categories,
.woocommerce .sp-shop-sidebar .product-categories .children {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 8px;
}
.woocommerce .sp-shop-sidebar .product-categories .children {
	padding-left: 16px;
	margin: 8px 0 0;
}
.woocommerce .sp-shop-sidebar .product-categories li { margin: 0; }
.woocommerce .sp-shop-sidebar .product-categories a {
	display: inline-flex;
	align-items: center;
	padding: 7px 14px;
	border-radius: 999px;
	background: linear-gradient(135deg, #f7f9fd 0%, #e9edf6 100%);
	border: 1px solid #e2e6f0;
	color: var(--navy);
	font-weight: 600;
	font-size: 13.5px;
	line-height: 1.2;
	transition: background .15s ease, border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.woocommerce .sp-shop-sidebar .product-categories a:hover {
	background: linear-gradient(135deg, #eef2fa 0%, #dde3f1 100%);
	border-color: rgba(45, 50, 101, .35);
	color: var(--navy);
	transform: translateY(-1px);
	box-shadow: 0 2px 6px rgba(45, 50, 101, .12);
}
.woocommerce .sp-shop-sidebar .product-categories .current-cat > a {
	background: linear-gradient(135deg, var(--navy) 0%, #3a4080 100%);
	border-color: var(--navy);
	color: #fff;
	box-shadow: 0 2px 8px rgba(45, 50, 101, .28);
}
.woocommerce .sp-shop-sidebar .product-categories .current-cat > a:hover {
	color: #fff;
	transform: none;
}
/* Drawer product search (replaces the old Browse category tree) — live results
   render below the input, reusing the product_list_widget row layout. */
/* Fixed-pixel geometry: the global form{display:inline-flex} rule + WC's async
   CSS both fight fluid centering here — a hard 48px box with the icon pinned at
   (14,16) and text starting at 44px cannot collapse. */
.sp-drawer-search__form { display: block !important; position: relative; height: 48px; margin: 0; }
.sp-drawer-search__icon {
	position: absolute; left: 14px; top: 16px;
	color: var(--muted); pointer-events: none;
}
.sp-drawer-search__input {
	width: 100%; height: 48px !important; padding: 0 14px 0 44px !important; /* !important: WC async CSS overrides input padding */
	border: 1px solid var(--line); border-radius: 16px !important; background: #fff; /* 16px matches the nav pill; !important: WC async CSS squares it off */
	font-family: var(--font); font-size: 16px; color: var(--ink); /* 16px: no iOS focus zoom */
}
.sp-drawer-search__input:focus { outline: none; border-color: var(--navy); }
.sp-drawer-search__results { margin-top: 14px !important; }
.woocommerce .sp-shop-sidebar .sp-drawer-search__empty {
	padding: 4px 0 !important; min-height: 0 !important;
	color: var(--muted); font-size: 13.5px; font-weight: 500;
}
.sp-drawer-search__price .amount { color: var(--navy); font-weight: 700; font-size: 13px; }
.sp-drawer-search__price del .amount { color: var(--muted); font-weight: 400; }

/* Thumb left, title/prices right. WC core's async-loaded CSS floats the widget
   image RIGHT (overlapping the title) and loads AFTER the inlined theme CSS on
   perf pages, so equal-specificity rules lose — hence the !important (same
   async-cascade lesson as the catalog grid pseudos). */
.woocommerce .sp-shop-sidebar .product_list_widget li { margin: 0 0 16px; padding: 0 0 0 60px !important; position: relative; min-height: 52px; }
.woocommerce .sp-shop-sidebar .product_list_widget a { color: var(--navy); font-weight: 600; font-size: 13px; line-height: 1.3; }
.woocommerce .sp-shop-sidebar .product_list_widget img {
	width: 48px !important; height: auto; border: 1px solid var(--line); border-radius: 6px;
	position: absolute; left: 0; top: 2px; float: none !important; margin: 0 !important;
}
.woocommerce .sp-shop-sidebar .product_list_widget .amount { color: var(--navy); font-weight: 700; font-size: 13px; }
.woocommerce .sp-shop-sidebar .product_list_widget del .amount { color: var(--muted); font-weight: 400; }

/* Pagination */
.woocommerce-pagination, .sp-postlist + .pagination, nav.pagination { margin-top: 32px; }
.woocommerce-pagination ul, .pagination .nav-links { display: flex; gap: 6px; list-style: none; padding: 0; margin: 0; flex-wrap: wrap; }
.woocommerce-pagination a, .woocommerce-pagination span,
.pagination .page-numbers {
	display: inline-flex; min-width: 40px; height: 40px; align-items: center; justify-content: center;
	border: 1px solid var(--line); border-radius: var(--r); color: var(--navy); font-weight: 600; padding: 0 10px;
}
.woocommerce-pagination .current, .pagination .page-numbers.current { background: var(--navy); color: #fff; border-color: var(--navy); }

/* =========================================================================
   Single product
   ========================================================================= */
.single-product div.product { margin: 0; }
.single-product div.product .product_title {
	font-size: 26px; font-weight: 700; color: var(--navy); line-height: 1.3; margin: 0 0 12px;
}
.single-product .woocommerce-product-gallery { margin: 0 0 24px; }
.single-product .woocommerce-product-gallery__wrapper { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.single-product .woocommerce-product-gallery__image img { border: 1px solid var(--line); border-radius: var(--r-lg); width: 100%; }

.single-product .summary .price,
.single-product .summary .price .woocommerce-Price-amount {
	color: var(--navy); font-weight: 700; font-size: 24px;
}
.single-product .summary .price del { color: var(--muted); font-weight: 400; font-size: 18px; margin-right: 8px; }
.single-product .summary .price ins { text-decoration: none; }
.woocommerce-product-details__short-description { color: var(--ink); margin: 16px 0; }

/* Add-to-cart form */
.single-product form.cart { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 20px 0; }
.single-product form.cart .quantity { margin: 0; }
.quantity .qty {
	width: 64px; height: 48px; text-align: center; font-size: 16px; font-weight: 700; color: var(--navy);
	border: 1.5px solid var(--navy); border-radius: var(--r); -moz-appearance: textfield;
}
.quantity .qty::-webkit-inner-spin-button, .quantity .qty::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.single-product .single_add_to_cart_button { height: 48px; flex: 1; min-width: 200px; }
/* Product-page ATC: the same two-tone gradient as the cards. product.css
   (.single-product div.product form.cart .single_add_to_cart_button, 0,4,2
   !important) and, on the V2 look, pdp2.css (body.sp-pdp2 …, 0,5,3 !important)
   both hard-code the button background, so these selectors are built to outrank
   them (0,5,3 and 0,6,3). Height / radius / padding stay theirs. */
body.woocommerce.single-product div.product form.cart .single_add_to_cart_button,
body.woocommerce.single-product.sp-pdp2 div.product form.cart .single_add_to_cart_button {
	background: linear-gradient(100deg, var(--btn-a) 0%, var(--btn-b) 100%) !important;
	box-shadow: 0 3px 8px rgba(45, 50, 101, .25) !important;
	transition: transform .15s ease, box-shadow .15s ease, filter .15s ease !important;
}
body.woocommerce.single-product div.product form.cart .single_add_to_cart_button:hover,
body.woocommerce.single-product.sp-pdp2 div.product form.cart .single_add_to_cart_button:hover {
	background: linear-gradient(100deg, var(--btn-a) 0%, var(--btn-b) 100%) !important;
	filter: brightness(1.16);
	transform: translateY(-1px) !important;
	box-shadow: 0 6px 14px rgba(45, 50, 101, .3) !important;
}
/* Mobile sticky add-to-cart bar (round 2, 2026-09-15). The mu-plugin
   sp-mobile-atc-bar.php prints its own <style> from wp_footer — AFTER this sheet —
   with `.sp-atcbar__btn { background: var(--navy) }` (0,1,0) and a navy-d :hover
   (0,2,0). These (0,2,0) / (0,3,0) selectors outrank both whatever the order, so
   the bar's button carries the same gradient as the real button it mirrors.
   Everything else stays the plugin's: 999px pill, 52px height, 1px ring shadow,
   disabled / aria-busy opacity, focus ring. Brightness only on hover — the bar is
   touch-only (max-width 768px) and :hover sticks after a tap, so no 1px lift. */
.sp-atcbar .sp-atcbar__btn {
	background: linear-gradient(100deg, var(--btn-a) 0%, var(--btn-b) 100%);
	transition: filter .18s ease, box-shadow .18s ease, opacity .18s ease;
}
.sp-atcbar .sp-atcbar__btn:hover {
	background: linear-gradient(100deg, var(--btn-a) 0%, var(--btn-b) 100%);
	filter: brightness(1.08);
}
/* The bar's own CSS gives the button and the qty stepper 999px pill corners; the
   rest of the site is on 8px (var(--r)), so square them to match (Nick 2026-10-02). */
.sp-atcbar .sp-atcbar__btn, .sp-atcbar .sp-atcbar__qty { border-radius: var(--r); }
.sp-atcbar .sp-atcbar__q:focus-visible { border-radius: var(--r); }


.product_meta { font-size: 13px; color: var(--muted); margin-top: 18px; }
.product_meta > span { display: block; margin-bottom: 4px; }
.product_meta a { color: var(--sage); font-weight: 600; }

/* Tabs */
.woocommerce-tabs { margin-top: 40px; clear: both; }
.woocommerce-tabs ul.tabs { list-style: none; margin: 0 0 20px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; border-bottom: 2px solid var(--line); }
.woocommerce-tabs ul.tabs li { margin: 0; }
.woocommerce-tabs ul.tabs li a {
	display: block; padding: 12px 18px; font-weight: 700; color: var(--muted);
	border-bottom: 3px solid transparent; margin-bottom: -2px;
}
.woocommerce-tabs ul.tabs li.active a { color: var(--navy); border-bottom-color: var(--sage); }
.woocommerce-tabs .panel { margin: 0; }
.woocommerce-tabs h2 { font-size: 20px; }

/* Related / upsells */
.related.products, .upsells.products { margin-top: 48px; clear: both; }
.related.products > h2, .upsells.products > h2 { font-size: 22px; margin-bottom: 18px; }

/* =========================================================================
   Page + blog content
   ========================================================================= */
.sp-page { max-width: 900px; }
.sp-page-title { font-size: 30px; margin-bottom: 20px; }

.sp-single-post { max-width: 900px; }
.sp-single-post .entry-title { font-size: 2.1rem; color: var(--navy); margin-bottom: 10px; }
.sp-post-meta { color: var(--muted); font-size: 14px; margin-bottom: 20px; }
.sp-post-thumb img { border-radius: var(--r-lg); margin-bottom: 24px; width: 100%; }

.entry-content { font-size: 1.05rem; line-height: 1.8; color: var(--ink); }
.entry-content h2 {
	font-size: 1.6rem; color: var(--navy); margin: 2em 0 .6em;
	border-left: 4px solid var(--sage); padding-left: 16px;
}
.entry-content h3 { font-size: 1.3rem; color: var(--navy); margin: 1.6em 0 .5em; }
.entry-content strong { color: var(--navy); }
.entry-content a { color: var(--navy); text-decoration: underline; font-weight: 600; }
.entry-content a:hover { color: var(--sage); }
.entry-content ul { list-style: none; padding-left: 0; margin: 1.4em 0; }
.entry-content ul li { position: relative; padding-left: 28px; margin-bottom: 10px; }
.entry-content ul li::before { content: "\2192"; position: absolute; left: 0; color: var(--sage); font-weight: 700; }
.entry-content blockquote { border-left: 4px solid var(--sage); padding: 16px 24px; margin: 24px 0; background: var(--soft); font-style: italic; border-radius: 0 var(--r) var(--r) 0; }
.entry-content table { width: 100%; border-collapse: collapse; margin: 24px 0; border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); }
.entry-content table th { background: var(--sage); color: var(--navy); font-weight: 700; text-align: left; padding: 14px; text-transform: uppercase; font-size: .9rem; letter-spacing: .5px; }
.entry-content table td { padding: 14px; border-bottom: 1px solid var(--line); }
.entry-content img { border-radius: var(--r); margin: 1em 0; }

/* Blog listing cards */
.sp-postlist { display: grid; grid-template-columns: 1fr; gap: 28px; }
.sp-postcard { border-bottom: 1px solid var(--line); padding-bottom: 24px; }
.sp-postcard__thumb img { width: 100%; height: 240px; object-fit: cover; border-radius: var(--r-lg); margin-bottom: 14px; }
.sp-postcard__title { font-size: 1.4rem; margin-bottom: 8px; }
.sp-postcard__excerpt { color: var(--muted); }
.sp-readmore { font-weight: 700; color: var(--sage); }

/* =========================================================================
   Footer
   ========================================================================= */
.sp-footer { margin-top: 48px; }
.sp-footer__disclaimer { background: #777; }
.sp-footer__disclaimer .sp-container { padding-block: 40px; }
.sp-footer__disclaimer-title { color: #fff; font-size: 16px; font-weight: 400; margin: 0 0 18px; }
.sp-footer__disclaimer p { font-size: 13px; line-height: 1.75; color: #f1f1f1; margin: 0 0 14px; max-width: none; }
.sp-footer__disclaimer p:last-child { margin: 0; }
.sp-footer__disclaimer p.sp-footer__badge { margin-top: 22px; line-height: 0; }
.sp-footer__badge a { display: inline-block; }
.sp-footer__badge img { display: block; max-width: 100%; height: auto; }
.sp-footer__bar { background: #5b5b5b; color: #fff; }
.sp-footer__bar .sp-container { padding-block: 18px; }
.sp-footer__menu { list-style: none; margin: 0 0 10px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.sp-footer__menu a { color: #fff; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .5px; }
.sp-footer__menu a:hover { color: var(--yellow-2); }
.sp-footer__copy { margin: 0; color: rgba(255, 255, 255, .8); font-size: 12px; }

/* =========================================================================
   Responsive — desktop layers
   ========================================================================= */
@media (min-width: 600px) {
	.woocommerce ul.products { gap: 28px 22px; }
	.sp-footer__inner { grid-template-columns: 1.2fr 1fr; }
}

/* Sidebar appears on tablet and up; main column collapses to full width below. */
@media (min-width: 768px) {
	.sp-shop-layout { display: grid; grid-template-columns: 250px 1fr; gap: 36px; align-items: start; }
	/* desktop: sidebar back to a static column; drop all mobile drawer chrome */
	.sp-shop-sidebar {
		display: block; position: static; transform: none; width: auto;
		box-shadow: none; padding: 0; overflow: visible; z-index: auto; transition: none;
	}
	.sp-catbar, .sp-drawer-head, .sp-drawer-backdrop { display: none; }
	.sp-shop-main .sp-shop-header .page-title { display: block; }
	.sp-shop-main .woocommerce-result-count { display: block; }
	.sp-shop-main .woocommerce-ordering { display: block; }
	.sp-shop-main .woocommerce-breadcrumb {
		text-align: left; text-transform: none; font-size: 13px; letter-spacing: 0; margin-bottom: 16px;
	}
}

@media (min-width: 920px) {
	.sp-main { padding: 32px 0 64px; }

	/* Desktop nav inline */
	.sp-burger { display: none; }
	.sp-nav { order: 0; flex-basis: auto; display: block !important; margin-left: 24px; }
	.sp-menu { display: flex; gap: 26px; align-items: center; }
	.sp-menu li { border: 0; position: relative; }
	.sp-menu > li > a { padding: 8px 0; }
	.sp-menu .sub-menu {
		position: absolute; top: 100%; left: 0; min-width: 200px; padding: 8px 0;
		background: #fff; border: 1px solid var(--line); border-radius: var(--r);
		box-shadow: var(--shadow); display: none; z-index: 50;
	}
	.sp-menu li:hover > .sub-menu { display: block; }
	.sp-menu .sub-menu a { padding: 8px 16px; }
	.sp-cart { margin-left: 16px; }

	/* Product two-column: image + details side by side, balanced widths so the
	   details column can't sprawl wider than the image.
	   NOTE: WC core (woocommerce-layout.css) floats div.images left + div.summary
	   right at width:48% via `.woocommerce div.product div.*` selectors (0,3,2) that
	   OUTRANK plain theme selectors. We must match that `.woocommerce` prefix and
	   use !important to kill the float and convert it to a balanced flexbox, or the
	   details column stays floated to the right at ~48% (looks "too wide"). */
	.woocommerce div.product { display: flex !important; flex-wrap: wrap; gap: 48px; align-items: flex-start; }
	.woocommerce div.product div.images,
	.woocommerce div.product .woocommerce-product-gallery { float: none !important; width: auto !important; flex: 0 1 480px !important; max-width: 480px !important; margin: 0; }
	.woocommerce div.product div.summary { float: none !important; width: auto !important; clear: none; flex: 1 1 0 !important; max-width: 480px !important; margin: 0; }
	/* Everything below the two columns spans the full content width. */
	.woocommerce div.product .sp-product-desc,
	.woocommerce div.product .woocommerce-tabs,
	.woocommerce div.product .related,
	.woocommerce div.product .upsells { float: none !important; width: 100% !important; flex: 0 0 100%; }
	.single-product div.product .product_title { font-size: 30px; }

	.woocommerce .related.products ul.products, .woocommerce .upsells.products ul.products { grid-template-columns: repeat(4, 1fr); }

	.sp-footer__menu { columns: 1; display: flex; gap: 24px; flex-wrap: wrap; }
}

@media (min-width: 1100px) {
	.woocommerce-products-header__title { font-size: 32px; }
	.woocommerce ul.products { grid-template-columns: repeat(3, 1fr); }
}

/* ============================================================================
   V2 FLOATING PILL NAV — sitewide (Nick 2026-07-27, Vera-Peptides-inspired).
   Gated on body.sp-v2 (added when the V2 look is on) so switching the look OFF
   restores the plain white header exactly. The only markup change is a
   V2-gated actions cluster in header.php (person-icon account + navy cart btn).
   The checkout header (.sp-header--checkout, centered-logo only) is excluded so
   the distraction-free checkout chrome is untouched.
   ========================================================================= */
/* Header goes transparent; the inner container becomes a rounded, shadowed pill
   inset from the page edges, so it "pops off" the page. */
/* sp-v2 moves the "floating bar" treatment from the header onto .sp-header__inner.
   The header keeps position:sticky and its 16px side inset, so it is ~200px WIDER than
   the pill. The older treatment above also set a backdrop-filter on .sp-header; cancelling
   only background+box-shadow left that filter alive on a transparent, full-width element,
   which saturated/blurred whatever sat behind the strips either side of the pill. Over
   white that is invisible; over the navy hero it read as a floating box stretching to both
   screen edges. The pill is opaque #fff, so no blur is needed here at all. */
body.sp-v2 .sp-header:not(.sp-header--checkout) { background: transparent; border-bottom: 0; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
body.sp-v2 .sp-header:not(.sp-header--checkout).is-scrolled { box-shadow: none; }
body.sp-v2 .sp-header:not(.sp-header--checkout) .sp-header__inner {
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 10px 30px rgba(45, 50, 101, .15), 0 2px 6px rgba(45, 50, 101, .08);
	padding: 8px 18px;
	margin-top: 14px;
}

/* actions cluster (account + cart) */
body.sp-v2 .sp-nav-actions { display: flex; align-items: center; gap: 10px; }

/* My Account — light rounded button, navy person icon */
body.sp-v2 .sp-account {
	display: inline-flex; align-items: center; justify-content: center;
	width: 42px; height: 42px; border-radius: 12px;
	color: var(--navy); background: #fff; border: 1px solid var(--line);
	transition: background .15s ease, border-color .15s ease;
}
body.sp-v2 .sp-account:hover { background: #f5f6fb; border-color: #d5daea; color: var(--navy); }

/* Cart — navy (main blue) button, white bag icon + label + count badge */
body.sp-v2 .sp-cart--btn {
	display: inline-flex; align-items: center; gap: 8px;
	height: 42px; padding: 0 16px; border-radius: 12px; margin-left: 0;
	background: var(--navy); color: #fff;
	font-weight: 700; font-size: 14px; letter-spacing: .2px;
	transition: background .15s ease;
}
body.sp-v2 .sp-cart--btn:hover { background: #232750; color: #fff; }
body.sp-v2 .sp-cart--btn .sp-cart__icon { color: #fff; }
body.sp-v2 .sp-cart--btn .sp-cart__count {
	position: static; top: auto; right: auto;
	min-width: 20px; height: 20px; background: var(--sage); color: #fff;
}
/* the base .sp-cart__count sets display:inline-flex, which beats the [hidden]
   attribute — force it hidden at 0 so an empty cart shows just "Cart", no "0".
   Not scoped to body.sp-v2 any more (round 2, 2026-09-15): the classic icon-only
   cart prints the same span with the same `hidden` at 0 — and so does the
   add-to-cart fragment in inc/woocommerce.php — but showed a "0" pill. */
.sp-cart__count[hidden] { display: none !important; }

/* Desktop: center the menu — logo left · menu center · actions right */
@media (min-width: 768px) {
	body.sp-v2 .sp-header:not(.sp-header--checkout) .sp-header__inner { justify-content: space-between; }
	body.sp-v2 .sp-header:not(.sp-header--checkout) .sp-logo { margin-right: 0; flex: 1 1 0; }
	body.sp-v2 .sp-header:not(.sp-header--checkout) .sp-nav { flex: 0 0 auto; margin-left: 0; }
	body.sp-v2 .sp-nav-actions { flex: 1 1 0; justify-content: flex-end; }
}

/* Mobile: keep the WHOLE bar on ONE row. The site logo is a fixed 240px, which
   overflowed the pill and wrapped the actions + burger onto a second line on the
   left. Shrink the logo + tighten the actions so it's: logo · … · [account][cart]
   [burger], all one row, bag-only. */
@media (max-width: 767px) {
	/* width:auto (not the container's 100%) so margin-inline insets the pill
	   instead of shifting it 10px off the right edge. */
	body.sp-v2 .sp-header:not(.sp-header--checkout) .sp-header__inner { width: auto; padding: 6px 12px; margin-inline: 10px; gap: 8px; }
	body.sp-v2 .sp-header:not(.sp-header--checkout) .sp-logo__img { max-width: 140px; height: auto; }
	body.sp-v2 .sp-nav-actions { order: 3; gap: 8px; }
	body.sp-v2 .sp-burger { order: 4; padding: 8px 4px; }
	body.sp-v2 .sp-account { width: 38px; height: 38px; }
	body.sp-v2 .sp-cart--btn { height: 38px; padding: 0 11px; gap: 0; }
	body.sp-v2 .sp-cart--btn .sp-cart__label { display: none; }
}

/* Mix & Match promo band: hidden sitewide on the V2 look (Nick 2026-07-27 — "no
   longer wanting this notice"). Was product-only before; now gone everywhere.
   sp-bulk-discounts still applies the discount at cart; this only drops the banner. */
body.sp-v2 #sp-mm-promo { display: none !important; }

/* ============================================================================
   V2 PRODUCT CARD — shared by the pdp2 related-products grid AND the homepage
   best-sellers (Nick 2026-07-27). Rendered by sp_v2_product_card() (inc/pdp2.php).
   Scoped body.sp-v2 (present on both pages). Grid + card only; the section
   wrapper/heading is caller-specific (pdp2: .sp-rel/.sp-rel__h in pdp2.css;
   homepage: .sp-bestsellers/.sp-home-title in home.css).
   ========================================================================= */
body.sp-v2 .sp-rel-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
body.sp-v2 .sp-rel-card {
	display: flex; flex-direction: column;
	background: #fff; border: 1px solid var(--line); border-radius: 14px;
	box-shadow: inset 0 0 0 1px var(--line), 0 2px 0 rgba(45, 50, 101, .07); padding: 16px;
}
body.sp-v2 .sp-rel-card__img { display: block; text-align: center; margin-bottom: 8px; }
body.sp-v2 .sp-rel-card__img img { height: 150px; width: auto; max-width: 100%; object-fit: contain; display: inline-block; }
body.sp-v2 .sp-rel-card__name { display: block; font-size: 16px; font-weight: 700; color: var(--navy); line-height: 1.25; }
body.sp-v2 .sp-rel-card__name:hover { color: var(--sage); }
body.sp-v2 .sp-rel-card__specs {
	display: grid; grid-template-columns: 0.85fr 0.85fr 1.3fr; gap: 6px; /* FORM wider so "Lyophilized" fits one line */
	background: var(--soft); border: 1px solid rgba(45, 50, 101, .16); /* thin blue stroke */
	border-radius: 10px; padding: 10px 11px; margin-bottom: 14px;
}
/* first-order (New Customer) price line — same eligibility as the main product */
body.sp-v2 .sp-rel-card__ncp { text-align: center; font-size: 12.5px; color: #4f7a35; margin: 9px 0 0; font-weight: 600; }
body.sp-v2 .sp-rel-card__ncp b { color: #4f7a35; }
body.sp-v2 .sp-rel-card__ncp s { color: var(--muted); font-weight: 400; margin-left: 5px; }
body.sp-v2 .sp-rel-card__ncp .amount { white-space: nowrap; }
body.sp-v2 .sp-rel-card__spec { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
body.sp-v2 .sp-rel-card__spec .lbl { font-size: 9px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
body.sp-v2 .sp-rel-card__spec .val { font-size: 12.5px; font-weight: 700; color: var(--navy); line-height: 1.2; white-space: nowrap; } /* one line, never break mid-word */
body.sp-v2 .sp-rel-card__cta {
	margin-top: auto; display: block; text-align: center; width: 100%;
	border: 0; border-radius: var(--r); padding: 12px 10px; cursor: pointer; /* 8px, same corners as the product-page ADD TO CART (was a 999px pill; Nick 2026-09-29) */
	/* The same two-tone gradient as every other primary add button (round 2,
	   2026-09-15; was solid var(--navy)). The "Add to order" button and the
	   "View product" anchor share this class, so both get it — related grid on the
	   product page, homepage best-sellers, cart cross-sells, /welcome. Pill radius,
	   size and the sage .is-added flip below are unchanged. */
	background: linear-gradient(100deg, var(--btn-a) 0%, var(--btn-b) 100%);
	color: #fff; font-weight: 700; font-size: 13.5px; letter-spacing: .2px; line-height: 1.2;
	transition: filter .15s ease, transform .15s ease;
}
body.sp-v2 .sp-rel-card__cta:hover { filter: brightness(1.16); color: #fff; transform: translateY(-1px); }
body.sp-v2 .sp-rel-card__cta.is-loading { opacity: .7; cursor: default; }
body.sp-v2 .sp-rel-card__cta.is-added { background: var(--sage) !important; filter: none; }
body.sp-v2 .sp-rel-card__ruo { text-align: center; font-size: 9.5px; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); margin-top: 10px; }
@media (max-width: 700px) {
	body.sp-v2 .sp-rel-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
	body.sp-v2 .sp-rel-card { padding: 13px; }
	body.sp-v2 .sp-rel-card__img img { height: 120px; }
}
@media (max-width: 380px) {
	body.sp-v2 .sp-rel-grid { grid-template-columns: 1fr; }
}

/* ---- V2 card spec box on narrow cards (2026-09-15, /welcome mobile pass).
        At 2-up phone widths (390-430px) and 4-up tablets (701-899px) the card is
        only ~150-190px wide, so DOSE / PURITY / FORM cannot share one row:
        "Lyophilized" ran past the box edge and "mg" touched "≥99%" on the homepage,
        the product-page related grid and /welcome alike. Keyed on the CARD's width
        (container query), not the viewport, because the same card sits in grids of
        different widths. Narrow cards put Dose + Purity on row one and Form on its
        own row. Browsers without container queries keep the one-row layout. ---- */
body.sp-v2 .sp-rel-card { container-type: inline-size; }
@container (max-width: 180px) {
	body.sp-v2 .sp-rel-card__specs { grid-template-columns: 1fr 1fr; row-gap: 8px; }
	body.sp-v2 .sp-rel-card__spec:nth-child(3) { grid-column: 1 / -1; }
}


/* ---- V2 card CTA: consistent size across cards (Nick 2026-07-30). Long prices
        wrapped to two lines on some cards and one on others, so the buttons were
        visibly different heights. Fixed min-height + flex centring makes them
        identical whether the label wraps or not; dropping the trailing ".00" in
        sp_v2_product_card() also shortens most labels so wrapping is rarer.
        (min-height rather than nowrap: nowrap would overflow a ~160px card at
        375px with a long name + price.) ---- */
body.sp-v2 .sp-rel-card__cta {
	min-height: 48px;
	display: flex !important;
	align-items: center;
	justify-content: center;
	padding: 10px 14px !important;
	font-size: 13px !important;
	line-height: 1.25 !important;
	text-wrap: balance;
}

/* ---- V2 card title: always occupy exactly two lines (Nick 2026-07-30).
        Long names ("GLOW (GHK-CU, BPC-157 & TB-500)") wrapped to 2 lines while
        short ones ("GLP-2 (T)") used 1, which pushed the spec box, CTA and price
        line to different heights across the row. Reserving 2 lines gives every
        card the same rhythm with nothing truncated. The line-clamp is a guard so
        a future 3-line title can't reintroduce the misalignment. ---- */
body.sp-v2 .sp-rel-card__name {
	display: -webkit-box !important;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	min-height: 2.5em;   /* 2 x line-height(1.25) */
}

/* ==================================================================
   Lab Results (page 459) — restore the fixed-height shell + scrolling
   compound index that broke at cutover. The page's own CSS gives the
   shell only min-height and .c4-idx overflow:hidden; under Flatsome
   something external bounded it. Own the behavior deliberately now:
   desktop = viewport-fit shell, both panes scroll internally;
   stacked mobile = natural detail height, capped scrolling index.
   ================================================================== */
@media (min-width: 920px) {
	body.page-id-459 .c4__shell {
		height: clamp(560px, calc(100vh - 230px), 940px);
	}

	body.page-id-459 .c4-idx {
		min-height: 0; /* grid child: allow it to shrink so overflow works */
	}

	body.page-id-459 .c4-idx__scroll {
		flex: 1 1 auto;
		min-height: 0;
		overflow-y: auto;
		overscroll-behavior: contain;
	}

	body.page-id-459 .c4-pane {
		min-height: 0;
		overflow-y: auto;
		overscroll-behavior: contain;
	}
}

@media (max-width: 919px) {
	body.page-id-459 .c4-idx__scroll {
		max-height: 46vh;
		overflow-y: auto;
		-webkit-overflow-scrolling: touch;
	}
}



/* ==================================================================
   Catalog render windowing, take 2. The first attempt used
   `contain-intrinsic-size: auto 430px`, which claims 430px on BOTH
   axes — skipped tiles then demanded a 430px intrinsic WIDTH and blew
   the phone grid apart. Height-only this time: tracks are repeat(N,1fr)
   so width always comes from the container, and the reserved height
   stops scrollbar jumps. Gated behind @supports for older engines.
   ================================================================== */
@supports (content-visibility: auto) {
	.woocommerce ul.products li.product {
		content-visibility: auto;
		contain-intrinsic-width: none;
		contain-intrinsic-height: auto 430px;
	}
}
/* ==================================================================
   /join/ — Select2 fields on the gatekeeper login/register forms

   The State and research-institution dropdowns are Select2-enhanced. Select2
   writes a stale inline width onto its container (measured at init, not at the
   current breakpoint) and hides the original <select> via .select2-hidden-accessible
   — but ONLY if the rules below are in scope.

   myaccount.css already fixes this, with the very same "select2 stale inline
   width" comment, but every rule there is scoped to
   `.woocommerce-account #customer_login`. /join/ is the gatekeeper page, not
   /my-account/, and it does not even enqueue myaccount.css — so on /join/ both
   dropdowns rendered 375px wide inside a 263px column, 50px past the phone
   viewport, 30px tall against the inputs' 49px. Measured on prod 2026-08-11
   after the cutover; signups fell from ~14/day to ~1/day.
   ================================================================== */
.woocommerce-form-register .select2-container,
.woocommerce-form-login .select2-container { width: 100% !important; max-width: 100% !important; }

/* keep the original select visually hidden without removing it from the a11y tree */
.woocommerce-form-register select.select2-hidden-accessible,
.woocommerce-form-login select.select2-hidden-accessible {
	position: absolute !important;
	width: 1px !important; height: 1px !important;
	padding: 0 !important; margin: -1px !important;
	overflow: hidden !important; clip: rect(0 0 0 0) !important;
	white-space: nowrap !important; border: 0 !important;
}

/* any dropdown Select2 did NOT enhance must still match the text inputs */
.woocommerce-form-register select:not(.select2-hidden-accessible),
.woocommerce-form-login select:not(.select2-hidden-accessible) {
	width: 100% !important;
	max-width: 100% !important;
	height: 48px;
	padding: 0 14px;
	border: 1px solid #ddd;
	border-radius: 8px;
	background: #fff;
	font-size: 15px;
	box-sizing: border-box;
}

/* the rendered Select2 box should read like the inputs beside it */
.woocommerce-form-register .select2-container--default .select2-selection--single,
.woocommerce-form-login .select2-container--default .select2-selection--single {
	height: 48px;
	border: 1px solid #ddd;
	border-radius: 8px;
	display: flex;
	align-items: center;
	padding: 0 14px;
}
.woocommerce-form-register .select2-container--default .select2-selection--single .select2-selection__rendered,
.woocommerce-form-login .select2-container--default .select2-selection--single .select2-selection__rendered {
	line-height: normal; padding: 0; font-size: 15px; color: #2c2c2c;
}
.woocommerce-form-register .select2-container--default .select2-selection--single .select2-selection__arrow,
.woocommerce-form-login .select2-container--default .select2-selection--single .select2-selection__arrow {
	height: 46px; right: 8px;
}

/* ------------------------------------------------------------------
   Sticky header: make it actually stick.

   .sp-header has declared `position: sticky; top: 0` since the cutover, but it
   has never worked. The inherited Flatsome critical CSS still sets
   `html { overflow-x: hidden }`, and ANY ancestor with overflow hidden/auto/
   scroll silently disables sticky positioning in every browser — no warning,
   the rule just does nothing. Measured on the live shop archive: at scrollY
   1200 the header sat at top:-1200px, i.e. fully scrolled away.

   `overflow-x: clip` prevents sideways overflow exactly like `hidden` but does
   NOT create a scroll container, so sticky survives. Verified in-browser: header
   pins at top:0 under scroll, and no horizontal scrollbar is introduced.

   `hidden` stays as the fallback for Safari < 16 / older engines that lack clip.
   ------------------------------------------------------------------ */
html, body { overflow-x: hidden; }
@supports (overflow: clip) {
	html, body { overflow-x: clip; }
}

/* ------------------------------------------------------------------
   Sticky header floats instead of butting against the browser edge.

   Once sticky actually worked (see the overflow-x:clip note above) the header
   pinned flush at top:0, which reads as stuck-to-the-chrome rather than
   deliberate. Inset it so the gap looks intentional: a rounded, translucent bar
   that floats over the content, matching the reference design.

   Measured in-browser at 1280px: top 12px, 16px inset each side, 1248px wide.
   The side inset matters — a full-width bar with only a top gap looks like a
   rendering bug, because page content shows in the strip above it.
   ------------------------------------------------------------------ */
.sp-header {
	top: 12px;
	margin-inline: 16px;
	border-radius: 14px;
	border-bottom: 0;
	background: rgba(255, 255, 255, .92);
	-webkit-backdrop-filter: saturate(180%) blur(12px);
	backdrop-filter: saturate(180%) blur(12px);
	box-shadow: 0 6px 24px rgba(20, 24, 48, .10);
}
/* Logged-in admins get WP's 32px toolbar; clear it so the bar doesn't tuck under. */
body.admin-bar .sp-header { top: 44px; }
@media screen and (max-width: 782px) {
	body.admin-bar .sp-header { top: 58px; } /* WP toolbar is 46px on small screens */
}
/* Tighter inset on phones so the bar keeps its usable width. */
@media (max-width: 600px) {
	.sp-header { margin-inline: 10px; top: 10px; border-radius: 12px; }
}
/* The checkout header is a different, calmer treatment — leave it flush. */
.sp-header--checkout {
	top: 0;
	margin-inline: 0;
	border-radius: 0;
	box-shadow: none;
	backdrop-filter: none;
	background: #fff;
}


/* == SP MOBILE TYPE LAYER v2 (generated 2026-08-12) — desktop untouched; sub-15px rules +3 capped at 17, body 17px, on <=768px. Delete this block to revert. == */
@media (max-width: 768px) {
	.sp-topbar { font-size: 16px !important; }
	.sp-cart__count { font-size: 14px !important; }
	.wp-block-woocommerce-cart .wc-block-cart-item__product .wc-block-components-product-name { font-size: 17px !important; }
	.woocommerce-message, .woocommerce-info, .woocommerce-error { font-size: 17px !important; }
	.woocommerce-breadcrumb { font-size: 16px !important; }
	.woocommerce .woocommerce-result-count { font-size: 17px !important; }
	.woocommerce ul.products li.product .sp-cat { font-size: 14px !important; }
	.woocommerce ul.products li.product .price del { font-size: 17px !important; }
	.woocommerce span.onsale { font-size: 14px !important; }
	ul.products li.product .sp-cat { font-size: 14px !important; }
	.sp-drawer-head { font-size: 16px !important; }
	.sp-filter-toggle { font-size: 16px !important; }
	.sp-shop-main .woocommerce-breadcrumb { font-size: 15.5px !important; }
	.woocommerce .sp-shop-sidebar .sp-widget__title { font-size: 16px !important; }
	.woocommerce .sp-shop-sidebar .product-categories a { font-size: 16.5px !important; }
	.woocommerce .sp-shop-sidebar .sp-drawer-search__empty { font-size: 16.5px !important; }
	.sp-drawer-search__price .amount { font-size: 16px !important; }
	.woocommerce .sp-shop-sidebar .product_list_widget a { font-size: 16px !important; }
	.woocommerce .sp-shop-sidebar .product_list_widget .amount { font-size: 16px !important; }
	.product_meta { font-size: 16px !important; }
	.sp-post-meta { font-size: 17px !important; }
	.sp-footer__disclaimer p { font-size: 16px !important; }
	.sp-footer__menu a { font-size: 15px !important; }
	.sp-footer__copy { font-size: 15px !important; }
	body.sp-v2 .sp-cart--btn { font-size: 17px !important; }
	body.sp-v2 .sp-rel-card__ncp { font-size: 15.5px !important; }
	body.sp-v2 .sp-rel-card__spec .val { font-size: 15.5px !important; }
	body.sp-v2 .sp-rel-card__cta { font-size: 16.5px !important; }
	body.sp-v2 .sp-rel-card__cta { font-size: 16px !important; }
}
@media (max-width: 768px) {
	body { font-size: 17px; }
	input[type="text"], input[type="email"], input[type="tel"], input[type="password"],
	input[type="number"], input[type="search"], select, textarea { font-size: 16px !important; }
}

/* ------------------------------------------------------------------
   Sticky shop sidebar — tablet + desktop only (2026-08-23)

   The catalog column is ~8,400px tall on /product-category/research-peptides/
   while the sidebar is only ~615px, so the filters/categories scrolled away
   almost immediately and were unreachable for the rest of the page. Pin the
   sidebar so only the product grid scrolls.

   OFFSET MATHS — the pinned chrome is TWO stacked sticky layers, not one:
     .sp-flash-wrap  sticky  top: 8px                        z-index 110
     .sp-header      sticky  top: var(--sp-flash-h, 12px)    z-index 100, 67px tall
   The flash-sale WPCode snippet sets --sp-flash-h on <html> and REMOVES it when
   the countdown ends (it also toggles body.sp-flash-on). Reusing that same
   variable here means this offset follows the flash bar automatically. Do NOT
   hard-code the measured 155px: the moment the sale finishes the header returns
   to top:12px and a hard-coded value would leave a 76px hole above the sidebar.

   REQUIRES (both already true, don't "tidy" them away):
   - .sp-shop-layout has align-items:start. A stretched grid item fills the row
     and has no free space to stick in, so sticky silently does nothing.
   - html/body use overflow-x:clip, not hidden. Any ancestor with overflow
     hidden/auto/scroll kills sticky with no warning — see the "Sticky header"
     note earlier in this file, which is why clip was introduced.

   max-height + overflow-y keep the sidebar usable when it is taller than the
   space under the header: iPad landscape (1024x768) leaves ~581px for a ~615px
   sidebar, so it must be able to scroll internally. The scrollbar therefore
   only appears when it is genuinely needed.

   Mobile (<768px) is deliberately untouched — there the sidebar is the
   off-canvas "Filter" drawer (position:fixed) and must stay that way.

   Revert: delete this block.
   ------------------------------------------------------------------ */
:root {
	--sp-header-h: 67px;   /* .sp-header measured height at >=768px */
	--sp-chrome-top: 12px; /* .sp-header's own top when no flash bar is present */
	--sp-chrome-gap: 16px; /* breathing room between header and sidebar */
}
/* Mirrors `body.admin-bar .sp-header { top: 44px }` so logged-in admins match. */
body.admin-bar { --sp-chrome-top: 44px; }

@media (min-width: 768px) {
	.sp-shop-sidebar {
		position: sticky;
		top: calc(var(--sp-flash-h, var(--sp-chrome-top)) + var(--sp-header-h) + var(--sp-chrome-gap));
		/* dvh where supported so iOS Safari's collapsing toolbar doesn't clip it */
		max-height: calc(100vh - var(--sp-flash-h, var(--sp-chrome-top)) - var(--sp-header-h) - (var(--sp-chrome-gap) + 8px));
		max-height: calc(100dvh - var(--sp-flash-h, var(--sp-chrome-top)) - var(--sp-header-h) - (var(--sp-chrome-gap) + 8px));
		/* the >=768px block above sets overflow:visible; sticky column needs to scroll */
		overflow-x: hidden;
		overflow-y: auto;
		overscroll-behavior: contain;
		scrollbar-width: thin;
	}
}

/* ==================================================================
   Catalog "spec strip" card (Nick 2026-09-29, option C of four tried on dev).
   Shop / product-category / product-search cards only (li.sp-card--spec, set in
   content-product.php). The photo fills a 7:10 studio plate: the new-label shots
   have the vials between ~10% and ~88% of the frame height, so 7:10 with a 48%
   focal point shows each vial whole with a little room above and below. It used
   to sit letterboxed in a white 1:1 box, which is what made cards look like they
   "float". Then title, price, the Dose / Purity / Form strip, and quick-add.
   ================================================================== */
.woocommerce ul.products li.product.sp-card--spec {
	--spc-pad: 14px;
	overflow: hidden; background: #fff; border: 1px solid #e3e6ef; border-radius: 14px;
	padding-bottom: var(--spc-pad);
	transition: box-shadow .25s ease, border-color .25s ease;
}
.woocommerce ul.products li.product.sp-card--spec .sp-card__plate {
	position: relative; display: block; overflow: hidden; aspect-ratio: 7 / 10; margin: 0 0 12px; background: #e6e8ec;
}
.woocommerce ul.products li.product.sp-card--spec .sp-card__plate img {
	display: block; width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; object-position: 50% 48%;
	margin: 0; background: none; border-radius: 0; transition: transform .6s cubic-bezier(.2, .7, .2, 1);
}
@media (hover: hover) {
	.woocommerce ul.products li.product.sp-card--spec:hover { border-color: #cfd4e3; box-shadow: 0 14px 30px -18px rgba(11, 18, 51, .35); }
	.woocommerce ul.products li.product.sp-card--spec:hover .sp-card__plate img { transform: scale(1.035); }
}
/* Two-line titles used to push the price, strip and button down on just that card
   (Nick 2026-10-02). Cards in a grid row share a height, so let the link block grow
   and pin the price to its bottom: title sits under the photo, the price / strip /
   add button line up across the row, and the only variable space is between the
   title and the price. Text size is untouched. */
.woocommerce ul.products li.product.sp-card--spec .woocommerce-LoopProduct-link { display: flex; flex-direction: column; flex: 1 1 auto; padding-bottom: 12px; } /* explicit flex column: a later rule had it as block, which made the price's margin-top:auto a no-op */
.woocommerce ul.products li.product.sp-card--spec .price { margin-top: auto; padding-top: 10px; }
.woocommerce ul.products li.product.sp-card--spec .woocommerce-loop-product__title,
.woocommerce ul.products li.product.sp-card--spec .price { padding-left: var(--spc-pad); padding-right: var(--spc-pad); }
.woocommerce ul.products li.product.sp-card--spec .button { margin: auto var(--spc-pad) 0 !important; width: calc(100% - 2 * var(--spc-pad)) !important; }
.sp-card__specs {
	display: grid; grid-auto-flow: column; justify-content: space-between; gap: 6px;
	margin: 2px var(--spc-pad) 12px; padding: 10px 0 0; border-top: 1px solid #eceef4;
}
.sp-card__spec { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.sp-card__spec i { font-style: normal; font-size: 9.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #8a90a6; }
.sp-card__spec b { font-size: 13px; font-weight: 700; color: #0b1233; white-space: nowrap; }
.sp-card__spec.is-coa b { color: #5f8a45; }
@media (max-width: 599px) {
	.woocommerce ul.products li.product.sp-card--spec { --spc-pad: 10px; }
	.sp-card__spec--form { display: none; }
	.sp-card__spec i { font-size: 9px; }
	.sp-card__spec b { font-size: 12.5px; }
}

/* Taller than the old cards: reserve ~their real height for off-screen cards
   (measured 2026-09-29: ~525px on a 390px phone, ~665px on the 3-column desktop). */
@supports (content-visibility: auto) {
	.woocommerce ul.products li.product.sp-card--spec { contain-intrinsic-height: auto 525px; }
	@media (min-width: 600px) { .woocommerce ul.products li.product.sp-card--spec { contain-intrinsic-height: auto 680px; } }
}

/* Flash-sale banner (#spFlashWrap, mu-plugin sp-flash-sale-banner.php): same width as the V2 nav pill at every
   breakpoint (2026-10-17). The pill is .sp-header (margin-inline 16px, 10px at <=600px) plus .sp-header__inner
   (10px margin at <=767px, else the 1200px container), so it sits 20px from the edge on phones, 26px at 601-767px,
   16px from 768px, and min(100vw - 32px, 1200px) wide. The banner used 12px / 20px insets and looked wider or
   narrower than the pill. The checkout header is flush, so leave the banner alone there. */
body.sp-v2:not(.woocommerce-checkout) #spFlashWrap { max-width: 1232px; padding-inline: 16px; }
@media (max-width: 767px) { body.sp-v2:not(.woocommerce-checkout) #spFlashWrap { padding-inline: 26px; } }
@media (max-width: 600px) { body.sp-v2:not(.woocommerce-checkout) #spFlashWrap { padding-inline: 20px; } }
