/* Gajdócsi — see DIRECTION.md. Palette and type unchanged; layout: banded, full-width. */

:root {
  --bg: #FFFFFF;
  --head-bg: #F6F5F1; /* the header and the open phone menu keep the warm off-white; the page itself is white */
  --surface: #E4E2DA;
  --ph: #D6D3C8;
  --panel: #E4E2DA; /* the scrolled header's colour behind the text of photo + text sections */
  --ink: #20231D;
  --muted: #5F6358;
  --accent: #8A5A14;
  --accent-hover: #74490C;
  --accent-ink: #FFFFFF;
  --field: #20231D;
  --field-2: #2C3027;
  --field-ink: #EEEDE8;
  --field-muted: #B7BAAE;
  --line: #8E8C83;
  --bottle-bg: transparent;

  --display: "Young Serif", Georgia, serif;
  --text: "Source Serif 4", Georgia, serif;
  --ui: "Source Sans 3", "Segoe UI", system-ui, sans-serif;

  --step-small: clamp(0.875rem, 0.85rem + 0.1vw, 0.9375rem);
  --step-body: clamp(1.0625rem, 1.02rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-head: clamp(2.125rem, 1.5rem + 2.2vw, 3.5rem);
  --step-display: clamp(2.75rem, 1.4rem + 4.6vw, 6rem);

  --max: 85rem;
  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --gap: clamp(5.5rem, 10vw, 10.5rem);
  --head-h: 6.5rem;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
  --t-press: 140ms;
  --t-hover: 180ms;
  --t-enter: 280ms;
}

/* ---------- reset & browser surfaces ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scrollbar-color: var(--muted) var(--surface); scroll-padding-top: calc(var(--head-h) + 1rem); }
/* links to a spot on the same page (e.g. Kóstoló foglalása) glide there instead of jumping; not for people who turned animations off */
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
/* desktop reads at 80% (the owner's preferred browser zoom): every size below is in rem, so this one line scales the layout; phones and tablets stay at 100% */
@media (min-width: 961px) { html { font-size: 80%; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--text);
  font-size: var(--step-body);
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}
img, svg, iframe { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p, ol, ul, dl, dd, figure, blockquote { margin: 0; }
ol, ul { padding: 0; list-style: none; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 0.1875rem; }
input, textarea, select { caret-color: var(--accent); }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.22em; }
@media (hover: hover) and (pointer: fine) {
  a { transition: color var(--t-hover) var(--ease); }
  a:hover { color: var(--accent); }
  .foot a:hover { color: var(--accent-ink); opacity: 0.75; }
}

/* all titles: light (not bold) capitals in the text serif; the size tells the levels apart */
h1, h2, h3 { font-family: var(--text); font-weight: 400; text-transform: uppercase; letter-spacing: 0.12em; line-height: 1.15; text-wrap: balance; }
h1 { font-size: clamp(2rem, 1.3rem + 2.4vw, 3.5rem); line-height: 1.12; }
h2 { font-size: clamp(1.625rem, 1.2rem + 1.5vw, 2.625rem); }
h3 { font-size: var(--step-lead); letter-spacing: 0.1em; line-height: 1.25; }
p { text-wrap: pretty; }
.lead { font-size: var(--step-lead); line-height: 1.35; }
.small { font-size: var(--step-small); }
.muted { color: var(--muted); }
.num { font-variant-numeric: tabular-nums lining-nums; }
.text-link { font-weight: 600; }
/* a link set like the top menu: capitals, wide spacing, a line that draws in on hover */
.menu-link { position: relative; font-family: "EB Garamond", Garamond, Georgia, serif; font-weight: 600; font-size: 0.875rem; text-transform: uppercase; letter-spacing: 0.14em; text-decoration: none; color: var(--ink); }
/* the line works like the header menu: hidden, on hover it slides in under the word, a little wider than it */
.menu-link::after { content: ""; position: absolute; left: -0.3em; right: calc(-0.3em + 0.14em); top: calc(100% + 0.75em); height: 0; border-top: 1px solid currentColor; transform: scaleX(0); transform-origin: left; transition: transform 360ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .menu-link:hover::after { transform: scaleX(1); } }
.menu-link:focus-visible::after { transform: scaleX(1); }
@media (prefers-reduced-motion: reduce) { .menu-link::after { transition: none; } }

.skip { position: absolute; left: 1rem; top: -6.25rem; z-index: 100; background: var(--ink); color: var(--bg); padding: 0.75rem 1rem; }
.skip:focus { top: 1rem; }
.skip:hover, .skip:focus { color: var(--bg); }
[hidden] { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.625rem;
  min-height: 60px; padding: 0 1.875rem;
  background: var(--accent); color: var(--accent-ink);
  font: 400 0.9375rem/1 var(--text); text-transform: uppercase; letter-spacing: 0.12em; /* the serif of the wine names, at the size of the home row cards */
  text-decoration: none; border: 0; border-radius: 0; cursor: pointer;
  transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) var(--ease);
}
.btn:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .btn:hover { background: var(--accent-hover); color: var(--accent-ink); } }
.btn--quiet { background: var(--surface); color: var(--ink); }
@media (hover: hover) and (pointer: fine) { .btn--quiet:hover { background: var(--ph); color: var(--ink); } }
/* light outlined button for a secondary way on (galtibor-style): a hairline frame that fills on hover */
.btn--line { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); padding: 0 2.25rem; transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) var(--ease), color var(--t-hover) var(--ease); }
@media (hover: hover) and (pointer: fine) { .btn--line:hover { background: var(--ink); color: var(--bg); } }
.btn--small { padding: 0 1.25rem; }
/* outlined in the accent colour, filled on hover: like the basket buttons on the wine cards */
.btn--outline { background: transparent; color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) var(--ease), color var(--t-hover) var(--ease); }
@media (hover: hover) and (pointer: fine) { .btn--outline:hover { background: var(--accent); color: var(--accent-ink); } }

.btn--block { width: 100%; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }
.btn[data-add]:not(.btn--line) { background: transparent; color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); padding-inline: 6.4rem; transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) var(--ease), color var(--t-hover) var(--ease); }
@media (hover: hover) and (pointer: fine) { .btn[data-add]:not(.btn--line):hover { background: var(--accent); color: var(--accent-ink); } }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; }

/* ---------- header ---------- */
.head { position: sticky; top: 0; z-index: 40; background: var(--head-bg); transition: background-color 200ms var(--ease); }
.head.is-scrolled { background: var(--surface); }
.head__in { display: flex; align-items: center; gap: 2rem; min-height: var(--head-h); }
.head__logo { flex: none; display: block; }
.head__logo img { height: 4.5rem; width: auto; }
.nav { margin-left: auto; }
.nav ul { display: flex; align-items: center; gap: clamp(1.125rem, 2.2vw, 2.25rem); }
.nav a { text-decoration: none; }
/* a thin line a little wider than the word, about 1.5 letter-heights under it, sliding in from the left:
   under the current page when the page opens, and under the hovered item while the mouse is on the menu */
.nav a { position: relative; }
.nav a::after {
  content: ""; position: absolute; left: -0.3em; right: calc(-0.3em + 0.14em); /* 0.14em: the letter-spacing after the last letter */
  top: calc(100% + 0.75em); height: 0; border-top: 1px solid currentColor;
  transform: scaleX(0); transform-origin: left; transition: transform 360ms var(--ease-out);
}
.nav a[aria-current="page"]::after { transform: scaleX(1); animation: nav-line 520ms var(--ease-out) 120ms backwards; }
@keyframes nav-line { from { transform: scaleX(0); } }
@media (hover: hover) and (pointer: fine) {
  .nav a:hover::after { transform: scaleX(1); }
  .nav ul:has(a:hover) a[aria-current="page"]:not(:hover)::after { transform: scaleX(0); transition-duration: 200ms; }
}
@media (prefers-reduced-motion: reduce) { .nav a::after { transition: none; animation: none !important; } }
.head__tools { display: flex; align-items: center; gap: 1.25rem; }
/* language menu: the current code (HU) opens a small list of the four languages */
.lang { position: relative; font-weight: 600; font-size: var(--step-small); }
.lang summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 0.375rem; padding: 0.625rem 2px; }
.lang summary::-webkit-details-marker { display: none; }
.lang summary::after { content: ""; width: 0.375rem; height: 0.375rem; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-0.125rem) rotate(45deg); transition: transform var(--t-hover) var(--ease); }
.lang[open] summary::after { transform: translateY(0.125rem) rotate(-135deg); }
.lang ul {
  position: absolute; top: 100%; right: -0.75rem; z-index: 2; min-width: 9.5rem; padding: 0.375rem 0;
  background: var(--bg); color: var(--ink); box-shadow: 0 0.75rem 2rem rgba(20, 22, 18, 0.16), 0 0 0 1px var(--ph);
  text-transform: none; letter-spacing: 0.02em;
}
.lang li a { display: block; padding: 0.625rem 1.125rem; text-decoration: none; }
.lang li a[aria-current] { color: var(--accent); }
@media (hover: hover) and (pointer: fine) { .lang li a:hover { background: var(--surface); } }
.cart-link {
  position: relative; display: inline-flex; align-items: center; gap: 0.5rem;
  min-height: 2.75rem; padding: 0 1rem;
  background: transparent; color: var(--ink); /* no box: just the bag, the word and the count */
  text-decoration: none; font-weight: 600; font-size: var(--step-small);
  transition: transform var(--t-press) var(--ease-out), color var(--t-hover) var(--ease);
}
.cart-link:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .cart-link:hover { color: var(--accent); } }
.cart-link svg { width: 1.25rem; height: 1.25rem; }
.cart-count {
  min-width: 1.5rem; height: 1.5rem; padding: 0 0.375rem;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 0.75rem; background: var(--accent); color: var(--accent-ink);
  font-variant-numeric: tabular-nums;
}
.cart-count.is-bump { animation: bump 240ms var(--ease-out); }
@keyframes bump { from { transform: scale(1.3); } }
/* the basket's value for a few seconds under the basket link, after something was added */
.cart-sum {
  position: absolute; top: calc(100% + 0.375rem); right: 0.5rem; white-space: nowrap;
  padding: 0.5rem 0.875rem; background: var(--accent); color: var(--accent-ink);
  font: 600 0.9375rem/1 var(--ui); letter-spacing: 0; text-transform: none; font-variant-numeric: tabular-nums;
  box-shadow: 0 0.5rem 1.5rem rgba(20, 22, 18, 0.18);
  opacity: 0; transform: translateY(-0.25rem); pointer-events: none;
  transition: opacity 200ms var(--ease), transform 200ms var(--ease-out);
}
.cart-sum.is-shown { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .cart-sum { transform: none; } }
.menu-toggle { display: none; }
.nav .nav__langs { display: none; }

/* small spaced capitals for the things you click: an echo of the GAJDÓCSI wordmark */
.nav a, .lang, .cart-link, .menu-toggle { text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.8125rem; font-weight: 600; }
/* the menu words in Garamond */
.nav a { font-family: "EB Garamond", Garamond, Georgia, serif; font-weight: 600; }

/* home: the header floats over the gallery, white on the photo, until the page scrolls or the menu opens */
.home .head { position: fixed; left: 0; right: 0; }
.home .head:not(.is-scrolled):not(.is-open) { background: linear-gradient(rgba(20, 22, 18, 0.42), rgba(20, 22, 18, 0)); color: #fff; }
.home .head:not(.is-scrolled):not(.is-open) .head__logo img { filter: brightness(0) invert(1); opacity: 0.92; }
.home .head:not(.is-scrolled):not(.is-open) .menu-toggle { color: #fff; }
/* white letters on a photo look bolder than dark ones: a lighter weight keeps them the same */
.home .head:not(.is-scrolled):not(.is-open) :is(.nav a, .lang, .cart-link, .menu-toggle) { font-weight: 500; }
.home .head:not(.is-scrolled):not(.is-open) .cart-link { color: #fff; }
@media (hover: hover) and (pointer: fine) {
  /* over the photo the links stay white on hover (brown would hardly show); the colour change starts once the header has its background */
  .home .head:not(.is-scrolled):not(.is-open) a:not(.cart-link):hover { color: #fff; }
}

/* ---------- hero ---------- */
/* the gallery fills the first screen, under the floating header; the wine row follows right under it */
.hero-media { position: relative; overflow: hidden; height: max(26.25rem, 100svh); background: var(--ph); }
/* slow gallery: each picture fades in and drifts a little closer while it shows (js/main.js) */
.hero-media > img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; visibility: hidden;
  transition: opacity 1800ms var(--ease), visibility 0s linear 1800ms, transform 9000ms linear;
}
.hero-media > img.is-active { opacity: 1; visibility: visible; transform: scale(1.025); transition-delay: 0s; }
/* the white logo sits centred over every photo; a flat tint keeps it readable on bright skies */
.hero-media::after { content: ""; position: absolute; inset: 0; background: rgba(20, 22, 18, 0.24); pointer-events: none; }
.hero-mark { position: absolute; inset: 0; z-index: 1; display: grid; place-items: center; padding: var(--gutter); pointer-events: none; }
.hero-mark img { width: clamp(20.625rem, 54vw, 52.5rem); max-width: 100%; height: auto; opacity: 0.78; } /* softened so it sits in the photo, not on top of it */
.band.band--shop { padding-top: clamp(4.5rem, 8vw, 8rem); } /* the room between the photo slider and the wines; doubled class: .band, set later, would win */

/* about page: the history, large and handwritten, in white over the Tállya photo (darkened so the text reads) */
.story { position: relative; isolation: isolate; overflow: hidden; padding-block: clamp(5rem, 11vw, 11rem); text-align: center; color: #fff; }
.story__bg, .story__bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; }
.story__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgb(20 16 12 / 0.62), rgb(20 16 12 / 0.72)); }
.story__text { text-shadow: 0 1px 12px rgb(0 0 0 / 0.35); }
.story__text { max-width: 52ch; margin-inline: auto; font-family: "Cutive Mono", ui-monospace, monospace; font-size: clamp(1.375rem, 1.1rem + 1vw, 1.875rem); line-height: 1.75; text-align: left; }
.page-intro { padding-top: clamp(3.5rem, 7vw, 7rem); display: grid; grid-template-columns: 7fr 5fr; gap: 1.5rem 4rem; align-items: end; }
.page-intro .lead { max-width: 36ch; }

/* ---------- bands ---------- */
.band { padding-block: var(--gap); }
.band--tight-top { padding-top: clamp(3.5rem, 6vw, 6rem); }
/* all sections share one ground, so the gap between two of them is one gap, not two */
.band + .band { padding-top: 0; }
/* section heads: centred, light spaced capitals, a short italic line under them */
.band-head { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0.875rem; margin-bottom: clamp(2.25rem, 4.5vw, 4rem); }
.band-head h2 { font-family: var(--text); font-weight: 400; text-transform: uppercase; letter-spacing: 0.14em; font-size: clamp(1.625rem, 1.2rem + 1.5vw, 2.625rem); line-height: 1.15; }
.band-head p { max-width: 52ch; }
.band-head__sub { font-style: italic; color: var(--muted); }
/* a thin accent line on both sides of the subtitle, across the whole width (home page wine row) */
.band-head .band-head__sub--lined { display: flex; align-items: center; gap: clamp(1rem, 2.5vw, 2rem); width: 100%; max-width: none; }
.band-head__sub--lined::before, .band-head__sub--lined::after { content: ""; flex: 1 1 1.5rem; height: 0; border-top: 1px solid var(--accent); }
.band-head__sub--lined span { flex: 0 1 auto; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 7rem); align-items: center; }
.split--flip > .split__media { order: 2; }
.split__media img { width: 100%; aspect-ratio: 4 / 5; max-height: min(72svh, 44rem); object-fit: cover; background: var(--ph); }
.split__media--wide img { aspect-ratio: 4 / 3; }
.split__text > h2 { margin-bottom: 1.75rem; }
.split__text > p + p { margin-top: 1em; }
.split__text .actions { margin-top: 2.25rem; }
.statement { font-family: var(--display); font-size: var(--step-lead); line-height: 1.3; max-width: 28ch; margin-bottom: 1.75rem; }

.facts { margin-top: 1.75rem; max-width: 28rem; }
.facts div { display: flex; justify-content: space-between; gap: 1rem; padding: 0.4375rem 0; }
.facts dt { color: var(--muted); }
.facts dd { text-align: right; font-variant-numeric: tabular-nums; }

.rows > li { display: grid; grid-template-columns: 1fr auto; gap: 0.25rem 1.5rem; align-items: baseline; padding: 0.75rem 0; }
.rows__name { font-weight: 600; }
.rows__note { grid-column: 1 / -1; color: var(--muted); font-size: var(--step-small); max-width: 50ch; }
.rows__value { color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }
.rows--fig .rows__value { font-family: var(--display); font-size: var(--step-lead); color: var(--ink); }
.split__text .rows { margin-top: 2rem; }

/* ---------- products ---------- */
.products { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 3vw, 2.5rem); }
.product { position: relative; display: flex; flex-direction: column; }
/* the bottle photos are cut out (transparent), standing on a soft square */
.product__media { display: block; overflow: hidden; background: var(--bottle-bg); aspect-ratio: 1 / 1; padding: 6% 0; }
.product__media img { width: 100%; height: 100%; object-fit: contain; transition: transform 300ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .product__media:hover img { transform: scale(1.03); } }
/* label-like tile text: name in spaced capitals, the price in italic under it */
.product__body { display: flex; flex-direction: column; align-items: flex-start; text-align: left; gap: 0.25rem; padding-top: 1.125rem; flex: 1; }
.product__name { font-family: var(--text); font-size: 0.9375rem; font-weight: 400; text-transform: uppercase; letter-spacing: 0.12em; line-height: 1.35; }
.product__name a { text-decoration: none; }
.product__price { font-family: var(--ui); font-size: 1.5rem; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; line-height: 1.1; }
/* on every screen as on a phone: the price above, a filled basket button the full width of the card under it */
.product__buy { display: flex; flex-direction: column; align-items: stretch; gap: 0.875rem; width: 100%; margin-top: auto; padding-top: 1rem; }
/* the card text and the basket button share one column, 310px wide (less on a narrow card), centred in the card:
   the name and the price start where the button starts */
.product__body { width: min(310px, 100%); align-self: center; }
.products .product__buy .btn[data-add]:not(.btn--line) { width: 100%; padding-inline: 1rem; min-height: 60px; font-size: 0.9375rem; font-weight: 400; background: transparent; color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
@media (hover: hover) and (pointer: fine) { .products .product__buy .btn[data-add]:not(.btn--line):hover { background: var(--accent); color: var(--accent-ink); } }
/* home wine row: the basket button looks like a brown text link in the middle of the card (spaced Garamond capitals);
   on hover it fills in brown and becomes a button. The padding is always there, so the word does not move */
.products--row .product__buy .btn[data-add]:not(.btn--line) {
  width: 100%; min-height: 60px; padding: 0 1.875rem; /* the size of the original card button, so the hover fill is that button */
  background: transparent; box-shadow: none; color: var(--accent);
  font-family: "EB Garamond", Garamond, Georgia, serif; font-weight: 600; font-size: 0.9375rem; letter-spacing: 0.14em; /* the size of the wine names */
}
/* the whole card works as one: the wine-name link is stretched over the card (a click anywhere opens the wine),
   and the basket button sits above that layer, so it still adds to the basket */
.products--row .product__name a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.products--row .product__buy .btn[data-add] { position: relative; z-index: 2; }
@media (hover: hover) and (pointer: fine) {
  /* the mouse anywhere on the card: the button fills in, the bottle grows a little */
  .products--row .product:hover .product__buy .btn[data-add]:not(.btn--line):not(:disabled) { background: var(--accent); color: var(--accent-ink); }
  .products--row .product:hover .product__media img { transform: scale(1.03); }
  /* the mouse right on the button: a slightly darker brown, so it is clear this is the part that adds to the basket */
  .products--row .product .product__buy .btn[data-add]:not(.btn--line):not(:disabled):hover { background: var(--accent-hover); }
}
.products--row .product__buy .btn[data-add]:not(.btn--line):focus-visible { background: var(--accent); color: var(--accent-ink); }
.products--row .product__buy .btn[data-add]:disabled { color: var(--muted); }
/* the counter that replaces Kosárba once the wine is in the basket: the size of the button, − and + at its two ends */
.card-qty { position: relative; z-index: 2; display: flex; align-items: stretch; width: 100%; min-height: 60px; box-shadow: inset 0 0 0 1px var(--accent); color: var(--accent); }
.card-qty__n { flex: 1; display: flex; background: var(--accent); color: var(--accent-ink); /* the count sits on a filled brown block: this wine is in the basket */ align-items: center; justify-content: center; font: 600 0.9375rem/1 "EB Garamond", Garamond, Georgia, serif; letter-spacing: 0.08em; text-transform: uppercase; font-variant-numeric: tabular-nums; }
.card-qty button { width: 60px; display: flex; align-items: center; justify-content: center; background: transparent; color: inherit; border: 0; cursor: pointer;
  transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) var(--ease), color var(--t-hover) var(--ease); }
.card-qty button:active { transform: scale(0.94); }
.card-qty svg { width: 0.875rem; height: 0.875rem; }
@media (hover: hover) and (pointer: fine) { .card-qty button:hover { background: var(--accent); color: var(--accent-ink); } }
/* webshop: a short thin vertical line between the wines side by side (not running through the rows).
   Every tile draws one on its right edge; the grid clips the one after the last column */
.products.products--shop { column-gap: 0; overflow: hidden; }
.products--shop > .product { padding-inline: clamp(1.25rem, 2vw, 1.75rem); margin-right: -1px; }
.products--shop > .product::after { content: ""; position: absolute; right: 0; top: 12%; bottom: 12%; width: 1px; background: var(--ph); }
.products--shop .product .stock { right: calc(clamp(1.25rem, 2vw, 1.75rem) + 0.75rem); }
.products--shop .product__name { font-size: 1.1875rem; }
.products--shop .product__meta { font-size: 1.0625rem; }
.products--shop .product__price { font-size: 2rem; }
.product .stock { position: absolute; top: 0.75rem; right: 0.75rem; padding: 0.3125rem 0.625rem; background: var(--bg); font-family: var(--ui); font-size: 0.8125rem; }
.product__meta { color: var(--muted); font-size: var(--step-small); }

/* stock, filled in by js/main.js from /api/stock: a small dot and a word, amber when few are left */
.stock { display: inline-flex; align-items: center; gap: 0.4375rem; font-size: var(--step-small); color: var(--muted); }
.stock::before { content: ""; width: 0.4375rem; height: 0.4375rem; border-radius: 50%; background: #5E7A4A; }
.stock.is-low { color: var(--accent); font-weight: 600; }
.stock.is-low::before { background: var(--accent); }
.stock.is-out::before { background: transparent; box-shadow: inset 0 0 0 1px var(--muted); }
.stock--pdp { margin: -1rem 0 1.75rem; }
.stock-note { margin-bottom: 1.5rem; padding: 0.875rem 1.125rem; background: var(--surface); border-left: 2px solid var(--accent); }

/* home: one row of wine tiles that scrolls sideways (4 in view, 3 on tablet, 1½ on phones) */
.products.products--row {
  --in-view: 4; --card-scale: 0.75; /* cards 25% smaller than four-in-view */
  grid-template-columns: none; grid-auto-flow: column;
  grid-auto-columns: calc((100% - (var(--in-view) - 1) * clamp(1.5rem, 3vw, 2.5rem)) / var(--in-view) * var(--card-scale, 1));
  overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none;
}
.products--row::-webkit-scrollbar { display: none; }
.products--row > .product { scroll-snap-align: start; }
/* the webshop button sits centred under the row, the arrows at the right edge */
.row-nav { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem; margin-top: 2.25rem; }
.row-nav .btn, .row-nav > .menu-link { grid-column: 2; }
.row-nav__buttons { grid-column: 3; justify-self: end; display: flex; gap: 0.5rem; }
.row-nav__buttons[hidden] { display: none; }
.row-nav__btn {
  display: grid; place-items: center; width: 3rem; height: 3rem; padding: 0;
  background: var(--surface); color: var(--ink); border: 0; cursor: pointer;
  transition: background-color var(--t-hover) var(--ease), opacity var(--t-hover) var(--ease);
}
.row-nav__btn svg { width: 1rem; height: 1rem; }
.row-nav__btn:disabled { opacity: 0.35; cursor: default; }
@media (hover: hover) and (pointer: fine) { .row-nav__btn:not(:disabled):hover { background: var(--ph); } }

/* home: press appearances, centred cards (up to three side by side) */
.press { display: grid; grid-template-columns: repeat(auto-fit, minmax(16.25rem, 1fr)); justify-content: center; gap: clamp(2rem, 4vw, 3.5rem); }
.press__item { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0.375rem; }
.press__media { position: relative; display: block; width: 100%; overflow: hidden; background: var(--ph); margin-bottom: 1.125rem; }
.press__media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform 300ms var(--ease-out); }
.press__media--square { background: linear-gradient(#2A2927, #35322D); } /* the award graphic's own dark ground, so the square sits in a 16:9 frame */
.press__media--square img { object-fit: contain; }
.press__play {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%;
  display: grid; place-items: center; width: 4rem; height: 4rem; border-radius: 50%;
  background: rgba(32, 35, 29, 0.72); color: #fff;
}
.press__play svg { width: 1.375rem; height: 1.375rem; margin-left: 0.1875rem; }
@media (hover: hover) and (pointer: fine) { .press__media:hover img { transform: scale(1.03); } }
.press__source { text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.75rem; font-weight: 600; color: var(--muted); }
.press__title { font-family: var(--text); font-size: var(--step-lead); font-weight: 400; font-style: italic; letter-spacing: 0; line-height: 1.3; }
.press__title a { text-decoration: none; }
.press__note { color: var(--muted); font-size: var(--step-small); }

/* home: events as picture cards (after standrea.com): photo with the date on it, an arrow badge, centred text */
.events { display: grid; grid-template-columns: repeat(auto-fit, minmax(17.5rem, 1fr)); gap: clamp(1.25rem, 2.5vw, 2rem); }
.events__item { display: flex; flex-direction: column; background: var(--surface); }
.events__media { position: relative; display: block; overflow: hidden; background: var(--ph); }
.events__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 600ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .events__item:hover .events__media img { transform: scale(1.04); } }
.events__badge {
  position: absolute; top: 1rem; right: 1rem; display: grid; place-items: center;
  width: 2.75rem; height: 2.75rem; border-radius: 50%; background: var(--bg); color: var(--ink);
  transition: background-color var(--t-hover) var(--ease), color var(--t-hover) var(--ease);
}
.events__badge svg { width: 1rem; height: 1rem; }
@media (hover: hover) and (pointer: fine) { .events__item:hover .events__badge { background: var(--accent); color: var(--accent-ink); } }
.events__when {
  position: absolute; left: 0; bottom: 0; padding: 0.625rem 1rem;
  background: var(--accent); color: var(--accent-ink);
  text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.75rem; font-weight: 600;
}
.events__body { flex: 1; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0.375rem; padding: clamp(1.5rem, 2.5vw, 2.25rem) 1.5rem; }
.events__name { font-family: var(--text); font-size: clamp(1.25rem, 1.05rem + 0.6vw, 1.5rem); font-weight: 400; text-transform: uppercase; letter-spacing: 0.1em; line-height: 1.25; color: var(--accent); }
.events__name a { text-decoration: none; }
.events__place { text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.8125rem; font-weight: 600; }
.events__note { color: var(--muted); font-size: var(--step-small); max-width: 34ch; margin-top: 0.375rem; }
.events__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.25rem 1.25rem; margin-top: auto; padding-top: 1rem; font-size: var(--step-small); }
.events__links a { padding: 0.375rem 0; }
.events__fb { display: inline-grid; place-items: center; width: 2.75rem; height: 2.75rem; padding: 0 !important; color: var(--ink); transition: color var(--t-hover) var(--ease); }
.events__fb svg { width: 1.375rem; height: 1.375rem; }
@media (hover: hover) and (pointer: fine) { .events__fb:hover { color: var(--accent); } }

/* product page */
.pdp { display: grid; grid-template-columns: 6fr 5fr; gap: clamp(2rem, 6vw, 7rem); align-items: start; padding-top: clamp(2rem, 4vw, 4rem); }
.pdp__media { position: sticky; top: calc(var(--head-h) + 1rem); background: var(--bottle-bg); }
.pdp__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: contain; padding: 6% 0; }
.pdp__crumb { margin-bottom: 1.75rem; font-size: var(--step-small); }
.pdp h1 { font-size: clamp(1.75rem, 1.2rem + 1.8vw, 2.75rem); margin-bottom: 0.75rem; }
.pdp__meta { color: var(--muted); margin-bottom: 1.5rem; }
.pdp__price { font-family: var(--ui); font-weight: 600; font-size: var(--step-head); line-height: 1; margin-bottom: 0.5rem; font-variant-numeric: tabular-nums; }
.pdp__unit { color: var(--muted); font-size: var(--step-small); margin-bottom: 1.75rem; }
.buy { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; margin-bottom: 2.5rem; }
.buy .btn { flex: 1 1 12.5rem; }
.pdp__text p + p { margin-top: 1em; }
.pdp__text h2 { font-size: var(--step-lead); margin: 2.5rem 0 0.5rem; }

/* ---------- quantity stepper ---------- */
.qty { display: inline-flex; align-items: center; gap: 0.25rem; }
.qty input { width: 4rem; min-height: 3.25rem; text-align: center; padding: 0.5rem 0.25rem; -moz-appearance: textfield; font-variant-numeric: tabular-nums; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty button {
  width: 3rem; height: 3.25rem; display: inline-flex; align-items: center; justify-content: center;
  background: var(--surface); color: var(--ink); border: 0; border-radius: 0; cursor: pointer;
  transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) var(--ease);
}
.qty button:active { transform: scale(0.94); }
@media (hover: hover) and (pointer: fine) { .qty button:hover { background: var(--ph); } }
.qty svg { width: 0.875rem; height: 0.875rem; }
.qty--small input { min-height: 2.75rem; width: 3.25rem; }
.qty--small button { height: 2.75rem; width: 2.75rem; }

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem clamp(1.5rem, 4vw, 4rem); }
.steps h3 { margin-bottom: 0.75rem; }
.steps__mark { display: block; width: 2.5rem; height: 0.375rem; background: var(--accent); margin-bottom: 1.5rem; }

/* ---------- voices ---------- */
.voices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.voice-slot { background: var(--surface); padding: 1.75rem; color: var(--muted); font-size: var(--step-small); }
.voice-slot blockquote { font-family: var(--display); font-size: var(--step-lead); line-height: 1.3; color: var(--ink); margin-bottom: 1rem; }
.voice-slot blockquote p::before { content: "„"; }
.voice-slot blockquote p::after { content: "”"; }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: 5fr 7fr; gap: 2rem clamp(2rem, 6vw, 7rem); align-items: start; }
.faq details { background: var(--surface); }
.faq details + details { margin-top: 0.375rem; }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.25rem 1.375rem; font-weight: 600;
  transition: background-color var(--t-hover) var(--ease);
}
.faq summary::-webkit-details-marker { display: none; }
@media (hover: hover) and (pointer: fine) { .faq summary:hover { background: var(--ph); } }
.faq summary svg { flex: none; width: 1rem; height: 1rem; transition: transform 200ms var(--ease-out); }
.faq details[open] summary svg { transform: rotate(45deg); }
.faq details > div { padding: 0 1.375rem 1.375rem; max-width: 62ch; }
.faq details > div p + p { margin-top: 0.7em; }

/* ---------- full-bleed visit ---------- */
/* the courtyard is cropped to the house and the arch; the bottom of the frame (yard clutter) stays out */
.hours div { display: flex; justify-content: space-between; gap: 1rem; padding: 0.25rem 0; }
.hours dt { color: var(--muted); }
.hours dd { font-variant-numeric: tabular-nums; }

/* ---------- about ---------- */
.letter { max-width: 40rem; }
.letter__head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.75rem; }
.letter__head img { width: 4rem; height: 4rem; border-radius: 50%; object-fit: cover; }
.letter p + p { margin-top: 1em; }
.signoff { margin-top: 2rem; }
.signoff strong { display: block; font-style: italic; font-weight: 400; font-size: var(--step-lead); }
.frame { position: relative; width: 100%; aspect-ratio: 4 / 5; max-height: min(72svh, 44rem); cursor: pointer; overflow: hidden; }
.split__media .frame img { max-height: none; }
.frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; visibility: hidden; transition: opacity 280ms var(--ease-out), visibility 0s linear 280ms; }
.frame img.is-active { opacity: 1; visibility: visible; transition-delay: 0s; }
.no-js .frame img:first-child { opacity: 1; visibility: visible; }
.frame-caption { margin-top: 1rem; color: var(--muted); }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 3rem clamp(2rem, 6vw, 7rem); align-items: start; }
.map { width: 100%; aspect-ratio: 4 / 3; border: 0; background: var(--ph); }
.map-link { margin-top: 1rem; }
.contact-list { margin-top: 2rem; }

/* ---------- forms ---------- */
.form { display: grid; gap: 1.375rem; }
.form > h2 { font-size: var(--step-lead); margin-top: 1.5rem; }
.form > h2:first-child { margin-top: 0; }
.field { display: grid; gap: 0.5rem; }
.field label, .field legend { font-weight: 600; }
.field .hint { font-size: var(--step-small); color: var(--muted); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
input[type="text"], input[type="email"], input[type="password"], input[type="tel"], input[type="date"], input[type="number"], select, textarea {
  width: 100%; min-height: 3.25rem; padding: 0.75rem 0.875rem;
  font: inherit; font-size: var(--step-body); color: var(--ink);
  background: #FFFFFF; border: 1px solid var(--line); border-radius: 0;
  transition: border-color var(--t-hover) var(--ease);
}
textarea { min-height: 7.5rem; resize: vertical; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
fieldset { border: 0; padding: 0; margin: 0; }
.choice { display: flex; gap: 0.75rem; align-items: flex-start; }
.choice + .choice { margin-top: 0.625rem; }
.choice input { width: 1.25rem; height: 1.25rem; margin-top: 0.25rem; accent-color: var(--accent); flex: none; }
.form-error { color: #A3271B; font-weight: 600; }
.form-error:empty { display: none; }
.hp { display: none; }

/* ---------- basket ---------- */
.checkout { display: grid; grid-template-columns: 7fr 5fr; gap: 3rem clamp(2rem, 6vw, 7rem); align-items: start; padding-top: clamp(2rem, 4vw, 3.5rem); }
.cart-lines > li { display: grid; grid-template-columns: 5.5rem 1fr auto; gap: 0.75rem 1.5rem; align-items: center; padding: 1.25rem 0; }
.cart-lines img { width: 5.5rem; height: 6.875rem; object-fit: contain; padding: 0.25rem 0; background: var(--bottle-bg); }
.line__name { font-family: var(--display); font-size: var(--step-lead); line-height: 1.15; text-decoration: none; }
.line__meta { color: var(--muted); }
.line__end { display: grid; justify-items: end; gap: 0.5rem; }
.line__total { font-variant-numeric: tabular-nums; font-weight: 600; }
.remove { background: none; border: 0; padding: 0.25rem 0; color: var(--muted); font: inherit; font-size: var(--step-small); text-decoration: underline; text-underline-offset: 0.22em; cursor: pointer; }
.cart-empty { padding: 2.5rem; background: var(--surface); }
.cart-empty p + p { margin-top: 1rem; }
.summary { background: var(--surface); padding: 1.5rem; margin-top: 1.5rem; }
.summary dl div { display: flex; justify-content: space-between; gap: 1rem; padding: 0.25rem 0; font-variant-numeric: tabular-nums; }
.summary .total { font-family: var(--display); font-size: var(--step-lead); padding-top: 0.75rem; }
.summary p { margin-top: 0.75rem; color: var(--muted); }
.checkout__form { position: sticky; top: calc(var(--head-h) + 1.5rem); }
.checkout__form[hidden] { display: none; }

/* ---------- toast ---------- */
.toast {
  position: fixed; z-index: 60; right: 1.5rem; bottom: 1.5rem;
  display: flex; align-items: center; gap: 1.25rem;
  max-width: calc(100% - 3rem); padding: 1rem 1.25rem;
  background: var(--ink); color: var(--bg);
  box-shadow: 0 1rem 2.5rem rgba(20, 22, 18, 0.25); /* taste-skill-ignore: floating notice */
  transition: opacity 220ms var(--ease-out), transform 220ms var(--ease-out);
}
.toast.is-hidden { visibility: hidden; opacity: 0; transform: translateY(0.5rem); pointer-events: none; transition: opacity 160ms var(--ease), transform 160ms var(--ease), visibility 0s linear 160ms; }
.toast a { color: var(--bg); font-weight: 600; }

/* ---------- footer ---------- */
.foot { background: var(--field); color: var(--field-ink); padding-block: clamp(4.5rem, 8vw, 8rem) 2rem; }
.foot__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem 2rem; text-align: center; }
.foot__grid > :first-child { text-align: left; justify-content: flex-start; }
.foot__grid > :last-child { text-align: right; }
/* the icons are no taller than the column titles beside them */
.foot__social { display: flex; justify-content: center; gap: 1.25rem; font-size: calc(var(--step-body) * 1.75); }
.foot__social a { display: block; color: var(--field-ink); }
.foot__social svg { display: block; width: 1em; height: 1em; }
.foot abbr { text-decoration: none; color: var(--field-muted); }
.foot h2 { font-size: var(--step-lead); line-height: 1.2; margin-bottom: 1.25rem; }
.foot a { text-decoration: none; }
.foot li + li { margin-top: 0.375rem; }
.foot address { font-style: normal; }
.foot p + p { margin-top: 0.375rem; }
.foot__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem 1.5rem; margin-top: clamp(3rem, 6vw, 5.5rem); color: var(--field-muted); font-size: var(--step-small); }

/* ---------- age gate ---------- */
/* the age question fills the whole screen (after shop.sauska.hu): dark, the white logo, the question, an outlined "Igen" and a faint "Nem" */
.age { border: 0; padding: 0; margin: 0; width: 100%; height: 100%; max-width: none; max-height: none; background: var(--field); color: var(--field-ink); }
.age[open] { display: grid; place-items: center; animation: fade-in 260ms var(--ease-out); }
.age::backdrop { background: var(--field); }
@keyframes fade-in { from { opacity: 0; } }
.age__inner { width: min(24rem, calc(100% - 6rem)); padding-block: 2rem; text-align: center; }
.age__logo { width: clamp(8rem, 34vw, 21rem); height: auto; margin: 0 auto clamp(3rem, 12vh, 6rem); opacity: 0.85; }
.age h2 { font-size: 1.375rem; line-height: 1.3; margin-bottom: 2rem; }
.age p { color: var(--field-muted); }
.age__actions { display: grid; justify-items: center; gap: 1.75rem; }
.age__yes, .age__no { font: 600 0.9375rem/1 var(--ui); text-transform: uppercase; letter-spacing: 0.12em; cursor: pointer; border-radius: 0; }
.age__yes { width: 100%; min-height: 3.75rem; background: rgb(255 255 255 / 0.07); color: #fff; border: 1px solid rgb(255 255 255 / 0.85); transition: background-color var(--t-hover) var(--ease); }
.age__no { padding: 0.75rem 1.5rem; background: none; border: 0; color: rgb(255 255 255 / 0.3); transition: color var(--t-hover) var(--ease); }
@media (hover: hover) and (pointer: fine) { .age__yes:hover { background: rgb(255 255 255 / 0.16); } .age__no:hover { color: rgb(255 255 255 / 0.6); } }
/* while the age question or the phone menu is open, the page behind does not scroll */
html.is-locked { overflow: hidden; }

/* ---------- entrances (only when motion is welcome) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] {
    opacity: 0; transform: translateY(0.875rem);
    transition: opacity var(--t-enter) var(--ease-out), transform var(--t-enter) var(--ease-out);
    transition-delay: calc(var(--i, 0) * 70ms);
  }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .btn:active, .qty button:active, .cart-link:active { transform: none; }
  .age[open] { animation: fade-in 200ms var(--ease); }
  .cart-count.is-bump { animation: none; }
  .toast, .toast.is-hidden { transform: none; }
  .faq summary svg, .product__media img { transition: none; }
  .hero-media > img.is-active { transform: none; }
}

/* upright tablets: a full-height photo would crop the landscapes to a sliver */
@media (orientation: portrait) and (min-width: 641px) { .hero-media { height: 62svh; } }

/* ---------- tablet ---------- */
@media (max-width: 1100px) {
  :root { --head-h: 5.25rem; }
  .head__logo img { height: 3.75rem; }
  .products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .products.products--row { --in-view: 3; }
  .checkout { grid-template-columns: minmax(0, 1fr); }
  .checkout__form { position: static; }
}

@media (max-width: 960px) {
  /* the header: menu button left, logo in the middle, basket right (the language is inside the menu) */
  .head__in { display: grid; grid-template-columns: 1fr auto 1fr; gap: 0.75rem; }
  .head__tools { display: contents; }
  .menu-toggle { grid-column: 1; grid-row: 1; justify-self: start; }
  .head__logo { grid-column: 2; grid-row: 1; }
  .cart-link { grid-column: 3; grid-row: 1; justify-self: end; }
  .head__tools > .lang { display: none; }
  .head.is-open { background: var(--head-bg); }
  /* the open menu fills the screen under the header (after bortarsasag.hu): big serif capitals, the languages at the bottom */
  .nav { display: none; position: fixed; top: var(--head-h); left: 0; right: 0; bottom: 0; z-index: 39; overflow-y: auto; flex-direction: column; background: var(--head-bg); padding: 1rem var(--gutter) calc(2rem + env(safe-area-inset-bottom)); border-top: 1px solid var(--ph); }
  .head.is-open .nav { display: flex; animation: menu-in 220ms var(--ease-out); }
  .nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 0; }
  .nav a { display: block; padding: 1.0625rem 0; font-size: 1.5rem; font-weight: 500; letter-spacing: 0.05em; color: var(--ink); }
  .nav .nav__langs { display: flex; flex-direction: row; gap: 1.75rem; margin-top: auto; padding-top: 2.5rem; }
  .nav .nav__langs a { padding: 0.5rem 0; font-family: var(--ui); font-size: 1.125rem; font-weight: 500; text-transform: lowercase; letter-spacing: 0.04em; color: var(--muted); text-decoration: none; }
  .nav .nav__langs a[aria-current] { color: var(--ink); }
  /* in the dropped-down phone menu the rows are full width: a plain underline instead of the sliding line */
  .nav a::after { display: none; }
  .nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.5em; }
  .menu-toggle {
    display: inline-flex; align-items: center; justify-content: center; min-width: 2.75rem; min-height: 2.75rem; padding: 0;
    background: none; border: 0; color: var(--ink); cursor: pointer;
  }
  .menu-toggle svg { width: 1.625rem; height: 1.625rem; }
  .menu-toggle__close, .head.is-open .menu-toggle__open { display: none; }
  .head.is-open .menu-toggle__close { display: block; }
  .no-js .nav { display: block; position: static; grid-column: 1 / -1; background: none; border: 0; padding: 0 0 1rem; }
  .no-js .menu-toggle { display: none; }
  .cart-label { display: none; }
  .page-intro, .split, .faq, .contact-grid, .pdp { grid-template-columns: minmax(0, 1fr); }
  .split--flip > .split__media { order: 0; }
  .pdp__media { position: static; }
  .steps, .voices { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  :root { --head-h: 4.5rem; --gutter: 1.25rem; }
  .head__in { gap: 0.75rem; }
  .head__logo img { height: 3rem; }
  .cart-link { padding: 0 0.75rem; }
  .hero-media { height: 62svh; min-height: 18.75rem; }
  .products { grid-template-columns: 1fr; }
  .products.products--row { grid-template-columns: none; grid-auto-columns: 62%; }
  /* phones swipe the row, so the arrows give way to a full-width webshop button */
  .row-nav__buttons { display: none; }
  .field-row { grid-template-columns: 1fr; }
  .cart-lines > li { grid-template-columns: 4.5rem 1fr; }
  .cart-lines img { width: 4.5rem; height: 5.625rem; }
  .line__end { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.25rem; }
  .foot__grid { grid-template-columns: 1fr; }
  .foot__grid > :first-child, .foot__grid > :last-child { text-align: center; justify-content: center; }
  .toast { left: 1rem; right: 1rem; bottom: 1rem; max-width: none; justify-content: space-between; }
}

/* ---------- webshop: filters, sorting and wine packs ---------- */
/* after bortarsasag.hu: "Szűrés" left, the count, the sorting right; keyword chips under it; the detailed filters open in a panel */
.shop-layout { display: block; }
.shop-tools { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.shop-tools__bar { display: flex; align-items: center; gap: 1rem; padding-bottom: 0.75rem; border-bottom: 1px solid var(--ph); }
.shop-tools__toggle { display: inline-flex; align-items: center; gap: 0.75rem; min-height: 2.75rem; padding: 0; background: none; border: 0; color: var(--ink); font: 500 1.125rem/1 var(--ui); letter-spacing: 0.06em; white-space: nowrap; cursor: pointer; }
.shop-tools__toggle svg { width: 1.625rem; height: 1.625rem; }
.shop-tools__count { margin-right: auto; white-space: nowrap; color: var(--muted); font-family: var(--ui); font-size: var(--step-small); }
.shop-tools__sort select {
  width: auto; min-height: 2.75rem; padding: 0.5rem 1.75rem 0.5rem 0.5rem; border: 0; background: transparent no-repeat right 0.125rem center / 1rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m3 6 5 5 5-5' fill='none' stroke='%2320231D' stroke-width='1.4'/%3E%3C/svg%3E");
  -webkit-appearance: none; appearance: none; font: 500 1.125rem/1.2 var(--ui); text-align: right; cursor: pointer;
}
.shop-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.25rem clamp(1.5rem, 3vw, 2.75rem); padding-top: 1.75rem; }
.shop-chip { padding: 0.625rem 0 0.375rem; background: none; border: 0; border-bottom: 3px solid transparent; color: var(--ink); font: 400 1.1875rem/1.2 var(--ui); letter-spacing: 0.02em; cursor: pointer; transition: border-color var(--t-hover) var(--ease); }
.shop-chip[aria-pressed="true"] { border-bottom-color: var(--accent); }
@media (hover: hover) and (pointer: fine) { .shop-chip:not([aria-pressed="true"]):hover { border-bottom-color: var(--ph); } }
.shop-tools__panel { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) auto; gap: 1rem 1.25rem; align-items: end; margin-top: 1.5rem; padding: 1.5rem 0; border-block: 1px solid var(--ph); animation: menu-in 220ms var(--ease-out); }
@keyframes menu-in { from { opacity: 0; transform: translateY(-0.375rem); } }
.shop-tools__field { display: grid; gap: 0.375rem; }
.shop-tools__field span { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); }
.shop-tools__field select { width: 100%; min-height: 2.875rem; padding-block: 0.5rem; font-size: var(--step-small); }
.shop-empty { text-align: center; padding-block: 3rem; display: grid; justify-items: center; gap: 1.25rem; }
/* a pack shows its bottles side by side, each photo cropped to the bottle */
.product__media--pack { display: flex; }
.product__media--pack { justify-content: center; gap: 2%; padding-inline: 8%; }
.product__media--pack img { flex: 1 1 0; min-width: 0; height: 100%; object-fit: contain; }
/* a wine that is not for sale yet */
.product--soon .product__media img { opacity: 0.85; }
.product--soon .product__media:hover img { transform: none; }
.soon-note { font-family: var(--ui); font-weight: 700; font-size: 0.875rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent); min-height: 3.25rem; display: inline-flex; align-items: center; }
.product__price s { display: block; color: var(--muted); font-size: 0.6em; font-weight: 500; }

/* ---------- vineyards page ---------- */
.eyebrow { font-size: 0.8125rem; font-weight: 400; text-transform: uppercase; letter-spacing: 0.14em; color: var(--accent); margin-bottom: 0.75rem; }
.split__text h2 + p { margin-top: 1.25rem; }
.split__text p + p { margin-top: 1rem; }
.vineyard__wines-head { font-family: var(--text); font-size: var(--step-body); font-weight: 400; text-transform: uppercase; letter-spacing: 0.12em; margin-top: 2.25rem; }
.split__text .vineyard__wines-head + .rows { margin-top: 0.75rem; }
.split__text .rows a.rows__name { color: inherit; }
.vineyard-index { display: flex; flex-wrap: wrap; gap: 0.75rem 2rem; margin-top: 2rem; }
.vineyard-index a { text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.8125rem; font-weight: 600; }

/* ---------- newsletter, in the footer ---------- */
/* the newsletter on the courtyard photo at the bottom of every page */
.newsband { position: relative; min-height: min(100svh, 40rem); display: flex; align-items: center; justify-content: flex-end; padding: 3.75rem max(var(--gutter), calc((100% - var(--max)) / 2 + var(--gutter))); color: var(--field-ink); }
.newsband > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.newsband::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgb(32 35 29 / 0) 25%, rgb(32 35 29 / 0.78) 70%); }
.newsband .news { position: relative; z-index: 2; width: min(32rem, 100%); }
.newsband .news__text, .newsband .news__consent { color: var(--field-ink); }
.newsband a { color: inherit; }
.news { display: grid; gap: 0.875rem; }
.news h2 { margin-bottom: 0; }
.news__text { color: var(--field-muted); }
.news__row { display: flex; gap: 0.5rem; }
.news__row input { flex: 1; min-width: 0; }
.news__consent { font-size: var(--step-small); color: var(--field-muted); }
.news__done { font-weight: 600; }
@media (max-width: 960px) {
  .shop-tools__panel { grid-template-columns: 1fr 1fr; }
  .shop-tools__panel .btn { grid-column: 1 / -1; }
  .newsband { min-height: 0; padding-block: clamp(14rem, 50vw, 22rem) 3rem; align-items: flex-end; }
  .newsband::before { background: linear-gradient(180deg, rgb(32 35 29 / 0) 10%, rgb(32 35 29 / 0.85) 60%); }
}
@media (max-width: 640px) {
  .news__row { flex-direction: column; }
  .shop-tools__toggle, .shop-tools__sort select, .shop-chip { font-size: 1.0625rem; }
}

/* ---------- wide screens ---------- */
/* the page uses more of the screen, and the header keeps its full size (the rest reads at 80%) */
@media (min-width: 961px) {
  :root { --max: 125rem; --gutter: clamp(2rem, 4.5vw, 6rem); }
  .products--shop { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
/* wide screens: four wines side by side in the webshop (the bottle photos shrink with the cards) */
@media (min-width: 1200px) {
  .products--shop { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 1101px) {
  :root { --head-h: 8.125rem; }
  .head__logo img { height: 5.625rem; }
  .nav a, .lang, .cart-link, .menu-toggle { font-size: 1.015625rem; }
  .nav ul { gap: clamp(1.5rem, 2.6vw, 3rem); }
  .head__tools { gap: 1.5rem; }
  .cart-link { min-height: 3.4375rem; padding: 0 1.25rem; gap: 0.625rem; }
  .cart-link svg { width: 1.5625rem; height: 1.5625rem; }
  .cart-count { min-width: 1.875rem; height: 1.875rem; border-radius: 0.9375rem; }
}

/* ---------- owner's stock page (keszlet.html) ---------- */
.admin { max-width: calc(40rem + 2 * var(--gutter)); padding-block: clamp(2.5rem, 6vw, 5rem); }
.admin__logo { height: 3.5rem; width: auto; margin-bottom: 2.5rem; }
.admin h1 { margin-bottom: 1rem; }
.admin > p { margin-bottom: 1rem; }
.admin .form { margin-top: 2rem; }
.admin__login { max-width: 22rem; }
.admin-rows { margin-bottom: 1.75rem; border-top: 1px solid var(--ph); }
.admin-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.875rem 0; border-bottom: 1px solid var(--ph); }
.admin-row label { display: flex; flex-direction: column; font-weight: 600; }
.admin-row input { width: 7.5rem; text-align: right; font-variant-numeric: tabular-nums; }
.admin__status { margin-top: 1rem; }

/* the owner's inbox page (beerkezett.html) */
.inbox__tabs { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 2rem 0 1rem; }
.inbox__tabs [aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.inbox { border-top: 1px solid var(--ph); }
.inbox li { padding: 1.25rem 0; border-bottom: 1px solid var(--ph); }
.inbox__when { font-weight: 600; margin-bottom: 0.5rem; }
.inbox dl { display: grid; grid-template-columns: minmax(6rem, auto) 1fr; gap: 0.25rem 1rem; }
.inbox dt { color: var(--muted); }
.inbox dd { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }

/* wine page: the "add 6 bottles" button and its discount note */
.buy-case { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.25rem; margin-top: 1rem; }
.buy-case p { flex: 1 1 14rem; }
.line__deal { display: block; font-size: var(--step-small); color: var(--accent); font-weight: 600; }

/* basket: Barion's card logos under the card payment note (Barion asks shops to show them) */
.barion-banner { display: block; width: 100%; max-width: 18rem; height: auto; margin-top: 12px; }
.barion-banner[hidden] { display: none; }

/* card payment result (fizetes.html): one centred panel per outcome */
.result-band { padding-block: clamp(3rem, 7vw, 6rem); }
.result { max-width: 40rem; margin-inline: auto; padding: clamp(2rem, 5vw, 3.5rem); background: var(--surface); text-align: center; }
.result h2 { font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.75rem); margin: 1.25rem 0 1rem; }
.result .lead { max-width: 32ch; margin-inline: auto; }
.result__icon { display: inline-block; width: 4rem; height: 4rem; }
.result__icon svg { width: 100%; height: 100%; }
.result__icon--ok { color: #5E7A4A; }
.result__icon--fail { color: #9B3B2A; }
.result__icon--wait { color: var(--muted); }
.result__order { display: inline-flex; flex-direction: column; gap: 0.25rem; margin: 0.5rem 0 1.5rem; padding: 0.875rem 1.5rem; background: var(--bg); font-size: var(--step-small); color: var(--muted); text-transform: uppercase; letter-spacing: 0.12em; }
.result__order strong { font-family: var(--ui); font-size: 1.5rem; letter-spacing: 0.06em; color: var(--ink); }
.result__steps { list-style: none; padding: 0; margin: 0.5rem 0 0; display: grid; gap: 1rem; text-align: left; counter-reset: step; }
.result__steps li { display: grid; grid-template-columns: 2.25rem 1fr; gap: 0.125rem 0.75rem; counter-increment: step; }
.result__steps li::before { content: counter(step); grid-row: span 2; width: 2.25rem; height: 2.25rem; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); font-family: var(--ui); font-weight: 700; }
.result__steps span { color: var(--muted); font-size: var(--step-small); }
.result__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; margin-top: 2rem; }

/* computers: the menu in the middle of the header, the logo left, language and basket right */
@media (min-width: 961px) {
  .head__in { display: grid; grid-template-columns: 1fr auto 1fr; }
  .nav { margin-left: 0; }
  .head__tools { justify-self: end; }
}

/* home page row: no stock note on the tiles (the webshop still shows it) */
.products--row .stock { display: none !important; }

/* checkout: the Foxpost locker picker (Foxpost's own map in a frame) and the postcode + town row */
.locker { display: grid; gap: 0.75rem; justify-items: start; margin: 0.25rem 0 1.5rem; }
.locker__chosen { margin: 0; font-size: var(--step-small); }
.locker__map { width: 100%; }
.locker__map iframe { display: block; width: 100%; height: min(70svh, 36rem); border: 1px solid var(--line); }
.field-row.field-row--zip { grid-template-columns: minmax(6rem, 9rem) 1fr; }
/* the company invoice fields under the address */
.company .hint { font-size: var(--step-small); color: var(--muted); margin: 0.5rem 0 0; }

/* ---------- the reading pages (Rólunk, Dűlőink): centered chapters ---------- */
/* each chapter: a small label or title, a narrow centered column of larger text, then a full-width photo */
.chapter { padding-top: var(--gap); text-align: center; }
.chapter__in { max-width: 62rem; margin-inline: auto; padding-inline: var(--gutter); }
.chapter__in > * + * { margin-top: 1.25rem; }
.chapter__in p:not(.eyebrow) { font-size: clamp(1.3125rem, 1.1rem + 0.7vw, 1.75rem); line-height: 1.6; }
.chapter .eyebrow { margin-bottom: 0; font-family: var(--ui); }
.chapter__title { font-family: var(--text); text-transform: uppercase; letter-spacing: 0.14em; font-size: clamp(1.625rem, 1.2rem + 1.5vw, 2.625rem); line-height: 1.15; }
/* the short line under every title */
.chapter__title::after, .chapter .eyebrow::after { content: ""; display: block; width: 3rem; height: 1px; margin: 1.25rem auto 0; background: var(--accent); }
.chapter__in > .chapter__title + *, .chapter__in > .eyebrow + * { margin-top: 2rem; }
.quote p:not(.eyebrow) { font-family: var(--display); font-size: clamp(1.375rem, 1.1rem + 1vw, 2rem); line-height: 1.35; letter-spacing: -0.01em; text-wrap: balance; }
.quote + p { color: var(--muted); }
/* big numbers with a small label under them (the label is the dt, shown second) */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr)); gap: 2rem 1.5rem; }
.chapter__in > .stats { margin-top: 2.5rem; width: min(64rem, calc(100vw - 2 * var(--gutter))); margin-left: 50%; transform: translateX(-50%); }
.stats div { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 0.5rem; } /* reversed: flex-end keeps the numbers level at the top */
.wide-photo + .chapter__in { margin-top: clamp(2.5rem, 5vw, 4rem); }
.stats dd { white-space: nowrap; font-family: var(--display); font-size: clamp(2rem, 1.4rem + 1.8vw, 3.25rem); line-height: 1; color: var(--accent); }
.stats dt { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); }
/* a photo across the whole width, cropped to a wide strip */
.wide-photo { margin-top: clamp(3rem, 6vw, 5.5rem); }
.wide-photo img { display: block; width: 100%; height: clamp(16rem, 42vw, 40rem); object-fit: cover; }
.chapter + .chapter { padding-top: var(--gap); }
/* the year from grape to bottle: one step under the other, a thin line joining them */
.timeline { list-style: none; max-width: 60rem; margin: clamp(2.5rem, 5vw, 4rem) auto 0; padding: 0 var(--gutter); }
.timeline li + li { margin-top: 1.5rem; padding-top: 3.5rem; position: relative; }
.timeline li + li::before { content: ""; position: absolute; top: 0; left: 50%; width: 1px; height: 2.25rem; background: var(--accent); }
.timeline h3 { font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.75rem); color: var(--accent); }
.timeline p { margin-top: 0.75rem; font-size: clamp(1.3125rem, 1.1rem + 0.7vw, 1.75rem); line-height: 1.6; }
.page--read .photo-row.wrap, .page--read .photo-pair.wrap { max-width: none; } /* wins over the narrower .page--read .wrap */
/* five photos side by side in one row, all the same size */
.photo-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: clamp(0.75rem, 1.5vw, 1.5rem); margin-top: clamp(3rem, 6vw, 5.5rem); }
.photo-row img { display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
/* two photos side by side, the same height */
.photo-pair { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(0.75rem, 1.5vw, 1.5rem); margin-top: clamp(3rem, 6vw, 5.5rem); }
.photo-pair img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.actions--center { justify-content: center; align-items: center; gap: 1.5rem 2.5rem; }
.chapter__in > .actions { margin-top: 2.5rem; }
.chapter:last-of-type { padding-bottom: var(--gap); }
.page--read main .wrap { max-width: 72rem; } /* only the text of the page: the header and footer keep their normal width */
.page--read .split__text p:not(.eyebrow) { font-size: clamp(1.1875rem, 1.08rem + 0.4vw, 1.375rem); line-height: 1.65; }
@media (max-width: 760px) {
  .photo-pair { grid-template-columns: 1fr; }
  .photo-row { grid-template-columns: 1fr 1fr; }
  .photo-row > :last-child { grid-column: 1 / -1; }
  .stats { grid-template-columns: repeat(3, 1fr); gap: 1.75rem 0.75rem; }
  .stats:has(> :nth-child(4)) { grid-template-columns: repeat(2, 1fr); }
  .stats dd { font-size: 1.875rem; }
  .stats dt { font-size: 0.6875rem; letter-spacing: 0.08em; }
  .photo-row > :last-child img { aspect-ratio: 3 / 2; }
}

/* ---------- visit page: booking calendar (js/main.js fills it from /api/visits) ---------- */
.booking__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5.5rem); align-items: start; }
.cal__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; }
.cal__month { font-family: var(--display); font-weight: 400; font-size: var(--step-lead); }
.cal__step { width: 3rem; height: 3rem; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--ink); font-size: 1.25rem; cursor: pointer; transition: background-color var(--t-hover) var(--ease), transform var(--t-press) var(--ease-out); }
.cal__step:hover:not(:disabled) { background: var(--surface); }
.cal__step:active:not(:disabled) { transform: scale(0.94); }
.cal__step:disabled { opacity: 0.3; cursor: default; }
.cal__grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 0.375rem; }
.cal__wd { font-family: var(--ui); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); text-align: center; padding-bottom: 0.5rem; }
.cal__day { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.125rem; min-height: clamp(3rem, 6vw, 4.5rem); font-family: var(--ui); font-variant-numeric: tabular-nums; color: var(--muted); border-radius: 0.25rem; }
.cal__day--blank { visibility: hidden; }
.cal__day--open { border: 1px solid var(--accent); background: transparent; color: var(--ink); font: inherit; font-family: var(--ui); cursor: pointer; transition: background-color var(--t-hover) var(--ease), color var(--t-hover) var(--ease), transform var(--t-press) var(--ease-out); }
.cal__day--open:hover:not(:disabled) { background: color-mix(in srgb, var(--accent) 12%, transparent); }
.cal__day--open:active:not(:disabled) { transform: scale(0.96); }
.cal__day--open.is-picked { background: var(--accent); color: var(--accent-ink); }
.cal__day--full { border-style: dashed; border-color: var(--line); color: var(--muted); cursor: not-allowed; }
.cal__num { font-weight: 600; font-size: 1.0625rem; }
.cal__free { font-size: 0.6875rem; letter-spacing: 0.02em; line-height: 1.1; color: var(--accent); }
.cal__day--open.is-picked .cal__free, .cal__day--full .cal__free { color: inherit; }
.cal__free--short { display: none; }
.cal__legend { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.75rem; margin-top: 1rem; }
.cal__dot { display: inline-block; width: 0.875rem; height: 0.875rem; border: 1px solid var(--accent); border-radius: 0.125rem; vertical-align: middle; }
.cal__dot--full { border: 1px dashed var(--line); margin-left: 0.75rem; }
.cal__next { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.75rem; }
.cal__next-title { width: 100%; font-family: var(--ui); font-size: 0.8125rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.cal__chip { padding: 0.5rem 0.875rem; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--ink); font-family: var(--ui); font-size: 0.9375rem; cursor: pointer; transition: border-color var(--t-hover) var(--ease), background-color var(--t-hover) var(--ease); }
.cal__chip:hover:not(:disabled) { border-color: var(--accent); }
.cal__chip.is-picked { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.cal__chip:disabled { opacity: 0.45; cursor: not-allowed; text-decoration: line-through; }
.booking__pick { font-size: var(--step-lead); color: var(--muted); font-style: italic; padding-top: 4.25rem; }
.booking__chosen { border-bottom: 1px solid var(--line); padding-bottom: 1rem; }
.booking__date { font-family: var(--display); font-size: var(--step-lead); }
.booking__free { margin-top: 0.25rem; color: var(--accent); font-family: var(--ui); font-weight: 600; }
.booking__error { color: #A3361F; font-weight: 600; }
.booking__done { padding-top: 4.25rem; }
.booking__done h3 { font-size: clamp(1.625rem, 1.2rem + 1.5vw, 2.625rem); color: var(--accent); }
.booking__done p { margin-top: 1rem; }
.booking__done:focus { outline: none; }
@media (max-width: 960px) {
  .booking__grid { grid-template-columns: 1fr; }
  .booking__pick, .booking__done { padding-top: 0; }
  [data-booking-form] { scroll-margin-top: calc(var(--head-h) + 1rem); }
}
@media (max-width: 420px) {
  .cal__grid { gap: 0.25rem; }
  .cal__free { display: none; }
  .cal__free.cal__free--short { display: block; font-size: 0.75rem; font-weight: 600; }
}

/* ---------- desktop: photo + text on a coloured panel ---------- */
/* the panel sits lower than the photo, slides a little under it and runs out to the edge of the window on the text side */
@media (min-width: 961px) {
  .split--panel { --drop: clamp(3rem, 5vw, 5rem); position: relative; isolation: isolate; padding-bottom: var(--drop); }
  .band:has(> .split--panel) { overflow-x: clip; } /* 100vw counts the scroll bar: no sideways scrolling */
  .split--panel::before { content: ""; position: absolute; z-index: -1; top: var(--drop); bottom: 0; left: 30%; right: var(--gutter); background: var(--panel); }
  .split--panel.split--flip::before { left: var(--gutter); right: 30%; }
  .split--panel > .split__text { padding-block: calc(var(--drop) + clamp(2rem, 4vw, 4rem)) clamp(2rem, 4vw, 4rem); padding-inline: 0 clamp(2rem, 4vw, 4rem); }
  .split--panel.split--flip > .split__text { padding-inline: clamp(2rem, 4vw, 4rem) 0; }
}

/* ---------- phones and tablets: photo + text sections (after bortarsasag.hu) ---------- */
/* the photo runs edge to edge, the text sits under it on a coloured panel: a big title, a short line, the text, an outlined button in the middle */
@media (max-width: 960px) {
  .split { gap: 0; }
  .split__media, .split__text { margin-inline: calc(-1 * var(--gutter)); }
  .split__media img, .split__media .frame { aspect-ratio: 4 / 3; max-height: none; }
  .split__text { padding: clamp(2.5rem, 8vw, 4rem) var(--gutter) clamp(3rem, 10vw, 4.5rem); background: var(--surface); }
  .split__text > h2 { font-size: clamp(1.75rem, 1.3rem + 2.2vw, 2.375rem); line-height: 1.15; margin-bottom: 0; }
  .split__text > h2::after { content: ""; display: block; width: 5.5rem; height: 1px; margin: 1.75rem 0 0.5rem; background: currentColor; }
  .split__text .actions { flex-direction: column; align-items: center; gap: 1.5rem; margin-top: 2.5rem; }
  .split__text .actions .btn { min-width: min(17rem, 100%); background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
  /* the panel sections keep the header's off-white on phones too, with a filled brown button */
  .split--panel > .split__text { background: var(--panel); }
  .split--panel > .split__text .actions .btn { background: var(--accent); color: var(--accent-ink); box-shadow: none; }
}

/* ---------- phones ---------- */
@media (max-width: 640px) {
  /* home wine row: one tile and a bit of the next one, roomier */
  .products.products--row { grid-auto-columns: 80%; }
  .row-nav { display: flex; justify-content: center; margin-top: 2.75rem; }
  .row-nav .menu-link { white-space: nowrap; }
  /* one wine to a row: no dividing line beside it */
  .products--shop > .product { padding-inline: 0; margin-right: 0; }
  .products--shop > .product::after { display: none; }
  .products--shop .product .stock { right: 0.75rem; }
  /* the subtitle under a section title: a short line above and below it, centred (after galtibor.hu) */
  .band-head .band-head__sub--lined { display: block; max-width: 30ch; }
  .band-head__sub--lined::before, .band-head__sub--lined::after { display: block; width: 4.5rem; margin: 1.25rem auto; opacity: 0.55; }
  /* footer: smaller type */
  .foot { padding-block: 3.5rem 1.5rem; font-size: 0.9375rem; }
  .foot h2 { font-size: 1.375rem; margin-bottom: 0.75rem; }
  .foot__social { font-size: 1.625rem; }
  .foot__grid { gap: 2.25rem; }
  .foot__base { flex-direction: column; align-items: center; gap: 0.375rem; margin-top: 2.5rem; font-size: 0.8125rem; text-align: center; }
}

/* the basket buttons: on a touch screen the fill-on-hover does nothing, so they are filled from the start */
@media (max-width: 640px), (hover: none) {
  .btn[data-add]:not(.btn--line) { background: var(--accent); color: var(--accent-ink); box-shadow: none; }
}
