/* Pizza Joe — termekkatalogus
   Vilagos, meleg alap; a fotok es a narancs akcentus viszik a lapot.
   Egy tema, mobilra szabva. */

:root {
  --bg: #fff6f3;
  --card: #ffffff;
  --ink: #241613;
  --muted: #8a7570;
  --line: #f3e2dd;

  /* Telt gyorsetterem-piros es -sarga: ezek viszik a lapot. */
  --brand: #e31837;
  --brand-dark: #c20f2b;
  --sun: #ffc72c;
  --sun-dark: #f0b414;
  --fresh: #2fa360;

  --shadow: 0 2px 10px rgba(80, 30, 25, .08);
  --shadow-lift: 0 10px 26px rgba(80, 30, 25, .16);

  --pad: 18px;
  --bar: 70px;

  --sans: "DM Sans", ui-sans-serif, system-ui, sans-serif;
  --disp: "Nunito", var(--sans);

  --ease: cubic-bezier(.22, .61, .36, 1);
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.5 var(--sans);
  padding-bottom: calc(var(--bar) + env(safe-area-inset-bottom));
  overflow-x: hidden;
}

a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
  border-radius: 6px;
}

.skip { position: absolute; left: -9999px; }
.skip:focus {
  left: var(--pad);
  top: 10px;
  z-index: 99;
  background: var(--brand);
  color: #fff;
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 500;
  text-decoration: none;
}

/* ---------- fejlec ---------- */

.top {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s var(--ease);
}
.top--stuck { border-bottom-color: var(--line); }

.top__in {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px var(--pad);
  max-width: 1120px;
  margin: 0 auto;
}

.top__logo {
  display: block;
  flex: none;
  line-height: 0;
}
.top__logo img {
  /* A logo feliratanak olvashatonak kell maradnia a fejlecben is. */
  height: 42px;
  width: auto;
  display: block;
}

.langs {
  margin-left: auto;
  display: flex;
  gap: 2px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px;
}
.langs button {
  appearance: none;
  border: 0;
  background: none;
  color: var(--muted);
  font: 700 11px/1 var(--sans);
  letter-spacing: .04em;
  padding: 7px 11px;
  border-radius: 999px;
  cursor: pointer;
  transition: color .18s, background-color .18s;
}
.langs button[aria-pressed="true"] { background: var(--brand); color: #fff; }
.langs button:hover:not([aria-pressed="true"]) { color: var(--ink); }

/* ---------- hero ---------- */

.hero {
  margin: 10px auto 0;
  max-width: 1120px;
  padding: 0 var(--pad);
}

/* A nyitas egy napsarga kartya: ez adja a lap hangulatat. */
/* A logoban a "pizza" szo piros, ezert a hero alapja sarga: azon a
   logo minden eleme lathato marad. */
.hero__card {
  background: var(--sun);
  color: var(--ink);
  border-radius: 26px;
  padding: 26px 22px 26px;
  box-shadow: 0 8px 24px rgba(227, 24, 55, .16);
  /* Szeles kepernyon ne nyuljon vegtelenul. */
  max-width: 720px;
}

.hero__h { margin: 0; line-height: 0; }
.hero__logo {
  display: block;
  width: min(100%, 380px);
  height: auto;
}

.hero__tag {
  display: inline-block;
  margin: 18px 0 0;
  background: var(--brand);
  color: #fff;
  font-size: 12.5px;
  font-weight: 800;
  padding: 7px 14px;
  border-radius: 999px;
}

.hero__lead {
  margin: 12px 0 0;
  max-width: 34ch;
  color: #6a4a18;
  font-size: 15px;
}

.hero__call {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  padding: 15px 24px;
  background: var(--brand);
  color: #fff;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 6px 16px rgba(227, 24, 55, .3);
  transition: transform .14s var(--ease), background-color .18s;
}
.hero__call strong {
  font-family: var(--disp);
  font-size: 21px;
  font-weight: 900;
  letter-spacing: -.01em;
}
.hero__call:active { transform: scale(.97); }
@media (hover: hover) { .hero__call:hover { background: var(--brand-dark); } }

/* ---------- kategoria csik ---------- */

.chips {
  position: sticky;
  top: 64px;
  z-index: 30;
  margin-top: 22px;
  background: color-mix(in srgb, var(--bg) 94%, transparent);
  backdrop-filter: blur(12px);
}
.chips__track {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 11px var(--pad);
  max-width: 1120px;
  margin: 0 auto;
  scroll-snap-type: x proximity;
  scroll-padding-inline-start: var(--pad);
}
.chips__track::-webkit-scrollbar { display: none; }

.chip {
  flex: none;
  appearance: none;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  font: 700 13.5px/1 var(--sans);
  padding: 12px 17px;
  border-radius: 999px;
  white-space: nowrap;
  cursor: pointer;
  scroll-snap-align: start;
  transition: color .18s, background-color .18s, border-color .18s;
}
.chip b {
  font-weight: 500;
  color: var(--muted);
  margin-left: 6px;
  font-variant-numeric: tabular-nums;
}
.chip[aria-selected="true"] {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  font-weight: 700;
}
.chip[aria-selected="true"] b { color: rgba(255, 255, 255, .72); }
.chip:hover:not([aria-selected="true"]) { border-color: #e2cdb6; }

/* ---------- lista ---------- */

.list { max-width: 1120px; margin: 0 auto; padding: 0 var(--pad); }

.sec { padding: 26px 0 2px; }

.sec__h {
  margin: 0 0 14px;
  font-family: var(--disp);
  font-weight: 900;
  font-size: 30px;
  line-height: 1.12;
  letter-spacing: -.03em;
  max-width: 18ch;
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
@media (min-width: 620px) { .grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .grid { grid-template-columns: repeat(4, 1fr); } }

.card {
  appearance: none;
  border: 0;
  /* A foto nem er a kartya szelehez: lekerekitve ul benne, igy a sotet
     hatteru etelfotok is lagyan illeszkednek a vilagos lapba. */
  padding: 8px 8px 12px;
  background: var(--card);
  color: inherit;
  text-align: left;
  font: inherit;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 9px;
  border-radius: 18px;
  box-shadow: var(--shadow);
  transition: transform .18s var(--ease), box-shadow .18s var(--ease);
}
@media (hover: hover) {
  .card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
}
.card:active { transform: scale(.985); }

.card__pic {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 12px;
  background: #ffffff;
}
/* A kepek kivagott etelek atlatszo hatterrel: a teljes kep latszodjon. */
.card__pic img { width: 100%; height: 100%; object-fit: contain; display: block; }

/* Foto nelkuli tetel a racsban: semleges kepikon all a kep helyen, hogy a
   racs egyseges maradjon. */
.card__ph {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffc72c' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4.5' width='18' height='15' rx='2.5'/%3E%3Ccircle cx='8.6' cy='10' r='1.5'/%3E%3Cpath d='M3.4 16.4l4.6-4.3 3.3 2.9 3.7-3.7 5.6 5.2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 54px;
}

.card__name {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
  padding: 0 5px;
}
.card__desc {
  padding: 0 5px;
  margin-top: -4px;
  font-size: 12px;
  line-height: 1.35;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card__meta {
  display: flex;
  align-items: baseline;
  gap: 7px;
  padding: 0 5px;
  margin-top: auto;
  padding-top: 2px;
}
.card__price {
  font-family: var(--disp);
  font-weight: 900;
  font-size: 18px;
  color: var(--brand);
  letter-spacing: -.01em;
}
.card__gram { font-size: 11.5px; color: var(--muted); }

/* A foto nelkuli tetelek (pizzak): tagas kartyasorok, ahol a feltetek
   a tartalom. */
.rows { display: grid; gap: 9px; max-width: 760px; }

.row {
  appearance: none;
  border: 0;
  background: var(--card);
  color: inherit;
  font: inherit;
  text-align: left;
  width: 100%;
  cursor: pointer;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 16px;
  padding: 15px 17px 16px;
  border-radius: 16px;
  box-shadow: var(--shadow);
  transition: transform .18s var(--ease), box-shadow .18s var(--ease);
}
@media (hover: hover) {
  .row:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }
}
.row:active { transform: scale(.99); }

/* Belyegkepes etlap-sor: a kep balra, a szoveg mellette. */
.row--pic {
  grid-template-columns: 68px 1fr auto;
  align-items: start;
}
.row__pic {
  grid-column: 1;
  grid-row: 1 / span 2;
  width: 68px;
  height: 68px;
  border-radius: 11px;
  object-fit: contain;
  background: #ffffff;
  display: block;
  align-self: center;
}
.row--pic .row__name { grid-column: 2; grid-row: 1; }
.row--pic .row__price { grid-column: 3; grid-row: 1; }
.row--pic .row__desc { grid-column: 2; grid-row: 2; }
.row--pic .row__gram { grid-column: 3; grid-row: 2; }

.row__name {
  font-family: var(--disp);
  font-weight: 800;
  font-size: 18.5px;
  letter-spacing: -.012em;
  line-height: 1.2;
}
.row__price {
  grid-column: 2;
  grid-row: 1;
  font-family: var(--disp);
  font-weight: 900;
  font-size: 20px;
  color: var(--brand);
  letter-spacing: -.01em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.row__desc {
  grid-column: 1;
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.45;
  max-width: 54ch;
}
.row__gram {
  grid-column: 2;
  font-size: 11.5px;
  color: var(--muted);
  text-align: right;
  white-space: nowrap;
}

.tag {
  display: inline-block;
  margin-left: 7px;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--sun);
  color: var(--ink);
  font-size: 10.5px;
  font-weight: 800;
  vertical-align: 2px;
}

/* ---------- reszletnezet ---------- */

.sheet {
  border: 0;
  padding: 0;
  margin: 0;
  width: 100%;
  max-width: none;
  max-height: none;
  height: 100%;
  background: var(--bg);
  color: var(--ink);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.sheet::backdrop { background: rgba(42, 26, 16, .5); }

.sheet__x {
  position: fixed;
  top: 14px;
  right: 14px;
  z-index: 5;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  appearance: none;
  border: 0;
  border-radius: 50%;
  background: var(--card);
  box-shadow: var(--shadow-lift);
  color: var(--ink);
  cursor: pointer;
}

.sheet__body { padding-bottom: 96px; }

.sheet__pic {
  width: calc(100% - 2 * var(--pad));
  margin: var(--pad) auto 0;
  max-width: 680px;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  display: block;
  border-radius: 18px;
  background: #ffffff;
}

.sheet__in { padding: 22px var(--pad) 0; max-width: 680px; margin: 0 auto; }

.sheet__cat {
  display: inline-block;
  margin: 0 0 10px;
  background: var(--sun);
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: 999px;
}
.sheet__h {
  margin: 0;
  font-family: var(--disp);
  font-weight: 900;
  font-size: clamp(29px, 8vw, 40px);
  line-height: 1.04;
  letter-spacing: -.03em;
}
.sheet__price {
  display: flex;
  align-items: baseline;
  gap: 9px;
  margin: 14px 0 0;
}
.sheet__price b {
  font-family: var(--disp);
  font-weight: 900;
  font-size: 34px;
  color: var(--brand);
  letter-spacing: -.02em;
}
.sheet__price s { color: var(--muted); font-size: 17px; }
.sheet__price em { color: var(--muted); font-size: 13px; font-style: normal; }

.sheet__desc {
  margin: 17px 0 0;
  font-size: 15.5px;
  line-height: 1.6;
  color: #5c4435;
  max-width: 52ch;
}

/* blokkok: feltetek, ajanlasok, allergenek */
.block { margin-top: 26px; }
.block__h {
  margin: 0 0 12px;
  font-family: var(--disp);
  font-weight: 900;
  font-size: 19px;
  letter-spacing: -.02em;
}
.block__note { margin: 12px 0 0; font-size: 12.5px; color: var(--muted); line-height: 1.5; }

.extras { display: flex; flex-wrap: wrap; gap: 7px; }
.extra {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  padding: 8px 13px;
  border: 0;
  border-radius: 999px;
  background: var(--card);
  box-shadow: var(--shadow);
  font-size: 13px;
}
.extra__n { color: var(--ink); }
.extra__p {
  font-family: var(--disp);
  font-weight: 900;
  font-size: 13px;
  color: var(--brand);
  font-variant-numeric: tabular-nums;
}
.extra--more {
  appearance: none;
  color: var(--brand);
  font-family: var(--disp);
  font-weight: 900;
  font-size: 13px;
  cursor: pointer;
  background: #ffe3e7;
  box-shadow: none;
}

.rail {
  display: flex;
  gap: 11px;
  overflow-x: auto;
  scrollbar-width: none;
  margin: 0 calc(-1 * var(--pad));
  padding: 4px var(--pad) 8px;
  scroll-snap-type: x proximity;
  scroll-padding-inline-start: var(--pad);
}
.rail::-webkit-scrollbar { display: none; }

.mini {
  flex: none;
  width: 124px;
  appearance: none;
  border: 0;
  background: var(--card);
  color: inherit;
  font: inherit;
  text-align: left;
  padding: 7px 7px 10px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 7px;
  border-radius: 14px;
  box-shadow: var(--shadow);
  scroll-snap-align: start;
}
.mini img,
.mini__ph {
  width: 110px;
  height: 94px;
  display: block;
  border-radius: 9px;
  background: #ffffff;
}
.mini img { object-fit: contain; }
.mini__ph {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffc72c' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4.5' width='18' height='15' rx='2.5'/%3E%3Ccircle cx='8.6' cy='10' r='1.5'/%3E%3Cpath d='M3.4 16.4l4.6-4.3 3.3 2.9 3.7-3.7 5.6 5.2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 32px;
}
.mini__n { font-size: 12.5px; line-height: 1.3; padding: 0 3px; }
.mini__p {
  font-family: var(--disp);
  font-weight: 900;
  font-size: 13.5px;
  color: var(--brand);
  padding: 0 3px;
  margin-top: -3px;
}

.sheet__foot {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 11px var(--pad) calc(11px + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--bg) 95%, transparent);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
}
.sheet__call,
.callbar__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  max-width: 680px;
  margin: 0 auto;
  background: var(--brand);
  color: #fff;
  padding: 15px;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 5px 16px rgba(227, 24, 55, .3);
  transition: transform .14s var(--ease), background-color .18s;
}
.sheet__call { flex-direction: column; gap: 1px; padding: 11px 15px 13px; }
.sheet__call span { font: 500 11.5px/1 var(--sans); opacity: .85; }
.sheet__call strong,
.callbar__btn span {
  font-family: var(--disp);
  font-weight: 900;
  font-size: 18px;
  letter-spacing: -.01em;
}
.sheet__call:active, .callbar__btn:active { transform: scale(.985); }
@media (hover: hover) {
  .sheet__call:hover, .callbar__btn:hover { background: var(--brand-dark); }
}

/* ---------- also hivo sav ---------- */

.callbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 45;
  padding: 10px var(--pad) calc(10px + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
}

/* ---------- lablec ---------- */

.foot {
  margin-top: 40px;
  padding: 34px var(--pad) 40px;
  border-top: 1px solid var(--line);
  text-align: center;
}
.foot__name {
  margin: 0;
  font-family: var(--disp);
  font-weight: 900;
  font-size: 24px;
  letter-spacing: -.025em;
}
.foot__tel {
  display: inline-block;
  margin-top: 7px;
  color: var(--brand);
  font-family: var(--disp);
  font-weight: 900;
  font-size: 19px;
  text-decoration: none;
}
.foot__note { margin: 14px 0 0; font-size: 12.5px; color: var(--muted); }

/* ---------- mozgas ----------
   Egy koreografalt belepes, a tobbi a felhasznalo erintesere valaszol. */

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

.hero__card { animation: rise .6s var(--ease) both; }
.chips { animation: rise .55s var(--ease) .12s both; }

@keyframes pop {
  from { opacity: 0; transform: translateY(9px) scale(.985); }
  to { opacity: 1; transform: none; }
}
.list--swap .card,
.list--swap .row {
  animation: pop .42s var(--ease) both;
  animation-delay: calc(var(--i) * 26ms);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-delay: 0ms !important;
    transition-duration: .01ms !important;
  }
}

/* A reszletnezet a koppintasra erkezik. */
@keyframes sheetUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}
.sheet[open] { animation: sheetUp .32s var(--ease); }
