/* ==========================================================================
   FRONT PAGE — HERO
   --------------------------------------------------------------------------
   Loaded only on the front page (see inc/enqueue.php).

   Mobile-first: a single stacked column below 1024px, then the Figma 6/6 split.
   The hero carries its own 12-column grid with a 24px gap taken from the Figma
   reference — deliberately not --grid-gap (80px), which stays untouched for the
   global layout.

   Figma-specific measurements (48px heading, 380px card, 420px bottle area)
   live here as component values rather than becoming global tokens.
   ========================================================================== */

.home-hero {
	position: relative;
	/* Keeps the negative z-index background layer inside the hero's own
	   stacking context rather than sliding behind the page. */
	isolation: isolate;
	overflow: hidden;
	padding-block: var(--space-lg);
}

/* --------------------------------------------------------------------------
   BACKGROUND

   A layer, not the container. The photograph and its overlay sit behind the
   grid, so softening the image never touches the heading, card or buttons.
   -------------------------------------------------------------------------- */

.home-hero__bg {
	position: absolute;
	inset: 0;
	z-index: -1;
	background-color: var(--color-surface-light);
}

.home-hero__bg-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

.home-hero__bg::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(
		180deg,
		color-mix(in srgb, var(--color-cream) 84%, transparent) 0%,
		color-mix(in srgb, var(--color-cream) 74%, transparent) 100%
	);
}

/* --------------------------------------------------------------------------
   GRID
   -------------------------------------------------------------------------- */

.home-hero__inner {
	position: relative;
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--space-2xl) var(--space-md);
	align-items: center;
}

/* --------------------------------------------------------------------------
   LEFT CONTENT
   -------------------------------------------------------------------------- */

/*
 * Below 1024 the hero is one stacked column with the product card centred
 * under it, so the copy is centred too: as a left-set block over a centred
 * card, with full-width buttons centring their own labels, the phone layout
 * read as leaning left. Each child keeps its own max-width and is centred as a
 * block (align-items), and the lines inside it are centred and balanced
 * (text-align, text-wrap) — a ragged centred paragraph reads as an accident.
 * The desktop split restores the frame's left-set column (see >=1024).
 */
.home-hero__content {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--space-md);
	min-width: 0;
	text-align: center;
}

.home-hero__badge {
	margin: 0;
	padding: 9px 25px;
	border: 1px solid color-mix(in srgb, var(--color-primary) 20%, transparent);
	border-radius: var(--radius-button);
	background-color: color-mix(in srgb, var(--color-primary) 10%, transparent);
	font-family: var(--font-ui);
	font-weight: 500;
	font-size: 12px;
	line-height: 16px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--color-primary);
}

/* Hero-specific display size. The global .type-display scale is unchanged. */
.home-hero__title {
	max-width: 576px;
	margin: 0;
	text-wrap: balance;
	font-family: var(--font-display);
	font-size: 32px;
	line-height: 40px;
	letter-spacing: -0.01em;
}

.home-hero__title-main,
.home-hero__title-accent {
	display: block;
}

.home-hero__title-main {
	font-weight: 700;
	font-style: normal;
	color: var(--color-ink);
}

.home-hero__title-accent {
	font-weight: 400;
	font-style: italic;
	color: var(--color-primary-dark);
}

.home-hero__description {
	max-width: 448px;
	margin: 0;
	text-wrap: balance;
	font-family: var(--font-body);
	font-size: 18px;
	line-height: 29.25px;
	color: var(--color-text);
}

/* align-items: flex-start is what keeps the buttons at their intrinsic widths
   on desktop — the screenshot shows two differently sized buttons, and a
   stretch default would run both across the whole six-column area. Below 768px
   the global .btn is width:100%, so they still go full width there. */
.home-hero__actions {
	display: flex;
	flex-direction: column;
	align-items: center;
	align-self: stretch;
	gap: var(--space-md);
	padding-top: var(--space-md);
}

/* Composes with .btn / .btn--primary / .btn--outline; only the hero's own type
   treatment is restated. */
.home-hero__cta {
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.05em;
}

/* Full width below 768, the button's 80px side padding is not needed to size
   it — and at 375 it left 167px for a 230px label, which broke "Explore the
   collection" over two lines and made that button twice the other's height. */
@media (max-width: 767px) {

	.home-hero__cta {
		padding-inline: var(--space-md);
	}
}

/* Stacked and centred on a tablet, the two buttons keep content widths (249 and
   168 at 768) and read as mismatched. The group shrinks to the wider one and
   both stretch to it — one column, one width, still centred. */
@media (min-width: 768px) and (max-width: 1023px) {

	.home-hero__actions {
		align-self: center;
		align-items: stretch;
	}
}

/* --------------------------------------------------------------------------
   PRODUCT CARD
   -------------------------------------------------------------------------- */

/* No reserved foot below 1024 any more: the 44px held the floating origin
   panel, which hung below the card here and is gone (client, 04.11.2026). */
.home-hero__product {
	display: flex;
	justify-content: center;
	min-width: 0;
}

.home-hero__card {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: var(--space-lg);
	width: 100%;
	max-width: 380px;
	padding: var(--space-lg);
	border-radius: var(--radius-button);
	box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/*
 * The frosted pane, as its own layer rather than on the card. Identical to
 * paint: same box, same border, same fill, same blur. (It was split off so the
 * blur and the floating origin panel's animation did not share a rendering
 * surface; the panel is gone since 04.11.2026, the layer stays as drawn.)
 */
.home-hero__card-surface {
	position: absolute;
	inset: 0;
	border: 1px solid color-mix(in srgb, var(--color-cream) 55%, transparent);
	border-radius: inherit;
	background-color: color-mix(in srgb, var(--color-cream) 60%, transparent);
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
}

/* A button now, not a span — the geometry below is unchanged. */
.home-hero__heart {
	position: absolute;
	top: 25px;
	left: 25px;
	padding: 0;
	border: 0;
	cursor: pointer;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: var(--radius-pill);
	background-color: color-mix(in srgb, var(--color-cream) 80%, transparent);
	color: var(--color-primary-dark);
	box-shadow: 0 8px 8px rgba(0, 0, 0, 0.05);
}

/*
 * The mark reads as filled in the Figma frame, and now also means "saved".
 * The filled treatment is kept as the resting appearance so the card is
 * unchanged optically.
 */
.home-hero__heart svg {
	fill: currentColor;
	stroke: none;
}

/*
 * Saved. Everywhere else on the site an unsaved heart is an outline and a saved
 * one is filled, so filling it is the whole signal. Here the resting mark is
 * already filled — the frame draws it that way in #770003 — and the shared
 * wishlist tint could therefore only move it to #A20007. Two dark reds at 20px
 * is not a state change anyone can see, which is why this control reads as
 * doing nothing even though it saves correctly.
 *
 * Inverting the button says it plainly: the plate fills with the primary and
 * the heart goes cream. Nothing moves — same 40px, same radius, same position,
 * same resting appearance — and the frame's own default state is untouched,
 * since the design defines no saved state for this control to contradict.
 */
.home-hero .home-hero__heart[aria-pressed='true'] {
	background-color: var(--color-primary);
	color: var(--color-cream);
}

/* --------------------------------------------------------------------------
   BOTTLE

   contain, never cover: real bottle photography must never be cropped. The
   max-* pair with auto dimensions scales the image inside the area while
   preserving its aspect ratio.
   -------------------------------------------------------------------------- */

.home-hero__bottle {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	height: 260px;
}

.home-hero__glow {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 256px;
	height: 256px;
	transform: translate(-50%, -50%);
	border-radius: var(--radius-pill);
	background-color: color-mix(in srgb, var(--color-primary) 5%, transparent);
	filter: blur(20px);
}

.home-hero__bottle-link {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100%;
	max-width: 100%;
}

.home-hero__bottle-image {
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
}

/* --------------------------------------------------------------------------
   PRODUCT DETAILS
   -------------------------------------------------------------------------- */

/* Positioned so it paints after .home-hero__card-surface, which is absolute. */
.home-hero__details {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: var(--space-xs);
	text-align: center;
}

/* Libre Caslon Text rather than Figma's Playfair 400: the CVI assigns product
   headings to Libre Caslon (§3.1), and Playfair is only loaded at 400 in
   italic, so upright 400 would be synthesised. */
.home-hero__product-name {
	margin: 0;
	font-family: var(--font-heading);
	font-weight: 400;
	font-size: 24px;
	line-height: 32px;
	color: var(--color-ink);
}

.home-hero__product-name a {
	color: inherit;
	text-decoration: none;
	transition: color var(--transition-base);
}

.home-hero__product-name a:hover {
	color: var(--color-primary);
}

.home-hero__product-meta {
	margin: 0;
	font-family: var(--font-ui);
	font-weight: 500;
	font-size: 12px;
	line-height: 16px;
	text-transform: uppercase;
	color: var(--color-text);
}

.home-hero__price {
	display: flex;
	align-items: baseline;
	justify-content: center;
	gap: 10px;
	margin: 0;
	padding-top: var(--space-sm);
}

.home-hero__price-value {
	font-family: var(--font-ui);
	font-weight: 700;
	font-size: 24px;
	line-height: 32px;
	color: var(--color-ink);
}

.home-hero__price.is-sale .home-hero__price-value {
	color: var(--color-primary-dark);
}

/* WooCommerce wraps prices in its own markup; keep struck-through originals
   legible without restyling the shop globally. */
.home-hero__price-value del {
	margin-right: 6px;
	font-size: 16px;
	color: var(--color-text);
	opacity: 0.7;
}

.home-hero__price-value ins {
	text-decoration: none;
}

.home-hero__volume {
	font-family: var(--font-ui);
	font-weight: 500;
	font-size: 12px;
	color: var(--color-text-secondary);
}

/*
 * The frame leaves 20.5px between the price's ink and the top of this control.
 * The 24px margin here sat on top of the details' own 8px gap, which put 37px
 * there — the price and its button read as two separate blocks rather than one
 * buying decision.
 */
.home-hero__cart {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: var(--space-sm);
	margin-top: var(--space-xs);
	padding: var(--space-md);
	border-radius: var(--radius-button);
	background-color: var(--color-ink);
	color: var(--color-cream);
	font-family: var(--font-ui);
	font-weight: 400;
	font-size: 16px;
	line-height: 24px;
	text-transform: uppercase;
	text-decoration: none;
	transition:
		background-color var(--transition-base),
		transform var(--transition-base);
}

/* Same ink family as .btn--dark, so the same red lift — never the body brown. */
.home-hero__cart:hover {
	background-color: var(--color-primary);
	color: var(--color-cream);
}

/* The .btn family presses on click; this control is the same gesture. */
.home-hero__cart:active {
	transform: scale(0.98);
}

/*
 * WooCommerce appends its own "view cart" link after a successful AJAX add.
 * It sits in the card's bottom padding, under the button, out of the flow:
 * in the flow it added 24px plus the 8px gap to the card, so after one click
 * the card grew 40px, its foot passed the fold on a short laptop (631 -> 671
 * at 1414x645) and the copy column beside it re-centred 20px lower (QA-A F1,
 * 04.11.2026). Out of the flow the card and the column do not move. 24px tall
 * (the minimum target), centred in the 48px padding; the short-laptop block
 * puts it in that block's 24px padding.
 */
.home-hero__details .added_to_cart {
	position: absolute;
	top: calc(100% + 12px);
	left: 50%;
	transform: translateX(-50%);
	display: inline-flex;
	align-items: center;
	min-height: 24px;
	margin: 0;
	white-space: nowrap;
	font-family: var(--font-meta);
	font-size: 12px;
	color: var(--color-text);
}

/* --------------------------------------------------------------------------
   HERO CTAs

   No hero-specific hover. The pair used to trade places — the filled button
   emptying out to --color-primary-wash — but that wash is 5% red on
   transparent, and over the hero photograph it reads as brown rather than as
   a lighter red. The shared .btn--primary / .btn--outline hovers apply here
   like everywhere else; .btn already transitions all of these properties.
   -------------------------------------------------------------------------- */

/* --------------------------------------------------------------------------
   ORIGIN FLOATER — removed (client, 04.11.2026)

   The "Päritolu" panel that floated over the card's lower-left corner, across
   the price area, with its 3s float animation and reduced-motion rule. On 02.11
   the client had confirmed the overlap as intended; on 04.11 the client asked
   for the panel to be removed. The origin is still the line under the product
   name (.home-hero__product-meta) and on cards, the product page and filters.
   -------------------------------------------------------------------------- */

/* --------------------------------------------------------------------------
   TABLET (>=768)
   -------------------------------------------------------------------------- */

@media (min-width: 768px) {

	.home-hero {
		padding-block: var(--space-xl);
	}

	.home-hero__title {
		font-size: 40px;
		line-height: 48px;
	}

	.home-hero__bottle {
		height: 340px;
	}

}

/* --------------------------------------------------------------------------
   DESKTOP (>=1024) — the Figma 6/6 split

   The card and bottle stay smaller than their 1280 sizes through this range:
   at 1024 the container is 896px, so a full-width 380px card would crowd the
   heading and drag the floater into the body copy.
   -------------------------------------------------------------------------- */

@media (min-width: 1024px) {

	.home-hero__inner {
		grid-template-columns: repeat(12, minmax(0, 1fr));
		column-gap: var(--space-md);
	}

	.home-hero__content {
		grid-column: 1 / span 6;
		align-items: flex-start;
		text-align: start;
	}

	.home-hero__actions {
		align-items: flex-start;
	}

	/* Balancing is for the centred stack; the left-set column keeps the frame's
	   own line breaks. */
	.home-hero__title,
	.home-hero__description {
		text-wrap: wrap;
	}

	.home-hero--no-product .home-hero__content {
		grid-column: 1 / span 8;
	}

	/* 24px under the card. Added (final QA 01.11, V01) while the origin panel
	   hung below the card; kept since, as part of the hero's proportions that
	   the large-screen scaling was measured with (5b4bf08), and kept after the
	   panel's removal (04.11.2026) so normal desktops do not move. */
	.home-hero__product {
		grid-column: 7 / span 6;
		justify-content: flex-end;
		padding-bottom: 24px;
	}

	/* The wash is heaviest over the text column and clears quickly after it,
	   so the vineyard stays vivid across the centre and right. Stop positions
	   are tuned to where the body copy actually ends at each range — measured,
	   not guessed: at 1024 it reaches ~56% of the viewport, at 1280+ only ~36%. */
	.home-hero__bg::after {
		background: linear-gradient(
			90deg,
			color-mix(in srgb, var(--color-cream) 92%, transparent) 0%,
			color-mix(in srgb, var(--color-cream) 84%, transparent) 52%,
			color-mix(in srgb, var(--color-cream) 50%, transparent) 78%,
			color-mix(in srgb, var(--color-cream) 36%, transparent) 100%
		);
	}

	.home-hero__card {
		max-width: 340px;
	}
}

/* --------------------------------------------------------------------------
   LARGE DESKTOP (>=1280) — full Figma geometry
   -------------------------------------------------------------------------- */

@media (min-width: 1280px) {

	.home-hero__inner {
		min-height: 778px;
	}

	.home-hero__bg::after {
		background: linear-gradient(
			90deg,
			color-mix(in srgb, var(--color-cream) 92%, transparent) 0%,
			color-mix(in srgb, var(--color-cream) 82%, transparent) 35%,
			color-mix(in srgb, var(--color-cream) 44%, transparent) 65%,
			color-mix(in srgb, var(--color-cream) 32%, transparent) 100%
		);
	}

	.home-hero__title {
		font-size: 48px;
		line-height: 56px;
	}

	.home-hero__actions {
		padding-top: var(--space-lg);
	}

	/*
	 * 380 is the frame's own card and stays exactly that at 1440. Above it the
	 * card gains a pixel for every 12 of viewport and settles at 420 by 1920 —
	 * a tenth wider, the smallest step that reads as deliberate against a copy
	 * column that has itself grown to 852 there. Nothing inside is scaled: the
	 * bottle keeps its 420 height and its own intrinsic width, the padding, the
	 * price row and the button are untouched, and the extra width is breathing
	 * room. The card stays flush to the rail's right edge at every width.
	 */
	.home-hero__card {
		max-width: clamp(380px, calc(380px + (100vw - 1440px) / 12), 420px);
	}

	.home-hero__bottle {
		height: 420px;
	}
}

/* ==========================================================================
   SHARED HOMEPAGE SECTION FURNITURE
   --------------------------------------------------------------------------
   Every section below the hero shares the same rhythm: a heading row with an
   optional "see all" action on the right, then the section's own content.
   ========================================================================== */

.home-section {
	padding-block: var(--space-2xl);
}

.home-section__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: var(--space-md);
	margin-bottom: var(--space-lg);
	/*
	 * Measured on both sides the same way: from the heading's ink to the rule
	 * is 65px in the design and was 76 here, on every section that has a head.
	 * The heading's own ink starts in the right place, so the surplus was all
	 * in this padding.
	 */
	padding-bottom: var(--space-sm);
	border-bottom: 1px solid var(--color-border);
}

/*
 * Section titles are a homepage size; the global .type-h2 scale is unchanged.
 *
 * In capitals — UUED TOOTED, MEGA DIIL, POPULAARSED TOOTED, AVASTA KOKTEILE,
 * BLOGI (client, 3.11.2026 p7) — from here, not the template: the words stay
 * sentence case in the markup for screen readers. Still the brand serif, but
 * a size down at every step (20 / 28 / 36 where it was 28 / 36 / 48): set in
 * capitals at 48 "Populaarsed tooted" ran 600px wide and the band read as a
 * poster, against a client who finds the page zoomed in (p11). Capitals need
 * a little air, so 0.04em tracking.
 *
 * On a phone the two long names take two lines beside "Vaata kõiki" (at 390
 * "POPULAARSED TOOTED" needs 270 of the 232 left; at 320 "AVASTA KOKTEILE"
 * too). They did at 28px in lower case as well; balanced, they break between
 * the words rather than leaving one word alone.
 */
.home-section__title {
	margin: 0;
	font-family: var(--font-heading);
	font-weight: 400;
	font-size: 20px;
	line-height: 1.25;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	text-wrap: balance;
	color: var(--color-ink);
}

/*
 * Weight 500 at 0.1em. Measured at 298% against the UI Final, "VAATA KÕIKI"
 * inks 82.2px wide at a stroke density of 0.252; brown on cream at the same
 * zoom and threshold, Work Sans 12/500/0.1em renders 82.2 at 0.245, and the
 * 12/600/0.08em this carried rendered 80.9 at 0.307 — a quarter heavier, which
 * is what read as bold. 400 undershoots (0.203).
 *
 * And on the row's foot rather than the heading's baseline: the design sets
 * the link's baseline 20px above the rule where the heading's is 27, and
 * baseline alignment lifted it to the heading's 28. Bottom-aligned, its baseline
 * lands 19.5px above the rule.
 */
.home-section__more {
	flex-shrink: 0;
	align-self: flex-end;
	font-family: var(--font-ui);
	font-weight: 500;
	font-size: 12px;
	line-height: 16px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--color-text);
	text-decoration: none;
	transition: color var(--transition-base);
}

.home-section__more:hover {
	color: var(--color-primary);
}

/* ==========================================================================
   PRODUCT CARD (shared: Uued tooted stack + Populaarsed grid)
   ========================================================================== */

/*
 * No outline and no fill of its own. The design gives the surface to the image
 * plate alone and stands the writing on the page ground beside or beneath it —
 * a card drawn as a bordered box put a line around every product that the
 * design does not have.
 */
.product-card {
	display: flex;
	min-width: 0;
}

.product-card__media {
	position: relative;
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: var(--radius-button);
	background-color: var(--color-surface-light);
}

/*
 * The image and its heart travel together, so the wrapper is what is
 * positioned and what moves. Stack cards size it to the plate; grid cards let
 * it stretch across the column, as the plate itself used to.
 */
.product-card__visual {
	position: relative;
	flex-shrink: 0;
}

/*
 * Hover is the catalogue card's, not a second one: the plate lifts 3px while
 * the card is hovered, the name reddens only under the pointer, and the cart
 * button darkens. This card used to redden its whole title on card hover
 * instead, which made the homepage and the Vein archive answer the same
 * gesture two different ways.
 *
 * Pointer devices only — on touch :hover latches after a tap and the plate
 * would sit lifted until something else was touched. A translate, so nothing
 * beside the card reflows.
 */
@media (hover: hover) and (pointer: fine) {

	.product-card__visual,
	.home-new__lead-visual {
		transition: transform var(--transition-base);
	}

	.product-card:hover .product-card__visual,
	.home-new__lead:hover .home-new__lead-visual {
		transform: translateY(-3px);
	}
}

@media (prefers-reduced-motion: reduce) {

	.product-card:hover .product-card__visual,
	.home-new__lead:hover .home-new__lead-visual {
		transform: none;
	}
}

/* contain, never cover — bottle photography is never cropped. */
.product-card__image {
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
}

/*
 * The sale mark leads the price row, the same place the catalogue card puts
 * it. Its size and colour come from components/sale-badge.css, so the mark is
 * identical here, on the catalogue card and on the product page.
 */

/*
 * Flush with the plate on every side — measured, the eyebrow's first letter and
 * the action's right edge line up with the plate's own edges.
 */
.product-card__body {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
	padding: var(--space-md) 0 0;
}

/*
 * Price on the left, action on the right, one line, held at the card's foot so
 * a two-line product name lengthens the card rather than lifting its controls.
 */
.product-card__foot {
	display: flex;
	/* Wraps rather than overflowing: where a card's writing is too narrow for
	   price and control side by side — a long reduced price, a phone — the
	   control keeps its size and drops beneath the price. */
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0 var(--space-sm);
	margin-top: auto;
	/* Measured: 25px from the name's last line to the price, where 16 here put
	   35. The rest of the card's rhythm already matches to the pixel. */
	padding-top: var(--space-xs);
}

/*
 * Sized off the UI Final rather than by eye: "BURGUNDY" measures 74px wide
 * there, which this face sets at 12px, not the 10 it carried.
 */
.product-card__origin {
	margin: 0;
	font-family: var(--font-ui);
	font-weight: 500;
	font-size: 12px;
	line-height: 16px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--color-text);
}

.product-card__title {
	margin: 0;
	font-family: var(--font-heading);
	/* The global h3 (.type-h3) is italic; product names are upright. */
	font-style: normal;
	font-weight: 400;
	font-size: 16px;
	line-height: 22px;
	color: var(--color-ink);
}

.product-card__title a {
	color: inherit;
	text-decoration: none;
	transition: color var(--transition-base);
}

.product-card__title a:hover {
	color: var(--color-primary);
}

.product-card__price {
	display: flex;
	align-items: baseline;
	/* Badge to price and price to volume, as the catalogue card spaces them —
	   measured the same on both frames. */
	gap: 4px 8px;
	margin: 0;
	flex-wrap: wrap;
	/* A basis about one price line wide: the full-width deposit line inside
	   would otherwise make the block as wide as the card and push the button
	   beneath it even where both fit side by side. */
	flex: 1 1 140px;
	min-width: 0;
}

/*
 * Ink, not red. The frame draws a plain price in #1B1C1C and keeps red for a
 * price that is actually reduced. Which of the two applies is decided in PHP
 * from WC_Product::is_on_sale() and arrives as .is-sale — see
 * avallone_price_state_class().
 */
.product-card__price-value {
	/*
	 * Inter 18/700 — the catalogue card's price. Measured at 217% on the UI
	 * Final, "500 €" in this stack and "285 €" on a Vein card set the same ink,
	 * 50 x 13.4px, and Inter 18/700 renders 49.8 x 13.4 where the 16px Work
	 * Sans this carried rendered 11px tall. The design draws one card price at
	 * every card size, so this is that price rather than a homepage variant.
	 */
	font-family: var(--font-meta);
	font-weight: 700;
	font-size: 18px;
	line-height: 26px;
	color: var(--color-ink);
}

.product-card__price.is-sale .product-card__price-value {
	color: var(--color-primary-dark);
}

/*
 * WooCommerce separates thousands with a plain space, so a narrow card would
 * otherwise break "4 500,00 €" after the "4". Each amount stays on one line and
 * the old and new price wrap against each other instead.
 */
.product-card__price-value del,
.product-card__price-value ins,
.product-card__price-value .woocommerce-Price-amount {
	white-space: nowrap;
}

.product-card__price-value del {
	margin-right: 4px;
	font-size: 12px;
	font-weight: 500;
	color: var(--color-text);
	opacity: 0.7;
}

.product-card__price-value ins {
	text-decoration: none;
}

.product-card__volume {
	/* Inter beside an Inter price, in the body brown at full strength: the
	   frame's "75cl" samples #5B403C exactly, where 60% opacity washed it out. */
	font-family: var(--font-meta);
	font-weight: 500;
	font-size: 11px;
	color: var(--color-text);
	/* "75cl · 9,00 €/L" moves as one piece: in a narrow card (related products
	   on a phone) it broke after the dot and left "75cl ·" alone (V11). */
	white-space: nowrap;
}

/*
 * The deposit note on its own line under the price and volume (usertest
 * 31.10, finding 3): "1,20 €  33cl · 3,64 €/L", then "Hinnale lisandub pant
 * 0,10 €". Same face and size as the volume, one step quieter.
 */
.product-card__deposit {
	flex-basis: 100%;
	margin-top: -2px;
	font-family: var(--font-meta);
	font-weight: 400;
	font-size: 11px;
	line-height: 1.4;
	color: var(--color-text-secondary);
}

.product-card__deposit .woocommerce-Price-amount {
	white-space: nowrap;
}

.product-card__cart {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 4px;
	align-self: flex-start;
	/* Never narrower than its contents, as the catalogue's control: on a
	   narrow card the price beside it wraps instead. */
	flex-shrink: 0;
	white-space: nowrap;
	margin-top: var(--space-xs);
	/*
	 * The frame draws one card control, 77 x 31.5, wherever a card appears —
	 * the homepage stack, Populaarsed, the catalogue and related products all
	 * measure the same. This one was 36 tall on a heavier, smaller label.
	 */
	min-height: 32px;
	padding: 6px 16px;
	border-radius: var(--radius-button);
	background-color: var(--color-primary);
	color: var(--color-on-dark);
	font-family: var(--font-ui);
	font-weight: 500;
	font-size: 12px;
	line-height: 18px;
	/*
	 * Untracked. Measured at 217% on both the homepage stack and a Vein card:
	 * "LISA" sets 24.4px wide and the cart 14.7px, 5.5px apart, in a 77px
	 * control. 0.05em tracking made the word 26.7 and the 14px cart and 6px
	 * gap made the icon look lighter beside it; the cart is now drawn at 15
	 * and sits 4px from the word, which lands the control at 77.
	 */
	letter-spacing: 0;
	text-transform: uppercase;
	text-decoration: none;
	transition: background-color var(--transition-base);
}

/* The mark keeps its size when a narrow card squeezes the control: as a flex
   item it would otherwise shrink, and at 375 it was drawn 6.5px wide by 15 tall. */
.product-card__cart svg {
	flex-shrink: 0;
}

.product-card__cart:hover {
	background-color: var(--color-primary-dark);
	color: var(--color-on-dark);
}

.product-card__cart--link {
	background-color: transparent;
	border: 1px solid var(--color-primary);
	color: var(--color-primary);
}

.product-card__cart--link:hover {
	background-color: var(--color-primary-wash);
	color: var(--color-primary);
}

/* WooCommerce appends its own view-cart link after a successful AJAX add. */
.product-card .added_to_cart {
	margin-top: 4px;
	font-family: var(--font-meta);
	font-size: 11px;
	color: var(--color-text);
}

/* Stack variant: image beside the text, used next to the featured product. */
.product-card--stack {
	flex-direction: row;
	align-items: stretch;
}

.product-card--stack .product-card__visual {
	align-self: flex-start;
}

/* A smaller mark on the 104px plate the stack draws below 1024; from there the
   plate is 206 and takes the standard one. */
.product-card--stack .card-wishlist {
	inset-block-start: var(--space-xs);
	inset-inline-end: var(--space-xs);
	width: 32px;
	height: 32px;
}

@media (min-width: 1024px) {

	.product-card--stack .card-wishlist {
		width: 36px;
		height: 36px;
	}
}

/*
 * The same portrait plate as the grid variant, and here it is what gives the
 * card its height: measured, the design's stack plate is 3:4 and the writing
 * beside it stops well short of the foot. Without a ratio the plate merely
 * stretched to the text, which left these two cards half the height they are
 * drawn at.
 */
.product-card--stack .product-card__media {
	align-self: flex-start;
	width: 104px;
	aspect-ratio: 3 / 4;
	padding: var(--space-xs);
}

/*
 * Beside the plate rather than beneath it, so the flush alignment the grid
 * variant wants is wrong here: measured, the writing stands 24px clear of the
 * plate's right edge, level with its top, and the price row lands on its foot.
 */
.product-card--stack .product-card__body {
	flex: 1 1 auto;
	justify-content: flex-start;
	padding: 0 0 0 var(--space-md);
}

/* Grid variant: image above the text, used four-up. */
.product-card--grid {
	flex-direction: column;
}

/*
 * Portrait, not landscape. Measured off the UI Final in both places this card
 * appears — the homepage's popular row and the Vein archive grid — the plate is
 * about 310 wide by 410 tall in a 1440 layout. The fixed 220px here made it
 * wider than tall, which left a standing bottle floating in a letterbox and cut
 * roughly 190px out of every row it appears in.
 */
.product-card--grid .product-card__media {
	width: 100%;
	aspect-ratio: 3 / 4;
	padding: var(--space-sm);
}

/*
 * The bottle fills its plate (contain: never cropped) instead of showing at
 * the file's natural width: with width/height auto the picture stopped at
 * 300px while the plate grew to 440px on a large screen, most visibly in
 * Safari and Firefox (usertest 31.10, finding 2). Same rule as the catalogue
 * card. Pinned inside the plate rather than height: 100%, which WebKit
 * resolves against the picture instead of the plate's aspect ratio and so
 * made Safari's plates 32px taller than everyone else's.
 */
.product-card--grid .product-card__image {
	position: absolute;
	inset: var(--space-sm);
	width: calc(100% - var(--space-sm) * 2);
	height: calc(100% - var(--space-sm) * 2);
	max-width: none;
	max-height: none;
	object-fit: contain;
}

.product-card--grid .product-card__body {
	flex: 1 1 auto;
}

/*
 * Product names run to one or two lines, which would otherwise leave each
 * card's price and cart button at a different height across the row. Collecting
 * the slack after the title lines the prices and buttons up along the grid.
 */
.product-card--grid .product-card__title {
	margin-bottom: auto;
}

/* ==========================================================================
   UUED TOOTED
   ========================================================================== */

.home-new__layout {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--space-lg);
}

/* Borderless, like the cards beside it — the plate is the only surface. */
.home-new__lead {
	display: flex;
	flex-direction: column;
	gap: var(--space-md);
}

.home-new__lead-visual {
	position: relative;
}

.home-new__lead-media {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 260px;
	background-color: var(--color-surface-light);
	border-radius: var(--radius-sm);
}

/*
 * The bottle stands clear of its plate: on the UI Final it is 358px of a 472px
 * plate — 76% — centred, ~57px from both edges. A cut-out bottle photographed
 * to its own edges otherwise fills the plate top to bottom. As a share of the
 * plate rather than a padding, it keeps that proportion at every breakpoint's
 * plate height.
 */
.home-new__lead-image {
	max-width: 100%;
	max-height: 76%;
	width: auto;
	height: auto;
	object-fit: contain;
}

.home-new__lead-body {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: var(--space-xs);
}

/* Full width beneath the price, as drawn. */
.home-new__lead-cart {
	align-self: stretch;
}

.home-new__lead-origin {
	margin: 0;
	font-family: var(--font-ui);
	font-weight: 500;
	font-size: 11px;
	line-height: 16px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--color-text);
}

.home-new__lead-title {
	margin: 0;
	font-family: var(--font-heading);
	font-style: normal;
	font-weight: 400;
	font-size: 24px;
	line-height: 32px;
	color: var(--color-ink);
}

.home-new__lead-title a {
	color: inherit;
	text-decoration: none;
	transition: color var(--transition-base);
}

.home-new__lead-title a:hover {
	color: var(--color-primary);
}

.home-new__lead-price {
	display: flex;
	align-items: baseline;
	gap: var(--space-xs);
	/* Held at the plate's foot: the design leaves the space between the name
	   and the price empty rather than centring the group. */
	margin: auto 0 0;
	flex-wrap: wrap;
}

/*
 * Ink. The frame's featured product is not reduced and its price is #1B1C1C;
 * this drew every featured price red regardless. The sale colour arrives from
 * PHP as .is-sale, like every other price on the site.
 */
.home-new__lead-price-value {
	font-family: var(--font-ui);
	font-weight: 700;
	font-size: 22px;
	line-height: 30px;
	color: var(--color-ink);
}

.home-new__lead-price.is-sale .home-new__lead-price-value {
	color: var(--color-primary-dark);
}

.home-new__lead-price-value del {
	margin-right: 6px;
	font-size: 15px;
	font-weight: 500;
	color: var(--color-text);
	opacity: 0.7;
}

.home-new__lead-price-value ins {
	text-decoration: none;
}

.home-new__lead-volume {
	font-family: var(--font-ui);
	font-weight: 500;
	font-size: 12px;
	color: var(--color-text-secondary);
}

/* A deposit item's "Hinnale lisandub pant …" on its own line, as on the cards. */
.home-new__lead-deposit {
	flex-basis: 100%;
	font-family: var(--font-meta);
	font-weight: 400;
	font-size: 12px;
	line-height: 1.4;
	color: var(--color-text-secondary);
}

/*
 * The frame draws this control 353 x 71; it was 58 tall.
 *
 * Its label is 16px, regular and untracked. Measured at 141% against the UI
 * Final with one ink threshold for both sides, "LISA KORVI" there inks 83.7px
 * wide at a stroke density of 0.23: Work Sans 16/400 renders 83.7 at 0.25, and
 * 16/500 the same width at 0.33. The 13px/600/0.05em this carried rendered
 * 75.2 wide at 0.40 — smaller and heavier at once, which is what read as too
 * bold. Size and tracking are the button system's own; only the weight steps
 * down from it.
 */
.home-new__lead-cart {
	margin-top: var(--space-xs);
	min-height: 71px;
	padding: 16px 32px;
	font-weight: 400;
}

/*
 * The cart is the Figma export, a filled drawing. .btn strokes every icon at
 * 1.5px for the outlined library set, and a stroke around a filled shape only
 * fattens it: the mark inked 18.4px at 0.56 density against the frame's 17px at
 * 0.36. Drawn at 17 with no stroke it matches.
 */
.home-new__lead-cart svg {
	stroke: none;
}

.home-new__stack {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--space-md);
	align-content: start;
}

@media (min-width: 768px) {

	.home-section__title {
		font-size: 28px;
	}

	.home-new__lead {
		flex-direction: row;
		/* Stretched, not centred: the body has to fill the plate's height for
		   the price row to reach its foot. The padding went with the border —
		   measured, the plate starts on the container's own edge and the
		   writing stands 24px clear of it. */
		align-items: stretch;
		gap: var(--space-md);
		padding: 0;
	}

	/*
	 * The frame splits the plate evenly: image 355, gap 24, information 353.
	 * 42% drew the image at 307 and handed the difference to the button.
	 */
	.home-new__lead-visual {
		flex: 1 1 0;
		min-width: 0;
	}

	.home-new__lead-media {
		height: 320px;
	}

	/*
	 * Centred on the plate as one group — origin, name, price, action — rather
	 * than the name at the top and the price pinned to the plate's foot. Beside
	 * a plate taller than its writing that split left the middle of the column
	 * empty: 440px between the name and the price at 1280–1440 (client,
	 * 3.11.2026 p11, image 5). The price now follows the name at the stack
	 * cards' own 16px.
	 */
	.home-new__lead-body {
		flex: 1 1 0;
		min-width: 0;
		justify-content: center;
	}

	.home-new__lead-price {
		margin-top: var(--space-xs);
	}

	.home-new__stack {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 1024px) {

	/*
	 * 24px, measured two ways off the UI Final and agreeing: "Domaine de la"
	 * sets 164px wide there, which this face reaches at 24px, and the design's
	 * two title lines sit 29px apart, which is 24 at the 1.2 leading used
	 * throughout. Held to this breakpoint because the design only states it at
	 * 1440 — on a 152px card two-up it runs a product name to five lines.
	 */
	.product-card__title {
		font-size: 24px;
		line-height: 29px;
	}


	/*
	 * Measured against the UI Final at 1440: every section heading's ink sits
	 * 76-95px below its section's top edge, which is the 80px this rule used to
	 * grow to 120. The larger figure put an extra 40px above and below every
	 * section on the page.
	 */
	.home-section {
		padding-block: var(--space-2xl);
	}

	/*
	 * The design does not use one figure below every section. Measured from a
	 * band's last element to its lower edge it runs 61px under the popular row
	 * and 101 under the deal tiles, against the 80 above. Written as measured
	 * values because the scale has no step at either, and kept to the two bands
	 * they were measured on.
	 */
	.home-popular {
		padding-bottom: 60px;
	}

	.home-deal {
		padding-bottom: 100px;
	}

	/*
	 * The frame's 206px plate and 24px name arrive here, but the side-by-side
	 * split does not — see 1280 below. Until then the featured product keeps
	 * the full-width row and the two cards sit two-up beneath it, which at 1024
	 * gives each card 460px and its writing 230.
	 */
	.home-new__stack .product-card--stack .product-card__media {
		width: 206px;
	}

	.home-new__lead-media {
		height: 360px;
	}
}

@media (min-width: 1280px) {

	/*
	 * The frame's split, from 1280 rather than 1024.
	 *
	 * The composition is drawn at 1440, where the stack column is 501px and a
	 * card's writing has 271px beside its 206px plate. The columns are
	 * proportional but the plate, the 24px name and the 80px gap are not, so the
	 * writing loses everything the column does: 230px at 1280, 102px at 1024 —
	 * narrower than "Alkoholivaba" alone at 24px (~150px), which the browser
	 * could only break through the middle. At 1280 the longest single words in
	 * the catalogue fit, so the split starts there and the tablet composition,
	 * with room to spare, holds from 1024 to 1279.
	 */
	/* Figma: featured product across roughly seven columns, stack across five. */
	/*
	 * The featured product spans the two cards: its plate's top meets the first
	 * card's top and its foot the second card's foot. Centred at a fixed 470px
	 * it stood ~80px clear of the stack at both ends, which read as empty space
	 * rather than as one composition. The plate now takes its height from the
	 * row (below), so the body stretches with it and the price and the action
	 * stay at the plate's foot.
	 */
	/*
	 * Measured on the frame: the featured plate runs 63 to 795 and the stack
	 * starts at 875, so the two columns are 732 and 501 with 80px between them.
	 * This was 7fr/5fr on a 24px gap, which drew the plate 19px wider and left
	 * only 24px beside it — close enough that the featured button all but
	 * touched the card next to it.
	 */
	.home-new__layout {
		grid-template-columns: minmax(0, 732fr) minmax(0, 501fr);
		gap: var(--space-2xl);
		align-items: stretch;
	}

	/* Equal rows so the two cards together match the featured product's height,
	   as in the reference, rather than sitting at the top of an empty column. */
	/*
	 * 24px between the two cards, as at every narrower width. The UI Final
	 * stands them ~82px apart, and since the featured plate takes its height
	 * from this column, those 80px went straight into the empty plate and the
	 * empty column beside it (client, 3.11.2026 p11, image 5).
	 */
	.home-new__stack {
		grid-template-columns: 1fr;
		grid-auto-rows: 1fr;
		gap: var(--space-md);
	}

	/*
	 * The bottle takes three fifths of the featured product, its writing two:
	 * the photograph is the emphasis, and the narrower column is about as wide
	 * as the name, price and action need (254px at 1280, 293 at 1440), so it
	 * no longer reads as a half left empty.
	 */
	.home-new__lead-visual {
		flex-grow: 3;
	}

	.home-new__lead-body {
		flex-grow: 2;
	}

	.home-section__title {
		font-size: 36px;
	}

	/*
	 * The plate fills the featured product's height, which the row takes from
	 * the two cards. It used to be a fixed 470px.
	 */
	.home-new__lead-visual {
		display: flex;
	}

	.home-new__lead-media {
		position: relative;
		flex: 1 1 auto;
		height: auto;
	}

	/*
	 * Out of flow, so the photograph never sets the row's height: a tall file
	 * would otherwise push the row past the stack and stretch the cards. Still
	 * contained and still 76% of the plate at most, centred as before.
	 */
	.home-new__lead-image {
		position: absolute;
		inset: 0;
		margin: auto;
	}

	.home-new__lead-title {
		font-size: 28px;
		line-height: 36px;
	}
}

/* ==========================================================================
   BANNER

   Photograph, brand overlay and centred content as three separate layers, so
   darkening the image never dims the text sitting on it.
   ========================================================================== */

.home-banner {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	display: flex;
	align-items: center;
	background-color: var(--color-ink);
}

.home-banner__bg {
	position: absolute;
	inset: 0;
	z-index: -1;
}

.home-banner__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

/*
 * The photograph is a wide 3:1 room. On a desktop band it is shown nearly
 * whole; on the taller phone and tablet bands only a slice fits, and centred
 * that slice is the space between the windows. Just right of centre it keeps a
 * window's light and the table with the bottles.
 */
@media (max-width: 1023px) {

	.home-banner__image {
		object-position: 62% 50%;
	}
}

.home-banner__bg::after {
	content: '';
	position: absolute;
	inset: 0;
	/* A light, even veil, as the design draws it over the sunlit cellar —
	   measured off the frame at 25% ink. */
	background-color: color-mix(in srgb, var(--color-ink) 25%, transparent);
	/*
	 * Over that veil, a soft shade behind the text column only (audit
	 * 10.11.2026: white copy on the sunlit windows measured 1.7:1 against the
	 * lightest 5% of the photo, 2.3:1 on the median). The room's edges keep the
	 * design's light veil; behind the copy the ground reaches >= 4.5:1 for the
	 * body text, label and button and >= 3:1 for the title (large text) at
	 * 375-1920 px, measured on the brightest pixel behind each line. Layout
	 * and type are unchanged; the label became opaque cream (below).
	 */
	background-image: radial-gradient(
		ellipse 62% 72% at 50% 50%,
		color-mix(in srgb, var(--color-ink) 62%, transparent) 0%,
		color-mix(in srgb, var(--color-ink) 50%, transparent) 45%,
		color-mix(in srgb, var(--color-ink) 18%, transparent) 80%,
		transparent 100%
	);
}

/* Below 1280 the copy spans most of the band: the shade widens with it. */
@media (max-width: 1279px) {

	.home-banner__bg::after {
		background-image: radial-gradient(
			ellipse 80% 78% at 50% 50%,
			color-mix(in srgb, var(--color-ink) 64%, transparent) 0%,
			color-mix(in srgb, var(--color-ink) 56%, transparent) 50%,
			color-mix(in srgb, var(--color-ink) 24%, transparent) 82%,
			transparent 100%
		);
	}
}

/* Phones and portrait tablets: the copy fills the width and sits on the bright pane. */
@media (max-width: 1023px) {

	.home-banner__bg::after {
		background-image: radial-gradient(
			ellipse 100% 82% at 50% 50%,
			color-mix(in srgb, var(--color-ink) 56%, transparent) 0%,
			color-mix(in srgb, var(--color-ink) 50%, transparent) 55%,
			color-mix(in srgb, var(--color-ink) 22%, transparent) 85%,
			transparent 100%
		);
	}
}

.home-banner__inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--space-md);
	padding-block: var(--space-2xl);
	text-align: center;
	/* A soft shadow under the light copy where a bright pane still shows through. */
	text-shadow:
		0 1px 2px rgb(0 0 0 / 0.45),
		0 0 14px rgb(0 0 0 / 0.35);
}

.home-banner__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	/* The design draws the seal on its own, without a ring. */
	color: var(--color-on-dark-pure);
}

.home-banner__title {
	max-width: 18ch;
	margin: 0;
	font-family: var(--font-heading);
	font-style: normal;
	font-weight: 400;
	font-size: 32px;
	line-height: 1.25;
	color: var(--color-on-dark-pure);
}

.home-banner__text {
	max-width: 60ch;
	margin: 0;
	font-family: var(--font-body);
	font-size: 16px;
	line-height: 26px;
	color: var(--color-on-dark-pure);
}

.home-banner__label {
	margin: 0;
	font-family: var(--font-ui);
	font-weight: 600;
	font-size: 11px;
	line-height: 16px;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	/* Opaque cream: at 70% the 11px label read 2.3:1 on the photo. */
	color: var(--color-cream);
}

/* A light-on-dark outline button. Kept local rather than adding a global
   .btn variant, since this is the only place on the site with a dark ground. */
.home-banner__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-top: var(--space-xs);
	/* The design's 247 x 70 box with a sentence-case label. */
	min-width: 247px;
	min-height: 70px;
	padding: 18px 48px;
	border: 1px solid var(--color-cream);
	border-radius: var(--radius-button);
	color: var(--color-on-dark-pure);
	font-family: var(--font-ui);
	font-weight: 600;
	font-size: 13px;
	letter-spacing: 0;
	text-decoration: none;
	transition:
		background-color var(--transition-base),
		color var(--transition-base);
}

.home-banner__cta:hover {
	background-color: var(--color-cream);
	color: var(--color-ink);
	text-shadow: none;
}

@media (min-width: 768px) {

	.home-banner__inner {
		padding-block: var(--space-3xl);
	}

	.home-banner__title {
		font-size: 40px;
	}

	.home-banner__text {
		font-size: 17px;
		line-height: 28px;
	}
}

/* Figma gives the band roughly 476px of height at desktop; min-height rather
   than height so long copy can still grow it, and mobile stays content-driven. */
@media (min-width: 1024px) {

	/*
	 * At least the design's 476px, and as the screen widens the band takes the
	 * photograph's own proportions, so the room shows whole instead of being
	 * cut top and bottom: at a fixed 476px a 1920 screen lost a quarter of the
	 * photo and a 2560 nearly half. Capped at 720px so the band only grows a
	 * little on very large screens.
	 */
	.home-banner {
		min-height: clamp(476px, calc(100vw / var(--home-banner-ratio, 3)), 720px);
	}

	/*
	 * 120px of padding plus a two-line title pushed the band to 682px against
	 * the reference's ~476px. The cap is widened so the title sits on one line
	 * as in Figma. The padding is trimmed again here because 64 top and bottom
	 * still added up to 510 around this content — at 48 the min-height above
	 * governs, which is the design's own figure.
	 */
	/*
	 * Measured against the design frame at 1440: the seal sits close above the
	 * title and the title close above the copy, with more air between the copy,
	 * the label and the button, and the group a little below centre.
	 */
	.home-banner__inner {
		padding-block: 50px 40px;
	}

	.home-banner__icon {
		margin-bottom: -10px;
	}

	.home-banner__title {
		max-width: 820px;
		margin-bottom: -9px;
		font-size: 48px;
	}

	.home-banner__text {
		margin-bottom: 12px;
	}

	.home-banner__cta {
		margin-top: 16px;
	}
}

/* ==========================================================================
   MEGA DIIL

   Four equally sized portrait tiles. UI Final dropped every second tile by
   48px; the client asked for all four on one row on a computer, the same
   height, with the same alignment (16.11, point 6), so there is no stagger
   any more: one row from 1024px, two by two below it — on phones too, as the
   product lists are (two per row). The ACF slot names describe position, not
   size.
   ========================================================================== */

.home-deal__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--space-sm);
	margin: 0;
	padding: 0;
	list-style: none;
}

.home-deal__item {
	min-width: 0;
}

.home-deal__tile {
	position: relative;
	display: block;
	overflow: hidden;
	/* Two across on a phone: portrait, a little squarer than the desktop's
	   79:100 so the two rows stay under one screen (2 x 214px at 375). */
	aspect-ratio: 4 / 5;
	border-radius: var(--radius-button);
	background-color: var(--color-surface-mid);
	text-decoration: none;
	transition: box-shadow var(--transition-base);
}

.home-deal__tile:hover {
	box-shadow: var(--shadow-lg);
}

.home-deal__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	transition: transform var(--transition-slow);
}

.home-deal__tile:hover .home-deal__image {
	transform: scale(1.03);
}

/* Gradient only where the label sits, so the photograph stays readable. */
.home-deal__tile::after {
	content: '';
	position: absolute;
	inset: auto 0 0 0;
	height: 60%;
	background: linear-gradient(
		180deg,
		transparent 0%,
		color-mix(in srgb, var(--color-ink) 72%, transparent) 100%
	);
}

/*
 * Measured on the frame: the label block is inset 51px from the tile's left
 * edge and its last baseline sits 55px above the tile's foot — far further in
 * than the 16px this was using, which is what made the text read as small and
 * badly placed. 48px on both is the token that lands it.
 */
.home-deal__body {
	position: absolute;
	inset: auto 0 0 0;
	z-index: 1;
	display: flex;
	flex-direction: column;
	gap: 2px;
	/* Room for a two-line name in every tile, filled from the top: the counts
	   and first name lines sit on one line across the row whether a name
	   takes one line ("Veinid") or two ("Kanged alkoholid") — client 16.11,
	   point 6, "the same alignment". 16 count + 2 gap + 2 x 32 name. */
	min-height: calc(82px + var(--space-lg));
	padding: 0 var(--space-lg) var(--space-lg);
}

/*
 * Measured on the frame by setting the words themselves, not by ink height
 * alone: "COLLECTION" runs 85.1px wide, which is Work Sans at 11 with this
 * tracking — 13 sets it to 98. It is drawn at full strength too; the 75% wash
 * here is what made the label read as thin rather than small.
 */
.home-deal__count {
	font-family: var(--font-ui);
	font-weight: 600;
	font-size: 11px;
	line-height: 16px;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--color-cream);
}

/*
 * Sans, not serif. The frame sets these names in the UI face — "Wines" has no
 * serifs at all — and this was drawing Libre Caslon, which is why the tile
 * names read as the wrong typeface rather than the wrong size. Cap height 18.8
 * puts Work Sans at 26.
 */
.home-deal__name {
	font-family: var(--font-ui);
	font-style: normal;
	font-weight: 400;
	font-size: 26px;
	line-height: 32px;
	color: var(--color-cream);
}

/* A phone tile is 136-190px wide: the label is inset 12px and the name is
   sized from the tile's own width, so "Kinkekomplektid" fits on one line at
   320px and the four names stay one size. */
@media (max-width: 767px) {

	.home-deal__tile {
		container-type: inline-size;
	}

	.home-deal__body {
		/* 14 count + 2 gap + two name lines (see .home-deal__name below). */
		min-height: calc(16px + 2.5 * clamp(12px, calc((100cqi - 24px) / 8.6), 20px) + 14px);
		padding: 0 12px 14px;
	}

	.home-deal__count {
		font-size: 10px;
		line-height: 14px;
		letter-spacing: 0.12em;
	}

	/* The longest one-word name, "Kinkekomplektid", is 8.2em of Work Sans:
	   the inner width over 8.6 keeps it whole (13px at 320, 16px at 390). */
	.home-deal__name {
		font-size: clamp(12px, calc((100cqi - 24px) / 8.6), 20px);
		line-height: 1.25;
		overflow-wrap: break-word;
	}
}

/* A category with no thumbnail falls back to a brand surface rather than a
   fabricated image; its label needs dark text instead. */
.home-deal__tile--plain {
	background-color: var(--color-surface-mid);
}

.home-deal__tile--plain::after {
	display: none;
}

.home-deal__tile--plain .home-deal__count {
	color: var(--color-text);
}

.home-deal__tile--plain .home-deal__name {
	color: var(--color-ink);
}

@media (min-width: 768px) {

	.home-deal__grid {
		gap: var(--space-md);
		align-items: start;
	}

	.home-deal__tile {
		aspect-ratio: 79 / 100;
	}
}

@media (min-width: 1024px) {

	/* One row, four tiles of one size, tops and feet aligned. */
	.home-deal__grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

/*
 * Four across on tablets in landscape (iPad mini 1133, 11" 1194, 13" 1366)
 * and small laptops: a tile is 206–290px wide, and with the design's 48px
 * inset a one-word name like "Kinkekomplektid" or "Alkoholivabad" ran out of
 * the tile and was cut off (usertest 31.10, finding 8). Here the inset is 24px
 * and the name is sized from the tile's own width, up to the design's 26px.
 * From 1440 the measured design applies unchanged.
 */
@media (min-width: 1024px) and (max-width: 1439px) {

	.home-deal__tile {
		container-type: inline-size;
	}

	.home-deal__body {
		min-height: calc(18px + 2.5 * clamp(17px, 9cqi, 26px) + var(--space-md));
		padding: 0 var(--space-md) var(--space-md);
	}

	.home-deal__name {
		font-size: clamp(17px, 9cqi, 26px);
		line-height: 1.25;
		overflow-wrap: break-word;
	}
}

/* ==========================================================================
   BRÄNDID

   The homepage's last band, after Blogi (client 16.11, point 2): a centred
   label over one slowly moving row of logos — the shared carousel in
   assets/css/components/logo-marquee.css, at its "home" size. Every logo has
   the same visual area there, measured on its ink, so a crest and a long
   wordmark read at one weight; the 32px height cap that was here left most
   of them a sliver.
   ========================================================================== */

/*
 * 48px rather than the Figma band's 43: the band now carries 72px logos
 * instead of 29px marks, and the extra air keeps it a quiet strip above the
 * footer rather than a crowded one.
 */
.home-brands {
	padding-block: var(--space-lg);
	background-color: var(--color-surface-light);
	border-block: 1px solid var(--color-border);
}

/* Setting the frame's own word at this tracking gives 66.4px of ink at 12. */
.home-brands__title {
	margin: 0 0 var(--space-md);
	font-family: var(--font-ui);
	font-style: normal;
	font-weight: 600;
	font-size: 12px;
	line-height: 16px;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	text-align: center;
	color: var(--color-text);
}

/* ==========================================================================
   POPULAARSED TOOTED
   ========================================================================== */

.home-popular__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--space-md);
}

@media (min-width: 1024px) {

	.home-popular__grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

/*
 * One baseline per row for the writing. Each card takes four rows of the grid
 * as its own — picture, origin, name, price — so a card without an origin line
 * (an accessory, "PRESTIGIO …") or with one of two lines no longer starts its
 * name 18px higher or lower than its neighbours (visual QA 4.11.2026, #7), and
 * the price rows line up under the longest name. The card's body steps aside
 * (display: contents) so its three parts can take those rows; the spacing it
 * carried moves onto them. Homepage only: the catalogue card is its own.
 */
/* The rows' own gap would also open inside each card, so the 24px between
   rows of cards is each card's margin instead, and the last row's is taken
   back here. */
.home-popular__grid {
	row-gap: 0;
	margin-bottom: calc(-1 * var(--space-md));
}

.home-popular .product-card--grid {
	display: grid;
	grid-row: span 4;
	grid-template-rows: subgrid;
	row-gap: 0;
	margin-bottom: var(--space-md);
}

.home-popular .product-card--grid > .product-card__visual,
.home-popular .product-card--grid > .product-card__media {
	grid-row: 1;
	margin-bottom: var(--space-sm);
}

.home-popular .product-card--grid .product-card__body {
	display: contents;
}

/* On the name's shoulder: beside a longer origin (three lines on a phone)
   a short one sits just above its own name, the space above it. */
.home-popular .product-card--grid .product-card__origin {
	grid-row: 2;
	align-self: end;
	margin-bottom: 4px;
}

.home-popular .product-card--grid .product-card__title {
	grid-row: 3;
	margin-bottom: 0;
}

.home-popular .product-card--grid .product-card__foot {
	grid-row: 4;
	align-self: start;
	margin-top: 0;
}

/*
 * < 600px — the catalogue's phone card (client 04.11.2026, two per row; QA-B
 * follow-up). The homepage card was the same product in a different shape:
 * LISA drawn 77 x 32 beside or under a price of varying height, so the
 * buttons of one row sat at different heights, and the unit price and
 * deposit at 11px. Here it takes the catalogue's phone card (catalog.css,
 * "< 600px — TWO PRODUCTS PER ROW ON PHONES"): the price block stacked
 * (price, "75cl · x €/L", deposit) at 12/16, LISA a full-width 44px control,
 * the name at most three lines (full name stays in the link). The foot fills
 * its subgrid row and LISA sits at its bottom, so every LISA of a row is at
 * the same height whatever the price block above it carries. 600px and wider
 * is unchanged.
 */
@media (max-width: 599px) {

	/* The catalogue phone card's rhythm (QA-D, 04.11.2026): 12px from the
	   bottle panel to the eyebrow (16 here before), 12 from the name to the
	   price (the foot's 8px top padding moves onto the name's margin). */
	.home-popular .product-card--grid > .product-card__visual,
	.home-popular .product-card--grid > .product-card__media {
		margin-bottom: 12px;
	}

	.home-popular .product-card--grid .product-card__foot {
		padding-top: 0;
	}

	/* The eyebrow may take a second line but not a third, as the catalogue's
	   ("CREMANT DE BORDEAUX, PRANTSUSMAA" took three at 320); 11px with the
	   same 0.08em tracking as the catalogue's, so it wraps at the same place. */
	.home-popular .product-card--grid .product-card__origin {
		font-size: 11px;
		letter-spacing: 0.08em;
		display: -webkit-box;
		-webkit-box-orient: vertical;
		-webkit-line-clamp: 2;
		line-clamp: 2;
		overflow: hidden;
		overflow-wrap: anywhere;
	}

	/* 16/20 as the catalogue phone card (16/22 before), so the same name
	   breaks at the same words; two lines reserved, three at most. */
	.home-popular .product-card--grid .product-card__title {
		display: -webkit-box;
		-webkit-box-orient: vertical;
		-webkit-line-clamp: 3;
		line-clamp: 3;
		overflow: hidden;
		overflow-wrap: anywhere;
		min-height: calc(2 * 1.25em);
		margin-bottom: 12px;
		font-size: 16px;
		line-height: 1.25;
	}

	.home-popular .product-card--grid .product-card__foot {
		align-self: stretch;
		flex-direction: column;
		flex-wrap: nowrap;
		align-items: stretch;
		justify-content: flex-start;
		gap: 12px;
	}

	.home-popular .product-card--grid .product-card__price {
		flex: 0 0 auto;
		column-gap: 6px;
		row-gap: 2px;
	}

	.home-popular .product-card--grid .product-card__volume {
		flex-basis: 100%;
		font-size: 12px;
		line-height: 16px;
	}

	.home-popular .product-card--grid .product-card__deposit {
		margin-top: 0;
		font-size: 12px;
		line-height: 16px;
	}

	.home-popular .product-card--grid .product-card__cart {
		align-self: stretch;
		width: 100%;
		min-height: 44px;
		margin-top: auto;
		padding-inline: 8px;
		font-size: 13px;
	}
}

/* ==========================================================================
   AVASTA KOKTEILE
   ========================================================================== */

/*
 * The band sits on the light surface so it separates from the cream sections
 * above and below it, exactly as in the design.
 */
.home-cocktails {
	background-color: var(--color-surface-light);
}

.home-cocktails__mosaic {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--space-md);
}

.home-cocktails__tile {
	position: relative;
	margin: 0;
	overflow: hidden;
	border-radius: var(--radius-button);
	background-color: var(--color-surface-mid);
}

.home-cocktails__tile--wide {
	grid-column: span 2;
}

/*
 * Only the square tiles are given a ratio, so they alone decide how tall each
 * row is. The wide photo and the quote panel stretch to match — and a quote
 * long enough to outgrow that height simply makes its row taller instead of
 * spilling out of the panel.
 */
.home-cocktails__tile--small {
	aspect-ratio: 11 / 10;
}

/*
 * Absolutely positioned so the photo's own proportions never feed back into
 * the row height; cover is correct here because these are atmospheric
 * photographs, not bottles.
 */
.home-cocktails__image {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.home-cocktails__badge {
	position: absolute;
	inset-block-start: var(--space-sm);
	inset-inline-start: var(--space-sm);
	padding: 4px 10px;
	border-radius: var(--radius-pill);
	background-color: var(--color-primary);
	color: var(--color-on-dark);
	font-family: var(--font-ui);
	font-weight: 600;
	font-size: 11px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

/*
 * Captions are an editor opt-in — the design ships bare photographs — so the
 * scrim only exists when there is something to make legible. The text-shadow
 * keeps it readable even where color-mix() is unsupported.
 */
.home-cocktails__caption {
	position: absolute;
	inset-inline: 0;
	inset-block-end: 0;
	padding: var(--space-md) var(--space-sm) var(--space-sm);
	background-image: linear-gradient(to top, color-mix(in srgb, var(--color-ink) 78%, transparent), transparent);
	color: var(--color-on-dark);
	font-family: var(--font-heading);
	font-style: normal;
	font-weight: 400;
	font-size: 20px;
	line-height: 1.3;
	text-shadow: 0 1px 4px var(--color-ink);
}

/*
 * Measured on the frame: the panel is 865 x 387 and its contents are inset
 * 80px, not the 64 this was using.
 */
.home-cocktails__quote {
	display: flex;
	flex-direction: column;
	grid-column: span 2;
	margin: 0;
	/*
	 * Not 80 all round. Measured against the frame's own tile: the panel is
	 * 865.5 x 388.6, the mark's ink starts 60.7 below the tile's top edge and
	 * the attribution's ink ends 68.6 above its foot, which puts 80 on top out
	 * of reach — no line box can begin above its own padding. 56 top and 64
	 * foot place both, and the sides stay on the 80 the frame measures at 77.
	 */
	padding: 56px var(--space-2xl) var(--space-xl);
	border-radius: var(--radius-button);
	background-color: var(--color-primary-dark);
	color: var(--color-on-dark);
}

/*
 * The frame's mark is the characters "99" — two closed bowls with straight
 * tails, set in the UI sans. It is not a typographic quote: Playfair's closing
 * quote is two tapering commas with no counters at all, which is what this drew
 * at 72px. Measured 24.9 x 17.7 with 233px² of ink, which is Work Sans 26/500.
 */
/*
 * The design's own export, not a glyph. Every attempt to letter this mark was
 * chasing a drawing: its 26 x 18 artwork is two filled commas with round
 * counters, which is why no face in the family reproduced both its width and
 * its height, and why the ink measured 27.6 x 18.8 — the artwork plus a pixel
 * of antialiasing on each edge. It draws at its own size; the block keeps the
 * line box the panel's rhythm was measured against.
 */
.home-cocktails__mark {
	display: block;
	line-height: 18px;
	color: var(--color-on-dark);
}

.home-cocktails__quote-text {
	margin: 0;
	/* 29.2 of clear red between the mark's ink and the sentence's first line in
	   the frame; 32 was drawing 42.5. */
	margin-block-start: 20px;
	/*
	 * The frame sets four lines inside a 705px content box, so the sentence is
	 * on a measure of its own rather than filling the panel. Setting the design's
	 * own words showed 500 was four pixels too tight: its longest line needs
	 * 504.1 of advance at this size, so the measure broke a word early and put
	 * the sentence on five lines, which is what left red under it. 520 carries
	 * that line and still breaks the other three exactly where the frame does —
	 * the next word along is 35 to 90 too wide to pull up.
	 */
	max-width: 520px;
	padding: 0;
	border: 0;
	/* Playfair italic, as in the design — and the one weight it is loaded at,
	   so nothing here is synthesised. */
	/*
	 * Frame line ink is 33.75px tall on a 43.7px rhythm — Playfair italic at
	 * 36/44, a fifth larger than the 28 this was drawing, which is what left
	 * the sentence floating in the middle of the panel.
	 */
	font-family: var(--font-display);
	font-style: italic;
	font-weight: 400;
	font-size: 36px;
	line-height: 44px;
	color: var(--color-on-dark);
}

.home-cocktails__quote-text p {
	margin: 0;
}

.home-cocktails__quote-text p + p {
	margin-block-start: var(--space-sm);
}

.home-cocktails__author {
	/* The slack collects here, pinning the attribution to the panel foot. */
	margin-block-start: auto;
	/* 31.9 of clear red between the sentence's last line and this one. */
	padding-block-start: 29px;
	font-family: var(--font-ui);
	/*
	 * Ink area alone cannot separate weight from size — a smaller bold and a
	 * larger regular cover the same number of pixels, which is how 14/500 was
	 * arrived at and why the line kept reading heavy. Cap height separates them.
	 * The frame's line is 11.0 tall and 244.5 wide; rendering its own words in
	 * every loaded sans, size and tracking, Work Sans Regular at 16 with no
	 * tracking lands on 10.5 and 244.0, and normalised against the frame's
	 * glyphs it is twice as close as 14/500 was. Tracking is genuinely absent:
	 * any positive value overshoots the measured width.
	 */
	font-weight: 400;
	font-size: 16px;
	line-height: 20px;
	text-transform: uppercase;
	color: var(--color-on-dark);
}

@media (max-width: 1023px) {
	.home-cocktails__quote {
		padding: var(--space-md);
	}

	.home-cocktails__quote-text {
		font-size: 20px;
		line-height: 1.55;
	}
}

/*
 * Below tablet the mosaic reads as a single column. The square ratio would be
 * far too tall at full width, so every photo takes a landscape crop and the
 * quote panel sizes to its own text.
 */
@media (max-width: 767px) {
	.home-cocktails__mosaic {
		grid-template-columns: 1fr;
	}

	.home-cocktails__tile--wide,
	.home-cocktails__quote {
		grid-column: auto;
	}

	.home-cocktails__tile--small,
	.home-cocktails__tile--wide {
		aspect-ratio: 16 / 10;
	}

	.home-cocktails__quote-text {
		margin-block-end: var(--space-sm);
	}
}

/*
 * Tiles are links to the cocktails now (final QA 01.11): the whole photograph
 * is the target, the caption names it, and the focus ring sits on the tile.
 */
a.home-cocktails__tile {
	display: block;
	color: inherit;
	text-decoration: none;
}

a.home-cocktails__tile .home-cocktails__image {
	transition: transform var(--transition-base);
}

a.home-cocktails__tile:hover .home-cocktails__image {
	transform: scale(1.03);
}

a.home-cocktails__tile:focus-visible {
	outline: 2px solid var(--color-primary);
	outline-offset: 3px;
}

/*
 * Quote panel with the editor's background photograph (client 17.11). The
 * photograph sits under a dark scrim so the cream quote keeps its contrast
 * whatever the picture is; the deep red stays as the colour shown while the
 * image loads. Without a photograph none of this applies — the panel is red.
 */
.home-cocktails__quote--image {
	position: relative;
	isolation: isolate;
	overflow: hidden;
}

.home-cocktails__quote-bg {
	position: absolute;
	inset: 0;
	z-index: -2;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.home-cocktails__quote--image::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	/* Darker where the mark/sentence start and at the attribution. Never
	   under 64 % ink: even over a pure white photograph the cream text keeps
	   at least 4.5:1 (WCAG AA for the 20px phone size). */
	background: linear-gradient(160deg, rgb(20 6 8 / 0.8) 0%, rgb(20 6 8 / 0.64) 55%, rgb(20 6 8 / 0.74) 100%);
}

.home-cocktails__quote--image .home-cocktails__quote-text,
.home-cocktails__quote--image .home-cocktails__author {
	text-shadow: 0 1px 2px rgb(0 0 0 / 0.35);
}

/* Two cocktails: the quote takes the whole second row. */
.home-cocktails__quote--full {
	grid-column: 1 / -1;
}

/* One cocktail and no quote: the tile takes the row as a landscape band. */
.home-cocktails__mosaic--count-1 .home-cocktails__tile {
	grid-column: 1 / -1;
	aspect-ratio: 21 / 9;
}

@media (prefers-reduced-motion: reduce) {

	a.home-cocktails__tile .home-cocktails__image {
		transition: none;
	}

	a.home-cocktails__tile:hover .home-cocktails__image {
		transform: none;
	}
}

/* ==========================================================================
   >= 1600px — the quote panel on the wide rail
   ========================================================================== */

/*
 * The mosaic grows with the wide rail, so above the design's own artboard this
 * panel reaches 1144 x 509 where the frame draws 865 x 389 — and a sentence
 * held at the frame's 36/44 on a 520 measure stops being the panel's voice and
 * becomes a small paragraph in a large red rectangle. It keeps its share of the
 * panel instead: 42/52 on 610 holds the frame's own four lines and its own
 * break points, and returns the writing to roughly the proportion of the
 * content box it occupies at 1440.
 */
@media (min-width: 1600px) {

	.home-cocktails__quote-text {
		max-width: 610px;
		font-size: 42px;
		line-height: 52px;
	}
}

/* ==========================================================================
   BLOGI
   ========================================================================== */

/*
 * The one grid on the page that uses the wide global gutter — the design sets
 * these three cards much further apart than the product and category grids.
 */
.home-blog__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--space-lg) var(--grid-gap);
	margin: 0;
	padding: 0;
	list-style: none;
}

.home-blog__item {
	min-width: 0;
}

.blog-card {
	display: flex;
	flex-direction: column;
	gap: var(--space-xs);
}

.blog-card__media {
	display: block;
	overflow: hidden;
	/* 3:2 for the frame's 23:20: at 1280 a card's picture is 221px tall where
	   it was 288, so the headline under it is on the same screen (client,
	   3.11.2026 p11, image 15). The archive keeps its own crops (blog.css). */
	aspect-ratio: 3 / 2;
	border-radius: var(--radius-button);
	background-color: var(--color-surface-light);
}

.blog-card__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.blog-card__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 4px var(--space-xs);
	margin: 0;
	/* Frame: 27.7px of ink between the image and the category label. */
	margin-block-start: var(--space-md);
	font-family: var(--font-ui);
	font-weight: 600;
	font-size: 11px;
	line-height: 16px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.blog-card__category {
	color: var(--color-primary);
}

.blog-card__title {
	margin: 0;
	/* Frame: 17.2px of ink below the category label. */
	margin-block-start: var(--space-xs);
	font-family: var(--font-heading);
	/* The global h3 is italic; article headlines are upright. */
	font-style: normal;
	/* Frame line ink is 21px — this face at 24, not the 22 it was drawing. */
	font-weight: 400;
	font-size: 24px;
	line-height: 32px;
	color: var(--color-ink);
}

.blog-card__title a {
	color: inherit;
	text-decoration: none;
	transition: color var(--transition-base);
}

.blog-card__title a:hover {
	color: var(--color-primary);
}

/*
 * Two lines, as in the design. line-clamp needs the -webkit- prefixed box
 * properties, which every current engine still implements.
 */
.blog-card__excerpt {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	overflow: hidden;
	margin: 0;
	/* Frame: 18.3px of ink below the headline. */
	margin-block-start: 12px;
	font-family: var(--font-body);
	font-size: 13px;
	line-height: 1.55;
	color: var(--color-text);
}

/*
 * Three columns below 1024 would leave each card about 200px wide, which is too
 * narrow for a 22px serif headline — the titles ran to three lines and the meta
 * row wrapped. Two columns from here down, with the third card starting a new
 * row.
 */
@media (max-width: 1023px) {
	.home-blog__grid {
		grid-template-columns: repeat(2, 1fr);
		gap: var(--space-lg);
	}
}

@media (max-width: 767px) {
	.home-blog__grid {
		grid-template-columns: 1fr;
		gap: var(--space-lg);
	}

	/* One per row, so the tall crop gives way to a landscape one. */
	.blog-card__media {
		aspect-ratio: 16 / 10;
	}
}

/*
 * Fewer articles than columns (home-blog__grid--count-N, blogi.php). Three
 * columns with two cards left the third empty (image 15), and one card a
 * third of the band wide. Here the picture stands beside the writing
 * instead: two cards share the row half and half, one has the row to itself
 * at the blog archive's lead proportions — picture and writing in halves.
 * The writing sits centred on the picture.
 */
@media (min-width: 768px) {

	.home-blog__grid--count-1 {
		grid-template-columns: minmax(0, 1fr);
	}

	.home-blog__grid--count-1 .blog-card,
	.home-blog__grid--count-2 .blog-card {
		display: grid;
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		grid-template-rows: 1fr auto auto auto 1fr;
		column-gap: var(--grid-gap);
		row-gap: 0;
	}

	.home-blog__grid--count-1 .blog-card__media,
	.home-blog__grid--count-2 .blog-card__media {
		grid-column: 1;
		grid-row: 1 / -1;
		aspect-ratio: 16 / 9;
	}

	.home-blog__grid--count-1 .blog-card__meta,
	.home-blog__grid--count-2 .blog-card__meta {
		grid-column: 2;
		grid-row: 2;
		margin-block-start: 0;
	}

	.home-blog__grid--count-1 .blog-card__title,
	.home-blog__grid--count-2 .blog-card__title {
		grid-column: 2;
		grid-row: 3;
	}

	.home-blog__grid--count-1 .blog-card__excerpt,
	.home-blog__grid--count-2 .blog-card__excerpt {
		grid-column: 2;
		grid-row: 4;
	}

	.home-blog__grid--count-1 .blog-card__title,
	.home-blog__grid--count-1 .blog-card__excerpt {
		max-width: 560px;
	}
}

/* Two cards side by side only from 1024: below it each half is too narrow
   for a picture and a headline beside it, and the two cards stand as the
   two columns the band already has there. From 1024 each card is its
   picture (5 parts, 4:3) and its writing (6 parts), 24px apart. */
@media (min-width: 768px) and (max-width: 1023px) {

	/* Three cards on two columns: the third takes the row on its own, lying
	   on its side as a single card does, rather than half a row beside a gap. */
	.home-blog__grid--count-3 .home-blog__item:nth-child(3) {
		grid-column: 1 / -1;
	}

	/* The band's own gap between picture and writing, so the picture is
	   exactly the width of the two cards' pictures above it (QA 19.11 D4:
	   with 24 for the band's 48 it was 332 x 249 beside their 320 x 240). */
	.home-blog__grid--count-3 .home-blog__item:nth-child(3) .blog-card {
		display: grid;
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		grid-template-rows: 1fr auto auto auto 1fr;
		column-gap: var(--space-lg);
	}

	.home-blog__grid--count-3 .home-blog__item:nth-child(3) .blog-card__media {
		grid-column: 1;
		grid-row: 1 / -1;
	}

	.home-blog__grid--count-3 .home-blog__item:nth-child(3) .blog-card__meta {
		grid-column: 2;
		grid-row: 2;
		margin-block-start: 0;
	}

	.home-blog__grid--count-3 .home-blog__item:nth-child(3) .blog-card__title {
		grid-column: 2;
		grid-row: 3;
	}

	.home-blog__grid--count-3 .home-blog__item:nth-child(3) .blog-card__excerpt {
		grid-column: 2;
		grid-row: 4;
	}

	.home-blog__grid--count-2 .blog-card {
		display: flex;
	}

	.home-blog__grid--count-2 .blog-card__media {
		aspect-ratio: 3 / 2;
	}

	.home-blog__grid--count-2 .blog-card__meta {
		margin-block-start: var(--space-md);
	}
}

@media (min-width: 1024px) {

	.home-blog__grid--count-2 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.home-blog__grid--count-2 .blog-card {
		grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
		column-gap: var(--space-md);
	}

	.home-blog__grid--count-2 .blog-card__media {
		aspect-ratio: 4 / 3;
	}
}

/* ==========================================================================
   COMPACT RHYTHM (client, 3.11.2026 p11: "nagu oleks sisse zuumitud")
   --------------------------------------------------------------------------
   The bands below the hero keep the UI Final's measured sizes where the
   design was drawn — a 1440 artboard on a tall screen. On the screens the
   client looked at (1180x540, 1280x600, 1366x640) those sizes put the
   section heading on one screen and the products it introduces on the next.
   Here, and only on this page, the same composition is set tighter: section
   padding 48 for 80 (96px between bands for 160), 24 from the rule to the
   content for 48, product plates shorter, product names 20px for 24.

   "Short" is ≤880px tall (≤800 until 04.11.2026, ≤820 until 19.11.2026;
   the theme's one short-laptop query, shared by the catalogue, mega menu,
   blog, cocktails, cart and checkout): a 1440 or 1920 wide window with
   browser chrome on a 900px laptop screen is the same complaint as a
   narrow one. 880 since 19.11: the current 13" MacBook Air (1470x956
   screen) leaves Chrome 832px under its 37px menu bar and 87px toolbar
   (toolbar measured in real Chrome 152 and Firefox: 87 / 85px) and Safari
   about 830-870, which the 820 limit left on the tall-desktop hero with its
   buttons and "Lisa korvi" below the fold. Desktop monitors' browser
   windows (1920x1080: ~945) and a full-screen 1440x900 stay above it.

   Measured at 1280x600 (519px under the sticky bar), from the top of a
   band's heading to the end of its content: POPULAARSED TOOTED 511px (was
   666), MEGA DIIL 434 (was 513), UUED TOOTED 484 (was 752). At 1366x640,
   1414x645 and 1440x650 all three fit with their headings too.
   ========================================================================== */

@media (max-width: 1023px) {

	.home-section {
		padding-block: var(--space-lg);
	}

	.home-section__head {
		margin-bottom: var(--space-md);
	}
}

@media (min-width: 1024px) and (max-width: 1439px), (min-width: 1024px) and (max-height: 880px) {

	.home-section,
	.home-popular,
	.home-deal {
		padding-block: var(--space-lg);
	}

	.home-section__head {
		margin-bottom: var(--space-md);
	}

	/* Homepage cards only: front-page.css also styles the cocktail page's
	   "Ehita see kokteil" cards, which keep their own sizes. */
	.home-new .product-card__title,
	.home-popular .product-card__title {
		font-size: 20px;
		line-height: 26px;
	}

	/*
	 * Uued tooted: the stack's plate 160 for 206 (213px tall for 275). The
	 * featured plate takes its height from these two cards, so the whole
	 * composition is 450px tall at 1280 instead of 629, and fits under the
	 * bar with its heading.
	 */
	.home-new__stack .product-card--stack .product-card__media {
		width: 160px;
	}

	/* At 680px of height and less (the theme's "very short" tier; 620 until
	   04.11.2026) 140, 187px tall: heading and row 484 of the 519 under the bar
	   at 1280x600, where 160 left the second card's price cut (visual QA
	   4.11.2026, #8). At 1414x645 the run is 483 of 564 for 537. Taller
	   windows keep 160. */
	@media (max-height: 680px) {

		.home-new__stack .product-card--stack .product-card__media {
			width: 140px;
		}
	}

	/*
	 * Populaarsed: a plate a little wider than tall (10:9) for the portrait
	 * 3:4 — 270 x 243 at 1280 where it was 270 x 360 — so the bottle, the
	 * name, the price and "Lisa" are one screen (p11, images 7 and 8). The
	 * bottle is still contained, never cropped.
	 */
	.home-popular .product-card--grid .product-card__media {
		aspect-ratio: 10 / 9;
	}

	/* Populaarsed at 680px of height and less: 5:4 for 10:9 (270 x 216 at 1280
	   for 243). At 1280x600 the heading-to-"Lisa" run was 535 of the 519 under
	   the sticky bar, the last card's button and deposit note cut (measured
	   04.11.2026). The bottle stays contained, never cropped. */
	@media (max-height: 680px) {

		.home-popular .product-card--grid .product-card__media {
			aspect-ratio: 5 / 4;
		}
	}

	/* Mega diil: a shade less tall (5:6 for 79:100). The half stagger that
	   was here went with the stagger itself (client 16.11, point 6). */
	.home-deal__tile {
		aspect-ratio: 5 / 6;
	}

	/* Blogi: the headline a step smaller, as the product names. */
	.home-blog .blog-card__title {
		font-size: 20px;
		line-height: 28px;
	}

	/* Avasta kokteile on a short window: the square tiles, which alone set
	   the rows' height, 4:3 for 11:10 — the band was the one left at its
	   tall-screen size, 876-892px from heading to end in a 708-751px space
	   under the bar on 13" laptops (1440x789, 1470x832; 19.11.2026). The
	   wide photo and the quote follow the rows; the photographs stay cover,
	   a little less of their top and bottom shown. Wide tall windows
	   (1180-1439 x 900+) keep 11:10. */
	@media (max-height: 880px) {

		.home-cocktails__tile--small {
			aspect-ratio: 4 / 3;
		}
	}
}

/* ==========================================================================
   HERO ON LARGE DISPLAYS (>1440)
   --------------------------------------------------------------------------
   The frame is a 1440 artboard: a 1312 rail, the copy column ~40% of it, the
   card 29%, and 31% of vineyard between them. Above 1440 the rail kept growing
   (to 4.5% side margins above 1920, usertest 31.10 finding 1) while the copy
   and the card stayed at their 1440 sizes, so every extra pixel went into the
   gap: 45% of the rail at 1920, 60% at 2560, 74% at 3840 — a small heading and
   a small card at opposite edges of a huge picture (re-audit 01.11).

   Here the composition grows with the rail instead, as two scales:

   --hero-t  the heading. It follows the rail's width (rail / 1312 ≈
             0.0694vw), held at 1.25x the card's height allowance so the copy
             never outgrows the card beside it.
   --hero-ui the rest of the copy column — badge, paragraph, buttons — at
             half the heading's growth (1.3 where the heading is 1.6): at the
             full scale the frame's 74px buttons became 118px slabs and the
             paragraph a second heading under an unscaled header.
   --hero-c  the card and the hero's own height. It follows the rail too, but
             also the viewport's height: 0.1122vh − 0.137px reaches 1 at
             ~1013px tall, so in a shorter window (a 1920x1080 monitor's
             browser is ~950) the card keeps its 1440 size. Above that the
             offset keeps "Lisa korvi" at ~0.9 of the viewport height, so the
             828px card (three-line name) grows only as far as the first
             screen allows and never pushes its button below the fold.

   Both are lengths of about 1px × scale, used as calc(N * var(--hero-…)).
   Both are exactly 1 at 1440 (floor), so 1440 and below are unchanged; the
   copy stops at 1.6 (a 77px heading) and the card at 1.75. Above ~2600 the
   rail itself stops at 2352 (layout.css), which keeps the composition
   together on ultra-wide and 100%-scaled 4K screens.

   Nothing is redrawn: same columns, same card flush to the rail's right edge,
   same type pairs (the origin panel is gone, 04.11.2026) — only their size.
   ========================================================================== */

@media (min-width: 1441px) {

	.home-hero {
		--hero-t: clamp(1px, min(0.0694vw, 0.14025vh - 0.17125px), 1.6px);
		--hero-c: clamp(1px, min(0.0694vw, 0.1122vh - 0.137px), 1.75px);
		--hero-ui: calc(0.5px + var(--hero-t) / 2);
		padding-block: calc(64 * var(--hero-c));
	}

	.home-hero__inner {
		min-height: calc(778 * var(--hero-c));
		column-gap: calc(24 * var(--hero-t));
	}

	/* Copy column */
	.home-hero__content {
		gap: calc(24 * var(--hero-ui));
	}

	.home-hero__badge {
		padding: calc(9 * var(--hero-ui)) calc(25 * var(--hero-ui));
		font-size: calc(12 * var(--hero-ui));
		line-height: calc(16 * var(--hero-ui));
	}

	.home-hero__title {
		max-width: calc(576 * var(--hero-t));
		font-size: calc(48 * var(--hero-t));
		line-height: calc(56 * var(--hero-t));
	}

	.home-hero__description {
		max-width: calc(448 * var(--hero-ui));
		font-size: calc(18 * var(--hero-ui));
		line-height: calc(29.25 * var(--hero-ui));
	}

	.home-hero__actions {
		gap: calc(24 * var(--hero-ui));
		padding-top: calc(48 * var(--hero-ui));
	}

	.home-hero__cta {
		gap: calc(16 * var(--hero-ui));
		padding: calc(24 * var(--hero-ui)) calc(80 * var(--hero-ui));
		font-size: calc(14 * var(--hero-ui));
		line-height: calc(24 * var(--hero-ui));
	}

	/* Card. The extra width above 1440 (up to 40px, see >=1280) is kept on top
	   of the scaled frame width, still without touching the bottle's height. */
	.home-hero__product {
		padding-bottom: calc(24 * var(--hero-c));
	}

	.home-hero__card {
		max-width: calc(380 * var(--hero-c) + clamp(0px, (100vw - 1440px) / 12, 40px));
		gap: calc(48 * var(--hero-c));
		padding: calc(48 * var(--hero-c));
	}

	.home-hero__heart {
		top: calc(25 * var(--hero-c));
		left: calc(25 * var(--hero-c));
		width: calc(40 * var(--hero-c));
		height: calc(40 * var(--hero-c));
	}

	.home-hero__heart svg,
	.home-hero__cart svg {
		width: calc(20 * var(--hero-c));
		height: calc(20 * var(--hero-c));
	}

	.home-hero__bottle {
		height: calc(420 * var(--hero-c));
	}

	.home-hero__glow {
		width: calc(256 * var(--hero-c));
		height: calc(256 * var(--hero-c));
	}

	.home-hero__details {
		gap: calc(8 * var(--hero-c));
	}

	.home-hero__product-name {
		font-size: calc(24 * var(--hero-c));
		line-height: calc(32 * var(--hero-c));
	}

	.home-hero__product-meta {
		font-size: calc(12 * var(--hero-c));
		line-height: calc(16 * var(--hero-c));
	}

	.home-hero__price {
		gap: calc(10 * var(--hero-c));
		padding-top: calc(16 * var(--hero-c));
	}

	.home-hero__price-value {
		font-size: calc(24 * var(--hero-c));
		line-height: calc(32 * var(--hero-c));
	}

	.home-hero__price-value del {
		margin-right: calc(6 * var(--hero-c));
		font-size: calc(16 * var(--hero-c));
	}

	.home-hero__volume {
		font-size: calc(12 * var(--hero-c));
	}

	.home-hero__cart {
		gap: calc(16 * var(--hero-c));
		margin-top: calc(8 * var(--hero-c));
		padding: calc(24 * var(--hero-c));
		font-size: calc(16 * var(--hero-c));
		line-height: calc(24 * var(--hero-c));
	}

	/* Centred in the scaled bottom padding (see the base rule, QA-A F1). */
	.home-hero__details .added_to_cart {
		top: calc(100% + (48 * var(--hero-c) - 24px) / 2);
		font-size: calc(12 * var(--hero-c));
	}
}

/* ==========================================================================
   HERO ON A SHORT DESKTOP WINDOW (client, 04.11.2026)
   --------------------------------------------------------------------------
   The client's laptop shows the site at ~1414x645 CSS px. The hero there kept
   the frame's 1440x900 geometry: an inner min-height of 778, a 420px bottle
   area and 48px card padding make an 828px card. Under the 122px header only
   523px of the first screen is left, so the card's top sat at y=186 and its
   price (830-878) and "Lisa korvi" (894-966) were off-screen at 1414x645,
   1440x650, 1366x640, 1280x600, 1280x720 and 1440x768 alike (measured
   04.11, Chromium, HEAD 159c4cf).

   Here the same composition — copy left, card flush right, bottle, name,
   origin line, price, button — is set to the height that is actually there:
   no min-height, 24px of hero padding for 64, the card padding and gaps one
   step down, the bottle area taken from what the window leaves, the heading
   40/48 for 48/56 and the paragraph 16/26 for 18/29. Nothing is hidden or
   clipped; the bottle is still contained, never cropped. The query is the
   theme's short-laptop system (catalog, PDP, mega menu): 1440x900 and taller
   windows never enter it and keep the frame.

   After (Chromium, 04.11): card 146-631 and "Lisa korvi" ending at 607 at
   1414x645; 146-586 / 562 at 1280x600; 146-706 / 682 at 1280x720; 146-746 /
   722 at 1440x768. A three-line product name adds 26px and still fits 600.
   ========================================================================== */

@media (min-width: 1024px) and (max-height: 880px) {

	.home-hero {
		padding-block: var(--space-md);
	}

	.home-hero__inner {
		min-height: 0;
	}

	/* Copy column */
	.home-hero__content {
		gap: var(--space-sm);
	}

	/* 480 is the frame's 576 measure at 40/48: the frame's own line breaks
	   ("…joogid / üle kogu maailma.") survive the smaller size. */
	.home-hero__title {
		max-width: 480px;
		font-size: 40px;
		line-height: 48px;
	}

	.home-hero__description {
		max-width: 480px;
		font-size: 16px;
		line-height: 26px;
	}

	.home-hero__actions {
		gap: var(--space-sm);
		padding-top: var(--space-sm);
	}

	/* 58px tall for 74; the frame's 80px side padding and the two widths stay. */
	.home-hero__cta {
		padding-block: var(--space-sm);
	}

	/* Card */
	.home-hero__product {
		padding-bottom: 0;
	}

	.home-hero__card {
		gap: var(--space-sm);
		padding: var(--space-md);
	}

	/*
	 * The bottle takes what the window leaves after the header (122), the
	 * hero's padding (48) and the rest of the card (~250 with a two-line
	 * name): 100vh − 420, so 180 at 600, 225 at 645, 300 at 720, 340 (the cap)
	 * from 760. The floor was 180 (148 with the strip) until 19.11.2026; it
	 * is 150 (118) now, still a recognisable bottle, so that on the 13"-14"
	 * Windows laptops at 150 % display scaling (a 1280x585 window) and at
	 * 125 % zoom (1024x551) the card's "Lisa korvi" is on the first screen
	 * (independent QA D1, 19.11: it ended at 583 and 596). Windows taller
	 * than ~600 never reach the floor and are unchanged.
	 *
	 * With the announcement strip on (body.has-announce-strip, header.css)
	 * its 32px comes off the bottle and off the floor, so the card ends where
	 * it ended without the strip: 631 at 1414x645, 626 at 1366x640, 586 at
	 * 1280x600 (bottle 148 there). Strip off: the property is unset and the
	 * rule computes exactly as before (QA D2 F4).
	 */
	.home-hero__bottle {
		height: clamp(calc(150px - var(--site-announce-h, 0px)), calc(100vh - 420px - var(--site-announce-h, 0px)), 340px);
	}

	.home-hero__product-name {
		font-size: 20px;
		line-height: 26px;
	}

	.home-hero__price {
		padding-top: var(--space-xs);
	}

	/* 56px tall for 72 — still far above the 36px desktop target. */
	.home-hero__cart {
		padding: var(--space-sm);
	}

	/* "Vaata ostukorvi" after an add fills the 24px bottom padding exactly,
	   so the card keeps its height (QA-A F1: 631 -> 671 at 1414x645). */
	.home-hero__details .added_to_cart {
		top: 100%;
	}
}

/*
 * At 680 and less the two stacked CTAs (58 + 16 + 58) push the copy column
 * past the space under the header; side by side they need one row. With the
 * frame's 80px side padding they never fitted (326 + 16 + 281 in a 480-607
 * column), so they wrapped and stayed stacked at every width (independent
 * QA D1, 19.11.2026: at 1280x585, 1024x551 and 1093x506 the buttons ended
 * below the window). Their side padding now gives way below 1440 — down to
 * 32px, 230 + 16 + 185 = 431 at 1024 — so they share one row at every
 * width. Their height (58) and type are unchanged.
 *
 * The heading follows the window's height here too: 40px at 680 and above,
 * 32px at about 520 and below (5vh + 6px between), line-height 1.2 — at
 * 506 it is four lines of 38px for 48, the copy column ends inside the
 * window. 32px is still twice the paragraph.
 */
@media (min-width: 1024px) and (max-height: 680px) {

	.home-hero__actions {
		flex-direction: row;
		flex-wrap: wrap;
	}

	/* Only as much as the row needs: 32px (the theme's dark button,
	   .btn--dark) up to ~1130 wide, 69 at 1366, the frame's 80 from 1440 —
	   where the column (644+) already holds both at full size, so wider
	   windows, also above 1440, keep their buttons exactly. */
	.home-hero__cta {
		padding-inline: clamp(32px, calc(16vw - 150px), 80px);
	}

	.home-hero__title {
		font-size: clamp(32px, calc(5vh + 6px), 40px);
		line-height: 1.2;
	}
}
