/* =========================================================================
   ACC WooCommerce — premium shop styling (the Showroom palette)
   Loaded on shop, category, product, cart, checkout, and account pages.
   Tokens come from acc-global.css (loaded site-wide).

   Targets Blocksy's real WooCommerce markup:
     archive card  = li.product > figure > a.ct-media-container > img.wp-post-image
                     + h2.woocommerce-loop-product__title + span.price
                     + ul.entry-meta > li.meta-categories + div.ct-woo-card-actions
     single        = div.product > .woocommerce-product-gallery + .summary.entry-summary
   ====================================================================== */

/* The new UAE Dirham glyph (.woocommerce-Price-currencySymbol mask) lives in
   acc-global.css so it applies site-wide, not only on shop pages. */

/* =========================================================================
   BUTTONS — walnut pill
   ====================================================================== */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce .button,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce #respond input#submit.alt {
	position: relative;
	overflow: hidden;
	background-color: var(--acc-walnut-deep) !important;
	color: #f6f0e4 !important;
	border: 0 !important;
	border-radius: var(--acc-radius-pill) !important;
	padding: 1.05em 2.1em !important;
	font-family: var(--acc-font-body);
	font-size: 0.84rem;
	font-weight: 500 !important;
	text-transform: uppercase;
	letter-spacing: 0.14em;
	/* Blocksy underlines every <a>; an underline inside a filled pill looks
	   like a mistake, so buttons opt out explicitly. */
	text-decoration: none !important;
	transition: background-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce .button:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.woocommerce input.button:hover {
	background-color: var(--acc-walnut) !important;
	color: #fff6ea !important;
	transform: translateY(-2px);
	box-shadow: 0 18px 34px -14px rgba(42, 33, 24, 0.55);
}

/* ---- Sale flash — an engraved caption, not a sticker ---- */
.woocommerce span.onsale {
	background: rgba(250, 247, 240, 0.92);
	color: var(--acc-walnut-deep);
	border: 1px solid var(--acc-hairline-bz);
	border-radius: var(--acc-radius-sm);
	font-family: var(--acc-font-body);
	font-size: 0.62rem;
	font-weight: 500;
	letter-spacing: 0.2em;
	text-transform: uppercase;
}

/* =========================================================================
   ARCHIVE — header (result count + ordering)
   -------------------------------------------------------------------------
   The shop archive has NO title band. Blocksy renders a hero section above
   the grid containing only the word "Shop"; a visitor who just tapped Shop
   does not need a screen of limestone telling them so, and it pushed the
   products themselves below the fold. woocommerce_show_page_title is filtered
   off in functions.php; this hides Blocksy's wrapper, which would otherwise
   stay as an empty band.

   Category archives keep their title: "Alternators" is information the
   visitor did not necessarily arrive with.
   ====================================================================== */
body.post-type-archive-product .hero-section,
body.post-type-archive-product .page-title,
body.post-type-archive-product .woocommerce-products-header {
	display: none;
}

.woocommerce-products-header__title,
.woocommerce-products-header .page-title {
	font-family: var(--acc-font-head);
	font-weight: 400;
	text-transform: none;
	letter-spacing: 0.005em;
	color: var(--acc-ink);
}

.woocommerce .woocommerce-result-count {
	color: var(--acc-muted);
	font-size: 0.72rem;
	font-family: var(--acc-font-body);
	font-weight: 500;
	letter-spacing: 0.2em;
	text-transform: uppercase;
}

.woocommerce .woocommerce-ordering select {
	border-radius: var(--acc-radius-pill);
	border: 1px solid var(--acc-hairline-bz);
	padding: 11px 20px;
	font-family: var(--acc-font-body);
	font-size: 0.8rem;
	/* The body line-height (1.65) inherits in, giving a 21.1px line inside a
	   16px content box, so "Default sorting" was clipped at the baseline.
	   Selects size their own box; the text just needs to fit it. */
	line-height: 1.2;
	background: var(--acc-surface);
	color: var(--acc-ink);
}

/* =========================================================================
   ARCHIVE — premium product cards
   ====================================================================== */
.woocommerce ul.products {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(18px, 2.2vw, 30px);
	margin: 0;
	padding: 0;
	list-style: none;
	align-items: stretch;
}

/* Related / up-sell strips stay 4-up (smaller, secondary) so 4 items fill a row */
.woocommerce .related.products ul.products,
.woocommerce .up-sells ul.products { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (max-width: 1024px) {
	.woocommerce .related.products ul.products,
	.woocommerce .up-sells ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.woocommerce ul.products li.product {
	position: relative;
	width: auto !important;
	margin: 0 !important;
	float: none !important;
	display: flex;
	flex-direction: column;
	background: var(--acc-surface);
	border: 1px solid var(--acc-hairline);
	border-radius: var(--acc-radius);
	overflow: hidden;
	padding: 0;
	transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.woocommerce ul.products li.product:hover {
	transform: translateY(-5px);
	border-color: var(--acc-hairline-bz);
	box-shadow: var(--acc-shadow);
}

/* Bronze hairline that draws itself across the top edge on hover — the
   vitrine lighting up, replacing the old red sweep. */
.woocommerce ul.products li.product::after {
	content: "";
	position: absolute;
	inset-block-start: 0;
	inset-inline: 0;
	z-index: 2;
	block-size: 1px;
	background: linear-gradient(90deg, transparent, var(--acc-bronze), transparent);
	transform: scaleX(0);
	transition: transform 0.45s cubic-bezier(0.22, 0.61, 0.36, 1);
	pointer-events: none;
}

.woocommerce ul.products li.product:hover::after { transform: scaleX(1); }

/* Media: the walnut vitrine (dark studio renders sit inside a lit case) */
.woocommerce ul.products li.product > figure {
	order: 0;
	position: relative;
	margin: 0;
	overflow: hidden;
}

.woocommerce ul.products li.product .ct-media-container,
.woocommerce ul.products li.product > figure > a {
	display: block;
	position: relative;
	overflow: hidden;
	aspect-ratio: 1 / 1;
	/* Limestone, not walnut: the product line is photographed inside real
	   showroom niches, so the tile behind it must match the photograph rather
	   than frame it in a dark box. */
	background: var(--acc-bg-soft);
}

.woocommerce ul.products li.product img.wp-post-image {
	aspect-ratio: 1 / 1 !important;
	inline-size: 100%;
	block-size: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.woocommerce ul.products li.product:hover img.wp-post-image { transform: scale(1.07); }

/* No overlay on the product tile. A dark vignette was layered here to give the
   old dark renders depth; over the showroom photography it just muddied the
   limestone and dulled the warm LED glow the photographs already contain. */

/* Shared horizontal padding for the text block */
.woocommerce ul.products li.product .entry-meta,
.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce ul.products li.product .price,
.woocommerce ul.products li.product .ct-woo-card-actions {
	padding-inline: clamp(16px, 1.8vw, 20px);
}

/* Category eyebrow (reordered above the title) */
.woocommerce ul.products li.product ul.entry-meta {
	order: 1;
	list-style: none;
	margin: 16px 0 0;
	padding-block: 0;
}

.woocommerce ul.products li.product .meta-categories {
	font-family: var(--acc-font-body);
	font-size: 0.64rem;
	font-weight: 500;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	line-height: 1.3;
}

.woocommerce ul.products li.product .meta-categories a {
	color: var(--acc-bronze-text);
	text-decoration: none;
}

.woocommerce ul.products li.product .meta-categories a:hover { color: var(--acc-ink); }

/* 0.64rem of 0.2em-tracked uppercase is 10px on a phone. Same floor as the
   other micro-labels (see acc-home.css): stop shrinking where it stops
   being readable. */
@media (max-width: 900px) {
	.woocommerce ul.products li.product .meta-categories { font-size: 0.7rem; }
}

/* Title */
.woocommerce ul.products li.product .woocommerce-loop-product__title {
	order: 2;
	margin: 8px 0 0;
	font-family: var(--acc-font-body);
	font-weight: 500;
	font-size: 1rem;
	line-height: 1.4;
	color: var(--acc-ink);
}

.woocommerce ul.products li.product .woocommerce-loop-product__link { color: inherit; }

/* Price */
.woocommerce ul.products li.product .price {
	order: 3;
	margin: 10px 0 0;
	color: var(--acc-ink);
	font-family: var(--acc-font-body);
	font-weight: 600;
	font-size: 1.05rem;
	letter-spacing: 0.02em;
}

.woocommerce ul.products li.product .price del { color: var(--acc-muted); font-weight: 400; opacity: 0.7; }
.woocommerce ul.products li.product .price ins { color: var(--acc-ink); text-decoration: none; }

/* Actions — pinned to the card bottom, full-width button */
.woocommerce ul.products li.product .ct-woo-card-actions {
	order: 4;
	margin-block: 16px 18px;
	margin-block-start: auto;
	padding-block-start: 6px;
}

.woocommerce ul.products li.product .ct-woo-card-actions .button,
.woocommerce ul.products li.product .added_to_cart {
	display: block;
	inline-size: 100%;
	text-align: center;
	margin: 0;
}

/* "View cart" link shown after AJAX add-to-cart — an outlined walnut pill,
   never the default theme blue. */
.woocommerce a.added_to_cart,
.woocommerce ul.products li.product .added_to_cart {
	margin-block-start: 8px;
	padding: 11px 16px;
	border-radius: var(--acc-radius-pill);
	border: 1px solid var(--acc-ink);
	background: transparent;
	color: var(--acc-ink) !important;
	font-family: var(--acc-font-body);
	font-weight: 500;
	font-size: 0.74rem;
	text-transform: uppercase;
	letter-spacing: 0.14em;
	text-decoration: none;
	transition: background 0.25s ease, color 0.25s ease;
}

.woocommerce a.added_to_cart:hover,
.woocommerce ul.products li.product .added_to_cart:hover {
	background: var(--acc-ink);
	color: var(--acc-bg) !important;
}

/* =========================================================================
   SINGLE PRODUCT
   ====================================================================== */
.woocommerce div.product .product_title,
.woocommerce div.product .product_title.entry-title {
	font-family: var(--acc-font-body);
	font-weight: 400;
	text-transform: uppercase;
	letter-spacing: -0.01em;
	color: var(--acc-ink);
	font-size: clamp(1.6rem, 3.2vw, 2.4rem);
	line-height: 1.08;
}

/* Gallery — framed dark stage (matches the dark product renders) */
.woocommerce div.product .woocommerce-product-gallery,
.woocommerce div.product .ct-product-gallery-container {
	border-radius: var(--acc-radius-lg);
	overflow: hidden;
}

.woocommerce div.product .woocommerce-product-gallery__image,
.woocommerce div.product div.images img,
.woocommerce div.product .woocommerce-product-gallery img {
	border-radius: var(--acc-radius-lg);
}

.woocommerce div.product .woocommerce-product-gallery__image { background: #0c0c0e; }

/* Price — the hero number of the page */
.woocommerce div.product p.price,
.woocommerce div.product span.price {
	color: var(--acc-ink);
	font-family: var(--acc-font-body);
	font-weight: 600;
	font-variant-numeric: tabular-nums;
	letter-spacing: 0.02em;
	font-size: clamp(1.9rem, 3vw, 2.4rem);
	line-height: 1.1;
}

/* The Dirham glyph is a mask tinted by background-color: follow the price colour */
.woocommerce div.product p.price .woocommerce-Price-currencySymbol,
.woocommerce div.product span.price .woocommerce-Price-currencySymbol { background-color: currentColor; }

.woocommerce div.product p.price ins { color: var(--acc-red); text-decoration: none; }
.woocommerce div.product p.price del { color: var(--acc-muted-light); font-weight: 400; font-size: 0.6em; }

/* Short description */
.woocommerce-product-details__short-description {
	color: var(--acc-muted-light);
	line-height: 1.7;
	font-size: 1.02rem;
}

/* Land-shipping promise (rendered by acc_product_shipping_note at priority 30) */
.acc-ship-note {
	margin-block: 14px 0;
	padding-block-start: 14px;
	border-block-start: 1px solid var(--acc-hairline-bz);
	color: var(--acc-muted);
	font-size: 0.88rem;
	line-height: 1.6;
	max-inline-size: 46ch;
}

/* Trust row (rendered by acc_product_trust_row at priority 25) */
.acc-prod-trust {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 20px;
	list-style: none;
	margin: 20px 0;
	padding: 16px 0;
	border-block: 1px solid var(--acc-border-light);
}

.acc-prod-trust__item {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-family: var(--acc-font-body);
	font-size: 0.82rem;
	font-weight: 600;
	color: var(--acc-ink);
}

.acc-prod-trust__item .acc-icon {
	box-sizing: border-box;
	inline-size: 34px;
	block-size: 34px;
	padding: 7px;
	border-radius: 9px;
	color: var(--acc-red);
	background: color-mix(in srgb, var(--acc-red) 12%, transparent);
	border: 1px solid color-mix(in srgb, var(--acc-red) 28%, transparent);
	flex: 0 0 auto;
}

/* Buy box — quantity + add-to-cart on a subtle surface.
   Live DOM: form.cart > .ct-cart-actions > (.quantity + .single_add_to_cart_button).
   Blocksy already lays out and sizes its type-2 stepper (the quantity height is
   driven by --theme-button-min-height), so we DON'T restyle the input — we only
   add the surface and bump that one variable so the stepper and button share a
   height and stay perfectly aligned. */
.woocommerce div.product form.cart { margin-block: 20px; }

.woocommerce div.product form.cart .ct-cart-actions {
	--theme-button-min-height: 54px;
	/* Recolour Blocksy's quantity stepper from its blue palette to ACC red */
	--quantity-initial-color: var(--acc-red);
	--quantity-hover-color: var(--acc-red-dark);
	gap: 12px;
	padding: 16px;
	background: var(--acc-gray-50);
	border: 1px solid var(--acc-border-light);
	border-radius: var(--acc-radius);
}

/* "Ask about this on WhatsApp" — full-width secondary action under the buy box */
.acc-wa-product {
	display: flex;
	inline-size: 100%;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin-block-start: 12px;
	padding: 0.95em 1.4em;
	border-radius: 999px;
	background: rgba(37, 211, 102, 0.1);
	border: 1px solid rgba(37, 211, 102, 0.4);
	color: var(--acc-ink);
	font-family: var(--acc-font-body);
	font-weight: 500;
	letter-spacing: 0.14em;
	font-size: 0.86rem;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	text-decoration: none;
	transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.acc-wa-product .acc-icon { inline-size: 20px; block-size: 20px; color: var(--acc-wa); }
.acc-wa-product:hover {
	background: rgba(37, 211, 102, 0.18);
	border-color: rgba(37, 211, 102, 0.65);
	transform: translateY(-2px);
	color: var(--acc-ink);
}

/* Meta (SKU / categories) */
.woocommerce div.product .product_meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 22px;
	margin-block-start: 20px;
	padding-block-start: 16px;
	border-block-start: 1px solid var(--acc-border-light);
	font-size: 0.84rem;
	color: var(--acc-muted-light);
}

.woocommerce div.product .product_meta > span { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.woocommerce div.product .product_meta a { color: var(--acc-red-dark); text-decoration: none; }
.woocommerce div.product .product_meta a:hover { color: var(--acc-red); }

/* Tabs — on-brand active state (bronze underline). Overrides Blocksy's
   blue: it colours `li.active a` and draws the underline via `li.active::before`
   from --theme-palette-color-1. */
.woocommerce div.product div.woocommerce-tabs ul.tabs li { font-family: var(--acc-font-body); font-size: 0.78rem; font-weight: 500; letter-spacing: 0.16em; }
.woocommerce div.product div.woocommerce-tabs ul.tabs li a { color: var(--acc-ink); }
.woocommerce div.product div.woocommerce-tabs ul.tabs li.active a,
.woocommerce div.product div.woocommerce-tabs ul.tabs li a:hover { color: var(--acc-red); }
.woocommerce div.product div.woocommerce-tabs ul.tabs li.active::before { background: var(--acc-red); }

/* =========================================================================
   CART / CHECKOUT
   ====================================================================== */

/* Empty-cart state — tight, centered, premium (replaces the default grey box).
   IMPORTANT: scope the narrow/centered treatment to the EMPTY cart only
   (`:has(.cart-empty)`) — otherwise it squeezes the populated cart into a tiny
   centered column. */
.woocommerce-cart .entry-content { margin-block-start: clamp(8px, 1.6vw, 16px); }

.woocommerce-cart .woocommerce:has(.cart-empty) {
	max-inline-size: 620px;
	margin-inline: auto;
	text-align: center;
}

.woocommerce-cart .cart-empty.woocommerce-info {
	border: 0;
	background: transparent;
	padding: 0;
	margin-block: clamp(12px, 2.4vw, 24px) 0;
	font-family: var(--acc-font-body);
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: -0.01em;
	font-size: clamp(1.3rem, 3vw, 2rem);
	color: var(--acc-ink);
}

.woocommerce-cart .cart-empty.woocommerce-info::before { display: none; }

.woocommerce-cart .return-to-shop {
	margin-block: 18px clamp(32px, 6vw, 64px);
}

.woocommerce table.shop_table {
	border-radius: var(--acc-radius);
	border-color: var(--acc-border-light);
	overflow: hidden;
}

.woocommerce table.shop_table th {
	font-family: var(--acc-font-body);
	text-transform: uppercase;
	font-size: 0.78rem;
	letter-spacing: 0.04em;
	color: var(--acc-ink);
}

.woocommerce a.remove {
	color: var(--acc-red) !important;
	border: 1px solid var(--acc-border-light);
}
.woocommerce a.remove:hover { background: var(--acc-red) !important; color: var(--acc-bg) !important; }

/* =========================================================================
   CART PAGE LAYOUT — two columns on desktop (line items | totals sidebar)
   Blocksy wraps the form + totals in `.ct-woocommerce-cart-form`; lay it out
   as a real grid (taste-skill: grid over flex-math) so the cart breathes and
   stops squeezing into a centered band.
   ====================================================================== */
.woocommerce-cart .ct-woocommerce-cart-form {
	display: grid;
	grid-template-columns: minmax(0, 1fr) clamp(300px, 27vw, 380px);
	gap: clamp(24px, 3vw, 52px);
	align-items: start;
}
.woocommerce-cart .ct-woocommerce-cart-form > form.woocommerce-cart-form { margin: 0; min-inline-size: 0; }

/* Amounts never wrap (kills the "3,400.0 0" line breaks) */
.woocommerce .woocommerce-Price-amount { white-space: nowrap; }

/* ---- Cart line-items table ---- */
.woocommerce-cart table.cart { margin: 0; }
.woocommerce table.shop_table td { vertical-align: middle; }
.woocommerce-cart table.cart td.product-name { font-size: 0.98rem; line-height: 1.35; }

/* Product thumbnails — rounded, framed */
.woocommerce table.shop_table td.product-thumbnail img {
	width: 72px;
	border-radius: 10px;
	border: 1px solid var(--acc-border-light);
}

/* Product-name links — ink, bronze on hover (never blue) */
.woocommerce table.shop_table td.product-name a,
.woocommerce table.shop_table td.product-name {
	color: var(--acc-ink) !important;
	font-family: var(--acc-font-body);
	font-weight: 500;
	text-decoration: none;
}
.woocommerce table.shop_table td.product-name a:hover { color: var(--acc-red) !important; }

/* Quantity stepper */
.woocommerce .quantity input.qty {
	border-radius: 8px;
	border: 1px solid var(--acc-border-light);
	min-block-size: 42px;
}

/* ---- Coupon + update row (the table `.actions` cell) ---- */
.woocommerce .cart .actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	padding-block: 18px;
}
.woocommerce .cart .actions .coupon {
	display: flex;
	gap: 10px;
	flex: 0 1 auto;
}
.woocommerce .cart .actions .coupon input.input-text {
	inline-size: clamp(180px, 20vw, 260px);
	flex: 0 1 auto;
	min-inline-size: 0;
	border-radius: var(--acc-radius);
	border: 1px solid var(--acc-border-light);
	min-block-size: 48px;
}
/* Update Cart sits directly beside Apply Coupon (not on its own line) */

/* Cart action buttons — clean rectangles, not round blobs (override the
   global 999px pill in this context only) */
.woocommerce .cart .actions .button {
	border-radius: var(--acc-radius) !important;
	white-space: nowrap;
	min-block-size: 48px;
	padding-block: 0;
}

/* ---- Cart totals — framed sidebar card ---- */
.woocommerce .cart_totals {
	border: 1px solid var(--acc-border-light);
	border-radius: var(--acc-radius-lg);
	padding: clamp(20px, 2vw, 28px);
	background: var(--acc-surface);
	box-shadow: 0 10px 30px -18px rgba(0, 0, 0, 0.25);
	position: sticky;
	top: calc(var(--acc-header-h) + 16px);
}
.woocommerce .cart_totals h2 {
	margin: 0 0 14px;
	font-size: 1.1rem;
	letter-spacing: 0.02em;
	padding-block-end: 14px;
	border-block-end: 1px solid var(--acc-border-light);
}
.woocommerce .cart_totals table.shop_table { border: 0; border-radius: 0; margin: 0; }
.woocommerce .cart_totals table.shop_table th,
.woocommerce .cart_totals table.shop_table td {
	border: 0;
	padding: 10px 0;
	white-space: nowrap;
}
.woocommerce .cart_totals table.shop_table th {
	text-align: start;
	font-size: 0.8rem;
	color: var(--acc-muted-light);
}
.woocommerce .cart_totals table.shop_table td { text-align: end; font-weight: 600; }
.woocommerce .cart_totals .order-total th { color: var(--acc-ink); }
.woocommerce .cart_totals .order-total td,
.woocommerce .cart_totals .order-total .amount {
	color: var(--acc-red);
	font-family: var(--acc-font-body);
	font-weight: 600;
	font-variant-numeric: tabular-nums;
	font-size: 1.15rem;
}

/* Proceed to checkout — full-width, clean rectangle (not a round blob) */
.woocommerce .cart_totals .wc-proceed-to-checkout { padding: 0; margin-block-start: 18px; }
.woocommerce .cart_totals .wc-proceed-to-checkout a.checkout-button {
	display: block;
	width: 100%;
	text-align: center;
	white-space: nowrap;
	border-radius: var(--acc-radius) !important;
	padding: 16px 20px;
	font-size: 0.92rem;
}

.woocommerce .cart_totals h2,
.woocommerce-checkout h3,
.woocommerce-checkout #order_review_heading {
	font-family: var(--acc-font-body);
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--acc-ink);
}

.woocommerce-checkout #payment { border-radius: var(--acc-radius); }

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce .select2-container .select2-selection {
	border-radius: 10px;
	border: 1px solid var(--acc-border-light);
	min-block-size: 46px;
}

.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus,
.woocommerce .select2-container--focus .select2-selection {
	border-color: var(--acc-red);
	outline: none;
}

/* ---- Notices ---- */
.woocommerce-message,
.woocommerce-info { border-block-start-color: var(--acc-red); }
.woocommerce-message::before,
.woocommerce-info::before { color: var(--acc-red); }

/* ---- No-blue safety net ----
   Blocksy paints WooCommerce text links with its blue palette colour
   (--theme-palette-color-1). Recolour the interactive text links that appear
   across cart / checkout / account / notices to ACC ink + red hover. Buttons
   and add-to-cart links are excluded (they keep their own styling). */
.woocommerce-message a:not(.button),
.woocommerce-info a:not(.button),
.woocommerce-error a:not(.button),
.woocommerce .checkout_coupon a,
.woocommerce-cart .showcoupon,
.woocommerce-checkout .showcoupon,
.woocommerce-checkout .showlogin,
.woocommerce-account .woocommerce-MyAccount-navigation a,
.woocommerce-account table.account-orders-table a:not(.button),
.woocommerce .woocommerce-order-details a:not(.button),
.woocommerce-order-received .woocommerce-customer-details a {
	color: var(--acc-red-dark) !important;
	text-decoration: none;
}
.woocommerce-message a:not(.button):hover,
.woocommerce-info a:not(.button):hover,
.woocommerce-error a:not(.button):hover,
.woocommerce .checkout_coupon a:hover,
.woocommerce-cart .showcoupon:hover,
.woocommerce-checkout .showcoupon:hover,
.woocommerce-checkout .showlogin:hover,
.woocommerce-account .woocommerce-MyAccount-navigation a:hover,
.woocommerce-account table.account-orders-table a:not(.button):hover,
.woocommerce .woocommerce-order-details a:not(.button):hover,
.woocommerce-order-received .woocommerce-customer-details a:hover {
	color: var(--acc-red) !important;
}

/* =========================================================================
   Branded empty shop / empty category state
   ====================================================================== */
.acc-shopempty { padding-block: clamp(48px, 8vw, 110px); }
.acc-shopempty__inner { max-width: 640px; margin-inline: auto; text-align: center; }
.acc-shopempty .acc-section__eyebrow { justify-content: center; }
.acc-shopempty__title {
	font-family: var(--acc-font-body);
	font-weight: 500;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	font-size: clamp(1.6rem, 3.4vw, 2.4rem);
	color: var(--acc-ink);
	margin: 12px 0 0;
}
.acc-shopempty__text {
	margin-block-start: 14px;
	color: var(--acc-muted-light);
	font-size: clamp(1rem, 1.4vw, 1.1rem);
	line-height: 1.65;
}
.acc-shopempty__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-block-start: 24px; }

/* =========================================================================
   SCROLL-REVEAL (shop cards + product gallery/summary)
   The global `html.acc-anim .is-in { opacity:1 !important }` rule (acc-global)
   handles the reveal; here we just define the hidden start state. acc-nav.js
   adds .is-in as elements enter the viewport.
   ====================================================================== */
@media (prefers-reduced-motion: no-preference) {
	/* Only the archive cards (which genuinely scroll into view) get the reveal.
	   The single-product gallery + summary are above the fold and must never be
	   hidden behind JS — they hold the LCP, price, and buy button. */
	html.acc-anim .woocommerce ul.products li.product {
		opacity: 0;
		transform: translateY(26px);
		transition: opacity 0.7s cubic-bezier(0.22, 0.61, 0.36, 1),
			transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
	}
}

/* =========================================================================
   RESPONSIVE
   ====================================================================== */
@media (max-width: 1024px) { .woocommerce ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Cart: stack the totals sidebar under the line items below ~900px */
@media (max-width: 900px) {
	.woocommerce-cart .ct-woocommerce-cart-form {
		grid-template-columns: minmax(0, 1fr);
		gap: 28px;
	}
	.woocommerce .cart_totals { position: static; }
}

/* Cart line items: the default 5-column table can't shrink below its min-width
   and overflows narrow screens. Stack each item as a card on phones/tablets.
   Blocksy renders qty + price + remove inside `.product-mobile-actions` (which
   is shown <lg), so we hide the standalone desktop columns. */
@media (max-width: 768px) {
	.woocommerce-cart table.cart,
	.woocommerce-cart table.cart tbody { display: block; inline-size: 100%; }
	.woocommerce-cart table.cart thead { display: none; }
	.woocommerce-cart table.cart tr:not(.cart_item) { display: block; }

	.woocommerce-cart table.cart tr.cart_item {
		display: grid;
		grid-template-columns: 76px minmax(0, 1fr);
		column-gap: 14px;
		align-items: start;
		padding-block: 16px;
		margin: 0;
		border-block-end: 1px solid var(--acc-border-light);
	}
	.woocommerce-cart table.cart tr.cart_item > td {
		display: block;
		padding: 0;
		border: 0;
		text-align: start;
	}
	.woocommerce-cart table.cart td.product-thumbnail { grid-row: 1 / span 2; }
	.woocommerce-cart table.cart td.product-thumbnail img { inline-size: 76px; }
	.woocommerce-cart table.cart td.product-name { grid-column: 2; min-inline-size: 0; }

	/* Hide ONLY the duplicated columns — Blocksy's .product-mobile-actions (inside
	   the name cell) already carries the qty stepper + unit price + remove on
	   mobile, so the standalone quantity + remove columns are duplicates. Keep
	   the subtotal column (the line total is useful and not shown elsewhere).
	   NOTE: must out-specify the `tr.cart_item > td { display:block }` rule above
	   by matching the same depth + the column class. */
	.woocommerce-cart table.cart tr.cart_item > td.product-quantity,
	.woocommerce-cart table.cart tr.cart_item > td.product-remove { display: none; }

	.woocommerce-cart table.cart tr.cart_item > td.product-subtotal {
		margin-block-start: 8px;
		font-weight: 700;
		color: var(--acc-ink);
	}

	/* qty stepper + × + line price + remove, in a tidy row under the name */
	.woocommerce-cart table.cart .product-mobile-actions {
		display: flex;
		align-items: center;
		flex-wrap: wrap;
		gap: 10px;
		margin-block-start: 10px;
	}
	.woocommerce-cart table.cart td.product-name > .price { margin-block: 6px 0; }
}

@media (max-width: 480px) {
	/* Shop archive stays 2-up (50/50) on phones, with a tighter gutter. */
	.woocommerce ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
	/* Compact the cards so two fit cleanly side-by-side on a phone.
	   The photo is deliberately NOT in this list. It used to be, via
	   `li.product > figure > a`, which insets the image inside its own card and
	   leaves a cream gutter around the product — the opposite of the full-bleed
	   plinth the arch treatment is for. Only the text column gets the padding. */
	.woocommerce ul.products li.product .ct-woo-card-content { padding-inline: 12px; }
	.woocommerce ul.products li.product h2,
	.woocommerce ul.products li.product .woocommerce-loop-product__title { font-size: 0.9rem; }
	.woocommerce ul.products li.product .price { font-size: 1rem; }
	.woocommerce ul.products li.product .button,
	.woocommerce ul.products li.product .added_to_cart { font-size: 0.72rem; padding-inline: 10px; }

	.woocommerce div.product form.cart .ct-cart-actions { flex-direction: column; }
	.woocommerce div.product form.cart .ct-cart-actions .quantity { inline-size: 100%; }

	/* Cart actions stack cleanly on phones */
	.woocommerce .cart .actions .coupon { flex: 1 1 100%; }
	.woocommerce .cart .actions .coupon input.input-text { inline-size: auto; flex: 1 1 auto; min-block-size: 46px; }
	.woocommerce .cart .actions button[name="update_cart"] {
		margin-inline-start: 0;
		inline-size: 100%;
	}
	.woocommerce-cart table.cart td.product-name { font-size: 0.92rem; }
}

/* =========================================================================
   REDUCED MOTION
   ====================================================================== */
@media (prefers-reduced-motion: reduce) {
	.woocommerce ul.products li.product,
	.woocommerce ul.products li.product::after,
	.woocommerce ul.products li.product img.wp-post-image,
	.woocommerce a.button,
	.woocommerce button.button,
	.woocommerce input.button,
	.woocommerce a.button::after,
	.woocommerce button.button::after,
	.woocommerce input.button::after,
	.acc-wa-product { transition: none; }

	.woocommerce ul.products li.product:hover,
	.woocommerce ul.products li.product:hover::after,
	.woocommerce ul.products li.product:hover img.wp-post-image,
	.woocommerce a.button:hover,
	.woocommerce button.button:hover,
	.woocommerce input.button:hover,
	.woocommerce #respond input#submit:hover,
	.acc-wa-product:hover { transform: none; }
}
