/* ===== Horio Express – letisztult stilus (v1 alapokon) ===== */
:root {
  --green: #1f7a4d;
  --green-dark: #155c39;
  --green-light: #e6f3ec;
  --accent: #f4a300;
  --bg: #faf7f2;
  --card: #ffffff;
  --text: #222a25;
  --muted: #6f7a72;
  --line: #e8e4dc;
  --danger: #b3372f;
  --radius: 16px;
  --shadow: 0 2px 10px rgba(30, 50, 40, .07);
  --shadow-lg: 0 12px 40px rgba(30, 50, 40, .18);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: 'Sora', var(--font);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}
button { font: inherit; cursor: pointer; }
.muted { color: var(--muted); }

/* ---------- Fejlec ---------- */
.topbar {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  padding-top: env(safe-area-inset-top);
}
.topbar-inner {
  max-width: 1100px; margin: 0 auto; padding: 10px 16px;
  display: flex; align-items: center; justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--text); }
.brand-icon { font-size: 26px; }
.brand-name { font-size: 20px; font-weight: 500; letter-spacing: -.3px; }
.brand-name b { color: var(--green); font-weight: 800; }
.topbar-actions { display: flex; gap: 10px; align-items: center; }
.lang-seg { display: flex; background: rgba(30, 50, 40, .06); border-radius: 99px; padding: 3px; }
.lang-seg button {
  border: 0; background: transparent; border-radius: 99px;
  padding: 6px 12px; font-weight: 700; font-size: 12.5px; color: var(--muted);
  transition: all .18s ease;
}
.lang-seg button.on { background: #fff; color: var(--green-dark); box-shadow: var(--shadow); }
.profile-btn {
  position: relative; border: 1.5px solid var(--line); background: #fff;
  border-radius: 99px; width: 40px; height: 40px; font-size: 17px;
  transition: transform .15s ease, border-color .15s ease;
}
.profile-btn:hover { transform: translateY(-1px); border-color: var(--green); }
.auth-dot {
  position: absolute; top: -2px; right: -2px; width: 12px; height: 12px;
  background: var(--green); border: 2px solid #fff; border-radius: 99px;
}
.cart-btn {
  position: relative; border: 0; background: var(--green); color: #fff;
  border-radius: 99px; padding: 8px 16px; font-size: 18px;
  box-shadow: var(--shadow);
  transition: transform .15s ease;
}
.cart-btn:hover { transform: translateY(-1px); }
.cart-badge {
  position: absolute; top: -6px; right: -6px;
  background: var(--accent); color: #fff; font-size: 12px; font-weight: 800;
  min-width: 20px; height: 20px; line-height: 20px; border-radius: 99px; text-align: center;
}

/* ---------- Hero: retegzett zold hatter, premium reklamkartya ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(880px 480px at 88% -18%, rgba(120, 230, 170, .32), transparent 62%),
    radial-gradient(720px 460px at -12% 118%, rgba(6, 40, 24, .5), transparent 65%),
    linear-gradient(135deg, #17603d 0%, #1f7a4d 46%, #2c9a62 100%);
  color: #fff;
}
/* Finom pottyracs-textura, a jobb oldal fele erosodve */
.hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, .1) 1px, transparent 1.6px);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(115deg, transparent 25%, rgba(0, 0, 0, .9));
  mask-image: linear-gradient(115deg, transparent 25%, rgba(0, 0, 0, .9));
}
/* Lagy feny a reklamkartya mogott */
.hero::after {
  content: ''; position: absolute; top: -80px; right: -60px; width: 560px; height: 560px;
  border-radius: 50%; pointer-events: none; z-index: 0;
}
.hero::after { background: radial-gradient(circle, rgba(255, 255, 255, .13) 0%, transparent 65%); }

/* Hero-slider: az egesz hero lapozhato (1. dia = eredeti, 2. dia = adomany) */
.hero-slides { display: flex; transition: transform .45s cubic-bezier(.4,0,.2,1); }
.hero-slide { flex: 0 0 100%; min-width: 100%; position: relative; }
.hero-slide.hero-donate { display: flex; align-items: center; }
/* Lapozo pottyok a hero aljan */
.hero-nav {
  position: absolute; left: 0; right: 0; bottom: 10px; z-index: 3;
  display: flex; justify-content: center; gap: 8px; pointer-events: none;
}
.hero-nav button {
  pointer-events: auto; width: 8px; height: 8px; border-radius: 99px; border: 0; padding: 0;
  background: rgba(255, 255, 255, .45); transition: all .2s ease;
}
.hero-nav button.on { background: #fff; width: 22px; }

/* --- 2. dia: menhely-adomanyozas banner --- */
.hero-donate .hero-inner { width: 100%; }
.hd-top { display: grid; grid-template-columns: 1fr minmax(300px, 400px); gap: 32px; align-items: center; }
.hd-eyebrow { margin: 0 0 6px; font-size: 11.5px; font-weight: 800; letter-spacing: 1.4px; text-transform: uppercase; color: #ffd66e; }
.hd-copy h2 { font-family: var(--font-display); margin: 0 0 8px; font-size: clamp(23px, 3.4vw, 33px); line-height: 1.14; letter-spacing: -.7px; font-weight: 800; }
.hd-sub { margin: 0 0 14px; font-size: clamp(13.5px, 1.9vw, 15px); color: rgba(255,255,255,.9); line-height: 1.5; max-width: 520px; }
.hd-sub b { color: #fff; }
.hd-steps { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.hd-step {
  display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22);
  border-radius: 99px; padding: 6px 13px 6px 7px;
}
.hd-step b {
  display: grid; place-items: center; width: 19px; height: 19px; border-radius: 99px;
  background: #ffd66e; color: #5a3d00; font-size: 11px; font-weight: 800;
}
.hd-cta {
  border: 0; background: #fff; color: var(--green-dark); border-radius: 99px;
  padding: 12px 24px; font-size: 15px; font-weight: 800; cursor: pointer;
  box-shadow: 0 8px 22px rgba(8,40,24,.35); transition: transform .15s ease;
}
.hd-cta:hover { transform: translateY(-2px); }
/* Kepes bolt-design: allateledel kirakat */
.hd-card {
  position: relative; background: linear-gradient(160deg, #ffffff, #f1faf3);
  border-radius: 20px; padding: 16px; box-shadow: 0 20px 44px -14px rgba(8,40,24,.55);
}
.hd-card-badges { display: flex; gap: 8px; justify-content: center; margin-bottom: 12px; }
.hd-badge {
  display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 800;
  color: var(--green-dark); background: var(--green-light); border-radius: 99px; padding: 5px 11px;
}
.hd-shop {
  position: relative; background: #fff7e9; border: 1px solid #f0e2c8; border-radius: 14px;
  padding: 22px 16px 16px; overflow: hidden;
}
.hd-awning {
  position: absolute; top: 0; left: 0; right: 0; height: 14px;
  background: repeating-linear-gradient(90deg, var(--green) 0 18px, #fff 18px 36px);
  opacity: .9;
}
.hd-shelf {
  display: flex; justify-content: space-around; font-size: 30px;
  border-bottom: 3px solid #e6d4b0; padding: 6px 0 8px; margin-bottom: 8px;
}
.hd-door { text-align: center; font-size: 40px; line-height: 1; margin-top: 2px; }
.hd-card-tag { text-align: center; font-size: 12px; color: var(--muted); font-weight: 600; margin: 12px 0 2px; }

@media (max-width: 760px) {
  .hd-top { grid-template-columns: 1fr; gap: 16px; }
  .hd-card { display: none; }  /* mobilon a szoveg + CTA a lenyeg */
  .hd-sub { margin-bottom: 12px; }
}

/* --- Admin hero-diak: adminbol felvitt extra diak (Hero ful) ---
   A feltoltott foto a dia hattere (sotet atmenet a szoveg olvashatosagaert);
   a show_ads-os diakon a fo dia karusszelevel azonos reklamfelulet forog. */
.hero-slide.hs-custom { display: flex; align-items: center; }
.hs-custom .hero-inner { width: 100%; }
.hs-bg {
  position: absolute; inset: 0; z-index: 0;
  background-size: cover; background-position: center;
}
.hs-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(9, 42, 26, .88) 0%, rgba(9, 42, 26, .6) 48%, rgba(9, 42, 26, .26) 100%);
}
.hs-copy h2 {
  font-family: var(--font-display); margin: 0 0 10px;
  font-size: clamp(24px, 3.6vw, 36px); line-height: 1.12;
  letter-spacing: -1px; font-weight: 800;
  text-shadow: 0 2px 18px rgba(10, 45, 28, .35);
}
.hs-cta {
  display: inline-block; background: #fff; color: var(--green-dark);
  border-radius: 99px; padding: 12px 24px; font-size: 15px; font-weight: 800;
  text-decoration: none; box-shadow: 0 8px 22px rgba(8, 40, 24, .35);
  transition: transform .15s ease;
}
.hs-cta:hover { transform: translateY(-2px); }
/* Reklam-karusszel nelkuli dia: a szoveg kapja a teljes szelesseget */
.hero-top.hs-single { grid-template-columns: 1fr; }
/* Futar-utvonal dekoracio: a tartalomdobozhoz rogzitve (1100px, kozepen),
   igy a megallok mindig a szabad savokban ulnek; a szelein tulnyulo ut
   a hero overflow:hidden-jevel vagodik le. Csak szeles nezeten latszik. */
.hero-route {
  position: absolute; left: 50%; top: 0; transform: translateX(-50%);
  width: 1100px; height: 100%; overflow: visible;
  z-index: 0; pointer-events: none; display: none;
}
@media (min-width: 1120px) { .hero-route { display: block; } }
.hero-inner { position: relative; z-index: 1; max-width: 1100px; margin: 0 auto; padding: 28px 16px 22px; }
.hero-top { display: grid; grid-template-columns: 1fr minmax(320px, 410px); gap: 30px; align-items: center; }
.hero h1 {
  font-family: var(--font-display);
  margin: 0 0 10px; font-size: clamp(26px, 3.8vw, 38px);
  line-height: 1.1; letter-spacing: -1.2px; font-weight: 800;
  text-shadow: 0 2px 18px rgba(10, 45, 28, .25);
}
.hero h1 em { font-style: normal; color: #ffd66e; }
.hero p { margin: 0 0 16px; font-size: clamp(14px, 2vw, 15.5px); color: rgba(255, 255, 255, .87); max-width: 500px; line-height: 1.6; }
.hero-pills { display: flex; gap: 8px; flex-wrap: wrap; }
.pill {
  background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .25);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18);
  border-radius: 99px; padding: 7px 14px; font-size: 12.5px; font-weight: 600;
  white-space: nowrap;
}

/* Reklamfelulet: forgo szponzoralt kartyak (boltos-promociók) */
.hero-ads { position: relative; min-width: 0; }
.hero-ads-track {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, .35);
  box-shadow: 0 24px 48px -12px rgba(8, 40, 24, .5);
  user-select: none; -webkit-user-select: none;  /* egerrel huzva ne jelolodjon ki a szoveg */
}
.hero-ads-track::-webkit-scrollbar { display: none; }
.promo-card {
  flex: 0 0 100%; scroll-snap-align: start; scroll-snap-stop: always;
  display: flex; align-items: center; gap: 18px;
  background: linear-gradient(160deg, #ffffff 0%, #f4faf6 100%);
  color: var(--text); border: 0; cursor: pointer;
  padding: 20px 24px; min-height: 196px; text-align: left; text-decoration: none;
}
.promo-info { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.promo-badge {
  font-size: 10.5px; font-weight: 800; letter-spacing: .7px; text-transform: uppercase;
  color: #9a6b00; background: #fdf3dd; padding: 3px 10px; border-radius: 99px;
}
.promo-title { font-family: var(--font-display); font-size: 19px; font-weight: 800; line-height: 1.2; letter-spacing: -.4px; }
.promo-text { font-size: 13px; color: var(--muted); line-height: 1.5; }
.promo-cta {
  margin-top: 4px; background: var(--accent); color: #fff; border-radius: 99px;
  padding: 8px 18px; font-size: 13px; font-weight: 800;
  box-shadow: 0 4px 14px rgba(244, 163, 0, .38);
  transition: transform .15s ease;
}
.promo-card:hover .promo-cta { transform: translateY(-1px); }
/* A termek-vizual + ra-lapolt ar-matrica (nem noveli a kartya magassagat) */
.promo-visual { position: relative; flex-shrink: 0; display: grid; place-items: center; }
.promo-emoji {
  width: 96px; height: 96px; display: grid; place-items: center;
  font-size: 48px; background: var(--green-light); border-radius: 50%;
  box-shadow: inset 0 0 0 6px #fff, 0 6px 18px rgba(30, 50, 40, .14);
  animation: promo-float 5s ease-in-out infinite;
}
@keyframes promo-float { 50% { transform: translateY(-6px); } }
/* Feltoltott promofoto: emoji helyett a kep jelenik meg a kartyan */
.promo-photo {
  width: 128px; height: 104px; object-fit: cover;
  border-radius: 16px; box-shadow: 0 6px 18px rgba(30, 50, 40, .2);
}
/* Menő ar-matrica: elforgatott, gradiens ar-cimke a termeken (abszolut) */
.promo-price {
  position: absolute; left: -20px; bottom: 2px; z-index: 3;
  font-family: var(--font-display); font-weight: 800; line-height: 1;
  font-size: 19px; letter-spacing: -.5px; white-space: nowrap; color: #fff;
  background: linear-gradient(135deg, #ff8a3d 0%, #f4a300 100%);
  padding: 9px 14px; border-radius: 13px;
  box-shadow: 0 8px 18px rgba(150, 70, 0, .45), inset 0 0 0 2px rgba(255, 255, 255, .9);
  transform: rotate(-7deg);
}
.promo-card:hover .promo-price { transform: rotate(-7deg) scale(1.05); }
/* Ures hirdetesi hely: boltosokat hivogato uveg-kartya (partner portalra visz) */
.promo-card.slot {
  background: rgba(255, 255, 255, .08); color: #fff;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  outline: 1.5px dashed rgba(255, 255, 255, .45); outline-offset: -10px;
}
.promo-card.slot .promo-text { color: rgba(255, 255, 255, .85); }
.promo-card.slot .promo-cta { background: #fff; color: var(--green-dark); box-shadow: none; }
.promo-card.slot .promo-emoji { background: rgba(255, 255, 255, .16); box-shadow: none; animation: none; }
/* Swipe-utmutato kez: parszor vegigsopor a kartyan, aztan eltunik.
   Az elso felhasznaloi gorgetes/huzas is elrejti (app.js). */
.swipe-hint {
  position: absolute; z-index: 2; bottom: 16px; left: 50%;
  font-size: 32px; line-height: 1; pointer-events: none;
  filter: drop-shadow(0 3px 6px rgba(10, 40, 25, .35));
  opacity: 0;
  animation: swipe-hint 2.4s ease-in-out .8s 3;
}
@keyframes swipe-hint {
  0%   { opacity: 0; transform: translateX(46px) rotate(10deg); }
  18%  { opacity: 1; }
  72%  { opacity: 1; transform: translateX(-52px) rotate(-8deg); }
  100% { opacity: 0; transform: translateX(-74px) rotate(-8deg); }
}
.hero-ads-dots { display: flex; justify-content: center; gap: 6px; margin-top: 10px; }
.hero-ads-dots button {
  width: 7px; height: 7px; border-radius: 99px; border: 0; padding: 0;
  background: rgba(255, 255, 255, .4); transition: all .2s ease;
}
.hero-ads-dots button.on { background: #fff; width: 18px; }

@media (max-width: 760px) {
  .hero-top { grid-template-columns: 1fr; gap: 16px; }
  .hero-inner { padding-top: 24px; }
  .promo-card { min-height: 148px; padding: 14px 16px; }
  .promo-title { font-size: 16px; }
  .promo-emoji { width: 68px; height: 68px; font-size: 34px; }
  .promo-photo { width: 92px; height: 76px; }
  .promo-price { font-size: 16px; padding: 7px 11px; left: -14px; }
}

/* Boltkartyak a hero aljan (kompakt, hogy a promonak maradjon hely) */
.hero-shops-label {
  margin: 14px 0 0; font-size: 11px; font-weight: 800;
  letter-spacing: 1.4px; text-transform: uppercase; color: rgba(255, 255, 255, .65);
}
.hero-shops {
  display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none;
  margin-top: 7px; padding: 4px 2px 5px;
}
.hero-shops::-webkit-scrollbar { display: none; }
.shop-card {
  flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; gap: 4px;
  background: var(--card); color: var(--text);
  border: 2px solid transparent; border-radius: 14px;
  box-shadow: 0 4px 14px rgba(10, 40, 25, .22);
  padding: 9px 10px 8px; min-width: 106px; max-width: 150px;
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.shop-card:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(10, 40, 25, .3); }
.shop-card.on { border-color: var(--accent); box-shadow: 0 8px 22px rgba(10, 40, 25, .3); }
.shop-avatar {
  width: 36px; height: 36px; display: grid; place-items: center; font-size: 19px;
  background: var(--green-light); border-radius: 50%;
}
.shop-card.on .shop-avatar { background: var(--accent); }
.shop-name { font-size: 11.5px; font-weight: 700; text-align: center; line-height: 1.25; }
.shop-village { font-size: 10px; color: var(--muted); font-weight: 600; }

/* ---------- Demo sav ---------- */
.demo-banner {
  background: #fff3cd; color: #7a5c00; text-align: center;
  padding: 8px 16px; font-size: 13.5px; font-weight: 600;
}

/* ---------- Szurok ---------- */
.container { max-width: 1100px; margin: 0 auto; padding: 20px 16px 60px; }
.filters { display: flex; gap: 10px; margin-bottom: 14px; }
.search {
  flex: 1; padding: 12px 16px; border: 1.5px solid var(--line); border-radius: 12px;
  font: inherit; background: #fff; min-width: 0;
}
.search:focus { outline: 2px solid var(--green); border-color: transparent; }
.cat-chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 10px; scrollbar-width: none; }
.cat-chips::-webkit-scrollbar { display: none; }
.chip {
  border: 1.5px solid var(--line); background: #fff; border-radius: 99px;
  padding: 8px 15px; font-size: 14px; font-weight: 600; white-space: nowrap; color: var(--text);
  transition: border-color .15s ease;
}
.chip:hover { border-color: var(--green); }
.chip.on { background: var(--green); border-color: var(--green); color: #fff; }

/* ---------- Termek racs ---------- */
.product-grid {
  display: grid; gap: 14px; margin-top: 10px;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
}
.p-card {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 14px; display: flex; flex-direction: column; gap: 6px;
  transition: transform .15s ease, box-shadow .15s ease;
}
.p-card:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(30,50,40,.12); }
.p-card { cursor: pointer; }
.p-emoji { font-size: 58px; line-height: 1; text-align: center; padding: 14px 0 8px; }
/* A foto teljes egeszeben latszik (nincs levagas), a kartya merete fix marad */
.p-photo {
  margin: -14px -14px 4px;
  background: var(--bg);
  border-radius: var(--radius) var(--radius) 0 0;
}
.p-photo img {
  width: 100%; height: 130px; object-fit: contain; display: block;
}
.p-name { font-weight: 700; font-size: 15px; line-height: 1.25; }
.p-shop { font-size: 12px; color: var(--muted); }
.p-desc { font-size: 12.5px; color: var(--muted); min-height: 16px; }
.p-inbasket { font-size: 11.5px; font-weight: 700; color: var(--green-dark); background: var(--green-light); border-radius: 8px; padding: 2px 8px; margin-top: 2px; align-self: flex-start; }
.p-bottom { display: flex; align-items: center; justify-content: space-between; margin-top: auto; gap: 6px; }
.p-price { font-weight: 800; font-size: 16px; color: var(--green-dark); }
.p-unit { font-size: 11.5px; color: var(--muted); font-weight: 500; }
.add-btn {
  border: 0; background: var(--green); color: #fff; border-radius: 10px;
  width: 36px; height: 36px; font-size: 20px; font-weight: 700; flex-shrink: 0;
  transition: transform .12s ease;
}
.add-btn:hover { transform: scale(1.05); }
.add-btn:active { transform: scale(.92); }
.qty-stepper { display: flex; align-items: center; gap: 8px; }
.qty-stepper button {
  border: 1.5px solid var(--green); background: #fff; color: var(--green);
  border-radius: 10px; width: 32px; height: 32px; font-size: 17px; font-weight: 800;
}
.qty-stepper button:hover { background: var(--green-light); }
.qty-stepper .q { font-weight: 800; min-width: 18px; text-align: center; }
.empty-msg { text-align: center; color: var(--muted); padding: 40px 0; }

/* Hirdetesi sav a termeksorok kozott: teljes szelessegben, sorhatarra
   beszurva (nincs res a termekkartyaknal); 2 bannerszeru box egymas mellett,
   csak aktivalt 'grid' promoval jelenik meg */
.grid-ads { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 8px 0; }
.grid-ads.single { grid-template-columns: minmax(0, 560px); justify-content: center; }
.gp-card {
  position: relative; overflow: hidden;
  display: flex; align-items: stretch; text-align: left;
  border: 0; border-radius: 18px; cursor: pointer; color: #fff; font: inherit;
  min-height: 132px;
  box-shadow: 0 10px 26px -10px rgba(8, 40, 24, .45);
  transition: transform .15s ease, box-shadow .15s ease;
}
.gp-card:hover { transform: translateY(-3px); box-shadow: 0 16px 32px -12px rgba(8, 40, 24, .5); }
/* Ket valtakozo, meleg-hideg szinvilag, hogy a par elenk legyen */
.gp-card:nth-child(odd)  { background: linear-gradient(120deg, #17603d 0%, #2ea86b 100%); }
.gp-card:nth-child(even) { background: linear-gradient(120deg, #b26a06 0%, #f0a81f 100%); }
/* Kepblokk / emoji a bal oldalon, teljes magassagban */
.gp-media {
  position: relative; flex-shrink: 0; width: 132px;
  display: grid; place-items: center; overflow: hidden;
  background: rgba(255, 255, 255, .14);
}
.gp-media img { width: 100%; height: 100%; object-fit: cover; }
.gp-media::after {
  content: ''; position: absolute; top: 0; right: -1px; width: 34px; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 0, 0, .06));
}
.gp-emoji { font-size: 52px; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .2)); }
.gp-body {
  flex: 1; min-width: 0; padding: 16px 18px;
  display: flex; flex-direction: column; justify-content: center; gap: 6px;
}
.gp-body .promo-badge {
  align-self: flex-start; color: #fff; background: rgba(255, 255, 255, .24);
}
.gp-title { font-family: var(--font-display); font-weight: 800; font-size: 17px; line-height: 1.2; letter-spacing: -.3px; }
.gp-text {
  font-size: 12.5px; color: rgba(255, 255, 255, .9); line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.gp-foot { margin-top: 4px; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.gp-price {
  font-family: var(--font-display); font-weight: 800; line-height: 1;
  font-size: 22px; color: #fff; letter-spacing: -.5px;
}
.gp-cta { font-size: 12.5px; font-weight: 800; color: #fff; opacity: .95; }
@media (max-width: 640px) {
  .grid-ads { grid-template-columns: 1fr; gap: 12px; }
  .grid-ads.single { grid-template-columns: 1fr; }
  .gp-card { min-height: 108px; }
  .gp-media { width: 96px; }
  .gp-emoji { font-size: 40px; }
}

/* ---------- Lablec ---------- */
.footer { border-top: 1px solid var(--line); background: #fff; }
.footer-inner { max-width: 1100px; margin: 0 auto; padding: 26px 16px; text-align: center; font-size: 14px; }
.btn-outline {
  border: 1.5px solid var(--green); color: var(--green); background: #fff;
  border-radius: 12px; padding: 10px 18px; font-weight: 700; margin-top: 8px;
}
.btn-outline:hover { background: var(--green-light); }

/* ---------- Mobil also kosarsav ---------- */
.mobile-cart-bar {
  position: fixed; left: 14px; right: 14px;
  bottom: calc(14px + env(safe-area-inset-bottom));
  z-index: 45;
  display: none;
  align-items: center; justify-content: space-between; gap: 10px;
  border: 0; border-radius: 14px; padding: 14px 18px;
  background: var(--green); color: #fff; font-weight: 700; font-size: 15px;
  box-shadow: var(--shadow-lg);
}
.mcb-left { display: flex; align-items: center; gap: 7px; }
@media (max-width: 719px) {
  .mobile-cart-bar:not([hidden]) { display: flex; }
  .container { padding-bottom: 100px; }
}

/* ---------- Kosar panel ---------- */
.overlay {
  position: fixed; inset: 0; background: rgba(20, 30, 24, .45); z-index: 50;
  opacity: 0; transition: opacity .2s;
}
.overlay.show { opacity: 1; }
.cart-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 60;
  width: min(420px, 100vw); background: var(--bg);
  transform: translateX(105%); transition: transform .25s ease;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-lg);
  padding-top: env(safe-area-inset-top);
}
.cart-drawer.open { transform: translateX(0); }
.drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 18px; border-bottom: 1px solid var(--line); background: #fff;
}
.drawer-head h2 { margin: 0; font-size: 19px; }
.close-btn { border: 0; background: var(--green-light); color: var(--green-dark); border-radius: 99px; width: 34px; height: 34px; font-size: 15px; }
.drawer-body { flex: 1; overflow-y: auto; padding: 14px 18px; }
.cart-shop-head { font-size: 12.5px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; margin: 14px 0 6px; }
.cart-shop-head:first-child { margin-top: 0; }
.cart-shop-head.donate-head { color: #9a6b00; }
.cart-shop-head .ch-free { color: var(--green-dark); background: var(--green-light); border-radius: 99px; padding: 1px 8px; font-size: 11px; }
.cart-item {
  background: #fff; border-radius: 12px; box-shadow: var(--shadow);
  padding: 10px 12px; display: flex; align-items: center; gap: 10px; margin-bottom: 8px;
}
.ci-emoji { font-size: 26px; }
.ci-info { flex: 1; min-width: 0; }
.ci-name { font-weight: 700; font-size: 14px; }
.ci-price { font-size: 12.5px; color: var(--muted); }
.cart-empty { text-align: center; color: var(--muted); padding: 50px 10px; font-size: 15px; }
.drawer-foot { border-top: 1px solid var(--line); background: #fff; padding: 14px 18px calc(14px + env(safe-area-inset-bottom)); }
.total-row { display: flex; justify-content: space-between; font-size: 14.5px; margin-bottom: 6px; }
.total-row.grand { font-size: 17px; font-weight: 800; }
.min-warn { color: var(--danger); font-size: 13px; font-weight: 600; margin: 6px 0; }
.free-hint { color: var(--green-dark); font-size: 13px; font-weight: 600; margin: 6px 0 4px; }
.free-progress {
  height: 6px; background: var(--green-light); border-radius: 99px; overflow: hidden; margin: 4px 0 10px;
}
.free-progress > div {
  height: 100%; border-radius: 99px; background: var(--green);
  transition: width .3s ease;
}

/* ---------- Gombok ---------- */
.btn-primary {
  border: 0; background: var(--accent); color: #fff;
  border-radius: 12px; padding: 14px 20px; font-weight: 800; font-size: 16px;
  box-shadow: 0 4px 14px rgba(244, 163, 0, .35);
  transition: transform .15s ease;
}
.btn-primary:hover { transform: translateY(-1px); }
.btn-primary:disabled { opacity: .5; box-shadow: none; cursor: not-allowed; transform: none; }
.btn-block { width: 100%; margin-top: 8px; }

/* ---------- Modalok ---------- */
.modal {
  position: fixed; inset: 0; z-index: 70; background: rgba(20, 30, 24, .5);
  display: flex; align-items: flex-end; justify-content: center;
}
.modal-card {
  background: var(--bg); border-radius: 20px 20px 0 0; width: min(520px, 100vw);
  max-height: 92vh; overflow-y: auto; padding: 20px 20px calc(20px + env(safe-area-inset-bottom));
  animation: slideUp .25s ease;
}
@keyframes slideUp { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (min-width: 640px) {
  .modal { align-items: center; }
  .modal-card { border-radius: 20px; }
}
.modal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.modal-head h2 { margin: 0; font-size: 20px; }
#checkoutForm label { display: block; font-size: 13px; font-weight: 700; color: var(--muted); margin: 12px 0 5px; }
#checkoutForm input, #checkoutForm select, #checkoutForm textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px;
  font: inherit; background: #fff;
}
#checkoutForm input:focus, #checkoutForm select:focus, #checkoutForm textarea:focus { outline: 2px solid var(--green); border-color: transparent; }
.pay-row { display: flex; gap: 10px; }
.pay-opt {
  flex: 1; display: flex !important; align-items: center; gap: 8px;
  background: #fff; border: 1.5px solid var(--line); border-radius: 12px;
  padding: 12px 14px; font-weight: 700 !important; color: var(--text) !important;
  margin: 0 !important; font-size: 14.5px !important;
}
.pay-opt:has(input:checked) { border-color: var(--green); background: var(--green-light); }
.pay-opt input { width: auto !important; accent-color: var(--green); }
.totals { background: #fff; border-radius: 12px; padding: 12px 14px; margin-top: 16px; }
.form-error { color: var(--danger); font-weight: 700; font-size: 14px; }

/* ---------- Profil ---------- */
.pform label { display: block; font-size: 13px; font-weight: 700; color: var(--muted); margin: 12px 0 5px; }
.pform input, .pform select {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px;
  font: inherit; background: #fff;
}
.pform input:focus, .pform select:focus { outline: 2px solid var(--green); border-color: transparent; }
.auth-switch { text-align: center; margin: 14px 0 2px; font-size: 14px; }
.auth-switch a { color: var(--green-dark); font-weight: 700; cursor: pointer; text-decoration: underline; }
.profile-hello { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 4px; }
.profile-hello .who { font-weight: 800; font-size: 16px; }
.link-btn { border: 0; background: none; color: var(--muted); font-size: 13px; font-weight: 700; text-decoration: underline; }
.profile-sect { font-size: 13px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; margin: 20px 0 8px; }
.order-hist { background: #fff; border-radius: 12px; box-shadow: var(--shadow); padding: 11px 14px; margin-bottom: 8px; }
.oh-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.oh-code { font-weight: 800; }
.oh-items { font-size: 12.5px; color: var(--muted); margin-top: 3px; line-height: 1.5; }
.oh-meta { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; font-size: 13px; }
.badge-st { padding: 3px 10px; border-radius: 99px; font-size: 12px; font-weight: 700; }
.badge-st.new { background: #fff3cd; color: #7a5c00; }
.badge-st.accepted { background: #d7ecff; color: #0b5394; }
.badge-st.delivering { background: #e2d9f7; color: #4a2f8f; }
.badge-st.delivered { background: #d9f2df; color: var(--green-dark); }
.badge-st.cancelled { background: #f8d9d6; color: var(--danger); }

/* ---------- Termek reszletei modal ---------- */
.pd-main {
  width: 100%; height: 300px; object-fit: contain; display: block;
  background: var(--bg); border-radius: 14px;
}
.pd-emoji { font-size: 76px; text-align: center; padding: 24px 0 10px; }
.pd-thumbs { display: flex; gap: 8px; margin-top: 8px; overflow-x: auto; padding-bottom: 2px; }
.pd-thumbs img {
  width: 58px; height: 58px; object-fit: contain; background: var(--bg); border-radius: 10px;
  border: 2px solid transparent; cursor: pointer; flex-shrink: 0;
}
.pd-thumbs img.on { border-color: var(--green); }
.pd-desc { color: var(--muted); font-size: 14px; line-height: 1.55; margin: 6px 0; }
.pd-allergens { display: flex; flex-wrap: wrap; gap: 8px; }
.pd-allergen {
  background: #fff3cd; color: #7a5c00; font-weight: 700; font-size: 13px;
  padding: 5px 12px; border-radius: 99px;
}
.pd-bottom {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 16px; background: #fff; border-radius: 12px; padding: 12px 14px;
  box-shadow: var(--shadow);
}

/* ---------- Siker modal ---------- */
.success-card { text-align: center; }
.success-emoji { font-size: 54px; }
.order-code { font-size: 24px; font-weight: 800; color: var(--green-dark); letter-spacing: 1px; margin: 6px 0; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  background: var(--text); color: #fff; padding: 11px 20px; border-radius: 99px;
  font-size: 14px; font-weight: 600; z-index: 80; box-shadow: var(--shadow-lg);
  animation: slideUp .2s ease;
}

/* ---------- Reszponziv ---------- */
@media (max-width: 520px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .shop-card { min-width: 96px; }
}

@media (prefers-reduced-motion: reduce) {
  .modal-card, .toast, .promo-emoji, .swipe-hint { animation: none; }
  .hero-route { display: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------- Hely-sav (valasztott falu) ---------- */
.loc-bar {
  position: sticky; top: calc(60px + env(safe-area-inset-top)); z-index: 39;
  display: flex; width: 100%; align-items: center; justify-content: center; gap: 10px;
  border: 0; border-bottom: 1px solid var(--line);
  background: var(--green-light); color: var(--green-dark);
  padding: 8px 16px; font-size: 13.5px; font-weight: 600;
}
.loc-bar b { font-weight: 800; }
.loc-change { text-decoration: underline; font-weight: 700; }

/* ---------- Adomany-sav (menhely-adomanyozas mod) ---------- */
.donate-bar {
  position: sticky; top: calc(60px + env(safe-area-inset-top)); z-index: 41;
  display: flex; width: 100%; align-items: center; justify-content: center; gap: 8px 14px; flex-wrap: wrap;
  border: 0; border-bottom: 1px solid #d9a441;
  background: linear-gradient(90deg, #ffd66e, #f6b73c); color: #5a3d00;
  padding: 9px 16px; font-size: 13.5px; font-weight: 700;
}
.donate-bar .db-text b { font-weight: 800; }
.donate-bar .db-note { font-weight: 700; opacity: .8; font-size: 12.5px; }
.donate-bar .db-exit {
  border: 0; background: rgba(90,61,0,.14); color: #5a3d00;
  border-radius: 99px; padding: 4px 14px; font-weight: 800; font-size: 12.5px; cursor: pointer;
}
.donate-bar .db-exit:hover { background: rgba(90,61,0,.24); }

/* Menhely-valaszto lista */
.shelter-list { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.shelter-opt {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  border: 1.5px solid var(--line); background: #fff; border-radius: 14px;
  padding: 12px 14px; transition: border-color .15s ease, box-shadow .15s ease;
}
.shelter-opt:hover { border-color: var(--green); box-shadow: var(--shadow); }
.shelter-opt .sh-emoji {
  flex-shrink: 0; width: 44px; height: 44px; display: grid; place-items: center;
  font-size: 24px; background: var(--green-light); border-radius: 50%;
}
.shelter-opt .sh-info { flex: 1; min-width: 0; }
.shelter-opt .sh-name { font-weight: 800; font-size: 14.5px; }
.shelter-opt .sh-meta { font-size: 12.5px; color: var(--muted); line-height: 1.4; }
.shelter-opt .sh-go { color: var(--green-dark); font-weight: 800; font-size: 18px; }

/* ---------- Cim-kapu ---------- */
.modal.gate { z-index: 75; }
.gate-card { text-align: center; }
.gate-card h2 { margin: 6px 0 4px; }
.gate-emoji { font-size: 48px; }
.gate-or { color: var(--muted); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; margin: 18px 0 10px; }
.gate-villages { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.gate-village {
  border: 1.5px solid var(--line); background: #fff; border-radius: 12px;
  padding: 11px 10px; text-align: left; transition: border-color .15s ease;
}
.gate-village:hover { border-color: var(--green); }
.gate-village .gv-name { font-weight: 700; font-size: 14px; display: block; }
.gate-village .gv-fee { font-size: 12px; color: var(--muted); }

/* ---------- Ajanlat-valaszto (tobb bolt, egy termek) ---------- */
.offer-toggle {
  display: block; width: 100%; text-align: left; border: 0; background: none;
  color: var(--muted); font-size: 13px; font-weight: 600;
  padding: 10px 2px; margin-top: 8px; text-decoration: underline;
}
.offer-list { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.offer-row {
  display: flex; align-items: center; gap: 10px;
  background: #fff; border: 1.5px solid var(--line); border-radius: 12px; padding: 10px 12px;
}
.offer-row.on { border-color: var(--green); background: var(--green-light); }
.offer-info { flex: 1; min-width: 0; }
.offer-shop { font-weight: 700; font-size: 14px; }
.offer-meta { font-size: 12px; color: var(--muted); }
.offer-price { font-weight: 800; font-size: 15px; white-space: nowrap; }
.offer-pick {
  border: 1.5px solid var(--green); background: #fff; color: var(--green-dark);
  border-radius: 99px; padding: 6px 14px; font-size: 13px; font-weight: 700;
}
.offer-row.on .offer-pick { background: var(--green); color: #fff; }

/* Ingyen-szallitas tagsag jelzese a termekkartyan es a reszletezoben */
.p-freedel { font-size: 11.5px; color: var(--green-dark); font-weight: 700; margin-top: 2px; }

/* Penztar: fix falu-sor (a valtas a cim-kaput nyitja) */
.co-village {
  display: block; width: 100%; text-align: left;
  background: var(--green-light); color: var(--green-dark);
  border: 1.5px solid var(--line); border-radius: 12px;
  padding: 12px 14px; font: inherit; font-weight: 600;
}
.co-village u { float: right; font-weight: 700; }
.co-village .co-free { float: right; font-weight: 800; color: var(--green-dark); background: #fff; border-radius: 99px; padding: 1px 10px; font-size: 12px; }

/* Penztar-upsell: menhely-adomany hozzaadasa fizetes elott */
.upsell {
  margin-top: 14px; border: 1.5px dashed #e3b34d; border-radius: 14px;
  background: linear-gradient(160deg, #fffaf0, #fff5e0); padding: 14px 16px;
}
.us-head { font-family: var(--font-display); font-weight: 800; font-size: 15px; color: #7a5300; }
.us-sub { font-size: 12.5px; color: #8a6d3b; margin: 4px 0 10px; line-height: 1.45; }
.us-shelter-label { display: block; font-size: 12px; font-weight: 800; color: #8a6d3b; margin-bottom: 4px; }
.us-shelter {
  width: 100%; padding: 9px 12px; border: 1.5px solid #ecd9a8; border-radius: 10px;
  background: #fff; font: inherit; font-weight: 600; margin-bottom: 10px;
}
.us-items { display: flex; flex-direction: column; gap: 7px; }
.us-item {
  display: flex; align-items: center; gap: 10px;
  background: #fff; border: 1px solid #f0e2c8; border-radius: 10px; padding: 7px 10px;
}
.us-emoji { font-size: 22px; flex-shrink: 0; width: 30px; text-align: center; }
.us-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.us-name { font-size: 13px; font-weight: 700; }
.us-price { font-size: 12px; color: var(--muted); }
.us-add {
  border: 1.5px solid var(--green); background: #fff; color: var(--green-dark);
  border-radius: 99px; padding: 5px 12px; font-size: 12.5px; font-weight: 800; cursor: pointer;
}
.us-add:hover { background: var(--green-light); }
.us-step { display: inline-flex; align-items: center; gap: 8px; }
.us-step button {
  border: 1.5px solid var(--green); background: #fff; color: var(--green);
  border-radius: 8px; width: 28px; height: 28px; font-size: 16px; font-weight: 800; cursor: pointer;
}
.us-step b { min-width: 16px; text-align: center; font-weight: 800; }
.us-summary {
  margin-top: 10px; padding-top: 10px; border-top: 1px solid #f0e2c8;
  font-size: 13px; font-weight: 700; color: #7a5300;
}
.us-summary .us-free { color: var(--green-dark); font-weight: 800; }
.success-donate {
  background: var(--green-light); color: var(--green-dark); border-radius: 10px;
  padding: 8px 12px; font-size: 13.5px; font-weight: 700; margin: 4px 0;
}
