/* webdonat mintaoldalak: közös alap. A helyek saját kinézete az oldalak <style> blokkjában van. */
@font-face { font-family: 'Figtree'; font-weight: 400 700; font-display: swap; src: url(/fonts/Figtree-normal-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+2000-206F, U+20AC; }
@font-face { font-family: 'Figtree'; font-weight: 400 700; font-display: swap; src: url(/fonts/Figtree-normal-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+1E00-1E9F; }
@font-face { font-family: 'Playfair Display'; font-style: normal; font-weight: 400 900; font-display: swap; src: url(/fonts/Playfair-normal-latin-ext.woff2) format('woff2'); 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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Playfair Display'; font-style: normal; font-weight: 400 900; font-display: swap; src: url(/fonts/Playfair-normal-latin.woff2) format('woff2'); 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: 'Playfair Display'; font-style: italic; font-weight: 400 900; font-display: swap; src: url(/fonts/Playfair-italic-latin-ext.woff2) format('woff2'); 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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Playfair Display'; font-style: italic; font-weight: 400 900; font-display: swap; src: url(/fonts/Playfair-italic-latin.woff2) format('woff2'); 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: 'Geist'; font-weight: 300 800; font-display: swap; src: url(/fonts/Geist-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+2000-206F, U+20AC; }
@font-face { font-family: 'Geist'; font-weight: 300 800; font-display: swap; src: url(/fonts/Geist-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+1E00-1E9F; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.55 var(--body, 'Figtree'), system-ui, sans-serif; -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--acc); outline-offset: 3px; border-radius: 6px; }
.in { width: min(100% - 40px, 1140px); margin-inline: auto; }
.serif { font-family: 'Playfair Display', Georgia, serif; }

/* webdonat-szalag */
.ribbon { position: relative; z-index: 20; background: #0A0A0A; color: #D9D9D9; font: 500 13px/1.4 'Geist', system-ui, sans-serif; text-align: center; padding: 8px 16px; }
.ribbon a { color: #4ADE9A; font-weight: 600; }

/* gombok */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 24px; border: 0; border-radius: 999px; background: var(--acc); color: var(--acc-ink); font-weight: 600; font-size: 16px; text-decoration: none; cursor: pointer; transition: transform .2s, filter .2s, background-color .2s; }
.btn:hover { transform: translateY(-1px); filter: brightness(1.06); }
.btn:active { transform: translateY(1px) scale(.98); }
.btn.alt { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px currentColor; }
.btn.sm { min-height: 42px; padding: 0 18px; font-size: 15px; }
.btn svg { width: 18px; height: 18px; fill: currentColor; }

/* nyitva / zárva */
.open { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: #DDEFE2; color: #1D6A3F; font-weight: 700; font-size: 14px; }
.open::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: #2FA866; box-shadow: 0 0 0 0 rgb(47 168 102 / .5); animation: ping 2s infinite; }
.open.closed { background: #F4E1DF; color: #8E2C22; }
.open.closed::before { background: #C9483B; animation: none; }
@keyframes ping { 70% { box-shadow: 0 0 0 7px rgb(47 168 102 / 0); } 100% { box-shadow: 0 0 0 0 rgb(47 168 102 / 0); } }
.hours li { display: flex; justify-content: space-between; padding: 11px 0; border-bottom: 1px solid var(--line); }
.hours li:last-child { border-bottom: 0; }
.hours li.today { font-weight: 700; color: var(--acc); }

/* mennyiségléptető */
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; }
.qty button { width: 38px; height: 38px; border: 0; background: none; font-size: 20px; line-height: 1; cursor: pointer; border-radius: 50%; }
.qty button:hover { background: color-mix(in srgb, var(--acc) 12%, transparent); }
.qty output { min-width: 26px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }

/* mezők */
.f { display: grid; gap: 6px; }
.f > span { font-size: 14px; font-weight: 600; color: var(--dim); }
.f input, .f select, .f textarea { width: 100%; min-height: 50px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--card); font-size: 16px; }
.f input:focus, .f select:focus, .f textarea:focus { outline: none; border-color: var(--acc); }

/* értesítés, mintaüzenet */
.toast { position: fixed; z-index: 50; left: 50%; bottom: calc(92px + env(safe-area-inset-bottom)); translate: -50% 20px; width: min(92vw, 440px); padding: 14px 18px; border-radius: 14px; background: #0D0D0B; color: #F3EFE4; font-size: 15px; line-height: 1.45; opacity: 0; pointer-events: none; transition: opacity .3s, translate .4s; box-shadow: 0 16px 40px rgb(0 0 0 / .3); }
.toast.show { opacity: 1; translate: -50% 0; }
.toast b { color: #4ADE9A; }

/* mobil alsó sáv */
.bottom { position: fixed; z-index: 30; inset: auto 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: var(--bar, var(--ink)); }
.bottom .btn { width: 100%; }
.bottom .btn.alt { color: var(--bar-ink, var(--bg)); }
body { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }

/* görgetésre beúszás (JS nélkül minden látszik) */
.js [data-r] { opacity: 0; transform: translateY(26px); transition: opacity .8s cubic-bezier(.22, 1, .36, 1), transform .8s cubic-bezier(.22, 1, .36, 1); transition-delay: calc(var(--d, 0) * 90ms); }
.js [data-r].vis { opacity: 1; transform: none; }

@media (min-width: 860px) {
  body { padding-bottom: 0; }
  .bottom { display: none; }
  .toast { bottom: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .js [data-r] { opacity: 1; transform: none; }
}
