/* ==========================================================================
   PRODUCT CATALOGUE
   --------------------------------------------------------------------------
   Shared by every catalogue template — Vein first, then Vahuvein, Kange
   alkohol and the rest. Nothing here is wine-specific.

   Mobile-first: one column and a filter drawer, widening to the Figma's
   four-column grid with a horizontal filter bar at 1280.

   Figma-specific measurements (48px image panel padding, 311px cards, the
   two-column promo span) live here as component values rather than becoming
   global tokens. Colours are all resolved to the existing token set — the
   page sits on --color-cream, never white.
   ========================================================================== */

.catalog {
	padding-block: var(--space-lg) var(--space-2xl);
}

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

.catalog-hero {
	margin-bottom: var(--space-lg);
}

/* Frame: 27px of ink between this and the heading below it. */
.catalog-hero__eyebrow {
	margin: 0 0 var(--space-sm);
	font-family: var(--font-ui);
	font-weight: 500;
	font-size: 12px;
	line-height: 16px;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--color-text-secondary);
}

/* Catalogue-specific display size. The global heading scale is untouched. */
.catalog-hero__title {
	/* Frame: 41px of ink between the heading and the paragraph. */
	margin: 0 0 var(--space-md);
	font-family: var(--font-heading);
	font-style: normal;
	font-weight: 400;
	font-size: 32px;
	line-height: 1.2;
	color: var(--color-primary-dark);
}

/*
 * 75ch: measured on the UI Final the intro's longest line reaches 811px from a
 * 64px gutter, which this face and size wrap to at roughly 75 characters. At 62
 * it broke a line and a half early.
 */
.catalog-hero__intro {
	max-width: 75ch;
}

/* --------------------------------------------------------------------------
   AVASTA — curated entry points under the intro

   A label and a row of outlined shortcuts. Measured off the UI Final: the row
   stands 36px below the intro, each control is 39px tall, and they sit 16px
   apart with 26px between the label and the first of them.
   -------------------------------------------------------------------------- */

.catalog-hero__discover {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: var(--space-sm) 26px;
	/* Frame: 35px of ink from the paragraph's last line to this row. */
	margin-block-start: 29px;
}

/*
 * Taken from the design's own type panel rather than measured off a capture:
 * Work Sans SemiBold 14/20, tracking -0.7px, #5B403C. The negative tracking is
 * deliberate and is why this label does not use the positive letter-spacing the
 * page's other uppercase micro-labels carry.
 */
.catalog-hero__discover-label {
	font-family: var(--font-ui);
	font-weight: 600;
	font-size: 14px;
	line-height: 20px;
	letter-spacing: -0.7px;
	text-transform: uppercase;
	color: var(--color-text);
}

.catalog-hero__discover-list {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-sm);
	margin: 0;
	padding: 0;
	list-style: none;
}

.catalog-hero__discover-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 39px;
	/* 8 + 21 line + 8 + 2 border = 39, as the design draws it. */
	padding: 8px 28px;
	/*
	 * Re-measured off UI Final at 90% (1.8 capture px per design px): the
	 * hairline's peak is #97786F and, corrected for the ~90% coverage a 1px
	 * line gets at that scale, the drawn colour is body brown at about 75%.
	 * An earlier sample read #C5B3B0 from a much smaller capture, where a 1px
	 * line blends most of the way into the page.
	 */
	border: 1px solid color-mix(in srgb, var(--color-text) 70%, transparent);
	background-color: transparent;
	font-family: var(--font-ui);
	font-weight: 700;
	font-size: 14px;
	line-height: 21px;
	/* Sampled #1A1B1B — these read as ink, not as body brown. */
	color: var(--color-ink);
	text-decoration: none;
	transition:
		border-color var(--transition-base),
		color var(--transition-base);
}

.catalog-hero__discover-link:hover {
	border-color: var(--color-primary);
	color: var(--color-primary);
}

/* Sampled off the UI Final: the intro sets in #212222, the ink, not the brown
   body colour the rest of the site's running text uses. */
.catalog-hero__intro p {
	margin: 0;
	font-family: var(--font-body);
	font-size: 16px;
	line-height: 1.6;
	color: var(--color-ink);
}

.catalog-hero__intro p + p {
	margin-block-start: var(--space-sm);
}

/* --------------------------------------------------------------------------
   FILTERS — shared

   Every control is a real link or form. The drawer below 1024 and the
   horizontal bar above it render the same markup, restyled.
   -------------------------------------------------------------------------- */

/* Measured off the Figma frame: 60px from the active-filter row to the grid. */
.catalog-filters {
	margin-bottom: var(--space-lg);
}

.catalog-filters__mobile {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-sm);
	padding-block: var(--space-sm);
	border-block-start: 1px solid var(--color-surface-mid);
}

.catalog-filters__trigger {
	display: inline-flex;
	align-items: center;
	gap: var(--space-xs);
	padding: 11px 24px;
	border: 1px solid color-mix(in srgb, var(--color-text) 60%, transparent);
	border-radius: var(--radius-button);
	background: none;
	font-family: var(--font-ui);
	font-weight: 600;
	font-size: 14px;
	color: var(--color-ink);
	cursor: pointer;
}

.catalog-filters__trigger-count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 20px;
	height: 20px;
	padding-inline: 6px;
	border-radius: var(--radius-pill);
	background-color: var(--color-primary);
	color: var(--color-on-dark);
	font-size: 11px;
	font-weight: 700;
}

.catalog-filters__count {
	margin: 0;
	font-family: var(--font-ui);
	font-weight: 500;
	font-size: 12px;
	color: var(--color-text-secondary);
}

/* The panel is an ordinary block below the bar until it becomes a drawer. */
.catalog-filters__panel {
	padding-block-start: var(--space-md);
}

.catalog-filters__drawer-head,
.catalog-filters__drawer-foot {
	display: none;
}

.catalog-filters__bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-md);
	margin-bottom: var(--space-md);
}

.catalog-filters__dropdowns {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-sm);
	margin: 0;
	padding: 0;
	list-style: none;
}

.catalog-filters__dropdown {
	display: inline-flex;
	align-items: center;
	gap: var(--space-xs);
	/* 8 + 24 line + 8 + 2 border = 42, which is the height the frame draws. */
	padding: 8px 17px;
	/* Body brown at 70% — see the note on .catalog-hero__discover-link. */
	border: 1px solid color-mix(in srgb, var(--color-text) 70%, transparent);
	border-radius: var(--radius-button);
	font-family: var(--font-ui);
	font-weight: 500;
	font-size: 15px;
	color: var(--color-ink);
	text-decoration: none;
	white-space: nowrap;
	transition:
		border-color var(--transition-base),
		color var(--transition-base);
}

/*
 * The frame draws this control red whenever it is doing something: pointed at,
 * opened, or carrying a selection. Only the hover branch existed, so a panel
 * opened by keyboard or by URL — or simply left open while the pointer moved
 * away — dropped straight back to the resting brown while its panel stayed on
 * screen.
 */
.catalog-filters__dropdown:hover,
.catalog-filters__dropdown:focus-visible,
.catalog-filters__dropdown[aria-expanded='true'],
.catalog-filters__dropdown.is-open,
.catalog-filters__dropdown.is-active {
	border-color: var(--color-primary);
	color: var(--color-primary-dark);
}

/* A selection is more than an open panel, and the frame sets it heavier. */
.catalog-filters__dropdown.is-active {
	font-weight: 600;
}

.catalog-filters__dropdown:focus-visible {
	outline: 2px solid transparent;
	box-shadow: 0 0 0 3px var(--color-input-focus-ring);
}

.catalog-filters__dropdown.is-open svg {
	transform: rotate(180deg);
}

.catalog-filters__dropdown svg {
	transition: transform var(--transition-base);
}

.catalog-filters__count--bar {
	flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   FILTER GROUP — the expanded panel for one filter
   -------------------------------------------------------------------------- */

/*
 * The rule sits here — between the dropdown row and the panel it opens — which
 * is where the Figma frame puts it. Only one group is open at a time on
 * desktop, so exactly one rule ever shows; in the drawer, where every group is
 * listed at once, the same rule separates them.
 */
.catalog-filters__group {
	margin-bottom: var(--space-md);
	padding-block-start: var(--space-md);
	border-block-start: 1px solid var(--color-surface-mid);
}

.catalog-filters__group-title {
	margin: 0 0 var(--space-xs);
	font-family: var(--font-heading);
	font-style: normal;
	font-weight: 400;
	font-size: 20px;
	line-height: 1.3;
	color: var(--color-ink);
}

.catalog-filters__options {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-xs);
	margin: 0;
	padding: 0;
	list-style: none;
}

.catalog-filters__option {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 9px 25px;
	border: 1px solid var(--color-rose);
	border-radius: var(--radius-button);
	background-color: var(--color-cream);
	font-family: var(--font-ui);
	font-weight: 500;
	font-size: 14px;
	color: var(--color-ink);
	text-decoration: none;
	transition:
		background-color var(--transition-base),
		border-color var(--transition-base),
		color var(--transition-base);
}

.catalog-filters__option:hover {
	border-color: var(--color-primary);
}

.catalog-filters__option.is-selected {
	border-color: var(--color-primary);
	background-color: var(--color-primary);
	color: var(--color-on-dark);
	font-weight: 700;
}

/* Price range */

.catalog-filters__price {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: var(--space-sm);
}

.catalog-filters__price-field {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.catalog-filters__price-field label {
	margin-bottom: 0;
	font-family: var(--font-ui);
	font-weight: 600;
	font-size: 11px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--color-text-secondary);
}

.catalog-filters__price-field input {
	width: 8rem;
	padding: 10px 12px;
	font-size: 15px;
}

.catalog-filters__price-submit {
	padding: 11px 24px;
	border: 1px solid var(--color-primary);
	border-radius: var(--radius-button);
	background-color: var(--color-primary);
	color: var(--color-on-dark);
	font-family: var(--font-ui);
	font-weight: 600;
	font-size: 14px;
	cursor: pointer;
	transition: background-color var(--transition-base);
}

.catalog-filters__price-submit:hover {
	background-color: var(--color-primary-dark);
}

/* --------------------------------------------------------------------------
   ORIGIN FILTER — world, country, region

   Three levels, three deliberately different controls, all measured off the UI
   final: a large square-cornered world button that fills when chosen, a
   square-cornered country button that outlines in red and takes a check, and a
   pill for the region that fills when chosen.

   Scoped to .catalog-origin__* rather than reusing .catalog-filters__option,
   because that one class renders the options for every other filter and none
   of them should inherit this geometry.
   -------------------------------------------------------------------------- */

.catalog-origin__worlds,
.catalog-origin__countries,
.catalog-origin__regions {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-xs);
	margin: 0;
	padding: 0;
	list-style: none;
}

/* The micro-labels above the country and region rows. */
.catalog-origin__label {
	/* Measured: 24 above, 8 below — the label sits close to what it names. */
	margin: var(--space-md) 0 var(--space-xs);
	font-family: var(--font-ui);
	font-weight: 600;
	font-size: 10px;
	line-height: 14px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: color-mix(in srgb, var(--color-text) 50%, transparent);
}

.catalog-origin__world,
.catalog-origin__country,
.catalog-origin__region {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	border: 1px solid var(--color-rose);
	background-color: var(--color-cream);
	font-family: var(--font-ui);
	color: var(--color-ink);
	text-decoration: none;
	transition:
		background-color var(--transition-base),
		border-color var(--transition-base),
		color var(--transition-base);
}

.catalog-origin__world:hover,
.catalog-origin__country:hover,
.catalog-origin__region:hover {
	border-color: var(--color-primary);
}

/* ==========================================================================
   BROWSING A LONG TERM LIST BY INITIAL

   Grapes and brands are too many to read as one list, so they are browsed a
   letter at a time. The hierarchy is carried by shape alone, which is why there
   are no step labels: the letters are the compact square-ish controls the
   filter bar already uses, and the terms under them are the soft pills the
   origin panel's regions already are. Nothing new is introduced — the letters
   borrow the bar's radius, the terms borrow the regions' geometry, and the
   selected row is the active-filter chip exactly as the archive draws it.
   ========================================================================== */

/*
 * The rhythm of the panel is set here, and every rule that sets it is qualified
 * by the block. A list marked role="list" — which these are, because removing
 * the bullets removes the list semantics with them — is reset by
 * `ul[role="list"] { margin: 0 }` in the base layer, and an element-plus-
 * attribute selector outranks a bare class. Qualifying wins that on specificity
 * rather than by shouting.
 *
 * Three steps: the label is bound to the chips it names at 8, and the two real
 * levels — choose a letter, then choose terms — are 24 apart. Measured against
 * 16, 20 and 28 in the live panel: at 16 and 20 the pills still read as a
 * second row of the alphabet rather than as what the alphabet opened, and at 28
 * the term row starts to drift away from the filter it belongs to.
 */

.catalog-alpha .catalog-alpha__label {
	/* The origin panel's level label, to the pixel. */
	margin: 0 0 var(--space-xs);
	font-family: var(--font-ui);
	font-weight: 600;
	font-size: 10px;
	line-height: 14px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: color-mix(in srgb, var(--color-text) 50%, transparent);
}

.catalog-alpha .catalog-alpha__selected {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-xs);
	margin: 0 0 var(--space-md);
	padding: 0;
	list-style: none;
}

/* --------------------------------------------------------------------------
   THE LETTERS — square-ish, and the only thing here that is not a filter
   -------------------------------------------------------------------------- */

.catalog-alpha .catalog-alpha__letters {
	display: flex;
	flex-wrap: wrap;
	/* Letter to letter is unchanged: the alphabet reads as one row of one
	   control, and it is the step below it that was missing. */
	gap: var(--space-xs);
	margin: 0 0 var(--space-md);
	padding: 0;
	list-style: none;
}

.catalog-alpha__letter {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	/* Square, and a comfortable target on a phone without being a slab. */
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1px solid var(--color-rose);
	/* The bar's own radius: rounded enough to belong, square enough to read as
	   a different kind of control from the pills below. */
	border-radius: var(--radius-button);
	background-color: var(--color-cream);
	font-family: var(--font-ui);
	font-weight: 600;
	font-size: 15px;
	line-height: 1;
	color: var(--color-ink);
	cursor: pointer;
	transition:
		background-color var(--transition-base),
		border-color var(--transition-base),
		color var(--transition-base);
}

.catalog-alpha__letter:hover {
	border-color: var(--color-primary);
	color: var(--color-primary-dark);
}

.catalog-alpha__letter:focus-visible {
	outline: 2px solid transparent;
	box-shadow: 0 0 0 3px var(--color-input-focus-ring);
}

.catalog-alpha__letter.is-active {
	border-color: var(--color-primary);
	background-color: var(--color-primary);
	color: var(--color-on-dark);
}

/* --------------------------------------------------------------------------
   THE TERMS — the region pill, which is what these are
   -------------------------------------------------------------------------- */

.catalog-alpha .catalog-alpha__terms {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-xs);
	margin: 0;
	padding: 0;
	list-style: none;
}

/*
 * The block sets display on these lists, so the plain [hidden] rule in the base
 * layer no longer reaches them. Restated at the same reach rather than shouted.
 */
.catalog-alpha .catalog-alpha__terms[hidden],
.catalog-alpha .catalog-alpha__letters[hidden],
.catalog-alpha .catalog-alpha__selected [hidden] {
	display: none;
}

.catalog-alpha__term {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 39px;
	padding: 8px 25px;
	border: 1px solid var(--color-rose);
	border-radius: var(--radius-pill);
	background-color: var(--color-on-dark-pure);
	font-family: var(--font-ui);
	font-weight: 400;
	font-size: 14px;
	line-height: 21px;
	color: var(--color-ink);
	text-decoration: none;
	transition:
		background-color var(--transition-base),
		border-color var(--transition-base),
		color var(--transition-base);
}

.catalog-alpha__term:hover {
	border-color: var(--color-primary);
}

/*
 * Chosen, in the language the country control already speaks: the border and
 * the label go primary, the weight goes up, the surface stays as it was, and
 * the mark that says so is the same check at the same size in the same place.
 * Only the shape differs, and deliberately — a country is square here, a term
 * is a pill — so the two read as one family doing one thing at two levels.
 *
 * A filled red pill was what this used to be, and it made a chosen term the
 * loudest object in the panel rather than a chosen one.
 */
.catalog-alpha .catalog-alpha__term.is-selected {
	border-color: var(--color-primary);
	color: var(--color-primary);
	font-weight: 700;
}

/* The mark keeps its size when the pill has to wrap. */
.catalog-alpha .catalog-alpha__term svg {
	flex-shrink: 0;
}

/*
 * Changing letter swaps one set of pills for another in place. A short fade in
 * is enough to say that something was replaced rather than moved; there is
 * nothing to follow, so nothing slides.
 */
.catalog-alpha__terms.is-entering {
	animation: catalog-alpha-in 140ms ease-out;
}

@keyframes catalog-alpha-in {

	from {
		opacity: 0;
	}

	to {
		opacity: 1;
	}
}

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

	.catalog-alpha__terms.is-entering {
		animation-duration: 1ms;
	}
}

/* --------------------------------------------------------------------------
   WORLD — the largest control, filled when chosen
   -------------------------------------------------------------------------- */

.catalog-origin__world {
	min-height: 48px;
	/* 11 + 24 line + 11 + 2 border = the design's 48 exactly. */
	padding: 11px 32px;
	/* Square, as drawn — the roundness belongs to the region pills. */
	border-radius: 0;
	font-weight: 700;
	font-size: 14px;
	line-height: 24px;
}

.catalog-origin__world.is-selected {
	border-color: var(--color-primary);
	background-color: var(--color-primary);
	color: var(--color-on-dark);
}

/* --------------------------------------------------------------------------
   COUNTRY — outlined in red when chosen, with a check
   -------------------------------------------------------------------------- */

.catalog-origin__country {
	min-height: 39px;
	/* 8 + 21 line + 8 + 2 border = 39. */
	padding: 8px 25px;
	border-radius: 0;
	background-color: var(--color-on-dark-pure);
	font-weight: 400;
	font-size: 14px;
	line-height: 21px;
}

/*
 * Outlined rather than filled: the country sits between a filled world above it
 * and filled regions below, and the design uses that contrast to show which
 * level you are on.
 */
.catalog-origin__country.is-selected {
	border-color: var(--color-primary);
	color: var(--color-primary);
	font-weight: 700;
}

.catalog-origin__country svg {
	flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   REGION — a pill, filled when chosen
   -------------------------------------------------------------------------- */

.catalog-origin__region {
	min-height: 39px;
	padding: 8px 25px;
	border-radius: var(--radius-pill);
	background-color: var(--color-on-dark-pure);
	font-weight: 400;
	font-size: 14px;
	line-height: 21px;
}

.catalog-origin__region.is-selected {
	border-color: var(--color-primary);
	background-color: var(--color-primary);
	color: var(--color-on-dark);
	font-weight: 700;
}

/*
 * No trailing padding: the filter group already carries a bottom margin, and
 * adding to it pushed the rule below the regions twice as far as the design.
 */

/* ==========================================================================
   ACTIVE FILTERS + SORT
   -------------------------------------------------------------------------- */

.catalog-filters__active {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-sm) var(--space-md);
	padding-block: var(--space-sm);
	border-block-start: 1px solid var(--color-surface-mid);
}

.catalog-filters__active-left {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--space-xs);
	min-width: 0;
}

/*
 * Uppercase, as the design draws it. This row is shared by every filter and
 * looks the same whichever one is open, so it is corrected here rather than
 * scoped — a sentence-case label under one panel and an uppercase one under
 * another would be the bug, not the fix.
 */
.catalog-filters__active-label {
	margin: 0;
	font-family: var(--font-ui);
	font-weight: 700;
	font-size: 12px;
	letter-spacing: 0.07em;
	text-transform: uppercase;
	color: var(--color-text-secondary);
}

.catalog-filters__chips {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-xs);
	margin: 0;
	padding: 0;
	list-style: none;
}

.catalog-filters__chip {
	display: inline-flex;
	align-items: center;
	gap: var(--space-xs);
	padding: 5px 13px;
	border: 1px solid var(--color-rose);
	border-radius: var(--radius-sm);
	background-color: var(--color-surface-light);
	font-family: var(--font-ui);
	font-size: 12px;
	color: var(--color-ink);
	text-decoration: none;
	transition: border-color var(--transition-base);
}

.catalog-filters__chip:hover {
	border-color: var(--color-primary);
}

.catalog-filters__clear {
	font-family: var(--font-ui);
	font-weight: 700;
	font-size: 12px;
	color: var(--color-primary);
	text-decoration: underline;
}

.catalog-filters__sort {
	display: flex;
	align-items: center;
	gap: var(--space-xs);
	margin-inline-start: auto;
}

/*
 * forms.css styles every bare <label> as an uppercase field label. These two
 * are not field labels in that sense, so the shared treatment is reset rather
 * than fought with weight.
 */
.catalog-filters__sort-label {
	display: inline;
	margin: 0;
	font-family: var(--font-ui);
	font-weight: 500;
	font-size: 14px;
	letter-spacing: 0;
	text-transform: none;
	color: var(--color-text);
}

.catalog-filters__sort-select {
	width: auto;
	padding: 8px 40px 8px 12px;
	border-color: transparent;
	background-color: transparent;
	font-weight: 700;
	font-size: 14px;
}

/* ==========================================================================
   RESULTS

   The region catalog.js replaces when a filter changes. It carries no layout of
   its own — the grid below is unchanged by being wrapped — only the state that
   says a newer answer is on its way.
   ========================================================================== */

/*
 * Loading is a dimming of the results that are already there, not a blanking of
 * the page: nothing moves, the controls stay live, and the previous products
 * remain readable until the new ones arrive. There is no spinner in the design
 * system and this is not the place to invent one.
 */
.catalog-results {
	transition: opacity var(--transition-base);
}

.catalog-results.is-loading {
	opacity: 0.45;
	pointer-events: none;
}

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

	.catalog-results {
		transition: none;
	}

}

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

.catalog-grid {
	display: grid;
	grid-template-columns: 1fr;
	/*
	 * dense: the promos are placed by product count for four across, and the
	 * spotlight spans two columns. At three across (or two) it does not fit in
	 * the row it lands on and would leave a gap beside the product before it;
	 * dense lets the next product fill that gap instead.
	 */
	grid-auto-flow: row dense;
	gap: var(--space-md);
}

/* Both promos break out of the column rhythm; the spotlight narrows again
   once there are enough columns for it to sit beside products. */
.catalog-promo {
	grid-column: 1 / -1;
}

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

   The theme draws the warm grey panel; product photography is transparent and
   is contained inside it, never cropped to fill it.
   -------------------------------------------------------------------------- */

.catalog-card {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

/* The image link and the heart, which move together — see the hover below. */
.catalog-card__visual {
	position: relative;
	margin-bottom: var(--space-md);
}

.catalog-card__media {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	/*
	 * Proportional, not fixed, so the inset follows the column width. Figma drew
	 * 15% (48px on a 311px card), which left a slim bottle some 85px wide and its
	 * label unreadable. The photograph already carries about 5% of empty canvas on
	 * every side, so the panel only needs a small inset on top of that: the bottle
	 * stands roughly 1.3 times taller at the same column width.
	 */
	padding: 4%;
	border-radius: var(--radius-button);
	background-color: var(--color-surface-light);
}

/*
 * The wrapper owns the geometry, so every panel in a row is the same height
 * whatever shape the bottle is. contain — never cover — keeps the whole
 * product visible; a magnum and a flute both fit without being cut.
 */
.catalog-card__image {
	display: block;
	width: 100%;
	/* The product files are 3:4 canvases, so the box is too and nothing is
	   letterboxed. Any other shape is still contained, never cropped. */
	aspect-ratio: 3 / 4;
	object-fit: contain;
	object-position: center;
}

/* Holds the panel's height when a product has no image at all. */
.catalog-card__media:not(:has(.catalog-card__image))::before {
	content: '';
	display: block;
	width: 100%;
	aspect-ratio: 3 / 4;
}

/*
 * The panel lifts slightly while the card is hovered — the previous site's
 * interaction, carried onto this card. The whole card is the trigger and the
 * panel is the only thing that moves, so the name, price and cart button stay
 * put and nothing reads as drifting. The wrapper moves rather than the link, so
 * the wishlist heart on the panel travels with it. The homepage cards use the
 * same gesture.
 *
 * A translate, deliberately: the card's grid footprint is unchanged, so no
 * neighbour reflows and no scrollbar is summoned. Everything inside the panel,
 * the out-of-stock flag included, travels with it.
 *
 * Pointer devices only. On a touchscreen :hover latches after a tap and the
 * panel would sit lifted until something else was touched.
 */
@media (hover: hover) and (pointer: fine) {

	.catalog-card__visual {
		transition: transform var(--transition-base);
	}

	.catalog-card:hover .catalog-card__visual {
		transform: translateY(-3px);
	}
}

.catalog-card__flag {
	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-ink);
	color: var(--color-on-dark);
	font-family: var(--font-ui);
	font-weight: 600;
	font-size: 11px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.catalog-card__body {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	min-width: 0;
}

.catalog-card__region {
	margin: 0 0 4px;
	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);
}

/*
 * Clamped to two lines so the cards in a row keep their footers aligned. The
 * full name stays in the DOM, so the link's accessible name is never truncated.
 */
.catalog-card__title {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	overflow: hidden;
	margin: 0 0 var(--space-sm);
	min-height: calc(2 * 1.25em);
	font-family: var(--font-heading);
	font-style: normal;
	font-weight: 400;
	font-size: 20px;
	line-height: 1.25;
	color: var(--color-ink);
}

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

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

.catalog-card__footer {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: var(--space-xs);
	/* Collects the slack, pinning price and button to the card foot. */
	margin-block-start: auto;
}

.catalog-card__price {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 4px 8px;
	margin: 0;
	min-width: 0;
}

/*
 * Sampled off the UI Final: a plain price sets in #1E1F1F and only a reduced
 * one turns red — the design uses the colour to mark the reduction, next to the
 * badge that says the same thing. Ours reddened every price, which spent the
 * signal on products that carry no offer.
 */
.catalog-card__price-value {
	font-family: var(--font-meta);
	font-weight: 700;
	font-size: 18px;
	line-height: 26px;
	color: var(--color-ink);
}

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

/*
 * WooCommerce separates thousands with a plain space, which would otherwise
 * break "4 500,00 €" after the "4" on a narrow card.
 *
 * An alcoholic product on sale no longer renders a <del> at all — see
 * inc/pricing.php — so there is nothing here to dim or strike. An alcohol-free
 * product still uses WooCommerce's own pair, which needs the same nowrap and
 * needs its <ins> underline removed.
 */
.catalog-card__price-value del,
.catalog-card__price-value ins,
.catalog-card__price-value .woocommerce-Price-amount {
	white-space: nowrap;
}

.catalog-card__price-value del {
	margin-inline-end: 4px;
	font-size: 12px;
	font-weight: 500;
	color: var(--color-text);
	opacity: 0.6;
}

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

.catalog-card__volume {
	/* Full strength: "75cl" on the Vein frame samples #5B403C exactly. */
	font-family: var(--font-meta);
	font-weight: 500;
	font-size: 11px;
	color: var(--color-text);
	/* "75cl · 9,00 €/L" wraps as one piece; in the related-products row on a
	   phone it broke after the dot and left "75cl ·" alone (final QA, 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.
 */
.catalog-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);
}

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

/*
 * Measured on the frame: 77.5 x 31.5 with a 12px corner, so it reads as a
 * short, round control. This was drawing 42px tall — a third taller — which is
 * what made it look squarer than the design beside it.
 */
.catalog-card__cart {
	display: inline-flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	/* 15px cart, 4px to an untracked label — the homepage card's control, and
	   the same 77 x 31.5 on this frame. */
	gap: 4px;
	min-height: 32px;
	padding: 6px 16px;
	line-height: 18px;
	border: 1px solid var(--color-primary);
	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;
	/* The frame sets this label in capitals: LISA, not Lisa. */
	letter-spacing: 0;
	text-transform: uppercase;
	text-decoration: none;
	white-space: nowrap;
	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. */
.catalog-card__cart svg {
	flex-shrink: 0;
}

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

.catalog-card__cart--link {
	background-color: transparent;
	color: var(--color-primary-dark);
}

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

/* WooCommerce appends this after an AJAX add; the card already links out. */
.catalog-card .added_to_cart {
	display: none;
}

/* --------------------------------------------------------------------------
   PROMOS — shared
   -------------------------------------------------------------------------- */

.catalog-promo {
	display: flex;
	min-width: 0;
	border-radius: var(--radius-button);
}

.catalog-promo__text {
	display: flex;
	flex-direction: column;
	gap: var(--space-sm);
	min-width: 0;
}

.catalog-promo__label {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin: 0;
	font-family: var(--font-ui);
	font-weight: 600;
	font-size: 11px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.catalog-promo__title {
	margin: 0;
	font-family: var(--font-heading);
	font-style: normal;
	font-weight: 400;
	line-height: 1.25;
}

.catalog-promo__body {
	margin: 0;
	font-family: var(--font-body);
	font-size: 15px;
	line-height: 1.6;
}

.catalog-promo__cta {
	align-self: flex-start;
	font-family: var(--font-ui);
	font-weight: 600;
	font-size: 14px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	text-decoration: none;
}

/* --------------------------------------------------------------------------
   PROMO — producer spotlight
   -------------------------------------------------------------------------- */

.catalog-promo--spotlight {
	flex-direction: column;
	gap: var(--space-md);
	/*
	 * Square. Probed the frame's own top-left pixel and it is red right into
	 * the corner — this tile is the one promo the design does not round, and
	 * the shared 12px was rounding it.
	 */
	border-radius: 0;
	padding: var(--space-lg);
	background-color: var(--color-primary-dark);
	color: var(--color-on-dark);
}

.catalog-promo--spotlight .catalog-promo__text {
	/* The frame stacks these unevenly — 23.2 of clear red under the eyebrow and
	   46.3 under the name — where one 16 gap gave 29 and 34. */
	gap: 10px;
	flex: 1 1 auto;
}

/*
 * --color-rose is the CVI's pink accent, and on this panel it measures 6.97:1
 * against the red — better than the Figma's own salmon at 6.48:1.
 */
.catalog-promo--spotlight .catalog-promo__label,
.catalog-promo--spotlight .catalog-promo__body {
	color: var(--color-rose);
}

/*
 * The frame sets this copy on a measure of its own rather than letting it fill
 * the text column, and its eight lines match their measured ink to within 1.1%
 * at 16/26. Stacked, that is what this panel uses.
 */
.catalog-promo--spotlight .catalog-promo__body {
	/* The frame's own gap between the name and the first line is 46.3 of clear
	   red; the column's 10 leaves this to make up the rest. */
	margin-block-start: 18px;
	font-size: 16px;
	line-height: 26px;
}

.catalog-promo--spotlight .catalog-promo__title {
	font-size: 26px;
	color: var(--color-on-dark);
}

.catalog-promo--spotlight .catalog-promo__cta {
	/* A 44px target (QA 18.11 D10); the label and its rule stay at the foot. */
	display: inline-flex;
	align-items: flex-end;
	box-sizing: border-box;
	min-height: 44px;
	margin-block-start: auto;
	padding-block-end: 5px;
	border-block-end: 1px solid var(--color-rose);
	color: var(--color-on-dark);
	transition: border-color var(--transition-base);
}

.catalog-promo--spotlight .catalog-promo__cta:hover {
	border-block-end-color: var(--color-on-dark);
}

.catalog-promo__media {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	/*
	 * The card is positioned, so only the bottle gives this box its height —
	 * and the bottle is deliberately shorter than the card it stands on. The
	 * floor is the card, or the card hangs out of its own column when stacked.
	 */
	min-height: 245px;
}

/* The bottle links to the featured product; the link draws no box of its own,
   so the image keeps sizing against the media column as before. */
.catalog-promo__media-link {
	display: contents;
}

/*
 * The frame puts a pale panel behind the bottle, turned slightly clockwise —
 * measured 179 x 245 at a 2.96 degree rotation, the same warm grey the product
 * cards use for their image stage. This was a blurred pill instead, which read
 * as a glow rather than as the card the design draws.
 */
.catalog-promo__backing {
	position: absolute;
	top: 50%;
	left: 50%;
	/*
	 * The frame's card is 174 x 239 inside a 646 panel — 26.9% of the panel's
	 * width, and it holds that share as the panel grows. Frozen at 179px it did
	 * not: at 1920 the panel reaches 852 and the card was still 179, a fifth of
	 * it, which is what left the tile reading as a small plate in a wide red
	 * field. The cap keeps 1440 exactly where it was measured.
	 */
	width: 179px;
	height: 245px;
	transform: translate(-50%, -50%) rotate(2.96deg);
	border-radius: var(--radius-button);
	background-color: var(--color-surface-light);
}

/*
 * The bottle stands inside the card rather than filling it. In the frame it is
 * 208 of the card's 239 — 87% of the height, with clear air above and below —
 * and this was 244 against a 245 card, edge to edge, which is what made the
 * card read as too small for what was on it.
 *
 * Sized from the card's width so the two scale together: 0.793 of the card is
 * this artwork's width at 87% of the card's height. It is capped, not stretched
 * — the drawing is proportionally far wider than the frame's photograph, so it
 * cannot also match the frame's 47% width. See the note in the report.
 */
.catalog-promo__image {
	position: relative;
	width: auto;
	max-width: 141px;
	object-fit: contain;
	filter: drop-shadow(0 25px 25px rgba(0, 0, 0, 0.25));
}

/* A brand's logo on the card (brand mode, no picture chosen): flat artwork,
   so no bottle shadow under it. */
.catalog-promo__image--logo {
	filter: none;
}

/* --------------------------------------------------------------------------
   PROMO — gift banner
   -------------------------------------------------------------------------- */

.catalog-promo--gift {
	flex-direction: column;
	align-items: flex-start;
	gap: var(--space-md);
	/* The design sets the band slightly further off the row above than the
	   uniform grid gap gives it. */
	margin-block-start: var(--space-sm);
	padding: var(--space-md);
	/* The frame draws a rose hairline around this band; sampled #E4BEB8. */
	border: 1px solid var(--color-rose);
	background-color: var(--color-surface-rose);
}

/*
 * The base rule pins the CTA to the top for the spotlight tile, which stacks.
 * This band is a row, and the frame centres the control against it.
 */
.catalog-promo--gift .catalog-promo__cta {
	align-self: center;
}

.catalog-promo--gift .catalog-promo__label {
	color: var(--color-primary);
}

/*
 * Measured on the frame: the heading's ink is 35.4px tall and 395px wide, which
 * this face sets at 32 — half again the 22 it was drawing, and the reason the
 * band read as small type in a large box. The body's ink is 16px on a 23.8px
 * pitch, so 17/24 rather than 14.
 */
.catalog-promo--gift .catalog-promo__title {
	font-size: 32px;
	line-height: 40px;
	color: var(--color-ink);
}

.catalog-promo--gift .catalog-promo__body {
	max-width: 52ch;
	font-size: 17px;
	line-height: 24px;
	color: var(--color-text);
}

/*
 * A fanned stack, as the frame draws it: three bordered cards overlapping,
 * the outer two tilted and the middle one on top. Measured at 1440 the group
 * is 188 x 156 with each card 97 wide, so each shows a 46px slice and the last
 * one needs its full width at the end.
 *
 * Grid tracks rather than negative margins do the overlap; the tilt is a
 * rotation because the shape itself is rotated, not nudged into place.
 */
.catalog-promo__gallery {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: 46px;
	align-items: center;
	justify-items: start;
	margin: 0;
	padding: 0 51px 0 0;
	list-style: none;
}

.catalog-promo__gallery-item {
	width: 97px;
	padding: 6px 6px 16px;
	border: 1px solid color-mix(in srgb, var(--color-rose) 60%, transparent);
	background-color: var(--color-on-dark);
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.catalog-promo__gallery-item:first-child {
	transform: rotate(-4deg);
}

/* The middle card sits over both of its neighbours. */
.catalog-promo__gallery-item:nth-child(2) {
	position: relative;
	z-index: 1;
}

.catalog-promo__gallery-item:last-child {
	transform: rotate(4deg);
}

.catalog-promo__gallery-image {
	display: block;
	width: 100%;
	height: 124px;
	object-fit: contain;
}

.catalog-promo__cta--button {
	/* Measured off the gift banner in UI Final: the label's ink runs 213.6px and
	   the button is 289.9 x 59.1. At the 14px this used to set, the label sets to
	   190.4 — 23px short, far outside what the capture's precision allows. At
	   16px it sets to 215.4, and 16px on the 24px line box with this padding
	   gives 291.4 x 60, so the type size and the box agree independently.

	   The weight goes to 600 with the rest of the button system. Weight moves the
	   label barely 1% (215.4 against 217.6) so the frame cannot settle it on its
	   own, but 600 is the closer of the two and it is what every other button
	   here uses. */
	/* 24px of side padding below 768: the 38px measured at 1440 leaves only
	   203px for a 215.8px label inside a 327px column at 375, and the button
	   breaks to two lines. */
	padding: 14px 24px;
	border-radius: var(--radius-button);
	background-color: var(--color-primary);
	color: var(--color-on-dark);
	font-size: 16px;
	font-weight: 600;
	letter-spacing: 0.05em;
	transition: background-color var(--transition-base);
}

@media (min-width: 768px) {

	/* Frame: 306 x 64. */
	.catalog-promo__cta--button {
		min-height: 64px;
		padding: 18px 45px;
	}
}

.catalog-promo__cta--button:hover {
	background-color: var(--color-primary-dark);
	color: var(--color-on-dark);
}

/* --------------------------------------------------------------------------
   EMPTY STATE
   -------------------------------------------------------------------------- */

.catalog-empty {
	padding-block: var(--space-2xl);
	text-align: center;
}

.catalog-empty__title {
	margin: 0 0 var(--space-xs);
	font-family: var(--font-heading);
	font-style: normal;
	font-size: 22px;
	color: var(--color-ink);
}

.catalog-empty__text {
	margin: 0 0 var(--space-md);
	font-family: var(--font-body);
	font-size: 15px;
	color: var(--color-text);
}

/* --------------------------------------------------------------------------
   LOAD MORE
   -------------------------------------------------------------------------- */

.catalog-more {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--space-sm);
	padding-block-start: var(--space-xl);
}

/*
 * "KUVATAKSE 18 / 245 TOOTEST" — uppercase and tracked, above the control, as
 * the frame draws it. Real catalogue numbers, never the frame's fixture.
 */
.catalog-more__count {
	margin: 0;
	font-family: var(--font-ui);
	font-weight: 600;
	font-size: 13px;
	line-height: 18px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--color-text-secondary);
}

.catalog-more__count.is-error {
	color: var(--color-error);
}

/* The frame fills this control; it was drawing an outline. */
/* The frame fills this control; it was drawing an outlined one. */
.catalog-more__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 52px;
	padding: 16px 48px;
	border: 1px solid var(--color-primary);
	border-radius: var(--radius-button);
	background-color: var(--color-primary);
	font-family: var(--font-ui);
	font-weight: 600;
	font-size: 14px;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--color-on-dark);
	text-decoration: none;
	cursor: pointer;
	transition:
		border-color var(--transition-base),
		background-color var(--transition-base),
		color var(--transition-base);
}

.catalog-more__button:hover {
	border-color: var(--color-primary-dark);
	background-color: var(--color-primary-dark);
	color: var(--color-on-dark);
}

.catalog-more__button.is-loading {
	opacity: 0.6;
	pointer-events: none;
}

/* ==========================================================================
   >= 600px — two product columns

   Not 480: two columns there left each card 204px wide, with barely 100px of
   bottle inside the panel. Phones below 600 also have two columns since the
   client's decision of 04.11.2026, with a card adapted to the narrower
   column — see "< 600px — TWO PRODUCTS PER ROW ON PHONES" at the end.
   ========================================================================== */

@media (min-width: 600px) {

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

	.catalog-promo--gift {
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
		flex-wrap: wrap;
		padding: var(--space-md) var(--space-lg);
	}
}

/* ==========================================================================
   >= 768px — tablet
   ========================================================================== */

@media (min-width: 768px) {

	.catalog {
		padding-block-start: var(--space-xl);
	}

	.catalog-hero__title {
		font-size: 40px;
	}

	.catalog-hero__intro p {
		font-size: 17px;
	}

	.catalog-promo--spotlight {
		flex-direction: row;
		align-items: stretch;
		gap: var(--space-lg);
		padding: var(--space-xl);
	}

	/*
	 * Beside the bottle the copy is set to occupy the panel, not to reproduce a
	 * number. The frame's English fixture fills its eight lines nearly to their
	 * own measure; the Estonian sentence here is longer and breaks shorter, so
	 * at the frame's 16/26 on a 180 measure it ran as ten thin lines that left
	 * the tile visibly emptier than the design — the copy read as a caption
	 * beside the bottle rather than as the second voice in the panel.
	 *
	 * 18/29 on 215 was the smallest of the sizes tried (17/200, 18/215, 18/232,
	 * 19/232) that fills like the frame: the block closes to within 37 of the
	 * action where 16/180 stopped 67 short, the lines carry whole phrases, and
	 * the 26px Caslon heading stays plainly dominant over an 18px Work Sans
	 * body. 19/232 crowds the action; 18/232 drops to eight lines and reopens
	 * the gap. The measure is the other half of it — size alone only makes thin
	 * lines taller.
	 *
	 * Stacked below 1024 none of this applies: the text has the block's full
	 * width, and both the narrow measure and the larger size stay here.
	 */
	/*
	 * 18/29 on a measure that follows the column.
	 *
	 * The frame's own body measures ~16/26 — 26.0px between line tops at 154%,
	 * and the same string renders 170 there against 173 at 16px here. That
	 * value does not transfer, and matching it was the wrong call: the frame is
	 * one 646px panel, while this one is grid-derived and runs 564 at 1280 to
	 * 852 at 1920. Type sized for 646 reads under-scaled everywhere above it,
	 * and against the card — which does scale — the paragraph went weak.
	 *
	 * Line count is not the target either. The copy is Estonian and wraps
	 * differently from the frame's English, so the same eight lines proves
	 * nothing about the size; it was reached by shrinking the type, which is
	 * how the paragraph got too small in the first place.
	 */
	.catalog-promo--spotlight .catalog-promo__body {
		max-width: min(97%, 300px);
		/*
		 * 18px at 1440, easing to 19 by 1920 and 17 at the narrow 1280 column.
		 * A step at one breakpoint cannot do this: the grid hands this tile a
		 * 205px text column at 1280, 249 at 1440 and 363 at 1920, so a size
		 * that suits one leaves short broken lines at another.
		 */
		font-size: clamp(17px, 0.3125vw + 13.5px, 19px);
		line-height: 1.62;
	}

	.catalog-promo--spotlight .catalog-promo__text {
		flex: 1 1 55%;
	}

	.catalog-promo__media {
		flex: 1 1 45%;
		min-height: 0;
	}

	/*
	 * From here the tile is two columns and the media column has the height to
	 * hold a taller card, so the card takes its share of the panel instead of a
	 * fixed 179. Stacked below this it keeps the size already verified there —
	 * the media box is only as tall as its own content and a proportional card
	 * would hang out of it.
	 */
	.catalog-promo__backing {
		width: min(88%, 232px);
		height: auto;
		aspect-ratio: 174 / 239;
	}

	.catalog-promo__image {
		max-width: min(70%, 184px);
	}


	.catalog-promo__gallery-image {
		height: 100px;
	}
}

/* ==========================================================================
   >= 1024px — the drawer gives way to the horizontal bar
   ========================================================================== */

@media (min-width: 1024px) {

	.catalog-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	/* Two columns of the three, as in the design. */
	.catalog-promo--spotlight {
		grid-column: span 2;
	}

	.catalog-filters__mobile,
	.catalog-filters__drawer-head,
	.catalog-filters__drawer-foot {
		display: none;
	}

	/*
	 * 30px, not 64: measured on the UI Final the filter bar's first control sits
	 * 54px below the Avasta row, and the filter block already contributes 24 of
	 * its own above that control. The scale has no step at 30 and this is the
	 * only place the figure applies.
	 */
	.catalog-hero {
		margin-bottom: 30px;
	}

	.catalog-hero__title {
		font-size: 48px;
	}

	.catalog-hero__intro p {
		/*
		 * Frame line ink is 18.26px on a 24.9px pitch. At 18px this face draws
		 * 16.5px of ink and 19.5 at 20, so the frame sits between them — larger
		 * type on tighter leading than the 18/29 this was using.
		 */
		font-size: 19px;
		line-height: 25px;
	}

	.catalog-promo__gallery-image {
		height: 124px;
	}
}

/* ==========================================================================
   >= 1280px — the Figma desktop grid
   ========================================================================== */

@media (min-width: 1280px) {

	/* The card name at the desktop size. The catalogue's own four-up grid
	   sets it back a step from 1180 (see "Four across" below); the related
	   products row and the wishlist keep this. */
	.catalog-card__title {
		font-size: 24px;
		line-height: 1.25;
	}

	/* Frame: the text block is inset 50px from the band's edge. */
	.catalog-promo--gift {
		padding: var(--space-lg);
	}

}

/* ==========================================================================
   >= 1180px — four across (client 3.11.2026 p11)
   --------------------------------------------------------------------------
   "Soovime, et ühel real kuvataks neli toodet ning tootepildid oleksid
   praegusest väiksemad." Three across had been chosen over the frame's four
   for a larger bottle; in the client's window (about 1414x645, and laptops
   from 1180x540 to 1366x640) that card was 413x691 — taller than the 564px
   left under the sticky header — and its name and price came only after
   520–780px of scrolling. Four across is the frame's own grid: the card is
   251 at 1180, 270 at 1280, 292 at 1366, 304 at 1414 and the frame's 310 at
   1440, and the photograph shrinks with it. 1180 is the narrowest width
   where a quarter of the rail still holds the name, "6,75 € 75cl · 9,00
   €/L", the deposit line and LISA without the button losing its row;
   1024–1179 (iPad landscape) keeps three.

   Scoped to the catalogue grid: the related-products row on the product page
   has its own four-up rule and the wishlist its own grid.

   Laptop and desktop widths only, up to 1599. From 1600 the catalogue is
   exactly what usertest 31.10 (#2) approved — "pudeli suurus kataloogis on
   õige" on the 24" iMac: three across at 1600–1799 (a quarter would be 345,
   under the approved 414), four from 1800 with the 3:4 panel and the 24px
   name, at 414x541 on the wide rail (QA round 1, REG-1).
   ========================================================================== */

@media (min-width: 1180px) and (max-width: 1599px) {

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

	/*
	 * A quarter of the rail is 245–310 wide here, where the 24px name ran two
	 * lines to about 22 characters and "Extra Dry, Blanc de Blancs, Spumante,
	 * Millesimato, Contarini" lost its producer to the clamp. 20/25 on up to
	 * three lines keeps the whole name of all but the longest; the min-height
	 * stays two lines, and the footer is pinned to the card's foot either way,
	 * so the prices in a row still line up.
	 */
	.catalog-grid .catalog-card__title {
		-webkit-line-clamp: 3;
		line-clamp: 3;
		font-size: 20px;
		line-height: 1.25;
	}

	.catalog-grid .catalog-card__visual {
		margin-bottom: var(--space-sm);
	}

	/*
	 * "Tootepildid oleksid praegusest väiksemad": the panel is 4:5 instead of
	 * the file's 3:4, so the photograph — contained, never cropped — stands
	 * 6% shorter on top of the narrower column. What that buys is the whole
	 * card under the 81px sticky header in one screen: 507 of 564 at 1414x645,
	 * 466 of 519 at 1280x600 (a three-line name adds 25).
	 */
	.catalog-grid .catalog-card__image,
	.catalog-grid .catalog-card__media:not(:has(.catalog-card__image))::before {
		aspect-ratio: 4 / 5;
	}
}

@media (min-width: 1800px) {

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

/*
 * The column gap steps down to 16 below 1280 so the narrowest four-up card is
 * 251, not 245 — the price row and LISA keep one line at 1180.
 */
@media (min-width: 1180px) and (max-width: 1279px) {

	.catalog-grid {
		column-gap: var(--space-sm);
	}
}

/*
 * The producer spotlight beside the cards, 1024–1599: two of three columns at
 * 1024–1179, two of four at 1180–1599 (589 wide at 1024, 518 at 1180, 644 at
 * 1440, 713 at 1599). It shares its row with cards and must not be the item
 * that sets the row's height: when it was, every neighbour stretched and a
 * hole opened between its name and its price (client 18.11, image 14 — the
 * Pasqua tile ran 107px past the cards at 1440, 164 at 1024, 64 at 1180).
 * The cause was a tile sized for the frame's 3:4 cards (row 578 at 1440)
 * beside the 4:5 four-across cards of 3.11 (row 515) and, at 1024–1179, the
 * tablet's 64px inset. One rule for the whole range: a 24/40 inset, a text
 * column of almost two thirds with the copy at 16/1.55 on its full width, and
 * the 44px action (QA 18.11 D10) inside that budget. With the Pasqua text
 * (330 characters) the tile's own content is 18–186px shorter than the cards
 * beside it from 1024 to 1599, which leaves room for
 * a brand's introduction of similar length; nothing is clipped — a much
 * longer text makes the row taller rather than overflowing.
 * From 1600 the cards are tall again (763 at 1600, 693 at 1920) and the tile
 * keeps the frame's sizing below.
 */
@media (min-width: 1024px) and (max-width: 1599px) {

	.catalog-promo--spotlight {
		gap: 32px;
		padding: 24px 40px;
	}

	.catalog-promo--spotlight .catalog-promo__body {
		max-width: none;
		margin-block-start: 12px;
		font-size: 16px;
		line-height: 1.55;
	}

	.catalog-promo--spotlight .catalog-promo__text {
		flex-basis: 64%;
	}

	.catalog-promo--spotlight .catalog-promo__media {
		flex-basis: 36%;
	}
}

/* ==========================================================================
   Short desktop screens — the catalogue header steps down
   (client 3.11.2026 p11: "Kõikide toote kategooriate vahel peab olema toode,
   hind ja nimi ühel lehel nähtav")
   --------------------------------------------------------------------------
   At 1366x640 the eyebrow, the 48px heading, three lines of intro, the AVASTA
   row, the filter bar and the sort row took the whole first screen: the first
   photograph started at 686px, below the fold, and at 1280x600 the filter bar
   itself wrapped. On a screen no taller than 880 (820 until 19.11.2026; every laptop the client
   named, and 1366x768) the same parts keep their order and their faces and
   only the air between them and the heading's size come down; the intro
   gets a 100ch measure so it runs two lines, not three. 1440x900 and taller
   screens keep the frame's measurements above unchanged.
   ========================================================================== */

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

	.catalog {
		padding-block-start: var(--space-sm);
	}

	.catalog-hero {
		margin-bottom: var(--space-sm);
	}

	/*
	 * "Avallone tootevalik" restates the logo above it; on a short screen its
	 * 24px go to the products instead (QA round 1, 11.6). The heading is the
	 * page's name and stays.
	 */
	.catalog-hero__eyebrow {
		display: none;
	}

	.catalog-hero__title {
		margin-bottom: 12px;
		font-size: 40px;
		line-height: 1.1;
	}

	.catalog-hero__intro {
		max-width: 100ch;
	}

	.catalog-hero__intro p {
		font-size: 17px;
		line-height: 24px;
	}

	.catalog-hero__discover {
		margin-block-start: var(--space-sm);
	}

	.catalog-hero__discover-link {
		min-height: 36px;
		padding-block: 6px;
	}

	.catalog-filters {
		margin-bottom: var(--space-sm);
	}

	.catalog-filters__panel {
		padding-block-start: var(--space-xs);
	}

	.catalog-filters__bar {
		margin-bottom: 12px;
	}

	.catalog-filters__active {
		padding-block: var(--space-xs);
	}
}

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

	/*
	 * Where the header carries an AVASTA row (Veinid), "Sorteeri" moves up to
	 * that row's free right-hand end instead of taking a 59px row of its own
	 * under the filter bar: at 1414x645 the first product row started at 487
	 * against 351 on every other listing (QA round 1, 11.6). From 1180, where
	 * the shortcuts and the control fit one row; below it the chips would wrap
	 * round the control, so 1024–1179 keeps the sort row. The form stays
	 * where it is in the markup — after the filters, inside the region
	 * catalog.js re-renders — and is only drawn up beside the shortcuts: the
	 * hero ends on that 36px row and sits 16 above the filters, so the control
	 * (44 tall) is centred on it. The shortcuts keep 292px clear on their
	 * right (the 276px control and a 16 gap), so a longer list wraps under
	 * itself rather than running beneath the control. With no filter chosen
	 * the row under the bar is left as its divider alone; once a filter is
	 * chosen its chips fill it as before. Pages without an AVASTA row keep
	 * the sort row.
	 */
	.catalog-hero:has(.catalog-hero__discover) .catalog-hero__discover {
		padding-inline-end: 292px;
	}

	.catalog-hero:has(.catalog-hero__discover) + .catalog-filters {
		position: relative;
	}

	.catalog-hero:has(.catalog-hero__discover) + .catalog-filters .catalog-filters__sort {
		position: absolute;
		inset-block-start: calc(-1 * (var(--space-sm) + 36px) - 4px);
		inset-inline-end: 0;
	}

	.catalog-hero:has(.catalog-hero__discover) + .catalog-filters .catalog-filters__active:not(:has(.catalog-filters__chips)) {
		padding-block: 0;
	}

	/*
	 * The same move for the listings whose header is the heading alone —
	 * /shop/, /kange-alkohol/, /vahuvein/, /lahja-alkohol/, /alkoholivabad/,
	 * /kampaaniad/ and the category archives (client 04.11.2026, short
	 * laptop). Their "Sorteeri" took a 59px row of its own under the filter
	 * bar while the heading's row stood empty to the right of a ~220px title:
	 * at 1414x645 the first photograph started at 335 against 277 with the
	 * control on the heading's row. The heading's line box is 44 (40/1.1,
	 * above) and sits 16 above the filters, so the 42px form is centred on it
	 * at -(16 + 44) + 1. The heading keeps 292px clear on its right, so a long
	 * category name wraps rather than running under the control. A header
	 * with an intro and no AVASTA row is left as it was: its last line is the
	 * intro, which may run under where the control would go.
	 */
	.catalog-hero:not(:has(.catalog-hero__discover, .catalog-hero__intro)) .catalog-hero__title {
		padding-inline-end: 292px;
	}

	.catalog-hero:not(:has(.catalog-hero__discover, .catalog-hero__intro)) + .catalog-filters {
		position: relative;
	}

	.catalog-hero:not(:has(.catalog-hero__discover, .catalog-hero__intro)) + .catalog-filters .catalog-filters__sort {
		position: absolute;
		inset-block-start: calc(-1 * (var(--space-sm) + 44px) + 1px);
		inset-inline-end: 0;
	}

	.catalog-hero:not(:has(.catalog-hero__discover, .catalog-hero__intro)) + .catalog-filters .catalog-filters__active:not(:has(.catalog-filters__chips)) {
		padding-block: 0;
	}
}

/*
 * Nine filter controls and the product count did not fit the rail below 1440:
 * at 1280 "Hind" wrapped to a second row of its own, 58px more above the
 * first product. 12px between the controls and 14 inside them (17 in the
 * frame) keep the row whole from 1280; type, height and border are unchanged.
 */
@media (min-width: 1024px) and (max-width: 1439px) {

	.catalog-filters__dropdowns {
		gap: 12px;
	}

	.catalog-filters__dropdown {
		padding-inline: 14px;
	}
}

/* ==========================================================================
   < 1024px — the filter panel becomes a drawer
   ========================================================================== */

@media (max-width: 1023px) {

	.catalog-filters__panel {
		position: fixed;
		inset-block: 0;
		inset-inline-end: 0;
		z-index: 120;
		display: flex;
		flex-direction: column;
		width: min(420px, 100%);
		padding-block-start: 0;
		border-block-start: 0;
		background-color: var(--color-cream);
		box-shadow: var(--shadow-xl);
		transform: translateX(100%);
		visibility: hidden;
		transition:
			transform var(--transition-base),
			visibility var(--transition-base);
	}

	/*
	 * visibility flips instantly on the way in — a transitioned visibility is
	 * still `hidden` on the frame the drawer opens, which makes the first
	 * control unfocusable and drops the focus move on the floor.
	 */
	.catalog-filters__panel.is-open {
		transform: translateX(0);
		visibility: visible;
		transition:
			transform var(--transition-base),
			visibility 0s;
	}

	.catalog-filters__drawer-head {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: var(--space-sm);
		padding: var(--space-md);
		border-block-end: 1px solid var(--color-surface-mid);
	}

	.catalog-filters__drawer-title {
		margin: 0;
		font-family: var(--font-heading);
		font-style: normal;
		font-size: 20px;
		/* Stated rather than inherited: without it this picks up the base
		   heading's ratio and sets a drawer title on 1.58 leading, far looser
		   than any other heading on the site. 26px is the 1.3 the rest of the
		   Caslon headings already use at this size. */
		line-height: 26px;
		color: var(--color-ink);
	}

	.catalog-filters__drawer-close {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 44px;
		height: 44px;
		border: 0;
		border-radius: var(--radius-button);
		background: none;
		color: var(--color-ink);
		cursor: pointer;
	}

	.catalog-filters__scroll {
		flex: 1 1 auto;
		overflow-y: auto;
		padding: var(--space-md);
		-webkit-overflow-scrolling: touch;
	}

	/*
	 * In the drawer every group is open at once as an accordion-style list —
	 * the dropdown row is a desktop affordance.
	 */
	.catalog-filters__bar {
		display: none;
	}

	.catalog-filters__group[hidden] {
		display: block;
	}

	/*
	 * The bar is the first sibling even though it is hidden here, so
	 * :first-of-type would match it rather than the first group. Targeting the
	 * group directly after it is what actually reaches the top of the list.
	 */
	.catalog-filters__bar + .catalog-filters__group {
		padding-block-start: 0;
		border-block-start: 0;
	}

	.catalog-filters__drawer-foot {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: var(--space-sm);
		padding: var(--space-md);
		border-block-start: 1px solid var(--color-surface-mid);
	}

	.catalog-filters__drawer-clear {
		font-family: var(--font-ui);
		font-weight: 700;
		font-size: 13px;
		color: var(--color-primary);
		text-decoration: underline;
	}

	.catalog-filters__drawer-apply {
		flex: 1 1 auto;
		min-height: 48px;
		padding: 12px 24px;
		border: 0;
		border-radius: var(--radius-button);
		background-color: var(--color-primary);
		color: var(--color-on-dark);
		font-family: var(--font-ui);
		font-weight: 600;
		font-size: 14px;
		cursor: pointer;
	}

	.catalog-filters__backdrop {
		position: fixed;
		inset: 0;
		z-index: 119;
		background-color: color-mix(in srgb, var(--color-ink) 45%, transparent);
		opacity: 0;
		visibility: hidden;
		transition:
			opacity var(--transition-base),
			visibility var(--transition-base);
	}

	.catalog-filters__backdrop.is-open {
		opacity: 1;
		visibility: visible;
	}

	/* The active-filter row keeps the sort control reachable above the grid. */
	.catalog-filters__active {
		border-block-start: 0;
	}
}

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

	.catalog-filters__panel,
	.catalog-filters__backdrop,
	.catalog-filters__dropdown svg {
		transition: none;
	}

	/*
	 * global.css already collapses every transition to 0.01ms, which would turn
	 * the card's lift into an instant 3px jump rather than removing it. The
	 * panel simply stays where it is; the card loses nothing but the movement.
	 */
	.catalog-card:hover .catalog-card__visual {
		transform: none;
	}
}


/* ==========================================================================
   >= 1600px — the spotlight on the wide rail, at the frame's sizing
   ========================================================================== */

@media (min-width: 1600px) {

	/*
	 * Re-measured against the frame's own tile, whose height follows from the
	 * grid: consecutive card rows start 602.3 apart on a 24 gutter, so the row
	 * — and this block, which spans two of its columns — is 644 x 578.3. Inside
	 * it the label's first ink sits 42.0 below the top edge and the action's
	 * rule 35.0 above the foot, which is 36 at both ends once the label's line
	 * box is accounted for. Below 1600 the cards beside it are shorter than the
	 * frame's and the tile takes the compact sizing above.
	 */
	.catalog-promo--spotlight {
		padding: 36px 72px;
	}

	/*
	 * 26, not 32. The frame sets "Château Mouton" on one 212px line with 22.7
	 * of ink, which this face gives at 26; at 32 the name broke to three lines
	 * where the frame breaks it to two.
	 */
	.catalog-promo--spotlight .catalog-promo__title {
		font-size: 26px;
		line-height: 40px;
	}
}

/* ==========================================================================
   < 1024px — fields at 16px

   iOS Safari zooms into a focused field set below 16px, which then has to be
   pinched back out. The price fields and the sort menu are 15px and 14px in
   the design; on touch-size screens they take the 16px that prevents the zoom.
   ========================================================================== */

@media (max-width: 1023px) {

	.catalog-filters__price-field input,
	.catalog-filters__sort-select {
		font-size: 16px;
	}
}

/* ==========================================================================
   Phone filter drawer (usertest 31.10, finding 12)
   --------------------------------------------------------------------------
   Chips of every choice at the top with "Tühjenda kõik"; each group a folding
   row whose heading carries the number of choices made in it; options as rows
   with a check mark and the number of products each would show. catalog.js
   folds every group when the drawer is built (and keeps whatever the reader
   opened while it re-renders after each choice); long plain lists show eight
   and a "Näita kõiki" button. Without JavaScript every group stays open.
   The desktop bar and its chips are untouched: none of this shows from 1024.
   ========================================================================== */

.catalog-filters__picked,
.catalog-filters__group-toggle,
.catalog-filters__option-count,
.catalog-filters__show-all {
	display: none;
}

@media (min-width: 1024px) {

	.catalog-filters__group-body {
		display: contents;
	}
}

@media (max-width: 1023px) {

	/* The chips block. */
	.catalog-filters__picked {
		display: block;
		margin: 0 calc(var(--space-md) * -1) var(--space-sm);
		padding: 0 var(--space-md) var(--space-sm);
		border-block-end: 1px solid var(--color-surface-mid);
	}

	.catalog-filters__picked-head {
		display: flex;
		align-items: baseline;
		justify-content: space-between;
		gap: var(--space-sm);
		margin-bottom: var(--space-xs);
	}

	.catalog-filters__picked-label {
		margin: 0;
		font-family: var(--font-ui);
		font-size: 13px;
		color: var(--color-text-secondary);
	}

	.catalog-filters__picked-clear {
		display: inline-flex;
		align-items: center;
		min-height: 44px;
		font-family: var(--font-ui);
		font-weight: 600;
		font-size: 13px;
		color: var(--color-primary);
		text-decoration: underline;
	}

	.catalog-filters__picked-chips {
		display: flex;
		flex-wrap: wrap;
		gap: var(--space-xs);
		margin: 0;
		padding: 0;
		list-style: none;
	}

	.catalog-filters__picked-chip {
		display: inline-flex;
		align-items: center;
		gap: 6px;
		min-height: 36px;
		padding: 6px 12px;
		border-radius: var(--radius-pill);
		background-color: var(--color-surface-rose);
		font-family: var(--font-ui);
		font-weight: 600;
		font-size: 14px;
		color: var(--color-primary-dark);
		text-decoration: none;
	}

	/* Group rows: the toggle replaces the plain heading. */
	.catalog-filters__group-title {
		display: none;
	}

	.catalog-filters__group,
	.catalog-filters__bar + .catalog-filters__group {
		margin: 0;
		padding: 0;
		border-block-start: 0;
		border-block-end: 1px solid var(--color-surface-mid);
	}

	.catalog-filters__group-toggle {
		display: flex;
		align-items: center;
		gap: var(--space-xs);
		width: 100%;
		min-height: 56px;
		margin: 0;
		padding: 0;
		border: 0;
		background: none;
		color: var(--color-ink);
		font-family: var(--font-ui);
		font-weight: 600;
		font-size: 16px;
		line-height: 1.3;
		text-align: start;
		cursor: pointer;
	}

	.catalog-filters__group-name {
		min-width: 0;
	}

	.catalog-filters__group-badge {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		min-width: 20px;
		height: 20px;
		padding: 0 6px;
		border-radius: var(--radius-pill);
		background-color: var(--color-primary);
		color: var(--color-on-dark-pure);
		font-size: 12px;
		font-weight: 700;
		line-height: 1;
	}

	.catalog-filters__group-toggle svg {
		margin-inline-start: auto;
		flex-shrink: 0;
		transition: transform var(--transition-base);
	}

	.catalog-filters__group-toggle[aria-expanded='true'] svg {
		transform: rotate(180deg);
	}

	.catalog-filters__group-body {
		padding-block-end: var(--space-sm);
	}

	.catalog-filters__group.is-collapsed .catalog-filters__group-body {
		display: none;
	}

	/* Options as rows: a check mark, the name, the product count. */
	.catalog-filters__group-body > .catalog-filters__options {
		flex-direction: column;
		flex-wrap: nowrap;
		gap: 0;
	}

	.catalog-filters__group-body > .catalog-filters__options > li.is-extra {
		display: none;
	}

	.catalog-filters__group-body > .catalog-filters__options.is-expanded > li.is-extra {
		display: list-item;
	}

	.catalog-filters__group-body > .catalog-filters__options .catalog-filters__option {
		display: flex;
		align-items: center;
		gap: 12px;
		width: 100%;
		min-height: 44px;
		padding: 6px 0;
		border: 0;
		border-radius: 0;
		background: none;
		font-size: 15px;
		color: var(--color-ink);
	}

	.catalog-filters__group-body > .catalog-filters__options .catalog-filters__option::before {
		content: '';
		flex-shrink: 0;
		width: 22px;
		height: 22px;
		border: 1.5px solid color-mix(in srgb, var(--color-text) 55%, transparent);
		border-radius: 4px;
		background-color: var(--color-white, #fff);
	}

	.catalog-filters__group-body > .catalog-filters__options .catalog-filters__option.is-selected::before {
		border-color: var(--color-primary);
		background: var(--color-primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 16px no-repeat;
	}

	.catalog-filters__option-name {
		flex: 1 1 auto;
		min-width: 0;
	}

	.catalog-filters__option-count {
		display: inline;
		flex-shrink: 0;
		font-size: 13px;
		color: var(--color-text-secondary);
	}

	.catalog-filters__show-all {
		display: inline-flex;
		align-items: center;
		min-height: 44px;
		margin-top: 4px;
		padding: 0;
		border: 0;
		background: none;
		font-family: var(--font-ui);
		font-weight: 600;
		font-size: 14px;
		color: var(--color-primary);
		text-decoration: underline;
		cursor: pointer;
	}
}

/*
 * Short phones (iPhone SE and the like, about 667px tall): all nine group
 * headings above the sticky "Vaata N toodet" button, as 12b asks. At 56px the
 * ninth row ended under the button; 50px rows keep a full tap target and fit
 * (final QA 01.11, A3-06). Taller phones keep the 56px rows.
 */
@media (max-width: 1023px) and (max-height: 700px) {

	.catalog-filters__group-toggle {
		min-height: 50px;
	}
}

/* The shortest phone screens (320×568, iPhone SE with its browser bars at
   375×553): at 50px the last two headings sat under the sticky "Vaata"
   button (audit 01.11, v1-10). 44px rows and half the drawer's head/foot
   padding keep the touch targets and all nine headings in view. */
@media (max-width: 1023px) and (max-height: 600px) {

	.catalog-filters__group-toggle {
		min-height: 44px;
	}

	.catalog-filters__drawer-head,
	.catalog-filters__drawer-foot {
		padding-block: 12px;
	}

	.catalog-filters__scroll {
		padding-block-start: 4px;
	}
}

/*
 * Narrow cards — the related-products row on a phone, 126–180px wide: the
 * price row takes the card's width and "Lisa" drops to the line under it,
 * right-aligned. Beside the button the price had about 40px, so the unit
 * price either broke after its dot or, kept whole, ran under the button
 * (final QA 01.11, V11). Cards of 200px and up keep price and button side
 * by side. The card is the query container; its width already comes from
 * the grid or scroller it sits in, never from its content.
 */
.catalog-card {
	container-type: inline-size;
}

@container (max-width: 199px) {

	.catalog-card__footer {
		flex-wrap: wrap;
		justify-content: flex-end;
	}

	.catalog-card__price {
		flex: 1 1 100%;
	}
}

/* ==========================================================================
   < 600px — TWO PRODUCTS PER ROW ON PHONES (client 04.11.2026)
   --------------------------------------------------------------------------
   The client chose two products per row on phones (usertest #7 decision,
   04.11.2026). One column drew a 342 x 589 card at 390 — one and a half
   products per screen and 16 500px of scrolling for 24 products. Two columns
   apply to every catalogue grid (/shop/, the category archives, /vein/,
   /kampaaniad/), the search results' products (.search-products is a
   .catalog-grid) and the account wishlist (.wishlist-grid, wishlist.css).
   Promos keep `grid-column: 1 / -1`, so the spotlight and the gift banner
   still take the whole row; `dense` fills the slot beside the card before.

   The card is 136px wide at 320 (288 rail) and 163 at 390 (342 rail), so its inside is adapted rather than its information
   dropped: the price block takes the card's width (price, then "75cl ·
   x €/L", then the deposit note), and LISA becomes a full-width 44px
   control under it. The bottle panel keeps its 3:4 contained image, so no
   bottle is cropped. Scoped to grids: the related-products row on the
   product page uses the same card and keeps its own narrow-card rule.
   ========================================================================== */

@media (max-width: 599px) {

	/* The wishlist's own grid takes the same columns in wishlist.css. */
	.catalog-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		/* 16 across: two 163px cards at 390, 136px at 320; 32 down
		   separates one card's LISA from the next card's bottle panel. */
		gap: 32px 16px;
	}

	:is(.catalog-grid, .wishlist-grid) .catalog-card__visual {
		margin-bottom: 12px;
	}

	/* The heart and the out-of-stock flag closer to the panel's corners: at
	   16px in, the 36px heart covered the top quarter of a 138px panel. The
	   heart's 44px hit area (touch-targets.css) is unchanged. */
	:is(.catalog-grid, .wishlist-grid) .card-wishlist {
		inset-block-start: var(--space-xs);
		inset-inline-end: var(--space-xs);
	}

	:is(.catalog-grid, .wishlist-grid) .catalog-card__flag {
		inset-block-start: var(--space-xs);
		inset-inline-start: var(--space-xs);
	}

	/* "CREMANT DE BORDEAUX, PRANTSUSMAA" took three lines at 320 and pushed
	   the name below its neighbour's: the eyebrow may take a second line
	   but not a third. The name and the product page carry the rest. */
	:is(.catalog-grid, .wishlist-grid) .catalog-card__region {
		display: -webkit-box;
		-webkit-box-orient: vertical;
		-webkit-line-clamp: 2;
		line-clamp: 2;
		overflow: hidden;
		font-size: 11px;
		letter-spacing: 0.08em;
		overflow-wrap: anywhere;
	}

	/*
	 * Three lines at 16/20 rather than two at 20/25: a 140–175px column holds
	 * about 16 characters a line, and two lines cut most names before the
	 * vintage or the volume. The full name stays in the link, so its
	 * accessible name is never shortened. Two lines' height is reserved so a
	 * short name does not lift its price above the neighbour's.
	 */
	:is(.catalog-grid, .wishlist-grid) .catalog-card__title {
		-webkit-line-clamp: 3;
		line-clamp: 3;
		min-height: calc(2 * 1.25em);
		margin-bottom: 12px;
		font-size: 16px;
		overflow-wrap: anywhere;
	}

	/* Price block above, LISA under it — beside each other the price had
	   about 60px and the unit price ran under the button. */
	:is(.catalog-grid, .wishlist-grid) .catalog-card__footer {
		flex-direction: column;
		align-items: stretch;
		justify-content: flex-start;
		gap: 12px;
	}

	:is(.catalog-grid, .wishlist-grid) .catalog-card__price {
		flex: 0 0 auto;
		column-gap: 6px;
		row-gap: 2px;
	}

	/* The unit price and the deposit at 12px rather than 11: on a phone they
	   are the comparison information, not decoration. */
	:is(.catalog-grid, .wishlist-grid) .catalog-card__volume {
		flex-basis: 100%;
		font-size: 12px;
		line-height: 16px;
	}

	:is(.catalog-grid, .wishlist-grid) .catalog-card__deposit {
		margin-top: 0;
		font-size: 12px;
		line-height: 16px;
	}

	/* A full-width 44px control: the touch target the brief requires, and
	   the same place in every card of the row. */
	:is(.catalog-grid, .wishlist-grid) .catalog-card__cart {
		width: 100%;
		min-height: 44px;
		padding-inline: 8px;
		font-size: 13px;
	}
}
