/* ECOM GSS Blueprint — WooCommerce (shop, product, cart, checkout, account) */

.wc-wrap { min-height: 50vh; }

/* Notices */
.woocommerce-notices-wrapper:empty { display: none; }
.woocommerce-message, .woocommerce-info, .woocommerce-error { list-style: none; margin: 0 0 24px; padding: 14px 18px; border: 1px solid var(--line-2); background: var(--bg-2); color: var(--ink); display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.woocommerce-message::before, .woocommerce-info::before, .woocommerce-error::before { display: none; }
.woocommerce-error { border-color: var(--err); }
.woocommerce-message { border-color: var(--ok); }
.woocommerce-message .button, .woocommerce-info .button { order: 2; }

/* WooCommerce buttons → theme buttons */
.woocommerce .button, .woocommerce button.button, .woocommerce a.button, .woocommerce input.button, .wc-block-components-button, .woocommerce #respond input#submit {
	display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 18px; border: 1px solid var(--ink); background: var(--ink); color: var(--bg); border-radius: 0; font: 600 14px/1 var(--font); text-transform: uppercase; letter-spacing: .04em; cursor: pointer; transition: background .25s, color .25s;
}
.woocommerce .button:hover, .woocommerce button.button:hover, .woocommerce a.button:hover { background: var(--bone); border-color: var(--bone); color: var(--bg); }
.woocommerce .button.alt, .woocommerce button.button.alt { background: var(--ink); color: var(--bg); }
.woocommerce .button.disabled, .woocommerce button.button:disabled, .woocommerce button.button.disabled { opacity: .45; }
/* A main button that WooCommerce marks as disabled ("Add to cart" before a colour and size are
   chosen) was painted in WooCommerce's own purple (#7f54b3): its rule for that state is more
   specific than the one two lines up. It is now this theme's outlined button, at full strength
   so the label stays readable (12:1), and turns solid once it can be used. */
.woocommerce .button.alt.disabled, .woocommerce a.button.alt.disabled, .woocommerce input.button.alt.disabled, .woocommerce button.button.alt.disabled, .woocommerce button.button.alt:disabled, .woocommerce button.button.alt:disabled[disabled],
.woocommerce .button.alt.disabled:hover, .woocommerce a.button.alt.disabled:hover, .woocommerce input.button.alt.disabled:hover, .woocommerce button.button.alt.disabled:hover, .woocommerce button.button.alt:disabled:hover, .woocommerce button.button.alt:disabled[disabled]:hover { background: transparent; color: var(--ink-2); border-color: var(--line-2); opacity: 1; cursor: not-allowed; }
.added_to_cart { display: none !important; }
.pcard .btn.loading { opacity: .6; }
.pcard .btn.added::after { content: " ✓"; }

/* Shop hero */
.shop-hero { padding: clamp(40px, 6vw, 88px) 0 0; border-bottom: 1px solid var(--line); }
.shop-hero-row { display: grid; grid-template-columns: 1fr minmax(280px, 460px); gap: 32px; align-items: end; margin: 16px 0 28px; }
.shop-hero h1 { font-size: clamp(52px, 9vw, 150px); }
.shop-hero .lede { font-size: 17px; margin-bottom: 14px; }
.shop-hero .lede p { margin: 0; }
.cat-strip { display: flex; gap: 6px; overflow-x: auto; padding: 0 0 18px; scrollbar-width: none; }
.cat-strip::-webkit-scrollbar { display: none; }
.cat-strip .chip { white-space: nowrap; }
.cat-strip .chip span { font-size: 12px; margin-left: 4px; }

/* Toolbar */
.shop-toolbar { position: sticky; top: var(--hh); z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px var(--pad); max-width: var(--max); margin: 0 auto; background: rgba(14, 14, 14, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.shop-toolbar p { margin: 0; flex: 1; text-align: center; }
.shop-toolbar .woocommerce-ordering { margin: 0; }
.shop-toolbar select { min-height: 40px; width: auto; min-width: 200px; }

/* Layout */
.shop-layout { display: grid; grid-template-columns: 260px 1fr; gap: 0; max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.shop-main { min-width: 0; border-left: 1px solid var(--line); padding: 24px 0 64px 24px; }
.shop-filters { padding: 24px 24px 64px 0; position: sticky; top: calc(var(--hh) + 62px); align-self: start; max-height: calc(100vh - var(--hh) - 62px); overflow-y: auto; scrollbar-width: thin; }
.f-head { display: none; }
.fgroup { border-bottom: 1px solid var(--line); padding: 14px 0; }
.fgroup summary { display: flex; justify-content: space-between; align-items: center; cursor: pointer; list-style: none; color: var(--ink); }
.fgroup summary::-webkit-details-marker { display: none; }
.fgroup[open] .ico-plus { transform: rotate(45deg); }
.fgroup .ico-plus { transition: transform .25s; }
.fopts { display: grid; gap: 2px; margin-top: 12px; max-height: 260px; overflow-y: auto; }
.fopt { display: flex; align-items: center; gap: 10px; padding: 5px 0; cursor: pointer; font-size: 15px; }
.fopt span { flex: 1; }
.fprice { display: flex; align-items: center; gap: 8px; margin-top: 12px; }
.fprice input { min-height: 40px; }
.f-actions { display: flex; gap: 8px; margin-top: 18px; }
.f-actions .btn { flex: 1; }
.shop-toolbar [data-filters] { display: none; }

/* Product grid */
ul.products { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
ul.products li.product, .woocommerce ul.products[class*="columns-"] li.product, .woocommerce-page ul.products[class*="columns-"] li.product { margin: 0; padding: 0; width: auto; float: none; clear: none; display: flex; }
ul.products li.product .pcard { flex: 1; }
/* Product names look the same whether the tag is h2 (shop listings, straight under the page title)
   or h3 (related products). WooCommerce's own rule only reaches h3. */
.woocommerce ul.products li.product .pcard .nm { font-size: 16px; padding: .5em 0; margin: 0; }
ul.products::before, ul.products::after { display: none !important; }
.related ul.products, .upsells ul.products, .cross-sells ul.products { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.woocommerce-pagination { margin-top: 32px; }
.woocommerce-pagination ul { display: flex; gap: 6px; justify-content: center; list-style: none; border: 0 !important; }
.woocommerce-pagination ul li { border: 0 !important; }
.woocommerce-pagination .page-numbers { display: inline-grid; place-items: center; min-width: 42px; height: 42px; border: 1px solid var(--line-2); }
.woocommerce-pagination .page-numbers.current { background: var(--ink); color: var(--bg); }
.load-more { display: flex; justify-content: center; margin-top: 32px; }
.load-more .btn { min-width: 220px; }
.js-infinite .woocommerce-pagination { display: none; }

/* Single product */
.pdp-crumbs { padding-top: 24px; }
.single-product div.product { max-width: var(--max); margin: 0 auto; padding: 24px var(--pad) 0; }
/* Gallery and summary sit in their own grid (.pdp-top, opened in inc/woocommerce.php).
   Tabs and related products come after it as ordinary blocks, so a pinned column
   stops at the end of this row and can never cover them. */
.pdp-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, 1fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
.pdp-top > * { min-width: 0; }
.pdp-top > .woocommerce-product-gallery { grid-column: 1; width: 100% !important; float: none !important; margin: 0; position: relative; isolation: isolate; }
.pdp-top > .summary { grid-column: 2; width: 100% !important; float: none !important; margin: 0; }
/* product.js pins the shorter column only, and by its bottom edge when it is taller than the screen.
   WooCommerce sets the gallery to position:relative with a longer selector, so this one has to insist. */
@media (min-width: 961px) {
	.single-product div.product .pdp-top > [data-pin] { position: sticky !important; top: var(--pin-top, calc(var(--hh) + 24px)); }
	/* A wholesale order grid needs the room more than the photo does. Two columns only:
	   outside this query the rule would outrank the single-column phone layout below. */
	.pdp-top:has(.gss-matrix) { grid-template-columns: minmax(0, .88fr) minmax(360px, 1.12fr); }
}
/* WooCommerce starts the gallery at opacity 0 until its script runs: show the first image straight away. */
.woocommerce-product-gallery { opacity: 1 !important; }
/* Until the slider script has run, show the first photo only. The selector repeats WooCommerce's own
   (".woocommerce div.product div.images ...:nth-child(n+2)", which lays the other photos out four across)
   so that it outranks it: the shorter selector used before never applied, and the page jumped by the
   height of that grid when the slider replaced it. Without JavaScript the grid stays (see the noscript
   style printed by inc/woocommerce.php). */
.woocommerce div.product div.images.woocommerce-product-gallery:not(:has(.flex-viewport)) .woocommerce-product-gallery__image:nth-child(n+2) { display: none; }
.woocommerce-product-gallery__wrapper { margin: 0; }
.woocommerce-product-gallery__image { background: var(--paper); }
.woocommerce-product-gallery__image img { mix-blend-mode: multiply; width: 100%; }
.woocommerce-product-gallery .flex-control-thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; list-style: none; margin: 6px 0 0; padding: 0; }
/* Room for the thumbnail strip before the slider script adds it, so the page does not jump when it
   arrives. A thumbnail is a fifth of the gallery width less its share of four 6px gaps, rows are
   6px apart and the strip sits directly under the photo (WooCommerce's own rule sets its margin to 0):
   rows × (20% − 4.8px) + (rows − 1) × 6px = rows × 20% + rows × 1.2px − 6px. */
.woocommerce-product-gallery[class*="gss-thumbrows-"]:not(:has(.flex-control-thumbs)) { padding-bottom: calc(var(--thumb-rows, 1) * 20% + var(--thumb-rows, 1) * 1.2px - 6px); }
.gss-thumbrows-2 { --thumb-rows: 2; } .gss-thumbrows-3 { --thumb-rows: 3; } .gss-thumbrows-4 { --thumb-rows: 4; }
.gss-thumbrows-5 { --thumb-rows: 5; } .gss-thumbrows-6 { --thumb-rows: 6; } .gss-thumbrows-7 { --thumb-rows: 7; } .gss-thumbrows-8 { --thumb-rows: 8; }
/* The slider script wraps the photos first and sizes them 100ms later. In between they were laid out
   at the width of the strip that holds all of them (16 gallery widths for 8 photos): a hugely enlarged
   photo flashed up and the page grew by thousands of pixels, then snapped back (measured: first photo
   5488x8225px for about 110ms on a 375px screen). These are the values the script then sets itself;
   100cqi is the gallery width (the gallery is a size container, see below). Until the script has given
   the frame its height, only the first photo is laid out. The others are taken out altogether, not
   squashed to no height: boxes with no height all pile up beside the first photo, the browser then
   counts every one of them as "about to be seen" and downloads every photo of the product at once
   (measured on the sale T-shirt: 34 photos requested before the first one was painted). */
.woocommerce-product-gallery .flex-viewport .woocommerce-product-gallery__wrapper { display: flow-root; }
.woocommerce-product-gallery .flex-viewport .woocommerce-product-gallery__wrapper > .woocommerce-product-gallery__image { width: 100cqi !important; float: left !important; display: block !important; margin-right: 0 !important; }
.woocommerce-product-gallery .flex-viewport:not([style*="height"]) .woocommerce-product-gallery__wrapper > .woocommerce-product-gallery__image:nth-child(n+2) { display: none !important; }
/* WooCommerce floats each thumbnail at 25% width; inside this grid that left them a quarter of a cell wide. */
.woocommerce div.product div.images .flex-control-thumbs li { background: var(--paper); cursor: pointer; width: auto !important; float: none !important; margin: 0 !important; }
.woocommerce-product-gallery .flex-control-thumbs img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; opacity: .55; mix-blend-mode: multiply; transition: opacity .2s; }
/* Phones and tablets: one row of thumbnails that scrolls sideways, with part of the sixth showing so
   it is clear there are more. Stacked five across, a product with 34 photos put seven rows (483px on a
   375px screen) between the photo and the product name, which started 1.5 screens down. The first
   selector repeats WooCommerce's own (it sets overflow: hidden, which a finger cannot scroll).
   product.js keeps the current photo's thumbnail in view. */
@media (max-width: 960px) {
	.woocommerce div.product div.images.woocommerce-product-gallery .flex-control-thumbs { display: flex; overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; scroll-snap-type: x proximity; scrollbar-width: none; }
	.woocommerce div.product div.images.woocommerce-product-gallery .flex-control-thumbs::-webkit-scrollbar { display: none; }
	.woocommerce div.product div.images .flex-control-thumbs li { flex: 0 0 calc((100% - 30px) / 5.4); scroll-snap-align: start; }
	.woocommerce-product-gallery[class*="gss-thumbrows-"]:not(:has(.flex-control-thumbs)) { padding-bottom: calc((100% - 30px) / 5.4); }
}
/* Previous / next: round buttons over the photo (they were two loose text links under it).
   50cqi is half the gallery width, i.e. the middle of a square photo. */
.woocommerce-product-gallery { container-type: inline-size; }
.woocommerce-product-gallery .flex-direction-nav { list-style: none; margin: 0; padding: 0; }
.woocommerce-product-gallery .flex-direction-nav a { position: absolute; top: 140px; top: calc(50cqi - 22px); z-index: 4; width: 44px; height: 44px; display: grid; place-items: center; overflow: hidden; font-size: 0; line-height: 0; color: transparent; background: var(--bg); border: 1px solid var(--line-2); border-radius: 50%; opacity: .92; transition: opacity .2s; }
.woocommerce-product-gallery .flex-direction-nav a::before { content: ""; position: absolute; inset: 0; margin: auto; width: 9px; height: 9px; border: solid var(--ink); border-width: 0 0 1.6px 1.6px; transform: translateX(2px) rotate(45deg); }
.woocommerce-product-gallery .flex-direction-nav .flex-next::before { transform: translateX(-2px) rotate(-135deg); }
.woocommerce-product-gallery .flex-direction-nav .flex-prev { left: 12px; }
.woocommerce-product-gallery .flex-direction-nav .flex-next { right: 12px; }
.woocommerce-product-gallery .flex-direction-nav a:hover { opacity: 1; }
.woocommerce-product-gallery .flex-direction-nav a.flex-disabled { opacity: 0; pointer-events: none; }
.woocommerce-product-gallery .flex-direction-nav a:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; opacity: 1; }
.woocommerce-product-gallery .flex-control-thumbs img.flex-active, .woocommerce-product-gallery .flex-control-thumbs img:hover { opacity: 1; }
.woocommerce-product-gallery__trigger { position: absolute; top: 12px; right: 12px; z-index: 5; width: 40px; height: 40px; background: var(--bg); display: grid; place-items: center; font-size: 0; }
.woocommerce-product-gallery__trigger::before { content: ""; width: 14px; height: 14px; border: 1.6px solid var(--ink); border-radius: 50%; }
.single-product .summary .product_title { font-family: var(--font); font-stretch: 68%; font-weight: 850; text-transform: uppercase; line-height: .9; font-size: clamp(40px, 4.4vw, 72px); margin: 10px 0 16px; }
.single-product .summary .price { font-size: 24px; font-weight: 600; margin: 0 0 18px; color: var(--ink); }
.single-product .summary .price del { color: var(--mute); font-weight: 400; margin-right: 8px; }
/* WooCommerce fades the old price to 70%, which left it at 3.4:1 against the page. Full strength is 5.7:1. */
.woocommerce div.product .summary p.price del, .woocommerce div.product .summary span.price del { opacity: 1; }
/* WooCommerce's own price rules name the element as well as the class ("div.product p.price",
   "ul.products li.product .price"), so they outranked the two rules above and the card rules:
   prices were drawn in WooCommerce's olive (#958e09), the main one at 20px instead of 24px,
   and a card's old price was faded to 3.3:1. These put the theme's colours and size back. */
.woocommerce div.product .summary p.price, .woocommerce div.product .summary span.price { color: var(--ink); }
.woocommerce div.product .summary p.price { font-size: 24px; }
.woocommerce ul.products li.product .pcard .price { color: var(--ink); }
.woocommerce ul.products li.product .pcard .price del { color: var(--mute); opacity: 1; }
/* WooCommerce's own "Sale!" badge is white on olive (3.4:1) and round, hung half outside the
   left edge of the page. Drawn here like the "Sale" label on the product cards, in the top-left
   corner of the photo (.pdp-top holds the badge, the photos and the details). */
.woocommerce span.onsale { background-color: var(--bg); color: var(--ink); }
.pdp-top { position: relative; }
.woocommerce div.product .pdp-top > span.onsale { top: 12px; left: 12px; right: auto; margin: 0; min-width: 0; min-height: 0; padding: 4px 8px; border-radius: 0; font: 500 12px/1.6 var(--mono); letter-spacing: .04em; text-transform: uppercase; }
.single-product .summary .price ins { text-decoration: none; }
.woocommerce-product-details__short-description { color: var(--ink-2); }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); margin: 18px 0; }
.facts div { padding: 12px 12px 12px 0; border-bottom: 1px solid var(--line); }
.facts dd { margin: 4px 0 0; font-weight: 600; }

/* Variations */
.variations_form .variations { width: 100%; border-collapse: collapse; margin-bottom: 8px; }
.variations_form .variations th, .variations_form .variations td { display: block; text-align: left; padding: 0; }
.variations_form .variations th label { font-family: var(--mono); font-size: 12px; text-transform: uppercase; color: var(--mute); font-weight: 400; }
.variations_form .variations td { padding: 6px 0 16px; position: relative; }
/* The native select stays in the page (hidden) behind the swatch buttons: it must never take up room. */
.variations_form .variations select[aria-hidden="true"] { min-width: 0 !important; width: 1px !important; }
.gss-swatches { display: flex; flex-wrap: wrap; gap: 6px; }
.gss-swatches button { min-width: 48px; height: 42px; padding: 0 12px; border: 1px solid var(--line-2); color: var(--ink-2); transition: all .2s; }
.gss-swatches button[aria-pressed="true"] { border-color: var(--ink); color: var(--ink); background: var(--panel); }
.gss-swatches button:disabled { opacity: .3; text-decoration: line-through; }
.gss-swatches.is-colour button { display: inline-flex; align-items: center; gap: 8px; }
.gss-swatches .dot { width: 14px; height: 14px; border: 1px solid var(--line-2); display: inline-block; }
.reset_variations { font-family: var(--mono); font-size: 12px; text-transform: uppercase; color: var(--mute); margin-left: 8px; }
.woocommerce-variation-price .price { font-size: 20px !important; }
.single_variation_wrap .woocommerce-variation-availability { color: var(--mute); }
form.cart { display: flex; flex-wrap: wrap; gap: 8px; align-items: stretch; margin: 8px 0 20px; }
form.cart.variations_form { display: block; }
.woocommerce-variation-add-to-cart { display: flex; gap: 8px; flex-wrap: wrap; }
.quantity { display: inline-flex; border: 1px solid var(--line-2); }
.quantity .qty { width: 64px; text-align: center; border: 0; background: transparent; min-height: 46px; -moz-appearance: textfield; }
.quantity .qty::-webkit-inner-spin-button { -webkit-appearance: none; }
.qbtn { width: 40px; color: var(--ink-2); font-size: 18px; }
.qbtn:hover { color: var(--ink); }
.single_add_to_cart_button { flex: 1; min-width: 200px; }
.stock { font-family: var(--mono); font-size: 12px; text-transform: uppercase; }
.stock.in-stock { color: var(--ok); }
.stock.out-of-stock { color: var(--err); }

.pdp-routes { border: 1px solid var(--line); padding: 18px; margin: 8px 0 20px; }
.pdp-route-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); margin: 12px 0 14px; }
.route { background: var(--bg); padding: 14px; display: grid; gap: 4px; transition: background .25s; }
.route:hover { background: var(--panel); color: var(--ink); }
.route b { font-weight: 600; }
.route span { color: var(--mute); font-size: 14px; }
.add-to-quote.is-added { color: var(--ok); }

/* Tabs */
.woocommerce-tabs { margin-top: clamp(48px, 6vw, 96px); border-top: 1px solid var(--line); }
.woocommerce-tabs ul.tabs { list-style: none; display: flex; gap: 0; flex-wrap: wrap; margin: 0; padding: 0; border-bottom: 1px solid var(--line); }
.woocommerce-tabs ul.tabs::before, .woocommerce-tabs ul.tabs::after { display: none; }
.woocommerce-tabs ul.tabs li { margin: 0; padding: 0; border: 0; background: none; border-radius: 0; }
.woocommerce-tabs ul.tabs li::before, .woocommerce-tabs ul.tabs li::after { display: none; }
.woocommerce-tabs ul.tabs li a { display: block; padding: 16px 18px; font-family: var(--mono); font-size: 12px; text-transform: uppercase; color: var(--mute); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.woocommerce-tabs ul.tabs li.active a { color: var(--ink); border-color: var(--ink); }
.woocommerce-tabs .panel { padding: 32px 0 0; margin: 0; max-width: 1000px; }
.woocommerce-tabs .panel > h2:first-child { display: none; }
.related, .upsells { margin-top: clamp(56px, 7vw, 112px); }
.related > h2, .upsells > h2, .cross-sells > h2 { font-family: var(--font); font-stretch: 68%; font-weight: 850; text-transform: uppercase; font-size: clamp(36px, 4vw, 64px); margin-bottom: 24px; }

/* Reviews */
#reviews .commentlist { list-style: none; padding: 0; }
.star-rating { color: var(--bone); }

/* Cart & checkout (classic + blocks) */
.page-hero.is-compact { padding: 40px 0 28px; }
.page-hero.is-compact h1 { font-size: clamp(44px, 6vw, 88px); margin-bottom: 0; }
.wc-page { padding-top: 40px; }
.wc-content table.shop_table { width: 100%; border-collapse: collapse; border: 0; }
.wc-content table.shop_table th, .wc-content table.shop_table td { padding: 14px 10px 14px 0; border-bottom: 1px solid var(--line); text-align: left; }
.wc-content table.shop_table img { width: 72px; background: var(--paper); mix-blend-mode: normal; }
.wc-content .cart-collaterals { margin-top: 32px; }
.wc-content .cart_totals { max-width: 480px; margin-left: auto; }
.wc-content .woocommerce-checkout #customer_details { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.wc-content .form-row { margin: 0 0 14px; }
.wc-content .form-row label { display: block; font-family: var(--mono); font-size: 12px; text-transform: uppercase; color: var(--mute); margin-bottom: 6px; }
.wc-content .woocommerce-checkout-review-order { border: 1px solid var(--line); padding: 20px; margin-top: 24px; }
.wc-content #payment { background: var(--bg-2); border-radius: 0; }
.wc-content #payment ul.payment_methods { border-bottom: 1px solid var(--line); }
.wc-content #payment div.payment_box { background: var(--panel); color: var(--ink-2); }
.wc-content #payment div.payment_box::before { border-bottom-color: var(--panel); }
.wc-content .select2-container--default .select2-selection--single { background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 0; min-height: 48px; }
.wc-content .select2-container--default .select2-selection--single .select2-selection__rendered { color: var(--ink); line-height: 46px; }
.select2-dropdown { background: var(--bg-2); color: var(--ink); border-color: var(--line-2); }

/* WooCommerce Blocks (cart / checkout blocks) */
.wc-block-components-text-input input, .wc-block-components-combobox .wc-block-components-combobox-control input, .wc-blocks-components-select__select { background: var(--bg-2) !important; color: var(--ink) !important; border-color: var(--line-2) !important; border-radius: 0 !important; }
.wc-block-components-text-input label, .wc-blocks-components-select__label { color: var(--mute) !important; }
.wc-block-cart-item__image img, .wc-block-components-order-summary-item__image img { background: var(--paper); }
.wc-block-components-panel, .wc-block-components-totals-wrapper, .wc-block-components-sidebar { border-color: var(--line) !important; }
.wc-block-components-button:not(.is-link) { background: var(--ink) !important; color: var(--bg) !important; border-radius: 0 !important; }
.wc-block-components-checkout-place-order-button { min-height: 54px; }
.wc-block-components-radio-control__option, .wc-block-components-radio-control-accordion-option { border-color: var(--line-2) !important; }

/* Account */
.woocommerce-account .woocommerce { display: grid; grid-template-columns: 220px 1fr; gap: 40px; }
.woocommerce-MyAccount-navigation ul { list-style: none; padding: 0; border-top: 1px solid var(--line); }
.woocommerce-MyAccount-navigation li a { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--ink-2); }
.woocommerce-MyAccount-navigation li.is-active a { color: var(--ink); font-weight: 600; }
.woocommerce-account:not(.logged-in) .woocommerce { display: block; max-width: 520px; }
.woocommerce form.login, .woocommerce form.register { border: 1px solid var(--line); padding: 24px; border-radius: 0; }

/* Responsive */
@media (max-width: 1100px) {
	ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.related ul.products, .upsells ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
	.shop-layout { grid-template-columns: 1fr; }
	.shop-main { border-left: 0; padding-left: 0; }
	.shop-toolbar [data-filters] { display: inline-flex; }
	.shop-filters { position: fixed; inset: 0; z-index: 80; background: var(--bg); padding: 0 var(--pad) 24px; max-height: none; transform: translateX(-100%); transition: transform .35s var(--ease); visibility: hidden; }
	.shop-filters.open { transform: none; visibility: visible; }
	.f-head { display: flex; justify-content: space-between; align-items: center; height: var(--hh); border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--bg); z-index: 1; }
	.f-actions { position: sticky; bottom: 0; background: var(--bg); padding: 14px 0; }
	ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.shop-hero-row { grid-template-columns: 1fr; }
	.pdp-top { grid-template-columns: minmax(0, 1fr); }
	.pdp-top > .summary { grid-column: 1; }
	.pdp-top > [data-pin] { position: relative; top: auto; }
	.woocommerce-account .woocommerce, .wc-content .woocommerce-checkout #customer_details { grid-template-columns: 1fr; }
	.shop-toolbar p { text-align: left; }
}
@media (max-width: 600px) {
	.shop-toolbar select { min-width: 0; width: 150px; }
	.pcard { padding: 8px; }
	.pcard .row.mono { display: none; }
	.pcard .nm { font-size: 14px !important; }
	.pcard .row:not(.mono) { flex-direction: column; gap: 2px; }
	.pcard .acts .btn:last-child { display: none; }
	.pdp-route-grid, .facts { grid-template-columns: 1fr; }
}

/* Responsive cart / order tables (replaces WooCommerce's smallscreen stylesheet) */
@media (max-width: 768px) {
	.woocommerce table.shop_table_responsive thead, .woocommerce-page table.shop_table_responsive thead { display: none; }
	.woocommerce table.shop_table_responsive tr, .woocommerce-page table.shop_table_responsive tr { display: block; border-bottom: 1px solid var(--line); padding: 8px 0; }
	.woocommerce table.shop_table_responsive tr td, .woocommerce-page table.shop_table_responsive tr td { display: flex; justify-content: space-between; gap: 12px; text-align: right; border: 0; padding: 6px 0; }
	.woocommerce table.shop_table_responsive tr td::before, .woocommerce-page table.shop_table_responsive tr td::before { content: attr(data-title); font-family: var(--mono); font-size: 11px; text-transform: uppercase; color: var(--mute); text-align: left; }
	.woocommerce table.shop_table_responsive tr td.product-remove::before, .woocommerce table.shop_table_responsive tr td.product-thumbnail::before, .woocommerce table.shop_table_responsive tr td.actions::before { display: none; }
	.woocommerce table.shop_table_responsive tr td.product-thumbnail { justify-content: flex-start; }
	.woocommerce table.shop_table_responsive tr td.actions { display: block; text-align: left; }
	.woocommerce table.cart td.actions .coupon { display: flex; gap: 8px; margin-bottom: 12px; }
	.woocommerce-checkout .col2-set .col-1, .woocommerce-checkout .col2-set .col-2 { width: 100%; float: none; }
	.woocommerce form .form-row-first, .woocommerce form .form-row-last { width: 100%; float: none; }
}
.route--studio { grid-column: 1 / -1; background: var(--panel); box-shadow: inset 3px 0 0 var(--bone); }
.route--studio b::after { content: " →"; }
.pdp-fablink { font-size: 11px; color: var(--bone); margin-left: 6px; white-space: nowrap; }
.single-product div.product > * { min-width: 0; }
ul.products > li { min-width: 0; }
ul.products .price, ul.products .gss-moq { white-space: normal; }
.woocommerce-product-gallery { overflow: hidden; }
@media (min-width: 961px) { .shop-layout { grid-template-columns: 260px minmax(0, 1fr); } }
@media (min-width: 961px) and (max-width: 1100px) { .shop-layout { grid-template-columns: 220px minmax(0, 1fr); } }
ul.products li.product .pcard { min-width: 0; box-sizing: border-box; }
.pcard .ph, .pcard .ph img { max-width: 100%; }
.pcard .ph img { width: 100%; height: auto; }
.pcard .row { min-width: 0; gap: 8px; }
.pcard .row { flex-wrap: wrap; } .pcard .row > * { min-width: 0; overflow-wrap: anywhere; } .pcard .row > .price { flex: none; white-space: nowrap; }
@media (max-width: 960px) { .shop-layout { grid-template-columns: minmax(0, 1fr); } }
.pcard .acts { flex-wrap: wrap; min-width: 0; } .pcard .acts .btn { flex: 1 1 auto; min-width: 0; white-space: normal; text-align: center; }
