/*
 * Santé theme styles.
 *
 * Values follow the design handoff (design_handoff_sante_eshop/README.md): 2px corners,
 * 48px page gutter (20px under 760px), Newsreader for headings and names, Hanken Grotesk for UI.
 *
 *  1. Tokens          8. Dialogs: drawer, menu    15. Checkout
 *  2. Base            9. Shared blocks            16. Selection helper
 *  3. Typography     10. Product card & grid      17. Wine room & inquiry
 *  4. Layout         11. Front page               18. About
 *  5. Buttons        12. Shop                     19. Content, account, notices
 *  6. Forms          13. Product page             20. Mobile, touch, short screens
 *  7. Header/footer  14. Cart & summary
 */

/* 1. Tokens ------------------------------------------------------------- */

:root {
	--bg: #F7F3EC;
	--surface: #FBF8F3;
	--sand: #EFE8DC;
	--sand-2: #F2ECE2;
	--line: #E3DBCF;
	--line-2: #DCD3C5;
	--input: #CFC5B6;
	/* Form field outlines need 3:1 against the field and every page tint (WCAG 1.4.11). */
	--input-border: #857B70;
	--placeholder: #6B6560;
	--ink: #252423;
	--ink-2: #3A3633;
	--muted: #4A4642;
	--muted-2: #5F5953;
	--burgundy: #5A2331;
	--burgundy-hover: #471B27;
	--burgundy-tint: #F3E6E3;
	--burgundy-tint-border: #D9BCB6;
	--olive: #4F5A3B;
	--olive-tint: #E3E6D6;
	--on-burgundy: #F4E9E6;
	--error: #9B2C2C;

	--tint-sparkling: #EFE7CF;
	--tint-sparkling-hover: #E8DEC0;
	--tint-white: #E3E6D6;
	--tint-white-hover: #D9DDCA;
	--tint-rose: #F2E0DB;
	--tint-rose-hover: #ECD4CE;
	--tint-red: #E8D5D8;
	--tint-red-hover: #E0C8CC;
	--tint-boxes: #E6DDCD;
	--tint-boxes-hover: #DDD2BF;

	--serif: Newsreader, Georgia, serif;
	--sans: "Hanken Grotesk", system-ui, sans-serif;

	--frame: 1440px;
	--px: 48px;
	--h1: 64px;
	--h2: 42px;
	--band-pad: 48px;
	--card-min: 240px;
	--radius: 2px;
	/* Sticky header height (73px from 760px up) plus breathing room; used for anchors and sticky panels. */
	--header-offset: 96px;
}

/* Tablets and small laptops: three or more product columns instead of two oversized ones. */
@media (max-width: 1139.98px) {
	:root {
		--card-min: 190px;
	}
}

/* 2. Base --------------------------------------------------------------- */

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	scroll-padding-top: var(--header-offset);
}

/* Column layout keeps the footer at the bottom of short pages (404, empty cart). */
body {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font-family: var(--sans);
	font-size: 16px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

body.is-locked {
	overflow: hidden;
}

img,
svg {
	display: block;
	max-width: 100%;
}

img {
	height: auto;
}

a {
	color: var(--burgundy);
	text-decoration: underline;
	text-underline-offset: 3px;
}

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

button,
input,
select,
textarea {
	font: inherit;
	color: inherit;
}

button {
	cursor: pointer;
}

:focus-visible {
	outline: 2px solid var(--burgundy);
	outline-offset: 2px;
}

/* A burgundy ring would vanish on the burgundy top bar. */
.topbar :focus-visible {
	outline-color: var(--on-burgundy);
}

[hidden] {
	display: none !important;
}

.icon {
	fill: currentColor;
	flex: none;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.skip-link {
	position: absolute;
	left: 8px;
	top: -60px;
	z-index: 100;
	padding: 10px 16px;
	background: var(--ink);
	color: var(--bg);
	font-weight: 600;
}

.skip-link:focus {
	top: 8px;
	color: var(--bg);
}

.hp-field {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.sante-hidden {
	display: none !important;
}

/* 3. Typography -------------------------------------------------------- */

.h1,
.h2,
.h3 {
	margin: 0;
	font-family: var(--serif);
	font-weight: 400;
	color: var(--ink);
}

.h1 {
	font-size: var(--h1);
	line-height: 1.02;
	letter-spacing: -0.01em;
	text-wrap: balance;
}

.h2 {
	font-size: var(--h2);
	line-height: 1.1;
	text-wrap: balance;
}

.h2--sm {
	font-size: 28px;
}

.h3 {
	font-size: 26px;
	line-height: 1.15;
}

.lead {
	margin: 0;
	max-width: 540px;
	font-size: 19px;
	line-height: 1.55;
	color: var(--ink-2);
	text-wrap: pretty;
}

.lead-sm {
	margin: 0;
	font-size: 17px;
	line-height: 1.6;
}

.muted {
	color: var(--muted);
}

p.muted {
	margin: 0;
	font-size: 16px;
	line-height: 1.5;
}

.prose,
.product__desc-text {
	overflow-wrap: anywhere;
}

.prose {
	max-width: 720px;
	font-size: 17px;
	line-height: 1.65;
	color: var(--ink-2);
}

.prose > :first-child {
	margin-top: 0;
}

.prose p,
.prose ul,
.prose ol {
	margin: 0 0 1em;
}

.prose h2,
.prose h3,
.prose h4 {
	margin: 1.6em 0 0.5em;
	font-family: var(--serif);
	font-weight: 400;
	line-height: 1.15;
	color: var(--ink);
}

.prose h2 {
	font-size: 28px;
}

.prose h3 {
	font-size: 22px;
}

.prose--large {
	font-size: 18px;
}

.prose--section {
	margin-top: 32px;
}

/* 4. Layout ------------------------------------------------------------- */

.site-main {
	flex: 1 0 auto;
	width: 100%;
	max-width: var(--frame);
	margin: 0 auto;
	overflow-x: clip;
}

.page-pad {
	padding: 28px var(--px) 72px;
}

.section {
	padding: 64px var(--px) 0;
}

.section--lg {
	padding-top: 72px;
}

.section--tight {
	padding-top: 24px;
}

.section--flush {
	padding-top: 0;
}

.section__title {
	margin-bottom: 24px;
}

h2.h3.section__title {
	margin-bottom: 20px;
	font-size: 28px;
}

.section__head {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	justify-content: space-between;
	align-items: flex-end;
	margin-bottom: 24px;
}

.section__head .h2 {
	margin-bottom: 6px;
}

.section__intro {
	max-width: 620px;
}

.band {
	margin: 72px var(--px) 0;
	padding: var(--band-pad);
}

.band--olive {
	background: var(--olive-tint);
	color: #33382B;
}

.band--rose {
	background: var(--tint-rose);
	color: #3A2E2B;
}

.band--sand {
	background: var(--sand);
}

.band--split {
	display: flex;
	flex-wrap: wrap;
	padding: 0;
}

.band__media {
	flex: 1 1 420px;
	min-height: 440px;
	position: relative;
}

.band__media .photo {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.band__body {
	flex: 1 1 420px;
	min-width: 0;
	padding: var(--band-pad);
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.band__body p {
	margin: 0;
	max-width: 500px;
	font-size: 17px;
	line-height: 1.6;
}

.split {
	display: flex;
	flex-wrap: wrap;
	gap: 40px;
	align-items: center;
}

.split__text {
	flex: 1 1 420px;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.split__text p {
	margin: 0;
	max-width: 540px;
	font-size: 17px;
	line-height: 1.6;
	color: var(--ink-2);
}

.btn-row,
.link-row {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.link-row {
	gap: 20px;
}

.btn-row--center {
	justify-content: center;
}

/* 5. Buttons & links ----------------------------------------------------- */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	height: 50px;
	padding: 0 24px;
	border: 1px solid transparent;
	border-radius: var(--radius);
	background: none;
	font-size: 16px;
	font-weight: 600;
	line-height: 1;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
}

.btn--primary {
	background: var(--burgundy);
	border-color: var(--burgundy);
	color: var(--bg);
}

.btn--primary:hover {
	background: var(--burgundy-hover);
	border-color: var(--burgundy-hover);
	color: var(--bg);
}

.btn--secondary {
	border-color: var(--ink);
	color: var(--ink);
}

.btn--secondary:hover {
	background: var(--sand);
	color: var(--ink);
}

.btn--on-rose:hover {
	background: var(--tint-rose-hover);
}

.btn--on-olive:hover {
	background: var(--tint-white-hover);
}

.btn--dark {
	background: var(--ink);
	border-color: var(--ink);
	color: var(--bg);
}

.btn--dark:hover {
	background: #000;
	color: var(--bg);
}

.btn--outline {
	height: 40px;
	padding: 0 14px;
	border-color: var(--burgundy);
	color: var(--burgundy);
	font-size: 14px;
}

.btn--outline:hover {
	background: var(--burgundy);
	color: var(--bg);
}

.btn--ghost {
	height: 44px;
	padding: 0 14px;
	border-color: var(--input);
	color: var(--ink);
	font-weight: 500;
}

.btn--ghost:hover {
	background: var(--sand);
	color: var(--ink);
}

.btn--sm {
	height: 40px;
	padding: 0 12px;
}

.btn--md {
	height: 46px;
	padding: 0 18px;
}

.btn--lg {
	height: 52px;
	padding: 0 28px;
}

.btn--xl {
	height: 54px;
}

.btn--block {
	width: 100%;
}

.btn--disabled,
.btn:disabled {
	background: var(--line);
	border-color: var(--line);
	color: var(--muted-2);
	cursor: not-allowed;
}

.btn.loading {
	opacity: 0.6;
	pointer-events: none;
}

.btn.added::after {
	content: " ✓";
}

/* WooCommerce adds a "view cart" link next to AJAX buttons; the drawer replaces it. */
a.added_to_cart {
	display: none !important;
}

.text-link {
	align-self: flex-start;
	color: var(--burgundy);
	font-size: 16px;
	font-weight: 600;
	text-underline-offset: 4px;
}

.text-link--sm {
	font-size: 15px;
}

.link-button {
	display: inline;
	padding: 0;
	border: 0;
	background: none;
	color: var(--burgundy);
	font-size: 14px;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
}

.link-button--muted {
	color: #6B3A44;
	font-weight: 400;
}

.link-button:hover {
	color: var(--ink);
}

/* 6. Forms -------------------------------------------------------------- */

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="search"],
input[type="date"],
input[type="password"],
input[type="url"],
select,
textarea {
	width: 100%;
	height: 48px;
	padding: 0 14px;
	border: 1px solid var(--input-border);
	border-radius: var(--radius);
	background: var(--surface);
	color: var(--ink);
	font-size: 16px;
	font-weight: 400;
	appearance: none;
}

::placeholder {
	color: var(--placeholder);
	opacity: 1;
}

select {
	padding: 0 36px 0 12px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%23252423' stroke-width='1.5' d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 12px center;
}

textarea {
	height: auto;
	min-height: 120px;
	padding: 12px 14px;
	resize: vertical;
	line-height: 1.5;
}

input[type="search"]::-webkit-search-decoration,
input[type="search"]::-webkit-search-cancel-button {
	appearance: none;
}

.field {
	display: flex;
	flex-direction: column;
	gap: 6px;
	font-size: 14px;
	font-weight: 500;
}

.field abbr,
.form-row abbr.required,
.form-row .required {
	color: var(--burgundy);
	text-decoration: none;
	border: 0;
}

.check {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	font-size: 15px;
	line-height: 1.45;
	color: var(--ink-2);
	cursor: pointer;
}

.check input {
	flex: none;
	width: 18px;
	height: 18px;
	margin: 1px 0 0;
	accent-color: var(--burgundy);
}

/* WooCommerce's "Jäta mind meelde" on the sign-in form, like the site's other checkboxes. */
.woocommerce-form-login__rememberme {
	display: flex;
	gap: 10px;
	align-items: center;
	font-size: 15px;
	color: var(--ink-2);
	cursor: pointer;
}

.woocommerce-form-login__rememberme input {
	flex: none;
	width: 18px;
	height: 18px;
	margin: 0;
	accent-color: var(--burgundy);
}

.inline-field {
	display: flex;
}

.inline-field input {
	flex: 1;
	min-width: 0;
	border-right: 0;
	border-radius: var(--radius) 0 0 var(--radius);
}

/* The ring of a joined field would run under the button beside it. */
.inline-field input:focus-visible,
.inline-field input[aria-invalid="true"],
.site-search__input:focus-visible {
	position: relative;
	z-index: 1;
	outline-offset: -2px;
}

.inline-field .btn {
	height: 48px;
	padding: 0 20px;
	border-radius: 0 var(--radius) var(--radius) 0;
}

.form-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 14px;
}

.form-grid__full {
	grid-column: 1 / -1;
}

.form-note {
	margin: 0;
	font-size: 13px;
	line-height: 1.5;
}

.form-error {
	margin: 0;
	font-size: 14px;
	font-weight: 600;
	color: var(--error);
}

/* Quantity stepper. */
.stepper {
	display: inline-flex;
	align-items: stretch;
	height: 40px;
	border: 1px solid var(--input-border);
	border-radius: var(--radius);
	background: transparent;
}

.stepper__btn {
	width: 40px;
	padding: 0;
	border: 0;
	background: none;
	font-size: 18px;
	line-height: 1;
}

.stepper__btn:hover {
	background: var(--sand);
}

.stepper .stepper__input,
.stepper__value {
	width: 36px;
	height: 100%;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	text-align: center;
	font-weight: 600;
	font-size: 16px;
	display: grid;
	place-items: center;
	-moz-appearance: textfield;
}

.stepper__input::-webkit-outer-spin-button,
.stepper__input::-webkit-inner-spin-button {
	margin: 0;
	-webkit-appearance: none;
}

.stepper--sm {
	height: 36px;
}

.stepper--sm .stepper__btn {
	width: 36px;
}

.stepper--sm .stepper__value {
	width: 32px;
}

/* Selectable card (delivery and payment options). */
.option-card {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	align-items: flex-start;
	padding: 14px 16px;
	border: 1px solid var(--input);
	border-radius: var(--radius);
	background: var(--surface);
}

.option-card:has(input[type="radio"]:checked) {
	border-color: var(--burgundy);
	background: var(--burgundy-tint);
}

.option-card > input[type="radio"] {
	flex: none;
	width: 18px;
	height: 18px;
	margin: 2px 0 0;
	accent-color: var(--burgundy);
}

.option-card__body {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 2px;
	cursor: pointer;
}

.option-card__title {
	font-weight: 600;
}

.option-card__desc {
	font-size: 14px;
	color: var(--muted);
}

.option-card__extra {
	display: none;
	flex-basis: 100%;
	margin: 0 0 0 30px;
	font-size: 15px;
	line-height: 1.5;
	color: var(--ink-2);
}

.option-card:has(input:checked) .option-card__extra {
	display: block;
}

/* "+" at the stock limit or for products sold one per order. */
.stepper__btn[aria-disabled="true"] {
	opacity: .35;
	cursor: not-allowed;
}

.stepper__btn[aria-disabled="true"]:hover {
	background: none;
}

/* 7. Header & footer ----------------------------------------------------- */

.topbar {
	background: var(--burgundy);
	color: var(--on-burgundy);
	font-size: 13px;
}

.topbar__inner {
	max-width: var(--frame);
	margin: 0 auto;
	padding: 8px var(--px);
	display: flex;
	flex-wrap: wrap;
	gap: 24px;
	justify-content: space-between;
}

.topbar__links {
	display: flex;
	flex-wrap: wrap;
	gap: 24px;
	align-items: center;
}

.topbar a {
	color: var(--on-burgundy);
}

.topbar a:hover {
	color: #fff;
}

.site-header {
	position: sticky;
	top: 0;
	z-index: 20;
	background: var(--bg);
	border-bottom: 1px solid var(--line);
}

.admin-bar .site-header {
	top: var(--wp-admin--admin-bar--height, 32px);
}

/* Below 600px the WordPress toolbar scrolls away with the page. */
@media (max-width: 600px) {
	.admin-bar .site-header {
		top: 0;
	}
}

.site-header__inner {
	max-width: var(--frame);
	margin: 0 auto;
	padding: 14px var(--px);
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 28px;
}

.site-header__logo {
	flex: none;
	margin-right: auto;
}

.site-logo,
.site-header__logo img {
	width: auto;
	height: 36px;
}

.site-nav {
	display: flex;
	gap: 26px;
	font-size: 15px;
	font-weight: 500;
}

.site-nav__link {
	padding: 6px 0;
	border-bottom: 2px solid transparent;
	color: var(--ink);
	text-decoration: none;
}

.site-nav__link:hover {
	color: var(--burgundy);
}

.site-nav__link.is-active {
	border-bottom-color: var(--burgundy);
}

.site-search {
	display: flex;
	flex: 0 1 340px;
	min-width: 0;
}

/* Two classes so the base input[type="search"] height (48px) does not win over the 44px header size. */
.site-search .site-search__input {
	flex: 1;
	min-width: 0;
	height: 44px;
	border-right: 0;
	border-radius: var(--radius) 0 0 var(--radius);
	font-size: 15px;
}

.site-search__button {
	height: 44px;
	padding: 0 16px;
	border: 1px solid var(--ink);
	border-radius: 0 var(--radius) var(--radius) 0;
	background: var(--ink);
	color: var(--bg);
	font-weight: 500;
}

/* Suggestions under the header search (main.js): wider than the field on large screens, the field's
   width on phones. main.js lowers max-height to what the on-screen keyboard leaves. */
.site-search {
	position: relative;
}

.search-suggest {
	position: absolute;
	top: calc(100% + 4px);
	left: 0;
	z-index: 30;
	width: max(100%, 440px);
	max-height: calc(100vh - var(--header-offset));
	overflow-y: auto;
	overscroll-behavior: contain;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--surface);
	box-shadow: 0 10px 28px rgb(37 36 35 / 14%);
}

.search-suggest.is-loading {
	opacity: 0.6;
	transition: opacity 0.15s 0.2s;
}

.search-suggest [role="listbox"] {
	padding: 6px 0;
}

.search-suggest__item {
	display: grid;
	grid-template-columns: 44px minmax(0, 1fr) auto;
	gap: 12px;
	align-items: center;
	padding: 6px 14px;
	color: var(--ink);
	text-decoration: none;
}

.search-suggest__item:hover,
.search-suggest__item[aria-selected="true"],
.search-suggest__all:hover,
.search-suggest__all[aria-selected="true"] {
	background: var(--sand-2);
	color: var(--ink);
}

.search-suggest__media {
	display: block;
	width: 44px;
	height: 55px;
	padding: 3px;
	background: var(--sand);
}

.search-suggest__media img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	mix-blend-mode: multiply;
}

.search-suggest__text {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.search-suggest__name {
	font-family: var(--serif);
	font-size: 16px;
	line-height: 1.25;
}

.search-suggest__sub {
	overflow: hidden;
	color: var(--muted-2);
	font-size: 13px;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.search-suggest__price {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	font-size: 14px;
	font-weight: 600;
	white-space: nowrap;
}

.search-suggest__oos {
	color: var(--muted-2);
	font-size: 12px;
	font-weight: 400;
}

.search-suggest__all {
	display: block;
	margin-top: 6px;
	padding: 12px 14px 6px;
	border-top: 1px solid var(--line);
	color: var(--burgundy);
	font-size: 14px;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.search-suggest__empty {
	margin: 0;
	padding: 14px;
	color: var(--muted);
	font-size: 14px;
}

.search-suggest__warning {
	margin: 0;
	padding: 10px 14px;
	border-top: 1px solid var(--line);
	color: var(--muted);
	font-size: 12px;
}

.cart-button,
.menu-button {
	height: 44px;
	padding: 0 14px;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	border: 1px solid var(--input);
	border-radius: var(--radius);
	background: none;
	color: var(--ink);
	font-weight: 500;
	text-decoration: none;
}

.cart-button:hover,
.menu-button:hover {
	background: var(--sand);
	color: var(--ink);
}

.cart-button__count {
	min-width: 22px;
	height: 22px;
	padding: 0 6px;
	border-radius: 11px;
	background: var(--burgundy);
	color: var(--bg);
	font-size: 12px;
	display: grid;
	place-items: center;
}

.cart-button__subtotal {
	color: #6B6560;
	font-weight: 400;
}

.menu-button {
	display: none;
}

/* From 760px the header is always one row (73px, see --header-offset): only the search field shrinks. */
@media (min-width: 760px) {
	.site-header__inner {
		flex-wrap: nowrap;
	}

	.site-nav,
	.cart-button,
	.menu-button {
		flex: none;
	}
}

/* Up to 1140px the full navigation does not fit next to the search: the menu button replaces it. */
@media (max-width: 1139.98px) {
	.site-header__inner {
		gap: 16px;
	}

	.site-nav {
		display: none;
	}

	.menu-button {
		display: inline-flex;
	}
}

/* Keep the top bar on one row: the address is also in the menu and the footer. */
@media (min-width: 760px) and (max-width: 1099.98px) {
	.topbar__inner {
		justify-content: flex-end;
	}

	.topbar__inner > :first-child {
		display: none;
	}
}

.site-footer {
	background: var(--sand);
	border-top: 1px solid var(--line);
}

.site-footer__grid {
	max-width: var(--frame);
	margin: 0 auto;
	padding: 56px var(--px) 32px;
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 36px;
	font-size: 15px;
	line-height: 1.6;
}

/* Four columns: 4, 2 + 2 or 1 per row, never 3 + 1. */
@media (max-width: 999.98px) {
	.site-footer__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 479.98px) {
	.site-footer__grid {
		grid-template-columns: minmax(0, 1fr);
	}
}

.site-footer__col {
	display: flex;
	flex-direction: column;
	gap: 6px;
	align-items: flex-start;
}

.site-footer__about {
	gap: 14px;
}

.site-footer__about p {
	margin: 0;
	max-width: 260px;
	color: var(--muted);
}

.site-footer__logo {
	width: auto;
	height: 34px;
}

.site-footer__social {
	display: flex;
	gap: 16px;
}

.site-footer__title {
	margin: 0 0 6px;
	font-family: var(--sans);
	font-size: 15px;
	font-weight: 600;
}

/* „Küpsiste seaded“ opens a dialog, so it is a button that looks like the links around it. */
.site-footer__button {
	padding: 0;
	border: 0;
	background: none;
	color: var(--burgundy);
	text-align: left;
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
}

.site-footer__button:hover {
	color: var(--ink);
}

.site-footer__hours-title {
	margin-top: 8px;
	font-weight: 500;
}

.site-footer__bottom {
	max-width: var(--frame);
	margin: 0 auto;
	padding: 18px var(--px) 32px;
	border-top: 1px solid var(--line-2);
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	justify-content: space-between;
	align-items: center;
	font-size: 14px;
	color: var(--muted);
}

/* 8. Dialogs: cart drawer, mobile menu, mobile filters ------------------- */

.dialog {
	position: fixed;
	inset: 0;
	z-index: 60;
}

/* Logged-in editors: keep dialogs below the WordPress toolbar. */
.admin-bar .dialog,
.admin-bar .filters.is-open {
	top: var(--wp-admin--admin-bar--height, 32px);
}

.dialog--drawer {
	display: flex;
	justify-content: flex-end;
}

.dialog__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(37, 36, 35, 0.38);
}

.drawer {
	position: relative;
	width: 100%;
	max-width: 420px;
	height: 100%;
	display: flex;
	flex-direction: column;
	background: var(--bg);
	box-shadow: -12px 0 40px rgba(37, 36, 35, 0.18);
}

.drawer__head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 20px 24px;
	border-bottom: 1px solid var(--line);
}

.drawer__title {
	margin: 0;
	font-family: var(--serif);
	font-size: 26px;
	font-weight: 400;
}

.drawer__notice.notice {
	margin: 16px 24px 0;
}

.drawer__content {
	flex: 1;
	min-height: 0;
	display: flex;
	flex-direction: column;
}

.drawer__body {
	flex: 1;
	overflow: auto;
	padding: 8px 24px;
}

.drawer__foot {
	padding: 20px 24px;
	border-top: 1px solid var(--line);
	background: var(--sand-2);
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.drawer__note {
	font-size: 13px;
	color: var(--muted);
}

.drawer-lines {
	margin: 0;
	padding: 0;
	list-style: none;
}

.drawer-line {
	display: flex;
	gap: 14px;
	padding: 16px 0;
	border-bottom: 1px solid var(--line);
}

.drawer-line__media {
	flex: none;
	width: 64px;
	height: 80px;
	background: var(--sand);
}

.drawer-line__media img,
.cart-line__media img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	mix-blend-mode: multiply;
}

.drawer-line__info {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.drawer-line__name {
	font-size: 15px;
	font-weight: 500;
	line-height: 1.35;
	color: var(--ink);
	text-decoration: none;
}

.drawer-line__name:hover {
	color: var(--burgundy);
}

.drawer-line__row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 8px;
}

.drawer-line__total {
	font-weight: 600;
}

.drawer-line__remove {
	align-self: flex-start;
	font-size: 13px;
}

.drawer.is-busy .drawer__content {
	opacity: 0.55;
	pointer-events: none;
}

/* Full screen up to 1140px; on tablets the menu column stays at most 720px wide. */
.mobile-menu {
	position: absolute;
	inset: 0;
	padding: 20px max(20px, calc((100% - 720px) / 2));
	display: flex;
	flex-direction: column;
	background: var(--bg);
	overflow: auto;
}

.mobile-menu__head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 24px;
}

.mobile-menu__logo {
	width: auto;
	height: 32px;
}

.mobile-menu__nav {
	display: flex;
	flex-direction: column;
}

.mobile-menu__link {
	padding: 16px 0;
	border-bottom: 1px solid var(--line);
	font-family: var(--serif);
	font-size: 28px;
	color: var(--ink);
	text-decoration: none;
}

.mobile-menu__link.is-active {
	color: var(--burgundy);
}

.mobile-menu__helper {
	padding: 16px 0;
	font-size: 17px;
	font-weight: 500;
	text-decoration: none;
}

.mobile-menu__foot {
	margin: auto 0 0;
	padding-top: 24px;
	font-size: 15px;
	line-height: 1.6;
	color: var(--muted);
}

/* CookieYes preferences: the plugin fades visibility in over 1s, so focus could not move into the
   dialog until then. It is visible at once and only slides in (focus: sante-child/js/cookieyes.js).
   "body" outranks the plugin's own rule, which is printed later in the page. */
body .cky-modal.cky-modal-open {
	transition-property: transform;
}

/* CookieYes banner on phones: the buttons in two rows instead of three and tighter text, so the banner
   covers less of the first screen (it was the largest element on listing pages). */
@media (max-width: 575px) {
	body .cky-consent-bar {
		padding: 16px 0;
	}

	body .cky-consent-bar .cky-title {
		margin-bottom: 8px;
	}

	body .cky-consent-bar .cky-notice-des {
		line-height: 20px;
	}

	body .cky-consent-bar .cky-notice-btn-wrapper {
		flex-direction: row;
		gap: 8px;
		margin-top: 12px;
	}

	body .cky-consent-bar .cky-notice-btn-wrapper .cky-btn {
		flex: 1 1 0;
		margin: 0;
	}

	body .cky-consent-bar .cky-notice-btn-wrapper .cky-btn-accept {
		flex-basis: 100%;
	}
}

/* 9. Shared blocks ------------------------------------------------------ */

.breadcrumbs ol {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 14px;
	color: var(--muted-2);
}

.breadcrumbs li + li::before {
	content: "/";
	margin-right: 8px;
}

.breadcrumbs a {
	color: var(--muted-2);
}

.breadcrumbs [aria-current] {
	color: var(--ink);
}

.tagline {
	margin: 0;
	font-family: var(--serif);
	font-style: italic;
	color: var(--burgundy);
}

.tagline--plain {
	font-size: 18px;
}

.health-warning {
	margin: 14px 0 0;
	padding: 10px 14px;
	border: 1px solid var(--line-2);
	background: var(--surface);
	font-size: 13px;
	font-weight: 600;
	line-height: 1.4;
	color: var(--ink-2);
}

.product__info .health-warning {
	margin: 0;
}

.notice {
	margin: 0;
	padding: 12px 14px;
	border-radius: var(--radius);
	font-size: 14px;
	line-height: 1.5;
}

.notice--success {
	background: var(--olive-tint);
	color: #2F3A22;
}

.empty-state {
	padding: 48px 24px;
	background: var(--sand);
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 14px;
}

.empty-state p {
	margin: 0;
	max-width: 440px;
	font-size: 16px;
	line-height: 1.5;
	color: var(--ink-2);
}

.empty-state .empty-state__title {
	font-family: var(--serif);
	font-size: 28px;
	color: var(--ink);
}

.empty-state--plain {
	padding: 40px 0;
	background: none;
}

.empty-state--plain .empty-state__title {
	font-size: 22px;
}

.photo--placeholder {
	display: grid;
	place-items: center;
	background: #E4DACA;
	color: rgba(90, 35, 49, 0.35);
	font-family: var(--serif);
	font-size: 64px;
}

.facts {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 8px 20px;
	margin: 0;
	font-size: 16px;
}

.facts dt {
	color: #5C4A45;
}

.facts dd {
	margin: 0;
}

.option-chip {
	display: inline-flex;
	align-items: center;
	height: 44px;
	padding: 0 16px;
	border: 1px solid #B9C0A6;
	border-radius: var(--radius);
	background: var(--surface);
	color: var(--ink);
	font-weight: 500;
	text-decoration: none;
}

.option-chip:hover {
	border-color: var(--olive);
	color: var(--ink);
}

.chip {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	height: 36px;
	padding: 0 10px 0 12px;
	border: 1px solid var(--burgundy-tint-border);
	border-radius: var(--radius);
	background: var(--burgundy-tint);
	color: var(--ink);
	font-size: 14px;
	text-decoration: none;
}

.chip span {
	font-size: 16px;
}

.chip:hover {
	border-color: var(--burgundy);
	color: var(--ink);
}

.summary-row {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	font-size: 16px;
}

.summary-row > :last-child {
	text-align: right;
}

/* Keep amounts and units ("13,00 €", "17,33 € / l") whole on narrow cards and rows. */
.woocommerce-Price-amount,
.product__unit,
.card__price,
.drawer-line__total,
.cart-line__total,
.review__amount,
.match__price {
	white-space: nowrap;
}

.summary-row--top {
	padding-top: 12px;
	border-top: 1px solid var(--line-2);
}

.summary-row--total {
	padding-top: 14px;
	border-top: 1px solid var(--line-2);
	font-size: 18px;
	font-weight: 600;
}

.summary-row--total small {
	display: block;
	font-size: 12px;
	font-weight: 400;
	color: var(--muted);
}

/* Pastel type tints. */
.tint--sparkling { background: var(--tint-sparkling); }
.tint--white { background: var(--tint-white); }
.tint--rose { background: var(--tint-rose); }
.tint--red { background: var(--tint-red); }
.tint--boxes { background: var(--tint-boxes); }

/* 10. Product card & grid ------------------------------------------------ */

.product-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(var(--card-min), 1fr));
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}

/* Home page rows: five products on wide screens, four below (two rows of two on phones), so no row ends with a
   lone card. */
.product-grid--rail {
	grid-template-columns: repeat(5, minmax(0, 1fr));
}

@media (max-width: 1139.98px) {
	.product-grid--rail {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}

	.product-grid--rail > :nth-child(n+5) {
		display: none;
	}
}

@media (max-width: 759.98px) {
	.product-grid--rail {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* Rows of five picks (front page, "Samast valikust"): 5 or 3 + 2 instead of 4 + 1 or 2 + 2 + 1. */
@media (min-width: 560px) {
	.section .product-grid:has(> :nth-child(5):last-child),
	.related .product-grid:has(> :nth-child(5):last-child) {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (min-width: 1140px) {
	.section .product-grid:has(> :nth-child(5):last-child),
	.related .product-grid:has(> :nth-child(5):last-child) {
		grid-template-columns: repeat(5, minmax(0, 1fr));
	}
}

.card {
	display: flex;
	flex-direction: column;
	height: 100%;
	background: var(--surface);
	border: 1px solid var(--line);
}

.card__media {
	position: relative;
	display: block;
	aspect-ratio: 4 / 5;
	background: var(--sand);
	overflow: hidden;
}

.card__img,
.card__media img {
	width: 100%;
	height: 100%;
	padding: 14px;
	object-fit: contain;
	mix-blend-mode: multiply;
	transform: scale(var(--img-scale, 1));
}

.card__badge {
	position: absolute;
	top: 10px;
	left: 10px;
	padding: 4px 8px;
	background: var(--ink);
	color: var(--bg);
	font-size: 12px;
	font-weight: 600;
}

/* A phone's narrow card puts the badge over the bottle's neck: it moves to the foot of the photo. */
@media (max-width: 759.98px) {
	.card__badge {
		top: auto;
		bottom: 10px;
	}
}

.card__body {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 14px 16px 16px;
}

.card__meta {
	font-size: 12px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--muted-2);
}

.card__title {
	margin: 0;
	font-family: var(--serif);
	font-size: 20px;
	font-weight: 400;
	line-height: 1.2;
	text-wrap: pretty;
}

.card__title a {
	color: var(--ink);
	text-decoration: none;
}

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

.card__sub {
	font-size: 14px;
	color: var(--muted);
}

.card__foot {
	margin-top: auto;
	padding-top: 12px;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
	justify-content: space-between;
}

.card__price {
	font-size: 17px;
	font-weight: 600;
}

.card__na {
	display: inline-flex;
	align-items: center;
	min-height: 40px;
	font-size: 13px;
	color: var(--muted-2);
}

/* Price with the litre price under it. */
.card__pricing {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.card__unit {
	font-size: 13px;
	color: var(--muted-2);
	white-space: nowrap;
}

/* 11. Front page ------------------------------------------------------- */

.hero {
	padding: 56px var(--px) 48px;
	display: flex;
	flex-wrap: wrap;
	gap: 40px;
	align-items: stretch;
}

.hero__text {
	flex: 1 1 440px;
	min-width: 0;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 22px;
}

.hero__images {
	flex: 1 1 440px;
	min-width: 0;
	height: 520px;
	display: grid;
	grid-template-columns: 1.35fr 1fr;
	grid-template-rows: minmax(0, 1fr) minmax(0, 1fr);
	gap: 12px;
}

.hero__photo {
	grid-row: span 2;
	width: 100%;
	height: 100%;
	min-height: 0;
	object-fit: cover;
	background: #E4DACA;
}

.hero__images > .hero__photo:only-child {
	grid-column: span 2;
}

.hero__bottle {
	display: block;
	min-height: 0;
	padding: 12px;
	overflow: hidden;
}

.hero__bottle img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	mix-blend-mode: multiply;
}

/* Five tiles (four wine types and boxes): one row of 5, then 3 + 2, then pairs with a full-width last tile. */
.type-tiles {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 12px;
}

@media (max-width: 1099.98px) {
	.type-tiles {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 559.98px) {
	.type-tiles {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.type-tile:last-child:nth-child(odd) {
		grid-column: 1 / -1;
	}
}

.type-tile {
	min-height: 128px;
	padding: 22px 20px;
	border-radius: var(--radius);
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	color: var(--ink);
	text-decoration: none;
}

.type-tile:hover { color: var(--ink); }
.type-tile.tint--sparkling:hover { background: var(--tint-sparkling-hover); }
.type-tile.tint--white:hover { background: var(--tint-white-hover); }
.type-tile.tint--rose:hover { background: var(--tint-rose-hover); }
.type-tile.tint--red:hover { background: var(--tint-red-hover); }
.type-tile.tint--boxes:hover { background: var(--tint-boxes-hover); }

.type-tile__name {
	font-family: var(--serif);
	font-size: 25px;
}

.type-tile__cta {
	font-size: 14px;
	font-weight: 500;
}

.helper-teaser {
	display: flex;
	flex-wrap: wrap;
	gap: 32px;
	align-items: center;
}

.helper-teaser__text {
	flex: 1 1 380px;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.helper-teaser__text p {
	margin: 0;
	max-width: 480px;
	font-size: 17px;
	line-height: 1.55;
}

.helper-teaser__card {
	flex: 1 1 380px;
	min-width: 0;
	padding: 24px;
	border: 1px solid #C9CFB9;
	background: #F4F5EE;
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.helper-teaser__step {
	font-size: 13px;
	font-weight: 600;
	color: var(--olive);
}

.helper-teaser__q {
	font-family: var(--serif);
	font-size: 24px;
}

.helper-teaser__opts {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.team-strip {
	flex: 1 1 420px;
	min-width: 0;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 10px;
}

/* Two members fill the strip instead of leaving a third column empty. */
.team-strip:not(:has(> :nth-child(3))) {
	grid-template-columns: repeat(2, 1fr);
}

.team-strip__item {
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
	font-weight: 600;
}

.team-strip__photo {
	width: 100%;
	aspect-ratio: 3 / 4;
	object-fit: cover;
}

.room-teaser .band__body .h2 {
	line-height: 1.1;
}

.newsletter {
	padding: 72px var(--px);
}

.newsletter__inner {
	padding-top: 40px;
	border-top: 1px solid var(--line);
	display: flex;
	flex-wrap: wrap;
	gap: 24px;
	justify-content: space-between;
	align-items: flex-start;
}

.newsletter__intro {
	flex: 1 1 320px;
}

.newsletter__intro .h3 {
	margin-bottom: 8px;
}

.newsletter__intro p {
	margin: 0;
	font-size: 16px;
	line-height: 1.5;
	color: var(--muted);
}

.newsletter__form,
.newsletter__done {
	flex: 1 1 420px;
	min-width: 0;
}

.newsletter__form {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.newsletter__form .check {
	font-size: 14px;
}

.newsletter__done {
	padding: 14px 16px;
	font-size: 15px;
}

/* The health warning under the hero bottles spans both columns. */
.hero__images > .health-warning {
	grid-column: 1 / -1;
	margin: 0;
}

/* 12. Shop ------------------------------------------------------------- */

.shop__head {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	justify-content: space-between;
	align-items: flex-end;
	margin: 14px 0 20px;
}

.shop__heading {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.shop__query {
	margin: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	align-items: center;
	font-size: 16px;
}

.shop__count {
	font-size: 15px;
	color: var(--muted);
}

/* Category and producer description under the heading. */
.shop__intro {
	max-width: 720px;
	margin-top: 4px;
	font-size: 16px;
	line-height: 1.6;
	color: var(--ink-2);
}

.shop__intro p {
	margin: 0 0 0.6em;
}

.shop__intro > :last-child {
	margin-bottom: 0;
}

.shop__subcats {
	margin-top: 14px;
}

.tabs {
	display: flex;
	gap: 24px;
	margin-bottom: 24px;
	box-shadow: inset 0 -1px 0 var(--line);
	overflow-x: auto;
	overflow-y: hidden;
	scrollbar-width: none;
}

.tabs::-webkit-scrollbar {
	display: none;
}

/* More tabs to the right on a narrow screen: the last visible one fades out (main.js sets the class). */
.tabs--more {
	-webkit-mask-image: linear-gradient(to left, transparent, #000 48px);
	mask-image: linear-gradient(to left, transparent, #000 48px);
}

.tabs__tab {
	flex: none;
	padding: 10px 0;
	border-bottom: 2px solid transparent;
	color: var(--ink);
	font-size: 15px;
	white-space: nowrap;
	text-decoration: none;
}

.tabs__tab:hover {
	color: var(--burgundy);
}

.tabs__tab.is-active {
	border-bottom-color: var(--ink);
	font-weight: 600;
}

.notice-band {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 24px;
	padding: 18px 20px;
	font-size: 16px;
	line-height: 1.5;
}

.shop__layout {
	display: flex;
	gap: 40px;
	align-items: flex-start;
}

/* A sidebar taller than the window moves with the page in both directions and sticks once the end
   it is heading for is in view (main.js sets --filters-top), so it never needs a scrollbar of its own. */
.filters {
	position: sticky;
	top: var(--filters-top, var(--header-offset));
	flex: none;
	width: 232px;
}

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

.filters__head {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	margin-bottom: 6px;
}

.filters__title {
	font-size: 16px;
	font-weight: 600;
}

.filters__clear {
	font-size: 14px;
}

.facet {
	margin: 0;
	padding: 14px 0;
	border: 0;
	border-top: 1px solid var(--line);
	min-width: 0;
}

.facet__title {
	float: left;
	width: 100%;
	margin-bottom: 6px;
	padding: 0;
	font-size: 15px;
	font-weight: 600;
}

.facet__opt {
	position: relative;
	clear: both;
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 36px;
	padding: 4px 0;
	font-size: 15px;
	cursor: pointer;
}

.js .facet.is-collapsed .facet__opt--extra {
	display: none;
}

.facet__more {
	clear: both;
	margin-top: 6px;
}

/* The "show more" toggle needs JavaScript; without it every option is listed. */
html:not(.js) .facet__more {
	display: none;
}

.js .facet__more {
	display: inline-block;
}

.facet.is-collapsed .facet__more-hide,
.facet:not(.is-collapsed) .facet__more-show {
	display: none;
}

.facet__opt input {
	position: absolute;
	opacity: 0;
	width: 18px;
	height: 18px;
	margin: 0;
}

.facet__box {
	flex: none;
	width: 18px;
	height: 18px;
	border: 1.5px solid var(--burgundy);
	border-radius: var(--radius);
	display: grid;
	place-items: center;
	color: var(--bg);
	font-size: 12px;
	line-height: 1;
}

.facet__opt input:checked + .facet__box {
	background: var(--burgundy);
}

.facet__opt input:checked + .facet__box::after {
	content: "✓";
}

.facet__opt input:focus-visible + .facet__box {
	outline: 2px solid var(--burgundy);
	outline-offset: 2px;
}

.facet__label {
	flex: 1;
}

.facet__count {
	font-size: 13px;
	color: var(--muted-2);
}

.shop__results {
	flex: 1;
	min-width: 0;
}

.shop.is-loading .shop__results {
	opacity: 0.55;
	transition: opacity 0.15s;
}

.shop__toolbar {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
	margin-bottom: 18px;
}

.shop__toolbar + .health-warning {
	margin: 0 0 18px;
}

.shop__filters-button {
	display: none;
}

.sort {
	margin-left: auto;
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	color: var(--muted);
}

.sort select {
	width: auto;
	height: 40px;
	font-size: 14px;
}

/* Where the browser lets a page style the open list (Chromium's customizable select), the sort menu gets the
   site's colours instead of the system menu. Safari, Firefox and touch screens keep their own picker. */
@supports (appearance: base-select) {
	@media (hover: hover) and (pointer: fine) {
		.sort select,
		.sort select::picker(select) {
			appearance: base-select;
		}

		.sort select {
			display: flex;
			align-items: center;
			cursor: pointer;
		}

		.sort select::picker-icon {
			display: none;
		}

		.sort select:open {
			border-color: var(--burgundy);
		}

		.sort select::picker(select) {
			min-width: anchor-size(width);
			margin: 4px 0;
			padding: 6px 0;
			border: 1px solid var(--line);
			border-radius: var(--radius);
			background: var(--surface);
			box-shadow: 0 10px 28px rgb(37 36 35 / 14%);
		}

		.sort option {
			gap: 8px;
			padding: 9px 16px 9px 12px;
			color: var(--ink);
			font-size: 14px;
			white-space: nowrap;
		}

		.sort option:hover,
		.sort option:focus-visible {
			background: var(--sand-2);
			outline: none;
		}

		.sort option:checked {
			color: var(--burgundy);
			font-weight: 600;
		}

		.sort option::checkmark {
			color: var(--burgundy);
		}
	}
}

/* Below 1000px the sidebar would squeeze the grid to one column: the filters open as a full-screen
   dialog from the "Filtrid" button instead (main.js, data-dialog-mobile). */
@media (max-width: 999.98px) {
	.shop__filters-button {
		display: inline-flex;
	}

	.filters {
		display: none;
		position: fixed;
		inset: 0;
		z-index: 60;
		width: auto;
		max-height: none;
		overflow: hidden;
		background: var(--bg);
		flex-direction: column;
	}

	.filters.is-open {
		display: flex;
	}

	/* On tablets the dialog content stays a readable column. */
	.filters__mobile-head,
	.filters__body,
	.filters__mobile-foot {
		padding-right: max(20px, calc((100% - 640px) / 2));
		padding-left: max(20px, calc((100% - 640px) / 2));
	}

	.filters__mobile-head {
		display: flex;
		justify-content: space-between;
		align-items: center;
		padding-top: 16px;
		padding-bottom: 16px;
		border-bottom: 1px solid var(--line);
	}

	.filters__dialog-title {
		font-family: var(--serif);
		font-size: 26px;
	}

	.filters__body {
		flex: 1;
		overflow: auto;
	}

	.filters__head {
		display: none;
	}

	.facet {
		border-top: 0;
		border-bottom: 1px solid var(--line);
	}

	.facet__opt {
		min-height: 44px;
		font-size: 16px;
	}

	.filters__mobile-foot {
		display: flex;
		gap: 10px;
		padding-top: 14px;
		padding-bottom: 14px;
		border-top: 1px solid var(--line);
		background: var(--sand-2);
	}

	.filters__mobile-foot .btn--primary {
		flex: 1;
	}

	/* Without JavaScript the dialog cannot open: the filter form (with its submit button) sits above the results. */
	html:not(.js) .shop__layout {
		flex-direction: column;
		align-items: stretch;
	}

	html:not(.js) .filters {
		display: block;
		position: static;
	}

	html:not(.js) .filters__head {
		display: flex;
	}

	html:not(.js) .shop__filters-button,
	html:not(.js) .filters__mobile-head,
	html:not(.js) .filters__mobile-foot {
		display: none;
	}

	html:not(.js) .filters__body {
		padding: 0;
	}
}

.shop__query span {
	min-width: 0;
	overflow-wrap: anywhere;
}

/* 13. Product page ----------------------------------------------------- */

.product-page {
	padding-top: 24px;
}

.product {
	display: flex;
	flex-wrap: wrap;
	gap: 48px;
	margin-top: 20px;
	align-items: flex-start;
}

.product__media {
	position: relative;
	flex: 1 1 420px;
	min-width: 0;
	aspect-ratio: 4 / 5;
	max-height: 700px;
	padding: 32px;
	background: var(--sand);
	overflow: hidden;
}

.product__media img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	mix-blend-mode: multiply;
	transform: scale(var(--img-scale, 1));
}

.product__info {
	flex: 1 1 400px;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 18px;
}

/* Tablets and landscape phones: the bottle stays next to the name, price and "Lisa korvi" instead of
   filling the first screen. */
@media (min-width: 700px) and (max-width: 999.98px), (min-width: 560px) and (max-width: 699.98px) and (max-height: 500px) {
	.product {
		flex-wrap: nowrap;
		gap: 32px;
	}

	.product__media {
		flex: 0 1 45%;
	}

	.product__info {
		flex: 1 1 50%;
	}
}

/* Stacked on phones: a shorter image keeps the name and price close to the first screen. */
@media (max-width: 699.98px) {
	.product__media {
		max-height: min(60vh, 520px);
	}
}

.product__byline {
	font-size: 13px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--muted-2);
}

.product__lead {
	margin: 0;
	font-size: 17px;
	color: var(--ink-2);
}

.fact-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.fact-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 7px 12px 7px 9px;
	border-radius: var(--radius);
	background: var(--burgundy-tint);
	font-size: 14px;
	font-weight: 500;
}

.fact-chip .icon {
	color: var(--burgundy);
}

.product__price {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	align-items: baseline;
}

.product__price-main {
	font-size: 30px;
	font-weight: 600;
}

.product__unit {
	font-size: 14px;
	color: var(--muted-2);
}

.availability {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 15px;
}

.availability--out {
	font-weight: 600;
}

.dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--olive);
}

.product__buy {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.product__buy .stepper {
	height: 52px;
}

.product__buy .stepper__btn {
	width: 46px;
	font-size: 20px;
}

.product__buy .stepper .stepper__input {
	width: 40px;
	font-size: 17px;
}

.product__buy .btn {
	flex: 1;
	min-width: 180px;
}

/* Short screens (landscape phones): name, price and "Lisa korvi" fit the first screen next to the
   bottle; the other sizes, then the lead and fact chips follow the buy box. */
@media (min-width: 560px) and (max-height: 500px) {
	.product-page {
		padding-top: 12px;
	}

	.product {
		gap: 24px;
		margin-top: 12px;
	}

	.product__info {
		gap: 12px;
	}

	.product__sizes {
		order: 1;
	}

	.product__lead,
	.fact-chips,
	.product__desc,
	.product__info > .text-link {
		order: 2;
	}

	.product__buy .btn {
		min-width: max-content;
		padding: 0 16px;
	}
}

.product__desc {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding-top: 18px;
	border-top: 1px solid var(--line);
}

.product__desc-label {
	font-size: 15px;
	font-weight: 600;
}

.product__desc-text {
	max-width: 560px;
	font-size: 18px;
	line-height: 1.6;
	color: var(--ink-2);
}

.product__desc-text p {
	margin: 0 0 0.6em;
}

.product__desc-text > :last-child {
	margin-bottom: 0;
}

.product__box ul {
	margin: 6px 0 0;
	padding-left: 18px;
	font-size: 16px;
	line-height: 1.6;
}

.taste {
	margin: 56px 0 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 36px;
}

/* Below 1100px at most two columns fit; a third block (aromas) then takes the full width instead of half. */
@media (max-width: 1099.98px) {
	.taste {
		grid-template-columns: repeat(auto-fit, minmax(max(260px, 40%), 1fr));
	}

	.taste__col:nth-child(3):last-child {
		grid-column: 1 / -1;
	}
}

.taste__col {
	display: flex;
	flex-direction: column;
	gap: 16px;
	container-type: inline-size;
}

.scales {
	display: grid;
	grid-template-columns: auto minmax(80px, 1fr) auto;
	gap: 14px 12px;
	align-items: center;
	font-size: 14px;
	color: var(--muted);
}

.scales__track {
	position: relative;
	height: 6px;
	border-radius: 3px;
	background: var(--line-2);
}

.scales__dot {
	position: absolute;
	top: -4px;
	width: 14px;
	height: 14px;
	border-radius: 50%;
	background: var(--burgundy);
	transform: translateX(-50%);
}

/* Three tiles per row as in the design; a fourth pairing narrows the tiles instead of wrapping. */
.foods {
	display: grid;
	grid-template-columns: repeat(var(--foods, 3), minmax(0, 1fr));
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.foods__item {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	padding: 14px 8px;
	border: 1px solid var(--line-2);
	background: var(--surface);
	text-align: center;
}

.foods__icon {
	width: 52px;
	height: 52px;
	border-radius: 50%;
	background: var(--tint-rose);
	color: var(--burgundy);
	display: grid;
	place-items: center;
}

.foods__label {
	font-size: 13px;
	font-weight: 500;
	line-height: 1.3;
	overflow-wrap: break-word;
	hyphens: auto;
}

/* A food with its own page of wines links there. */
a.foods__label {
	color: var(--ink);
	text-underline-offset: 3px;
}

a.foods__label:hover {
	color: var(--burgundy);
}

/* A tile needs about 112px for the longest word ("Magustoitudega" is 93px), so three tiles need a 360px
   column and four need 490px. Narrower columns (phones, and the side-by-side taste block on tablets and
   laptops) list the pairings as icon + label rows; four pairings in between become two rows of two. */
@container (max-width: 359.98px) {
	.foods {
		grid-template-columns: minmax(0, 1fr);
		gap: 8px;
	}

	.foods__item {
		flex-direction: row;
		gap: 12px;
		padding: 8px 12px;
		text-align: left;
	}

	.foods__icon {
		flex: none;
		width: 40px;
		height: 40px;
	}

	.foods__label {
		font-size: 14px;
	}
}

@container (min-width: 360px) and (max-width: 489.98px) {
	.foods--many {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.tag {
	display: inline-block;
	padding: 8px 12px;
	border: 1px solid var(--line-2);
	border-radius: var(--radius);
	background: var(--surface);
	font-size: 14px;
}

/* Sub-category links on category pages, aroma filters on product pages. */
a.tag {
	color: var(--ink);
	text-decoration: none;
}

a.tag:hover {
	border-color: var(--burgundy);
	color: var(--burgundy);
}

.product__details {
	display: flex;
	flex-wrap: wrap;
	gap: 48px;
	margin-top: 56px;
	padding-top: 40px;
	border-top: 1px solid var(--line);
}

.product__long {
	flex: 1 1 420px;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.product__long .prose {
	max-width: 600px;
}

.product__specs {
	flex: 1 1 380px;
	min-width: 0;
}

.product__specs .h2 {
	margin-bottom: 14px;
}

.specs {
	display: grid;
	grid-template-columns: minmax(110px, auto) 1fr;
	margin: 0;
	font-size: 16px;
}

.specs dt {
	padding: 10px 16px 10px 0;
	border-top: 1px solid var(--line);
	color: var(--muted-2);
}

.specs dd {
	margin: 0;
	padding: 10px 0;
	border-top: 1px solid var(--line);
}

.related {
	margin-top: 56px;
}

.related__more {
	display: inline-block;
	margin-top: 24px;
}

.related .h2 {
	margin-bottom: 20px;
}

/* Other sizes of the same wine, under the price: one chip (size and price) per link. */
.product__sizes {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 12px;
	margin-top: -6px;
	font-size: 14px;
	line-height: 1.3;
	color: var(--muted);
}

.product__sizes-list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.size-chip {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 36px;
	padding: 0 12px;
	border: 1px solid var(--burgundy-tint-border);
	border-radius: var(--radius);
	background: var(--burgundy-tint);
	color: var(--ink);
	text-decoration: none;
}

.size-chip:hover {
	border-color: var(--burgundy);
	color: var(--ink);
}

.size-chip__volume {
	color: var(--burgundy);
	font-weight: 600;
}

.product__sizes-note {
	color: var(--muted-2);
	white-space: nowrap;
}

.availability--low {
	font-weight: 600;
}

.availability--low .dot {
	background: var(--burgundy);
}

/* 14. Cart & summary ---------------------------------------------------- */

.page-title {
	margin: 0 0 24px;
}

/* Same gap under the breadcrumbs as on the shop pages; the serif title's ascenders otherwise touch them. */
.breadcrumbs + .page-title {
	margin-top: 14px;
}

.page-title--tight {
	margin-bottom: 6px;
}

.cart-layout,
.checkout-layout {
	display: flex;
	flex-wrap: wrap;
	gap: 40px;
	align-items: flex-start;
}

.cart-lines {
	flex: 1 1 560px;
	min-width: 0;
	border-top: 1px solid var(--line);
}

.cart-line {
	display: flex;
	gap: 18px;
	padding: 20px 0;
	border-bottom: 1px solid var(--line);
}

.cart-line__media {
	flex: none;
	width: 88px;
	height: 110px;
	padding: 6px;
	background: var(--sand);
}

.cart-line__info {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.cart-line__name {
	font-family: var(--serif);
	font-size: 20px;
	line-height: 1.2;
	color: var(--ink);
	text-decoration: none;
}

.cart-line__name:hover {
	color: var(--burgundy);
}

.cart-line__sub {
	font-size: 14px;
	color: var(--muted);
}

.cart-line__row {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	justify-content: space-between;
	align-items: center;
	margin-top: 6px;
}

.cart-line__qty {
	display: flex;
	align-items: center;
	gap: 16px;
}

.cart-line__total {
	font-size: 17px;
	font-weight: 600;
}

.cart-lines__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	justify-content: space-between;
	align-items: center;
	margin-top: 20px;
}

.js .cart-lines__update {
	display: none;
}

.summary {
	position: sticky;
	top: var(--header-offset);
	flex: 0 1 380px;
	min-width: 280px;
	padding: 24px;
	border: 1px solid var(--line);
	background: var(--sand-2);
	display: flex;
	flex-direction: column;
	gap: 14px;
}

/* Below 1100px the summary wraps under the lines or the checkout form: full width, no longer sticky. */
@media (max-width: 1099.98px) {
	.summary {
		position: static;
		flex-basis: 100%;
	}
}

.summary__title {
	margin: 0;
	font-family: var(--serif);
	font-size: 24px;
	font-weight: 400;
}

.summary__note {
	font-size: 14px;
	line-height: 1.5;
	color: var(--muted);
}

.coupon summary {
	cursor: pointer;
	font-size: 14px;
	color: var(--burgundy);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.coupon__form {
	margin-top: 10px;
}

.coupon__form input {
	height: 44px;
}

.coupon__form .btn {
	height: 44px;
	padding: 0 14px;
}

.coupon__form [aria-invalid="true"] {
	border-color: var(--error);
}

/* Why the code did not apply, right under the field (cart/cart.php). */
.coupon__error {
	margin: 8px 0 0;
}

/* 15. Checkout ---------------------------------------------------------- */

.checkout-intro {
	margin-bottom: 28px !important;
}

.checkout-main {
	flex: 1 1 560px;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 36px;
}

.checkout-step {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.checkout-step__title {
	margin: 0;
	font-family: var(--sans);
	font-size: 18px;
	font-weight: 600;
}

.checkout-fields {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 14px;
}

.checkout-fields--address.is-hidden {
	display: none;
}

.form-row {
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.form-row > label:not(.check) {
	font-size: 14px;
	font-weight: 500;
}

.form-row .woocommerce-input-wrapper {
	display: block;
}

.form-row .optional {
	font-weight: 400;
	color: var(--muted-2);
}

/* Invalid fields get a 2px error outline (border + inset ring) so they stand out from the darker default border. */
.form-row.woocommerce-invalid input.input-text,
.form-row.woocommerce-invalid select,
.form-row [aria-invalid="true"] {
	border-color: var(--error);
	box-shadow: inset 0 0 0 1px var(--error);
}

.form-row.woocommerce-invalid > label:not(.check) {
	color: var(--error);
}

/* WooCommerce appends this message to the .form-row (gap 6px) and links it with aria-describedby. */
.checkout-inline-error-message {
	margin: 2px 0 0;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.4;
	color: var(--error);
}

/* A field scrolled into view (focus, first error) keeps its label clear of the sticky header too. */
.form-row :is(input, select, textarea) {
	scroll-margin-top: 28px;
}

.checkout-note {
	margin: 0;
	font-size: 14px;
	line-height: 1.5;
	color: var(--muted);
}

.delivery__list {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.delivery__option select,
.pickup-point-table select,
.pickup-point-table input[type="text"] {
	margin-top: 4px;
}

.pickup-point-table {
	width: 100%;
	border-collapse: collapse;
}

.pickup-point-table td {
	padding: 0;
}

.pickup-point-table label {
	display: block;
	margin: 6px 0 6px;
	font-size: 14px;
	font-weight: 500;
}

/* Age question before checkout (cart summary and drawer). */
.age-check {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.age-check__field {
	margin: 0;
	padding: 0;
	border: 0;
	min-width: 0;
}

.age-check__question {
	margin-bottom: 8px;
	padding: 0;
	font-size: 15px;
	font-weight: 600;
}

.age-check__options {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
}

.age-check__opt {
	position: relative;
	cursor: pointer;
}

.age-check__opt input {
	position: absolute;
	opacity: 0;
	inset: 0;
	margin: 0;
	cursor: pointer;
}

.age-check__opt span {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 44px;
	border: 1px solid var(--input-border);
	border-radius: var(--radius);
	background: var(--surface);
	font-size: 15px;
	font-weight: 500;
}

.age-check__opt input:checked + span {
	border-color: var(--burgundy);
	background: var(--burgundy);
	color: var(--bg);
}

.age-check__opt input:focus-visible + span {
	outline: 2px solid var(--burgundy);
	outline-offset: 2px;
}

.age-check__msg {
	margin: 0;
	font-size: 14px;
	line-height: 1.5;
}

/* Focused by main.js after the checkout sent the buyer back here; it is read out, no ring needed. */
.age-check__msg:focus {
	outline: none;
}

.age-check__msg--denied {
	color: var(--error);
}

.age-check .btn:disabled {
	opacity: .45;
	cursor: not-allowed;
}

.wc_payment_methods {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin: 0 0 12px;
	padding: 0;
	list-style: none;
}

.wc_payment_method {
	padding: 14px 16px;
	border: 1px solid var(--input);
	border-radius: var(--radius);
	background: var(--surface);
}

.wc_payment_method:has(> input:checked) {
	border-color: var(--burgundy);
	background: var(--burgundy-tint);
}

.wc_payment_method > input {
	width: 18px;
	height: 18px;
	margin: 0 10px 0 0;
	vertical-align: -3px;
	accent-color: var(--burgundy);
}

.wc_payment_method > label {
	font-weight: 600;
	cursor: pointer;
}

.wc_payment_method > label img {
	display: inline-block;
	max-height: 24px;
	margin-left: 8px;
	vertical-align: middle;
}

.payment_box {
	margin-top: 12px;
	font-size: 15px;
	line-height: 1.5;
}

.payment_box p {
	margin: 0 0 0.6em;
}

/* "Vali pank siin või Montonio makselehel." above Montonio's bank tiles (main.js); the tiles keep their own top margin. */
.payment_box .montonio-bank-hint {
	margin: 0;
}

/* Bank tiles fill the panel's width (Montonio's fixed 100px tiles left a third of it empty on phones). */
#payment .montonio-bank-payments-form .montonio-bank-items {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
	gap: 8px;
}

#payment .montonio-bank-payments-form .montonio-bank-items .montonio-bank-item {
	width: auto;
	margin: 0;
}

.terms {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

/* In the order summary the terms checkbox and the payment note sit right above "Telli ja maksa". */
.summary .terms .check {
	font-size: 14px;
}

.woocommerce-privacy-policy-text p {
	margin: 0;
	font-size: 13px;
	line-height: 1.5;
	color: var(--muted);
}

.review {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.review__line {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	font-size: 15px;
}

.review__amount {
	flex: none;
}

.summary--checkout {
	gap: 12px;
}

.summary--checkout .summary-row--total {
	font-size: 19px;
}

.blockUI.blockOverlay {
	background: rgba(247, 243, 236, 0.6) !important;
}

/* The age messages sit in a live region that is always rendered; with both hidden it gives back the gap. */
.age-check__status {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.age-check__status:not(:has(> :not([hidden]))) {
	margin-top: -12px;
}

/* 16. Selection helper ------------------------------------------------- */

/* Without JavaScript the printed first question cannot be answered; the noscript note shows instead. */
html:not(.js) .helper__app {
	display: none;
}

.helper {
	padding-top: 32px;
	padding-bottom: 80px;
}

.helper__ask {
	max-width: 760px;
	margin: 20px auto 0;
	display: flex;
	flex-direction: column;
	gap: 22px;
}

.helper__progress {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 6px;
}

.helper__progress span {
	height: 4px;
	background: #D9CFC0;
}

.helper__progress span.is-done {
	background: var(--burgundy);
}

.helper__count {
	font-size: 14px;
	color: var(--muted);
}

.helper__options {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	gap: 10px;
}

/* Five answers: 3 + 2 rather than 4 + 1; in two columns an odd last answer takes the whole row. */
@media (min-width: 560px) {
	.helper__options:has(> :nth-child(5):last-child) {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 559.98px) {
	.helper__options > :last-child:nth-child(odd) {
		grid-column: 1 / -1;
	}
}

.helper-option {
	min-height: 64px;
	padding: 12px 18px;
	border: 1px solid var(--input);
	border-radius: var(--radius);
	background: var(--surface);
	text-align: left;
	font-size: 17px;
	font-weight: 500;
}

.helper-option:hover {
	border-color: var(--burgundy);
}

.helper-option.is-on,
.helper-option--sm.is-on {
	background: var(--burgundy);
	border-color: var(--burgundy);
	color: var(--bg);
}

.helper-option--sm {
	min-height: 36px;
	padding: 0 12px;
	font-size: 14px;
	font-weight: 400;
}

.helper__hint {
	margin: 0;
	padding: 12px 14px;
	background: #F0E3C8;
	font-size: 14px;
	line-height: 1.5;
}

.helper__nav {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
}

.helper__nav .link-button {
	font-size: 15px;
}

.helper__foot {
	margin: 12px 0 0;
	padding-top: 16px;
	border-top: 1px solid var(--line);
	font-size: 14px;
	line-height: 1.55;
	color: var(--muted);
}

/* First in the wines column, so on phones it stays with the wines below the answers. */
.helper__title {
	margin: 0 0 12px;
}

.helper__results {
	display: flex;
	flex-wrap: wrap;
	gap: 40px;
	align-items: flex-start;
	margin-top: 20px;
}

.helper__answers {
	flex: 0 1 340px;
	min-width: 260px;
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.helper__answers-title {
	font-size: 15px;
	font-weight: 600;
}

.helper__answer {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding-top: 12px;
	border-top: 1px solid var(--line);
}

.helper__answer-q {
	font-size: 14px;
	color: var(--muted);
}

.helper__answer-opts {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.helper__list {
	flex: 1 1 520px;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.match {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	padding: 16px;
	border: 1px solid var(--line);
	background: var(--surface);
}

.match__media {
	flex: none;
	width: 120px;
	aspect-ratio: 4 / 5;
	padding: 8px;
	background: var(--sand);
}

.match__media img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	mix-blend-mode: multiply;
}

.match__body {
	flex: 1 1 240px;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.match__tag {
	align-self: flex-start;
	padding: 3px 8px;
	background: var(--olive-tint);
	font-size: 12px;
	font-weight: 600;
}

.match__tag--partial {
	background: #F0E3C8;
}

.match__name {
	font-family: var(--serif);
	font-size: 22px;
	line-height: 1.2;
	color: var(--ink);
	text-decoration: none;
}

.match__name:hover {
	color: var(--burgundy);
}

.match__meta {
	font-size: 14px;
	color: var(--muted);
}

.match__ok,
.match__miss {
	margin: 4px 0 0;
	padding-left: 18px;
	font-size: 15px;
	line-height: 1.5;
	color: #33382B;
}

.match__miss {
	margin-top: 0;
	color: #7A3B1F;
}

.match__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	align-items: center;
	margin-top: 6px;
}

/* Price with the litre price under it, as on the product cards. */
.match__pricing {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.match__price {
	font-size: 18px;
	font-weight: 600;
}

.match__unit {
	font-size: 13px;
	color: var(--muted-2);
	white-space: nowrap;
}

.match__actions .btn {
	height: 42px;
	padding: 0 16px;
}

/* The page H1 heads the question column. */
.helper > .helper__title {
	max-width: 760px;
	margin: 0 auto;
}

/* With the results the page heading and intro line up with the answers column on the left. */
.helper:has(.helper__results) > .helper__title,
.helper:has(.helper__results) > .helper__intro {
	margin-left: 0;
}

/* Below 1000px the answers take the full width above the wines instead of a 340px column beside nothing. */
@media (max-width: 999.98px) {
	.helper__answers {
		flex-basis: 100%;
	}
}

.helper__answers > .link-button {
	align-self: flex-start;
}

/* In the question column, above the progress bar. */
.helper__intro {
	max-width: 760px;
	margin: 12px auto 0;
	font-size: 15px;
	line-height: 1.5;
	color: var(--muted);
}

.helper__list .health-warning {
	margin: 0;
}

/* 17. Wine room & inquiry ---------------------------------------------- */

.hero__media {
	flex: 1 1 440px;
	min-width: 0;
	min-height: 440px;
	position: relative;
}

.hero__media .photo {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.hero--room .hero__text {
	gap: 20px;
}

.hero--room .lead {
	font-size: 18px;
	line-height: 1.6;
}

/* Three or four facts (arrival is optional): one row, or 2 + 2 for four below 1000px. */
.info-row {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	border-top: 1px solid var(--line-2);
	border-bottom: 1px solid var(--line-2);
}

@media (min-width: 560px) {
	.info-row {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.info-row:has(> :nth-child(4)) {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 1000px) {
	.info-row:has(> :nth-child(4)) {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

.info-row__item {
	padding: 22px 20px 22px 0;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.info-row__label {
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--muted-2);
}

.info-row__value {
	font-size: 17px;
}

.info-row__value--hours {
	font-size: 16px;
	line-height: 1.6;
}

/* Four services: 4 in a row, 2 + 2 or one column, never 3 + 1. */
.services {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 0 40px;
}

@media (max-width: 1279.98px) {
	.services {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 599.98px) {
	.services {
		grid-template-columns: minmax(0, 1fr);
	}
}

.services__item {
	padding: 20px 0 28px;
	border-top: 1px solid var(--line-2);
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.services__title {
	margin: 0;
	font-family: var(--serif);
	font-size: 24px;
	font-weight: 400;
}

.services__item p {
	margin: 0;
	font-size: 16px;
	line-height: 1.55;
	color: var(--ink-2);
}

.inquiry {
	margin: 64px var(--px) 72px;
	display: flex;
	flex-wrap: wrap;
	gap: 40px;
	align-items: flex-start;
}

.inquiry__intro {
	flex: 1 1 320px;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.inquiry__intro p {
	margin: 0;
	font-size: 16px;
	line-height: 1.6;
}

.inquiry__intro .lead-sm {
	font-size: 17px;
}

.inquiry__form {
	flex: 1 1 480px;
	min-width: 0;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.inquiry__form input,
.inquiry__form select,
.inquiry__form textarea {
	border-color: #8A706A;
}

.inquiry__form .form-note {
	color: #4A3C38;
}

.inquiry__done {
	flex: 1 1 480px;
	min-width: 0;
	padding: 28px;
	background: var(--surface);
	display: flex;
	flex-direction: column;
	gap: 12px;
	align-items: flex-start;
}

.inquiry__done p {
	margin: 0;
	font-size: 16px;
	line-height: 1.55;
}

.inquiry__done .inquiry__done-title {
	font-family: var(--serif);
	font-size: 26px;
}

.field__error {
	font-size: 13px;
	font-weight: 600;
	line-height: 1.4;
	color: var(--error);
}

.inquiry__form [aria-invalid="true"] {
	border-color: var(--error);
}

.inquiry__form .form-error:focus {
	outline: none;
}

/* 18. About ------------------------------------------------------------ */

.hero--stacked {
	flex-direction: column;
	gap: 20px;
}

.hero__title-wide {
	max-width: 900px;
}

.hero__wide-photo {
	width: 100%;
	height: 440px;
	object-fit: cover;
}

/* "Meie lugu": the heading above one reading column; the producer list (a group block with the class
   "producers" in the page content) uses the full width, one column per country group. */
.story__title {
	margin-bottom: 20px;
}

.story__body {
	max-width: none;
}

.story__body > :not(.producers) {
	max-width: 720px;
}

.producers {
	display: grid;
	gap: 8px 40px;
	margin-top: 8px;
}

@media (min-width: 760px) {
	.producers {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.prose .producers h4 {
	margin: 16px 0 8px;
	font-size: 20px;
}

.prose .producers ul {
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 17px;
}

.producers li {
	padding: 4px 0;
}

.prose .producers a {
	text-decoration: none;
}

.prose .producers a:hover,
.prose .producers a:focus-visible {
	text-decoration: underline;
}

.producers__region {
	margin-left: 0.35em;
	color: var(--muted);
}

/* Up to three members side by side from 560px, one column below: no 2 + 1. Fewer than three keep the
   three-column card size instead of stretching. */
.team {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 32px;
}

@media (min-width: 560px) {
	.team {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (min-width: 560px) and (max-width: 759.98px) {
	.team {
		gap: 20px;
	}
}

.team__member {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

/* One or two members: portrait beside the text at every width; from 760px the two cards share a row. */
.team:not(:has(> :nth-child(3))) {
	grid-template-columns: minmax(0, 1fr);
}

.team:not(:has(> :nth-child(3))) .team__member {
	display: grid;
	grid-template-columns: clamp(110px, 32%, 220px) minmax(0, 1fr);
	grid-template-rows: auto 1fr;
	gap: 8px 20px;
	align-items: start;
}

.team:not(:has(> :nth-child(3))) .team__photo {
	grid-row: span 2;
}

@media (min-width: 760px) {
	.team:not(:has(> :nth-child(3))) {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.team:not(:has(> :nth-child(3))) .team__member {
		gap: 12px 24px;
	}
}

.team__photo {
	width: 100%;
	aspect-ratio: 4 / 5;
	object-fit: cover;
}

.team__name {
	margin: 0;
	font-family: var(--serif);
	font-size: 26px;
	font-weight: 400;
}

.team__member p {
	margin: 0;
	font-size: 16px;
	line-height: 1.6;
	color: var(--ink-2);
}

.cta-band {
	margin-top: 64px;
	margin-bottom: 72px;
	display: flex;
	flex-wrap: wrap;
	gap: 24px;
	justify-content: space-between;
	align-items: center;
}

.cta-band .h2 {
	margin-bottom: 8px;
	font-size: 30px;
}

.cta-band p {
	margin: 0;
	font-size: 16px;
	line-height: 1.55;
}

/* 19. Content pages, account, WooCommerce notices ------------------------- */

.woocommerce-notices-wrapper:empty {
	display: none;
}

.woocommerce-error,
.woocommerce-message,
.woocommerce-info {
	margin: 0 0 20px;
	padding: 12px 16px;
	border-left: 3px solid var(--olive);
	background: var(--olive-tint);
	list-style: none;
	font-size: 15px;
	line-height: 1.5;
}

.woocommerce-error {
	border-left-color: var(--error);
	background: #F6E3E1;
}

.woocommerce-info {
	border-left-color: var(--input);
	background: var(--sand);
}

.woocommerce-error li + li {
	margin-top: 4px;
}

/* WooCommerce focuses the first notice on load so it is read out; it is not a control, no ring needed. */
.woocommerce-error[tabindex="-1"]:focus,
.woocommerce-message[tabindex="-1"]:focus,
.woocommerce-info[tabindex="-1"]:focus {
	outline: none;
}

.woocommerce-message .button,
.woocommerce-info .button {
	float: right;
	margin-left: 12px;
	font-weight: 600;
}

/* A notice with a button (WooCommerce puts the button first): text on the left, the button on the right
   and inside the box, below the text on narrow screens. */
.woocommerce-message:has(> .button),
.woocommerce-info:has(> .button) {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 16px;
}

.woocommerce-message > .button,
.woocommerce-info > .button {
	order: 1;
	margin-left: auto;
}

.woocommerce-NoticeGroup-checkout {
	flex-basis: 100%;
}

.wc-page .woocommerce:not(:has(.cart-layout, .checkout-layout, .empty-state, .woocommerce-order)) {
	max-width: 960px;
}

.woocommerce-MyAccount-navigation ul {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 20px;
	margin: 0 0 28px;
	padding: 0 0 12px;
	border-bottom: 1px solid var(--line);
	list-style: none;
}

.woocommerce-MyAccount-navigation .is-active a {
	color: var(--ink);
	font-weight: 600;
	text-decoration: none;
}

.woocommerce table.shop_table,
.woocommerce-orders-table,
.woocommerce-table--order-details {
	width: 100%;
	border-collapse: collapse;
	font-size: 15px;
}

.woocommerce table.shop_table th,
.woocommerce table.shop_table td {
	padding: 10px 12px 10px 0;
	border-top: 1px solid var(--line);
	text-align: left;
	vertical-align: top;
}

.woocommerce form.login,
.woocommerce form.register,
.woocommerce-ResetPassword,
.woocommerce-EditAccountForm {
	max-width: 480px;
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.woocommerce .button,
.woocommerce button.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 46px;
	padding: 0 18px;
	border: 1px solid var(--burgundy);
	border-radius: var(--radius);
	background: var(--burgundy);
	color: var(--bg);
	font-weight: 600;
	text-decoration: none;
}

.woocommerce .button:hover {
	background: var(--burgundy-hover);
	color: var(--bg);
}

.woocommerce-order-overview {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 32px;
	margin: 0 0 32px;
	padding: 20px;
	background: var(--olive-tint);
	list-style: none;
}

.woocommerce-order-overview strong {
	display: block;
}

.woocommerce-thankyou-order-received {
	font-family: var(--serif);
	font-size: 28px;
	line-height: 1.2;
}

.woocommerce-order h2,
.woocommerce-order-details__title,
.woocommerce-customer-details h2 {
	margin: 32px 0 12px;
	font-family: var(--serif);
	font-size: 26px;
	font-weight: 400;
}

/* Order pages: the thank-you page (full width, like the checkout it follows) and Account → order. The order
   table on the left, the addresses in a card beside it; one column below 900px. */
.woocommerce-order,
.woocommerce-MyAccount-content:has(> .woocommerce-order-details) {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
	grid-auto-flow: row dense;
	gap: 0 48px;
	align-items: start;
}

.woocommerce-order > *,
.woocommerce-MyAccount-content:has(> .woocommerce-order-details) > * {
	grid-column: 1 / -1;
}

.woocommerce-order > .woocommerce-order-details,
.woocommerce-MyAccount-content > .woocommerce-order-details {
	grid-column: 1;
}

.woocommerce-order > .woocommerce-customer-details,
.woocommerce-MyAccount-content > .woocommerce-customer-details {
	grid-column: 2;
	margin-top: 32px;
	padding: 24px;
	border: 1px solid var(--line);
	background: var(--sand-2);
}

@media (max-width: 899.98px) {
	.woocommerce-order,
	.woocommerce-MyAccount-content:has(> .woocommerce-order-details) {
		grid-template-columns: minmax(0, 1fr);
	}

	.woocommerce-order > .woocommerce-customer-details,
	.woocommerce-MyAccount-content > .woocommerce-customer-details {
		grid-column: 1;
	}
}

.woocommerce-customer-details .woocommerce-columns {
	display: grid;
	gap: 24px;
}

.woocommerce-customer-details h2 {
	margin: 0 0 8px;
	font-size: 22px;
}

.woocommerce-customer-details address {
	font-style: normal;
	line-height: 1.6;
	overflow-wrap: anywhere;
}

.woocommerce-customer-details address p {
	margin: 8px 0 0;
}

/* Amounts line up on the right; the actions (withdrawal, invoice, order again) are lighter buttons with room
   between them. */
.woocommerce table.woocommerce-table--order-details th:last-child,
.woocommerce table.woocommerce-table--order-details td:last-child {
	padding-right: 0;
	text-align: right;
}

.woocommerce .order-actions-button,
.woocommerce .woocommerce-orders-table__cell-order-actions .button {
	height: 40px;
	margin: 0 0 8px 8px;
	background: transparent;
	color: var(--burgundy);
}

/* Account → orders: the actions start at the left edge, "Vaata" is the main one. */
.woocommerce .woocommerce-orders-table__cell-order-actions .button {
	margin: 0 8px 8px 0;
}

.woocommerce .woocommerce-orders-table__cell-order-actions .button.view {
	background: var(--burgundy);
	color: var(--bg);
}

/* Below 640px each order is a block of label–value lines (WooCommerce's data-title) with the buttons under them. */
@media (max-width: 639.98px) {
	.woocommerce-orders-table thead {
		display: none;
	}

	.woocommerce table.woocommerce-orders-table tr {
		display: block;
		padding: 12px 0 4px;
		border-top: 1px solid var(--line);
	}

	.woocommerce table.woocommerce-orders-table th,
	.woocommerce table.woocommerce-orders-table td {
		display: flex;
		flex-wrap: wrap;
		gap: 0 5px;
		padding: 4px 0;
		border: 0;
		text-align: right;
	}

	.woocommerce table.woocommerce-orders-table [data-title]::before {
		content: attr(data-title);
		margin-right: auto;
		padding-right: 12px;
		font-weight: 600;
		text-align: left;
	}

	.woocommerce table.woocommerce-orders-table td.woocommerce-orders-table__cell-order-actions {
		display: block;
		padding-top: 10px;
		text-align: left;
	}

	.woocommerce table.woocommerce-orders-table td.woocommerce-orders-table__cell-order-actions::before {
		content: none;
	}
}

.woocommerce-MyAccount-content mark {
	background: none;
	color: inherit;
	font-weight: 600;
}

.post-list {
	padding-left: 18px;
	line-height: 1.8;
}

/* Account: sign-in (Google above the e-mail forms), dashboard boxes, the sign-in line on the checkout. */
.google-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	height: 46px;
	padding: 0 20px;
	border: 1px solid #747775;
	border-radius: var(--radius);
	background: #FFF;
	color: #1F1F1F;
	font-weight: 500;
	text-decoration: none;
}

.google-button:hover {
	background: #F2F2F2;
	color: #1F1F1F;
}

.account-google {
	display: grid;
	gap: 10px;
	max-width: 480px;
}

.account-google p {
	margin: 0;
	font-size: 15px;
}

.account-or {
	display: flex;
	align-items: center;
	gap: 12px;
	max-width: 480px;
	margin: 28px 0;
	color: var(--muted);
	font-size: 15px;
}

.account-or::before,
.account-or::after {
	content: "";
	flex: 1;
	border-top: 1px solid var(--line);
}

#customer_login {
	display: grid;
	gap: 40px;
}

/* WooCommerce's show-password toggle is an icon from its own stylesheet, which the theme does not load. */
.show-password-input {
	display: none;
}

#customer_login h2 {
	margin: 0 0 16px;
	font-family: var(--serif);
	font-size: 26px;
	font-weight: 400;
}

.account-box {
	max-width: 720px;
	margin-top: 32px;
	padding: 24px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
}

.account-box h2 {
	margin: 0 0 12px;
}

.account-box p {
	margin: 0 0 14px;
}

.account-box form {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 14px;
}

.account-box form p {
	margin: 0;
}

.account-box__items {
	margin: 0 0 18px;
	padding-left: 18px;
}

.account-suggestions {
	margin-top: 40px;
}

.account-suggestions h2 {
	margin-bottom: 16px;
}

.checkout-intro:has(+ .checkout-login) {
	margin-bottom: 12px !important;
}

.checkout-login {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px 24px;
	margin: 0 0 28px;
	padding: 16px 20px;
	border-radius: var(--radius);
	background: var(--sand);
}

.checkout-login p {
	margin: 0;
}

.checkout-login .muted {
	display: block;
	font-size: 15px;
}

@media (min-width: 760px) {
	#customer_login {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* 20. Mobile (< 760px), touch targets, short screens ----------------------- */

@media (max-width: 759.98px) {
	:root {
		--px: 20px;
		--h1: 40px;
		--h2: 30px;
		--band-pad: 28px 20px;
		--card-min: 150px;
		/* Two-row header: 127px. */
		--header-offset: 140px;
	}

	.topbar {
		display: none;
	}

	.site-header__inner {
		gap: 10px;
	}

	.site-search {
		flex: 1 1 100%;
		order: 3;
	}

	.search-suggest {
		width: 100%;
	}

	.cart-button__subtotal {
		display: none;
	}

	.hero {
		padding: 28px var(--px) 32px;
	}

	.hero__images {
		height: 280px;
	}

	.band__media,
	.hero__media {
		min-height: 240px;
	}

	.hero__wide-photo {
		height: 240px;
	}

	.card__body {
		padding: 12px;
	}

	.card__title {
		font-size: 18px;
	}

	.btn--outline {
		width: 100%;
	}

	.sort {
		margin-left: 0;
		flex-basis: 100%;
	}

	.sort select {
		flex: 1;
	}

	.product {
		gap: 28px;
	}

	.product__media {
		padding: 20px;
	}

	.taste {
		margin-top: 40px;
	}

	.drawer {
		max-width: none;
	}

	.match__media {
		width: 96px;
	}

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

	.cta-band .h2 {
		font-size: 26px;
	}
}

@media (max-width: 559.98px) {
	.info-row__item {
		padding-right: 0;
	}
}

/* Touch targets of at least 44px on phones and touch screens. */
@media (max-width: 759.98px), (pointer: coarse) {
	.text-link,
	.link-button,
	.js .facet__more,
	.site-footer__col a,
	.site-footer__button,
	.topbar a,
	.mobile-menu__foot a {
		display: inline-flex;
		align-items: center;
		min-width: 44px;
		min-height: 44px;
	}

	/* A link inside a sentence stays text-sized (WCAG 2.5.8 inline exception). */
	.helper__foot .link-button {
		display: inline;
	}

	.site-header__logo {
		display: flex;
		align-items: center;
		min-height: 44px;
	}

	.site-footer__col:not(.site-footer__about) {
		gap: 0;
	}

	.topbar__inner {
		align-items: center;
		padding-top: 0;
		padding-bottom: 0;
	}

	.site-nav__link {
		padding: 10px 0;
	}

	/* These keep their line height; only the tap area grows. */
	.breadcrumbs a {
		display: inline-block;
		margin: -12px 0;
		padding: 12px 0;
	}

	/* Phone numbers next to their label or in a sentence stay on the text line (24px + 2 × 10px). */
	.info-row__value a,
	.facts a,
	.inquiry__intro a[href^="tel:"] {
		display: inline-block;
		margin: -10px 0;
		padding: 10px 0;
	}

	.tabs__tab {
		min-width: 44px;
		text-align: center;
	}

	.cart-line__name {
		margin: -10px 0;
		padding: 10px 0;
	}

	.btn--outline,
	.btn--sm,
	.chip,
	.sort select,
	.match__actions .btn {
		height: 44px;
	}

	/* Same height as the "Lisa korvi" button it stands in for, so prices in a row stay level. */
	.card__na {
		min-height: 44px;
	}

	.helper-option--sm,
	.size-chip {
		min-height: 44px;
	}

	.coupon summary {
		padding: 12px 0;
	}

	/* 46px including the border leaves 44px buttons. */
	.stepper,
	.stepper--sm {
		height: 46px;
	}

	.stepper__btn,
	.stepper--sm .stepper__btn,
	.stepper .stepper__input,
	.product__buy .stepper .stepper__input {
		width: 44px;
	}
}

/* Short screens (landscape phones, 400% zoom): the header scrolls away instead of covering the page. */
@media (max-height: 500px) {
	:root {
		--header-offset: 16px;
	}

	.site-header,
	.summary {
		position: static;
	}
}

/* Landscape phones: logo, search, cart and menu on one row (73px instead of 127px). */
@media (min-width: 560px) and (max-width: 759.98px) and (max-height: 500px) {
	.site-header__inner {
		flex-wrap: nowrap;
	}

	.site-search {
		flex: 1 1 auto;
		order: 0;
	}
}

/* Landscape phones: the whole drawer scrolls, so the cart lines are not squeezed by the footer. */
@media (max-height: 560px) {
	.drawer {
		overflow-y: auto;
		overscroll-behavior: contain;
	}

	.drawer__content,
	.drawer__body {
		flex: none;
		overflow: visible;
	}
}

@media (prefers-reduced-motion: reduce) {
	* {
		transition: none !important;
		scroll-behavior: auto !important;
	}
}
