/* Kriszta szívvel – app.css
   Tokenek a logóból (docs/design.md). Fontok saját szerverről: assets/fonts/ (lásd README ott). */

/* latin + latin-ext (ő, ű) – a böngésző csak azt tölti le, amire szükség van */
@font-face { font-family: 'Figtree'; src: url('../fonts/figtree-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-display: swap; unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Figtree'; src: url('../fonts/figtree-latin-ext-400-normal.woff2') format('woff2'); font-weight: 400; font-display: swap; unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Figtree'; src: url('../fonts/figtree-latin-600-normal.woff2') format('woff2'); font-weight: 600; font-display: swap; unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Figtree'; src: url('../fonts/figtree-latin-ext-600-normal.woff2') format('woff2'); font-weight: 600; font-display: swap; unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Figtree'; src: url('../fonts/figtree-latin-700-normal.woff2') format('woff2'); font-weight: 700 800; font-display: swap; unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Figtree'; src: url('../fonts/figtree-latin-ext-700-normal.woff2') format('woff2'); font-weight: 700 800; font-display: swap; unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Fraunces'; src: url('../fonts/fraunces-latin-600-normal.woff2') format('woff2'); font-weight: 600; font-display: swap; unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Fraunces'; src: url('../fonts/fraunces-latin-ext-600-normal.woff2') format('woff2'); font-weight: 600; font-display: swap; unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }

:root {
  --cream: #FCF0E4;
  --surface: #FFFAF5;
  --rose: #D0A090;        /* csak díszítés – szövegre kevés a kontraszt */
  --line: #EAD3C2;

  /* a logó három színe: szív (piros), búza (sárga), koszorú (zöld) */
  --red: #A04632;         /* téglavörös: gombok, felső sáv, linkek, szívek – fehéren 6.1:1, krémen 5.4:1 */
  --red-dark: #7E3424;    /* hover */
  --wheat: #F5D99A;       /* búzasárga – „A hét ajánlata” sáv */
  --honey: #EBC46E;       /* mézsárga – díszítés, háttér */
  --sage: #CFDCAF;        /* zsályazöld sáv */
  --olive: #4F5B2A;       /* olívazöld cím a zsálya sávon (5.1:1) */
  --leaf: #7D8F55;        /* díszítővonalak (koszorú) – szövegre nem */

  --copper: var(--red);   /* régi név: gombok, linkek (a meglévő szabályok ezt használják) */
  --copper-dark: #4E3019; /* címek, lábléc */
  --ink: #3B2A20;
  --ink-soft: #5A4334;
  --ok-bg: #E3F0E4; --ok-ink: #2F5D3A;
  --warn-bg: #FBE7D2; --warn-ink: #8A4B12;

  --font-head: 'Fraunces', Georgia, serif;
  --font-body: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --radius: 18px;
  --wrap: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 400 17px/1.55 var(--font-body); }
h1, h2, h3 { font-family: var(--font-head); font-weight: 600; color: var(--copper-dark); line-height: 1.12; margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 3rem); }
h3 { font-size: 1.3rem; }
a { color: var(--red); } a:hover { color: var(--red-dark); }
img { max-width: 100%; height: auto; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 860px; }
.muted { color: var(--ink-soft); } .small { font-size: .875rem; }
.eyebrow { font-size: .8rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #8A5A3B; margin: 0 0 .75rem; }
.eyebrow::before { content: "\2665"; color: var(--red); margin-right: .5em; letter-spacing: 0; } /* szívikon */
.lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 34rem; }
.skip { position: absolute; left: -9999px; } .skip:focus { left: 1rem; top: 1rem; background: #fff; padding: .5rem 1rem; z-index: 10; }
.hp { position: absolute; left: -9999px; }
:focus-visible { outline: 3px solid var(--copper); outline-offset: 2px; }

/* gombok */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 48px; padding: 0 1.4rem; border-radius: 999px; border: 2px solid var(--copper); background: transparent; color: var(--copper); font: 800 1rem var(--font-body); text-decoration: none; cursor: pointer; }
.btn-primary { background: var(--copper); color: #fff; }
.btn-primary:hover { background: var(--red-dark); border-color: var(--red-dark); color: #fff; }
.btn-block { width: 100%; min-height: 54px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* fejléc */
/* TESZT sáv (config/secrets.php → test_banner) – vékony, csíkos, nem ragadós */
.test-banner { background: repeating-linear-gradient(-45deg, #4E3019 0 14px, #5C3A20 14px 28px); color: #F5D99A; font-family: var(--font-body); font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; text-align: center; line-height: 1.3; padding: .3rem 1rem; }
@media (max-width: 600px) { .test-banner { font-size: .6875rem; letter-spacing: .03em; padding: .3rem .75rem; } }
.topbar { background: var(--red); color: #FFF8F0; font-size: .875rem; font-weight: 600; padding: .6rem 1.5rem; display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 1.75rem; text-align: center; }
.topbar span + span::before { content: "\2665"; color: var(--wheat); font-size: .8em; margin-right: 1.75rem; } /* búzasárga szív elválasztó */

/* fejléc: lekerekített „címke” sáv, a logó pecsétként lóg ki belőle; görgetéskor fent marad és összehúzódik */
.site-header { position: sticky; top: 0; z-index: 30; padding-top: 1.6rem; padding-bottom: 1rem; transition: padding .25s ease; }
.header-bar { position: relative; display: flex; align-items: center; gap: 1.25rem; height: 84px; padding: 0 .55rem 0 0; transition: box-shadow .25s ease, height .25s ease;
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px; box-shadow: 0 10px 30px rgba(78,48,25,.08); }
/* belső pontozott vonal – mint a logó körüli pontsor */
.header-bar::before { content: ""; position: absolute; inset: 5px; border: 2px dotted rgba(125,143,85,.55); border-radius: inherit; pointer-events: none; }
.brand { position: relative; z-index: 1; flex: none; margin: -18px 0 -18px -19px; border-radius: 50%; background: #fff; padding: 4px;
  box-shadow: 0 0 0 1px var(--line), 0 8px 20px rgba(78,48,25,.14); transition: margin .25s ease; }
.brand img { display: block; width: 112px; height: 112px; object-fit: contain; border-radius: 50%; transition: width .25s ease, height .25s ease; }

.main-nav { flex: 1; display: flex; justify-content: center; flex-wrap: wrap; gap: 0; font-weight: 700; }
.main-nav a + a { margin-left: 18px; }
.main-nav a + a::before { content: ""; position: absolute; left: -12px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: var(--leaf); opacity: .7; } /* elválasztó pötty, mint a koszorú bogyói */
.main-nav a { position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 1.05rem; border-radius: 999px; color: var(--copper-dark); text-decoration: none; transition: background .2s, color .2s; }
.main-nav a::after { content: "\2665"; position: absolute; left: 50%; bottom: -3px; transform: translateX(-50%) scale(0); color: var(--red); font-size: .7rem; line-height: 1; transition: transform .2s ease; }
.main-nav a:hover { background: var(--cream); color: var(--red); }
.main-nav a:hover::after, .main-nav a[aria-current="true"]::after { transform: translateX(-50%) scale(1); }
.main-nav a[aria-current="true"] { color: var(--red); }

.header-cart { position: relative; z-index: 1; flex: none; gap: .6rem; padding-left: .4rem; min-height: 54px; }
.header-cart-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: #fff; overflow: hidden; flex: none; }
.header-cart-icon img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; }

/* görgetés után: kompakt sáv */
.site-header.is-stuck { padding-top: .5rem; padding-bottom: .9rem; background: linear-gradient(to bottom, var(--cream) 72%, rgba(252,240,228,0)); } /* a sáv mögött ne látsszon át a tartalom */
.site-header.is-stuck .header-bar { box-shadow: 0 12px 34px rgba(78,48,25,.18); }
.site-header.is-stuck .header-bar { height: 68px; }
.site-header.is-stuck .brand { margin: -6px 0 -6px -7px; } /* 72+8 = 80 px kör a 68 px-es sávon */
.site-header.is-stuck .brand img { width: 72px; height: 72px; }

@media (max-width: 860px) {
  .topbar span + span::before { display: none; }
  .site-header { padding-top: 1.1rem; }
  .header-bar { flex-wrap: wrap; gap: .5rem .75rem; height: auto; border-radius: 28px; padding: .5rem .6rem .5rem 0; }
  .brand { margin: -18px 0 0 -10px; } /* a bal felső lekerekítést fedi */
  .brand img { width: 84px; height: 84px; }
  .header-cart { margin-left: auto; }
  .main-nav { order: 3; flex: 1 1 100%; justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding: .1rem 0 .2rem; }
  .main-nav::-webkit-scrollbar { display: none; }
  .main-nav a { flex: none; background: var(--cream); padding: 0 .9rem; font-size: .92rem; }
  .main-nav a + a { margin-left: 6px; } .main-nav a + a::before { display: none; }
  .main-nav { padding-left: .9rem; }
  .site-header.is-stuck .main-nav { display: none; }
  .site-header.is-stuck .header-bar { height: 72px; border-radius: 999px; }
  .site-header.is-stuck .brand { margin: -2px 0 -2px -3px; } /* 68+8 = 76 px kör a 72 px-es sávon */
  .site-header.is-stuck .brand img { width: 68px; height: 68px; }
}
@media (max-width: 420px) {
  .header-cart { padding: 0 .9rem 0 .35rem; font-size: .92rem; }
  .header-cart-icon { width: 36px; height: 36px; } .header-cart-icon img { width: 30px; height: 30px; }
}
@media (prefers-reduced-motion: reduce) { .site-header, .header-bar, .brand, .brand img, .main-nav a::after { transition: none; } }

/* hero */
.hero { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 3rem; align-items: center; padding-top: 3rem; padding-bottom: 4rem; }
/* hero kép: a keret a fotó arányát veszi fel (3:4), így nincs torzítás és érdemi vágás sem.
   Az ív sugara akkora, hogy a jobb felső „Sütibox a hétvégére” felirat ne vágódjon le. */
.hero-photo { margin: 0; justify-self: center; width: 100%; max-width: 480px; aspect-ratio: 896 / 1195; overflow: hidden;
  border-radius: 30% 30% 24px 24px / 22.5% 22.5% 24px 24px; background: #F3DCCB; border: 1px solid #E2C2AE;
  outline: 2px dotted var(--leaf); outline-offset: 10px; box-shadow: 0 18px 40px rgba(59,42,32,.14); }
.hero-photo picture, .hero-photo img { display: block; width: 100%; height: 100%; }
.hero-photo img { object-fit: cover; }

/* képváltó: a diák egymáson, áttűnéssel */
.hero-slider { position: relative; isolation: isolate; }
.hero-slider .slide { position: absolute; inset: 0; opacity: 0; transition: opacity .9s ease; }
.hero-slider .slide.is-active { opacity: 1; z-index: 1; }
/* fekvő kép: teljes egészében látszik, a maradék helyet a saját elmosott változata tölti ki */
.hero-slider .fit-contain { overflow: hidden; }
.hero-slider .fit-contain { background: #F1E3D3; }
.hero-slider .fit-contain::before { content: ""; position: absolute; inset: -60px; background: var(--slide-bg) center / cover no-repeat; filter: blur(34px) saturate(.9) brightness(1.08); opacity: .7; }
/* a fekvő fotó a saját arányában, függőlegesen középen; alsó-felső széle lágyan beleolvad a háttérbe */
.hero-slider .fit-contain picture { position: absolute; left: 0; right: 0; top: 50%; height: auto; transform: translateY(-50%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 12%, #000 88%, transparent 100%); mask-image: linear-gradient(to bottom, transparent 0, #000 12%, #000 88%, transparent 100%); }
.hero-slider .fit-contain img { height: auto; }
.slider-dots { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); z-index: 2; display: flex; gap: 2px; padding: 0 6px; border-radius: 999px; background: rgba(255,250,245,.7); backdrop-filter: blur(4px); }
.slider-dots button { width: 32px; height: 44px; padding: 0; border: 0; background: transparent; cursor: pointer; display: grid; place-items: center; }
.slider-dots button::before { content: ""; width: 10px; height: 10px; border-radius: 999px; background: #B79A86; transition: width .25s, background .25s; }
.slider-dots button[aria-current=true]::before { width: 22px; background: var(--red); }
.slider-dots button:focus-visible { outline-offset: -4px; }
@media (prefers-reduced-motion: reduce) { .hero-slider .slide { transition: none; } }

/* rendelés */
.order-layout { display: flex; flex-wrap: wrap; gap: 2rem; align-items: flex-start; padding-top: 2rem; padding-bottom: 4rem; }
.catalog { flex: 999 1 560px; min-width: 0; }
.chips { display: flex; flex-wrap: wrap; gap: .6rem; margin: 0 0 1.5rem; }
.chip { min-height: 44px; padding: 0 1.1rem; border-radius: 999px; border: 1px solid #D9BBA6; background: var(--surface); color: var(--copper-dark); font: 700 .95rem var(--font-body); cursor: pointer; }
.chip.is-active { background: var(--copper); color: #fff; border-color: var(--copper); }
.cat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 1rem; overflow: hidden; }
.cat > h3 { margin: 0; padding: .9rem 1.25rem; background: var(--cat-bg, #FBF3EA); border-left: 6px solid var(--cat-accent, var(--rose)); border-bottom: 2px dotted var(--leaf); font-size: 1.25rem; }
/* kategóriaszínek: zöld (szörp, savanyúság) · piros pasztell (lekvár, sütemény) · terrakotta (szósz) · méz (sós) · barack (kompót) */
[data-cat=szorpok]        { --cat-bg: #E4ECCF; --cat-accent: #7D8F55; }
[data-cat=savanyusagok]   { --cat-bg: #D5E0B5; --cat-accent: #5F7039; }
[data-cat=lekvarok]       { --cat-bg: #F6D6CE; --cat-accent: #A04632; }
[data-cat=sutemenyek]     { --cat-bg: #F9E2DB; --cat-accent: #C2675A; }
[data-cat=szoszok]        { --cat-bg: #E9B9A0; --cat-accent: #8E4227; }
[data-cat=sos-sutemenyek] { --cat-bg: #F3D58E; --cat-accent: #C08A22; }
[data-cat=kompotok]       { --cat-bg: #F9DCC4; --cat-accent: #D3804F; }
.products { list-style: none; margin: 0; padding: 0; }
.product { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem; padding: .7rem 1.25rem; border-top: 1px solid #F5ECE3; }
.product:first-child { border-top: 0; }
.product-img { width: 52px; height: 52px; border-radius: 12px; background: var(--cat-bg, #F3DCCB); flex: none; }
.product-info { flex: 1 1 220px; min-width: 0; display: flex; flex-direction: column; }
.product-name { font-weight: 700; }
.product-meta { font-size: .875rem; color: var(--ink-soft); display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; }
.tag { font-size: .75rem; font-weight: 800; color: var(--ok-ink); background: var(--ok-bg); padding: 1px 8px; border-radius: 999px; }
.tag-muted { color: #6B4A33; background: #F3E6DA; }
.tag-warn { color: var(--warn-ink); background: var(--warn-bg); }
.price { min-width: 84px; text-align: right; font-weight: 800; color: var(--copper-dark); }
.soldout { font-weight: 800; color: var(--ink-soft); min-width: 132px; text-align: center; }
.qty { display: flex; align-items: center; border: 1px solid #D9BBA6; border-radius: 12px; }
.qty button { width: 44px; height: 44px; border: 0; background: transparent; color: var(--copper); font-size: 1.3rem; cursor: pointer; }
.qty output { min-width: 24px; text-align: center; font-weight: 800; }

/* kosár */
/* kosár: felugró keret (dialog) a lebegő gomb fölött */
.cart { position: fixed; inset: auto 24px 136px auto; margin: 0; width: min(440px, calc(100vw - 32px)); max-height: calc(100dvh - 160px); overflow-y: auto; overscroll-behavior: contain;
  background: #fff; color: var(--ink); border: 3px solid var(--red); border-radius: 24px; padding: 0 1.4rem 1.4rem; box-shadow: 0 18px 50px rgba(59,42,32,.28);
  flex-direction: column; gap: 1rem; transform-origin: bottom right; }
.cart[open] { display: flex; animation: cart-pop .22s ease-out; }
.cart::backdrop { background: rgba(59,42,32,.35); }
@keyframes cart-pop { from { opacity: 0; transform: translateY(16px) scale(.92); } to { opacity: 1; transform: none; } }
.cart-head { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 1rem; background: #fff; padding: 1rem 0 .6rem; border-bottom: 2px dotted var(--leaf); }
.cart-head h2 { margin: 0; font-size: 1.8rem; }
.cart-close { width: 44px; height: 44px; flex: none; border: 2px solid var(--red); border-radius: 50%; background: #fff; color: var(--red); font-size: 1.6rem; line-height: 1; cursor: pointer; }
.cart-close:hover { background: var(--red); color: #fff; }

/* lebegő kosár gomb: fehér kör, piros keret, a kocsi rajza */
.cart-fab { position: fixed; right: 24px; bottom: 24px; z-index: 40; width: 96px; height: 96px; padding: 6px; border-radius: 50%; border: 3px solid var(--red); background: #fff;
  box-shadow: 0 8px 24px rgba(59,42,32,.25); cursor: pointer; transition: transform .15s ease, box-shadow .15s ease; }
.cart-fab:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(59,42,32,.32); }
.cart-fab img { display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: contain; }
.cart-fab-count { position: absolute; top: -6px; left: -6px; min-width: 32px; height: 32px; padding: 0 7px; border-radius: 999px; background: var(--red); color: #fff; border: 3px solid #fff;
  font: 800 .95rem/26px var(--font-body); text-align: center; }
.cart-fab:not(.has-items) .cart-fab-count { display: none; }
.cart-fab-sum { position: absolute; left: 50%; bottom: -12px; transform: translateX(-50%); white-space: nowrap; background: var(--copper-dark); color: #fff; border-radius: 999px; padding: 2px 10px; font: 800 .8rem/1.5 var(--font-body); }
.cart-fab-sum[hidden] { display: none; }
.cart-fab.bump { animation: cart-bump .45s ease; }
@keyframes cart-bump { 0%, 100% { transform: none; } 30% { transform: scale(1.14) rotate(-6deg); } 60% { transform: scale(.96) rotate(3deg); } }
.skip-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.site-footer { padding-bottom: 96px; } /* a lebegő gomb ne takarja a lábléc alját */

@media (max-width: 640px) {
  .cart-fab { width: 76px; height: 76px; right: 14px; bottom: 18px; }
  /* mobilon alulról felcsúszó panel */
  .cart { inset: auto 0 0 0; width: 100%; max-width: none; max-height: 92dvh; border-radius: 24px 24px 0 0; border-width: 3px 0 0; transform-origin: bottom center; }
  .cart[open] { animation-name: cart-sheet; }
  @keyframes cart-sheet { from { transform: translateY(100%); } to { transform: none; } }
}
@media (prefers-reduced-motion: reduce) { .cart[open], .cart-fab.bump { animation: none; } .cart-fab { transition: none; } }
@media print { .cart-fab { display: none !important; } }

/* mini kosár sorai (felugró ablak) */
.minicart { width: min(420px, calc(100vw - 32px)); }
.mini-lines, .cart-items { list-style: none; margin: 0; padding: 0; }
.mini-lines li { display: grid; grid-template-columns: 1fr auto auto; grid-template-areas: "name name rm" "qty sum sum"; align-items: center; gap: .35rem .75rem; padding: .65rem 0; border-bottom: 1px solid #F1E4D8; }
.mini-lines li:last-child { border-bottom: 0; }
.mini-name { grid-area: name; font-weight: 700; line-height: 1.3; }
.mini-name small { font-weight: 400; color: var(--ink-soft); }
.mini-unit { display: block; font-size: .8rem; }
.mini-lines .qty { grid-area: qty; justify-self: start; }
.mini-lines .line-sum { grid-area: sum; justify-self: end; }
.mini-lines .line-remove { grid-area: rm; }
.mini-empty { display: block !important; color: var(--ink-soft); padding: 1rem 0; text-align: center; }
.qty-sm button { width: 40px; height: 40px; font-size: 1.15rem; }
.qty-sm button:disabled { opacity: .35; cursor: not-allowed; }
.line-sum { font-weight: 800; color: var(--copper-dark); white-space: nowrap; font-variant-numeric: tabular-nums; }
.line-remove { width: 36px; height: 36px; min-width: 36px; border: 0; border-radius: 50%; background: transparent; color: var(--ink-soft); font-size: 1.4rem; line-height: 1; cursor: pointer; position: relative; }
.line-remove::after { content: ""; position: absolute; inset: -4px; } /* 44 px érintési felület */
.line-remove:hover { background: #F6E3DC; color: var(--red); }
.mini-actions { display: flex; flex-direction: column; gap: .6rem; position: sticky; bottom: -1.4rem; background: #fff; padding: .75rem 0 1.4rem; margin-bottom: -1.4rem; border-top: 2px dotted var(--leaf); }
.btn-soft { border-color: var(--line); color: var(--copper-dark); background: #fff; }
.btn-soft:hover { border-color: var(--red); color: var(--red); }
.btn.is-disabled { opacity: .45; pointer-events: auto; cursor: not-allowed; }
.header-cart[aria-current=page] { background: var(--red-dark); border-color: var(--red-dark); }

/* kosároldal (/kosar) */
.checkout-page { padding-top: 1.5rem; padding-bottom: 4rem; }
.checkout-page h1 { font-size: clamp(2rem, 4vw, 3rem); }
.back { margin: 0 0 1rem; font-weight: 700; }
.back a { text-decoration: none; }
.notice { background: var(--warn-bg); color: var(--warn-ink); border-radius: 14px; padding: .8rem 1.1rem; font-weight: 700; }
.checkout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 2rem; align-items: start; }
.checkout-box { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 1.4rem; display: flex; flex-direction: column; gap: 1rem; }
.checkout-box h2 { font-size: 1.6rem; margin: 0; padding-bottom: .6rem; border-bottom: 2px dotted var(--leaf); }
.checkout-items { position: sticky; top: 1rem; }
.cart-items li { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto 6.5rem 36px; align-items: center; gap: .75rem; padding: .7rem 0; border-bottom: 1px solid #F1E4D8; }
.cart-items .line-sum { text-align: right; }
.item-img { width: 52px; height: 52px; border-radius: 12px; background: var(--cat-bg, #F3DCCB); }
.item-name { display: flex; flex-direction: column; line-height: 1.3; }
.item-name small { color: var(--ink-soft); font-size: .85rem; }
.cart-empty { text-align: center; padding: 1.5rem 0; }
.cart-empty p { font-size: 1.1rem; color: var(--ink-soft); }
.checkout-form form label:first-of-type { margin-top: 0; }
/* GLS csomagpont-választó */
.field-label { font-weight: 700; font-size: .875rem; margin: .6rem 0 .4rem; }
.gls-picked { display: flex; flex-direction: column; gap: .1rem; border: 2px solid var(--leaf); background: #F3F7EA; border-radius: 12px; padding: .7rem .9rem; margin-bottom: .6rem; }
.gls-picked strong { font-size: 1rem; }
.gls-picked span:last-child { font-size: .9rem; color: var(--ink-soft); }
.gls-type { align-self: flex-start; font-size: .72rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--olive); background: var(--sage); border-radius: 999px; padding: 1px 8px; margin-bottom: .2rem; }
.gls-open { gap: .5rem; }
.gls-hint { margin: .4rem 0 0; }
@media (max-width: 860px) {
  .checkout { grid-template-columns: 1fr; }
  .checkout-items { position: static; }
}
@media (max-width: 480px) {
  .cart-items li { grid-template-columns: 44px minmax(0, 1fr) auto; grid-template-areas: "img name rm" "img qty sum"; }
  .cart-items .item-img { grid-area: img; width: 44px; height: 44px; align-self: start; }
  .cart-items .item-name { grid-area: name; }
  .cart-items .qty { grid-area: qty; justify-self: start; }
  .cart-items .line-sum { grid-area: sum; }
  .cart-items .line-remove { grid-area: rm; }
}
.cart-total { display: flex; justify-content: space-between; padding-top: .6rem; border-top: 1px solid var(--line); font-size: 1.05rem; }
.home-progress { background: var(--cream); border-radius: 14px; padding: .75rem .9rem; font-size: .9rem; font-weight: 700; display: flex; flex-direction: column; gap: .5rem; }
.home-progress .bar { height: 8px; border-radius: 999px; background: var(--line); overflow: hidden; }
.home-progress .bar > div { height: 100%; width: 0; background: var(--copper); transition: width .2s; }
form fieldset { border: 0; margin: 0 0 .5rem; padding: 0; display: flex; flex-direction: column; gap: .5rem; }
form legend { font-weight: 800; color: var(--copper-dark); margin-bottom: .5rem; }
form label { display: block; font-weight: 700; font-size: .875rem; margin: .6rem 0 .25rem; }
form input:not([type=radio]):not([type=checkbox]), form select, form textarea { width: 100%; min-height: 44px; border: 1px solid #D9BBA6; border-radius: 10px; padding: .5rem .75rem; font: inherit; background: #fff; }
.radio-card { display: flex !important; gap: .6rem; align-items: flex-start; padding: .75rem; border: 1px solid #D9BBA6; border-radius: 12px; margin: 0 !important; cursor: pointer; font-size: 1rem !important; }
.radio-card:has(input:checked) { border: 2px solid var(--copper); }
.radio-card:has(input:disabled) { opacity: .6; cursor: not-allowed; }
.radio-card small { display: block; font-weight: 400; color: var(--ink-soft); }
.check { display: flex !important; gap: .6rem; align-items: flex-start; font-weight: 400 !important; }
.form-errors { background: #FCE4E0; color: #7A1F12; border-radius: 10px; padding: .6rem .9rem; font-size: .9rem; }
.form-errors ul { margin: 0; padding-left: 1.1rem; }
.order-success { background: var(--ok-bg); border-radius: 14px; padding: 1rem 1.2rem; }

/* infó blokkok */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.25rem; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.about { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 3rem; align-items: center; padding-top: 4rem; padding-bottom: 4rem; }
.about-photo { min-height: 380px; border-radius: 28px; background: var(--honey); outline: 2px dotted var(--leaf); outline-offset: 10px; }
details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 1rem 1.25rem; margin-bottom: .75rem; }
summary { font-weight: 800; cursor: pointer; }
section[id] { scroll-margin-top: 7rem; } /* a ragadós fejléc ne takarja a címet */
#atvetel, #gyik { padding-top: 3rem; padding-bottom: 3rem; }
/* „Átvétel és szállítás”: zsályazöld sáv olívazöld címmel */
#atvetel { background: var(--sage); border-radius: var(--radius); margin-top: 1rem; }
#atvetel > h2 { color: var(--olive); }
#atvetel .card { border-color: #B9C994; }
/* „A hét ajánlata” sáv (ha bekerül az oldalra): <section class="band-wheat"> */
.band-wheat { background: var(--wheat); border-radius: var(--radius); }
.band-wheat h2 { color: var(--copper-dark); }

.site-footer { background: var(--copper-dark); color: #F7E4D6; margin-top: 3rem; }
/* díszcsík a lábléc felett a logó három színéből */
.site-footer::before { content: ""; display: block; height: 8px; background: linear-gradient(90deg, var(--red) 0 33.34%, var(--honey) 33.34% 66.67%, var(--leaf) 66.67% 100%); }
.site-footer a { color: #F3D3BF; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2rem; padding-top: 3rem; padding-bottom: 3rem; font-size: .95rem; }
.footer-brand { font-family: var(--font-head); font-size: 1.6rem; color: #FFF8F0; }

/* ===================== admin (csak a /admin/ oldalon, body.admin) ===================== */
.admin { font-size: 15px; --ok: #2F5D3A; --bad: #9B2C1C; --bad-bg: #FBE3E0; --dirty: #FFF0C2; --new: #EAF4EA; }
.admin h1 { font-size: 1.7rem; margin: 0 0 .2rem; }
.admin h2 { font-size: 1.35rem; margin: 0; }
.admin .login { max-width: 380px; margin: 4rem auto; }
.admin .login .btn { margin-top: 1rem; width: 100%; }
.admin .btn-sm { min-height: 44px; padding: 0 1rem; font-size: .9rem; font-weight: 700; }
.admin .btn-ghost { border-color: transparent; background: transparent; text-decoration: underline; text-underline-offset: 3px; padding: 0 .6rem; }
.admin .btn-ghost:hover { background: var(--cream); }
.admin .btn-ghost.danger { color: var(--bad); }
.admin input, .admin select, .admin textarea { font: inherit; color: var(--ink); }
.admin input:not([type=checkbox]):not([type=file]), .admin select, .admin textarea { min-height: 44px; border: 1px solid #D9BBA6; border-radius: 8px; padding: .35rem .6rem; background: #fff; width: 100%; }
.admin input[type=checkbox] { width: 22px; height: 22px; accent-color: var(--copper); }
.admin .num { text-align: right; font-variant-numeric: tabular-nums; }
.admin .muted { color: var(--ink-soft); }
.admin code { font-size: .85rem; background: var(--cream); padding: .15rem .4rem; border-radius: 6px; }
.admin [hidden] { display: none !important; }
.adm-empty { padding: 1.5rem; color: var(--ink-soft); text-align: center; margin: 0; }

/* fejléc + fülek */
.adm-top { position: sticky; top: 0; z-index: 20; background: var(--copper-dark); color: #FFF8F0; }
.adm-top-in, .adm-tabs { max-width: 1500px; margin: 0 auto; padding: 0 16px; display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; }
.adm-top-in { padding-top: .6rem; padding-bottom: .6rem; }
.adm-brand { font-family: var(--font-head); font-size: 1.25rem; color: #FFF8F0; text-decoration: none; margin-right: auto; }
.adm-brand:hover { color: #fff; }
.adm-brand span { font-family: var(--font-body); font-size: .75rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; background: var(--rose); color: var(--ink); border-radius: 999px; padding: .15rem .55rem; margin-left: .35rem; vertical-align: middle; }
.adm-round { display: flex; align-items: center; gap: .5rem; font-weight: 700; font-size: .85rem; }
.admin .adm-round select { width: auto; min-width: 16rem; }
.adm-top .btn { color: #FFF8F0; border-color: #FFF8F0; }
.adm-tabs { gap: .25rem; overflow-x: auto; flex-wrap: nowrap; }
.adm-tabs button { min-height: 46px; padding: 0 1.1rem; border: 0; background: transparent; color: #F3DCCB; font: 700 .95rem var(--font-body); border-radius: 10px 10px 0 0; cursor: pointer; white-space: nowrap; }
.adm-tabs button:hover { color: #fff; background: rgba(255,255,255,.08); }
.adm-tabs button[aria-selected=true] { background: var(--cream); color: var(--copper-dark); }

/* tartalom */
.adm-main { max-width: 1500px; margin: 0 auto; padding: 1.25rem 16px 6rem; }
.adm-toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1rem; margin-bottom: 1rem; }
.adm-toolbar p { margin: 0; }
.adm-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.adm-filters { display: flex; flex-wrap: wrap; gap: .75rem; align-items: flex-end; margin-bottom: 1rem; }
.adm-filters label { display: grid; gap: .2rem; font-size: .8rem; font-weight: 700; color: var(--ink-soft); min-width: 11rem; }
.adm-filters label:first-child { flex: 1 1 16rem; max-width: 26rem; }
.adm-chip { display: inline-flex; align-items: center; gap: .5rem; background: var(--dirty); border-radius: 999px; padding: .4rem .5rem .4rem .9rem; font-weight: 700; font-size: .85rem; }
.adm-chip a { text-decoration: none; font-size: 1.2rem; line-height: 1; padding: .2rem .5rem; }
.adm-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.adm-scroll { overflow-x: auto; }
.adm-count { padding: .5rem 1rem; margin: 0; }
.adm-bulk { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; background: var(--dirty); border-radius: 12px; padding: .5rem 1rem; margin-bottom: 1rem; }
.adm-bulk label { display: flex; align-items: center; gap: .5rem; font-weight: 700; }
.admin .adm-bulk select { width: auto; }

/* táblázatok */
.adm-table { width: 100%; border-collapse: collapse; }
.adm-table th, .adm-table td { text-align: left; padding: .5rem .6rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.adm-table thead th { background: #F6E6D8; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--copper-dark); white-space: nowrap; }
.adm-table tbody tr:hover > td { background: #FFF5EC; }
.adm-table tfoot th, .adm-table tfoot td { border-bottom: 0; }
.adm-table .num { text-align: right; }
.adm-table .chk { width: 2.5rem; }
.adm-prod td.big { font-size: 1.25rem; font-weight: 800; color: var(--copper-dark); }
.adm-prod tfoot th { font-size: 1rem; border-top: 2px solid var(--copper-dark); }
.adm-orders td { font-size: .9rem; }
.adm-orders .note { margin-top: .3rem; color: var(--ink-soft); }
.adm-orders .note.admin { color: var(--copper-dark); }
.adm-orders tr.st-cancelled > td { opacity: .55; }
.adm-orders tr.st-cancelled > td:nth-last-child(-n+2) { opacity: 1; }
.admin .adm-status { min-width: 10.5rem; font-weight: 700; }

/* szerkeszthető rács */
.adm-grid td { padding: .3rem .35rem; vertical-align: middle; }
.adm-grid td.ro { white-space: nowrap; text-align: center; font-variant-numeric: tabular-nums; }
.adm-grid td.t-bool { text-align: center; }
.adm-grid td.t-int input { text-align: right; }
.admin .adm-grid td > input:not([type=checkbox]), .admin .adm-grid td > select { border-color: transparent; background: transparent; }
.admin .adm-grid td > input:not([type=checkbox]):hover, .admin .adm-grid td > select:hover { border-color: #D9BBA6; background: #fff; }
.admin .adm-grid input:focus, .admin .adm-grid select:focus, .admin .adm-grid textarea:focus { background: #fff; border-color: var(--copper); }
.adm-grid .w-name { min-width: 14rem; } .adm-grid .w-m { min-width: 9rem; } .adm-grid .w-s { min-width: 6.5rem; }
.adm-grid .w-num { min-width: 6.5rem; width: 7rem; } .adm-grid .w-xs { width: 5rem; min-width: 4.5rem; }
.adm-grid td.act { white-space: nowrap; text-align: right; }
.adm-grid .dirty, .adm-form .dirty { background: var(--dirty) !important; }
.adm-grid .dirty input, .adm-grid .dirty select { font-weight: 700; }
.adm-grid tr.is-new > td { background: var(--new); }
.adm-grid tr.is-off > td:not(.act), .adm-grid tr.is-off input:not([type=checkbox]) { color: #8D776A; }
.adm-grid tr.has-err > td { box-shadow: inset 0 2px 0 var(--bad); }
.adm-grid tr.detail > td { background: #FFF8F1; padding: .75rem 1rem 1rem; }
.err-row td { background: var(--bad-bg) !important; color: var(--bad); font-weight: 700; font-size: .9rem; }
.adm-grid .warn { color: var(--warn-ink); font-weight: 800; } .adm-grid .bad { color: var(--bad); font-weight: 800; }

/* űrlapmezők (részletek, rendelés ablak) */
.adm-form { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .75rem 1rem; }
.adm-field { display: grid; gap: .25rem; font-size: .85rem; font-weight: 700; color: var(--ink-soft); border-radius: 8px; align-content: start; }
.adm-field.wide { grid-column: 1 / -1; }
.adm-field > span { line-height: 1.3; }
.adm-rowbtns { display: flex; gap: .5rem; justify-content: flex-end; }

/* badge-ek */
.badge { display: inline-block; padding: .15rem .6rem; border-radius: 999px; font-size: .78rem; font-weight: 800; background: #EFE3D8; color: var(--ink); white-space: nowrap; }
.badge.rs-open, .badge.act-create { background: var(--ok-bg); color: var(--ok-ink); }
.badge.rs-upcoming, .badge.act-update { background: #E5ECF7; color: #24456F; }
.badge.rs-closed { background: #EEE; color: #555; }
.badge.act-delete, .badge.act-error { background: var(--bad-bg); color: var(--bad); }
.badge.src-csv { background: #E5ECF7; color: #24456F; }
.badge.src-revert { background: var(--warn-bg); color: var(--warn-ink); }
.badge.src-manual { background: #EFE3D8; color: var(--copper-dark); }

/* előzmények */
.adm-hist { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; margin-bottom: .75rem; overflow: hidden; }
.adm-hist > header { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; padding: .4rem 1rem; background: #F6E6D8; min-height: 44px; }
.adm-hist > header time { font-weight: 800; font-variant-numeric: tabular-nums; }
.adm-hist > header .btn { margin-left: auto; }
.adm-hist-item { padding: .5rem 1rem .75rem; border-top: 1px solid var(--line); }
.adm-hist-head { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; min-height: 44px; }
.adm-hist-head .btn { margin-left: auto; }
.adm-diff { border-collapse: collapse; font-size: .9rem; margin-top: .25rem; }
.adm-diff th { text-align: left; font-weight: 600; color: var(--ink-soft); padding: .15rem 1rem .15rem 0; white-space: nowrap; vertical-align: top; }
.adm-diff td { padding: .15rem .4rem; vertical-align: top; overflow-wrap: anywhere; }
.adm-diff .old { text-decoration: line-through; color: #8D776A; }
.adm-diff .new { font-weight: 700; }
.adm-diff .arr { color: var(--ink-soft); }

/* mentési sáv, értesítés */
.adm-savebar { position: fixed; left: 50%; bottom: 1rem; transform: translateX(-50%); z-index: 30; display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; background: var(--copper-dark); color: #FFF8F0; padding: .5rem .6rem .5rem 1.25rem; border-radius: 28px; box-shadow: 0 8px 30px rgba(59,42,32,.35); max-width: calc(100% - 32px); font-weight: 700; }
.adm-savebar[hidden] { display: none; }
.adm-savebar .btn { color: #FFF8F0; border-color: #FFF8F0; }
.adm-savebar .btn-primary { background: #FFF8F0; color: var(--copper-dark); }
.adm-toast { position: fixed; right: 1rem; top: 1rem; z-index: 50; max-width: min(460px, calc(100% - 32px)); padding: .8rem 1.1rem; border-radius: 12px; font-weight: 700; box-shadow: 0 8px 30px rgba(59,42,32,.25); background: var(--ok-bg); color: var(--ok-ink); }
.adm-toast.err { background: var(--bad-bg); color: var(--bad); }

/* párbeszédablakok */
.adm-dialog { border: 0; border-radius: 16px; padding: 0; width: min(860px, calc(100% - 32px)); max-height: calc(100vh - 32px); color: var(--ink); background: var(--surface); }
.adm-dialog-wide { width: min(1100px, calc(100% - 32px)); }
.adm-dialog::backdrop { background: rgba(59,42,32,.5); }
.adm-dialog form { display: flex; flex-direction: column; max-height: calc(100vh - 32px); }
.adm-dialog header, .adm-dialog footer { display: flex; align-items: center; gap: .75rem; padding: .75rem 1.25rem; background: #F6E6D8; }
.adm-dialog header h2 { margin-right: auto; }
.adm-dialog footer { justify-content: flex-end; flex-wrap: wrap; }
.adm-dialog footer .form-errors { margin: 0; flex: 1 1 100%; }
.adm-dialog-body { padding: 1rem 1.25rem; overflow-y: auto; }
.adm-dialog fieldset { border: 1px solid var(--line); border-radius: 12px; padding: .5rem 1rem 1rem; margin: 0 0 1rem; }
.adm-dialog legend { font-weight: 800; color: var(--copper-dark); padding: 0 .4rem; }
.adm-x { min-width: 44px; min-height: 44px; border: 0; background: transparent; font-size: 1.8rem; line-height: 1; cursor: pointer; color: var(--copper-dark); border-radius: 8px; }
.admin .adm-items .qty { width: 5.5rem; text-align: right; }
.admin .adm-additem select { max-width: 30rem; }
.adm-od-hist summary { cursor: pointer; font-weight: 700; min-height: 44px; display: flex; align-items: center; }
.adm-help { background: var(--cream); border-radius: 12px; padding: .25rem 1rem; margin-bottom: 1rem; font-size: .92rem; }
.adm-help ul { padding-left: 1.2rem; }
.adm-file { display: grid; gap: .4rem; font-weight: 700; margin-bottom: 1rem; }
.adm-sum { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: .75rem; }
.adm-sum .badge { font-size: .9rem; padding: .3rem .8rem; }
.adm-warn { background: var(--warn-bg); color: var(--warn-ink); border-radius: 10px; padding: .5rem .9rem; font-size: .9rem; }
.adm-imp td { font-size: .88rem; }
.adm-imp tr.has-err td { background: var(--bad-bg); }

@media (max-width: 700px) {
  .adm-round { width: 100%; } .admin .adm-round select { min-width: 0; flex: 1; }
  .adm-filters label { min-width: 0; flex: 1 1 100%; max-width: none; }
  .adm-orders thead { display: none; }
  .adm-orders tr { display: grid; grid-template-columns: auto 1fr; gap: .25rem .75rem; padding: .75rem; border-bottom: 1px solid var(--line); }
  .adm-orders td { border: 0; padding: 0; }
  .adm-orders td.chk { grid-row: span 6; }
  .adm-orders td.num { text-align: left; }
}

@media print {
  .topbar, .site-header, .test-banner { display: none !important; }
  body { background: #fff; }
  .adm-top, .adm-actions, .adm-filters, .adm-bulk, .adm-savebar, .adm-toast, .adm-orders .chk, .adm-orders td:last-child, .adm-orders th:last-child { display: none !important; }
  .admin { font-size: 11pt; }
  .adm-main { padding: 0; max-width: none; }
  .adm-card { border: 0; }
  .admin .adm-status { border: 0; appearance: none; padding: 0; min-height: 0; }
  .adm-table tr { break-inside: avoid; }
}
