/* ==========================================================================
   Termékoldalak (Gastrosystem, Ticketsystem)
   A közös elemek (navigáció, szekciók, split, trio, feature-list, tags)
   a style.css-ből jönnek; itt a termék akcentusszíne és a helyőrzők vannak.
   Az akcentust az oldal body osztálya adja (page-gastro, page-ticket).
   ========================================================================== */

/* ---------- Termékenkénti színek ---------- */

/* --accent: szöveges kiemelés, --accent-light: sötét háttéren, --logo: a logó saját színe */
.page-gastro {
  --accent: #ea580c;
  --accent-light: #fb923c;
  --logo: #f59e0b;
  --grad: linear-gradient(92deg, #f59e0b 0%, #ea580c 55%, #dc2626 100%);
}

.page-ticket {
  --accent: #db2777;
  --accent-light: #f472b6;
  --logo: #db2777;
  --grad: linear-gradient(92deg, #f472b6 0%, #db2777 50%, #9333ea 100%);
}

.page-product .eyebrow { color: var(--accent); }
.page-product .eyebrow--light { color: var(--accent-light); }
.page-product .nav__brand .logo-mark,
.pp-hero__eyebrow .logo-mark { color: var(--logo); }
.page-product .feature-list i,
.page-product .trio__icon { color: var(--accent); }
.page-product .section--dark .trio__icon { color: var(--accent-light); }

.pp-gradient { background-image: var(--grad); }
.pp-muted { color: var(--slate-400); }
.pp-link { color: var(--accent); }

/* ---------- Helyőrző képek: egyszerű szürke doboz ---------- */

.ph-img { aspect-ratio: 4 / 3; border-radius: 28px; background: #e3e3e8; }
.ph-img--hero { aspect-ratio: 16 / 9; border-radius: clamp(20px, 2.4vw, 32px); }

/* ---------- Képernyőképek: a program saját ablakai, keretben ---------- */

.pp-shot {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid rgb(15 23 42 / 0.1);
  border-radius: clamp(10px, 1.2vw, 14px);
  background: #fff;
  box-shadow: 0 2px 6px rgb(15 23 42 / 0.06), 0 30px 60px -30px rgb(15 23 42 / 0.35);
}

/* Két ablak egymáson: a fő képernyő és előtte jobbra lent egy párbeszéd */
.pp-duo { position: relative; padding-bottom: 18%; }
.pp-duo > .pp-shot:first-child { width: 88%; }
.pp-duo > .pp-shot + .pp-shot { position: absolute; right: 0; bottom: 0; width: 56%; box-shadow: 0 2px 6px rgb(15 23 42 / 0.08), 0 40px 70px -24px rgb(15 23 42 / 0.45); }

/* Házhozszállítás: a platformok logói, a rendelések a Gastrosystembe futnak össze */
.pp-sync {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(48px, 9%, 88px) auto;
  align-items: center;
  padding: clamp(24px, 4vw, 44px);
  border-radius: 28px;
  background: #f5f5f7;
}

.pp-sync__sources { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }

.pp-sync__sources li {
  display: grid;
  place-items: center;
  height: clamp(64px, 7vw, 84px);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 1px 2px rgb(15 23 42 / 0.06), 0 12px 28px -18px rgb(15 23 42 / 0.3);
}

.pp-sync__sources img { width: auto; max-width: 84%; height: clamp(22px, 2.6vw, 30px); object-fit: contain; }
.pp-sync__sources li:first-child img { height: clamp(26px, 3vw, 36px); }
.pp-sync__sources li:nth-child(2) img { height: clamp(18px, 2vw, 24px); }
.pp-sync__sources li:nth-child(3) img { height: clamp(26px, 3vw, 34px); }

.pp-sync__lines { width: 100%; height: calc(3 * clamp(64px, 7vw, 84px) + 28px); overflow: visible; }

.pp-sync__lines path {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  stroke-dasharray: 6 6;
  vector-effect: non-scaling-stroke;
  opacity: 0.55;
  animation: pp-flow 1.2s linear infinite;
}

@keyframes pp-flow { to { stroke-dashoffset: -12; } }

.pp-sync__target {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: clamp(18px, 2.4vw, 26px) clamp(16px, 2.2vw, 24px);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 1px 2px rgb(15 23 42 / 0.06), 0 24px 48px -24px rgb(15 23 42 / 0.35);
}

.pp-sync__target .logo-mark { width: clamp(40px, 4.4vw, 52px); height: auto; aspect-ratio: 248.36 / 279.43; color: var(--logo); }
.pp-sync__target span { font-size: clamp(15px, 1.5vw, 17px); font-weight: 700; letter-spacing: -0.03em; color: var(--ink); }

@media (prefers-reduced-motion: reduce) {
  .pp-sync__lines path { animation: none; }
}

/* Átlátszó hátterű eszközfotó, keret nélkül */
.pp-device { display: block; width: 100%; max-width: 560px; height: auto; margin-inline: auto; }

.pp-wide-shot { max-width: 980px; margin: clamp(40px, 5vw, 64px) auto 0; }
.split-head .lead { margin-top: 18px; }
.split-head + .pp-wide-shot { margin-top: 0; }
.section--dark .pp-shot { border-color: rgb(255 255 255 / 0.12); box-shadow: 0 40px 90px -30px rgb(0 0 0 / 0.7); }

/* Pénztár: egy blokk jeggyel, ajándékkal és büfétermékkel; az alja fogazott (mask) */
.pp-receipt {
  position: relative;
  width: min(100%, 340px);
  margin-inline: auto;
  filter: drop-shadow(0 2px 3px rgb(15 23 42 / 0.06)) drop-shadow(0 24px 30px rgb(15 23 42 / 0.16));
}

.pp-receipt__paper {
  --tooth: 14px;
  padding: 30px 26px calc(28px + var(--tooth) / 2);
  background: #fff;
  font: 500 14px/1.55 ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-variant-numeric: tabular-nums;
  color: var(--slate-600);
  text-align: center;
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / var(--tooth) 100%;
  mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / var(--tooth) 100%;
}

.pp-receipt .logo-mark { display: block; width: 30px; height: auto; aspect-ratio: 248.36 / 279.43; margin: 0 auto 10px; color: var(--logo); }
.pp-receipt__shop { margin: 0; font-weight: 700; color: var(--ink); }
.pp-receipt__meta { margin: 0; font-size: 12px; color: var(--slate-400); }

.pp-receipt__items {
  margin: 18px 0 12px;
  padding: 12px 0;
  border-block: 1px dashed var(--slate-300);
  list-style: none;
  text-align: left;
}

.pp-receipt__items li,
.pp-receipt__total,
.pp-receipt__line { display: flex; justify-content: space-between; gap: 16px; }
.pp-receipt__items li + li { margin-top: 8px; }
.pp-receipt__items li > span:first-child { color: var(--slate-800); }
.pp-receipt__items small { display: block; font-size: 12px; color: var(--slate-400); }
.pp-receipt__total { margin: 0; font-size: 16px; font-weight: 700; color: var(--ink); }
.pp-receipt__line { margin: 4px 0 0; font-size: 13px; }
.pp-receipt__foot { margin: 18px 0 0; font-weight: 700; letter-spacing: 0.3em; color: var(--slate-400); }

.pp-receipt__badge {
  position: absolute;
  top: -16px;
  right: -24px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px 9px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 13px;
  font-weight: 600;
  color: var(--slate-800);
}

.pp-receipt__badge i { font-size: 20px; color: var(--emerald-500); }

@media (max-width: 480px) {
  .pp-receipt__badge { right: 8px; }
  .pp-feed .status { gap: 0; padding: 5px; font-size: 0; }
  .pp-feed .status i { font-size: 16px; }
}

/* NTAK: az elküldött jegyeladások naplója (a .feed a style.css-ből) */
.pp-feed .feed__head img { width: auto; height: 32px; }
.pp-feed .feed__list { min-height: 0; }
.pp-feed .feed-row__logo i { font-size: 22px; color: var(--accent); }

/* Büfé és ajándékbolt: a mai forgalom termékcsoportonként, egy halmozott sávban.
   A színek a validált kategóriás sorrendből jönnek; az értékek mind ki vannak írva. */
.pp-sales {
  --c1: #db2777;
  --c2: #eda100;
  --c3: #2a78d6;
  padding: clamp(22px, 3vw, 30px);
  border-radius: var(--r-3xl);
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow-float);
}

.pp-sales__head { display: flex; margin: 0; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--slate-500); }
.pp-sales__head span:first-child { font-weight: 600; color: var(--slate-800); }
.pp-sales__total { margin: 6px 0 0; font-size: clamp(30px, 3.4vw, 38px); font-weight: 700; letter-spacing: -0.03em; color: var(--ink); font-variant-numeric: tabular-nums; }

.pp-sales__bar { display: flex; gap: 2px; height: 14px; margin: 18px 0 8px; }
.pp-sales__bar span { flex: var(--v) 1 0; border-radius: 4px; background: var(--c1); }
.pp-sales__bar span:nth-child(2) { background: var(--c2); }
.pp-sales__bar span:nth-child(3) { background: var(--c3); }

.pp-sales__list { margin: 0; padding: 0; list-style: none; }

.pp-sales__list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--slate-100);
}

.pp-sales__list li:last-child { padding-bottom: 0; border-bottom: 0; }

.pp-sales__name { display: grid; grid-template-columns: 12px auto; column-gap: 10px; align-items: center; font-weight: 600; color: var(--slate-800); }
.pp-sales__name::before { content: ""; width: 12px; height: 12px; border-radius: 3px; background: var(--c1); }
.pp-sales__list li:nth-child(2) .pp-sales__name::before { background: var(--c2); }
.pp-sales__list li:nth-child(3) .pp-sales__name::before { background: var(--c3); }
.pp-sales__name small { grid-column: 2; font-size: 13px; font-weight: 500; color: var(--slate-500); }
.pp-sales__value { display: grid; justify-items: end; font-weight: 600; color: var(--slate-800); font-variant-numeric: tabular-nums; }
.pp-sales__value small { font-size: 13px; font-weight: 500; color: var(--slate-500); }

/* ---------- Hero ---------- */

/* Három képernyő: középen az asztaltérkép, a két oldalsó görgetésre csúszik ki mögüle.
   --p 0 (mögötte) és 1 (a helyén) között, a product.js állítja; --out a végső eltolás a középtől */
.pp-trio {
  --mw: min(860px, 64vw);
  position: relative;
  height: calc(var(--mw) * 1097 / 1512);
}

.pp-trio .pp-shot { position: absolute; }
.pp-trio__main { z-index: 2; top: 0; left: calc(50% - var(--mw) / 2); width: var(--mw); }

.pp-trio__side {
  --w: calc(var(--mw) * 0.62);
  --out: calc(var(--mw) * 0.42);
  z-index: 1;
  top: calc(var(--mw) * 0.12);
  left: calc(50% - var(--w) / 2);
  width: var(--w);
  opacity: calc(0.6 + 0.4 * var(--p, 1));
  translate: calc(var(--dir) * var(--out) * var(--p, 1)) 0;
  rotate: calc(var(--dir) * 2.5deg * var(--p, 1));
}

.pp-trio__side--l { --dir: -1; }
.pp-trio__side--r { --dir: 1; }

@media (max-width: 600px) {
  .pp-trio { --mw: 86vw; }
  .pp-trio__side { --out: calc(var(--mw) * 0.25); }
}


.pp-hero {
  padding-top: clamp(56px, 9vw, 112px);
  overflow: hidden;
  background: linear-gradient(180deg, #fff 0%, #fff 55%, var(--tint) 100%);
}

.pp-hero__eyebrow {
  margin-bottom: 18px;
  font-size: clamp(19px, 1.8vw, 24px);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink) !important;
}

.pp-hero__eyebrow .logo-mark { width: 24px; height: 27px; }
.pp-hero__lead { max-width: 760px; margin: 26px auto 0; }

.pp-ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px 28px;
  margin-top: 36px;
}

.pp-hero__media { margin-top: clamp(48px, 7vw, 88px); padding-bottom: clamp(72px, 9vw, 128px); }

/* Két képernyő egymás mögött: elöl balra a pénztár, mögötte jobbra fent kilóg a készlet.
   A margin-top százaléka a szélességhez mér, így minden méretben ugyanannyi látszik a hátsóból. */
.pp-pair { display: flow-root; position: relative; max-width: 1080px; margin-inline: auto; }
.pp-pair__back { position: absolute; top: 0; right: 0; width: 64%; }
.pp-pair__front { position: relative; width: 78%; margin-top: 13%; box-shadow: 0 2px 6px rgb(15 23 42 / 0.08), 0 40px 80px -30px rgb(15 23 42 / 0.45); }

@media (max-width: 600px) {
  .pp-pair__back { width: 82%; }
  .pp-pair__front { width: 92%; margin-top: 22%; }
}

/* ---------- Online: három kártya ---------- */

.pp-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: clamp(48px, 6vw, 72px);
}

.pp-card { overflow: hidden; border-radius: 28px; background: #fff; }
.pp-card .ph-img { aspect-ratio: 16 / 10; border-radius: 0; }
.pp-card > img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
.pp-card__body { padding: 24px 28px 30px; }
.pp-card h3 { margin: 0 0 8px; font-size: 21px; font-weight: 700; letter-spacing: -0.025em; color: var(--ink); }
.pp-card p { font-size: 16px; line-height: 1.5; color: var(--slate-500); }

/* ---------- Pénzügy: sötét szekcióban világos szövegek ---------- */

.page-product .section--dark .trio__item h3 { color: #fff; }
.page-product .section--dark .trio__item p { color: var(--slate-400); }

/* ---------- Számok ---------- */

.pp-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  max-width: 1000px;
  margin: clamp(48px, 6vw, 72px) auto 0;
}

/* A színátmenet csak a doboz területén festődik, ezért a doboz a szöveghez igazodik */
.pp-stats b {
  display: inline-block;
  padding: 0 0.04em;
  font-size: clamp(44px, 5vw, 68px);
  line-height: 1;
  white-space: nowrap;
  font-weight: 700;
  letter-spacing: -0.05em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.pp-stats span { display: block; margin-top: 10px; font-size: 17px; font-weight: 600; color: var(--slate-500); }

/* ---------- Reszponzív ---------- */

@media (max-width: 1060px) {
  .pp-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .pp-cards,
  .pp-stats { grid-template-columns: 1fr; }
  .pp-stats { gap: 32px; }
}
