/* ============================================================================
   ALPHA PEPTIDES — SHOP / CATEGORY / SEARCH (P3)

   Every value here was measured off alpha-peptides.com over CDP at
   1440 / 820 / 390, or lifted from the source's own inline sheets
   (source-cdp/inline/apex-sitewide-css.css "SHOP PAGE" + "BEST SELLER /
   Bottom SEO" blocks, apx-audit-fixes-2026-08-06.css, and the shop page's
   #ap-cf-css block).

   The source scopes these rules with `body.woocommerce-shop|tax-product_cat|
   post-type-archive-product` + `.ap-stg`. We scope with `.ap-shop-page`
   instead (inc/ap-chrome.php and inc/ap-shop.php both add it), so the rules
   cannot depend on a Blocksy-era body-class vocabulary we do not control —
   and so they cover product SEARCH, which the source's own selector list
   reaches only by accident.

   Load order: ap-tokens -> ap-chrome -> ap-card -> ap-shop.
   The archive card IS the shared card: ap-card.css styles .ap-pcard* and the
   dose sheet; everything below styles the `grid` variant's li.product shell.
   ========================================================================= */

body.ap-stg.ap-shop-page {
	background: var(--ap-cream);
}

/* ---------------------------------------------------------------------------
   1. Hero band — eyebrow + H1. The description ships hidden (source does the
   same: "Hide top description — moved to bottom SEO block").
   ------------------------------------------------------------------------ */

body.ap-stg.ap-shop-page .hero-section {
	min-height: 0;
	height: auto;
	padding: 0;
	margin: 0;
	position: relative;
}

body.ap-stg.ap-shop-page .entry-header {
	display: block;
	background: var(--ap-bg);
	padding: clamp(18px, 1.8vw, 28px) clamp(20px, 4vw, 56px) clamp(14px, 1.4vw, 22px);
	margin: 0;
	text-align: center;
	width: 100%;
	max-width: none;
	min-height: 0;
	height: auto;
	box-sizing: border-box;
	border-bottom: 1px solid var(--ap-line);
}

body.ap-stg.ap-shop-page .entry-header::before {
	content: 'Shop';
	display: block;
	font-family: var(--ap-font);
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--ap-ink-3);
	margin: 0 0 6px;
}

body.ap-stg.ap-shop-page .entry-header .page-title {
	font-family: var(--ap-font);
	font-size: clamp(22px, 2.4vw, 32px);
	font-weight: 800;
	letter-spacing: -0.01em;
	line-height: 1.15;
	color: var(--ap-ink);
	margin: 0 auto;
	max-width: 900px;
}

body.ap-stg.ap-shop-page .entry-header .page-description {
	display: none;
}

/* ---------------------------------------------------------------------------
   2. The two-column archive grid
   ------------------------------------------------------------------------ */

body.ap-stg.ap-shop-page .ap-shop-wrap {
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 0;
}

body.ap-stg.ap-shop-page .ap-shop-section {
	display: grid;
	grid-template-columns: 220px minmax(0, 1fr);
	grid-template-rows: auto auto 1fr;
	gap: clamp(16px, 1.6vw, 28px);
	align-items: start;
	max-width: var(--ap-max);
	margin: 0 auto;
	padding: clamp(20px, 2vw, 32px) clamp(16px, 2vw, 32px) clamp(40px, 5vw, 80px);
	box-sizing: border-box;
}

/* Explicit placement — the source relies on it too, which is why DOM order and
   visual order differ on the search template. */
body.ap-stg.ap-shop-page .ap-shop-sidebar { grid-column: 1; grid-row: 1 / span 3; }
body.ap-stg.ap-shop-page .ap-cf-bar       { grid-column: 2; grid-row: 1; }
body.ap-stg.ap-shop-page .woo-listing-top { grid-column: 2; grid-row: 2; }
body.ap-stg.ap-shop-page ul.products      { grid-column: 2; grid-row: 3; }
body.ap-stg.ap-shop-page .ap-shop-empty,
body.ap-stg.ap-shop-page .woocommerce-pagination { grid-column: 2; }

/* Search: the hero moves INSIDE the section and spans it; there is no rail. */
body.ap-stg.ap-shop-search .ap-shop-section > .hero-section {
	grid-column: 1 / -1;
	grid-row: 1;
	margin: 0 0 4px;
}
body.ap-stg.ap-shop-search .ap-shop-sidebar { grid-row: 3; }

/* ---------------------------------------------------------------------------
   3. Sidebar — breadcrumb, product search, price slider
   ------------------------------------------------------------------------ */

body.ap-stg.ap-shop-page .ap-shop-sidebar {
	background: var(--ap-bg);
	border: 1px solid var(--ap-line);
	border-radius: var(--ap-radius);
	padding: 20px 16px;
	font-family: var(--ap-font);
	position: sticky;
	top: clamp(80px, 8vw, 120px);
}

body.ap-stg.ap-shop-page .ap-shop-breadcrumb {
	font-size: 13px;
	color: var(--ap-ink-3);
	margin: 0 0 22px;
	padding-bottom: 18px;
	border-bottom: 1px solid var(--ap-line);
	line-height: 1.4;
}
body.ap-stg.ap-shop-page .ap-shop-breadcrumb a {
	color: var(--ap-ink-2);
	text-decoration: none;
	font-weight: 600;
}
body.ap-stg.ap-shop-page .ap-shop-breadcrumb a:hover { color: var(--ap-blue); }
body.ap-stg.ap-shop-page .ap-shop-breadcrumb__sep { color: var(--ap-ink-4); margin: 0 4px; }
body.ap-stg.ap-shop-page .ap-shop-breadcrumb__current { color: var(--ap-ink); font-weight: 600; }

body.ap-stg.ap-shop-page .ap-shop-widget { margin: 0 0 24px; }
body.ap-stg.ap-shop-page .ap-shop-widget:last-child { margin-bottom: 0; }
body.ap-stg.ap-shop-page .ap-shop-widget__title {
	font-family: var(--ap-font);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--ap-ink);
	line-height: 1.65;
	margin: 0 0 12px;
	padding: 0;
}

body.ap-stg.ap-shop-page .ap-shop-widget--search form {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 6px;
}
body.ap-stg.ap-shop-page .ap-shop-widget--search label { display: none; }
body.ap-stg.ap-shop-page .ap-shop-widget--search input[type="search"] {
	width: 100%;
	padding: 10px 12px;
	font-family: var(--ap-font);
	font-size: 14px;
	line-height: 1.2;
	color: var(--ap-ink);
	background: var(--ap-cream);
	border: 1px solid var(--ap-line);
	border-radius: 8px;
	box-sizing: border-box;
}
body.ap-stg.ap-shop-page .ap-shop-widget--search input[type="search"]:focus {
	outline: 2px solid var(--ap-blue);
	outline-offset: -1px;
	background: var(--ap-bg);
}
body.ap-stg.ap-shop-page .ap-shop-widget--search button[type="submit"] {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 10px 14px;
	color: #fff;
	background: var(--ap-blue);
	border: 0;
	border-radius: 8px;
	cursor: pointer;
}
body.ap-stg.ap-shop-page .ap-shop-widget--search button svg,
body.ap-stg.ap-shop-page .ap-shop-widget--search button svg path {
	fill: #fff;
	stroke: none;
}

/* Price slider — our own implementation, the source's jQuery-UI class names so
   the measured CSS transfers unchanged. */
body.ap-stg.ap-shop-page .ap-shop-widget--price .price_slider_wrapper { padding-top: 6px; }
body.ap-stg.ap-shop-page .ap-shop-widget--price button[type="submit"] { display: none; }
body.ap-stg.ap-shop-page .ap-shop-widget--price .price_slider {
	background: var(--ap-line);
	height: 4px;
	border-radius: 2px;
	position: relative;
	margin: 16px 8px 22px;
	touch-action: none;
}
body.ap-stg.ap-shop-page .ap-shop-widget--price .ui-slider-range {
	background: var(--ap-blue);
	height: 4px;
	position: absolute;
	border-radius: 2px;
	top: 0;
}
body.ap-stg.ap-shop-page .ap-shop-widget--price .ui-slider-handle {
	width: 16px;
	height: 16px;
	background: #fff;
	border: 2px solid var(--ap-blue);
	border-radius: 50%;
	position: absolute;
	top: 50%;
	margin-left: -8px;
	margin-top: -8px;
	cursor: grab;
	box-shadow: 0 2px 6px rgba(7, 15, 30, 0.15);
	box-sizing: border-box;
	display: block;
}
body.ap-stg.ap-shop-page .ap-shop-widget--price .ui-slider-handle:focus-visible {
	outline: 2px solid var(--ap-blue);
	outline-offset: 3px;
}
body.ap-stg.ap-shop-page .ap-shop-widget--price .price_slider_amount {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	font-size: 13px;
	color: var(--ap-ink-2);
}
body.ap-stg.ap-shop-page .ap-shop-widget--price .price_label { flex: 1; }
body.ap-stg.ap-shop-page .ap-shop-widget--price .clear { flex: 1 0 100%; height: 0; }

body.ap-stg.ap-shop-page .ap-shop-price-reset {
	display: inline-flex;
	align-items: center;
	padding: 5px 11px;
	font-family: var(--ap-font);
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--ap-blue);
	background: transparent;
	border: 1px solid var(--ap-blue);
	border-radius: 999px;
	text-decoration: none;
	cursor: pointer;
	transition: background .15s ease, color .15s ease;
}
body.ap-stg.ap-shop-page .ap-shop-price-reset:hover { background: var(--ap-blue); color: #fff; }
body.ap-stg.ap-shop-page .ap-shop-price-reset::before { content: '\2715'; margin-right: 5px; font-size: 10px; }

/* ---------------------------------------------------------------------------
   4. Category pill rail (#ap-cf-css, verbatim values)
   ------------------------------------------------------------------------ */

body.ap-stg.ap-shop-page .ap-cf-bar {
	position: sticky;
	top: var(--ap-cf-top, var(--ap-fixed-header-offset, 12px));
	z-index: 20;
	align-self: start;
	min-width: 0;
	margin: 0 0 4px;
	padding: 10px 0;
	background: var(--ap-cf-bg, var(--ap-cream));
}
body.ap-stg.ap-shop-page .ap-cf-bar.is-stuck { box-shadow: 0 10px 14px -12px rgba(11, 19, 34, .22); }
body.ap-stg.ap-shop-page .ap-cf-track { display: flex; flex-wrap: wrap; gap: 8px; }

body.ap-stg.ap-shop-page .ap-cf-pill {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	flex: 0 0 auto;
	min-height: 38px;
	padding: 0 14px;
	box-sizing: border-box;
	border: 1px solid #d7deea;
	border-radius: 999px;
	background: #fff;
	font-family: var(--ap-font);
	font-size: 14px;
	font-weight: 600;
	line-height: 1;
	color: #192a3d;
	text-decoration: none;
	white-space: nowrap;
	transition: background-color .15s, border-color .15s, color .15s, opacity .15s;
	-webkit-tap-highlight-color: transparent;
}
body.ap-stg.ap-shop-page .ap-cf-pill:hover { border-color: var(--ap-blue); color: var(--ap-blue); }
body.ap-stg.ap-shop-page .ap-cf-pill:focus-visible { outline: 2px solid var(--ap-blue); outline-offset: 2px; }

body.ap-stg.ap-shop-page .ap-cf-n {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 20px;
	height: 20px;
	padding: 0 6px;
	box-sizing: border-box;
	border-radius: 999px;
	background: #eef2f8;
	color: #5b6472;
	font-size: 11.5px;
	font-weight: 700;
}
body.ap-stg.ap-shop-page .ap-cf-pill.is-zero:not(.is-active) { opacity: .5; }
body.ap-stg.ap-shop-page .ap-cf-pill.is-active {
	background: var(--ap-blue);
	border-color: var(--ap-blue);
	color: #fff;
}
body.ap-stg.ap-shop-page .ap-cf-pill.is-active .ap-cf-n { background: rgba(255, 255, 255, .22); color: #fff; }

/* Client-side filter state */
body.ap-stg.ap-shop-page ul.products > li.product.ap-cf-off { display: none; }
body.ap-stg.ap-shop-page .woo-listing-top.ap-cf-own > .woocommerce-result-count { display: none; }
body.ap-stg.ap-shop-page .woo-listing-top .ap-cf-count {
	margin: 0;
	font-family: var(--ap-font);
	font-size: 14px;
	font-weight: 500;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	line-height: 1.65;
	color: var(--ap-ink-2);
}
body.ap-stg.ap-shop-page .ap-cf-empty {
	grid-column: 1 / -1;
	padding: 28px 16px;
	text-align: center;
	color: #5b6472;
	font-size: 15px;
	list-style: none;
}
body.ap-stg.ap-shop-page .ap-cf-empty a { color: var(--ap-blue); font-weight: 700; }

/* ---------------------------------------------------------------------------
   5. Result count + ordering strip
   ------------------------------------------------------------------------ */

body.ap-stg.ap-shop-page .woo-listing-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	background: transparent;
	border: 0;
	padding: 0 0 12px;
	margin: 0;
	flex-wrap: wrap;
}
body.ap-stg.ap-shop-page .woo-listing-top .woocommerce-notices-wrapper { flex: 1 0 100%; }
body.ap-stg.ap-shop-page .woo-listing-top .woocommerce-notices-wrapper:empty { display: none; }

body.ap-stg.ap-shop-page .woocommerce-result-count {
	margin: 0;
	font-family: var(--ap-font);
	font-size: 14px;
	font-weight: 500;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	line-height: 1.65;
	color: var(--ap-ink-2);
}
body.ap-stg.ap-shop-page form.woocommerce-ordering { margin: 0; }
body.ap-stg.ap-shop-page .woocommerce-ordering select {
	padding: 9px 36px 9px 14px;
	font-family: var(--ap-font);
	font-size: 13px;
	line-height: 1.65;
	color: var(--ap-ink);
	background-color: var(--ap-bg);
	border: 1px solid var(--ap-line);
	border-radius: 999px;
	cursor: pointer;
	appearance: none;
	-webkit-appearance: none;
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none' stroke='%230B1322' stroke-width='1.6'><polyline points='2,4 6,8 10,4'/></svg>");
	background-repeat: no-repeat;
	background-position: right 12px center;
}

/* ---------------------------------------------------------------------------
   6. The product grid
   ------------------------------------------------------------------------ */

/*
 * ⛔ WooCommerce's woocommerce-layout.css gives `ul.products` a table-display
 * clearfix: `.woocommerce ul.products::before,::after { content:" "; display:table }`.
 * On a FLOAT layout that is invisible. On a GRID container both pseudo-elements
 * become real grid items, so the first card is pushed into column 2 and the
 * first row renders 3 cards instead of 4 — with a perfectly normal-looking
 * grid everywhere else. Measured before the fix: first card x=593.8 (column 2)
 * with column 1 empty, rows [3,4,4] against the source's [4,4,4].
 */
body.ap-stg.ap-shop-page ul.products::before,
body.ap-stg.ap-shop-page ul.products::after {
	content: none;
	display: none;
}

body.ap-stg.ap-shop-page ul.products {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(16px, 1.6vw, 22px);
	margin: 0;
	padding: 0;
	max-width: none;
	list-style: none;
}
@media (min-width: 1280px) {
	body.ap-stg.ap-shop-page ul.products { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

body.ap-stg.ap-shop-page ul.products > li.product {
	width: auto;
	margin: 0;
	padding: 0;
	list-style: none;
	display: grid;
	grid-template-rows: auto auto auto auto;
	gap: 0;
	background: transparent;
	position: relative;
	align-content: start;
}

/* Image — cream square, 1px frame, the source's 1.18 zoom */
body.ap-stg.ap-shop-page ul.products > li.product figure {
	margin: 0;
	background: var(--ap-cream);
	border: 1px solid var(--ap-line);
	border-radius: var(--ap-radius);
	overflow: hidden;
	aspect-ratio: 1 / 1;
	position: relative;
	transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
body.ap-stg.ap-shop-page ul.products > li.product:hover figure {
	transform: translateY(-2px);
	border-color: var(--ap-line-2);
	box-shadow: 0 14px 28px rgba(7, 15, 30, 0.08);
}
body.ap-stg.ap-shop-page ul.products > li.product figure .ct-media-container {
	display: block;
	width: 100%;
	height: 100%;
}
body.ap-stg.ap-shop-page ul.products > li.product figure img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	object-position: center center;
	aspect-ratio: 1 / 1;
	padding: 0;
	box-sizing: border-box;
	transform: scale(1.18);
	transform-origin: center center;
	transition: transform .25s ease;
}
body.ap-stg.ap-shop-page ul.products > li.product:hover figure img {
	transform: scale(1.18) translateY(-1.5%);
}

/* Title — the white card body's top half */
body.ap-stg.ap-shop-page ul.products > li.product .woocommerce-loop-product__title {
	margin: -10px 0 0;
	padding: 10px 10px 2px;
	text-align: center;
	font-family: var(--ap-font);
	font-size: 17px;
	font-weight: 900;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	line-height: 1.2;
	background: var(--ap-bg);
	border: 1px solid var(--ap-line);
	border-top: 0;
	border-bottom: 0;
	border-radius: 0;
	min-height: 50px;
	display: flex;
	align-items: flex-end;
	justify-content: center;
}
/* The two reconstitution-solution names need 3 lines at 17px; the source
   pins them to 13.5px (it keys off post ids, which are not ours — this keys
   off the product slug, which is stable across an SEO term rename). */
body.ap-stg.ap-shop-page ul.products > li.product.ap-card--longtitle .woocommerce-loop-product__title {
	font-size: 13.5px;
	letter-spacing: 0.04em;
	line-height: 1.2;
}
body.ap-stg.ap-shop-page ul.products > li.product .woocommerce-loop-product__title a {
	color: var(--ap-ink);
	text-decoration: none;
}
body.ap-stg.ap-shop-page ul.products > li.product .woocommerce-loop-product__title a:hover { color: var(--ap-blue); }

/* Blocksy's category meta + rating rows are rendered and hidden on the source */
body.ap-stg.ap-shop-page ul.products > li.product .entry-meta,
body.ap-stg.ap-shop-page ul.products > li.product .ct-woo-card-rating { display: none; }

/* Price — the white card body's bottom half */
body.ap-stg.ap-shop-page ul.products > li.product .price {
	display: block;
	text-align: center;
	font-family: var(--ap-font);
	font-size: 15.5px;
	font-weight: 500;
	color: var(--ap-ink);
	margin: 0;
	padding: 2px 12px 10px;
	line-height: 1.4;
	background: var(--ap-bg);
	border: 1px solid var(--ap-line);
	border-top: 0;
	border-radius: 0 0 var(--ap-radius) var(--ap-radius);
}
/* Blocksy wraps a sale pair in .sale-price (inline-flex, `del { order: 2 }`),
   which is why the source paints the SALE price first and the struck original
   second. wc_get_price_html() emits no such wrapper, so reproduce it on
   .price itself — only when a del is actually present, so a plain price RANGE
   keeps the source's inline block rendering. */
body.ap-stg.ap-shop-page ul.products > li.product .price:has(del) {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	column-gap: 5px;
}
body.ap-stg.ap-shop-page ul.products > li.product .price del {
	order: 2;
	font-size: 80%;
	opacity: .7;
	color: var(--ap-ink-3);
	font-weight: 500;
}
body.ap-stg.ap-shop-page ul.products > li.product .price ins {
	text-decoration: none;
	background: transparent;
	color: var(--ap-blue);
	font-weight: 700;
}
body.ap-stg.ap-shop-page ul.products > li.product .price .woocommerce-Price-amount { font-weight: inherit; }
/* No .price at all (a variable product with no range) — close the card body */
body.ap-stg.ap-shop-page ul.products > li.product:not(:has(> .price)) .woocommerce-loop-product__title {
	padding-bottom: 14px;
	border-bottom: 1px solid var(--ap-line);
	border-radius: 0 0 var(--ap-radius) var(--ap-radius);
}

/* CTA — ap-card.css already paints .ap-pcard__cta; the archive only adds the
   12px stand-off the source's `.ct-woo-card-actions .button` carries. */
body.ap-stg.ap-shop-page ul.products > li.product .ct-woo-card-actions {
	display: block;
	position: static;
	opacity: 1;
	transform: none;
	margin: 0;
	padding: 0;
	background: transparent;
	border: 0;
	pointer-events: auto;
}
body.ap-stg.ap-shop-page ul.products > li.product .ct-woo-card-actions .ap-pcard__cta { margin-top: 12px; }

/* SALE badge */
body.ap-stg.ap-shop-page ul.products > li.product .onsale {
	position: absolute;
	top: 12px;
	/*
	 * ⚠ `right: auto` is load-bearing. WooCommerce's own woocommerce.css pins
	 * `span.onsale { right: -0.5em }`; with our `left` ALSO set and width:auto,
	 * the badge stretches the whole card. Measured before the fix: 215px wide
	 * at 1440 against the source's 65.8px, with no error and a perfectly
	 * plausible-looking badge.
	 */
	right: auto;
	bottom: auto;
	left: 12px;
	z-index: 3;
	display: inline-flex;
	align-items: center;
	padding: 7px 14px;
	background: var(--ap-blue);
	color: #fff;
	font-family: var(--ap-font);
	font-size: 13px;
	font-weight: 800;
	letter-spacing: 0.10em;
	text-transform: uppercase;
	border-radius: 6px;
	border: 0;
	margin: 0;
	min-width: auto;
	min-height: auto;
	line-height: 1.2;
	width: auto;
	height: auto;
	box-shadow: 0 4px 10px rgba(37, 99, 235, 0.28);
}

/* ★ Best Seller ribbon — per-product (_ap_bestseller), exactly 3 products */
body.ap-stg.ap-shop-page ul.products > li.product .ap-bestseller {
	position: absolute;
	top: 10px;
	right: 10px;
	z-index: 3;
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 4px 10px;
	font-family: var(--ap-font);
	font-size: 10.5px;
	font-weight: 800;
	letter-spacing: 0.10em;
	text-transform: uppercase;
	color: var(--ap-ink);
	background: #FFD66B;
	border-radius: 4px;
	box-shadow: 0 4px 10px rgba(202, 138, 4, 0.22);
}

/* ---------------------------------------------------------------------------
   7. Pagination + empty state
   ------------------------------------------------------------------------ */

body.ap-stg.ap-shop-page .woocommerce-pagination {
	margin: clamp(28px, 3vw, 44px) 0 0;
	display: flex;
	justify-content: center;
}
body.ap-stg.ap-shop-page .woocommerce-pagination ul.page-numbers {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	list-style: none;
	margin: 0;
	padding: 0;
	border: 0;
}
body.ap-stg.ap-shop-page .woocommerce-pagination li { margin: 0; border: 0; }
body.ap-stg.ap-shop-page .woocommerce-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 38px;
	height: 38px;
	padding: 0 12px;
	box-sizing: border-box;
	border: 1px solid #d7deea;
	border-radius: 999px;
	background: #fff;
	font-family: var(--ap-font);
	font-size: 14px;
	font-weight: 600;
	line-height: 1;
	color: #192a3d;
	text-decoration: none;
}
body.ap-stg.ap-shop-page .woocommerce-pagination .page-numbers:hover { border-color: var(--ap-blue); color: var(--ap-blue); }
body.ap-stg.ap-shop-page .woocommerce-pagination .page-numbers.current {
	background: var(--ap-blue);
	border-color: var(--ap-blue);
	color: #fff;
}

body.ap-stg.ap-shop-page .ap-shop-empty {
	grid-row: 3;
	padding: 48px 16px 64px;
	text-align: center;
	font-family: var(--ap-font);
	color: var(--ap-ink-2);
}
body.ap-stg.ap-shop-page .ap-shop-empty h2 {
	font-size: clamp(20px, 2.2vw, 26px);
	font-weight: 800;
	letter-spacing: -0.01em;
	line-height: 1.2;
	color: var(--ap-ink);
	margin: 0 0 8px;
}
body.ap-stg.ap-shop-page .ap-shop-empty p { margin: 0 0 18px; font-size: 15px; }
body.ap-stg.ap-shop-page .ap-shop-empty__cta {
	display: inline-block;
	padding: 13px 28px;
	background: var(--ap-blue);
	color: #fff;
	border-radius: var(--ap-radius);
	font-size: 13px;
	font-weight: 800;
	letter-spacing: 0.10em;
	text-transform: uppercase;
	text-decoration: none;
	box-shadow: 0 4px 12px rgba(37, 99, 235, 0.22);
}
body.ap-stg.ap-shop-page .ap-shop-empty__cta:hover { background: var(--ap-blue-2); }

/* ---------------------------------------------------------------------------
   8. Bottom SEO block — /shop/ only
   ------------------------------------------------------------------------ */

body.ap-stg.ap-shop-index .ap-shop-seo {
	background: linear-gradient(180deg, var(--ap-bg) 0%, #f6f8fa 100%);
	border-top: 1px solid var(--ap-line);
	padding: clamp(48px, 5vw, 80px) 0;
	margin-top: clamp(40px, 4vw, 64px);
}
body.ap-stg.ap-shop-index .ap-shop-seo__inner {
	max-width: 920px;
	margin: 0 auto;
	padding: 0 clamp(20px, 3vw, 40px);
	font-family: var(--ap-font);
	color: var(--ap-ink-2);
	line-height: 1.65;
	font-size: 15.5px;
}
body.ap-stg.ap-shop-index .ap-shop-seo h2 {
	font-family: var(--ap-font);
	font-size: clamp(22px, 2.2vw, 28px);
	font-weight: 800;
	letter-spacing: -0.01em;
	color: var(--ap-ink);
	line-height: 1.2;
	position: relative;
	padding-left: 18px;
	margin: 36px 0 16px;
}
/*
 * ⚠ No `h2:first-child { margin-top: 0 }`. The source declares one but its
 * later "SUBTLE polish" block re-asserts `margin-top: 36px !important`, so the
 * first H2 KEEPS its 36px — which, with no top padding on __inner, collapses
 * through and pushes the whole prose column down. Measured: zeroing it put our
 * copy 35.3px higher than the source at all three widths.
 */
body.ap-stg.ap-shop-index .ap-shop-seo h2::before {
	content: "";
	position: absolute;
	left: 0;
	top: 8px;
	bottom: 8px;
	width: 3px;
	background: linear-gradient(180deg, var(--ap-green-2), var(--ap-green-3, #2DD968));
	border-radius: 2px;
}
body.ap-stg.ap-shop-index .ap-shop-seo p { margin: 0 0 14px; font-size: 15.5px; line-height: 1.7; }
body.ap-stg.ap-shop-index .ap-shop-seo ul { margin: 0 0 14px; padding-left: 22px; list-style: none; }
body.ap-stg.ap-shop-index .ap-shop-seo ul li { margin: 0 0 6px; position: relative; padding-left: 20px; }
body.ap-stg.ap-shop-index .ap-shop-seo ul li::before {
	content: "\2192";
	position: absolute;
	left: 0;
	top: 0;
	color: var(--ap-green-2);
	font-weight: 700;
}
body.ap-stg.ap-shop-index .ap-shop-seo strong { color: var(--ap-ink); font-weight: 700; }
body.ap-stg.ap-shop-index .ap-shop-seo a {
	color: var(--ap-green-2);
	font-weight: 600;
	border-bottom: 1px solid rgba(31, 171, 87, 0.3);
	text-decoration: none;
}
body.ap-stg.ap-shop-index .ap-shop-seo a:hover { border-bottom-color: var(--ap-green-2); }
body.ap-stg.ap-shop-index .ap-shop-seo__disclaimer {
	background: #fff;
	border: 1px solid var(--ap-line);
	border-left: 3px solid var(--ap-blue);
	border-radius: 8px;
	padding: 16px 20px;
	margin-top: 32px;
	font-size: 13.5px;
	color: var(--ap-ink-2);
}

/* ---------------------------------------------------------------------------
   9. SAFETY NET — the archive rendered WITHOUT inc/ap-shop.php

   If functions.php has not yet picked up the P3 module, WooCommerce's generic
   `woocommerce.php` wrapper wins and woocommerce_content() prints the loop
   straight into #apMain with no container: our cards and badges are correct
   (the woocommerce/ template overrides need no wiring) but the grid runs
   edge-to-edge and there is no hero, sidebar, rail or SEO block.

   These selectors match ONLY in that un-wired state — once the archive
   template renders, every one of these elements is a descendant of
   .ap-shop-section, never a child of .ap-main. ⛔ Safe to delete the whole
   block once `require_once …/inc/ap-shop.php` is in functions.php.
   ------------------------------------------------------------------------ */

body.ap-stg.ap-shop-page .ap-main > h1.page-title,
body.ap-stg.ap-shop-page .ap-main > .woocommerce-notices-wrapper,
body.ap-stg.ap-shop-page .ap-main > .woocommerce-result-count,
body.ap-stg.ap-shop-page .ap-main > form.woocommerce-ordering,
body.ap-stg.ap-shop-page .ap-main > ul.products,
body.ap-stg.ap-shop-page .ap-main > nav.woocommerce-pagination,
body.ap-stg.ap-shop-page .ap-main > .ap-shop-empty {
	max-width: var(--ap-max);
	margin-left: auto;
	margin-right: auto;
	padding-left: clamp(16px, 2vw, 32px);
	padding-right: clamp(16px, 2vw, 32px);
	box-sizing: border-box;
}
body.ap-stg.ap-shop-page .ap-main > h1.page-title {
	font-family: var(--ap-font);
	font-size: clamp(22px, 2.4vw, 32px);
	font-weight: 800;
	letter-spacing: -0.01em;
	line-height: 1.15;
	color: var(--ap-ink);
	text-align: center;
	padding-top: clamp(18px, 1.8vw, 28px);
	padding-bottom: clamp(14px, 1.4vw, 22px);
	margin-bottom: clamp(20px, 2vw, 32px);
}
body.ap-stg.ap-shop-page .ap-main > form.woocommerce-ordering { margin-bottom: 12px; }
body.ap-stg.ap-shop-page .ap-main > ul.products { padding-bottom: clamp(40px, 5vw, 80px); }

/* ---------------------------------------------------------------------------
   10. Responsive — the source's exact breakpoints
   ------------------------------------------------------------------------ */

@media (max-width: 880px) {
	body.ap-stg.ap-shop-page .ap-shop-section { grid-template-columns: minmax(0, 1fr); }
	body.ap-stg.ap-shop-page .ap-shop-sidebar { display: none; }
	body.ap-stg.ap-shop-page .ap-cf-bar,
	body.ap-stg.ap-shop-page .woo-listing-top,
	body.ap-stg.ap-shop-page ul.products,
	body.ap-stg.ap-shop-page .ap-shop-empty,
	body.ap-stg.ap-shop-page .woocommerce-pagination { grid-column: 1; }

	body.ap-stg.ap-shop-page .ap-cf-bar { margin: 0 -16px 2px; padding: 8px 0; }
	body.ap-stg.ap-shop-page .ap-cf-track {
		flex-wrap: nowrap;
		overflow-x: auto;
		overscroll-behavior-x: contain;
		scrollbar-width: none;
		padding: 0 16px;
		scroll-padding: 0 16px;
		scroll-snap-type: x proximity;
		-webkit-mask-image: linear-gradient(90deg, transparent 0, #000 14px, #000 calc(100% - 28px), transparent 100%);
		mask-image: linear-gradient(90deg, transparent 0, #000 14px, #000 calc(100% - 28px), transparent 100%);
	}
	body.ap-stg.ap-shop-page .ap-cf-track::-webkit-scrollbar { display: none; }
	body.ap-stg.ap-shop-page .ap-cf-pill { scroll-snap-align: start; min-height: 40px; font-size: 14px; }
}

@media (max-width: 720px) {
	/* minmax(0,1fr): `1fr` is minmax(auto,1fr) and a long card name inflates
	   column 1, which knocks every CTA out of line (source audit fix E4). */
	body.ap-stg.ap-shop-page ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 689.98px) {
	body.ap-stg.ap-shop-page .woocommerce-result-count { display: block; font-size: 13px; }
	body.ap-stg.ap-shop-page .woo-listing-top .ap-cf-count { font-size: 13px; }
	body.ap-stg.ap-shop-page .woocommerce-ordering select { width: auto; height: auto; }
}

@media (max-width: 460px) {
	body.ap-stg.ap-shop-page ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
	body.ap-stg.ap-shop-page ul.products > li.product .onsale {
		font-size: 11px;
		padding: 5px 9px;
		letter-spacing: .06em;
		border-radius: 5px;
		top: 8px;
		left: 8px;
	}
	body.ap-stg.ap-shop-page ul.products > li.product .ap-bestseller {
		font-size: 9px;
		padding: 3px 7px;
		letter-spacing: .04em;
	}
	body.ap-stg.ap-shop-page ul.products > li.product:has(.onsale) .ap-bestseller {
		top: 34px;
		left: 8px;
		right: auto;
	}
}
