/*
Theme Name: Bills Exhausts
Description: Parts-catalog theme for the Bills Exhausts demo store. Dense, explicit, flat. One stylesheet, no web fonts, no sliders, no tabs.
Version: 2.0
Requires PHP: 8.1
Text Domain: bills
*/

/* ==========================================================================
   Tokens
   Ink and paper with the logo's red and blue. One control height. A 4 px grid.
   ========================================================================== */
:root {
	--ink: #15171b;
	--ink-2: #3a3f47;
	--muted: #5c626b;
	--line: #dcdfd9;
	--line-2: #bfc3bb;
	--panel: #f2f3ef;
	--bg: #f7f7f4;
	--white: #fff;
	--blue: #1e3b8a;
	--blue-2: #162d6b;
	--red: #c8202f;
	--red-2: #a31826;
	--green: #17703a;
	--amber: #8f5800;
	--yellow: #ffd23f;
	--ctl: 32px;
	--ctl-lg: 40px;
	--wrap: 1520px;
	--nav-h: 40px;
	--mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

/* ==========================================================================
   Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--nav-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
	margin: 0; background: var(--bg); color: var(--ink);
	font: 14px/1.45 system-ui, -apple-system, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
	-webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--red); }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
h1 { font-size: 22px; line-height: 1.2; font-weight: 700; letter-spacing: -.2px; }
h2 { font-size: 17px; line-height: 1.25; font-weight: 700; }
h3 { font-size: 14px; line-height: 1.3; font-weight: 700; }
code, .sku { font-family: var(--mono); font-size: 11.5px; }
.sku { display: inline-block; padding: 0 4px; background: var(--panel); border: 1px solid var(--line); color: var(--ink-2); line-height: 17px; overflow-wrap: anywhere; }
.price, .amount, .count, .cart-count, td, .tabular { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
hr { border: 0; border-top: 1px solid var(--line); margin: 16px 0; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.visually-hidden, .screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--white); padding: 8px 12px; }
.skip:focus { left: 8px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: 16px; padding-right: 16px; }

/* Controls: one height everywhere. Primary is ink, secondary is outline, purchase is red. */
button, .button, input[type=submit], a.button {
	display: inline-flex; align-items: center; justify-content: center; gap: 6px;
	min-height: var(--ctl); padding: 0 14px; border: 1px solid var(--ink); border-radius: 0;
	background: var(--ink); color: var(--white); font: inherit; font-size: 13px; font-weight: 700; line-height: 1.2;
	text-decoration: none; cursor: pointer; white-space: nowrap;
}
button:hover, .button:hover, input[type=submit]:hover { background: var(--ink-2); border-color: var(--ink-2); color: var(--white); }
.button-secondary, button.button-secondary { background: var(--white); color: var(--ink); border-color: var(--line-2); }
.button-secondary:hover, button.button-secondary:hover { background: var(--ink); border-color: var(--ink); color: var(--white); }
.button.alt, button.alt, .checkout-button, #place_order, .single_add_to_cart_button {
	background: var(--red); border-color: var(--red); min-height: var(--ctl-lg); font-size: 14px; padding: 0 22px;
}
.button.alt:hover, button.alt:hover, .checkout-button:hover, #place_order:hover, .single_add_to_cart_button:hover { background: var(--red-2); border-color: var(--red-2); }
button:disabled, .button.disabled, .button:disabled, button.disabled {
	background: var(--panel) !important; border-color: var(--line-2) !important; color: var(--muted) !important; cursor: not-allowed;
}
input, select, textarea {
	font: inherit; font-size: 14px; color: var(--ink); background: var(--white);
	border: 1px solid var(--line-2); border-radius: 0; min-height: var(--ctl); padding: 0 10px; max-width: 100%;
}
textarea { padding: 8px 10px; min-height: 80px; }
select { padding-right: 28px; appearance: none; background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%233a3f47'/%3E%3C/svg%3E") no-repeat right 10px center; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 2px rgba(30, 59, 138, .2); }
input[type=checkbox], input[type=radio] { min-height: 0; width: 15px; height: 15px; padding: 0; margin: 0 6px 0 0; accent-color: var(--ink); vertical-align: -2px; }
label { font-size: 13px; }
::placeholder { color: #8a9098; }

/* ==========================================================================
   Header: utility bar, masthead, menu, sale band
   ========================================================================== */
.utility { background: var(--ink); color: #c9ccd1; font-size: 12px; }
.utility .wrap { display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; align-items: center; min-height: 30px; }
.utility b { color: var(--white); font-weight: 700; }
.utility a { color: var(--white); }
.utility span:last-child { justify-self: end; }

.masthead { background: var(--white); border-bottom: 1px solid var(--line); }
.masthead .wrap { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 32px; align-items: center; min-height: 68px; }
.logo { display: block; }
.logo img { height: 40px; width: auto; }
/* Not ".search": WordPress puts that class on the body of search result pages. */
.site-search { display: flex; width: 100%; max-width: 780px; justify-self: center; }
.site-search input { flex: 1; min-width: 0; height: var(--ctl-lg); border: 1px solid var(--ink-2); border-right: 0; font-size: 14px; }
.site-search button { height: var(--ctl-lg); padding: 0 20px; }
.account { display: flex; gap: 0; }
.account a { display: flex; flex-direction: column; justify-content: center; padding: 2px 0 2px 16px; margin-left: 16px; border-left: 1px solid var(--line); color: var(--ink); text-decoration: none; line-height: 1.25; min-width: 0; }
.account a:first-child { border-left: 0; margin-left: 0; padding-left: 0; }
.account b { font-size: 14px; display: flex; align-items: center; gap: 6px; }
.account small { font-size: 12px; color: var(--muted); white-space: nowrap; }
.account a:hover b { color: var(--red); }
.cart-count { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 18px; padding: 0 5px; background: var(--red); color: var(--white); font-size: 11px; font-weight: 700; border-radius: 9px; }

.main-nav { position: sticky; top: 0; z-index: 40; background: var(--blue); }
.main-nav .wrap { position: static; }
.main-nav .menu, .main-nav .sub-menu { list-style: none; margin: 0; padding: 0; }
.main-nav .menu { display: flex; flex-wrap: wrap; }
.main-nav .menu > li > a {
	display: flex; align-items: center; height: var(--nav-h); padding: 0 12px;
	color: var(--white); font-size: 12.5px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; text-decoration: none;
}
.main-nav .menu > li:first-child > a { padding-left: 0; }
.main-nav .menu > li.menu-item-has-children > a::after { content: ""; margin-left: 6px; border: 4px solid transparent; border-top-color: currentColor; transform: translateY(2px); opacity: .7; }
.main-nav .menu > li:hover > a, .main-nav .menu > li:focus-within > a { background: var(--white); color: var(--ink); }
.main-nav .menu > li:first-child:hover > a, .main-nav .menu > li:first-child:focus-within > a { padding-left: 12px; margin-left: -12px; }
.main-nav .menu > li > .sub-menu {
	display: none; position: absolute; left: 0; right: 0; top: 100%;
	padding: 16px max(16px, calc((100vw - var(--wrap)) / 2 + 16px)) 20px;
	background: var(--white); border-bottom: 2px solid var(--ink); box-shadow: 0 12px 24px rgba(21, 23, 27, .12);
	columns: 200px; column-gap: 28px; column-rule: 1px solid var(--line);
	max-height: calc(100vh - 120px); overflow-y: auto;
}
.main-nav .menu > li:hover > .sub-menu, .main-nav .menu > li:focus-within > .sub-menu { display: block; }
.main-nav .sub-menu > li { break-inside: avoid; margin-bottom: 14px; }
.main-nav .sub-menu > li > a { display: block; padding: 0 0 4px; margin-bottom: 4px; border-bottom: 1px solid var(--line); color: var(--ink); font-size: 12px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; text-decoration: none; }
.main-nav .sub-menu .sub-menu > li { margin: 0; }
.main-nav .sub-menu .sub-menu > li > a { display: block; padding: 2px 0; border: 0; margin: 0; font-size: 13px; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--blue); }
.main-nav .sub-menu a:hover { color: var(--red); text-decoration: underline; }
.main-nav a[href="#"] { cursor: default; }
.main-nav .sub-menu a[href="#"]:hover { color: var(--ink); text-decoration: none; }

.sale-band { display: block; padding: 6px 16px; background: var(--yellow); color: var(--ink); font-size: 13px; font-weight: 700; text-align: center; text-decoration: none; border-bottom: 1px solid #e6b800; }
.sale-band:hover { color: var(--ink); text-decoration: underline; }

.page-wrap { padding-top: 16px; padding-bottom: 40px; min-height: 50vh; }

/* Breadcrumb */
.woocommerce-breadcrumb { font-size: 12px; color: var(--muted); margin: 0 0 12px; }
.woocommerce-breadcrumb a { color: var(--muted); }
.woocommerce-breadcrumb a:hover { color: var(--red); }
.woocommerce-breadcrumb .sep { color: var(--line-2); margin: 0 6px; }

/* Notices */
.woocommerce-notices-wrapper:empty { display: none; }
.woocommerce-message, .woocommerce-info, .woocommerce-error, .notice {
	display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; list-style: none;
	margin: 0 0 16px; padding: 10px 14px; background: var(--white); border: 1px solid var(--line); border-left: 3px solid var(--green); font-size: 13px;
}
.woocommerce-info { border-left-color: var(--blue); }
.woocommerce-error, .notice-out { border-left-color: var(--red); }
.woocommerce-error li { width: 100%; }
.woocommerce-message .button, .woocommerce-info .button { order: 2; margin-left: auto; background: var(--white); color: var(--ink); border-color: var(--line-2); }
.woocommerce-message .button:hover, .woocommerce-info .button:hover { background: var(--ink); color: var(--white); }

/* ==========================================================================
   Listings: filters, toolbar, product cards, list view
   ========================================================================== */
.shop-layout { display: grid; grid-template-columns: 232px minmax(0, 1fr); gap: 24px; align-items: start; }

.filters { position: sticky; top: calc(var(--nav-h) + 12px); max-height: calc(100vh - var(--nav-h) - 24px); overflow-y: auto; background: var(--white); border: 1px solid var(--line); scrollbar-width: thin; }
.filters > summary { display: none; }
.filters-head { display: flex; align-items: baseline; justify-content: space-between; padding: 10px 12px 8px; border-bottom: 2px solid var(--ink); }
.filters-head h2 { font-size: 12px; letter-spacing: .6px; text-transform: uppercase; }
.filters-head a { font-size: 12px; }
.filter-group { padding: 10px 12px 10px; border-bottom: 1px solid var(--line); }
.filter-group:last-child { border-bottom: 0; }
.filter-group h3 { margin-bottom: 6px; font-size: 11px; letter-spacing: .6px; text-transform: uppercase; color: var(--ink-2); }
.filter-group h3 .count { font-weight: 400; color: var(--muted); margin-left: 2px; letter-spacing: 0; }
.filter-group ul { list-style: none; padding: 0; }
.check { display: grid; grid-template-columns: 14px minmax(0, 1fr) auto; gap: 8px; align-items: baseline; padding: 3px 0; color: var(--ink); text-decoration: none; font-size: 13px; line-height: 1.3; }
.check .box { position: relative; width: 14px; height: 14px; border: 1px solid var(--ink-2); background: var(--white); transform: translateY(2px); }
.check.on .box { background: var(--ink); border-color: var(--ink); }
.check.on .box::after { content: ""; position: absolute; left: 4px; top: 1px; width: 4px; height: 8px; border: solid var(--white); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.check.on .label { font-weight: 700; }
.check .count { font-size: 12px; color: var(--muted); }
.check:hover { color: var(--ink); }
.check:hover .label { text-decoration: underline; }
.check:hover .box { border-color: var(--ink); }
.more summary { margin-top: 4px; font-size: 12px; color: var(--blue); cursor: pointer; list-style: none; }
.more summary::-webkit-details-marker { display: none; }
.more summary::before { content: "+ "; }
.more[open] summary::before { content: "- "; }
.more[open] summary { margin-bottom: 2px; }
.price-form { display: grid; grid-template-columns: 1fr 1fr auto; gap: 6px; align-items: end; }
.price-form label { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.price-form label span { font-size: 11px; color: var(--muted); }
.price-form input { width: 100%; padding: 0 6px; }

.listing-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 8px 24px; padding-bottom: 10px; margin-bottom: 12px; border-bottom: 2px solid var(--ink); }
.listing-title { display: flex; align-items: baseline; gap: 12px; min-width: 0; }
.listing-count { color: var(--muted); font-size: 13px; white-space: nowrap; }
.listing-tools { display: flex; align-items: center; gap: 12px; }
.woocommerce-result-count { font-size: 12px; color: var(--muted); white-space: nowrap; }
.woocommerce-ordering select { min-width: 200px; font-size: 13px; }
.segmented { display: inline-flex; border: 1px solid var(--line-2); }
.segmented a { display: inline-flex; align-items: center; height: calc(var(--ctl) - 2px); padding: 0 12px; color: var(--ink); text-decoration: none; font-size: 13px; background: var(--white); }
.segmented a + a { border-left: 1px solid var(--line-2); }
.segmented a[aria-current] { background: var(--ink); color: var(--white); font-weight: 700; }
.segmented a:not([aria-current]):hover { background: var(--panel); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: -2px 0 14px; }
.chips a { display: inline-flex; align-items: center; gap: 8px; height: 26px; padding: 0 8px 0 10px; background: var(--white); border: 1px solid var(--line-2); color: var(--ink); font-size: 12px; text-decoration: none; }
.chips a span { color: var(--muted); font-size: 15px; line-height: 1; }
.chips a:hover { border-color: var(--red); }
.chips a:hover span { color: var(--red); }
.chips a.chips-clear { border: 0; background: none; color: var(--blue); text-decoration: underline; }
.term-description { max-width: 110ch; margin: -4px 0 14px; color: var(--ink-2); font-size: 13px; }
.term-description p + p { margin-top: 6px; }
.empty-state { background: var(--white); border: 1px solid var(--line); padding: 20px 24px; }
.empty-state h2 { margin-bottom: 8px; }
.empty-state p { max-width: 75ch; color: var(--ink-2); }
.empty-state p + p { margin-top: 8px; }

/* Product cards. Each card is a subgrid of seven rows, so image, title, codes,
   price, stock, button, and the post-add "View cart" link line up across a row. */
ul.products { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
ul.products li.product {
	position: relative; display: grid; grid-template-rows: subgrid; grid-row: span 7; row-gap: 0;
	background: var(--white); border: 1px solid var(--line); min-width: 0;
}
ul.products li.product:hover { border-color: var(--ink-2); }
ul.products li.product > a.woocommerce-LoopProduct-link { display: contents; color: var(--ink); text-decoration: none; }
ul.products li.product img { width: 100%; aspect-ratio: 1; object-fit: contain; padding: 10px; background: var(--white); border-bottom: 1px solid var(--panel); }
ul.products .woocommerce-loop-product__title { padding: 8px 10px 0; font-size: 13px; line-height: 1.35; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
ul.products li.product:hover .woocommerce-loop-product__title { text-decoration: underline; }
.card-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 6px; padding: 6px 10px 0; font-size: 12px; color: var(--muted); align-self: start; }
ul.products .price { padding: 8px 10px 0; font-size: 15px; font-weight: 700; color: var(--ink); align-self: end; }
.price del { color: var(--muted); font-weight: 400; font-size: 12px; margin-right: 6px; text-decoration-thickness: 1px; }
.price ins { color: var(--red); text-decoration: none; }
ul.products .stock-label { padding: 2px 10px 0; }
.stock-label { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; }
.stock-label::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
.stock-in { color: var(--green); } .stock-low { color: var(--amber); } .stock-back { color: var(--blue); } .stock-out { color: var(--red); }
ul.products li.product .button {
	margin: 10px; background: var(--white); color: var(--ink); border-color: var(--line-2); align-self: end;
}
ul.products li.product .button:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }
ul.products li.product .button.loading { opacity: .6; }
ul.products li.product .button.added::after { content: " \2713"; }
ul.products li.product .added_to_cart { margin: -4px 10px 10px; font-size: 12px; font-weight: 700; }
.onsale { position: absolute; top: 8px; left: 8px; z-index: 2; padding: 2px 6px; background: var(--red); color: var(--white); font-size: 11px; font-weight: 700; line-height: 1.4; }

/* List view: one row per product, like a parts table. */
.list-head { display: none; }
.view-list .list-head {
	display: grid; grid-template-columns: 56px minmax(0, 2.4fr) minmax(0, 1.2fr) 150px 160px 140px; gap: 16px;
	padding: 6px 12px; background: var(--panel); border: 1px solid var(--line); border-bottom: 0;
	font-size: 11px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; color: var(--ink-2);
}
.view-list ul.products { grid-template-columns: minmax(0, 1fr); gap: 0; border: 1px solid var(--line); background: var(--white); }
.view-list ul.products li.product {
	grid-template-rows: none; grid-row: auto; grid-template-columns: 56px minmax(0, 2.4fr) minmax(0, 1.2fr) 150px 160px 140px;
	gap: 16px; align-items: center; padding: 6px 12px; border: 0; border-top: 1px solid var(--line);
}
.view-list ul.products li.product:first-child { border-top: 0; }
.view-list ul.products li.product:hover { background: #fafaf8; }
.view-list ul.products li.product img { width: 56px; padding: 2px; border: 0; }
.view-list ul.products .woocommerce-loop-product__title, .view-list .card-meta, .view-list ul.products .price, .view-list ul.products .stock-label { padding: 0; align-self: center; }
.view-list ul.products .price { font-size: 14px; }
.view-list ul.products li.product .button { margin: 0; }
.view-list .onsale, .view-list ul.products li.product .added_to_cart { display: none; }

/* Pagination */
.woocommerce-pagination { margin-top: 20px; }
.woocommerce-pagination ul { display: flex; flex-wrap: wrap; gap: 4px; list-style: none; padding: 0; }
.woocommerce-pagination a, .woocommerce-pagination span { display: inline-flex; align-items: center; justify-content: center; min-width: var(--ctl); height: var(--ctl); padding: 0 8px; background: var(--white); border: 1px solid var(--line-2); color: var(--ink); text-decoration: none; font-size: 13px; }
.woocommerce-pagination a:hover { border-color: var(--ink); }
.woocommerce-pagination .current { background: var(--ink); color: var(--white); border-color: var(--ink); font-weight: 700; }

/* ==========================================================================
   Product page
   ========================================================================== */
/* Photos and summary in one row. Nothing is sticky: the photos scroll with the page. */
.product-top { position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 0 40px; align-items: start; }
.product-top > .onsale { top: 10px; left: 10px; font-size: 12px; padding: 3px 8px; }
.gallery-main { display: flex; align-items: center; justify-content: center; aspect-ratio: 1; background: var(--white); border: 1px solid var(--line); cursor: zoom-in; }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; padding: 16px; }
.gallery-count { margin-top: 6px; font-size: 12px; color: var(--muted); }
.gallery-thumbs { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; list-style: none; padding: 0; margin-top: 6px; }
.gallery-thumbs a { display: block; aspect-ratio: 1; background: var(--white); border: 1px solid var(--line); }
.gallery-thumbs a:hover { border-color: var(--ink-2); }
.gallery-thumbs a.on { border: 2px solid var(--ink); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: contain; padding: 3px; }

.summary { min-width: 0; }
.summary .product_title { font-size: 24px; line-height: 1.25; margin-bottom: 10px; overflow-wrap: anywhere; }
.codes { display: flex; flex-wrap: wrap; gap: 6px 20px; padding: 0 0 12px; border-bottom: 1px solid var(--line); }
.codes div { display: flex; align-items: baseline; gap: 6px; }
.codes dt { font-size: 11px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; color: var(--muted); }
.codes dd { font-size: 13px; }
.summary > .price { margin-top: 14px; font-size: 28px; font-weight: 700; line-height: 1.15; }
.summary > .price del { font-size: 16px; }
.saving { margin-top: 2px; color: var(--red); font-size: 13px; font-weight: 700; }
.stock-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin: 10px 0 16px; font-size: 13px; color: var(--muted); }
.stock-line .stock-label { font-size: 14px; }
/* The theme's stock line replaces WooCommerce's for the product; the chosen option's own stock still shows. */
.summary > p.stock, .summary .woocommerce-product-details__short-description:empty { display: none; }
.summary form.cart { margin: 0 0 12px; padding: 14px; background: var(--white); border: 1px solid var(--line); }
table.variations, table.variations tbody, table.variations tr, table.variations th, table.variations td { display: block; }
table.variations { margin-bottom: 4px; }
table.variations tr { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 8px 12px; align-items: center; margin-bottom: 8px; }
table.variations th { font-size: 13px; font-weight: 700; text-align: left; }
table.variations th label { font-size: 13px; }
table.variations td { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
table.variations select { width: 100%; max-width: 380px; }
.reset_variations { font-size: 12px; }
.single_variation_wrap .woocommerce-variation { margin: 4px 0 10px; }
.woocommerce-variation-price .price { font-size: 20px; font-weight: 700; }
.variation-stock { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin-top: 2px; font-size: 12px; color: var(--muted); }
.variation-stock .stock-label { font-size: 13px; }
.woocommerce-variation-add-to-cart, form.cart:not(.variations_form) { display: flex; flex-wrap: wrap; gap: 8px; align-items: stretch; }
form.cart .quantity input { width: 72px; height: var(--ctl-lg); text-align: center; }
form.cart .single_add_to_cart_button { flex: 1; max-width: 320px; }
.notice-out { display: block; margin: 0 0 12px; }
.pickup { display: grid; gap: 1px; margin-bottom: 12px; padding: 10px 14px; background: var(--white); border: 1px solid var(--line); border-left: 3px solid var(--green); font-size: 13px; color: var(--ink-2); }
.pickup b { color: var(--ink); }
.terms { display: flex; flex-wrap: wrap; gap: 4px 18px; list-style: none; padding: 0; font-size: 12px; }

.product-sections { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 24px; margin-top: 32px; align-items: start; }
.section-title { margin-bottom: 12px; padding-bottom: 6px; border-bottom: 2px solid var(--ink); font-size: 12px; letter-spacing: .6px; text-transform: uppercase; }
.product-description, .product-aside > section { background: var(--white); border: 1px solid var(--line); padding: 16px 20px 20px; min-width: 0; }
.product-aside { display: grid; gap: 16px; }
.product-description { overflow-x: auto; color: var(--ink-2); }
.product-description p, .prose p { margin: 0 0 10px; }
.product-description :is(h1, h2, h3, h4, h5):not(.section-title) { margin: 18px 0 6px; font-size: 14px; color: var(--ink); }
.product-description > .section-title + * { margin-top: 0; }
.product-description ul, .product-description ol, .prose ul, .prose ol { margin: 0 0 12px; padding-left: 20px; }
.product-description li, .prose li { margin-bottom: 3px; }
.product-description table, .prose table { border-collapse: collapse; margin: 6px 0 14px; font-size: 13px; }
.product-description th, .product-description td, .prose th, .prose td { border: 1px solid var(--line); padding: 4px 10px; text-align: left; vertical-align: top; }
.product-description tr:first-child td, .prose tr:first-child td { background: var(--panel); font-weight: 700; }
.product-description img, .prose img { margin: 8px 0; }
.shop_attributes { width: 100%; border-collapse: collapse; font-size: 13px; }
.shop_attributes th, .shop_attributes td { padding: 6px 8px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.shop_attributes tr:last-child th, .shop_attributes tr:last-child td { border-bottom: 0; }
.shop_attributes th { width: 38%; color: var(--muted); font-weight: 600; }
.shop_attributes td p { margin: 0; }
.policy { border-top: 1px solid var(--line); }
.policy:first-of-type { border-top: 0; }
.policy summary { display: flex; justify-content: space-between; padding: 8px 0; font-size: 13px; font-weight: 700; cursor: pointer; list-style: none; }
.policy summary::-webkit-details-marker { display: none; }
.policy summary::after { content: "+"; font-size: 16px; line-height: 1; color: var(--muted); }
.policy[open] summary::after { content: "\2212"; }
.policy-body { padding: 0 0 12px; font-size: 13px; color: var(--ink-2); max-height: 420px; overflow-y: auto; }
.policy-body p { margin: 0 0 8px; }
section.related, section.up-sells { margin-top: 32px; }
section.related > h2, section.up-sells > h2 { margin-bottom: 12px; padding-bottom: 6px; border-bottom: 2px solid var(--ink); font-size: 12px; letter-spacing: .6px; text-transform: uppercase; }

/* ==========================================================================
   Home
   ========================================================================== */
.promo-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.promo { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.promo img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.promo-text { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px 12px; }
.promo-text small { color: var(--red); font-size: 11px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; }
.promo-text b { font-size: 15px; line-height: 1.3; }
.promo-text span { font-size: 13px; color: var(--muted); }
.promo:hover { border-color: var(--ink-2); color: var(--ink); }
.promo:hover b { text-decoration: underline; }
.media-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.media-grid a { display: block; background: var(--white); border: 1px solid var(--line); }
.media-grid a:hover { border-color: var(--ink-2); }
.media-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.home-section { margin-top: 36px; }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin-bottom: 12px; padding-bottom: 6px; border-bottom: 2px solid var(--ink); }
.section-head h2 { font-size: 18px; }
.section-sub { font-size: 13px; color: var(--muted); }
.section-link { margin-left: auto; font-size: 13px; font-weight: 700; }
.section-note { max-width: 120ch; margin: -4px 0 12px; font-size: 13px; color: var(--ink-2); }
.brand-tiles { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 8px; list-style: none; padding: 0; }
.brand-tiles a { display: flex; flex-direction: column; height: 100%; background: var(--white); border: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.brand-tiles a:hover { border-color: var(--ink-2); }
.brand-tiles a:hover b { text-decoration: underline; }
.tile-image { display: flex; align-items: center; justify-content: center; aspect-ratio: 3 / 2; padding: 12px; border-bottom: 1px solid var(--panel); overflow: hidden; }
.tile-image img { width: 100%; height: 100%; object-fit: contain; }
.tile-mark { font-size: 22px; font-weight: 900; letter-spacing: 1px; color: var(--ink-2); text-transform: uppercase; }
.brand-tiles b { padding: 8px 10px; font-size: 13px; font-weight: 600; }
.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); margin-top: 36px; background: var(--white); border: 1px solid var(--line); }
.feature img { width: 100%; height: 100%; object-fit: cover; min-height: 220px; }
.feature div { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 10px; padding: 24px 28px; }
.feature p { max-width: 70ch; color: var(--ink-2); }
.proof { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-top: 36px; padding: 12px 16px; background: var(--white); border: 1px solid var(--line); border-left: 3px solid var(--blue); }
.proof span { color: var(--ink-2); font-size: 13px; }
.service-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.fact { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; background: var(--white); border: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.fact span { font-size: 13px; color: var(--muted); }
a.fact:hover { border-color: var(--ink-2); color: var(--ink); }
a.fact:hover b { text-decoration: underline; }

/* ==========================================================================
   Content pages, 404
   ========================================================================== */
.content-layout { display: grid; grid-template-columns: 232px minmax(0, 880px); gap: 24px; align-items: start; }
.info-nav { position: sticky; top: calc(var(--nav-h) + 12px); background: var(--white); border: 1px solid var(--line); padding: 10px 0; }
.info-nav h2 { padding: 0 14px 8px; font-size: 11px; letter-spacing: .6px; text-transform: uppercase; color: var(--ink-2); }
.info-nav ul { list-style: none; padding: 0; }
.info-nav a { display: block; padding: 4px 14px 4px 11px; border-left: 3px solid transparent; color: var(--ink); font-size: 13px; text-decoration: none; }
.info-nav a:hover { background: var(--panel); text-decoration: underline; }
.info-nav a[aria-current] { border-left-color: var(--red); font-weight: 700; background: var(--panel); }
.prose { background: var(--white); border: 1px solid var(--line); padding: 24px 32px 28px; color: var(--ink-2); overflow-wrap: anywhere; }
.prose h1 { margin-bottom: 16px; padding-bottom: 10px; border-bottom: 2px solid var(--ink); color: var(--ink); font-size: 24px; }
.prose :is(h2, h3, h4) { margin: 20px 0 6px; color: var(--ink); font-size: 15px; }
.prose p, .prose li { max-width: 78ch; }
.store-article > h1 { margin-bottom: 16px; padding-bottom: 10px; border-bottom: 2px solid var(--ink); font-size: 24px; }

.not-found { max-width: 760px; padding: 24px 32px 28px; background: var(--white); border: 1px solid var(--line); }
.eyebrow { margin-bottom: 4px; color: var(--red); font-size: 12px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; }
.not-found h1 { font-size: 26px; margin-bottom: 8px; }
.not-found > p { color: var(--ink-2); margin-bottom: 12px; }
.not-found h2 { margin: 20px 0 8px; font-size: 12px; letter-spacing: .6px; text-transform: uppercase; }
.search-large { display: block; max-width: none; margin: 16px 0 4px; }
.search-large label { display: block; margin-bottom: 4px; font-weight: 700; }
.search-large div { display: flex; }
.search-large input { flex: 1; min-width: 0; height: var(--ctl-lg); border: 1px solid var(--ink-2); border-right: 0; }
.search-large button { height: var(--ctl-lg); padding: 0 20px; }
.link-list { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin-bottom: 16px; }
.link-list a { display: inline-flex; align-items: center; height: var(--ctl); padding: 0 12px; background: var(--white); border: 1px solid var(--line-2); color: var(--ink); text-decoration: none; font-size: 13px; }
.link-list a:hover { border-color: var(--ink); }

/* ==========================================================================
   Cart, checkout, account (classic WooCommerce templates)
   ========================================================================== */
.woocommerce form .form-row { display: flex; flex-direction: column; gap: 4px; margin: 0 0 12px; }
.woocommerce form .form-row label { font-weight: 700; color: var(--ink-2); }
.woocommerce form .form-row > .button { align-self: flex-start; min-width: 140px; }
.woocommerce form .form-row label.checkbox, .woocommerce form .form-row label.woocommerce-form__label-for-checkbox { display: flex; align-items: center; font-weight: 400; color: var(--ink); }
.woocommerce form .form-row .required { color: var(--red); text-decoration: none; border: 0; }
.woocommerce form .form-row input.input-text, .woocommerce form .form-row select, .woocommerce form .form-row textarea { width: 100%; }
.woocommerce form .form-row .optional { font-weight: 400; color: var(--muted); }
.woocommerce-invalid input.input-text { border-color: var(--red); }
.woocommerce-password-strength { font-size: 12px; margin-top: 4px; }
.password-input { position: relative; display: block; }
.password-input input { padding-right: 64px; }
.show-password-input { position: absolute; right: 4px; top: 4px; min-height: 24px; height: 24px; padding: 0 8px; background: var(--panel); color: var(--ink); border: 1px solid var(--line); font-size: 11px; }
.show-password-input:hover { background: var(--line); color: var(--ink); border-color: var(--line-2); }
.show-password-input::after { content: "Show"; }
.show-password-input.display-password::after { content: "Hide"; }

/* Select2 (country and state pickers) to match the native controls. */
.select2-container .select2-selection--single { height: var(--ctl); border: 1px solid var(--line-2); border-radius: 0; }
.select2-container .select2-selection--single .select2-selection__rendered { line-height: 30px; padding-left: 10px; color: var(--ink); }
.select2-container .select2-selection--single .select2-selection__arrow { height: 30px; }
.select2-dropdown { border-color: var(--line-2); border-radius: 0; }
.select2-results__option--highlighted[aria-selected], .select2-container--default .select2-results__option--highlighted[aria-selected] { background: var(--blue); }

.shop_table { width: 100%; border-collapse: collapse; background: var(--white); border: 1px solid var(--line); font-size: 13px; }
.shop_table th { padding: 8px 12px; background: var(--panel); border-bottom: 1px solid var(--line); font-size: 11px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; color: var(--ink-2); text-align: left; }
.shop_table td { padding: 12px; border-top: 1px solid var(--line); vertical-align: middle; }
.shop_table .product-thumbnail img { width: 64px; border: 1px solid var(--line); }
.shop_table .product-name a { color: var(--ink); font-weight: 600; text-decoration: none; }
.shop_table .product-name a:hover { text-decoration: underline; }
.shop_table .product-price, .shop_table .product-subtotal, .shop_table .product-total { white-space: nowrap; font-weight: 700; }
.shop_table .product-remove a.remove { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border: 1px solid var(--line-2); color: var(--muted); font-size: 16px; text-decoration: none; }
.shop_table .product-remove a.remove:hover { border-color: var(--red); color: var(--red); }
.shop_table .quantity input { width: 64px; text-align: center; }
.shop_table td.actions { background: var(--panel); }
.shop_table td.actions .coupon { display: inline-flex; gap: 6px; }
.shop_table td.actions .coupon input { width: 180px; }
.shop_table td.actions > .button { float: right; }
.shop_table tfoot th, .shop_table tfoot td { padding: 10px 12px; border-top: 1px solid var(--line); background: var(--white); font-size: 13px; text-transform: none; letter-spacing: 0; }
.shop_table tfoot .order-total th, .shop_table tfoot .order-total td { font-size: 16px; font-weight: 700; color: var(--ink); }

.woocommerce-cart .store-page .woocommerce { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 24px; align-items: start; }
.woocommerce-cart .store-page .woocommerce > .woocommerce-notices-wrapper { grid-column: 1 / -1; }
.cart_totals { padding: 16px; background: var(--white); border: 1px solid var(--line); }
.cart_totals h2 { margin-bottom: 10px; padding-bottom: 6px; border-bottom: 2px solid var(--ink); font-size: 12px; letter-spacing: .6px; text-transform: uppercase; }
.cart_totals .shop_table { border: 0; }
.cart_totals .shop_table th { width: 40%; background: none; border: 0; border-top: 1px solid var(--line); font-size: 13px; text-transform: none; letter-spacing: 0; color: var(--ink-2); vertical-align: top; }
.cart_totals .shop_table tr:first-child th, .cart_totals .shop_table tr:first-child td { border-top: 0; }
.cart_totals .shop_table td { padding: 10px 0 10px 12px; }
.cart_totals .shop_table th { padding: 10px 0; }
.woocommerce-shipping-methods { list-style: none; padding: 0; display: grid; gap: 4px; }
.woocommerce-shipping-methods li { display: flex; align-items: baseline; gap: 4px; }
.woocommerce-shipping-destination, .woocommerce-shipping-calculator { margin-top: 6px; font-size: 12px; color: var(--muted); }
.wc-proceed-to-checkout { margin-top: 12px; }
.wc-proceed-to-checkout .checkout-button { display: flex; width: 100%; height: 44px; }
.cart-empty { font-size: 15px; }
.return-to-shop { margin-top: 8px; }

.woocommerce-checkout .store-page form.checkout { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 0 32px; align-items: start; }
.woocommerce-checkout form.checkout > .woocommerce-NoticeGroup { grid-column: 1 / -1; }
.woocommerce-checkout #customer_details { grid-column: 1; grid-row: 1 / span 3; }
.woocommerce-checkout #order_review_heading { grid-column: 2; grid-row: 1; }
.woocommerce-checkout #order_review { grid-column: 2; grid-row: 2; position: sticky; top: calc(var(--nav-h) + 12px); }
.col2-set .col-1, .col2-set .col-2 { margin-bottom: 16px; padding: 16px 20px 8px; background: var(--white); border: 1px solid var(--line); }
.woocommerce-checkout h3, #order_review_heading { margin-bottom: 12px; padding-bottom: 6px; border-bottom: 2px solid var(--ink); font-size: 12px; letter-spacing: .6px; text-transform: uppercase; }
.woocommerce-billing-fields__field-wrapper, .woocommerce-shipping-fields__field-wrapper, .woocommerce-address-fields__field-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.woocommerce form .form-row-wide, #billing_country_field, #billing_address_1_field, #billing_address_2_field, #billing_email_field, #shipping_country_field, #shipping_address_1_field, #shipping_address_2_field, #billing_company_field, #shipping_company_field { grid-column: 1 / -1; }
#ship-to-different-address { font-size: 13px; text-transform: none; letter-spacing: 0; }
#ship-to-different-address label { display: flex; align-items: center; font-weight: 700; }
.woocommerce-form-coupon-toggle .woocommerce-info { margin-bottom: 12px; }
form.checkout_coupon { display: flex; gap: 8px; align-items: flex-end; margin-bottom: 16px; padding: 12px; background: var(--white); border: 1px solid var(--line); }
form.checkout_coupon p { margin: 0; }
#order_review .shop_table { margin-bottom: 12px; }
#order_review .shop_table td.product-name { font-weight: 600; }
#order_review .shop_table th { background: var(--white); }
#order_review .shop_table thead th { background: var(--panel); }
#payment { padding: 14px; background: var(--white); border: 1px solid var(--line); }
#payment ul.payment_methods { list-style: none; padding: 0; margin: 0 0 12px; border: 1px solid var(--line); }
#payment ul.payment_methods > li { padding: 10px 12px; font-size: 13px; }
#payment ul.payment_methods > li + li { border-top: 1px solid var(--line); }
#payment ul.payment_methods > li > label { font-weight: 700; }
#payment .payment_box { margin-top: 8px; padding: 10px 12px; background: var(--panel); font-size: 13px; color: var(--ink-2); }
#payment .payment_box p { margin: 0; }
#payment .woocommerce-privacy-policy-text, #payment .woocommerce-terms-and-conditions-wrapper { font-size: 12px; color: var(--muted); margin-bottom: 12px; }
#place_order { width: 100%; height: 48px; font-size: 15px; }

.woocommerce-account .store-page .u-columns, .woocommerce-account .store-page .col2-set#customer_login { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 980px; }
#customer_login .u-column1, #customer_login .u-column2 { padding: 20px 24px 12px; background: var(--white); border: 1px solid var(--line); }
#customer_login h2 { margin-bottom: 14px; padding-bottom: 6px; border-bottom: 2px solid var(--ink); font-size: 12px; letter-spacing: .6px; text-transform: uppercase; }
.woocommerce-form-login .form-row:has(.woocommerce-form-login__rememberme) { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; }
.woocommerce-LostPassword { font-size: 13px; margin-bottom: 8px; }
.woocommerce-privacy-policy-text { font-size: 12px; color: var(--muted); margin-bottom: 12px; }
.woocommerce-account .woocommerce-MyAccount-navigation { float: left; width: 220px; margin-right: 24px; background: var(--white); border: 1px solid var(--line); }
.woocommerce-MyAccount-navigation ul { list-style: none; padding: 6px 0; }
.woocommerce-MyAccount-navigation a { display: block; padding: 6px 14px 6px 11px; border-left: 3px solid transparent; color: var(--ink); text-decoration: none; font-size: 13px; }
.woocommerce-MyAccount-navigation .is-active a { border-left-color: var(--red); font-weight: 700; background: var(--panel); }
.woocommerce-MyAccount-content { overflow: hidden; padding: 16px 20px; background: var(--white); border: 1px solid var(--line); }
.woocommerce-MyAccount-content p + p { margin-top: 8px; }

/* Order received and order view: the facts as a data strip, then details and addresses. */
.woocommerce-thankyou-order-received { margin: 0 0 12px; padding: 10px 14px; background: var(--white); border: 1px solid var(--line); border-left: 3px solid var(--green); font-weight: 700; }
ul.order_details { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); list-style: none; padding: 0; margin: 0 0 16px; background: var(--white); border: 1px solid var(--line); }
ul.order_details li { padding: 10px 14px; border-left: 1px solid var(--line); font-size: 11px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; color: var(--muted); }
ul.order_details li:first-child { border-left: 0; }
ul.order_details li strong { display: block; margin-top: 2px; font-size: 15px; letter-spacing: 0; text-transform: none; color: var(--ink); }
.woocommerce-order > p, .woocommerce-order-details + p { margin-bottom: 16px; color: var(--ink-2); }
.woocommerce-order-details, .woocommerce-customer-details { margin-top: 20px; }
.woocommerce-order-details__title, .woocommerce-column__title, .woocommerce-customer-details > h2 { margin-bottom: 10px; padding-bottom: 6px; border-bottom: 2px solid var(--ink); font-size: 12px; letter-spacing: .6px; text-transform: uppercase; }
.woocommerce-customer-details .addresses { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.woocommerce-customer-details .addresses .col-1, .woocommerce-customer-details .addresses .col-2 { margin: 0; }
.woocommerce-customer-details address { font-style: normal; line-height: 1.6; color: var(--ink-2); }
.woocommerce-customer-details--phone, .woocommerce-customer-details--email { margin: 0; }
.woocommerce-table--order-details tfoot th { width: 60%; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--ink); color: #c4c8ce; font-size: 13px; }
.footer-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; padding-top: 32px; padding-bottom: 24px; }
.site-footer h2 { margin: 0 0 10px; color: var(--white); font-size: 11px; letter-spacing: .7px; text-transform: uppercase; }
.site-footer h2 + .payments, .site-footer ul + h2, .site-footer dl + ul { margin-top: 0; }
.site-footer section > * + h2 { margin-top: 20px; }
.site-footer ul { list-style: none; padding: 0; display: grid; gap: 5px; }
.site-footer a { color: #e6e8eb; text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.site-footer address { font-style: normal; margin-bottom: 10px; line-height: 1.5; }
.hours { display: grid; gap: 2px; margin-bottom: 10px; }
.hours div { display: grid; grid-template-columns: 90px 1fr; }
.hours dt { color: #9aa0a8; }
.payments { line-height: 1.6; color: #c4c8ce; }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 14px; padding-bottom: 18px; border-top: 1px solid #2c3037; font-size: 12px; color: #9aa0a8; }

/* ==========================================================================
   Responsive: same content, fewer columns.
   ========================================================================== */
@media (max-width: 1400px) {
	ul.products { grid-template-columns: repeat(5, minmax(0, 1fr)); }
	.home ul.products { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
@media (max-width: 1200px) {
	ul.products, .home ul.products { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.view-list .list-head, .view-list ul.products li.product { grid-template-columns: 56px minmax(0, 1fr) 130px 140px 128px; }
	.view-list .list-head span:nth-child(3), .view-list .card-meta { display: none; }
	.brand-tiles { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
@media (max-width: 1024px) {
	.utility .wrap { grid-template-columns: 1fr auto; }
	.utility span:last-child { display: none; }
	.masthead .wrap { grid-template-columns: auto 1fr; gap: 10px 16px; padding-top: 10px; padding-bottom: 10px; }
	.account { justify-self: end; }
	.site-search { grid-column: 1 / -1; grid-row: 2; max-width: none; }
	.main-nav .menu { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
	.main-nav .menu::-webkit-scrollbar { display: none; }
	.main-nav .menu > li > a { white-space: nowrap; }
	.main-nav .menu > li > .sub-menu { columns: 170px; }
	.shop-layout, .content-layout { grid-template-columns: 210px minmax(0, 1fr); gap: 16px; }
	ul.products, .home ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.home ul.products { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.product-top { gap: 0 24px; }
	.woocommerce-checkout .store-page form.checkout { grid-template-columns: minmax(0, 1fr) 340px; gap: 0 20px; }
	.woocommerce-cart .store-page .woocommerce { grid-template-columns: minmax(0, 1fr) 320px; }
	.promo-grid, .service-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.media-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
	.footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* Below 900 px: one column. Filters fold into a summary bar; store pages stack. */
@media (max-width: 900px) {
	.shop-layout, .content-layout { grid-template-columns: minmax(0, 1fr); }
	.filters { position: static; max-height: none; }
	.filters > summary { display: flex; align-items: center; justify-content: space-between; height: var(--ctl-lg); padding: 0 12px; font-weight: 700; cursor: pointer; list-style: none; }
	.filters > summary::-webkit-details-marker { display: none; }
	.filters > summary::after { content: "+"; font-size: 18px; }
	.filters[open] > summary::after { content: "\2212"; }
	.filters[open] > summary { border-bottom: 1px solid var(--line); }
	.filters .filters-head { display: none; }
	.info-nav { position: static; order: 2; }
	.product-top { grid-template-columns: minmax(0, 1fr); }
	.gallery { margin-bottom: 20px; }
	.product-sections { grid-template-columns: minmax(0, 1fr); }
	.woocommerce-cart .store-page .woocommerce, .woocommerce-checkout .store-page form.checkout { grid-template-columns: minmax(0, 1fr); }
	.woocommerce-checkout #customer_details, .woocommerce-checkout #order_review_heading, .woocommerce-checkout #order_review { grid-column: 1; grid-row: auto; position: static; }
	ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.home ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
	body { font-size: 14px; }
	.utility .wrap { grid-template-columns: 1fr; justify-items: center; padding-top: 4px; padding-bottom: 4px; gap: 0; }
	.logo img { height: 30px; }
	.account small { display: none; }
	.account a { padding-left: 12px; margin-left: 12px; }
	ul.products, .home ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
	ul.products .woocommerce-loop-product__title { font-size: 12.5px; }
	.listing-head { align-items: flex-start; flex-direction: column; }
	.listing-tools { width: 100%; flex-wrap: wrap; }
	.woocommerce-result-count { width: 100%; }
	.woocommerce-ordering { flex: 1; }
	.woocommerce-ordering select { width: 100%; min-width: 0; }
	.view-list .list-head { display: none; }
	.view-list ul.products li.product { grid-template-columns: 56px minmax(0, 1fr); grid-template-areas: "img title" "img price" "img stock" "img button"; gap: 2px 12px; padding: 8px 10px; }
	.view-list ul.products li.product img { grid-area: img; align-self: start; }
	.view-list ul.products .woocommerce-loop-product__title { grid-area: title; }
	.view-list ul.products .price { grid-area: price; }
	.view-list ul.products .stock-label { grid-area: stock; }
	.view-list ul.products li.product .button { grid-area: button; justify-self: start; margin-top: 4px; }
	.summary .product_title { font-size: 20px; }
	.summary > .price { font-size: 24px; }
	table.variations tr { grid-template-columns: minmax(0, 1fr); gap: 4px; }
	.gallery-thumbs { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 4px; }
	.promo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
	.promo-text { padding: 8px 10px 10px; }
	.promo-text b { font-size: 13px; }
	.promo-text span { font-size: 12px; }
	.media-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.media-grid a:nth-child(n+4) { display: none; }
	.brand-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.feature { grid-template-columns: minmax(0, 1fr); }
	.feature div { padding: 16px; }
	.service-facts { grid-template-columns: minmax(0, 1fr); }
	.prose, .not-found { padding: 16px; }
	.woocommerce-billing-fields__field-wrapper, .woocommerce-shipping-fields__field-wrapper { grid-template-columns: minmax(0, 1fr); }
	.woocommerce-account .store-page .col2-set#customer_login { grid-template-columns: minmax(0, 1fr); }
	/* Cart lines stack: photo on the left, name, price, quantity, and subtotal on the right. */
	.woocommerce-cart-form .shop_table thead { display: none; }
	.woocommerce-cart-form .shop_table tbody, .woocommerce-cart-form .shop_table tr { display: block; }
	.woocommerce-cart-form .shop_table tr.cart_item { position: relative; display: grid; grid-template-columns: 64px minmax(0, 1fr); column-gap: 12px; padding: 12px; border-top: 1px solid var(--line); }
	.woocommerce-cart-form .shop_table tr.cart_item:first-child { border-top: 0; }
	.woocommerce-cart-form .shop_table td { border: 0; padding: 2px 0; }
	.woocommerce-cart-form .shop_table td.product-thumbnail { grid-column: 1; grid-row: 1 / span 4; }
	.woocommerce-cart-form .shop_table td.product-remove { position: absolute; top: 12px; right: 12px; }
	.woocommerce-cart-form .shop_table td.product-name { grid-column: 2; padding-right: 36px; }
	.woocommerce-cart-form .shop_table td:is(.product-price, .product-quantity, .product-subtotal) { grid-column: 2; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
	.woocommerce-cart-form .shop_table td:is(.product-price, .product-quantity, .product-subtotal)::before { content: attr(data-title); font-weight: 400; color: var(--muted); }
	.woocommerce-cart-form .shop_table td.actions { display: block; padding: 12px; border-top: 1px solid var(--line); }
	.shop_table td.actions .coupon { display: flex; width: 100%; }
	.shop_table td.actions .coupon input { flex: 1; width: auto; min-width: 0; }
	.shop_table td.actions > .button { float: none; width: 100%; margin-top: 8px; }
	.cart_totals .shop_table th { width: 32%; }
	.woocommerce-customer-details .addresses { grid-template-columns: minmax(0, 1fr); }
	ul.order_details li { border-left: 0; border-top: 1px solid var(--line); }
	ul.order_details li:first-child { border-top: 0; }
	.woocommerce-checkout-review-order-table td.product-name { overflow-wrap: anywhere; }
	.footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; }
	.footer-grid section:nth-child(3) { grid-column: 1 / -1; }
	.footer-base { flex-direction: column; }
}
