/* ============================================================
   Aitrixa — Shop archive (archive-product.php)
   Ported from pages/Shop.html. Selectors retargeted to canonical
   WooCommerce markup so we don't fight the platform.

   Mapping cheat-sheet:
     .products-grid           -> ul.products
     .product-card            -> li.product
     .pc-name                 -> .woocommerce-loop-product__title (kept on H2 inside)
     .shop-pagination         -> .woocommerce-pagination
     .shop-empty              -> .woocommerce-info (no products found)
     .shop-sort select        -> .woocommerce-ordering select
     .shop-count              -> .woocommerce-result-count
     filter widgets           -> .widget_price_filter, .widget_layered_nav,
                                 .widget_layered_nav_stock, .widget_product_categories
   ============================================================ */

/* ---------- LAYOUT ---------- */
.shop-wrap {
	max-width: var(--maxw);
	margin: 0 auto;
	padding: 36px var(--gutter) 100px;
	display: grid;
	grid-template-columns: 220px 1fr;
	gap: 48px;
	align-items: start;
}

/* ---------- PAGE TITLE ---------- */
.shop-page-title {
	grid-column: 1 / -1;
	padding-bottom: 24px;
	border-bottom: 1px solid var(--line);
	margin-bottom: 0;
}
.shop-page-title .page-title,
.shop-page-title .woocommerce-products-header__title {
	font-family: var(--font-sans);
	font-weight: 600;
	font-size: clamp(22px, 3vw, 32px);
	letter-spacing: -.02em;
	color: var(--ink);
	margin: 0;
	line-height: 1.1;
}
.shop-page-tagline,
.shop-page-title .term-description p {
	font-family: var(--font-mono);
	font-size: 10px;
	letter-spacing: .18em;
	text-transform: uppercase;
	color: var(--mute);
	margin: 6px 0 0;
}

/* ---------- SIDEBAR ---------- */
.shop-sidebar {
	position: sticky;
	top: 80px;
}
.sidebar-heading {
	font-family: var(--font-sans);
	font-weight: 600;
	font-size: 14px;
	color: var(--ink);
	margin-bottom: 20px;
	letter-spacing: -.01em;
}

/* WC widgets in the sidebar — restyle the default markup as accordion-style sections */
.shop-sidebar .widget {
	border-top: 1px solid var(--line-soft);
	padding: 14px 0;
	margin: 0;
}
.shop-sidebar .widget:last-child {
	border-bottom: 1px solid var(--line-soft);
}
.shop-sidebar .widget .widgettitle,
.shop-sidebar .widget .widget-title,
.shop-sidebar .widget h2,
.shop-sidebar .widget h3 {
	font-family: var(--font-sans);
	font-size: 13px;
	font-weight: 500;
	color: var(--ink);
	letter-spacing: -.01em;
	margin: 0 0 10px;
	padding: 0;
	text-transform: none;
}

/* WC layered-nav (attribute / category / stock) lists */
.shop-sidebar .widget ul {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 4px;
}
.shop-sidebar .widget li {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	padding: 5px 0;
	font-family: var(--font-sans);
	font-size: 13px;
	color: var(--body);
}
.shop-sidebar .widget li a {
	flex: 1;
	color: inherit;
	text-decoration: none;
	transition: color .15s;
}
.shop-sidebar .widget li a:hover { color: var(--ink); }
.shop-sidebar .widget li.chosen > a {
	color: var(--ink);
	font-weight: 500;
	border-bottom: 1px solid var(--ink);
	padding-bottom: 1px;
}
.shop-sidebar .widget .count {
	font-family: var(--font-mono);
	font-size: 10px;
	color: var(--mute-2);
	letter-spacing: .06em;
}

/* WC price-filter widget */
.shop-sidebar .widget_price_filter .price_slider_wrapper { padding-top: 4px; }
.shop-sidebar .widget_price_filter .price_slider {
	background: var(--line-soft);
	height: 2px;
	margin: 14px 0 16px;
}
.shop-sidebar .widget_price_filter .ui-slider-range { background: var(--ink); }
.shop-sidebar .widget_price_filter .ui-slider-handle {
	width: 12px;
	height: 12px;
	background: var(--ink);
	border: 0;
	top: -5px;
	border-radius: 0;
	margin-left: -6px;
}
.shop-sidebar .widget_price_filter .price_slider_amount {
	font-family: var(--font-mono);
	font-size: 11px;
	color: var(--mute);
	letter-spacing: .08em;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 8px;
}
.shop-sidebar .widget_price_filter .price_slider_amount .price_label {
	color: var(--ink);
}
.shop-sidebar .widget_price_filter .button {
	font-family: var(--font-mono);
	font-size: 9px;
	letter-spacing: .2em;
	text-transform: uppercase;
	padding: 8px 14px;
	background: var(--ink);
	color: var(--white);
	border: 1px solid var(--ink);
	cursor: pointer;
	transition: background .15s, color .15s;
	margin-top: 4px;
}
.shop-sidebar .widget_price_filter .button:hover {
	background: var(--white);
	color: var(--ink);
}

/* Empty-sidebar admin notice */
.shop-sidebar .aitrixa-empty-sidebar {
	font-family: var(--font-mono);
	font-size: 11px;
	color: var(--mute);
	padding: 12px 0;
}

/* ---------- MAIN ---------- */
.shop-main { min-width: 0; }

/* Hide WC notices that we don't want above the toolbar (woocommerce_before_shop_loop) — keep
   functional ones; restyle them subtly. */
.shop-main .woocommerce-notices-wrapper { margin-bottom: 0; }
/* When the notices wrapper has actual content, give it some breathing room */
.shop-main .woocommerce-notices-wrapper:has(*) { margin-bottom: 12px; }

/* ---------- TOOLBAR (search + count + sort) ---------- */
.shop-toolbar {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 20px;
	flex-wrap: wrap;
}
.shop-search {
	display: flex;
	align-items: center;
	gap: 8px;
	border: 1px solid var(--line);
	background: var(--white);
	padding: 9px 14px;
	flex: 1;
	min-width: 180px;
	color: var(--mute);
}
.shop-search svg { flex-shrink: 0; }
.shop-search input[type="search"] {
	border: 0;
	outline: none;
	font-family: var(--font-sans);
	font-size: 13px;
	color: var(--ink);
	background: transparent;
	width: 100%;
	-webkit-appearance: none;
	appearance: none;
	/* Override Astra's input baseline (height: 40px; padding: 12px 16px;
	   border-radius: 4px; box-shadow on focus) so the input fits the
	   design's 36px-tall search container without inflating it. */
	height: auto;
	line-height: 1.4;
	padding: 0;
	margin: 0;
	box-shadow: none;
	border-radius: 0;
	min-height: 0;
}
.shop-search input[type="search"]:focus,
.shop-search input[type="search"]:focus-visible {
	outline: none;
	box-shadow: none;
}
.shop-search input::placeholder { color: var(--mute-2); }
.shop-search input::-webkit-search-cancel-button { display: none; }

/* WC's native result count: <p class="woocommerce-result-count">Showing 1–7 of 7 results</p> */
.shop-main .woocommerce-result-count {
	font-family: var(--font-mono);
	font-size: 10px;
	letter-spacing: .18em;
	text-transform: uppercase;
	color: var(--mute);
	white-space: nowrap;
	margin: 0;
}
.shop-main .woocommerce-result-count strong { color: var(--ink); }

/* WC's native ordering form: <form class="woocommerce-ordering"><select name="orderby">...</select></form> */
.shop-main .woocommerce-ordering {
	margin: 0;
	display: flex;
	align-items: center;
	gap: 8px;
	flex-shrink: 0;
}
.shop-main .woocommerce-ordering::before {
	content: 'Sort by:';
	font-family: var(--font-mono);
	font-size: 10px;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--mute);
	white-space: nowrap;
}
.shop-main .woocommerce-ordering select {
	font-family: var(--font-mono);
	font-size: 10px;
	letter-spacing: .12em;
	color: var(--ink);
	background: var(--white);
	border: 1px solid var(--line);
	padding: 9px 32px 9px 12px;
	-webkit-appearance: none;
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%236b6d73' stroke-width='1.4'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 10px center;
	cursor: pointer;
	border-radius: 0;
}
.shop-main .woocommerce-ordering select:focus { outline: 1px solid var(--ink); outline-offset: -1px; }

/* ---------- PRODUCT GRID ---------- */
/* WC outputs <ul class="products columns-3"> — we override visual layout below. */
.shop-main ul.products {
	list-style: none;
	padding: 0;
	margin: 0;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1px;
	background: var(--line-soft);
	border: 1px solid var(--line-soft);
}

/* ---------- PRODUCT CARD ---------- */
/* WC outputs <li class="product post-N type-product status-publish has-post-thumbnail
   product_cat-... first|last instock|outofstock"> — keep all of those classes. */
.shop-main ul.products li.product {
	background: var(--white);
	display: flex;
	flex-direction: column;
	position: relative;
	transition: background .18s;
	margin: 0;
	padding: 0;
	width: auto;       /* override Astra/WC default percentage widths */
	float: none;
	border: 0;
	border-radius: 0;
}
.shop-main ul.products li.product:hover { background: var(--panel); }

/* Image */
.shop-main ul.products li.product .pc-image {
	position: relative;
	aspect-ratio: 1 / 1;
	background: var(--panel-2);
	overflow: hidden;
	border-bottom: 1px solid var(--line-soft);
	display: flex;
	align-items: center;
	justify-content: center;
}
.shop-main ul.products li.product .pc-image img,
.shop-main ul.products li.product .pc-image .pc-image-real {
	width: 100% !important;
	height: 100% !important;
	object-fit: cover;
	display: block;
	margin: 0 !important;
	padding: 0;
	position: absolute;
	inset: 0;
	max-width: none;
}
/* The .pc-image wrapper needs an explicit height so the absolutely-positioned
   <img> can fill it. aspect-ratio: 1/1 already gives the wrapper its height,
   but absolute positioning needs a positioning context too. */
.shop-main ul.products li.product .pc-image {
	position: relative;
}
.shop-main ul.products li.product .pc-image-placeholder {
	width: 100%;
	height: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 8px;
	color: var(--mute-2);
	background: repeating-linear-gradient(
		-45deg,
		var(--panel-2) 0, var(--panel-2) 4px,
		var(--panel-3) 4px, var(--panel-3) 8px
	);
}
.shop-main ul.products li.product .pc-image-placeholder span {
	font-family: var(--font-mono);
	font-size: 8px;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--mute-2);
	text-align: center;
	line-height: 1.8;
}

/* Badge */
.shop-main ul.products li.product .pc-badge {
	position: absolute;
	top: 10px;
	left: 10px;
	font-family: var(--font-mono);
	font-size: 8px;
	letter-spacing: .22em;
	text-transform: uppercase;
	padding: 4px 8px;
	z-index: 2;
}
.shop-main ul.products li.product .pc-badge--popular,
.shop-main ul.products li.product .pc-badge--new {
	background: var(--ink);
	color: var(--white);
}
.shop-main ul.products li.product .pc-badge--soldout {
	background: var(--panel-3);
	color: var(--mute);
	border: 1px solid var(--line);
}

/* Body */
.shop-main ul.products li.product .pc-body {
	padding: 16px 16px 10px;
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 5px;
}
.shop-main ul.products li.product .pc-category,
.shop-main ul.products li.product .posted_in {
	font-family: var(--font-mono);
	font-size: 8.5px;
	letter-spacing: .24em;
	text-transform: uppercase;
	color: var(--mute);
}
.shop-main ul.products li.product .pc-name-link { color: inherit; text-decoration: none; }
.shop-main ul.products li.product .woocommerce-loop-product__title,
.shop-main ul.products li.product .pc-name {
	font-family: var(--font-serif);
	font-weight: 400;
	font-size: 22px;
	line-height: 1.05;
	letter-spacing: -.01em;
	color: var(--ink);
	padding: 0;
	margin: 0;
}
.shop-main ul.products li.product .pc-formula {
	font-family: var(--font-mono);
	font-size: 11px;
	color: var(--mute);
	letter-spacing: .04em;
}
.shop-main ul.products li.product .pc-status {
	font-family: var(--font-mono);
	font-size: 9px;
	letter-spacing: .18em;
	text-transform: uppercase;
	margin-top: 2px;
}
.shop-main ul.products li.product .pc-status--instock { color: var(--stock-in, #1a7a3a); }
.shop-main ul.products li.product .pc-status--soldout { color: var(--mute-2); }

/* WC native price block — .price wraps <span class="woocommerce-Price-amount amount"> */
.shop-main ul.products li.product .price {
	margin-top: 10px;
	padding-top: 10px;
	border-top: 1px solid var(--line-soft);
	font-family: var(--font-sans);
	font-weight: 600;
	font-size: 14px;
	color: var(--ink);
	letter-spacing: -.01em;
}
.shop-main ul.products li.product .price del {
	color: var(--mute-2);
	font-weight: 400;
	font-size: 12px;
	margin-right: 6px;
}
.shop-main ul.products li.product .price ins {
	background: transparent;
	text-decoration: none;
}
.shop-main ul.products li.product .price .woocommerce-Price-currencySymbol {
	font-weight: 500;
}

/* ---------- FOOTER (CTA row) ---------- */
.shop-main ul.products li.product .pc-footer {
	padding: 10px 16px 14px;
	display: flex;
	gap: 8px;
	align-items: center;
	justify-content: space-between;
}

/* The add-to-cart button — WC outputs:
   <a href="?add-to-cart=N" data-product_id="N" class="button product_type_simple
      add_to_cart_button ajax_add_to_cart" rel="nofollow">Add to cart</a>
   Never rename .add_to_cart_button or .ajax_add_to_cart — those are bound to
   wc-add-to-cart.js. We append .pc-add via woocommerce_loop_add_to_cart_args. */
.shop-main ul.products li.product .button.add_to_cart_button,
.shop-main ul.products li.product .pc-add {
	font-family: var(--font-mono);
	font-size: 9px;
	letter-spacing: .2em;
	text-transform: uppercase;
	padding: 9px 16px;
	background: var(--ink);
	color: var(--white);
	border: 1px solid var(--ink);
	cursor: pointer;
	transition: background .15s, color .15s;
	flex: 1;
	text-align: center;
	border-radius: 0;
	display: inline-block;
	line-height: 1.2;
	text-decoration: none;
}
.shop-main ul.products li.product .button.add_to_cart_button:hover,
.shop-main ul.products li.product .pc-add:hover {
	background: var(--white);
	color: var(--ink);
}
.shop-main ul.products li.product .button.added,
.shop-main ul.products li.product .button.add_to_cart_button.added {
	background: var(--white);
	color: var(--ink);
}
/* WC adds <a class="added_to_cart wc-forward"> after a successful ajax add. */
.shop-main ul.products li.product .added_to_cart {
	display: none;  /* the toast/cart-link surfaces this elsewhere; suppress in-card */
}

/* "View" / Details link to product page */
.shop-main ul.products li.product .pc-details {
	font-family: var(--font-mono);
	font-size: 8.5px;
	letter-spacing: .18em;
	text-transform: uppercase;
	color: var(--mute);
	padding: 9px 10px;
	border: 1px solid var(--line);
	cursor: pointer;
	transition: color .15s, border-color .15s;
	white-space: nowrap;
	text-decoration: none;
}
.shop-main ul.products li.product .pc-details:hover {
	color: var(--ink);
	border-color: var(--ink);
}

/* ---------- EMPTY STATE ---------- */
/* WC outputs: <p class="woocommerce-info">No products were found matching your selection.</p> */
.shop-main .woocommerce-info,
.shop-main .woocommerce-no-products-found > .woocommerce-info {
	background: var(--white);
	border: 1px solid var(--line-soft);
	padding: 80px 32px;
	text-align: center;
	font-family: var(--font-mono);
	font-size: 10.5px;
	letter-spacing: .2em;
	text-transform: uppercase;
	color: var(--mute);
	border-radius: 0;
	margin: 0;
}
.shop-main .woocommerce-info::before { display: none; }  /* kill WC's default icon */

/* ---------- PAGINATION ---------- */
/* WC outputs:
   <nav class="woocommerce-pagination">
     <ul class="page-numbers">
       <li><span class="page-numbers current">1</span></li>
       <li><a class="page-numbers" href="?paged=2">2</a></li>
       <li><a class="next page-numbers" href="?paged=2">→</a></li>
     </ul>
   </nav>
*/
.shop-main .woocommerce-pagination {
	margin-top: 32px;
	text-align: left;
	border: 0;
}
.shop-main .woocommerce-pagination ul.page-numbers {
	display: flex;
	gap: 4px;
	list-style: none;
	padding: 0;
	margin: 0;
	border: 0;
}
.shop-main .woocommerce-pagination ul.page-numbers li {
	border: 0;
	margin: 0;
}
.shop-main .woocommerce-pagination .page-numbers {
	font-family: var(--font-mono);
	font-size: 10px;
	letter-spacing: .18em;
	padding: 9px 14px;
	border: 1px solid var(--line);
	background: var(--white);
	color: var(--mute);
	cursor: pointer;
	transition: background .15s, color .15s;
	display: inline-block;
	border-radius: 0;
	min-width: auto;
	line-height: 1;
	text-decoration: none;
}
.shop-main .woocommerce-pagination .page-numbers.current {
	background: var(--ink);
	color: var(--white);
	border-color: var(--ink);
}
.shop-main .woocommerce-pagination a.page-numbers:hover {
	background: var(--panel-2);
	color: var(--ink);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1000px) {
	.shop-wrap { grid-template-columns: 180px 1fr; gap: 32px; }
}
@media (max-width: 800px) {
	.shop-wrap { grid-template-columns: 1fr; }
	.shop-page-title { grid-column: 1; }
	.shop-sidebar {
		position: static;
		border: 1px solid var(--line);
		padding: 16px;
		margin-bottom: 0;
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 0 24px;
	}
	.sidebar-heading { grid-column: 1 / -1; }
	.shop-sidebar .widget { border-top: 1px solid var(--line-soft); }
	.shop-main ul.products { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
	.shop-main ul.products { grid-template-columns: 1fr; }
	.shop-sidebar { grid-template-columns: 1fr; }
}

/* ============================================================
   D2 — Custom Availability filter (radios, accordion toggle)
   Verbatim port from pages/Shop.html .filter-section markup.
   Rendered by aitrixa_render_avail_filter() in inc/shop.php.
   ============================================================ */

.shop-sidebar .filter-section {
	border-top: 1px solid var(--line-soft);
	margin: 0;
	padding: 0;
	border-bottom: 0;
}
.shop-sidebar .filter-section:last-child {
	border-bottom: 1px solid var(--line-soft);
}
.shop-sidebar .filter-toggle {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 14px 0;
	background: none;
	border: 0;
	cursor: pointer;
	font-family: var(--font-sans);
	font-size: 13px;
	font-weight: 500;
	line-height: 1.2;
	color: var(--ink);
	letter-spacing: -.01em;
	text-align: left;
	box-shadow: none;
	border-radius: 0;
	min-height: 0;
}
.shop-sidebar .filter-toggle-icon {
	width: 14px;
	height: 14px;
	position: relative;
	flex-shrink: 0;
}
.shop-sidebar .filter-toggle-icon::before,
.shop-sidebar .filter-toggle-icon::after {
	content: '';
	position: absolute;
	background: var(--mute);
	border-radius: 1px;
	transition: transform .2s, opacity .2s;
}
.shop-sidebar .filter-toggle-icon::before { width: 10px; height: 1.5px; top: 6px; left: 2px; }
.shop-sidebar .filter-toggle-icon::after  { width: 1.5px; height: 10px; top: 2px; left: 6px; }
.shop-sidebar .filter-section.open .filter-toggle-icon::after {
	transform: rotate(90deg);
	opacity: 0;
}

.shop-sidebar .filter-body {
	overflow: hidden;
	max-height: 0;
	transition: max-height .28s ease;
}
.shop-sidebar .filter-section.open .filter-body {
	max-height: 400px;
}
.shop-sidebar .filter-body-inner {
	padding-bottom: 16px;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.shop-sidebar .filter-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	padding: 5px 0;
	cursor: pointer;
	font-family: var(--font-sans);
	font-size: 13px;
	color: var(--body);
	margin: 0;
}
.shop-sidebar .filter-item input[type="radio"] {
	width: 14px;
	height: 14px;
	border: 1.5px solid var(--line);
	appearance: none;
	-webkit-appearance: none;
	cursor: pointer;
	position: relative;
	flex-shrink: 0;
	background: var(--white);
	border-radius: 50%;
	margin: 0;
	padding: 0;
}
.shop-sidebar .filter-item input[type="radio"]:checked {
	background: var(--ink);
	border-color: var(--ink);
}
.shop-sidebar .filter-item input[type="radio"]:checked::after {
	content: '';
	position: absolute;
	width: 5px;
	height: 5px;
	background: var(--white);
	border-radius: 50%;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
}
.shop-sidebar .filter-item input[type="radio"]:focus-visible {
	outline: 2px solid var(--ink);
	outline-offset: 2px;
}
.shop-sidebar .filter-item-label { flex: 1; }
.shop-sidebar .filter-item-count {
	font-family: var(--font-mono);
	font-size: 10px;
	color: var(--mute-2);
	letter-spacing: .06em;
}


/* ============================================================
   Override homepage card grid behavior on shop archive.
   aitrixa.css line 110 sets .product { grid-column: span 4 }
   for the homepage 12-column showcase grid. On the shop
   archive, products live in a 3-column grid where each card
   should fill exactly one cell.
   Astra's woocommerce-layout-grid.min.css also sets
   grid-template-columns: repeat(4, 1fr) on ul.products
   without the .columns-3 modifier in some media-query
   states; force our 3-column intent.
   ============================================================ */
.shop-main ul.products {
	grid-template-columns: repeat(3, 1fr) !important;
}
.shop-main ul.products li.product {
	grid-column: auto !important;
}
@media (max-width: 800px) {
	.shop-main ul.products {
		grid-template-columns: repeat(2, 1fr) !important;
	}
	.shop-main ul.products li.product {
		grid-column: auto !important;
	}
}
@media (max-width: 520px) {
	.shop-main ul.products {
		grid-template-columns: 1fr !important;
	}
}


/* ============================================================
   Title strip & Astra wrapper margin fixes
   ============================================================ */

/* Astra wraps the WC archive in <div class="content-area primary"> with
   margin-top: 58px from its blog/archive default. On shop, our .shop-wrap
   provides its own 36px top padding — zero out Astra's contribution so
   the gap above the title strip matches the design. */
.woocommerce-shop .content-area.primary,
.tax-product_cat .content-area.primary,
.tax-product_tag .content-area.primary,
.archive.post-type-archive-product .content-area.primary {
	margin-top: 0 !important;
}

/* H1 line-height: design uses 1.55 so the descenders breathe.
   Our earlier rule clamped it to 1.1 — restore design value. */
.shop-page-title .page-title,
.shop-page-title .woocommerce-products-header__title {
	line-height: 1.55;
}


/* Astra adds margin-top: 58px to <main> on archive pages (matching its
   .content-area.primary rule we already neutralized). Zero it on shop
   archives so the .shop-wrap grid-gap (48px) is the sole source of vertical
   space between title strip and toolbar. */
.woocommerce-shop .shop-main,
.tax-product_cat .shop-main,
.tax-product_tag .shop-main,
.archive.post-type-archive-product .shop-main {
	margin-top: 0 !important;
	margin-bottom: 0 !important;
}


/* The <strong> wrapping the count number(s) gets dark ink + bold weight,
   contrasting against the muted mono surroundings of .woocommerce-result-count. */
.shop-toolbar .woocommerce-result-count strong {
	color: var(--ink);
	font-weight: 700;
}


/* ============================================================
   Variation price grid — .pc-prices block
   Verbatim port from pages/Shop.html for the per-variation
   size/price/per-mg/stock layout inside each product card.
   ============================================================ */
.shop-main li.product .pc-body {
	padding: 16px 16px 10px;
	flex: 1 1 0%;
	display: flex;
	flex-direction: column;
	gap: 5px;
}
.shop-main li.product .pc-prices {
	margin-top: 10px;
	display: flex;
	gap: 0;
	border-top: 1px solid var(--line-soft);
	padding-top: 10px;
	overflow-x: auto;
	scrollbar-width: none;
}
.shop-main li.product .pc-prices::-webkit-scrollbar { display: none; }

.shop-main li.product .pc-price-col {
	flex: 1 1 0%;
	min-width: 52px;
	padding: 0 6px 0 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
}
.shop-main li.product .pc-price-col:first-child { padding-left: 0; }
.shop-main li.product .pc-price-col + .pc-price-col {
	border-left: 1px solid var(--line-soft);
	padding-left: 6px;
}
.shop-main li.product .pc-price-col.soldout .pc-price-main,
.shop-main li.product .pc-price-col.soldout .pc-price-stock {
	color: var(--mute-2);
}

.shop-main li.product .pc-price-qty {
	font-family: var(--font-mono);
	font-size: 8.5px;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--mute);
}
.shop-main li.product .pc-price-main {
	font-family: var(--font-sans);
	font-weight: 600;
	font-size: 13px;
	color: var(--ink);
	letter-spacing: -.01em;
}
/* Strip wc_price() inline noise: WC outputs nested .woocommerce-Price-amount,
   .amount, <bdi>, <span class="woocommerce-Price-currencySymbol"> — we don't
   want those to break our pricing typography. Force them all to inherit. */
.shop-main li.product .pc-price-main .woocommerce-Price-amount,
.shop-main li.product .pc-price-main bdi,
.shop-main li.product .pc-price-main .woocommerce-Price-currencySymbol,
.shop-main li.product .pc-price-per {
	font: inherit;
	color: inherit;
	letter-spacing: inherit;
}
.shop-main li.product .pc-price-per {
	font-family: var(--font-mono);
	font-size: 8px;
	color: var(--mute);
	letter-spacing: .08em;
}
/* But the per-mg row is mono — override the inherit-everything rule above. */
.shop-main li.product .pc-price-per .woocommerce-Price-amount,
.shop-main li.product .pc-price-per bdi,
.shop-main li.product .pc-price-per .woocommerce-Price-currencySymbol {
	font: inherit;
	color: inherit;
	letter-spacing: inherit;
}

.shop-main li.product .pc-price-stock {
	font-family: var(--font-mono);
	font-size: 8.5px;
	letter-spacing: .1em;
	color: rgb(26, 122, 58);
	margin-top: 2px;
}

.shop-main li.product .pc-price-more {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: flex-start;
	padding-left: 8px;
	border-left: 1px solid var(--line-soft);
	flex-shrink: 0;
}
.shop-main li.product .pc-price-more-label {
	font-family: var(--font-mono);
	font-size: 8px;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--mute);
	white-space: nowrap;
	line-height: 1.6;
}
.shop-main li.product .pc-price-more-cta {
	font-family: var(--font-mono);
	font-size: 8px;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--ink);
	white-space: nowrap;
	text-decoration: underline;
	text-decoration-color: var(--line);
	text-underline-offset: 2px;
	cursor: pointer;
	background: none;
	border: 0;
	padding: 0;
	margin-top: 3px;
}
.shop-main li.product .pc-price-more-cta:hover { text-decoration-color: var(--ink); }


/* === v75 SHOP MOBILE — phone-only overlay (≤ 768px) === */
@media (max-width: 768px) {

	/* ---------- WRAP / GRID ---------- */
	/* Collapse the 2-col sidebar+main grid into a single column with
	   tighter gutters & no big top padding. */
	.shop-wrap {
		grid-template-columns: 1fr !important;
		gap: 0 !important;
		padding: 0 0 80px !important;
		max-width: 100% !important;
	}

	/* ---------- PAGE TITLE ---------- */
	.shop-page-title {
		grid-column: 1 !important;
		padding: 20px var(--gutter, 20px) 16px;
		border-bottom: 1px solid var(--line);
		margin: 0;
	}
	.shop-page-title .page-title,
	.shop-page-title .woocommerce-products-header__title {
		font-family: var(--font-serif, 'EB Garamond', serif);
		font-weight: 400;
		font-size: 36px !important;
		line-height: 1 !important;
		letter-spacing: -.02em;
		color: var(--ink);
	}
	.shop-page-tagline,
	.shop-page-title .term-description p {
		font-size: 9.5px;
		letter-spacing: .2em;
		margin-top: 10px;
	}

	/* ---------- TOOLBAR (sticky search + count + sort) ---------- */
	.shop-toolbar {
		position: sticky;
		top: 0;
		z-index: 40;
		display: grid;
		grid-template-columns: 1fr;
		gap: 0;
		margin: 0;
		padding: 10px var(--gutter, 20px);
		background: rgba(238, 238, 240, .96);
		-webkit-backdrop-filter: saturate(140%) blur(8px);
		backdrop-filter: saturate(140%) blur(8px);
		border-bottom: 1px solid var(--line);
	}
	.shop-search {
		width: 100%;
		padding: 10px 12px;
		min-width: 0;
		flex: none;
	}
	.shop-search input[type="search"] { font-size: 14px; }

	/* WC result-count + ordering on a single row beneath the search */
	.shop-main .woocommerce-result-count,
	.shop-main .woocommerce-ordering {
		display: flex;
		align-items: center;
	}
	.shop-main .woocommerce-result-count {
		padding: 14px var(--gutter, 20px) 10px;
		margin: 0;
		font-size: 9px;
		letter-spacing: .2em;
	}
	.shop-main .woocommerce-ordering {
		padding: 0 var(--gutter, 20px) 10px;
		gap: 8px;
	}
	.shop-main .woocommerce-ordering::before { font-size: 9px; }
	.shop-main .woocommerce-ordering select {
		flex: 1;
		font-size: 10px;
		padding: 10px 32px 10px 12px;
	}

	/* ---------- SIDEBAR / FILTERS (inline accordion above grid) ---------- */
	.shop-sidebar {
		position: static !important;
		top: auto !important;
		display: block !important;
		grid-template-columns: 1fr !important;
		padding: 0 var(--gutter, 20px) !important;
		margin: 0 !important;
		border: 0 !important;
		gap: 0 !important;
	}
	.sidebar-heading {
		grid-column: 1 !important;
		display: flex;
		align-items: center;
		justify-content: space-between;
		font-family: var(--font-mono, 'IBM Plex Mono', monospace);
		font-size: 10px;
		font-weight: 500;
		letter-spacing: .2em;
		text-transform: uppercase;
		color: var(--mute);
		margin: 16px 0 4px;
		padding: 0;
	}

	/* WC widgets + custom filter sections: collapsed accordion rows */
	.shop-sidebar .widget,
	.shop-sidebar .filter-section {
		border-top: 1px solid var(--line-soft) !important;
		border-bottom: 0 !important;
		padding: 0 !important;
		margin: 0 !important;
	}
	.shop-sidebar .widget:last-child,
	.shop-sidebar .filter-section:last-child {
		border-bottom: 1px solid var(--line-soft) !important;
	}
	.shop-sidebar .widget .widgettitle,
	.shop-sidebar .widget .widget-title,
	.shop-sidebar .widget h2,
	.shop-sidebar .widget h3 {
		padding: 16px 0 12px;
		font-size: 14px;
		margin: 0;
	}
	.shop-sidebar .widget li,
	.shop-sidebar .filter-item {
		padding: 9px 0;
		font-size: 14px;
		min-height: 36px;
	}
	.shop-sidebar .widget li a { padding: 4px 0; }
	.shop-sidebar .widget .count,
	.shop-sidebar .filter-item-count {
		font-size: 10px;
		color: var(--mute-2, #9a9ca2);
	}

	/* Custom filter accordion — bigger tap target, native feel */
	.shop-sidebar .filter-toggle {
		padding: 16px 0 !important;
		font-size: 14px !important;
		min-height: 48px;
	}
	.shop-sidebar .filter-section.open .filter-body { max-height: 600px; }
	.shop-sidebar .filter-body-inner { padding-bottom: 14px; }
	.shop-sidebar .filter-item input[type="radio"],
	.shop-sidebar .filter-item input[type="checkbox"] {
		width: 18px !important;
		height: 18px !important;
	}
	.shop-sidebar .filter-item input[type="radio"]:checked::after {
		width: 7px !important;
		height: 7px !important;
	}

	/* WC price-filter on mobile — give the slider some breathing room */
	.shop-sidebar .widget_price_filter .price_slider_amount {
		flex-wrap: wrap;
		gap: 8px;
		font-size: 11px;
	}
	.shop-sidebar .widget_price_filter .button {
		padding: 10px 16px;
		font-size: 10px;
		width: 100%;
		text-align: center;
	}

	/* ---------- WC NOTICES ---------- */
	.shop-main .woocommerce-notices-wrapper { padding: 0 var(--gutter, 20px); }

	/* ---------- PRODUCT GRID ---------- */
	.shop-main {
		padding: 0 var(--gutter, 20px) 0;
	}
	.shop-main ul.products {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
		gap: 1px !important;
		background: var(--line-soft, #e4e5e7);
		border: 1px solid var(--line-soft, #e4e5e7);
		margin-top: 8px !important;
	}

	/* ---------- PRODUCT CARD ---------- */
	.shop-main ul.products li.product {
		border: 0;
		margin: 0;
		padding: 0;
		width: auto !important;
		grid-column: auto !important;
	}
	.shop-main ul.products li.product:hover { background: var(--white); }
	.shop-main ul.products li.product:active { background: var(--panel, #f6f6f7); }

	/* Image */
	.shop-main ul.products li.product .pc-image {
		aspect-ratio: 1 / 1;
	}
	.shop-main ul.products li.product .pc-image-placeholder span {
		font-size: 7.5px;
		padding: 0 6px;
	}

	/* Badge — smaller, tighter to corner */
	.shop-main ul.products li.product .pc-badge {
		top: 6px;
		left: 6px;
		font-size: 7.5px;
		letter-spacing: .2em;
		padding: 3px 6px;
	}

	/* Body */
	.shop-main ul.products li.product .pc-body {
		padding: 2px 12px 8px !important;
		gap: 4px;
		min-width: 0;
	}
	.shop-main ul.products li.product .pc-category,
	.shop-main ul.products li.product .posted_in {
		font-size: 8px;
		letter-spacing: .18em;
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
	}
	.shop-main ul.products li.product .woocommerce-loop-product__title,
	.shop-main ul.products li.product .pc-name {
		font-size: 18px;
		line-height: 1.05;
	}
	.shop-main ul.products li.product .pc-formula {
		font-size: 8.5px;
		letter-spacing: .08em;
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
	}
	.shop-main ul.products li.product .pc-status {
		font-size: 8px;
		letter-spacing: .14em;
		margin-top: 0;
	}

	/* Native WC price */
	.shop-main ul.products li.product .price {
		font-size: 13px;
		margin-top: 8px;
		padding-top: 8px;
	}

	/* Variation price grid — horizontal scroll, compacted */
	.shop-main li.product .pc-prices {
		padding-top: 8px;
		margin-top: 8px;
	}
	.shop-main li.product .pc-price-col {
		min-width: 60px;
		padding-right: 8px;
	}
	.shop-main li.product .pc-price-col + .pc-price-col { padding-left: 8px; }
	.shop-main li.product .pc-price-qty { font-size: 8px; }
	.shop-main li.product .pc-price-main { font-size: 12px; }
	.shop-main li.product .pc-price-per { font-size: 7.5px; }
	.shop-main li.product .pc-price-stock { font-size: 8px; }
	.shop-main li.product .pc-price-more { padding-left: 6px; }
	.shop-main li.product .pc-price-more-label,
	.shop-main li.product .pc-price-more-cta { font-size: 7.5px; }

	/* Footer — stack the CTA buttons full-width */
	.shop-main ul.products li.product .pc-footer {
		padding: 8px 12px 12px;
		flex-direction: column;
		gap: 6px;
		align-items: stretch;
	}
	.shop-main ul.products li.product .button.add_to_cart_button,
	.shop-main ul.products li.product .pc-!dd {
		font-size: 9px;
		letter-spacing: .18em;
		padding: 11px 12px;
		width: 100%;
	}
	.shop-main ul.products li.product .pc-details {
		font-size: 8px;
		letter-spacing: .16em;
		padding: 9px 12px;
		width: 100%;
		text-align: center;
	}

	/* ---------- EMPTY STATE ---------- */
	.shop-main .woocommerce-info,
	.shop-main .woocommerce-no-products-found > .woocommerce-info {
		margin: 12px var(--gutter, 20px);
		padding: 60px 24px;
		font-size: 10px;
		letter-spacing: .18em;
	}

	/* ---------- PAGINATION ---------- */
	.shop-main .woocommerce-pagination {
		margin: 20px var(--gutter, 20px) 16px;
		text-align: center;
	}
	.shop-main .woocommerce-pagination ul.page-numbers {
		justify-content: center;
		flex-wrap: wrap;
	}
	.shop-main .woocommerce-pagination .page-numbers {
		font-size: 10px;
		padding: 9px 13px;
		min-width: 38px;
		text-align: center;
	}

	/* ---------- ASTRA / WC NOISE SUPPRESSION ---------- */
	/* Astra forces some extra padding on archive containers on tablet —
	   keep our zeroed margin/padding rules from shop.css intact. */
	.woocommerce-shop .content-area.primary,
	.tax-product_cat .content-area.primary,
	.tax-product_tag .content-area.primary,
	.archive.post-type-archive-product .content-area.primary {
		padding: 0 !important;
	}

	/* WC's default added_to_cart link inline beneath the button — we surface
	   adds elsewhere (cart icon / toast) so suppress in-card on mobile too. */
	.shop-main ul.products li.product .added_to_cart {
		display: none !important;
	}

}

/* ---------- TIGHTEN ON SMALL PHONES (v76 — keep 2-col grid, only shrink title) ---------- */
@media (max-width: 420px) {
	.shop-page-title .page-title,
	.shop-page-title .woocommerce-products-header__title {
		font-size: 30px !important;
	}
}


/* ---- v79 MOBILE: hide inline filters sidebar; put count+ordering on one row ---- */
/* Mock shows a tight FILTER | SORT row instead of an expanded sidebar that pushes products down
   ~400px on phones. Hide the sidebar entirely on phones (we'll add a filter button later).
   Restructure the toolbar so search is on top row, count + ordering share the second row. */
@media (max-width: 768px) {
  /* v79 .shop-sidebar hide was superseded by v83 inline-style approach */
  body.woocommerce-shop .shop-wrap,
  body.archive.post-type-archive-product .shop-wrap {
    grid-template-columns: 1fr !important;
  }
  /* Toolbar: 2-row grid, search on top spanning full width, count + ordering share row 2. */
  body.woocommerce-shop .shop-toolbar,
  body.archive.post-type-archive-product .shop-toolbar {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    grid-template-areas:
      "search search"
      "count ordering" !important;
    gap: 0 !important;
    align-items: center;
  }
  body.woocommerce-shop .shop-toolbar .shop-search,
  body.archive.post-type-archive-product .shop-toolbar .shop-search {
    grid-area: search !important;
    margin-bottom: 4px;
  }
  body.woocommerce-shop .shop-toolbar .woocommerce-result-count,
  body.archive.post-type-archive-product .shop-toolbar .woocommerce-result-count {
    grid-area: count !important;
    padding: 10px 0 !important;
    margin: 0 !important;
    align-self: center;
  }
  body.woocommerce-shop .shop-toolbar .woocommerce-ordering,
  body.archive.post-type-archive-product .shop-toolbar .woocommerce-ordering {
    grid-area: ordering !important;
    padding: 10px 0 !important;
    margin: 0 !important;
    justify-self: end;
    align-self: center;
    display: flex !important;
    align-items: center;
    gap: 8px;
  }
}


/* ---- v80 MOBILE: title says "Shop" instead of "Shop All Products" on phones ---- */
/* The page H1 is set by WordPress page settings as "Shop All Products". The mobile
   mock shows just "Shop". Visually swap via CSS only (no PHP / content change):
   hide the original text node by collapsing its font-size to 0, then inject "Shop"
   via ::before with the proper serif typography. Screen readers still see the
   original H1 text in the DOM, so accessibility is preserved. */
@media (max-width: 768px) {
  body.woocommerce-shop .shop-page-title .page-title,
  body.woocommerce-shop .shop-page-title .woocommerce-products-header__title,
  body.archive.post-type-archive-product .shop-page-title .page-title,
  body.archive.post-type-archive-product .shop-page-title .woocommerce-products-header__title {
    font-size: 0 !important;
    line-height: 0 !important;
  }
  body.woocommerce-shop .shop-page-title .page-title::before,
  body.woocommerce-shop .shop-page-title .woocommerce-products-header__title::before,
  body.archive.post-type-archive-product .shop-page-title .page-title::before,
  body.archive.post-type-archive-product .shop-page-title .woocommerce-products-header__title::before {
    content: "Shop";
    display: block;
    font-family: var(--font-serif, 'EB Garamond', serif);
    font-weight: 400;
    font-size: 36px;
    line-height: 1;
    letter-spacing: -.02em;
    color: var(--ink);
  }
}
@media (max-width: 420px) {
  body.woocommerce-shop .shop-page-title .page-title::before,
  body.woocommerce-shop .shop-page-title .woocommerce-products-header__title::before,
  body.archive.post-type-archive-product .shop-page-title .page-title::before,
  body.archive.post-type-archive-product .shop-page-title .woocommerce-products-header__title::before {
    font-size: 30px;
  }
}


/* ---- v81 MOBILE: FILTER + SORT toolbar row to match the mobile mock ---- */
/* Mock shows below the search bar a single thin row split 50/50:
     [filter funnel icon] FILTER  |  SORT: FEATURED v
   - thin horizontal divider line above and below
   - vertical divider between the two halves
   - mono uppercase, ~11px, gray label / dark value
   We repurpose .woocommerce-result-count as the FILTER half (hide the "3 products"
   text, inject SVG icon + "FILTER" label) and .woocommerce-ordering as the SORT half. */
@media (max-width: 768px) {
  /* Toolbar row 2 layout: two equal halves */
  body.woocommerce-shop .shop-toolbar,
  body.archive.post-type-archive-product .shop-toolbar {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    padding-bottom: 0 !important;
  }

  /* FILTER half (left) — repurpose the WC result-count element */
  body.woocommerce-shop .shop-toolbar .woocommerce-result-count,
  body.archive.post-type-archive-product .shop-toolbar .woocommerce-result-count {
    display: flex !important;
    align-items: center;
    justify-content: center !important;
    gap: 8px;
    padding: 12px 0 !important;
    margin: 0 !important;
    height: 44px;
    text-indent: -9999px;
    font-size: 0 !important;
    line-height: 1;
    border-top: 1px solid var(--line, #c9cacd);
    border-bottom: 1px solid var(--line, #c9cacd);
    border-right: 1px solid var(--line, #c9cacd);
    color: var(--ink, #0b0b0d);
    overflow: hidden;
    position: relative;
  }
  /* Filter funnel icon */
  body.woocommerce-shop .shop-toolbar .woocommerce-result-count::before,
  body.archive.post-type-archive-product .shop-toolbar .woocommerce-result-count::before {
    content: "";
    display: inline-block;
    width: 14px;
    height: 14px;
    flex: 0 0 14px;
    text-indent: 0;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14' fill='none' stroke='%230b0b0d' stroke-width='1.4' stroke-linecap='round'><line x1='2' y1='4' x2='12' y2='4'/><line x1='3.5' y1='7' x2='10.5' y2='7'/><line x1='5' y1='10' x2='9' y2='10'/></svg>");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 14px 14px;
  }
  /* FILTER label */
  body.woocommerce-shop .shop-toolbar .woocommerce-result-count::after,
  body.archive.post-type-archive-product .shop-toolbar .woocommerce-result-count::after {
    content: "FILTER";
    display: inline-block;
    text-indent: 0;
    font-family: var(--font-mono, 'IBM Plex Mono', monospace);
    font-size: 11px;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--ink, #0b0b0d);
    font-weight: 500;
    line-height: 1;
  }

  /* SORT half (right) — style WC ordering as the SORT half */
  body.woocommerce-shop .shop-toolbar .woocommerce-ordering,
  body.archive.post-type-archive-product .shop-toolbar .woocommerce-ordering {
    display: flex !important;
    align-items: center;
    justify-content: center !important;
    gap: 10px;
    padding: 12px 0 !important;
    margin: 0 !important;
    height: 44px;
    border-top: 1px solid var(--line, #c9cacd);
    border-bottom: 1px solid var(--line, #c9cacd);
    justify-self: stretch !important;
    position: relative;
  }
  /* SORT: label injected before the select */
  body.woocommerce-shop .shop-toolbar .woocommerce-ordering::before,
  body.archive.post-type-archive-product .shop-toolbar .woocommerce-ordering::before {
    content: "SORT:";
    font-family: var(--font-mono, 'IBM Plex Mono', monospace);
    font-size: 11px;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--mute, #6b6d73);
    font-weight: 500;
    line-height: 1;
  }
  /* The native select itself */
  body.woocommerce-shop .shop-toolbar .woocommerce-ordering select,
  body.archive.post-type-archive-product .shop-toolbar .woocommerce-ordering select {
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    background: transparent !important;
    border: 0 !important;
    padding: 0 18px 0 0 !important;
    margin: 0 !important;
    font-family: var(--font-mono, 'IBM Plex Mono', monospace) !important;
    font-size: 11px !important;
    letter-spacing: .14em !important;
    text-transform: uppercase !important;
    color: var(--ink, #0b0b0d) !important;
    font-weight: 500 !important;
    line-height: 1 !important;
    cursor: pointer;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6' fill='none' stroke='%230b0b0d' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'><polyline points='1,1 5,5 9,1'/></svg>") !important;
    background-repeat: no-repeat !important;
    background-position: right center !important;
    background-size: 10px 6px !important;
    height: auto !important;
    width: auto !important;
    flex: 0 0 auto;
  }
}


/* ---- v81b: constrain ordering select so it fits inside its 50% half ---- */
@media (max-width: 768px) {
  /* Allow the form to shrink below content min-width (default in flex is min-content) */
  body.woocommerce-shop .shop-toolbar .woocommerce-ordering,
  body.archive.post-type-archive-product .shop-toolbar .woocommerce-ordering {
    min-width: 0 !important;
    overflow: hidden !important;
  }
  /* Select: constrain to remaining space, allow shrink, ellipsis on overflow */
  body.woocommerce-shop .shop-toolbar .woocommerce-ordering select,
  body.archive.post-type-archive-product .shop-toolbar .woocommerce-ordering select {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    max-width: 100% !important;
    text-overflow: ellipsis !important;
    overflow: hidden !important;
    white-space: nowrap !important;
  }
}




/* ---- v84 MOBILE: hide subtitle + bottom-sheet filter modal + breadcrumb ---- */

/* Hide subtitle (.shop-page-tagline) on mobile — the breadcrumb replaces it visually */
@media (max-width: 768px) {
  body.woocommerce-shop .shop-page-tagline,
  body.archive.post-type-archive-product .shop-page-tagline {
    display: none !important;
  }
}

/* Breadcrumb styling — markup is injected by PHP filter in functions.php.
   Shown only on mobile; hidden on desktop where the design has no breadcrumb. */
.aitrixa-shop-breadcrumb { display: none; }
@media (max-width: 768px) {
  body.woocommerce-shop .aitrixa-shop-breadcrumb,
  body.archive.post-type-archive-product .aitrixa-shop-breadcrumb {
    display: flex !important;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono, 'IBM Plex Mono', monospace);
    font-size: 11px;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--mute, #6b6d73);
    padding: 4px 0 0 !important;
    margin: 6px 0 0 !important;
    line-height: 1.2;
  }
  body.woocommerce-shop .aitrixa-shop-breadcrumb a,
  body.archive.post-type-archive-product .aitrixa-shop-breadcrumb a {
    color: var(--mute, #6b6d73);
    text-decoration: none;
    font-weight: 400;
  }
  body.woocommerce-shop .aitrixa-shop-breadcrumb a:hover,
  body.archive.post-type-archive-product .aitrixa-shop-breadcrumb a:hover {
    color: var(--ink, #0b0b0d);
  }
  body.woocommerce-shop .aitrixa-shop-breadcrumb .crumb-sep,
  body.archive.post-type-archive-product .aitrixa-shop-breadcrumb .crumb-sep {
    color: var(--mute-2, #9a9ca2);
    font-weight: 400;
  }
  body.woocommerce-shop .aitrixa-shop-breadcrumb .crumb-current,
  body.archive.post-type-archive-product .aitrixa-shop-breadcrumb .crumb-current {
    color: var(--ink, #0b0b0d);
    font-weight: 500;
  }
}

/* ---- v84 bottom-sheet filter modal ---- */
@media (max-width: 768px) {
  /* The FILTER button (.woocommerce-result-count from v81) toggles body.mobile-filter-open */
  body.woocommerce-shop .shop-toolbar .woocommerce-result-count,
  body.archive.post-type-archive-product .shop-toolbar .woocommerce-result-count {
    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
  }

  /* Backdrop (created by JS) — fades in/out, blocks pointer events when open */
  .mobile-filter-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(11, 11, 13, 0.5);
    opacity: 0;
    pointer-events: none;
    z-index: 9000;
    transition: opacity .25s ease;
  }
  body.mobile-filter-open .mobile-filter-backdrop {
    opacity: 1;
    pointer-events: auto;
  }

  /* Sidebar transformed into a bottom sheet — hidden by default with display:none for bulletproof toggle */
  body.woocommerce-shop .shop-sidebar,
  body.archive.post-type-archive-product .shop-sidebar {
    display: none !important;
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    top: auto !important;
    width: 100% !important;
    max-height: 75vh !important;
    background: var(--white, #fff) !important;
    z-index: 9001 !important;
    padding: 12px 0 24px !important;
    margin: 0 !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
    box-shadow: 0 -8px 32px rgba(0,0,0,0.15);
  }

  /* When open: show as block (with !important and higher specificity to beat default-hide) */
  body.mobile-filter-open.woocommerce-shop .shop-sidebar,
  body.mobile-filter-open.archive.post-type-archive-product .shop-sidebar {
    display: block !important;
  }

  /* Drag handle */
  body .shop-sidebar::before {
    content: "";
    display: block;
    width: 40px;
    height: 4px;
    margin: 4px auto 16px;
    background: var(--line, #c9cacd);
    border-radius: 2px;
  }

  /* "FILTERS" heading inside the sheet */
  body .shop-sidebar .sidebar-heading {
    display: block !important;
    padding: 0 var(--gutter, 20px) 12px !important;
    margin: 0 !important;
    font-family: var(--font-mono, 'IBM Plex Mono', monospace);
    font-size: 11px;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--ink, #0b0b0d);
    border-bottom: 1px solid var(--line-soft, #e4e5e7);
  }

  /* The filter section + body show fully expanded inside the sheet */
  body .shop-sidebar .filter-section {
    padding: 0 var(--gutter, 20px) !important;
    margin: 0 !important;
    border: 0 !important;
  }
  body .shop-sidebar .filter-toggle {
    display: block !important;
    padding: 16px 0 12px !important;
    width: 100%;
    text-align: left;
    background: transparent;
    border: 0;
    font-family: inherit;
    font-size: 16px;
    font-weight: 500;
    color: var(--ink, #0b0b0d);
    cursor: default;
    pointer-events: none;
  }
  body .shop-sidebar .filter-toggle-icon { display: none !important; }
  body .shop-sidebar .filter-body {
    display: block !important;
    max-height: none !important;
    overflow: visible !important;
    padding: 0 0 16px !important;
  }
  body .shop-sidebar .filter-item {
    display: flex !important;
    align-items: center;
    padding: 14px 0 !important;
    font-size: 16px;
    border-bottom: 1px solid var(--line-soft, #e4e5e7);
    gap: 12px;
  }
  body .shop-sidebar .filter-item:last-child {
    border-bottom: 0;
  }
  body .shop-sidebar .filter-item input[type="radio"] {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: var(--ink, #0b0b0d);
  }
  body .shop-sidebar .filter-item-label {
    flex: 1 1 auto;
  }
  body .shop-sidebar .filter-item-count {
    color: var(--mute, #6b6d73);
    font-size: 14px;
  }

  /* Lock body scroll when modal is open */
  body.mobile-filter-open {
    overflow: hidden;
  }
}


/* ---- v85 MOBILE: header (brand/cart/menu-btn), toolbar full-bleed lines, kill select focus rect ---- */
@media (max-width: 768px) {

  /* === A. HEADER (applies on shop page only since shop.css loads only here) === */

  /* A1. Show .nav on mobile (it's display:none in aitrixa.css), hide menu items, keep only cart */
  .nav { display: flex !important; align-items: center; gap: 4px !important; }
  .nav > .menu-item { display: none !important; }

  /* A2. Restyle .nav__cart to icon-only button with badge — matches mock .icon-btn */
  .nav__cart {
    border: 1px solid transparent !important;
    padding: 0 !important;
    width: 38px !important; height: 38px !important;
    justify-content: center !important;
    position: relative !important;
    gap: 0 !important;
    font-size: 0 !important; /* hides the "Cart" text node */
    background: transparent !important;
    transition: border-color .2s !important;
  }
  .nav__cart:hover { background: transparent !important; color: var(--ink) !important; }
  .nav__cart:hover svg { stroke: var(--ink) !important; }
  .nav__cart:active { border-color: var(--ink) !important; }
  .nav__cart svg {
    width: 18px !important; height: 18px !important;
    stroke: var(--ink) !important; stroke-width: 1.4 !important; fill: none !important;
  }
  .nav__cart .cart-count {
    position: absolute !important;
    top: 4px !important; right: 4px !important;
    width: 14px !important; height: 14px !important; min-width: 14px !important;
    padding: 0 3px !important;
    background: var(--ink) !important; color: var(--page, #eeeef0) !important;
    font-family: var(--font-mono) !important; font-size: 9px !important; font-weight: 500 !important;
    border-radius: 50% !important;
    display: inline-flex !important; align-items: center !important; justify-content: center !important;
    line-height: 1 !important;
  }
  .nav__cart:hover .cart-count { background: var(--ink) !important; color: var(--page, #eeeef0) !important; }

  /* A3. Clean up .menu-btn — kill iOS tap highlight + any focus outline/box */
  .menu-btn {
    width: 38px !important; height: 38px !important;
    padding: 0 !important;
    border: 1px solid transparent !important;
    background: transparent !important;
    -webkit-tap-highlight-color: transparent !important;
    outline: none !important;
    box-shadow: none !important;
    display: inline-flex !important;
    align-items: center !important; justify-content: center !important;
    flex-direction: column !important;
    gap: 4px !important;
    transition: border-color .2s !important;
  }
  .menu-btn:focus,
  .menu-btn:focus-visible,
  .menu-btn:focus-within {
    outline: none !important; box-shadow: none !important;
  }
  .menu-btn:active { border-color: var(--ink) !important; }
  .menu-btn span {
    width: 18px !important; height: 1.4px !important;
    margin: 0 !important;
    background: var(--ink) !important;
    display: block !important;
  }

  /* A4. Shrink brand text + drop "Analytical" — mock specs 32px mark, 14px name, 9px sub */
  .brand { gap: 10px !important; }
  .brand__mark { width: 32px !important; height: 32px !important; }
  .brand__name {
    font-size: 14px !important;
    letter-spacing: 0.18em !important;
    font-weight: 600 !important;
  }
  .brand__sub {
    font-size: 0 !important; /* hide original "Analytical Reference Standards" */
    letter-spacing: 0 !important;
    margin-top: 2px !important;
    line-height: 1 !important;
  }
  .brand__sub::after {
    content: "Reference Standards";
    font-family: var(--font-mono) !important;
    font-size: 9px !important;
    letter-spacing: 0.22em !important;
    text-transform: uppercase !important;
    color: var(--mute) !important;
    display: inline-block !important;
    line-height: 1 !important;
  }

  /* Header inner: tighter columns so cart + menu-btn fit alongside brand */
  .header__inner {
    padding: 14px var(--gutter) !important;
    grid-template-columns: auto 1fr auto !important;
    gap: 12px !important;
  }

  /* === C. TOOLBAR full-bleed lines: switch internal divider to --line-soft, dedupe stacked borders === */

  /* Container: only one bottom line (dark) below the toolbar; no top line on container */
  body.woocommerce-shop .shop-toolbar,
  body.archive.post-type-archive-product .shop-toolbar {
    padding-left: 0 !important;
    padding-right: 0 !important;
    border-top: none !important;
    border-bottom: 1px solid var(--line, #c9cacd) !important;
  }

  /* FILTER half (result-count repurposed) and SORT half (woocommerce-ordering):
     - top line: light (--line-soft) - this is the line ABOVE filter/sort
     - bottom line: NONE (parent's bottom border serves)
     - internal divider: FILTER has right border in --line-soft; SORT has no right border
  */
  body.woocommerce-shop .shop-toolbar .woocommerce-result-count,
  body.archive.post-type-archive-product .shop-toolbar .woocommerce-result-count {
    border-top: 1px solid var(--line-soft, #e4e5e7) !important;
    border-right: 1px solid var(--line-soft, #e4e5e7) !important;
    border-bottom: none !important;
    border-left: none !important;
    padding: 14px var(--gutter) !important;
    margin: 0 !important;
  }
  body.woocommerce-shop .shop-toolbar .woocommerce-ordering,
  body.archive.post-type-archive-product .shop-toolbar .woocommerce-ordering {
    border-top: 1px solid var(--line-soft, #e4e5e7) !important;
    border-right: none !important;
    border-bottom: none !important;
    border-left: none !important;
    padding: 14px var(--gutter) !important;
    margin: 0 !important;
  }

  /* === D. Kill the black focus rectangle around the native <select> when tapped === */
  body.woocommerce-shop .woocommerce-ordering select,
  body.archive.post-type-archive-product .woocommerce-ordering select {
    -webkit-tap-highlight-color: transparent !important;
    outline: none !important;
    box-shadow: none !important;
    border: 1px solid transparent !important;
    background-color: transparent !important;
  }
  body.woocommerce-shop .woocommerce-ordering select:focus,
  body.archive.post-type-archive-product .woocommerce-ordering select:focus,
  body.woocommerce-shop .woocommerce-ordering select:focus-visible,
  body.archive.post-type-archive-product .woocommerce-ordering select:focus-visible,
  body.woocommerce-shop .woocommerce-ordering select:active,
  body.archive.post-type-archive-product .woocommerce-ordering select:active {
    outline: none !important;
    box-shadow: none !important;
    border-color: transparent !important;
  }
}


/* ---- v86 MOBILE: header flex layout, cart-icon specificity bump, full-bleed toolbar, force SVG dims ---- */
/* v85 had three problems:
   1) header__inner declared 3 grid columns but had 4 children (brand, empty span, .nav, .menu-btn)
      so .menu-btn wrapped to a 2nd row. Fix: flex layout on mobile.
   2) style.css has !important rules on 'header nav a.nav__cart' (specificity 0,2,1) for
      padding+font-size that beat v85's '.nav__cart' (0,1,0). Fix: chain 'html' for 0,2,2.
   3) shop-toolbar inset by .shop-wrap parent padding (mobile gutter). Fix: 100vw full-bleed.
*/
@media (max-width: 768px) {

  /* === A. HEADER LAYOUT — flex, 4 children inline === */
  .header__inner {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 14px var(--gutter, 20px) !important;
    grid-template-columns: none !important; /* override v85's grid */
    gap: 10px !important;
  }
  /* Empty <span></span> sibling between .brand and .nav — kill it on mobile */
  .header__inner > span:empty { display: none !important; }
  /* Group .nav + .menu-btn together on the right */
  .header__inner > .brand { flex: 0 0 auto !important; }
  .header__inner > .nav { flex: 0 0 auto !important; margin-left: auto !important; }
  .header__inner > .menu-btn { flex: 0 0 auto !important; }

  /* === B. CART ICON (high specificity to beat style.css 'header nav a.nav__cart') === */
  /* style.css rules: 'header nav a.nav__cart' = (0,2,1) with !important.
     We need >= (0,2,1) AND later cascade. Use 'html header nav a.nav__cart' = (0,2,2). */
  html header nav a.nav__cart,
  html .nav a.nav__cart {
    border: 1px solid transparent !important;
    padding: 0 !important;
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    box-sizing: border-box !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0 !important;
    font-size: 0 !important; /* hide "Cart" text node */
    line-height: 0 !important;
    background: transparent !important;
    color: var(--ink, #0b0b0d) !important;
    position: relative !important;
    overflow: visible !important;
    white-space: nowrap !important;
    transition: border-color .2s !important;
  }
  html header nav a.nav__cart:hover,
  html .nav a.nav__cart:hover {
    background: transparent !important;
    color: var(--ink, #0b0b0d) !important;
  }
  html header nav a.nav__cart:hover svg,
  html .nav a.nav__cart:hover svg {
    stroke: var(--ink, #0b0b0d) !important;
  }
  html header nav a.nav__cart:active,
  html .nav a.nav__cart:active {
    border-color: var(--ink, #0b0b0d) !important;
  }

  /* === C. FORCE SVG dimensions inside the cart (beats aitrixa.css 'img, svg { max-width:100% }') === */
  html header nav a.nav__cart svg,
  html .nav a.nav__cart svg {
    width: 18px !important;
    height: 18px !important;
    max-width: 18px !important;
    max-height: 18px !important;
    min-width: 18px !important;
    stroke: var(--ink, #0b0b0d) !important;
    stroke-width: 1.4 !important;
    fill: none !important;
    display: block !important;
    flex: 0 0 auto !important;
  }

  /* === D. CART BADGE — keep inside button bounds === */
  html header nav a.nav__cart .cart-count,
  html .nav a.nav__cart .cart-count {
    position: absolute !important;
    top: 2px !important;
    right: 2px !important;
    width: 14px !important;
    height: 14px !important;
    min-width: 14px !important;
    padding: 0 3px !important;
    background: var(--ink, #0b0b0d) !important;
    color: var(--page, #eeeef0) !important;
    font-family: var(--font-mono, 'IBM Plex Mono', monospace) !important;
    font-size: 9px !important;
    font-weight: 500 !important;
    line-height: 1 !important;
    border-radius: 50% !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
  }

  /* === E. HIDE NAV MENU ITEMS on mobile (beats style.css 'header nav li' display:inline-flex !important) === */
  /* style.css: 'header nav > li, header nav li { display: inline-flex !important }' = (0,2,1).
     Need >= (0,2,1) + later. Use 'html header nav > li.menu-item' = (0,2,3). */
  html header nav > li.menu-item,
  html .nav > li.menu-item {
    display: none !important;
  }
  /* Ensure .nav itself is visible (aitrixa.css media query may hide it; restore) */
  html header nav.nav,
  html .nav {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0 !important;
    justify-self: end !important;
  }

  /* === F. MENU-BTN — clean tap, 38x38, no outline (selector specificity bump) === */
  html .menu-btn,
  html header .menu-btn {
    width: 38px !important;
    height: 38px !important;
    padding: 0 !important;
    border: 1px solid transparent !important;
    background: transparent !important;
    -webkit-tap-highlight-color: transparent !important;
    outline: none !important;
    box-shadow: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-direction: column !important;
    gap: 4px !important;
    transition: border-color .2s !important;
  }
  html .menu-btn:focus,
  html .menu-btn:focus-visible,
  html .menu-btn:focus-within,
  html header .menu-btn:focus,
  html header .menu-btn:focus-visible {
    outline: none !important;
    box-shadow: none !important;
  }
  html .menu-btn:active,
  html header .menu-btn:active {
    border-color: var(--ink, #0b0b0d) !important;
  }
  html .menu-btn span,
  html header .menu-btn span {
    width: 18px !important;
    height: 1.4px !important;
    margin: 0 !important;
    background: var(--ink, #0b0b0d) !important;
    display: block !important;
  }

  /* === G. TOOLBAR FULL-BLEED — lines span the entire screen width === */
  /* Use 100vw + center via negative margin-left = calc(50% - 50vw). This works regardless of
     parent .shop-wrap padding which we can't predict at mobile width. */
  html body.woocommerce-shop .shop-toolbar,
  html body.archive.post-type-archive-product .shop-toolbar {
    position: relative !important;
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    border-top: none !important;
    border-bottom: 1px solid var(--line, #c9cacd) !important;
    box-sizing: border-box !important;
  }

  /* Search row INSIDE toolbar — internal padding for the input, light bottom border */
  html body.woocommerce-shop .shop-toolbar .shop-search,
  html body.archive.post-type-archive-product .shop-toolbar .shop-search {
    padding: 10px var(--gutter, 20px) !important;
    border-bottom: 1px solid var(--line-soft, #e4e5e7) !important;
    background: transparent !important;
    box-sizing: border-box !important;
  }

  /* FILTER half (result-count repurposed) — TOP light line, RIGHT light divider, no bottom/left */
  html body.woocommerce-shop .shop-toolbar .woocommerce-result-count,
  html body.archive.post-type-archive-product .shop-toolbar .woocommerce-result-count {
    border-top: 1px solid var(--line-soft, #e4e5e7) !important;
    border-right: 1px solid var(--line-soft, #e4e5e7) !important;
    border-bottom: none !important;
    border-left: none !important;
    padding: 14px var(--gutter, 20px) !important;
    margin: 0 !important;
    box-sizing: border-box !important;
  }

  /* SORT half — TOP light line only */
  html body.woocommerce-shop .shop-toolbar .woocommerce-ordering,
  html body.archive.post-type-archive-product .shop-toolbar .woocommerce-ordering {
    border-top: 1px solid var(--line-soft, #e4e5e7) !important;
    border-right: none !important;
    border-bottom: none !important;
    border-left: none !important;
    padding: 14px var(--gutter, 20px) !important;
    margin: 0 !important;
    box-sizing: border-box !important;
  }

  /* === H. KILL native select focus rectangle on mobile === */
  html body.woocommerce-shop .woocommerce-ordering select,
  html body.archive.post-type-archive-product .woocommerce-ordering select {
    -webkit-tap-highlight-color: transparent !important;
    outline: none !important;
    box-shadow: none !important;
    border: 1px solid transparent !important;
    background-color: transparent !important;
  }
  html body.woocommerce-shop .woocommerce-ordering select:focus,
  html body.archive.post-type-archive-product .woocommerce-ordering select:focus,
  html body.woocommerce-shop .woocommerce-ordering select:focus-visible,
  html body.archive.post-type-archive-product .woocommerce-ordering select:focus-visible,
  html body.woocommerce-shop .woocommerce-ordering select:active,
  html body.archive.post-type-archive-product .woocommerce-ordering select:active {
    outline: none !important;
    box-shadow: none !important;
    border-color: transparent !important;
  }
}


/* ---- v87 MOBILE: search input gutter (inset from screen edges, keep its border) ---- */
/* v86 made .shop-toolbar full-bleed (100vw). The <form class="shop-search"> IS the bordered
   input wrapper (no inner .shop-search-input div in the live DOM), so the border touched
   the screen edges. Fix: add horizontal margin to inset the form, remove its border-bottom
   (the filter/sort row already has its own top border that serves as the divider). */
@media (max-width: 768px) {
  html body.woocommerce-shop .shop-toolbar .shop-search,
  html body.archive.post-type-archive-product .shop-toolbar .shop-search {
    margin-left: var(--gutter, 20px) !important;
    margin-right: var(--gutter, 20px) !important;
    width: auto !important;
    box-sizing: border-box !important;
    padding: 10px 12px !important;
    border-bottom: none !important;
  }
}


/* ---- v88 MOBILE: restore search input bottom border ---- */
/* v87 zeroed border-bottom on .shop-search to kill the full-bleed divider line.
   But .shop-search IS the bordered input box in the live DOM, so its bottom edge
   disappeared. Restore border-bottom matching the other three sides. The line
   above FILTER/SORT now comes from v86 .woocommerce-result-count border-top and
   .woocommerce-ordering border-top, which run full-bleed via parent 100vw. */
@media (max-width: 768px) {
  html body.woocommerce-shop .shop-toolbar .shop-search,
  html body.archive.post-type-archive-product .shop-toolbar .shop-search {
    border: 1px solid var(--line, #c9cacd) !important;
  }
}


/* ---- v90 MOBILE: scale header +10% (logo, brand text, cart, menu-btn) ---- */
/* UNDO PLAN: delete this entire block to revert to v85/v86 values.
   v85/v86 values per element (BEFORE +10%):
   .header__inner  padding:14px var(--gutter) ; gap:10px
   .brand          gap:10px
   .brand__mark    32x32
   .brand__name    font-size:14px
   .brand__sub::after font-size:9px
   .nav__cart      38x38
   .nav__cart svg  18x18 (width/height/max/min)
   .cart-count     14x14 ; font-size:9px ; min-width:14px
   .menu-btn       38x38 ; gap:4px
   .menu-btn span  width:18px ; height:1.4px
*/
@media (max-width: 768px) {
  /* Container: a touch more vertical padding + gap */
  .header__inner {
    padding: 15px var(--gutter, 20px) !important;
    gap: 11px !important;
  }
  .brand { gap: 11px !important; }

  /* Logo mark */
  .brand__mark { width: 35px !important; height: 35px !important; }

  /* Brand name + sub */
  .brand__name { font-size: 15px !important; }
  .brand__sub::after { font-size: 10px !important; }

  /* Cart icon button (specificity matches v86: html header nav a.nav__cart) */
  html header nav a.nav__cart,
  html .nav a.nav__cart {
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
  }
  html header nav a.nav__cart svg,
  html .nav a.nav__cart svg {
    width: 20px !important;
    height: 20px !important;
    max-width: 20px !important;
    max-height: 20px !important;
    min-width: 20px !important;
  }
  html header nav a.nav__cart .cart-count,
  html .nav a.nav__cart .cart-count {
    width: 15px !important;
    height: 15px !important;
    min-width: 15px !important;
    font-size: 10px !important;
  }

  /* Hamburger button */
  html .menu-btn,
  html header .menu-btn {
    width: 42px !important;
    height: 42px !important;
  }
  html .menu-btn span,
  html header .menu-btn span {
    width: 20px !important;
    height: 1.6px !important;
  }
}


/* ---- v92 MOBILE: scale header +5% more on top of v90 (logo, brand text, cart, menu-btn) ---- */
/* UNDO PLAN:
   To revert this +5% increment only — delete this entire block. v90 values remain.
   To revert all the way to original v85/v86 sizes — delete BOTH v92 and v90 blocks.
   v90 values per element (what we are scaling FROM):
   .header__inner  padding:15px var(--gutter) ; gap:11px
   .brand          gap:11px
   .brand__mark    35x35
   .brand__name    font-size:15px
   .brand__sub::after font-size:10px
   .nav__cart      42x42
   .nav__cart svg  20x20
   .cart-count     15x15 ; font-size:10px ; min-width:15px
   .menu-btn       42x42
   .menu-btn span  width:20px ; height:1.6px
*/
@media (max-width: 768px) {
  /* Container */
  .header__inner {
    padding: 16px var(--gutter, 20px) !important;
    gap: 12px !important;
  }
  .brand { gap: 12px !important; }

  /* Logo mark */
  .brand__mark { width: 37px !important; height: 37px !important; }

  /* Brand name + sub */
  .brand__name { font-size: 16px !important; }
  .brand__sub::after { font-size: 10.5px !important; }

  /* Cart icon button */
  html header nav a.nav__cart,
  html .nav a.nav__cart {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
  }
  html header nav a.nav__cart svg,
  html .nav a.nav__cart svg {
    width: 21px !important;
    height: 21px !important;
    max-width: 21px !important;
    max-height: 21px !important;
    min-width: 21px !important;
  }
  html header nav a.nav__cart .cart-count,
  html .nav a.nav__cart .cart-count {
    width: 16px !important;
    height: 16px !important;
    min-width: 16px !important;
    font-size: 10.5px !important;
  }

  /* Hamburger button */
  html .menu-btn,
  html header .menu-btn {
    width: 44px !important;
    height: 44px !important;
  }
  html .menu-btn span,
  html header .menu-btn span {
    width: 21px !important;
    height: 1.7px !important;
  }
}


/* ---- v93 MOBILE: equalize price columns + horizontal scroll for 3+ size cards ---- */
/* PROBLEM (before v93):
   .pc-prices is display:flex with flex:1 1 0% on each .pc-price-col, so columns shrink
   to fit the narrow mobile card width. With 3 columns (e.g. Calcium 5/10/20mg) the cells
   get ~60px each, causing "Sold Out" to wrap onto two lines and "$20.00" to clip.
   Also: column 1 has padding 0 6px 0 0 (no left padding) while cols 2+ have 0 6px, making
   the first column visibly wider than the rest.

   FIX:
   1. Equalize padding across all columns
   2. Switch flex to fixed min-width per column with flex:0 0 auto (no shrink)
   3. Let .pc-prices scroll horizontally when columns overflow
   4. nowrap on stock/price text so labels never wrap
   5. Hide scrollbar visually (still scrollable by drag/swipe)
   First column keeps its no-left-border via :first-child rule.

   UNDO PLAN: delete this entire block. Original padding/flex behavior restored.
*/
@media (max-width: 768px) {

  /* Container: horizontal scroll, no wrap */
  body.woocommerce-shop .pc-prices,
  body.archive.post-type-archive-product .pc-prices,
  body.single-product .pc-prices {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: visible !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    gap: 0 !important;
  }
  body.woocommerce-shop .pc-prices::-webkit-scrollbar,
  body.archive.post-type-archive-product .pc-prices::-webkit-scrollbar,
  body.single-product .pc-prices::-webkit-scrollbar {
    display: none !important;
  }

  /* Columns: fixed min-width, equalized padding, no shrink */
  body.woocommerce-shop .pc-price-col,
  body.archive.post-type-archive-product .pc-price-col,
  body.single-product .pc-price-col {
    flex: 0 0 auto !important;
    min-width: 78px !important;
    padding: 0 8px !important;
    border-left: 1px solid var(--line-soft, #e4e5e7) !important;
    box-sizing: border-box !important;
  }
  /* First column: no left padding (so it aligns with card edge), no left border */
  body.woocommerce-shop .pc-price-col:first-child,
  body.archive.post-type-archive-product .pc-price-col:first-child,
  body.single-product .pc-price-col:first-child {
    padding-left: 0 !important;
    border-left: none !important;
  }

  /* Keep stock + price text on a single line (kills "Sold Out" stacking) */
  body.woocommerce-shop .pc-price-stock,
  body.archive.post-type-archive-product .pc-price-stock,
  body.single-product .pc-price-stock,
  body.woocommerce-shop .pc-price-main,
  body.archive.post-type-archive-product .pc-price-main,
  body.single-product .pc-price-main,
  body.woocommerce-shop .pc-price-qty,
  body.archive.post-type-archive-product .pc-price-qty,
  body.single-product .pc-price-qty,
  body.woocommerce-shop .pc-price-per,
  body.archive.post-type-archive-product .pc-price-per,
  body.single-product .pc-price-per {
    white-space: nowrap !important;
  }
}