/* =============================================================================
   ElectricChic — design system
   =============================================================================

   A lit studio on a warm-neutral ground. The products are Cortez's own studio
   cut-outs, background removed and trimmed to their opaque bounds, so the
   bottom edge of every file is the ground line. That single fact is what lets
   a contact shadow sit at the wheels instead of floating below them, and it is
   why the shadow system below keys off `bottom` rather than a fixed offset.

   WHY LIGHT, NOT DARK

   Not taste. Cortez's machines are overwhelmingly black — XMAX, SHARK, SPOT,
   MOVIX, Supra. A black product on a dark ground disappears; on a light ground
   it reads as a crisp silhouette. The palette follows the merchandise.

   HEBREW TYPOGRAPHY

   The previous version applied Latin display habits to Hebrew: line-height
   1.08 and letter-spacing -0.025em on headings. At display sizes that clips
   the descenders of ק ן ך ף ץ against the line below, and negative tracking
   collapses ו / ז / י into each other. Hebrew headings here sit at 1.02
   minimum with zero tracking; negative tracking is reserved for the Latin
   model names, which are 22 of the 24 products.
   ============================================================================= */

/* ── Fonts ─────────────────────────────────────────────────────────────────
   Declared in theme.json, not here.

   A block theme emits @font-face from theme.json into the global-styles sheet,
   which is what makes the families selectable in the editor. Declaring them in
   both places means the editor shows one set and the front end uses another,
   and they drift the first time a subset changes.

     Heebo   — Hebrew and Latin subsets, self-hosted
     Archivo — Latin only, for model names

   Archivo exists because 22 of the 24 products are named in Latin
   (SHARK PRO M5, XMAX 48) and Heebo's Latin is Roboto-derived — the most
   generic sans there is — which was setting every product H1 on the site.
   unicode-range hands Hebrew back to Heebo automatically.

   Self-hosted rather than loaded from Google: a request to a third party on
   every page view is both a performance cost and a privacy one. */

/* The light position, animated. Declaring it as a typed custom property is
   what makes it interpolate rather than snap. */
@property --ec-lx {
	syntax: '<percentage>';
	inherits: true;
	initial-value: 50%;
}

/* ── Tokens ──────────────────────────────────────────────────────────────── */

:root {
	/* Ground. Warm neutral rather than pure white — a cut-out on #fff has no
	   air around it, and the shadow has nothing to fall on. */
	--ec-paper: #0a0a0c;
	--ec-lift: #141418;
	--ec-sink: #050506;

	--ec-ink: #f4f3ef;
	--ec-soft: #a7a5ad;
	--ec-hair: #26262c;

	/* The accent. One colour, used for the primary action and the light
	   that falls on the machines — never for a status. */
	--ec-lime: #ccff00;
	--ec-lime-dim: #9fcc00;

	/* Availability. A separate scale on purpose, and never the brand colour:
	   a page where "in stock" and "buy now" share a colour reads as though
	   everything is on offer. Each badge carries text as well as colour.
	   Brightened for the dark ground; every one passes 4.5:1 on it. */
	--ec-stock: #62d98a;
	--ec-supp: #7fb4ff;
	--ec-back: #f2c14e;
	--ec-out: #ff7b70;

	--ec-ease: cubic-bezier(0.16, 1, 0.3, 1);

	/* Type scale. Fluid, and capped so a very wide monitor does not produce a
	   headline nobody can read in one fixation. */
	--ec-fs-xs: 0.78rem;
	--ec-fs-sm: 0.875rem;
	--ec-fs-base: 1.0625rem;
	--ec-fs-lg: 1.25rem;
	--ec-fs-xl: clamp(1.35rem, 2.2vw, 1.7rem);
	--ec-fs-2xl: clamp(1.7rem, 3.4vw, 2.75rem);
	--ec-fs-3xl: clamp(1.9rem, 4.6vw, 3.6rem);
	--ec-fs-4xl: clamp(2.4rem, 7.2vw, 5.6rem);

	--ec-space-2: 0.5rem;
	--ec-space-3: 0.75rem;
	--ec-space-4: 1rem;
	--ec-space-6: 1.5rem;
	--ec-space-8: 2rem;
	--ec-space-12: 3rem;
	--ec-space-16: 4rem;
	--ec-space-24: 6rem;

	--ec-container: 1560px;
}

/* ── Baseline ────────────────────────────────────────────────────────────── */

html {
	/* `direction` must sit on the root, not on body: a position:fixed element
	   is laid out against the initial containing block, which takes direction
	   from <html>. With it on body only, `inset-inline: 0` resolved against
	   LTR and pushed fixed bars off the client box. */
	direction: rtl;

	/* No overflow-x: clip here. Measured: with it, the demo banner
	   scrolled away with the page (position:sticky resolves against the
	   nearest scroll container, and a root with any overflow value other
	   than visible is one). Horizontal overflow is prevented at its sources
	   — the hero and the product stage clip themselves — and the audit
	   script asserts scrollWidth equals clientWidth on every page. */

	/* Not `smooth`. It animates a scroll on every in-page navigation in
	   Chrome and does nothing in Safari, so scroll position is driven
	   explicitly instead. */
	scroll-behavior: auto;

	color-scheme: dark;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

body {
	background: var(--ec-paper);
	color: var(--ec-ink);
	font-family: 'Heebo', system-ui, -apple-system, 'Segoe UI', sans-serif;
	font-size: var(--ec-fs-base);
	line-height: 1.62;
	/* No overflow here either, on purpose. `overflow-x: clip` on body made
	   body a scroll container of its own, and position:sticky resolves
	   against the nearest scroll container — so the header and the demo
	   banner stuck to a box that scrolled away with the page. Measured: at
	   scrollY 600 the header sat at -556px. Horizontal overflow is prevented
	   at its sources (the hero and the product stage clip themselves) and
	   the audit script asserts scrollWidth equals clientWidth. */
}

img {
	display: block;
	max-width: 100%;
	height: auto;
}

/* Focus must stay visible — WCAG 2.2 AA, and the first thing themes remove. */
:focus-visible {
	outline: 2px solid var(--ec-ink);
	outline-offset: 3px;
	border-radius: 2px;
}

/* Hebrew headings: zero tracking, and never tighter than 1.02. */
h1, h2, h3, h4,
.wp-block-post-title,
.wc-block-components-product-title,
.product_title {
	color: var(--ec-ink);
	font-weight: 900;
	line-height: 1.0;
	letter-spacing: 0;
	text-wrap: balance;
}

h3, h4 {
	font-weight: 500;
	line-height: 1.18;
}

/* Latin model names. Heebo's Latin is Roboto-derived — the most generic sans
   there is — and it was setting every product H1 on the site. */
.wc-block-components-product-title,
.wc-block-components-product-title a,
.product_title,
.ec-model-name {
	font-family: 'Archivo', 'Heebo', system-ui, sans-serif;
	font-weight: 600;
	letter-spacing: -0.018em;
}

/* Hebrew has no case, so tracking it out only tears the word apart. Eyebrows
   are tracked in Latin only. */
.ec-eyebrow {
	font-size: var(--ec-fs-xs);
	font-weight: 500;
	color: var(--ec-soft);
	margin: 0;
}

.ec-eyebrow--lat {
	letter-spacing: 0.16em;
}

/* Heebo has no italic; the browser synthesises an oblique that mangles
   Hebrew letterforms. */
i, em, .wp-block-post-content em {
	font-style: normal;
}

::selection {
	background-color: var(--ec-ink);
	color: var(--ec-paper);
}

/* ── The lit stage ─────────────────────────────────────────────────────────

   Three layers under every product, because a single uniform drop-shadow
   produces a halo, not a shadow — the object reads as floating. Verified
   side by side before it was adopted.

     · form shadow    wide, soft, low opacity
     · contact shadow narrow and dark, right at the wheels
     · edge definition a 1px drop-shadow so the silhouette does not dissolve

   The contact shadow swings opposite to the light, so the two stay
   physically consistent as --ec-lx moves. */

.ec-stage {
	position: relative;
	--ec-sx: 1;
}

.ec-stage > img,
.wc-block-components-product-image img,
.woocommerce-product-gallery__image img {
	position: relative;
	z-index: 3;
	filter: drop-shadow(calc((50% - var(--ec-lx)) * 0.05) 2px 1px rgba(28, 25, 20, 0.34));
}

.ec-stage::before {
	content: "";
	position: absolute;
	z-index: 1;
	left: -9%;
	right: -9%;
	bottom: -3.4%;
	height: 9%;
	background: radial-gradient(50% 50% at 50% 50%, rgba(40, 36, 29, 0.30) 0%, transparent 70%);
	filter: blur(24px);
}

.ec-stage::after {
	content: "";
	position: absolute;
	z-index: 2;
	left: 15%;
	right: 15%;
	bottom: -1.1%;
	height: 3.2%;
	background: radial-gradient(50% 50% at 50% 50%, rgba(24, 21, 16, 0.56) 0%, transparent 68%);
	filter: blur(6px);
	transform: translateX(calc((50% - var(--ec-lx)) * 0.1)) scaleX(var(--ec-sx));
}

/* ── Header ──────────────────────────────────────────────────────────────── */

.wp-block-site-title a {
	font-family: 'Archivo', 'Heebo', sans-serif;
	font-size: var(--ec-fs-lg);
	font-weight: 500;
	color: var(--ec-ink);
	letter-spacing: 0.09em;
	text-decoration: none;
}

.wp-block-navigation a {
	font-size: var(--ec-fs-sm);
	color: var(--ec-soft);
	text-decoration: none;
	transition: color 0.2s;
	/* 44px minimum touch target, met with padding rather than a fixed height
	   so the label still centres when it wraps. */
	padding-block: 0.7rem;
}

.wp-block-navigation a:hover,
.wp-block-navigation .current-menu-item a {
	color: var(--ec-ink);
}

/* ── Buttons ─────────────────────────────────────────────────────────────── */

.wp-block-button__link,
.wc-block-components-button,
.woocommerce a.button,
.woocommerce button.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding-inline: var(--ec-space-8);
	border-radius: 999px;
	background: var(--ec-ink);
	color: var(--ec-paper);
	font-family: 'Heebo', sans-serif;
	font-size: var(--ec-fs-sm);
	font-weight: 500;
	border: 1px solid var(--ec-ink);
	transition: background 0.25s, color 0.25s, transform 0.2s;
}

.wp-block-button__link:hover,
.wc-block-components-button:hover,
.woocommerce a.button:hover {
	background: #000;
	color: var(--ec-paper);
}

.wp-block-button__link:active {
	transform: scale(0.97);
}

.is-style-outline .wp-block-button__link,
.wp-block-button.is-style-outline > .wp-block-button__link {
	background: transparent;
	color: var(--ec-ink);
}

/* ── Product cards, Product Collection block ─────────────────────────────────

   EVERYTHING THAT STYLES A CARD IS SCOPED TO .ec-grid. THIS IS NOT DECORATION.

   A Product Collection block is used in more than one shape on this site: a
   catalogue grid, and a single featured product staged in the hero. The rules
   below describe the grid shape only, but they were written against the bare
   WooCommerce class names — so they reached every collection on the site.

   That is not a hypothetical. The homepage ran an editorial section of
   full-width product rows, and the catalogue's `grid-template-columns:
   repeat(3, ...)` matched it at identical specificity from further down this
   file and won. Measured at 1600px: three 420px columns where the section
   asked for one full-width row, model names broken onto three lines, and a
   129px bicycle floating in a 410px box.

   The instinct is to add a reset for the other context. There already was one,
   and it lost, because it reset two properties out of six. A specificity war
   against a third party's class names is one you lose again next month.

   So: an unclassed collection gets WooCommerce's own layout, and a collection
   that wants the card treatment asks for it by name. A section that renders
   unstyled is a visible mistake; a section that silently inherits another
   section's layout is the one that shipped. */

.ec-grid .wp-block-woocommerce-product-collection,
.ec-grid.wp-block-woocommerce-product-collection,
.ec-grid .wc-block-product-template {
	/* Wider than WooCommerce's 1.25em. Note that its column arithmetic —
	   calc(33.333% - .83333em) inside an auto-fill — assumes its own gap, so
	   the explicit column declaration further down is not optional. */
	gap: clamp(1rem, 3vw, 2.75rem);
}

.ec-grid .wc-block-product-template,
.ec-grid li.wc-block-product {
	background: transparent;
	text-align: start;
}

/* The card image is the composition, not a thumbnail in a box. */
.wc-block-components-product-image {
	position: relative;
	margin-bottom: var(--ec-space-4);
}

.ec-grid li.wc-block-product:hover .wc-block-components-product-image {
	transform: translateY(-6px);
}

.wc-block-components-product-image img {
	background: transparent;

	/*
	 * !important because WooCommerce's product-image block writes
	 * style="object-fit:cover" onto every product image inline, and an inline
	 * style cannot be beaten any other way.
	 *
	 * It matters more here than it would on a normal shop. These are cut-outs
	 * — background removed, then trimmed so the bottom edge of the file is the
	 * wheels — and `cover` crops whatever does not fit the box. The first
	 * version of this template passed width:100% to the block, which made the
	 * box a different shape from the machine, and the hero product lost its
	 * rear wheel. Nothing errored; it simply looked like a bad photograph.
	 *
	 * Without this the crop is one uniform-height card grid away from coming
	 * back, silently, across the entire catalogue.
	 */
	object-fit: contain !important;
}

/* Titles are headings, not links. Inheriting a link colour turns an archive
   into a wall of coloured text and destroys the hierarchy. */
.wc-block-components-product-title,
.wc-block-components-product-title a {
	color: var(--ec-ink) !important;
	font-size: clamp(0.95rem, 1.6vw, 1.2rem);
	line-height: 1.25;
	margin-block: 0 var(--ec-space-2);
	text-decoration: none;
}

.wc-block-components-product-price,
.woocommerce div.product p.price,
.woocommerce ul.products li.product .price {
	color: var(--ec-ink);
	font-size: clamp(1rem, 1.7vw, 1.25rem);
	font-weight: 400;
	font-variant-numeric: tabular-nums;
}

/* Two sibling price spans reverse under RTL, so a struck original and a sale
   price render in the wrong order. Six products carry a sale price. */
.wc-block-components-product-price,
.woocommerce div.product p.price {
	direction: ltr;
	text-align: start;
}

.wc-block-components-product-price del,
.woocommerce del {
	color: var(--ec-soft);
	font-size: 0.7em;
	margin-inline-start: 0.5rem;
	opacity: 1;
}

.wc-block-components-product-sale-badge {
	background: var(--ec-ink);
	color: var(--ec-paper);
	border: 0;
	border-radius: 999px;
	font-size: var(--ec-fs-xs);
	font-weight: 600;
	padding: 0.25rem 0.7rem;
}

/* ── Availability ─────────────────────────────────────────────────────────

   These class names come from ElectricChic\Core\Integration\AvailabilityDisplay
   and are hyphenated (`ec-avail--in-stock-store`). Presented as information
   with a rule and a coloured mark — not a marketing pill. This is the shop's
   competitive difference, not a footnote. */

.ec-avail {
	display: flex;
	align-items: baseline;
	gap: 0.5rem;
	margin: var(--ec-space-3) 0 0;
	font-size: var(--ec-fs-sm);
	font-weight: 600;
	line-height: 1.4;
	flex-wrap: wrap;
}

.ec-avail__dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: currentColor;
	flex: none;
	transform: translateY(-1px);
}

.ec-avail--in-stock-store { color: var(--ec-stock); }
.ec-avail--supplier-available,
.ec-avail--special-order { color: var(--ec-supp); }
.ec-avail--backorder,
.ec-avail--confirmation-required { color: var(--ec-back); }
.ec-avail--discontinued,
.ec-avail--temp-out-of-stock,
.ec-avail--enquiry-only,
.ec-avail--out-of-stock { color: var(--ec-out); }

/* The sentence that makes a special order honest: the one telling a customer
   nobody has confirmed a unit exists yet. */
.ec-avail__notice {
	margin: var(--ec-space-3) 0 0;
	padding: 0.75rem 0.875rem;
	background: var(--ec-lift);
	border-inline-start: 2px solid currentColor;
	border-radius: 0 4px 4px 0;
	max-inline-size: 46ch;
	color: var(--ec-soft);
	font-size: var(--ec-fs-sm);
	font-weight: 400;
	line-height: 1.55;
}

/* ── Product page ────────────────────────────────────────────────────────── */

.woocommerce div.product .product_title {
	font-size: var(--ec-fs-3xl);
	line-height: 1.04;
}

.woocommerce div.product .woocommerce-product-gallery {
	position: relative;
	background: radial-gradient(120% 92% at var(--ec-lx) 4%,
		var(--ec-lift) 0%, var(--ec-paper) 52%, var(--ec-sink) 100%);
	border-radius: 3px;
	padding: clamp(1.25rem, 4vw, 3.75rem) clamp(1rem, 3vw, 2.75rem);
}

/* Each cell takes direction from its own first strong character: 48V/15.6A
   goes LTR, דיסק מכני goes RTL, in one column, with no per-cell logic. That is
   what keeps `48V/15.6A` from scrambling its slash and digits in an RTL
   paragraph, and it is not optional.

   The alignment, though, must NOT follow the same rule. `text-align: start`
   resolves against each cell's content-derived direction, so a Latin-first
   value takes "start" to mean the left edge — and measured on a real spec
   table, `36V/10.4A` sat 752px away from the column its neighbours shared.
   The label said one thing and the value was across the page.

   `right` is physical on purpose. This table is Hebrew and right-to-left by
   construction; a logical value here would go on resolving per-cell and
   reintroduce exactly the split it is meant to fix. */
.woocommerce table.shop_attributes td,
.ec-spec-table td {
	unicode-bidi: plaintext;
	text-align: right;
	font-variant-numeric: tabular-nums;
}

.woocommerce table.shop_attributes,
.ec-spec-table {
	width: 100%;
	border-collapse: collapse;
	font-size: var(--ec-fs-sm);
}

.woocommerce table.shop_attributes th,
.woocommerce table.shop_attributes td,
.ec-spec-table th,
.ec-spec-table td {
	/* Alignment is set per cell type below, not here. This rule used to carry
	   `text-align: start` and, sitting later in the file, quietly reinstated
	   it on the value cells — undoing the fix above without changing a line
	   of it. */
	padding: 0.8rem 0;
	border-top: 1px solid var(--ec-hair);
	border-bottom: 0;
}

/* Labels are Hebrew throughout, so logical `start` is right for them and stays
   correct if the table is ever used in a left-to-right context. */
.woocommerce table.shop_attributes th,
.ec-spec-table th {
	text-align: start;
	font-weight: 400;
	color: var(--ec-soft);
	width: 38%;
}

/* ── Forms ───────────────────────────────────────────────────────────────── */

.woocommerce input[type="text"],
.woocommerce input[type="email"],
.woocommerce input[type="tel"],
.woocommerce input[type="number"],
.woocommerce input[type="password"],
.woocommerce textarea,
.woocommerce select,
.wc-block-components-text-input input {
	/* Under 16px, iOS Safari zooms on focus and stays zoomed. */
	font-size: 16px;
	min-height: 48px;
	padding: 0.7rem 0.9rem;
	border: 1px solid var(--ec-hair);
	border-radius: 4px;
	background: var(--ec-lift);
	color: var(--ec-ink);
	font-family: 'Heebo', sans-serif;
}

/* ── Notices ─────────────────────────────────────────────────────────────── */

.woocommerce-message,
.woocommerce-info,
.woocommerce-error,
.wc-block-components-notice-banner {
	border-radius: 4px;
	border-inline-start: 3px solid var(--ec-ink);
	background: var(--ec-lift);
	color: var(--ec-ink);
	font-size: var(--ec-fs-sm);
}

.woocommerce-error,
.wc-block-components-notice-banner.is-error {
	border-inline-start-color: var(--ec-out);
}

/* ── Sections and rhythm ─────────────────────────────────────────────────── */

.ec-section {
	max-width: var(--ec-container);
	margin-inline: auto;
	padding: clamp(3rem, 8vw, 7.5rem) clamp(1rem, 4vw, 3.375rem);
}

.ec-section__head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: var(--ec-space-6);
	margin-bottom: clamp(1.25rem, 3.5vw, 3rem);
	flex-wrap: wrap;
}

.ec-section__note {
	color: var(--ec-soft);
	font-size: var(--ec-fs-sm);
	max-width: 40ch;
	margin: 0;
}

.ec-rule {
	border: 0;
	border-top: 1px solid var(--ec-hair);
	margin: 0;
}

/* ── Motion ──────────────────────────────────────────────────────────────

   THE RULES, so the next effect added here keeps the page feeling smooth
   rather than busy:

     · Hover and press never change layout. A transform, an opacity, a
       shadow — never a size, a margin, a font weight.
     · Response to input is short and firm: ~200ms for hover, ~120ms for a
       press, one strong ease-out (--ec-ease), no bounce.
     · Entrances may be longer (500–700ms) because nobody is waiting on them,
       and they are staggered so a screen assembles rather than pops.
     · Everything respects prefers-reduced-motion, including the page
       transition itself.
     · Nothing is hidden by the stylesheet. .ec-reveal is added by the
       script, after it has proved it can reveal, so a blocked script never
       leaves a blank page. */

/* Scroll reveal — index-staggered. --i is set by the script and capped there
   at 8, so a long grid does not make its last row wait. */
.ec-reveal {
	opacity: 0;
	transform: translateY(16px);
	transition:
		opacity 0.6s var(--ec-ease),
		transform 0.6s var(--ec-ease);
	transition-delay: calc(var(--i, 0) * 60ms);
}

.ec-reveal.is-in {
	opacity: 1;
	transform: none;
}

/* The department card declares its own hover transition further down this
   file at the same specificity, and later wins — so on these the reveal
   transition was being replaced wholesale and the card popped instead of
   fading. Measured: transition-property on a.ec-dept.ec-reveal had no
   opacity in it. Two classes beat one regardless of order, and the hover
   fade is carried along so it keeps working. */
.ec-dept.ec-reveal {
	transition:
		background-color 0.25s var(--ec-ease),
		opacity 0.6s var(--ec-ease),
		transform 0.6s var(--ec-ease);
	transition-delay: 0s, calc(var(--i, 0) * 60ms), calc(var(--i, 0) * 60ms);
}

/* Hero entrance — the one place the page animates without being asked.
   The product settles into the frame; the copy follows it in, line by line.
   Keyframes rather than the reveal class because this runs on load, not on
   scroll, and must not depend on the script. */
@keyframes ec-settle {
	from { opacity: 0; transform: translateY(14px) scale(0.985); }
	to   { opacity: 1; transform: none; }
}

@keyframes ec-rise {
	from { opacity: 0; transform: translateY(10px); }
	to   { opacity: 1; transform: none; }
}

.ec-hero__stage {
	animation: ec-settle 0.7s var(--ec-ease) both;
}

.ec-hero__copy > * {
	animation: ec-rise 0.5s var(--ec-ease) both;
}

.ec-hero__copy > :nth-child(1) { animation-delay: 80ms; }
.ec-hero__copy > :nth-child(2) { animation-delay: 150ms; }
.ec-hero__copy > :nth-child(3) { animation-delay: 220ms; }
.ec-hero__copy > :nth-child(4) { animation-delay: 290ms; }

/* Hero parallax — the product drifts up slightly slower than the page as
   the hero scrolls away. Scroll-driven, so it costs nothing per frame and
   needs no script. Browsers without animation-timeline ignore the block
   and the product simply scrolls with the page. */
@supports (animation-timeline: scroll()) {
	@keyframes ec-drift {
		to { transform: translateY(-36px); }
	}

	.ec-hero__stage .wc-block-components-product-image {
		animation: ec-drift linear both;
		animation-timeline: scroll(root);
		animation-range: 0 60vh;
	}
}

/* Press feedback on every button, not only core's. */
.wp-block-button__link,
.wc-block-components-button,
.woocommerce a.button,
.woocommerce button.button {
	transition:
		background-color 0.2s var(--ec-ease),
		color 0.2s var(--ec-ease),
		transform 0.12s var(--ec-ease),
		box-shadow 0.2s var(--ec-ease);
}

.wp-block-button__link:active,
.wc-block-components-button:active,
.woocommerce a.button:active,
.woocommerce button.button:active {
	transform: scale(0.97);
}

/* Card hover — the lift already exists; the contact shadow deepens with it,
   so the machine reads as lifted off the surface rather than nudged up. The
   shadow is an opacity change on a pseudo-element: no layout, no repaint of
   the image. */
.ec-grid li.wc-block-product .wc-block-components-product-image {
	transition: transform 0.2s var(--ec-ease);
}

.ec-grid li.wc-block-product .wc-block-components-product-image::after {
	content: "";
	position: absolute;
	inset: auto 12% -2% 12%;
	height: 4%;
	border-radius: 50%;
	background: radial-gradient(50% 50% at 50% 50%, rgba(24, 21, 16, 0.42) 0%, transparent 70%);
	filter: blur(8px);
	opacity: 0;
	transition: opacity 0.2s var(--ec-ease);
	pointer-events: none;
}

.ec-grid li.wc-block-product:hover .wc-block-components-product-image::after {
	opacity: 1;
}

/* WooCommerce's gallery starts at opacity 0 inline and fades itself in with
   its own script. With a shared-element transition in play that is a second
   fade on top of the morph, and worse: the new-page snapshot can be taken
   while the gallery is still invisible, so the product flies into nothing.
   The inline style can only be beaten with !important. */
.woocommerce-product-gallery {
	opacity: 1 !important;
	transition: none !important;
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		animation-duration: 0.001ms !important;
		animation-delay: 0ms !important;
		transition-duration: 0.001ms !important;
		transition-delay: 0ms !important;
	}

	.ec-reveal {
		opacity: 1;
		transform: none;
	}

	.ec-grid li.wc-block-product:hover .wc-block-components-product-image {
		transform: none;
	}

	/* Duration means nothing to a scroll-driven animation — its progress is
	   the scroll position, not time — so the parallax has to go entirely. */
	.ec-hero__stage .wc-block-components-product-image {
		animation: none !important;
	}
}

/* ── Footer ──────────────────────────────────────────────────────────────── */

.wp-block-site-footer,
.ec-foot {
	color: var(--ec-soft);
	font-size: var(--ec-fs-sm);
	border-top: 1px solid var(--ec-hair);
}

/* ── Cross-document view transitions ──────────────────────────────────────

   The prototype faked navigation with a hash router so it could animate
   between screens. On the real site the navigations are real, and the rule
   below gets the same effect without a router: the browser animates between
   two genuine page loads. Where it is unsupported, a navigation is simply a
   navigation — the correct fallback, and it needs no code.

   Two layers:

     root        the whole page crossfades, 260ms.
     ec-product  the ONE image that carries across — the card the visitor
                 clicked, morphing into the product page's main image, and
                 back again on return. The name is assigned just in time by
                 ec-motion.js and removed straight after; see there for why
                 it cannot live in this stylesheet.

   `plus-lighter` is the default blend for the old/new pair and it destroys a
   transparent image, which is every product image we own. */

@view-transition {
	navigation: auto;
}

::view-transition-old(root),
::view-transition-new(root) {
	mix-blend-mode: normal;
	animation-duration: 260ms;
	animation-timing-function: var(--ec-ease);
}

/* The flying product. Longer than the crossfade so the eye can follow it,
   and it sits above the crossfading page. */
::view-transition-group(ec-product) {
	animation-duration: 420ms;
	animation-timing-function: var(--ec-ease);
	z-index: 10;
}

::view-transition-old(ec-product),
::view-transition-new(ec-product) {
	mix-blend-mode: normal;
	/* Both snapshots scale to the group's box, so the image never stretches
	   mid-flight between a landscape card and a portrait gallery. */
	height: 100%;
	width: 100%;
	object-fit: contain;
	animation: none;
}

/* Only one side present — leaving a product page for one that does not
   show that product, or a list page that revealed before the card was
   parsed. With no partner to morph into, the lone snapshot would sit sharp
   above the crossfade and then vanish; give it back a fade. */
@keyframes ec-vt-out { to { opacity: 0; } }
@keyframes ec-vt-in  { from { opacity: 0; } }

::view-transition-old(ec-product):only-child {
	animation: ec-vt-out 260ms var(--ec-ease) both;
}

::view-transition-new(ec-product):only-child {
	animation: ec-vt-in 260ms var(--ec-ease) both;
}

@media (prefers-reduced-motion: reduce) {
	@view-transition {
		navigation: none;
	}
}

/* ── Hero ─────────────────────────────────────────────────────────────────

   The earlier drafts read as "banal" for a measurable reason, not a matter of
   taste: the product occupied about 40% of the viewport width where the sites
   we were being compared to run 90–100%. Scale was the finding. The hero
   product here is sized against the viewport, not against a column. */

.ec-hero {
	position: relative;
	display: grid;
	align-items: center;
	min-height: clamp(560px, 92svh, 900px);
	padding: clamp(3rem, 7vh, 5.5rem) clamp(1rem, 4vw, 3.375rem) clamp(2rem, 6vh, 4rem);
	background: radial-gradient(120% 100% at var(--ec-lx) 0%,
		var(--ec-lift) 0%, var(--ec-paper) 55%, var(--ec-sink) 100%);
	overflow: clip;
}

.ec-hero__wrap {
	display: grid;
	grid-template-columns: 1fr;
	align-items: center;
	width: 100%;
	max-width: var(--ec-container);
	margin-inline: auto;
}

/* Copy and product share one grid cell and are pulled to opposite sides, so
   the machine can run behind the text instead of beside it. A two-column grid
   would put a gutter between them and lose exactly the overlap that makes the
   composition read as a photograph rather than a layout. */
.ec-hero__stage,
.ec-hero__copy {
	grid-area: 1 / 1;
}

.ec-hero__stage {
	justify-self: start;
	width: clamp(280px, 48vw, 680px);
	z-index: 1;
}

/* The hero's height is set by the product, not by the copy — these are
   portrait cut-outs, and at 48vw wide the tallest of them ran 826px, which
   pushed the primary button below the fold on a 1280x860 desktop. Capping the
   image against the viewport is what keeps the call to action visible; width
   alone cannot, because the aspect ratio varies per machine.

   Left as a cap rather than a fixed height: a wide, low scooter should still
   be allowed to be short. */
.ec-hero__stage img {
	max-height: min(58svh, 620px);
	width: auto;
	margin-inline: auto;
	object-fit: contain;
}

.ec-hero__copy {
	justify-self: end;
	z-index: 2;
	text-align: start;

	/* Wider than a reading measure on purpose. A display headline and a
	   paragraph of body copy do not share a measure: at 90px, 52ch is about
	   440px, which broke a deliberate three-line headline onto a fourth line
	   and pushed the primary button below the fold on a 1280x860 desktop.
	   The lead paragraph keeps its own 34ch below. */
	max-width: min(56vw, 760px);
}

.ec-hero__title {
	font-size: var(--ec-fs-4xl);
	margin: 0.35rem 0 0;
}

/* Heebo has no italic, so <em> is re-purposed as a weight shift. Left as an
   oblique the browser synthesises one and mangles the Hebrew letterforms. */
.ec-hero__title em {
	font-style: normal;
	font-weight: 500;
}

.ec-hero__lead {
	margin: clamp(0.875rem, 2.4vh, 1.5rem) 0 0;
	max-width: 34ch;
	color: var(--ec-soft);
	font-size: clamp(1rem, 1.5vw, 1.2rem);
}

.ec-hero__acts {
	display: flex;
	gap: 0.75rem;
	flex-wrap: wrap;
	margin-top: clamp(1.25rem, 3vh, 2rem);
}

@media (max-width: 860px) {
	.ec-hero {
		min-height: auto;
	}

	.ec-hero__wrap {
		grid-template-rows: auto auto;
	}

	.ec-hero__copy {
		grid-area: 1 / 1;
		justify-self: stretch;
		max-width: none;
	}

	.ec-hero__stage {
		grid-area: 2 / 1;
		justify-self: center;
		width: min(78vw, 420px);
		margin-top: var(--ec-space-6);
	}
}

/* ── The availability legend ──────────────────────────────────────────────

   Four coloured marks with their meanings spelled out. This is the one thing
   the shop does that its competitors do not, so it is stated on the homepage
   rather than discovered on a product page. Colour is never the only carrier —
   every line is also a sentence. */

.ec-knows {
	background: var(--ec-ink);
	color: var(--ec-paper);
	padding-block: clamp(2.5rem, 7vw, 5rem);
}

.ec-knows__in {
	max-width: var(--ec-container);
	margin-inline: auto;
	padding-inline: clamp(1rem, 4vw, 3.375rem);
	display: grid;
	gap: clamp(1.5rem, 4vw, 4rem);
	grid-template-columns: 1fr;
}

@media (min-width: 900px) {
	.ec-knows__in {
		grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
		align-items: start;
	}
}

.ec-knows h2 {
	color: var(--ec-paper);
	font-size: var(--ec-fs-2xl);
	margin: 0;
}

.ec-knows ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 0.9rem;
}

.ec-knows li {
	display: flex;
	align-items: baseline;
	gap: 0.75rem;
	font-size: var(--ec-fs-sm);
	line-height: 1.5;
	padding-block-end: 0.9rem;
	border-bottom: 1px solid rgba(242, 241, 238, 0.14);
}

.ec-knows li::before {
	content: "";
	inline-size: 7px;
	block-size: 7px;
	border-radius: 50%;
	background: var(--mark, var(--ec-paper));
	flex: none;
	transform: translateY(-1px);
}

/* ── The five departments ─────────────────────────────────────────────────

   The way into the shop. Two of the five have stock and are links; three do
   not and are deliberately NOT links — a card that opens an empty page costs a
   customer a tap to learn what the card could have told them, and it is what
   makes a shop look abandoned.

   The two states are one component, not two: same box, same type, same
   spacing. Only the colour of the last line and the arrow differ, so the
   empty ones read as "not yet" rather than as broken. */

.ec-depts {
	display: grid;
	gap: 1px;
	grid-template-columns: 1fr;
	background: var(--ec-hair);
	border-block: 1px solid var(--ec-hair);
}

@media (min-width: 700px) {
	.ec-depts {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* Sized by how many departments actually have stock, rather than fixed at
   five. Two wide cards read as a choice; five, three of them dead, read as a
   site that has not been finished. */
@media (min-width: 700px) {
	.ec-depts {
		grid-auto-flow: column;
		grid-auto-columns: minmax(0, 1fr);
		grid-template-columns: none;
	}
}

.ec-dept {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	/* Comfortably past the 44px minimum without needing to be checked. */
	padding: clamp(1.25rem, 2.5vw, 2rem) clamp(1rem, 2vw, 1.5rem);
	background: var(--ec-paper);
	color: var(--ec-ink);
	text-decoration: none;
	min-block-size: 100%;
	transition: background 0.25s var(--ec-ease);
}

a.ec-dept:hover,
a.ec-dept:focus-visible {
	background: var(--ec-lift);
	text-decoration: none;
}

.ec-dept__name {
	font-size: var(--ec-fs-lg);
	font-weight: 500;
	line-height: 1.2;
}

.ec-dept__blurb {
	color: var(--ec-soft);
	font-size: var(--ec-fs-sm);
	line-height: 1.5;
	flex: 1;
}

.ec-dept__count {
	font-size: var(--ec-fs-xs);
	font-weight: 500;
	color: var(--ec-soft);
}

/* Never colour alone. The words carry the meaning; the colour only reinforces
   it, which is also what keeps this legible to anyone who cannot separate the
   two greys. */
.ec-dept__empty {
	font-size: var(--ec-fs-xs);
	font-weight: 600;
	color: var(--ec-back);
}

.ec-dept--empty .ec-dept__name {
	color: var(--ec-soft);
}

.ec-dept__go {
	font-size: var(--ec-fs-sm);
	color: var(--ec-soft);
	transition: transform 0.25s var(--ec-ease);
}

/* Physical, not logical. The arrow is drawn pointing left and means "onward"
   in a right-to-left page; a logical property would flip the glyph's motion
   away from the direction it points. */
a.ec-dept:hover .ec-dept__go {
	transform: translateX(-4px);
}

/* The departments with nothing in them yet. Still named, still honest, no
   longer occupying the width of the ones a customer can act on. */
.ec-depts__soon {
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin: var(--ec-space-4) 0 0;
	padding-block-start: var(--ec-space-4);
	border-top: 1px solid var(--ec-hair);
	color: var(--ec-soft);
	font-size: var(--ec-fs-sm);
}

.ec-depts__soon-label {
	font-weight: 600;
	color: var(--ec-back);
}

/* Never colour alone — the note spells out what the colour is hinting. */
.ec-depts__soon-note {
	margin-inline-start: auto;
	font-size: var(--ec-fs-xs);
	color: var(--ec-back);
}

.ec-depts__sep {
	color: var(--ec-hair);
}

.ec-section--depts {
	padding-block: clamp(2.5rem, 6vw, 5rem);
}

/* ── The workshop ─────────────────────────────────────────────────────────── */

.ec-lab {
	background: var(--ec-lift);
	border-block: 1px solid var(--ec-hair);
	padding-block: clamp(3rem, 8vw, 6.5rem);
}

.ec-lab__in {
	max-width: var(--ec-container);
	margin-inline: auto;
	padding-inline: clamp(1rem, 4vw, 3.375rem);
	display: grid;
	gap: clamp(1.5rem, 4vw, 4rem);
	grid-template-columns: 1fr;
}

@media (min-width: 900px) {
	.ec-lab__in {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	}
}

.ec-lab h2 {
	font-size: var(--ec-fs-2xl);
	margin: 0;
}

.ec-lab ul {
	list-style: none;
	margin: var(--ec-space-6) 0 0;
	padding: 0;
	display: grid;
	gap: 0.75rem;
	font-size: var(--ec-fs-sm);
	color: var(--ec-soft);
}

.ec-lab li {
	padding-block-end: 0.75rem;
	border-bottom: 1px solid var(--ec-hair);
}

/* ── Header, sticky ──────────────────────────────────────────────────────── */

/* position:sticky is NOT here. The header's template-part wrapper is the
   sticky element — see "The header sticks from its WRAPPER" near the end
   of this file — because a sticky element cannot leave its parent's box,
   and that wrapper is exactly the header's height. */
.ec-head {
	position: relative;
	z-index: 40;
	border-bottom: 1px solid transparent;
	transition: border-color 0.3s;
}

/* The frosted ground lives on a pseudo-element, NOT on the header itself.
   A backdrop-filter makes its element the containing block for every
   position:fixed descendant, and the navigation block's phone overlay is
   exactly that: with the filter on the header, the "full-screen" menu was
   a 180px strip pinned inside the header's box. Measured, then moved. */
.ec-head::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: color-mix(in srgb, var(--ec-paper) 86%, transparent);
	backdrop-filter: saturate(1.4) blur(14px);
	transition: background 0.3s;
}

/* Set by the scroll listener rather than by a scroll-driven animation, because
   the animation form is still unsupported in Safari and this is the one piece
   of chrome present on every page. */
.ec-head.is-stuck {
	border-bottom-color: var(--ec-hair);
}

.ec-head.is-stuck::before {
	background: color-mix(in srgb, var(--ec-paper) 96%, transparent);
}

/* The header must not be dragged into the page transition — it is the one
   element that genuinely persists across a navigation. */
.ec-head {
	view-transition-name: ec-head;
}

/* ── Compliance and fine print ───────────────────────────────────────────── */

.ec-fine {
	color: var(--ec-soft);
	font-size: var(--ec-fs-xs);
	margin: var(--ec-space-4) 0 0;
}

/* Where the buy button would have been.

   A product the model says cannot be bought has no add-to-cart form, so this
   is the only thing standing between the price and the specification. It is
   given the button's own vertical space rather than being tucked under the
   price, because a customer scanning for "can I buy this" looks here. */
.ec-avail-instead {
	margin-block: var(--ec-space-6);
	padding-block: var(--ec-space-4);
	border-top: 1px solid var(--ec-hair);
	border-bottom: 1px solid var(--ec-hair);
}

.ec-avail-instead .ec-avail {
	margin-top: 0;
	font-size: var(--ec-fs-base);
}

/* ── Touch targets ────────────────────────────────────────────────────────

   Measured on a 390x844 viewport rather than assumed. Before this the footer
   links were 21px tall, the card titles 23px, and the header controls between
   24px and 43px — all under the 24px WCAG 2.2 minimum or the 44px that a
   thumb actually needs.

   Height is added with padding rather than a fixed height, so a label that
   wraps to two lines still centres and still grows its target rather than
   overflowing a box. */

.ec-foot__links {
	list-style: none;
	margin: var(--ec-space-3) 0 0;
	padding: 0;
}

.ec-foot__links a {
	display: inline-block;
	padding-block: 0.6rem;
	min-height: 44px;
	align-content: center;
}

/* The card image above is also a link to the same product, so the title was
   never the only way in — but it is the one people aim at. */
.wc-block-components-product-title a,
.wp-block-post-title a {
	display: inline-block;
	padding-block: 0.7rem;
}

/* WooCommerce's own header controls. Sized by the plugin, not by us, and both
   land under the minimum. */
.wc-block-mini-cart__button,
.wc-block-customer-account__link,
.wp-block-site-title a,
.wp-block-navigation__responsive-container-open,
.wp-block-navigation__responsive-container-close {
	min-width: 44px;
	min-height: 44px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

/* ── The catalogue grid ───────────────────────────────────────────────────

   TWO THINGS WERE MEASURED WRONG BEFORE THIS EXISTED, ON A REAL SHOP PAGE.

   1. The grid rendered two columns where the template asked for three.
      WooCommerce sizes its columns as `calc(33.333% - .833em)` inside an
      auto-fill — arithmetic that assumes ITS OWN 1.25em gap. Widening the gap
      for the editorial spacing pushed the third column past the container and
      auto-fill quietly dropped it. Nothing errored; the shop simply had one
      fewer column than the template said. Columns are therefore declared here
      explicitly rather than inherited from that calculation.

   2. Card heights ran from 545px to 1055px in the same grid. At one width, a
      tall portrait cut-out and a low wide scooter produce wildly different
      cards, and a grid of them reads as broken rather than varied.

   The second fix is the whole payoff of cutting the products out and trimming
   them to their opaque bounds: because the bottom edge of every file is now
   the wheels, a fixed-height stage with the image bottom-aligned puts every
   machine in the catalogue on ONE GROUND LINE. Cards become the same height,
   and the products keep their true relative proportions inside them. That is
   a shop window, not a spreadsheet — and it is only possible because no image
   here carries a background. */

.ec-grid .wc-block-product-template {
	grid-template-columns: 1fr;
}

@media (min-width: 640px) {
	.ec-grid .wc-block-product-template {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 1000px) {
	.ec-grid .wc-block-product-template {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.ec-grid li.wc-block-product .wc-block-components-product-image {
	/* One value, used by the stage and by the image cap below.
	   They must never drift apart: the stage height is what makes the cards
	   equal, and the image cap is what keeps the product inside it. */
	--ec-stage: clamp(190px, 22vw, 330px);

	display: grid;

	/* end = the ground line. The trimmed file's bottom edge is the tyre
	   contact patch, so bottom-aligning every product stands them all on the
	   same surface. */
	place-items: end center;
	block-size: var(--ec-stage);
}

/* The image is NOT the grid item. WooCommerce wraps it in a link, and a
   percentage max-height resolved against an auto-height wrapper is defined to
   mean no limit at all — so the cap below did nothing until the wrapper
   carried the height itself. Measured before this line existed: the cut-outs
   ran 164–227px past the bottom of their stage and the product title printed
   across the rear wheel. */
.ec-grid li.wc-block-product .wc-block-components-product-image > a,
.ec-grid li.wc-block-product .wc-block-components-product-image > .wc-block-components-product-image__inner-container {
	display: grid;
	place-items: end center;
	block-size: 100%;
	min-block-size: 0;
}

.ec-grid li.wc-block-product .wc-block-components-product-image img {
	/*
	 * The cap is the stage value itself, NOT 100%.
	 *
	 * A percentage max-height resolves against the grid ROW, and an implicit
	 * row is auto-sized — it grows to whatever the image needs. So `100%`
	 * measured 445px on a 282px stage and capped nothing at all. Measured, not
	 * reasoned about: the products ran up to 314px past their stage and the
	 * title printed across the wheel.
	 */
	max-block-size: var(--ec-stage);
	inline-size: auto;
	max-inline-size: 100%;
}

/* No reset for the hero. It used to need one — the card rules reached it and
   had to be undone — and that reset lost the moment a card rule it did not
   know about was added. Scoping removed the need for it entirely; this is the
   hero asking for what it wants, not undoing what it was given. */
.ec-hero__stage .wc-block-components-product-image img {
	inline-size: auto;
	max-inline-size: 100%;
}

/* ── The shop itself ──────────────────────────────────────────────────────

   Where it is and when it is open. Obvious, and it was missing: measured on
   the rendered homepage, neither the address nor the opening hours nor the
   words "סוכן מורשה קורטז" appeared anywhere in <main>. For a shop whose whole
   pitch is that you can walk in and collect the thing today, that is the one
   question the page has to answer.

   Warranty, returns and payment terms are NOT here. They are commercial and
   legal commitments, they belong to the owner and his lawyer, and inventing
   plausible ones on a demo going to the importer is exactly the failure this
   project exists to prevent. */

.ec-store {
	background: var(--ec-ink);
	color: var(--ec-paper);
	padding-block: clamp(3rem, 8vw, 6.5rem);
}

.ec-store__in {
	max-width: var(--ec-container);
	margin-inline: auto;
	padding-inline: clamp(1rem, 4vw, 3.375rem);
	display: grid;
	gap: clamp(2rem, 5vw, 5rem);
	grid-template-columns: 1fr;
	align-items: start;
}

@media (min-width: 900px) {
	.ec-store__in {
		grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
	}
}

.ec-store h2,
.ec-store p {
	color: var(--ec-paper);
}

.ec-store .ec-eyebrow {
	color: var(--ec-paper);
	opacity: 0.62;
}

/* Buttons invert: on the dark ground the solid one has to be light, or it
   disappears into the section it is sitting on. */
.ec-store .wp-block-button__link {
	background: var(--ec-paper);
	color: var(--ec-ink);
	border-color: var(--ec-paper);
}

.ec-store .is-style-outline .wp-block-button__link {
	background: transparent;
	color: var(--ec-paper);
}

.ec-store .wp-block-button__link:hover {
	background: #fff;
	color: var(--ec-ink);
}

.ec-store .is-style-outline .wp-block-button__link:hover {
	background: rgba(242, 241, 238, 0.12);
	color: var(--ec-paper);
}

/* A definition list, because that is what this is: four labelled facts. It
   reads correctly to a screen reader without any ARIA. */
.ec-store__facts {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 0.5rem 1.5rem;
	margin: 0;
	font-size: var(--ec-fs-sm);
}

.ec-store__facts dt {
	color: var(--ec-paper);
	opacity: 0.58;
	padding-block: 0.55rem;
	border-top: 1px solid rgba(242, 241, 238, 0.14);
}

.ec-store__facts dd {
	margin: 0;
	padding-block: 0.55rem;
	border-top: 1px solid rgba(242, 241, 238, 0.14);
	font-variant-numeric: tabular-nums;
	/* 10:00–19:00 is a Latin-first run inside an RTL block. */
	unicode-bidi: plaintext;
	text-align: start;
}

/* Marked, not quietly omitted. A visitor should be able to see that this one
   is not yet a commitment. */
.ec-store__unconfirmed {
	color: #e2b04a;
}

.ec-store .ec-fine {
	color: var(--ec-paper);
	opacity: 0.55;
}

/* =============================================================================
   PART II — the site as a whole: header, motion, product page, catalogue,
   cart and checkout.

   Everything below keeps three rules, because each has been broken on this
   project before and each costs a real person something:

     · Hover never changes layout. A fill fades, an opacity shifts, a transform
       moves a thing two pixels. Nothing reflows under the pointer.
     · Interactive responses are short and firm — about 0.2s — and ambient
       reveals are longer and softer. A button that takes 0.6s to respond
       feels broken; a section that snaps in feels cheap.
     · Transforms and opacity only, for anything that moves. The compositor
       does the work and the main thread stays free for the page.
   ============================================================================= */

/* ── Motion tokens ────────────────────────────────────────────────────── */

:root {
	--ec-ease-out: cubic-bezier(0.22, 1, 0.36, 1);
	--ec-ease-firm: cubic-bezier(0.2, 0.8, 0.2, 1);
	--ec-dur-tap: 0.2s;
	--ec-dur-fade: 0.15s;
	--ec-dur-reveal: 0.6s;
	--ec-banner-h: 0px;
}

/* ── Header ───────────────────────────────────────────────────────────── */

.ec-head__in {
	padding-block: 0.5rem;
	min-height: 64px;
}

.ec-head__lead {
	min-width: 0;
}

.ec-head__brand a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
}

/* Navigation links: 44px targets, colour fades, no underline jump. */
.ec-nav a {
	position: relative;
	white-space: nowrap;
	transition: color var(--ec-dur-fade);
}

/* The current page is marked with a short rule that grows from the centre
   — transform only, so nothing beside it moves. */
.ec-nav .wp-block-navigation-item__content::after {
	content: "";
	position: absolute;
	inset-inline: 0;
	bottom: 0.35rem;
	height: 1px;
	background: currentColor;
	transform: scaleX(0);
	transition: transform var(--ec-dur-tap) var(--ec-ease-firm);
}

.ec-nav .wp-block-navigation-item__content:hover::after,
.ec-nav .current-menu-item .wp-block-navigation-item__content::after {
	transform: scaleX(1);
}

/* Links that exist for the phone overlay only. The navigation block opens
   its overlay below 600px; above that these would duplicate the icons. */
@media (min-width: 600px) {
	.ec-nav .ec-nav__overlay-only {
		display: none;
	}
}

/* The actions: every control is a 44px square, labels only where they fit. */
.ec-head__acts {
	flex: none;
}

.ec-head__icon {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	min-width: 44px;
	min-height: 44px;
	padding-inline: 0.5rem;
	border-radius: 999px;
	color: var(--ec-ink);
	text-decoration: none;
	transition: background var(--ec-dur-fade);
}

.ec-head__icon:hover,
.ec-head__icon:focus-visible {
	background: var(--ec-sink);
	text-decoration: none;
}

.ec-head__icon-label {
	font-size: var(--ec-fs-sm);
	font-variant-numeric: tabular-nums;
	unicode-bidi: plaintext;
}

@media (max-width: 1180px) {
	.ec-head__icon-label {
		display: none;
	}
}

/* Below 600px the overlay carries phone and WhatsApp; the icons would be
   a third copy, and the row needs the room for the search. */
@media (max-width: 599px) {
	.ec-head__icon--phone,
	.ec-head__icon--whatsapp {
		display: none;
	}
}

/* WooCommerce's account and cart controls, sized to the same square. */
.ec-head__account .wc-block-customer-account__link,
.ec-head__cart .wc-block-mini-cart__button {
	min-width: 44px;
	min-height: 44px;
	padding: 0;
	border-radius: 999px;
	color: var(--ec-ink);
	transition: background var(--ec-dur-fade);
}

.ec-head__account .wc-block-customer-account__link:hover,
.ec-head__cart .wc-block-mini-cart__button:hover {
	background: var(--ec-sink);
	text-decoration: none;
}

/* The badge acknowledges a change with one short bump. */
.wc-block-mini-cart__badge {
	background: var(--ec-ink);
	color: var(--ec-paper);
	font-weight: 600;
	font-variant-numeric: tabular-nums;
}

.wc-block-mini-cart__badge.is-bump {
	animation: ec-bump 0.45s var(--ec-ease-firm);
}

@keyframes ec-bump {
	0%   { transform: scale(1); }
	35%  { transform: scale(1.35); }
	100% { transform: scale(1); }
}

/* ── Search: an icon that opens a field ───────────────────────────────── */

.ec-search.wp-block-search {
	margin: 0;
}

.ec-search .wp-block-search__inside-wrapper {
	display: flex;
	align-items: center;
	flex-direction: row-reverse;
	gap: 0;
	border: 0;
	padding: 0;
}

.ec-search .wp-block-search__button {
	min-width: 44px;
	min-height: 44px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: var(--ec-ink);
	cursor: pointer;
	transition: background var(--ec-dur-fade);
}

.ec-search .wp-block-search__button:hover,
.ec-search .wp-block-search__button:focus-visible {
	background: var(--ec-sink);
	color: var(--ec-ink);
}

.ec-search .wp-block-search__button svg {
	fill: currentColor;
	width: 22px;
	height: 22px;
}

/* The field slides open from the icon. Width is the one layout property
   animated on this site, and it is animated here because the field is the
   last thing in its row: nothing to its left moves, and the row is already
   as wide as the viewport. */
.ec-search .wp-block-search__input {
	width: 0;
	min-width: 0;
	max-width: 0;
	min-height: 44px;
	padding: 0;
	margin: 0;
	border: 0;
	border-bottom: 1px solid var(--ec-ink);
	border-radius: 0;
	background: transparent;
	color: var(--ec-ink);
	font: inherit;
	font-size: 16px;
	opacity: 0;
	transition: max-width var(--ec-dur-tap) var(--ec-ease-firm), opacity var(--ec-dur-fade), padding var(--ec-dur-tap);
}

.ec-search:not(.wp-block-search__searchfield-hidden) .wp-block-search__input {
	width: auto;
	max-width: min(42vw, 280px);
	padding-inline: 0.5rem;
	opacity: 1;
}

/* Without JavaScript nothing can open the field, and a zero-width required
   input behind a submit button is a validation bubble on nothing. */
@media (scripting: none) {
	.ec-search .wp-block-search__input {
		width: auto;
		max-width: min(42vw, 280px);
		padding-inline: 0.5rem;
		opacity: 1;
	}
}

.ec-search .wp-block-search__input:focus {
	outline: none;
	border-bottom-color: var(--ec-ink);
	box-shadow: none;
}

/* ── Phone menu overlay ───────────────────────────────────────────────── */

.wp-block-navigation__responsive-container.is-menu-open {
	padding: calc(var(--ec-banner-h) + 1.5rem) clamp(1.25rem, 6vw, 2.5rem) 2rem;
	background: var(--ec-paper);
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
	gap: 0;
	align-items: stretch;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
	gap: 0;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item {
	border-bottom: 1px solid var(--ec-hair);
}

.ec-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
	display: block;
	padding-block: 1rem;
	font-size: var(--ec-fs-xl);
	font-weight: 300;
	color: var(--ec-ink);
}

/* The two ways to reach a person: smaller, together, at the end. */
.ec-nav .wp-block-navigation__responsive-container.is-menu-open .ec-nav__contact .wp-block-navigation-item__content {
	font-size: var(--ec-fs-base);
	font-weight: 500;
	padding-block: 0.8rem;
}

/* The first contact row, after the last plain overlay-only row. */
.wp-block-navigation__responsive-container.is-menu-open .ec-nav__overlay-only:not(.ec-nav__contact) + .ec-nav__contact {
	margin-top: 1rem;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content::after {
	content: none;
}

/* Items arrive one after another when the overlay opens. The container's
   own transition is WordPress's; this only staggers the rows inside it. */
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item {
	animation: ec-rise var(--ec-dur-reveal) var(--ec-ease-out) both;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item:nth-child(2) { animation-delay: 0.04s; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item:nth-child(3) { animation-delay: 0.08s; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item:nth-child(4) { animation-delay: 0.12s; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item:nth-child(5) { animation-delay: 0.16s; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item:nth-child(6) { animation-delay: 0.2s; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item:nth-child(7) { animation-delay: 0.24s; }

.wp-block-navigation__responsive-container-close {
	color: var(--ec-ink);
}

/* ── Arriving through a morph ──────────────────────────────────────────
   The hero entrance (ec-settle / ec-rise, in the Motion section above)
   must not play on a page that is arriving through a view transition: the
   image is already in flight from the previous page, and a second entrance
   on top of the crossfade reads as a stutter. The inline head script sets
   this attribute before the first render. */
html[data-ec-reveal="transition"] .ec-hero__stage,
html[data-ec-reveal="transition"] .ec-hero__copy > * {
	animation: none;
}

/* A hairline grows under the card title on hover — transform only. */
.ec-grid .wc-block-components-product-title a {
	position: relative;
}

.ec-grid .wc-block-components-product-title a::after {
	content: "";
	position: absolute;
	inset-inline: 0;
	bottom: 0.5rem;
	height: 1px;
	background: currentColor;
	transform: scaleX(0);
	transform-origin: right center;
	transition: transform var(--ec-dur-tap) var(--ec-ease-firm);
}

.ec-grid li.wc-block-product:hover .wc-block-components-product-title a::after {
	transform: scaleX(1);
}

/* ── Buttons: press, lift, and show progress ──────────────────────────── */

/* The base transition and the press are in the Motion section above; this
   adds the lift. The purchase bar's button is not a WordPress button and
   needs the same treatment by name. */
.wp-block-button__link,
.wc-block-components-button,
.woocommerce a.button,
.woocommerce button.button,
.ec-buybar__cta {
	position: relative;
}

.ec-buybar__cta {
	transition:
		background-color 0.2s var(--ec-ease),
		color 0.2s var(--ec-ease),
		transform 0.12s var(--ec-ease),
		box-shadow 0.2s var(--ec-ease);
}

.wp-block-button__link:hover,
.woocommerce button.button:hover,
.ec-buybar__cta:hover {
	transform: translateY(-1px);
	box-shadow: 0 6px 16px -8px rgba(25, 23, 19, 0.5);
}

.ec-buybar__cta:active {
	transform: scale(0.97);
	box-shadow: none;
}

/* Anything slower than half a second shows progress. The form post that
   follows "add to cart" is exactly that on a phone. */
.is-busy {
	pointer-events: none;
	color: transparent !important;
}

.is-busy::after {
	content: "";
	position: absolute;
	inset: 0;
	margin: auto;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	border: 2px solid rgba(242, 241, 238, 0.35);
	border-top-color: var(--ec-paper);
	animation: ec-spin 0.7s linear infinite;
}

@keyframes ec-spin {
	to { transform: rotate(360deg); }
}

/* ── The product page ─────────────────────────────────────────────────── */

.ec-crumbs {
	font-size: var(--ec-fs-xs);
	color: var(--ec-soft);
	margin-bottom: var(--ec-space-6);
}

.ec-crumbs a {
	display: inline-block;
	padding-block: 0.7rem;
	color: var(--ec-soft);
}

.ec-crumbs a:hover {
	color: var(--ec-ink);
}

/* The stage: the same lit ground as the hero, keyed to the pointer. The
   gallery used to carry this on its own class; the column carries it now,
   so a product without a gallery still stands on something. */
.ec-pdp__stage {
	position: relative;
	--ec-lx: 50%;
	background: radial-gradient(120% 92% at var(--ec-lx) 4%, var(--ec-lift) 0%, var(--ec-paper) 52%, var(--ec-sink) 100%);
	border-radius: 4px;
	padding: clamp(1.25rem, 4vw, 3.75rem) clamp(1rem, 3vw, 2.75rem);
	align-self: start;
	overflow: clip;
}

@media (min-width: 782px) {
	.ec-pdp__stage {
		position: sticky;
		top: calc(var(--ec-banner-h) + 80px);
	}
}

.ec-pdp__stage .woocommerce-product-gallery {
	background: none;
	padding: 0;
	/* WooCommerce writes opacity:0 inline and lifts it from JavaScript.
	   Overridden so the one image a visitor came for is never invisible
	   while a script loads — and the morph needs it painted on first frame. */
	opacity: 1 !important;
}

.ec-pdp__stage .woocommerce-product-gallery__image img {
	margin-inline: auto;
	max-height: min(68svh, 720px);
	width: auto;
	object-fit: contain;
}

.ec-pdp__stage .woocommerce-product-gallery__trigger {
	inset-inline-end: 0.75rem;
	inset-inline-start: auto;
	top: 0.75rem;
	width: 44px;
	height: 44px;
	border-radius: 999px;
	background: var(--ec-lift);
	border: 1px solid var(--ec-hair);
	opacity: 0.85;
	transition: opacity var(--ec-dur-fade);
}

.ec-pdp__stage .woocommerce-product-gallery__trigger:hover {
	opacity: 1;
}

.ec-pdp__buy .ec-eyebrow a {
	color: var(--ec-soft);
}

.ec-pdp__title {
	margin: 0.35rem 0 0.75rem;
}

.ec-pdp__price {
	margin-bottom: 1rem;
}

.ec-pdp__summary {
	color: var(--ec-soft);
	max-width: 42ch;
}

/* The form: quantity and button on one row, badge and notice beneath. */
.ec-pdp__form form.cart {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem;
	margin: var(--ec-space-6) 0 0;
}

.ec-pdp__form .quantity {
	display: inline-flex;
	margin: 0;
}

.ec-pdp__form .quantity .qty {
	width: 4.5rem;
	min-height: 48px;
	text-align: center;
	border-radius: 999px;
	font-variant-numeric: tabular-nums;
}

.ec-pdp__form .single_add_to_cart_button {
	min-height: 48px;
	flex: 1 1 12rem;
}

.ec-pdp__form .ec-avail,
.ec-pdp__form .ec-avail__notice {
	flex-basis: 100%;
}

.ec-pdp__assure {
	list-style: none;
	margin: var(--ec-space-6) 0 0;
	padding: 0;
	display: grid;
	gap: 0.6rem;
	font-size: var(--ec-fs-sm);
	color: var(--ec-soft);
}

.ec-pdp__assure li {
	position: relative;
	padding-inline-start: 1rem;
}

.ec-pdp__assure li::before {
	content: "";
	position: absolute;
	inset-inline-start: 0;
	top: 0.65em;
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: var(--ec-hair);
}

.ec-pdp__assure a {
	color: var(--ec-ink);
	text-decoration: underline;
	text-underline-offset: 0.2em;
}

.ec-pdp__meta {
	margin-top: var(--ec-space-6);
	font-size: var(--ec-fs-xs);
	color: var(--ec-soft);
}

/* The specification: a heading and a two-column table, with the values
   given the weight. Rows reveal with the section. */
.ec-pdp__spec {
	margin-top: clamp(2.5rem, 7vw, 5rem);
	max-width: 56rem;
}

.ec-pdp__spec-in h3 {
	font-size: var(--ec-fs-xl);
	font-weight: 300;
	margin: 0 0 1rem;
}

.ec-pdp__spec-in .ec-spec-table th {
	font-size: var(--ec-fs-sm);
}

.ec-pdp__spec-in .ec-spec-table td {
	font-size: var(--ec-fs-base);
	font-weight: 500;
	color: var(--ec-ink);
}

/* ── The sticky purchase bar ──────────────────────────────────────────── */

.ec-buybar {
	position: fixed;
	inset-inline: 0;
	bottom: 0;
	z-index: 60;
	background: color-mix(in srgb, var(--ec-paper) 92%, transparent);
	backdrop-filter: saturate(1.4) blur(14px);
	border-top: 1px solid var(--ec-hair);
	transform: translateY(100%);
	transition: transform 0.28s var(--ec-ease-firm);
	padding-bottom: env(safe-area-inset-bottom);
}

.ec-buybar:not(.is-shown) {
	/* Delayed until the slide-out ends, so the bar is never focusable while
	   it sits invisibly below the viewport. The script also sets `hidden`
	   on transitionend; this is the belt to that brace. */
	visibility: hidden;
	transition: transform 0.28s var(--ec-ease-firm), visibility 0s 0.28s;
}

.ec-buybar.is-shown {
	transform: none;
}

.ec-buybar__in {
	max-width: var(--ec-container);
	margin-inline: auto;
	padding: 0.6rem clamp(1rem, 4vw, 3.375rem);
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	grid-template-areas: "meta cta" "avail cta";
	align-items: center;
	column-gap: 1rem;
	row-gap: 0.1rem;
}

.ec-buybar__meta {
	grid-area: meta;
	display: flex;
	align-items: baseline;
	gap: 0.75rem;
	min-width: 0;
}

.ec-buybar__name {
	font-size: var(--ec-fs-base);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	/* Direction from the content, so a Latin model name runs left-to-right
	   and its ellipsis falls at its end ("Cortez XMAX …"), and a Hebrew name
	   the day there is one does the same on its own side. `direction: ltr`
	   fixed the first and would have broken the second. */
	unicode-bidi: plaintext;
	text-align: start;
}

.ec-buybar__price {
	font-variant-numeric: tabular-nums;
	direction: ltr;
	white-space: nowrap;
}

.ec-buybar__avail {
	grid-area: avail;
	margin: 0;
	font-size: var(--ec-fs-xs);
}

.ec-buybar__cta {
	grid-area: cta;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding-inline: 1.75rem;
	border-radius: 999px;
	border: 1px solid var(--ec-ink);
	background: var(--ec-ink);
	color: var(--ec-paper);
	font: inherit;
	font-size: var(--ec-fs-sm);
	font-weight: 500;
	cursor: pointer;
	text-decoration: none;
}

.ec-buybar__cta--ask {
	background: transparent;
	color: var(--ec-ink);
}

/* Sticky elements must not obscure focused controls — WCAG 2.2 2.4.11.
   When the bar is up, the page scrolls focused fields clear of it. */
html.has-buybar {
	scroll-padding-bottom: calc(var(--ec-buybar-h, 72px) + 16px);
}

@media (min-width: 900px) {
	.ec-buybar__in {
		grid-template-columns: minmax(0, 1fr) auto auto;
		grid-template-areas: "meta avail cta";
		column-gap: 2rem;
	}

	.ec-buybar__avail {
		font-size: var(--ec-fs-sm);
	}
}

/* ── The WhatsApp button ──────────────────────────────────────────────

   One 48px circle, bottom-left — the far corner from the thumb on a
   right-to-left phone, so it is never where a customer is about to tap
   something else. The label is drawn beside it on hover without moving
   the circle. It rises above the purchase bar when that is up. */

.ec-whats {
	position: fixed;
	inset-inline-end: clamp(0.75rem, 2.5vw, 1.5rem);
	bottom: calc(clamp(0.75rem, 2.5vw, 1.5rem) + env(safe-area-inset-bottom));
	z-index: 55;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border-radius: 999px;
	background: var(--ec-ink);
	color: var(--ec-paper);
	box-shadow: 0 10px 24px -10px rgba(25, 23, 19, 0.55);
	transition: transform var(--ec-dur-tap) var(--ec-ease-firm), bottom 0.28s var(--ec-ease-firm);
}

.ec-whats:hover {
	transform: translateY(-2px);
}

.ec-whats:active {
	transform: scale(0.95);
}

.ec-whats__label {
	position: absolute;
	inset-inline-start: calc(100% + 0.6rem);
	top: 50%;
	transform: translateY(-50%);
	padding: 0.35rem 0.7rem;
	border-radius: 999px;
	background: var(--ec-ink);
	color: var(--ec-paper);
	font-size: var(--ec-fs-xs);
	font-weight: 500;
	white-space: nowrap;
	opacity: 0;
	pointer-events: none;
	transition: opacity var(--ec-dur-fade);
}

@media (hover: hover) {
	.ec-whats:hover .ec-whats__label,
	.ec-whats:focus-visible .ec-whats__label {
		opacity: 1;
	}
}

html.has-buybar .ec-whats {
	bottom: calc(var(--ec-buybar-h, 72px) + 0.75rem + env(safe-area-inset-bottom));
}

/* ── The catalogue: filters beside the grid ───────────────────────────── */

.ec-catalogue__body {
	display: grid;
	grid-template-columns: 1fr;
	gap: clamp(1.25rem, 3vw, 2.5rem);
	align-items: start;
}

@media (min-width: 1000px) {
	.ec-catalogue__body {
		/* First column is the inline-start side — the right, here. */
		grid-template-columns: 250px minmax(0, 1fr);
		gap: clamp(2rem, 4vw, 4rem);
	}

	.ec-filters {
		position: sticky;
		top: calc(var(--ec-banner-h) + 84px);
	}
}

.ec-filters {
	font-size: var(--ec-fs-sm);
}

.ec-filters .wc-block-product-filters__content,
.ec-filters .wc-block-product-filters__overlay-content {
	gap: 1.75rem;
}

.ec-filters__title {
	font-size: var(--ec-fs-xs);
	font-weight: 600;
	letter-spacing: 0;
	color: var(--ec-soft);
	margin: 0 0 0.6rem;
}

/* Chips: pills that fill on selection. */
.ec-filters .wc-block-product-filter-chips__items {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.ec-filters .wc-block-product-filter-chips__item {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	min-height: 40px;
	padding: 0.35rem 0.9rem;
	border: 1px solid var(--ec-hair);
	border-radius: 999px;
	background: var(--ec-lift);
	color: var(--ec-ink);
	font: inherit;
	font-size: var(--ec-fs-sm);
	cursor: pointer;
	transition: background var(--ec-dur-fade), border-color var(--ec-dur-fade), color var(--ec-dur-fade);
}

.ec-filters .wc-block-product-filter-chips__item:hover {
	border-color: var(--ec-soft);
}

.ec-filters .wc-block-product-filter-chips__item[aria-checked="true"],
.ec-filters .wc-block-product-filter-chips__item[aria-pressed="true"],
.ec-filters .wc-block-product-filter-chips__item.is-selected {
	background: var(--ec-ink);
	border-color: var(--ec-ink);
	color: var(--ec-paper);
}

.ec-filters .wc-block-product-filter-chips__count {
	opacity: 0.6;
	font-variant-numeric: tabular-nums;
}

/* Checkbox list: 44px rows, a square mark that fills. */
.ec-filters .wc-block-product-filter-checkbox-list__items {
	list-style: none;
	margin: 0;
	padding: 0;
}

.ec-filters .wc-block-product-filter-checkbox-list__label {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	min-height: 44px;
	cursor: pointer;
}

.ec-filters .wc-block-product-filter-checkbox-list__input {
	width: 18px;
	height: 18px;
	margin: 0;
	accent-color: var(--ec-ink);
}

.ec-filters .wc-block-product-filter-checkbox-list__count {
	color: var(--ec-soft);
	font-variant-numeric: tabular-nums;
}

/* Price slider in the house colours. */
.ec-filters .wc-block-product-filter-price-slider__range input[type="range"] {
	accent-color: var(--ec-ink);
}

.ec-filters .wc-block-product-filter-price-slider__content {
	font-variant-numeric: tabular-nums;
}

.ec-filters .wc-block-product-filter-price-slider__left,
.ec-filters .wc-block-product-filter-price-slider__right {
	font-size: var(--ec-fs-sm);
}

.ec-filters input[type="text"],
.ec-filters input[type="number"] {
	border: 1px solid var(--ec-hair);
	border-radius: 4px;
	background: var(--ec-lift);
	min-height: 40px;
	font-size: 16px;
}

/* Active filters: what is applied, and one way to clear it. */
.ec-filters .wc-block-product-filter-removable-chips__items {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.ec-filters .wc-block-product-filter-removable-chips__item {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	min-height: 36px;
	padding: 0.2rem 0.5rem 0.2rem 0.8rem;
	border-radius: 999px;
	background: var(--ec-ink);
	color: var(--ec-paper);
	font-size: var(--ec-fs-xs);
}

.ec-filters .wc-block-product-filter-removable-chips__remove {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: inherit;
	cursor: pointer;
}

.ec-filters .wc-block-product-filter-removable-chips__remove svg {
	fill: currentColor;
}

.ec-filters .wp-block-woocommerce-product-filter-clear-button {
	margin-top: 0.5rem;
}

.ec-filters .wp-block-woocommerce-product-filter-clear-button .wp-block-button__link {
	min-height: 40px;
	padding-inline: 1.25rem;
	background: transparent;
	color: var(--ec-ink);
	font-size: var(--ec-fs-xs);
}

/* The drawer on a phone: WooCommerce's overlay, in the house style. The
   open button becomes a proper control; the sheet gets a rounded top,
   the house ground and a sticky apply button. */
.ec-filters .wc-block-product-filters__open-overlay {
	min-height: 44px;
	padding: 0 1rem;
	border: 1px solid var(--ec-hair);
	border-radius: 999px;
	background: var(--ec-lift);
	color: var(--ec-ink);
	font-size: var(--ec-fs-sm);
	font-weight: 500;
	cursor: pointer;
	gap: 0.4rem;
	transition: background var(--ec-dur-fade);
}

.ec-filters .wc-block-product-filters__open-overlay:hover {
	background: var(--ec-sink);
}

.ec-filters .wc-block-product-filters__overlay-dialog {
	background: var(--ec-paper);
	color: var(--ec-ink);
	border-radius: 16px 16px 0 0;
	top: auto;
	max-height: 86vh;
	transition: transform 0.32s var(--ec-ease-firm) !important;
}

.ec-filters .wc-block-product-filters__overlay-header {
	padding: 1rem 1.25rem 0.5rem;
}

.ec-filters .wc-block-product-filters__close-overlay {
	min-height: 44px;
	min-width: 44px;
	justify-content: center;
	border-radius: 999px;
	color: var(--ec-ink);
	cursor: pointer;
}

.ec-filters .wc-block-product-filters__overlay-content {
	padding: 0.5rem 1.25rem 1rem;
	gap: 1.5rem;
}

.ec-filters .wc-block-product-filters__overlay-footer {
	box-shadow: none;
	border-top: 1px solid var(--ec-hair);
	padding: 0.75rem 1.25rem calc(0.75rem + env(safe-area-inset-bottom));
	background: var(--ec-paper);
}

.ec-filters .wc-block-product-filters__apply {
	min-height: 48px;
	border-radius: 999px;
	background: var(--ec-ink);
	color: var(--ec-paper);
	border: 0;
	font: inherit;
	font-size: var(--ec-fs-sm);
	font-weight: 500;
}

/* Sorting and results count, aligned with the filter row. */
.ec-catalogue__tools {
	font-size: var(--ec-fs-sm);
	color: var(--ec-soft);
}

.ec-catalogue__tools select,
.wc-block-catalog-sorting select {
	min-height: 44px;
	padding: 0.4rem 2rem 0.4rem 0.9rem;
	border: 1px solid var(--ec-hair);
	border-radius: 999px;
	background: var(--ec-lift);
	color: var(--ec-ink);
	font: inherit;
	font-size: var(--ec-fs-sm);
}

/* Pagination: every page number is a 44px target, not a nine-pixel digit. */
.ec-pages {
	margin-top: clamp(2rem, 5vw, 3.5rem);
	gap: 0.25rem;
}

.ec-pages a,
.ec-pages .page-numbers,
.ec-pages .wp-block-query-pagination-previous,
.ec-pages .wp-block-query-pagination-next {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	min-height: 44px;
	padding-inline: 0.75rem;
	border-radius: 999px;
	color: var(--ec-ink);
	font-size: var(--ec-fs-sm);
	font-variant-numeric: tabular-nums;
	transition: background var(--ec-dur-fade);
}

.ec-pages a:hover {
	background: var(--ec-sink);
	text-decoration: none;
}

.ec-pages .page-numbers.current {
	background: var(--ec-ink);
	color: var(--ec-paper);
}

/* ── Cart, checkout, account ─────────────────────────────────────────── */

.ec-commerce {
	max-width: var(--ec-container);
}

.ec-commerce__title {
	margin-bottom: clamp(1.25rem, 3vw, 2.5rem);
}

.ec-commerce .wp-block-woocommerce-cart,
.ec-commerce .wp-block-woocommerce-checkout {
	max-width: none;
}

/* WooCommerce's own form tokens, pointed at the house palette. */
.ec-commerce,
.wc-block-mini-cart__drawer {
	--wc-form-border-color: var(--ec-hair);
	--wc-form-border-width: 1px;
	--wc-form-border-radius: 4px;
	--wc-form-color-text: var(--ec-ink);
}

.ec-commerce .wc-block-components-text-input input,
.ec-commerce .wc-block-components-select .components-custom-select-control__button,
.ec-commerce .wc-block-components-combobox .components-combobox-control__input {
	background: var(--ec-lift);
	border-color: var(--ec-hair);
	border-radius: 4px;
	min-height: 48px;
}

.ec-commerce .wc-block-components-text-input input:focus,
.ec-commerce .wc-block-components-combobox .components-combobox-control__input:focus {
	border-color: var(--ec-ink);
	box-shadow: 0 0 0 1px var(--ec-ink);
}

.ec-commerce .wc-block-components-checkout-step__title,
.ec-commerce .wc-block-components-title,
.ec-commerce .wc-block-cart__totals-title,
.ec-commerce .wc-block-components-sidebar .wc-block-components-title {
	font-weight: 500;
	letter-spacing: 0;
}

.ec-commerce .wc-block-components-sidebar-layout .wc-block-components-sidebar,
.ec-commerce .wc-block-cart__sidebar {
	background: var(--ec-lift);
	border: 1px solid var(--ec-hair);
	border-radius: 6px;
	padding: 1.25rem;
}

.ec-commerce .wc-block-cart-items__header,
.ec-commerce .wc-block-cart-items__row,
.ec-commerce .wc-block-components-totals-item {
	border-color: var(--ec-hair);
}

.ec-commerce .wc-block-cart-item__image img {
	background: transparent;
	object-fit: contain;
}

.ec-commerce .wc-block-components-product-name {
	font-family: 'Archivo', 'Heebo', sans-serif;
	font-weight: 600;
	color: var(--ec-ink);
	text-decoration: none;
}

.ec-commerce .wc-block-components-quantity-selector {
	border: 1px solid var(--ec-hair);
	border-radius: 999px;
	background: var(--ec-lift);
}

.ec-commerce .wc-block-components-quantity-selector input,
.ec-commerce .wc-block-components-quantity-selector button {
	min-height: 44px;
	font-variant-numeric: tabular-nums;
}

.ec-commerce .wc-block-components-radio-control__option,
.ec-commerce .wc-block-components-checkbox {
	min-height: 44px;
}

.ec-commerce .wc-block-components-radio-control__input,
.ec-commerce .wc-block-components-checkbox input {
	accent-color: var(--ec-ink);
}

.ec-commerce .wc-block-components-checkout-place-order-button,
.ec-commerce .wc-block-cart__submit-button {
	min-height: 52px;
	border-radius: 999px;
	background: var(--ec-ink);
	color: var(--ec-paper);
	font-weight: 500;
}

.ec-commerce .wc-block-components-checkout-place-order-button:hover,
.ec-commerce .wc-block-cart__submit-button:hover {
	background: #000;
	color: var(--ec-paper);
}

/* The empty cart: the icon WooCommerce draws is a frown. The shop is not
   sad that the cart is empty, and neither is the customer. */
.ec-commerce .wc-block-cart__empty-cart__title::before {
	display: none;
}

.ec-commerce .wc-block-cart__empty-cart__title {
	font-size: var(--ec-fs-xl);
	font-weight: 300;
}

/* The mini-cart drawer. */
.wc-block-mini-cart__drawer {
	background: var(--ec-paper);
	color: var(--ec-ink);
}

.wc-block-mini-cart__drawer .wc-block-components-drawer__close {
	min-width: 44px;
	min-height: 44px;
}

.wc-block-mini-cart__drawer .wc-block-mini-cart__title {
	font-weight: 300;
}

.wc-block-mini-cart__drawer .wc-block-mini-cart__footer {
	border-top: 1px solid var(--ec-hair);
	background: var(--ec-lift);
}

.wc-block-mini-cart__drawer .wc-block-mini-cart__footer-actions .wc-block-components-button {
	border-radius: 999px;
	min-height: 48px;
}

.wc-block-mini-cart__drawer .wc-block-mini-cart__footer-actions .wc-block-components-button.outlined {
	background: transparent;
	color: var(--ec-ink);
	border-color: var(--ec-ink);
}

/* My account: the legacy shortcode layout, given the container width and
   44px navigation rows. */
.woocommerce-account .ec-page {
	max-width: var(--ec-container);
}

.woocommerce-account .ec-page .wp-block-post-content {
	max-width: none;
}

.woocommerce-MyAccount-navigation ul {
	list-style: none;
	margin: 0;
	padding: 0;
	border-top: 1px solid var(--ec-hair);
}

.woocommerce-MyAccount-navigation li {
	border-bottom: 1px solid var(--ec-hair);
}

.woocommerce-MyAccount-navigation a {
	display: block;
	padding: 0.8rem 0;
	min-height: 44px;
	color: var(--ec-soft);
	text-decoration: none;
	transition: color var(--ec-dur-fade);
}

.woocommerce-MyAccount-navigation a:hover,
.woocommerce-MyAccount-navigation .is-active a {
	color: var(--ec-ink);
}

.woocommerce-account .woocommerce-form-login,
.woocommerce-account .woocommerce-form-register {
	border: 1px solid var(--ec-hair);
	border-radius: 6px;
	background: var(--ec-lift);
	padding: clamp(1.25rem, 3vw, 2rem);
	max-width: 32rem;
}

.woocommerce-account .woocommerce-form-login .button,
.woocommerce-account .woocommerce-form-register .button {
	border-radius: 999px;
	min-height: 48px;
}

/* ── Targets that were measured short ─────────────────────────────────── */

.ec-foot a {
	display: inline-block;
	padding-block: 0.6rem;
}

.ec-foot .ec-foot__links a {
	padding-block: 0.6rem;
}

/* ── Reduced motion, for everything above ─────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
	.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item,
	.wc-block-mini-cart__badge.is-bump {
		animation: none;
	}

	.ec-buybar,
	.ec-whats,
	.ec-search .wp-block-search__input {
		transition: none;
	}

	.ec-grid li.wc-block-product:hover .wc-block-components-product-title a::after,
	.wp-block-button__link:hover,
	.ec-whats:hover {
		transform: none;
	}

}

/* Measured short on the rendered product page: breadcrumb links at 18px,
   the two contact links in the assurance list at 21px, the filter
   checkboxes at 14px. Padding, so wrapping text still centres. */
.ec-crumbs a,
.ec-pdp__assure a {
	display: inline-block;
	padding-block: 0.65rem;
	margin-block: -0.65rem;
}

.ec-filters .wc-block-product-filter-checkbox-list__input {
	min-width: 24px;
	min-height: 24px;
}

/* The price slider's own layout assumes a wide column: two 200px inputs on
   a 424px grid, inside a 250px sidebar. Measured overflowing 190px into
   the product grid. Constrained to the column it is given. */
.ec-filters .wc-block-product-filter-price-slider__content {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 0.5rem;
	width: 100%;
	max-width: 100%;
}

/* The two text fields are placed explicitly. Without this the left one
   measured 0px wide and the right one took the row: WooCommerce's own grid
   assumes a column far wider than the sidebar. */
.ec-filters .wc-block-product-filter-price-slider__range {
	grid-area: 1 / 1 / 2 / 3;
	width: 100%;
	min-width: 0;
}

.ec-filters .wc-block-product-filter-price-slider__left {
	grid-area: 2 / 1 / 3 / 2;
	width: auto;
	min-width: 0;
}

.ec-filters .wc-block-product-filter-price-slider__right {
	grid-area: 2 / 2 / 3 / 3;
	width: auto;
	min-width: 0;
}

.ec-filters .wc-block-product-filter-price-slider__content input {
	width: 100%;
	min-width: 0;
	box-sizing: border-box;
}

.ec-filters .wc-block-product-filter-price-slider__content input {
	text-align: center;
	direction: ltr;
}

/* The mini-cart drawer slides rather than appears. */
.wc-block-mini-cart__drawer {
	transition: transform 0.32s var(--ec-ease-firm);
}

/* The header sticks from its WRAPPER, not from itself. The template-part
   block renders <div class="wp-block-template-part"> around the header,
   and a sticky element can never leave its parent's box — a parent exactly
   the header's height pins it in place. Measured: at scrollY 600 the header
   sat at -556px while declaring position:sticky. So the wrapper is the
   sticky element, and the header inside it only paints. */
.wp-block-template-part:has(> .ec-head) {
	position: sticky;
	top: var(--ec-banner-h);
	z-index: 40;
}


/* On a phone the bar stacks: name, then price, then availability. */
@media (max-width: 899px) {
	.ec-buybar__meta {
		flex-direction: column;
		align-items: flex-start;
		gap: 0;
	}

	.ec-buybar__name {
		max-width: 100%;
	}

	.ec-buybar__price {
		font-size: var(--ec-fs-sm);
	}
}

/* Three more targets measured short: the category eyebrow on the product
   page (18px), the notice dismiss (16px) and the account form's
   show-password toggle and checkbox. */
.ec-pdp__buy .ec-eyebrow a {
	display: inline-block;
	padding-block: 0.7rem;
	margin-block: -0.7rem;
}

.wc-block-components-notice-banner__dismiss.wc-block-components-button {
	min-width: 44px;
	min-height: 44px;
	padding: 0;
	margin: -14px;
}

.woocommerce-account .show-password-input {
	min-width: 44px;
	min-height: 44px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.woocommerce-account .woocommerce-form__input-checkbox {
	width: 24px;
	height: 24px;
	accent-color: var(--ec-ink);
}

/* WooCommerce sizes the notice dismiss at 16px with a selector this file
   cannot outrank politely. Still measured 16px after the rule above. */
.wc-block-components-notice-banner .wc-block-components-notice-banner__dismiss {
	min-width: 44px !important;
	min-height: 44px !important;
	width: 44px;
	height: 44px;
	padding: 0 !important;
	margin: -12px !important;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

/* =============================================================================
   PART III — THE NIGHT STAGE

   Studied before it was drawn: cowboy.com, apolloscooters.co, super73.com,
   niu.com, store.segway.com and inokim.com (the Israeli competitor), captured
   on 2026-10-07. What they share, and what the paper version lacked:

     · A headline you cannot miss. 70–100px, heavy, three words.
     · The machine on a STAGE, not on a page: a dark ground, a glow behind
       the silhouette (Apollo's line-up tiles, Inokim's night road), a
       reflection under the wheels. A black machine on a dark ground reads
       as a crisp silhouette the moment there is light behind it.
     · The three numbers a buyer compares, as chips on every model (Apollo,
       Super73, Inokim: battery · range · wheel). Not a spec sheet — chips.
     · A trust strip under the hero (Cowboy, NIU, Apollo): four facts.
     · One accent colour on the one action that matters.

   What they have and we do not: lifestyle photography. Nothing below fakes
   it. The atmosphere is light, gradient and reflection on the real Cortez
   cut-outs; the day Eli sends the importer's photo kit, the hero takes a
   photograph and nothing else changes.
   ============================================================================= */

/* ── Ground ──────────────────────────────────────────────────────────────── */

body {
	background:
		radial-gradient(90% 60% at 50% -10%, rgba(204, 255, 0, 0.07) 0%, transparent 60%),
		var(--ec-paper);
}

::selection {
	background-color: var(--ec-lime);
	color: var(--ec-paper);
}

:focus-visible {
	outline-color: var(--ec-lime);
}

.ec-eyebrow--lime {
	color: var(--ec-lime);
	font-weight: 700;
	letter-spacing: 0;
}

/* ── Buttons: the accent is the action ───────────────────────────────────── */

.wp-block-button__link,
.wc-block-components-button,
.woocommerce a.button,
.woocommerce button.button,
.ec-buybar__cta,
.ec-filters .wc-block-product-filters__apply,
.ec-commerce .wc-block-components-checkout-place-order-button,
.ec-commerce .wc-block-cart__submit-button {
	background: var(--ec-lime);
	color: var(--ec-paper);
	border-color: var(--ec-lime);
	font-weight: 700;
}

.wp-block-button__link:hover,
.wc-block-components-button:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.ec-buybar__cta:hover,
.ec-commerce .wc-block-components-checkout-place-order-button:hover,
.ec-commerce .wc-block-cart__submit-button:hover {
	background: #e2ff4d;
	color: var(--ec-paper);
	box-shadow: 0 10px 30px -10px rgba(204, 255, 0, 0.55);
}

.is-style-outline .wp-block-button__link,
.wp-block-button.is-style-outline > .wp-block-button__link,
.ec-buybar__cta--ask,
.wc-block-mini-cart__drawer .wc-block-mini-cart__footer-actions .wc-block-components-button.outlined {
	background: transparent;
	color: var(--ec-ink);
	border-color: var(--ec-hair);
}

.is-style-outline .wp-block-button__link:hover,
.wp-block-button.is-style-outline > .wp-block-button__link:hover,
.ec-buybar__cta--ask:hover {
	background: var(--ec-lift);
	border-color: var(--ec-soft);
	color: var(--ec-ink);
	box-shadow: none;
}

.is-busy::after {
	border-color: rgba(10, 10, 12, 0.3);
	border-top-color: var(--ec-paper);
}

/* ── Header: dark glass ──────────────────────────────────────────────────── */

.ec-head::before {
	background: color-mix(in srgb, var(--ec-paper) 72%, transparent);
	backdrop-filter: saturate(1.2) blur(18px);
}

.ec-head.is-stuck::before {
	background: color-mix(in srgb, var(--ec-paper) 90%, transparent);
}

.wp-block-site-title a {
	font-weight: 700;
	letter-spacing: 0.12em;
}

.ec-head__icon:hover,
.ec-head__icon:focus-visible,
.ec-head__account .wc-block-customer-account__link:hover,
.ec-head__cart .wc-block-mini-cart__button:hover,
.ec-search .wp-block-search__button:hover,
.ec-search .wp-block-search__button:focus-visible {
	background: var(--ec-lift);
}

.wc-block-mini-cart__badge {
	background: var(--ec-lime);
	color: var(--ec-paper);
}

.ec-head__account .wc-block-customer-account__link,
.ec-head__cart .wc-block-mini-cart__button,
.ec-search .wp-block-search__button {
	color: var(--ec-ink);
}

.wp-block-navigation__responsive-container.is-menu-open {
	background: var(--ec-paper);
}

/* ── The hero: a machine under a light ───────────────────────────────────── */

.ec-hero {
	min-height: clamp(620px, 96svh, 980px);
	background:
		radial-gradient(55% 45% at 68% 78%, rgba(204, 255, 0, 0.28) 0%, rgba(204, 255, 0, 0.06) 45%, transparent 70%),
		radial-gradient(70% 60% at var(--ec-lx) 0%, rgba(244, 243, 239, 0.08) 0%, transparent 60%),
		linear-gradient(180deg, var(--ec-paper) 0%, #0e0e12 70%, var(--ec-paper) 100%);
}

/* The road: a floor plane the machine stands on, drawn as a bright
   horizon line fading into the ground, and a faint perspective grid. */
.ec-hero::before {
	content: "";
	position: absolute;
	inset: auto 0 0 0;
	height: 34%;
	background:
		linear-gradient(180deg, transparent 0%, rgba(204, 255, 0, 0.05) 40%, transparent 100%),
		repeating-linear-gradient(90deg, rgba(244, 243, 239, 0.035) 0 1px, transparent 1px 7.5%);
	mask-image: linear-gradient(180deg, transparent, #000 40%, transparent);
	pointer-events: none;
}

.ec-hero::after {
	content: "";
	position: absolute;
	left: 8%;
	right: 8%;
	bottom: 9%;
	height: 1px;
	background: linear-gradient(90deg, transparent, rgba(204, 255, 0, 0.55) 35%, rgba(244, 243, 239, 0.7) 50%, rgba(204, 255, 0, 0.55) 65%, transparent);
	filter: blur(0.5px);
	pointer-events: none;
}

.ec-hero__stage {
	width: clamp(300px, 54vw, 820px);
}

.ec-hero__stage img {
	max-height: min(66svh, 720px);
	filter: drop-shadow(0 24px 30px rgba(0, 0, 0, 0.7)) drop-shadow(0 0 60px rgba(204, 255, 0, 0.12));
	/* The reflection. Blink and WebKit draw it; Firefox simply has no
	   reflection, which is the correct fallback. */
	-webkit-box-reflect: below -6px linear-gradient(transparent 62%, rgba(255, 255, 255, 0.16));
}

.ec-hero__title {
	font-size: clamp(3rem, 9.2vw, 7.6rem);
	font-weight: 900;
	line-height: 0.98;
	letter-spacing: 0;
}

.ec-hero__title em {
	font-weight: 900;
	color: var(--ec-lime);
}

.ec-hero__lead {
	color: var(--ec-soft);
	font-size: clamp(1.05rem, 1.6vw, 1.3rem);
	max-width: 36ch;
}

@media (min-width: 861px) {
	.ec-hero__copy {
		max-width: min(52vw, 720px);
	}
}

@media (max-width: 860px) {
	.ec-hero__copy {
		max-width: none;
	}

	.ec-hero__title {
		font-size: clamp(2.8rem, 14vw, 4.2rem);
	}

	.ec-hero__acts .wp-block-button {
		flex: 1 1 10rem;
	}

	.ec-hero__acts .wp-block-button__link {
		width: 100%;
	}

	.ec-hero::after {
		bottom: 10%;
	}

	.ec-hero__stage {
		width: min(86vw, 460px);
	}
}

/* ── The trust strip ─────────────────────────────────────────────────────── */

.ec-trust {
	list-style: none;
	margin: 0 auto;
	padding: 0;
	max-width: calc(var(--ec-container) - 2 * clamp(1rem, 4vw, 3.375rem));
	width: calc(100% - 2 * clamp(1rem, 4vw, 3.375rem));
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	border-block: 1px solid var(--ec-hair);
}

.ec-trust li + li {
	border-inline-start: 1px solid var(--ec-hair);
}

@media (max-width: 899px) {
	.ec-trust li:nth-child(3) {
		border-inline-start: 0;
	}

	.ec-trust li:nth-child(n+3) {
		border-top: 1px solid var(--ec-hair);
	}
}

@media (min-width: 900px) {
	.ec-trust {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

.ec-trust li {
	display: grid;
	gap: 0.25rem;
	padding: 1.1rem 1.25rem;
}

.ec-trust__k {
	font-size: var(--ec-fs-sm);
	font-weight: 700;
	color: var(--ec-ink);
}

.ec-trust__v {
	font-size: var(--ec-fs-xs);
	color: var(--ec-soft);
}

.ec-trust__v a {
	color: var(--ec-ink);
	display: inline-block;
	padding-block: 0.5rem;
	margin-block: -0.5rem;
}

/* ── Cards: tiles with a light behind the machine ────────────────────────── */

.ec-grid li.wc-block-product {
	position: relative;
	padding: clamp(1rem, 2vw, 1.5rem);
	border-radius: 22px;
	background:
		radial-gradient(70% 45% at 50% 62%, rgba(204, 255, 0, 0.16) 0%, transparent 70%),
		linear-gradient(180deg, #16161b 0%, #0f0f13 100%);
	border: 1px solid var(--ec-hair);
	transition: border-color var(--ec-dur-tap), box-shadow var(--ec-dur-tap);
}

.ec-grid li.wc-block-product:hover {
	border-color: rgba(204, 255, 0, 0.35);
	box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(204, 255, 0, 0.08);
}

/* Scooters and bikes get a different light, so a mixed grid reads as two
   families without a label. */
.ec-grid li.wc-block-product.product_cat-scooters {
	background:
		radial-gradient(70% 45% at 50% 62%, rgba(127, 180, 255, 0.14) 0%, transparent 70%),
		linear-gradient(180deg, #16161b 0%, #0f0f13 100%);
}

.ec-grid li.wc-block-product .wc-block-components-product-image img {
	filter: drop-shadow(0 18px 22px rgba(0, 0, 0, 0.65));
}

.ec-grid li.wc-block-product .wc-block-components-product-image::after {
	background: radial-gradient(50% 50% at 50% 50%, rgba(204, 255, 0, 0.35) 0%, transparent 70%);
}

.wc-block-components-product-title,
.wc-block-components-product-title a {
	font-weight: 700;
	font-size: clamp(1.05rem, 1.7vw, 1.35rem);
}

.wc-block-components-product-price {
	color: var(--ec-ink);
	font-weight: 700;
}

.wc-block-components-product-price del {
	color: var(--ec-soft);
}

.wc-block-components-product-sale-badge {
	background: var(--ec-lime);
	color: var(--ec-paper);
}

/* ── Chips: battery · range · wheel ──────────────────────────────────────── */

.ec-chips {
	list-style: none;
	margin: 0.9rem 0 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
}

.ec-chip {
	display: inline-flex;
	flex-direction: column;
	gap: 0.05rem;
	padding: 0.4rem 0.7rem;
	border-radius: 10px;
	background: rgba(244, 243, 239, 0.06);
	border: 1px solid rgba(244, 243, 239, 0.08);
	min-width: 5.5rem;
}

.ec-chip__label {
	font-size: 0.68rem;
	color: var(--ec-soft);
	line-height: 1.2;
}

.ec-chip__value {
	font-size: var(--ec-fs-sm);
	font-weight: 700;
	color: var(--ec-ink);
	line-height: 1.3;
	font-variant-numeric: tabular-nums;
	unicode-bidi: plaintext;
}

.ec-pdp__buy .ec-chips {
	margin-top: 1.25rem;
}

.ec-pdp__buy .ec-chip {
	padding: 0.6rem 0.9rem;
	min-width: 7rem;
}

.ec-pdp__buy .ec-chip__value {
	font-size: var(--ec-fs-lg);
}

/* ── Departments and sections on the dark ground ─────────────────────────── */

.ec-depts {
	background: var(--ec-hair);
}

.ec-dept {
	background: var(--ec-lift);
	border-radius: 0;
}

a.ec-dept:hover,
a.ec-dept:focus-visible {
	background: #1b1b21;
}

.ec-dept__name {
	font-weight: 800;
	font-size: var(--ec-fs-xl);
}

.ec-dept__go {
	color: var(--ec-lime);
}

.ec-section__note,
.ec-fine,
.ec-crumbs,
.ec-crumbs a {
	color: var(--ec-soft);
}

/* The legend and the store section invert: on a dark site they are the
   bright blocks, which is the rhythm Cowboy runs — dark, light, dark. */
.ec-knows,
.ec-store {
	background: var(--ec-ink);
	color: var(--ec-paper);
}

.ec-knows h2,
.ec-store h2,
.ec-store p,
.ec-store__facts dt,
.ec-store__facts dd {
	color: var(--ec-paper);
}

.ec-knows li {
	border-bottom-color: rgba(10, 10, 12, 0.14);
	color: var(--ec-paper);
}

.ec-store__facts dt,
.ec-store__facts dd {
	border-top-color: rgba(10, 10, 12, 0.14);
}

.ec-store .wp-block-button__link {
	background: var(--ec-paper);
	color: var(--ec-ink);
	border-color: var(--ec-paper);
}

.ec-store .is-style-outline .wp-block-button__link {
	background: transparent;
	color: var(--ec-paper);
	border-color: rgba(10, 10, 12, 0.3);
}

.ec-store .wp-block-button__link:hover {
	background: #000;
	color: var(--ec-ink);
	box-shadow: none;
}

.ec-store__unconfirmed {
	color: #8a5f18;
}

.ec-lab {
	background: var(--ec-lift);
	border-color: var(--ec-hair);
}

.ec-lab li {
	border-bottom-color: var(--ec-hair);
}

/* ── The product page stage ──────────────────────────────────────────────── */

.ec-pdp__stage {
	background:
		radial-gradient(60% 50% at 50% 78%, rgba(204, 255, 0, 0.26) 0%, rgba(204, 255, 0, 0.05) 45%, transparent 70%),
		radial-gradient(70% 60% at var(--ec-lx) 0%, rgba(244, 243, 239, 0.07) 0%, transparent 60%),
		linear-gradient(180deg, #121216 0%, #0c0c10 100%);
	border: 1px solid var(--ec-hair);
	border-radius: 24px;
}

.ec-pdp__stage .woocommerce-product-gallery__image img {
	filter: drop-shadow(0 24px 30px rgba(0, 0, 0, 0.7));
	-webkit-box-reflect: below -4px linear-gradient(transparent 66%, rgba(255, 255, 255, 0.14));
}

.ec-pdp__stage .woocommerce-product-gallery__trigger {
	background: var(--ec-lift);
	border-color: var(--ec-hair);
}

.ec-pdp__title {
	font-size: clamp(2.4rem, 5vw, 4.4rem);
}

.ec-pdp__price {
	font-weight: 700;
	font-size: var(--ec-fs-2xl);
}

.ec-pdp__assure li::before {
	background: var(--ec-lime);
}

.ec-pdp__spec-in .ec-spec-table th,
.ec-pdp__spec-in .ec-spec-table td {
	border-top-color: var(--ec-hair);
}

.ec-avail__notice {
	background: var(--ec-lift);
}

/* ── Forms, filters, cart and the rest, on the dark ground ───────────────── */

.woocommerce input[type="text"],
.woocommerce input[type="email"],
.woocommerce input[type="tel"],
.woocommerce input[type="number"],
.woocommerce input[type="password"],
.woocommerce textarea,
.woocommerce select,
.wc-block-components-text-input input,
.ec-commerce .wc-block-components-text-input input,
.ec-filters input[type="text"],
.ec-filters input[type="number"],
.ec-catalogue__tools select,
.wc-block-catalog-sorting select,
.ec-pdp__form .quantity .qty {
	background: var(--ec-lift);
	border-color: var(--ec-hair);
	color: var(--ec-ink);
	color-scheme: dark;
}

.ec-filters .wc-block-product-filter-chips__item {
	background: var(--ec-lift);
	border-color: var(--ec-hair);
}

.ec-filters .wc-block-product-filter-chips__item[aria-checked="true"],
.ec-filters .wc-block-product-filter-chips__item[aria-pressed="true"],
.ec-filters .wc-block-product-filter-chips__item.is-selected,
.ec-filters .wc-block-product-filter-removable-chips__item,
.ec-pages .page-numbers.current {
	background: var(--ec-lime);
	border-color: var(--ec-lime);
	color: var(--ec-paper);
}

.ec-filters .wc-block-product-filter-price-slider__range input[type="range"],
.ec-filters .wc-block-product-filter-checkbox-list__input,
.ec-commerce .wc-block-components-radio-control__input,
.ec-commerce .wc-block-components-checkbox input {
	accent-color: var(--ec-lime);
}

.ec-filters .wc-block-product-filters__open-overlay,
.ec-filters .wc-block-product-filters__overlay-dialog,
.ec-filters .wc-block-product-filters__overlay-footer {
	background: var(--ec-lift);
	color: var(--ec-ink);
}

.ec-filters .wc-block-product-filters__overlay-dialog {
	background: var(--ec-paper);
}

.ec-commerce .wc-block-components-sidebar-layout .wc-block-components-sidebar,
.ec-commerce .wc-block-cart__sidebar,
.woocommerce-account .woocommerce-form-login,
.woocommerce-account .woocommerce-form-register,
.wc-block-mini-cart__drawer,
.wc-block-mini-cart__drawer .wc-block-mini-cart__footer {
	background: var(--ec-lift);
	border-color: var(--ec-hair);
	color: var(--ec-ink);
}

.wc-block-mini-cart__drawer {
	background: var(--ec-paper);
}

.woocommerce-message,
.woocommerce-info,
.woocommerce-error,
.wc-block-components-notice-banner {
	background: var(--ec-lift);
	color: var(--ec-ink);
	border-inline-start-color: var(--ec-lime);
}

.ec-buybar {
	background: color-mix(in srgb, var(--ec-paper) 88%, transparent);
	border-top-color: var(--ec-hair);
}

.ec-whats {
	background: var(--ec-lime);
	color: var(--ec-paper);
	box-shadow: 0 12px 28px -10px rgba(204, 255, 0, 0.5);
}

.ec-whats__label {
	background: var(--ec-ink);
	color: var(--ec-paper);
}

.ec-foot,
.wp-block-site-footer {
	border-top-color: var(--ec-hair);
}

.ec-foot h2 {
	font-weight: 700;
	font-size: var(--ec-fs-base);
}

/* The gallery used to carry the lit-stage gradient itself, at a higher
   specificity than the stage column's reset — on the dark ground that
   painted a boxed rectangle behind the machine. Measured, then outranked. */
.woocommerce div.product .ec-pdp__stage .woocommerce-product-gallery {
	background: none;
	padding: 0;
}

/* Chips in a card line up as one row of three equal cells, so a grid of
   cards reads as a table without ruling lines. */
.ec-grid .ec-chips {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0.4rem;
}

.ec-grid .ec-chip {
	min-width: 0;
	padding-inline: 0.55rem;
}

/* A chip exists to show a number; it must never cut one short. Values
   wrap rather than ellipsis — measured, "48V/15.6A" was rendering as
   "48V/15…" in a three-across card. */
.ec-grid .ec-chip__value {
	white-space: normal;
	overflow-wrap: anywhere;
	font-size: 0.8rem;
}

/* ── Fixes from looking at the night stage ───────────────────────────────── */

/* The product's short description on this catalogue is the same battery
   and range the chips beneath it show. Said once, as chips. A product whose
   summary says something else keeps it: this only applies when chips
   follow. */
.ec-pdp__summary:has(+ .ec-chips) {
	display: none;
}

.ec-pdp__buy .ec-chips {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0.5rem;
	max-width: 30rem;
}

.ec-pdp__buy .ec-chip {
	min-width: 0;
}

/* The catalogue and the product page are working pages: the visitor came
   for the products, not for air under the header. */
.ec-section.ec-catalogue,
.ec-section.ec-pdp-page {
	padding-top: clamp(1.5rem, 3vw, 2.5rem);
}
