/* ============================================================================
   DOMESTICA — Mock 1 "Brand Blue"
   Logo-based palette (blue #0B63A6 primary, steel-grey, red for sale only).
   Direction: cleaner, more organised, more premium; smaller / controlled product
   imagery in consistent wells. Layered on top of the parent theme.css.
   (Colour re-skin is driven by theme.json; this sheet handles structure + feel.)
   ============================================================================ */

/* ---- Design tokens: softer premium radius, quieter elevation, airier gutter ---- */
:root {
	--r-sm: 6px;
	--r-md: 12px;
	--r-lg: 18px;
	--e-1: 0 1px 2px rgba(20,24,28,.04);
	--e-2: 0 4px 14px rgba(11,99,166,.08);
	--e-3: 0 10px 30px rgba(11,99,166,.12);
	--ring: 0 0 0 3px color-mix(in srgb, var(--c-brand) 30%, transparent);
}

/* ---- Header sits clean; the red signature line runs across the very top of the page ---- */
.domestica-header { border-top: 0; }
/* De-duplicate "Store Locator" — it already lives in the top bar, so drop it from the main nav */
.domestica-nav__item:has(a[href*="store-locator"]) { display: none !important; }

/* ---- CTAs / buttons → brand blue (parent ships ink/black buttons) ---- */
.dom-btn--primary,
.woocommerce ul.products li.product .button,
.woocommerce a.button.add_to_cart_button,
.woocommerce button.button,
.woocommerce a.button,
.woocommerce #respond input#submit,
.woocommerce .single_add_to_cart_button,
.woocommerce #place_order,
.dom-buybar__btn,
.dom-hero-elevated__cta-primary .wp-block-button__link {
	background: var(--c-brand) !important;
	border-color: var(--c-brand) !important;
	color: #fff !important;
}
.dom-btn--primary:hover,
.woocommerce ul.products li.product .button:hover,
.woocommerce a.button.add_to_cart_button:hover,
.woocommerce button.button:hover,
.woocommerce a.button:hover,
.woocommerce .single_add_to_cart_button:hover,
.woocommerce #place_order:hover,
.dom-buybar__btn:hover {
	background: var(--c-brand-ink) !important;
	border-color: var(--c-brand-ink) !important;
}
/* Ghost / secondary buttons pick up a blue outline instead of ink */
.dom-btn--ghost { border-color: var(--c-brand); color: var(--c-brand); }
.dom-btn--ghost:hover { background: var(--c-brand); color: #fff; box-shadow: none; }

/* Active states / view-toggle / chips lean blue */
.dom-viewtoggle__btn.is-active { background: var(--c-brand); border-color: var(--c-brand); }
.dom-viewtoggle__btn:hover:not(.is-active) { color: var(--c-brand); border-color: var(--c-brand); }
.domestica-chiprail a:hover,
.dom-emptystate__chips a:hover { background: var(--c-brand); border-color: var(--c-brand); }

/* ---- Product cards: organised, hairline, soft radius, premium blue hover ---- */
.woocommerce ul.products li.product,
.wc-block-grid__product {
	border: 1px solid #EAEEF2;                     /* hairline — soft definition */
	border-radius: var(--r-md);
	background: #fff;
	box-shadow: 0 1px 2px rgba(20, 24, 28, .04), 0 10px 22px rgba(20, 24, 28, .05); /* gentle resting lift */
	overflow: hidden;
	transition: transform var(--t) var(--ease-out), border-color var(--t) var(--ease-out), box-shadow var(--t) var(--ease-out);
}
.woocommerce ul.products li.product:hover,
.wc-block-grid__product:hover {
	transform: translateY(-4px);
	background: #fff;
	border-color: var(--c-brand);
	box-shadow: 0 16px 36px rgba(11, 99, 166, .16);
}
/* gentle padding-zoom on the product (stays inside the well — no overflow) */
.dom-card__media img,
.wc-block-grid__product-image img { transition: padding var(--t-slow, .35s) var(--ease-out); }
.woocommerce ul.products li.product:hover .dom-card__media img,
.wc-block-grid__product:hover .wc-block-grid__product-image img { padding: 0.4rem; }

/* ---- Controlled product imagery: consistent 4:3 well, contained, padded, white ---- */
.woocommerce ul.products li.product .dom-card__media,
.woocommerce ul.products li.product > a:first-child {
	aspect-ratio: 4 / 3;
	background: #F6F8FB;                            /* soft image well — replaces the hard divider line */
	display: flex; align-items: center; justify-content: center;
	padding: 1rem 1rem 0.85rem;
	overflow: hidden;
}
.woocommerce ul.products li.product .dom-card__media img,
.woocommerce ul.products li.product img {
	max-height: 100%; width: auto; max-width: 100%; height: auto;
	aspect-ratio: auto; object-fit: contain;
	transition: transform var(--t) var(--ease-out);
}
.woocommerce ul.products li.product:hover .dom-card__media img { transform: scale(1.03); }

/* Homepage product rails (WooCommerce grid blocks) — same controlled well */
.wc-block-grid__product-image,
.wc-block-grid__product > a {
	aspect-ratio: 4 / 3;
	background: #fff;
	display: flex; align-items: center; justify-content: center;
	padding: 0.9rem; margin: 0;
}
.wc-block-grid__product-image img {
	max-height: 100%; width: auto !important; max-width: 100%; object-fit: contain;
}

/* ================= HERO — "Brand Band" (Option B) =================
   Full brand-blue ground; the dark lifestyle photo is swapped for the clean
   transparent hero product on the right. White + ghost CTAs (parent ships these). */
.dom-hero-elevated {
	background: #0B63A6;               /* one solid brand blue — no gradient/two-tone split */
	border-radius: 0;                 /* edge-to-edge full-bleed band, not a rounded card */
	overflow: hidden;
	min-height: clamp(480px, 66vh, 680px);
	box-shadow: 0 0 0 2px #0B63A6;    /* guarantee the blue covers the steel to the very edge (no sub-pixel gaps) */
}
.dom-hero-elevated__media img,
.dom-hero-elevated__scrim { display: none; }               /* drop the photo + dark scrim */
.dom-hero-elevated__media {
	/* Match the approved Option B mock: fridge at 78% band height, inset from
	   the right edge (mock: ~8% of band width), ONE soft grounding shadow.
	   The old stacked pair (.30 + .48) compounded into a dark boxy halo that
	   made the product read "dirty" against the flat blue. */
	/* Hero product = a real catalogue item: Haier HFW7918EIMP (product #330,
	   Series 7 Pro French Door, Ice & Water) — its own featured image. This
	   cutout carries more transparent padding than the old mock image, so the
	   box is sized to keep the visible fridge at the mock's ~69% of the band.
	   Served from the THEME (relative to this stylesheet), not from uploads:
	   uploads are gitignored and never reach the live server (the CSS 404'd
	   there and the hero rendered without a product). */
	background: url("../hero/HFW7918EIMP-CLOSED.png") no-repeat right 12% center;
	background-size: auto 86%;
	filter: drop-shadow(0 34px 40px rgba(3, 25, 44, .5));
}
.dom-hero-elevated__content { max-width: 540px;   /* bold hard-left, aligned to the site content column */
	margin-left: max(1.5rem, calc((100% - var(--wp--style--global--content-size, 1200px)) / 2)) !important;
	margin-right: auto !important; }
/* Feature list stacked in the blue gap beside the product */
.dom-hero-feats {
	position: absolute; z-index: 3; top: 50%; transform: translateY(-50%);
	/* Language-safe: anchor the chips just past the 540px headline (so a long
	   translation can never grow back over it) and bound the right edge left of
	   the fridge (12% inset + ~330px of visible product + breathing room), so
	   chips wrap inside this reserved gap in every language, never over the
	   product. */
	left: calc(max(1.5rem, (100% - var(--wp--style--global--content-size, 1200px)) / 2) + 540px + 2rem);
	right: calc(12% + 340px);
	list-style: none; margin: 0; padding: 0;
	display: flex; flex-direction: column; align-items: flex-start; gap: 0.6rem;
}
.dom-hero-feats li {
	display: flex; align-items: center; gap: 0.55rem;
	white-space: normal; max-width: 100%;          /* wrap long translations; never exceed the gap */
	overflow-wrap: break-word; min-width: 0;       /* even a single over-long word breaks instead of clipping */
	background: #fff; color: #14181C; font-weight: 650; font-size: 0.86rem; line-height: 1.25;
	border-radius: 18px; padding: 0.5rem 0.95rem 0.5rem 0.8rem;
	box-shadow: 0 8px 20px rgba(3, 25, 44, .2);
}
.dom-hero-feats li::before { align-self: flex-start; margin-top: 0.28em; }
.dom-hero-feats li::before {
	content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: #0B63A6;
}
.dom-hero-feats li:nth-child(1)::before { background: #159A4C; }   /* energy → green */
.dom-hero-feats li:nth-child(2)::before { background: #0B63A6; }   /* finance → blue */
.dom-hero-feats li:nth-child(3)::before { background: #14181C; }   /* delivery → ink */
.dom-hero-elevated__kicker { color: #BFE0F7; opacity: 1; }
.dom-hero-elevated__title  { font-weight: 700; letter-spacing: -0.03em; }
/* Cyrillic runs ~15% wider than Latin at the same size: calibrate the Russian
   title so it sets in 3 lines like the other languages and the band never
   grows past the English height. Type calibration, not a different layout.
   Scoped ≥782px — below that the theme's own mobile clamp applies to all
   languages equally. */
@media (min-width: 782px) {
	:lang(ru) .dom-hero-elevated__title { font-size: clamp(2.3rem, 4.4vw, 3.4rem); }
}

/* ---- Language-equal section boxes ---- */
/* Trust bar: below 1200px the grid is 2×2 (theme.css), so items are wide
   enough that no language wraps its title; reserving two sub-lines keeps every
   item the same height even if a future translation runs long. */
@media (max-width: 1199px) {
	.domestica-usp__tx span { min-height: 2.6em; } /* 2 lines at line-height 1.3 */
}
@media (max-width: 600px) {
	.domestica-usp__tx span { min-height: 3.9em; } /* 3 lines: the long EN sub needs them at phone width */
}
/* Footer: the columns used content-driven flex wrapping (flex-basis 140px +
   shrink), so longer translated labels changed how the columns packed — a
   different footer shape per language. Fix the wrap points structurally:
   2 columns per row through tablet, single column on phones, identical in
   every language. (wrap needs !important — core layout emits nowrap.) */
@media (max-width: 1199px) and (min-width: 601px) {
	footer .wp-block-columns { flex-wrap: wrap !important; }
	footer .wp-block-columns > .wp-block-column { flex: 1 1 42% !important; min-width: 0; }
}
@media (max-width: 600px) {
	footer .wp-block-columns { flex-wrap: wrap !important; }
	footer .wp-block-columns > .wp-block-column { flex: 1 1 100% !important; min-width: 0; }
}
/* Footer bottom row (copyright · legal · payment badges): space-between let it
   wrap differently per language — stack it identically for everyone below
   desktop. */
@media (max-width: 1199px) {
	footer .domestica-footer-bottom {
		flex-direction: column !important;
		align-items: flex-start !important;
		gap: 0.8rem !important;
	}
}
.dom-hero-elevated__lede   { color: #DCEAF7; opacity: 1; }
/* On the solid-blue hero the primary CTA goes white (same treatment as the
   newsletter's blue-band button) so it doesn't disappear into the background. */
.dom-hero-elevated__cta-primary .wp-block-button__link {
	background: #fff !important;
	border-color: #fff !important;
	color: #084E85 !important;
}
.dom-hero-elevated__cta-primary .wp-block-button__link:hover {
	background: #E4EFF8 !important;
	border-color: #E4EFF8 !important;
	color: #084E85 !important;
}

/* Hero → true full-bleed: no steel frame on any side.
   `main` carries a top margin (grey strip above the hero) and, at narrower
   widths, global side padding (grey L/R frame). Break the hero out of both so
   the blue box touches the header and both edges directly — pure blue box. */
/* Remove main's top margin (grey strip above the hero) — hero meets the header. */
.home main { margin-top: 0 !important; }
/* Bands touch — drop the block-gap steel strips between homepage sections
   (the hero's bottom grey edge is one of these). Clean full-bleed stack. */
.home main > * + * { margin-top: 0 !important; }
/* At <= 1200px main gains a fixed 16px side gutter (grey L/R frame around the
   hero). Break ONLY the hero out of it with a matching negative margin so the
   blue box stays edge-to-edge — without stripping the gutter the other sections'
   content relies on. Above 1200px main padding is already 0. */
@media (max-width: 1200px) {
	.home main > .dom-hero-elevated,
	.home main > .domestica-newsletter {
		margin-left: -16px !important;
		margin-right: -16px !important;
	}
}
/* Newsletter → same full-bleed treatment as the hero: touch the footer directly
   (drop the block-gap steel strip beneath it) so no grey shows around the box. */
.home footer.wp-block-template-part { margin-top: 0 !important; }

/* Legacy classic hero (not used on the homepage) keeps a simple rounded band */
.domestica-hero { border-radius: var(--r-lg); overflow: hidden; }
.domestica-hero__media img,
.wp-block-cover.domestica-hero { max-height: 460px; object-fit: cover; }

/* Tablet band (782–1199px): reserve a text column and shrink the fridge so
   they share the width — the headline/lede (any language; even the EN lede
   did) used to run over the product. Long translations now wrap inside their
   own column and never touch the image. */
@media (min-width: 782px) and (max-width: 1199px) {
	.dom-hero-elevated__content { max-width: min(540px, 56%); }
	.dom-hero-elevated__media {
		background-size: auto 52%;
		background-position: right 4% center;
	}
}
@media (max-width: 781px) {
	.dom-hero-elevated__media, .dom-hero-feats { display: none; }  /* blue band + text only on mobile */
	.dom-hero-elevated { min-height: 58vh; }
}
/* The feature chips need a wide blue gap between the headline and the product,
   which only exists on large screens — below this a long translation (e.g. the
   Russian "Класс энергоэффективности A+++") wraps and covers the product image.
   So they're a desktop-only enhancement; the product image stays down to 781px. */
@media (max-width: 1199px) {
	.dom-hero-feats { display: none; }
}
/* Chips show in EVERY language (same structure across en/el/ru): the catalog
   strings were shortened to chip length ("Энергокласс A+++", "Άτοκες δόσεις")
   and the zone's right edge stops left of the product, so a longer label wraps
   inside the gap instead of covering the fridge. */

/* ================= SECTION RHYTHM =================
   Break the long white scroll with soft Blue-Wash bands, and give every
   section title the same branded blue accent rule. */
/* ===== COLOUR SYSTEM — steel ground, white lifts off it (logo: blue + steel + red) ===== */
body, .wp-site-blocks { background: #E9EFF4; }                 /* steel page ground */
main { background: transparent; }
.wp-site-blocks::before { content: ""; display: block; height: 3px; background: #D8241C; } /* red signature top-line (logo spark) */
.home main > :nth-child(2) { background: #FFFFFF; }            /* USP — thin white trust strip */
.home main > :nth-child(4) {                                  /* New arrivals — white showcase */
	background: #FFFFFF;
	padding-block: clamp(2.5rem, 5vw, 4rem);
}
.home main > :nth-child(5) { background: var(--wp--preset--color--surface, #F4F7F9) !important; } /* Shop by brand — light surface (white tiles carry it now; matches the other sites) */
.home main > :nth-child(6) {                                  /* Offers — the one blue-wash band */
	background: #E4EFF8;
	padding-block: clamp(2.75rem, 5vw, 4.25rem);
}
.domestica-sec-head { align-items: flex-end; }
.domestica-section-title { position: relative; }
.domestica-section-title::before {
	content: ""; display: block; width: 34px; height: 3px; border-radius: 3px;
	background: var(--c-brand, #0B63A6); margin-bottom: 0.85rem;
}
.domestica-sec-head__link a:hover,
.domestica-brand-head a:hover { color: var(--c-brand-ink, #084E85); }

/* ---- Newsletter → brand-blue closing CTA (bookends the blue hero) ---- */
.domestica-newsletter {
	background: #0B63A6;               /* one solid brand blue — matches the hero, no two-tone split */
	color: #fff;
}
.domestica-newsletter h2,
.domestica-newsletter .wp-block-heading { color: #fff; }
.domestica-newsletter .dom-eyebrow { color: #BFE0F7; }
.domestica-newsletter p:not(.dom-eyebrow) { color: rgba(255, 255, 255, .82); }
.domestica-newsletter__form input {
	background: #fff; color: #14181C; border-color: transparent;
}
.domestica-newsletter__form input::placeholder { color: #6B747C; }
.domestica-newsletter__form button,
.domestica-newsletter__form .wp-block-button__link,
.domestica-newsletter__form input[type="submit"] {
	background: #fff !important; color: #084E85 !important; border-color: #fff !important;
}
.domestica-newsletter__form button:hover { background: #E4EFF8 !important; color: #084E85 !important; }

/* ---- Category tiles: keep contained imagery, add the blue accent on hover ---- */
.domestica-cat-tile { border-radius: var(--r-md); }
.domestica-cat-tile:hover { border-color: var(--c-brand); box-shadow: 0 8px 24px rgba(11,99,166,.10); }

/* ---- Section rhythm: a touch more breathing room for the premium feel ---- */
.domestica-newsletter { border-radius: var(--r-lg); }
.domestica-brand-tile { border-radius: var(--r-md); }
.domestica-brand-tile:hover { border-color: var(--c-brand); }

/* ---- Logo wall: balanced rows ----
   Eight brands in the 5-column grid left a 3-tile orphan row; 4 columns
   gives a symmetric 4×2 wall (and matches the tablet layout). */
.domestica-brand-grid { grid-template-columns: repeat(4, 1fr); }

/* ---- Logo wall: optical size normalization ----
   One shared max-height lets compact marks (FIM, Hoover) tower over wide
   wordmarks (Fisher & Paykel, Rosières). Per-mark heights even out the
   visual weight; the hover zoom moves to transform so it's uniform too. */
.domestica-brand-tile img {
	max-height: none;
	max-width: 88%;
	transition: filter var(--t-slow, .4s) var(--ease-out, ease), transform var(--t, .2s) var(--ease-out, ease);
}
.domestica-brand-tile:hover img { max-height: none; transform: scale(1.09); }
.domestica-brand-tile img[src*="haier"]         { height: 34px; }
.domestica-brand-tile img[src*="candy"]         { height: 33px; }
.domestica-brand-tile img[src*="fisher-paykel"] { height: 25px; }
.domestica-brand-tile img[src*="hoover"]        { height: 44px; }
.domestica-brand-tile img[src*="rosieres"]      { height: 29px; }
.domestica-brand-tile img[src*="elitair"]       { height: 40px; }
.domestica-brand-tile img[src*="elba"]          { height: 36px; }
.domestica-brand-tile img[src*="fim"]           { height: 44px; }

/* ---- Consistent clean sans headings everywhere (parent styles some as serif) ---- */
h1, h2, h3, h4, h5, h6,
.woocommerce-loop-product__title,
.woocommerce-products-header__title,
.product_title,
.wc-block-grid__product-title,
.domestica-sec-head h2,
.domestica-brand-head h2,
.dom-emptystate__title,
.dom-card__title-link h2 {
	font-family: var(--wp--preset--font-family--body) !important;
	font-weight: 650;
	letter-spacing: -0.015em;
}

/* ============ #2 — Editorial display type =================================
   Source Serif 4 for the hero + section titles (over the Hanken Grotesk body);
   Geist Mono for eyebrows. Replaces the flat all-sans voice with a premium,
   distinctive hierarchy — product titles, nav, buttons and body stay sans. */
.dom-hero-elevated__title,
.domestica-sec-head h2,
.domestica-brand-head h2,
.domestica-section-title {
	font-family: var(--wp--preset--font-family--heading) !important;
	font-weight: 600 !important;
	letter-spacing: -0.02em;
}
.dom-hero-elevated__title { line-height: 1.02; }
/* Section titles had silently fallen back to 16px (unregistered size slug) —
   give them real presence. */
.domestica-sec-head h2,
.domestica-brand-head h2,
.domestica-section-title {
	font-size: clamp(1.5rem, 2.2vw, 2rem) !important;
	line-height: 1.14;
	margin-bottom: 0 !important;
}
/* Brand-blue accent tick above every section title (was only on one) */
.domestica-sec-head h2::before,
.domestica-brand-head h2::before {
	content: ""; display: block; width: 34px; height: 3px; border-radius: 3px;
	background: var(--c-brand, #0B63A6); margin: 0 0 0.75rem;
}
.domestica-brand-head h2::before { margin-inline: auto; }
/* Eyebrows / kickers → Geist Mono, uppercase, tracked */
.dom-eyebrow {
	font-family: var(--wp--preset--font-family--mono) !important;
	text-transform: uppercase;
	letter-spacing: 0.14em;
}

/* ============ #3 — Tidy product cards ====================================
   The title's display was overridden to flow-root, which silently broke the
   parent's 2-line clamp (it needs -webkit-box) so titles spilled to 3 uneven
   lines. Restore the box display + reserve two lines so the price / CTA rows
   line up across every card. */
.wc-block-grid__product-title,
.woocommerce ul.products li.product .woocommerce-loop-product__title,
.dom-card__title {
	display: -webkit-box !important;
	-webkit-box-orient: vertical !important;
	-webkit-line-clamp: 2 !important;
	line-clamp: 2 !important;
	overflow: hidden !important;
	min-height: 2.6em;
}

/* ============ #4 — Generous vertical rhythm ================================
   More breathing room around each section header (premium pacing) while keeping
   the tight section bottoms so cards/boxes still fill to the next band — no
   trailing gaps reintroduced. */
.home main .domestica-sec-head,
.home main .domestica-brand-head {
	margin-top: clamp(1.5rem, 3vw, 2.75rem);
	margin-bottom: clamp(1.6rem, 2.5vw, 2.25rem);
}

/* ============ #6 — Tasteful motion (scroll reveal + count-up) ==============
   assets/motion.js adds .dom-reveal only to below-fold blocks (no load flash)
   then toggles .is-revealed as they enter view; the 1957 stats count up. The
   whole thing is bypassed under prefers-reduced-motion (JS bails + safety net
   below). */
.dom-reveal {
	opacity: 0;
	transform: translateY(20px);
	transition: opacity .7s var(--ease-out, cubic-bezier(.22, .61, .36, 1)),
	            transform .7s var(--ease-out, cubic-bezier(.22, .61, .36, 1));
	transition-delay: var(--reveal-delay, 0ms);
	will-change: opacity, transform;
}
.dom-reveal.is-revealed { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
	.dom-reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ============ #8 — Red "spark" signature ==================================
   The logo's red accent (steel + blue + red) becomes a recurring signature: a
   short red mark leading every mono eyebrow, and a red spark igniting each
   section's accent tick. Used sparingly so brand blue stays primary. */
.dom-eyebrow::before,
.dom-hero-elevated__kicker::before {
	content: "";
	display: inline-block;
	width: 18px;
	height: 2px;
	margin-right: 0.7em;
	vertical-align: middle;
	position: relative;
	top: -0.12em;
	background: var(--wp--preset--color--accent-red, #D8241C);
}
.domestica-sec-head h2::before,
.domestica-brand-head h2::before {
	background: linear-gradient(90deg, var(--wp--preset--color--accent-red, #D8241C) 0 7px, var(--c-brand, #0B63A6) 7px);
}

/* Prices stay ink; sale price + badge stay brand red (already themed). Links blue. */
a { text-underline-offset: 2px; }


/* ── Product images sized identically to the main site (this mock restyles the
   card frame/colours only, not the image scale). Appended last so it wins. ── */
.woocommerce ul.products li.product .dom-card__media,
.woocommerce ul.products li.product > a:first-child,
.wc-block-grid__product-image,
.wc-block-grid__product > a {
	aspect-ratio: 1 / 1;
	padding: 0;
	display: block;
}
.woocommerce ul.products li.product .dom-card__media img,
.woocommerce ul.products li.product img,
.wc-block-grid__product-image img {
	width: 100%;
	height: 100%;
	max-height: none;
	max-width: none;
	aspect-ratio: auto;
	object-fit: contain;
	padding: var(--wp--preset--spacing--40, 1rem);
}
/* Homepage product-rail images: size by the image's own square aspect. The block-grid
   wrapper's aspect-ratio height doesn't resolve a % child height, so height:100% above
   stretched them; override just the rails. */
.wc-block-grid__product-image img,
.wc-block-components-product-image img {
	width: 100% !important;
	max-width: 100% !important;
	height: auto !important;
	aspect-ratio: 1 / 1;
	object-fit: contain;
}
/* Homepage product rails: responsive grid so cards fill their cells at every width.
   (The theme's width:25% collapses to ~74px once the block-grid becomes CSS grid on tablet.) */
.wc-block-grid__products {
	display: grid !important;
	grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)) !important;
	gap: 1.1rem !important;
}
.wc-block-grid__product {
	width: auto !important;
	max-width: none !important;
	margin: 0 !important;
}
/* Rail buttons (Add to cart / Read more) → brand blue, matching the shop */
.wc-block-grid__product .wp-block-button__link,
.wc-block-grid__product .add_to_cart_button {
	background: var(--c-brand, #0B63A6) !important;
	border-color: var(--c-brand, #0B63A6) !important;
	color: #fff !important;
}
.wc-block-grid__product .wp-block-button__link:hover,
.wc-block-grid__product .add_to_cart_button:hover {
	background: var(--c-brand-ink, #084E85) !important;
	border-color: var(--c-brand-ink, #084E85) !important;
}
/* Rail SALE badge → brand red, matching the shop */
.wc-block-grid__product-onsale {
	background: var(--c-accent, #D8241C) !important;
	border-color: var(--c-accent, #D8241C) !important;
}
.wc-block-grid__product-onsale,
.wc-block-grid__product-onsale * { color: #fff !important; }

/* ================= SHOP BY CATEGORY — uniform compact grid (Option A) =================
   Kill the lopsided bento; equal 3×3 cards, a fixed small thumbnail zone (product
   normalised), and a tidy label + blue-arrow footer. Half the old height. */
.domestica-cat-grid {
	display: grid !important;
	grid-template-columns: repeat(3, 1fr) !important;
	grid-auto-rows: auto !important;
	gap: 16px !important;
}
.domestica-cat-tile,
.domestica-cat-tile--featured {
	grid-column: auto !important;
	grid-row: auto !important;
	display: flex !important;
	flex-direction: column !important;
	min-height: 0 !important;
	border: 1px solid #DEE6ED;
	border-radius: var(--r-md, 12px);
	background: #fff;
	overflow: hidden;
	transition: transform .16s var(--ease-out, ease), border-color .16s ease, box-shadow .16s ease;
}
.domestica-cat-tile:hover {
	border-color: var(--c-brand, #0B63A6);
	box-shadow: 0 12px 26px rgba(11, 99, 166, .14);
	transform: translateY(-3px);
}
.domestica-cat-tile__media {
	position: relative !important;
	height: 168px !important;
	min-height: 0 !important;
	flex: none !important;
	display: flex !important;
	align-items: center;
	justify-content: center;
	padding: 16px !important;
	background: #fff !important;
	border-bottom: 0 !important;
}
.domestica-cat-tile__media img {
	position: static !important;
	inset: auto !important;
	width: auto !important;
	height: auto !important;
	max-width: 82% !important;
	max-height: 132px !important;
	object-fit: contain !important;
	padding: 0 !important;
}
/* Image ENLARGES on hover. It was shrinking: this tile's padding:0 default
   inverted the parent theme's dynamic-padding zoom (0 -> 0.4rem = smaller).
   Same timing + easing (--t-slow / --ease-out); now a transform scale-up, and
   the parent's hover padding is cancelled so it no longer shrinks. */
.domestica-cat-tile__media img {
	transition: transform var(--t-slow) var(--ease-out) !important;
}
.domestica-cat-tile:hover .domestica-cat-tile__media img {
	transform: scale(1.08) !important;
	padding: 0 !important;
}
/* Remove the "View all" link from the "Shop by category" section header only
   (scoped to the section that holds the category grid; other sections keep it). */
.home main > :has(.domestica-cat-grid) .domestica-sec-head__link { display: none !important; }
.domestica-cat-tile__name {
	position: static !important;
	inset: auto !important;
	display: flex !important;
	align-items: center;
	justify-content: space-between;
	gap: .5rem;
	padding: 12px 16px !important;
	margin: 0 !important;
	border-top: 1px solid #EEF2F6;
	background: transparent !important;
	font-family: var(--wp--preset--font-family--body) !important;
	font-weight: 650 !important;
	font-size: 1rem !important;
	color: #14181C !important;
}
.domestica-cat-tile__name svg { color: var(--c-brand, #0B63A6); flex: none; }

/* ===== Heritage + newsletter → full-span bands (edge-to-edge, not rounded inset cards).
   They're constrained groups, so dropping max-width lets the band go full width while the
   is-layout-constrained inner content stays centered. Bands touch (no steel gaps). ===== */
.home .domestica-story,
.home .domestica-newsletter {
	max-width: none !important;
	margin-inline: 0 !important;
	margin-block: 0 !important;
	border-radius: 0 !important;
}
/* Band spans full width, but hold the inner content at content-width, centered,
   so the wide band reads tight/premium (like the hero) instead of sparse. */
.home .domestica-story,
.home .domestica-newsletter {
	padding-inline: max(1.5rem, calc((100% - var(--wp--style--global--content-size, 1200px)) / 2)) !important;
}

/* Newsletter → editorial split: copy left, form right. Fills the wide band with
   presence instead of a thin centered column. Stacks + centers on narrow screens. */
.home .domestica-newsletter {
	display: grid !important;
	grid-template-columns: 1.05fr minmax(340px, 460px);
	grid-template-rows: repeat(3, auto);
	column-gap: clamp(2rem, 5vw, 5rem);
	row-gap: 0.55rem;
	align-content: center;
	justify-items: start;
	text-align: left !important;
	padding-block: clamp(3.25rem, 5.5vw, 5rem) !important;
}
.home .domestica-newsletter > p,
.home .domestica-newsletter > h2 {
	grid-column: 1 !important;
	justify-self: start;
	margin-block: 0 !important;
	margin-inline: 0 !important;
	max-width: 46ch;
}
.home .domestica-newsletter > p:first-of-type { grid-row: 1 !important; }
.home .domestica-newsletter > h2 {
	grid-row: 2 !important;
	font-size: clamp(1.7rem, 2.8vw, 2.35rem);
	line-height: 1.12;
}
.home .domestica-newsletter > p:last-of-type { grid-row: 3 !important; }
.home .domestica-newsletter > form {
	grid-column: 2 !important;
	grid-row: 1 / 4 !important;
	align-self: center !important;
	margin: 0 !important;
	max-width: none !important;
	width: 100% !important;
}
.home .domestica-newsletter__form {
	flex-wrap: wrap !important;
	align-items: center;
}
.home .domestica-newsletter__form input {
	flex: 1 1 0 !important;
	min-width: 0 !important;
}
.home .domestica-newsletter__form button {
	flex: 0 0 auto !important;
}
.home .domestica-newsletter__form .domestica-newsletter__status,
.home .domestica-newsletter__form .domestica-newsletter__consent {
	flex-basis: 100% !important;
	text-align: left !important;
}
@media (max-width: 860px) {
	.home .domestica-newsletter {
		grid-template-columns: 1fr !important;
		text-align: center !important;
		row-gap: 1.4rem;
	}
	.home .domestica-newsletter > :not(form) {
		max-width: 52ch;
		margin-inline: auto !important;
	}
	.home .domestica-newsletter > form {
		grid-column: 1 !important;
		grid-row: auto !important;
		margin-inline: auto !important;
		max-width: 512px !important;
	}
	.home .domestica-newsletter__form {
		flex-wrap: wrap !important;
	}
	.home .domestica-newsletter__form .domestica-newsletter__consent {
		text-align: center !important;
	}
}

/* ============================================================================
   Homepage — content fills each section; trim trailing background.
   Sections were leaving 40–80px of empty band below the final row (oversized
   bottom padding compounded by WooCommerce grid margin-bottom). Tighten the
   vertical padding and kill the trailing inner margins so cards/rows sit close
   to where the next section begins. ========================================= */
.home main > :nth-child(3),   /* Shop by category */
.home main > :nth-child(4),   /* New arrivals     */
.home main > :nth-child(5),   /* Shop by brand    */
.home main > :nth-child(6) {  /* Offers           */
	padding-top: clamp(2rem, 3vw, 2.5rem) !important;
	padding-bottom: clamp(1.25rem, 2vw, 1.6rem) !important;
}
.home .domestica-story { padding-block: clamp(2.5rem, 3.5vw, 3rem) !important; }
.home .domestica-newsletter { padding-block: clamp(2.25rem, 3vw, 2.75rem) !important; }

/* Remove the trailing bottom margin under the last content block of each
   homepage section (inner groups + WooCommerce product grids carry it). */
.home main > :nth-child(3) > *:last-child,
.home main > :nth-child(4) > *:last-child,
.home main > :nth-child(5) > *:last-child,
.home main > :nth-child(6) > *:last-child { margin-bottom: 0 !important; }
.home main .woocommerce,
.home main .woocommerce ul.products,
.home main .wc-block-grid,
.home main .wc-block-grid__products,
.home main .wp-block-woocommerce-product-collection,
.home main .domestica-brand-grid,
.home main .domestica-cat-grid { margin-bottom: 0 !important; padding-bottom: 0 !important; }

/* ============================================================================
   Contact page — branded, professional (logo blue + steel). Scoped with :has()
   to the contact page only (the .dom-contact block appears nowhere else). ===== */

/* Eyebrow above the page title */
main:has(.dom-contact) .wp-block-post-title::before {
	content: "Get in touch";
	display: block;
	font-family: var(--wp--preset--font-family--body, inherit);
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--c-brand, #0B63A6);
	margin-bottom: 0.5rem;
}
main:has(.dom-contact) .wp-block-post-title { margin-bottom: 1rem; }

/* Lede paragraph */
main:has(.dom-contact) .wp-block-post-content > p:first-child {
	max-width: 48ch;
	color: #45505B;
	font-size: 1.1rem;
	line-height: 1.6;
	margin: 0 0 2.25rem;
}

/* Card grid — a touch more air, matched card heights */
.dom-contact {
	gap: 1.25rem !important;
	align-items: stretch !important;
	margin-bottom: 2.5rem !important;
}

/* Shared card polish */
.dom-contact__card {
	border-radius: 16px !important;
	padding: 1.9rem 1.85rem !important;
	gap: 0.55rem !important;
	transition: transform .18s var(--ease-out, ease), box-shadow .18s ease, border-color .18s ease;
}
.dom-contact__row { margin: 0 !important; }
.dom-contact__title { font-size: 1.02rem !important; margin-bottom: 0.15rem !important; }

/* Primary card → solid brand blue (matches the hero + newsletter) */
.dom-contact__card--primary {
	background: #0B63A6 !important;
	border-color: #0B63A6 !important;
	color: #fff !important;
	box-shadow: 0 14px 30px rgba(11, 99, 166, .22);
}
.dom-contact__card--primary:hover {
	transform: translateY(-4px);
	box-shadow: 0 22px 44px rgba(11, 99, 166, .30);
}

/* Secondary card → white with a brand-blue top accent */
.dom-contact__card:not(.dom-contact__card--primary) {
	background: #fff !important;
	border: 1px solid #DCE4EC !important;
	border-top: 3px solid var(--c-brand, #0B63A6) !important;
}
.dom-contact__card:not(.dom-contact__card--primary):hover {
	transform: translateY(-4px);
	border-color: var(--c-brand, #0B63A6) !important;
	box-shadow: 0 16px 34px rgba(11, 99, 166, .14);
}
.dom-contact__card:not(.dom-contact__card--primary) .dom-contact__title {
	color: var(--c-brand-ink, #084E85) !important;
}

/* Icons for address / phone / email (mask so they take the accent colour) */
.dom-contact__addr {
	position: relative;
	padding-left: 1.7rem;
	margin-top: 0.25rem;
}
.dom-contact__row {
	position: relative;
	padding-left: 1.7rem !important;
	align-items: center !important;
	gap: 0.55rem !important;
	min-height: 1.3rem;
}
.dom-contact__addr::before,
.dom-contact__row::before {
	content: "";
	position: absolute;
	left: 0;
	width: 1.1rem;
	height: 1.1rem;
	background: var(--c-brand, #0B63A6);
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
	-webkit-mask-position: center;
	mask-position: center;
	-webkit-mask-size: contain;
	mask-size: contain;
}
.dom-contact__addr::before { top: 0.2em; }
.dom-contact__row::before { top: 50%; transform: translateY(-50%); }
.dom-contact__card--primary .dom-contact__addr::before,
.dom-contact__card--primary .dom-contact__row::before { background: rgba(255, 255, 255, .92); }

.dom-contact__addr::before {
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a7 7 0 0 0-7 7c0 5.25 7 13 7 13s7-7.75 7-13a7 7 0 0 0-7-7zm0 9.5A2.5 2.5 0 1 1 12 6.5a2.5 2.5 0 0 1 0 5z'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a7 7 0 0 0-7 7c0 5.25 7 13 7 13s7-7.75 7-13a7 7 0 0 0-7-7zm0 9.5A2.5 2.5 0 1 1 12 6.5a2.5 2.5 0 0 1 0 5z'/%3E%3C/svg%3E");
}
.dom-contact__row:has(a[href^="tel:"])::before {
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.62 10.79a15.05 15.05 0 0 0 6.59 6.59l2.2-2.2a1 1 0 0 1 1.05-.24 11.36 11.36 0 0 0 3.55.57 1 1 0 0 1 1 1V20a1 1 0 0 1-1 1A17 17 0 0 1 3 4a1 1 0 0 1 1-1h3.5a1 1 0 0 1 1 1 11.36 11.36 0 0 0 .57 3.55 1 1 0 0 1-.24 1.05z'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.62 10.79a15.05 15.05 0 0 0 6.59 6.59l2.2-2.2a1 1 0 0 1 1.05-.24 11.36 11.36 0 0 0 3.55.57 1 1 0 0 1 1 1V20a1 1 0 0 1-1 1A17 17 0 0 1 3 4a1 1 0 0 1 1-1h3.5a1 1 0 0 1 1 1 11.36 11.36 0 0 0 .57 3.55 1 1 0 0 1-.24 1.05z'/%3E%3C/svg%3E");
}
.dom-contact__row:has(a[href^="mailto:"])::before {
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 4H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2zm0 4l-8 5-8-5V6l8 5 8-5z'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 4H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2zm0 4l-8 5-8-5V6l8 5 8-5z'/%3E%3C/svg%3E");
}
.dom-contact__row a { font-weight: 600; }
.dom-contact__row a:hover { text-decoration: underline; }

/* ============================================================================
   Utility pages on the Mock 1 palette — swap the parent theme's ink/black
   accent cards for brand blue, so every page uses our UI colours. ============ */

/* Store Locator: flagship card → brand blue (matches hero / newsletter / contact) */
.dom-store {
	border-radius: 14px !important;
	transition: transform .16s var(--ease-out, ease), border-color .16s ease, box-shadow .16s ease;
}
.dom-store--flagship {
	background: #0B63A6 !important;
	border-color: #0B63A6 !important;
	box-shadow: 0 12px 26px rgba(11, 99, 166, .20);
}
.dom-store:not(.dom-store--flagship):hover {
	border-color: var(--c-brand, #0B63A6) !important;
	box-shadow: 0 12px 26px rgba(11, 99, 166, .12);
	transform: translateY(-3px);
}
.dom-store--flagship:hover {
	background: #084E85 !important;
	transform: translateY(-3px);
	box-shadow: 0 18px 34px rgba(11, 99, 166, .28);
}
/* Region titles carry the brand-blue accent tick (as on the homepage sections) */
.dom-stores__region-title {
	display: flex !important;
	align-items: center;
	gap: 0.6rem;
}
.dom-stores__region-title::before {
	content: "";
	flex: none;
	width: 22px;
	height: 3px;
	border-radius: 3px;
	background: var(--c-brand, #0B63A6);
}

/* Content-page links (terms, privacy, about, …) → brand blue, brand-ink on hover */
.wp-block-post-content a { color: var(--c-brand, #0B63A6); text-underline-offset: 2px; }
.wp-block-post-content a:hover { color: var(--c-brand-ink, #084E85); }

/* Full-span the top utility bar: dark band goes edge-to-edge; the links stay
   aligned to the content column via matching inline padding. */
.domestica-util {
	max-width: none !important;
	width: 100% !important;
	margin-inline: 0 !important;
	padding-inline: max(1.25rem, calc((100% - var(--wp--style--global--content-size, 1200px)) / 2)) !important;
}

/* Language dropdown at the far right of the top utility bar (markup from the
   [dom_lang] shortcode in functions.php). Rules are scoped under .domestica-util
   on purpose: the generic `.domestica-util a { padding: 0 .55rem }` link rule
   otherwise out-specifies the menu options and collapses their padding. */
.domestica-util .dom-lang {
	position: relative;
	display: flex;
	align-items: center;
	margin-left: 1.1rem;
	padding-left: 1.1rem;
	border-left: 1px solid rgba(255, 255, 255, .18);
	line-height: 1;
}
.domestica-util .dom-lang__toggle {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0.2rem 0;
	border: 0;
	background: none;
	color: #fff;
	font: inherit;
	font-weight: 600;
	letter-spacing: 0.04em;
	line-height: 1;
	cursor: pointer;
}
.dom-lang__globe { opacity: .7; }
.dom-lang__chev { opacity: .7; transition: transform .2s var(--ease-out, ease), opacity .2s var(--ease-out, ease); }
.dom-lang__toggle:hover .dom-lang__globe,
.dom-lang__toggle:hover .dom-lang__chev { opacity: 1; }
.dom-lang__toggle[aria-expanded="true"] .dom-lang__chev { transform: rotate(180deg); }
.dom-lang__toggle:focus:not(:focus-visible) { outline: none; }
.domestica-util .dom-lang__menu {
	position: absolute;
	top: calc(100% + 0.7rem);
	right: 0;
	z-index: 120;
	min-width: 11.5rem;
	margin: 0;
	padding: 0.35rem;
	list-style: none;
	background: color-mix(in srgb, #fff 5%, var(--c-ink, #0E1116));
	border: 1px solid rgba(255, 255, 255, .12);
	border-radius: var(--r-md, 4px);
	box-shadow: var(--e-3, 0 8px 16px rgba(14, 17, 22, .3), 0 24px 48px rgba(14, 17, 22, .35));
}
.domestica-util .dom-lang__menu:not([hidden]) { animation: dom-lang-in .16s var(--ease-out, ease) both; }
@keyframes dom-lang-in {
	from { opacity: 0; transform: translateY(-4px); }
}
@media (prefers-reduced-motion: reduce) {
	.domestica-util .dom-lang__menu:not([hidden]) { animation: none; }
	.dom-lang__chev { transition: none; }
}
.domestica-util .dom-lang__menu li { margin: 0; }
.domestica-util .dom-lang__menu li + li { border-top: 1px solid rgba(255, 255, 255, .07); }
.domestica-util a.dom-lang__opt {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 0.65rem 0.75rem;
	border-radius: var(--r-sm, 2px);
	text-decoration: none;
	line-height: 1;
	transition: background .2s var(--ease-out, ease);
}
.domestica-util a.dom-lang__opt:hover { background: rgba(255, 255, 255, .07); }
.dom-lang__code {
	min-width: 1.9em;
	color: #fff;
	font-weight: 650;
	letter-spacing: 0.06em;
}
.dom-lang__name {
	color: rgba(255, 255, 255, .62);
	font-weight: 500;
	letter-spacing: 0.02em;
	transition: color .2s var(--ease-out, ease);
}
.domestica-util a.dom-lang__opt:hover .dom-lang__name { color: rgba(255, 255, 255, .9); }

/* "More info" spec-sheet link on product cards (parity with original site) */
.dom-moreinfo {
	display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
	width: 100%; margin-top: .5rem; padding: .6rem .75rem;
	font-size: .78rem; font-weight: 650; letter-spacing: .02em;
	color: var(--c-brand); background: #fff;
	border: 1px solid var(--c-line, #E3E8ED); border-radius: var(--r-sm, 6px);
	text-decoration: none;
	transition: color .2s var(--ease-out, ease), border-color .2s var(--ease-out, ease), background .2s var(--ease-out, ease);
}
.dom-moreinfo:hover { color: #fff; background: var(--c-brand); border-color: var(--c-brand); }
.dom-moreinfo__ic { flex: none; }

/* ============================================================================
   "Our Products" — category carousel (replaces the static Shop-by-category grid)
   Reuses the .domestica-cat-tile card look; adds a scroll-snap track + pro controls.
   ============================================================================ */
.domestica-cat-carousel { position: relative; }

/* header controls (top-right, next to the section title) */
.domestica-cat-carousel__ctrls { display: inline-flex; gap: 10px; align-items: center; }
.domestica-cat-carousel__nav {
	width: 46px; height: 46px; padding: 0; border-radius: 50%;
	display: inline-flex; align-items: center; justify-content: center;
	background: #fff; border: 1px solid #DEE6ED; color: var(--c-brand, #0B63A6);
	cursor: pointer;
	transition: background .2s var(--ease-out, ease), border-color .2s var(--ease-out, ease),
	            color .2s var(--ease-out, ease), box-shadow .2s var(--ease-out, ease), opacity .2s ease;
}
.domestica-cat-carousel__nav:hover:not(:disabled) {
	background: var(--c-brand, #0B63A6); border-color: var(--c-brand, #0B63A6); color: #fff;
	box-shadow: 0 10px 22px rgba(11, 99, 166, .24);
}
.domestica-cat-carousel__nav:active:not(:disabled) { transform: translateY(1px); }
.domestica-cat-carousel__nav:focus-visible { outline: none; box-shadow: var(--ring); }
.domestica-cat-carousel__nav:disabled { opacity: .32; cursor: default; }
.domestica-cat-carousel__nav svg { display: block; }

/* the scrolling track */
.domestica-cat-carousel__track {
	--vis: 4; --gap: 18px;
	display: flex; gap: var(--gap);
	overflow-x: auto; overflow-y: hidden;
	scroll-snap-type: x mandatory; scroll-behavior: smooth;
	padding: 10px 0 20px; /* room so the hover lift + shadow aren't clipped */
	scrollbar-width: none; -webkit-overflow-scrolling: touch;
	scroll-padding-left: 0;
}
.domestica-cat-carousel__track::-webkit-scrollbar { display: none; }
.domestica-cat-carousel__track:focus-visible { outline: none; box-shadow: var(--ring); border-radius: var(--r-md); }

/* each card becomes a fixed-width, snapping carousel item (card look inherited) */
.domestica-cat-carousel__track > .domestica-cat-tile,
.domestica-cat-carousel__track > .domestica-cat-tile--featured {
	/* exact fit: N cards + (N-1) gaps fill the row with no partial peek.
	   border-box so the 1px border is counted in the width (else 4 overflow the row). */
	box-sizing: border-box;
	flex: 0 0 calc((100% - (var(--vis) - 1) * var(--gap)) / var(--vis)) !important;
	scroll-snap-align: start;
}
/* larger imagery — with exactly 4 cards there's room for a taller image well */
.domestica-cat-carousel__track .domestica-cat-tile__media { height: 224px !important; padding: 20px !important; }
.domestica-cat-carousel__track .domestica-cat-tile__media img { max-height: 184px !important; max-width: 88% !important; }
@media (max-width: 1200px) { .domestica-cat-carousel__track { --vis: 3; } }
@media (max-width: 860px)  { .domestica-cat-carousel__track { --vis: 2.35; } }
@media (max-width: 560px)  { .domestica-cat-carousel__track { --vis: 1.3; --gap: 14px; } }

@media (prefers-reduced-motion: reduce) {
	.domestica-cat-carousel__track { scroll-behavior: auto; }
}

/* ----------------------------------------------------------------------------
   "New arrivals" — the same carousel treatment for a WooCommerce product rail.
   The rail's own ul (.wc-block-grid__products) becomes the scroll-snap track;
   !important is needed to beat Woo's grid defaults and the theme's mobile
   `display: grid !important` override. Shares nav/ctrls styles above. */
.domestica-prod-carousel .wc-block-grid__products {
	--vis: 4; --gap: 18px;
	display: flex !important;
	flex-wrap: nowrap !important;
	gap: var(--gap) !important;
	margin: 0 !important;
	overflow-x: auto; overflow-y: hidden;
	scroll-snap-type: x mandatory; scroll-behavior: smooth;
	padding: 10px 0 20px !important; /* room so the hover lift + shadow aren't clipped */
	scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.domestica-prod-carousel .wc-block-grid__products::-webkit-scrollbar { display: none; }
.domestica-prod-carousel .wc-block-grid__products:focus-visible { outline: none; box-shadow: var(--ring); border-radius: var(--r-md); }
.domestica-prod-carousel .wc-block-grid__product {
	box-sizing: border-box;
	flex: 0 0 calc((100% - (var(--vis) - 1) * var(--gap)) / var(--vis)) !important;
	width: auto !important; max-width: none !important;
	margin: 0 !important; float: none !important;
	scroll-snap-align: start;
}
@media (max-width: 1200px) { .domestica-prod-carousel .wc-block-grid__products { --vis: 3; } }
@media (max-width: 860px)  { .domestica-prod-carousel .wc-block-grid__products { --vis: 2.35; } }
@media (max-width: 560px)  { .domestica-prod-carousel .wc-block-grid__products { --vis: 1.3; --gap: 14px; } }
@media (prefers-reduced-motion: reduce) {
	.domestica-prod-carousel .wc-block-grid__products { scroll-behavior: auto; }
}

/* Coloured bands (Shop by brand — light surface; Offers — blue wash): the shared
   section rule above is intentionally top-heavy (little bottom padding so plain
   sections butt up to the next one). On a coloured band that reads as uneven, so
   balance it: match the bottom padding to the top and drop the section-head's
   extra top margin. */
.home main > :nth-child(3),
.home main > :nth-child(4),
.home main > :nth-child(5),
.home main > :nth-child(6) { padding-bottom: clamp(2rem, 3vw, 2.5rem) !important; }
.home main > :nth-child(3) > :first-child,
.home main > :nth-child(4) > :first-child,
.home main > :nth-child(5) > :first-child,
.home main > :nth-child(6) > :first-child,
.home main > :nth-child(3) .domestica-sec-head,
.home main > :nth-child(4) .domestica-sec-head,
.home main > :nth-child(5) .domestica-sec-head,
.home main > :nth-child(6) .domestica-sec-head { margin-top: 0 !important; }

/* ============================================================================
   LANGUAGE-SAFE PRODUCT CARD — one set of guards for every product surface, so a
   card's size/alignment never depends on translation length (en/el/ru).
   Surfaces: classic loop (li.product), homepage rails (.wc-block-grid__product),
   and the Product Collection block (li.wc-block-product — the gated dealer shop).
   Guards: (a) fixed 4:3 image zone · (b) reserved 2-line clamped title ·
   (c) equal-height flex-column card with the CTA pinned to the bottom.
   ============================================================================ */

/* (c) Equal heights for the Product Collection block: stretch the template items,
   make each card a column, and pin the CTA to the bottom so price + button rows
   line up across a row. (The homepage rails and classic loop already come out
   equal-height via their own layout, so they are intentionally left untouched.) */
.wp-block-woocommerce-product-template,
.wc-block-product-template { align-items: stretch !important; }

li.wc-block-product {
	display: flex !important;
	flex-direction: column !important;
	height: 100%;
}
li.wc-block-product .wp-block-woocommerce-product-button,
li.wc-block-product .wc-block-components-product-button { margin-top: auto !important; }

/* (a) Fixed 4:3 image zone for the Product Collection block (rails/loop already set). */
li.wc-block-product .wc-block-components-product-image,
li.wc-block-product .wp-block-woocommerce-product-image {
	aspect-ratio: 4 / 3; background: #fff; overflow: hidden;
	display: flex; align-items: center; justify-content: center;
	padding: 0.9rem; margin: 0;
}
li.wc-block-product .wc-block-components-product-image img,
li.wc-block-product .wp-block-woocommerce-product-image img {
	max-height: 100% !important; width: auto !important; max-width: 100% !important;
	height: auto !important; object-fit: contain !important;
}

/* (b) Reserved, clamped 2-line title for the Product Collection block (Post Title). */
li.wc-block-product .wp-block-post-title,
.wc-block-product-template .wp-block-post-title,
li.wc-block-product .wc-block-components-product-name {
	display: -webkit-box !important;
	-webkit-box-orient: vertical !important;
	-webkit-line-clamp: 2 !important; line-clamp: 2 !important;
	overflow: hidden !important;
	min-height: 2.6em;
}
