/* tuzijatek.hu – „Tiéd az ég” katalógus és termékoldal */

/* Hosszú listánál tovább tart az éjszaka, a hajnal csak a lábléc felé jön */
body.long-night {
  background: linear-gradient(180deg,
    var(--night) 0%, var(--night-2) 34%, var(--dusk) 76%,
    var(--rose) 90%, var(--dawn) 97%, var(--morning) 100%);
}

/* ---------- Égbolt-fejléc ---------- */
.band {
  position: relative; overflow: hidden; cursor: crosshair;
  --band-h: clamp(500px, 64vh, 720px);
  min-height: var(--band-h);
  /* a tartalom alul áll (az alja a fejléc 31%-ánál), felül a menünek mindig marad hely */
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 118px 0 max(calc(var(--band-h) * .31), var(--sky-clear, 0px));
  background:
    radial-gradient(ellipse 70% 50% at 50% 100%, rgba(120, 70, 190, .35), transparent 70%),
    linear-gradient(180deg, #03051a 0%, #0a0f33 55%, #1a1450 var(--horizon-pct, 80%), #05071d var(--horizon-pct, 80%), #0b0d2c 100%);
}
.band canvas.sky { position: absolute; inset: 0; width: 100%; height: 100%; }
.band-copy { position: relative; z-index: 5; pointer-events: none; }
.band-copy a, .band-copy button { pointer-events: auto; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; padding: 0; list-style: none; color: var(--muted); font-size: .92rem; }
.crumbs li + li::before { content: "/"; margin-right: 8px; opacity: .5; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--spark); }
.band h1 { font-size: clamp(2.6rem, 7.4vw, 6.6rem); color: var(--spark); text-shadow: 0 0 60px rgba(255, 211, 77, .2); max-width: 14ch; }
.band-sub { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 22px; margin-top: 18px; }
.band-sub p { margin: 0; max-width: 52ch; color: #d8d1f2; }
.band-sub b { font-family: var(--display); font-weight: 600; color: var(--gold); white-space: nowrap; }

/* ---------- Kategória-sín ---------- */
.rail-wrap { position: relative; z-index: 6; margin-top: -1px; background: rgba(7, 11, 38, .7); border-block: 1px solid rgba(255, 255, 255, .08); }
.rail { display: flex; gap: 10px; overflow-x: auto; padding: 16px 0; scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
/* Asztali nézetben minden kategória látszik, több sorban */
@media (min-width: 641px) { .rail { flex-wrap: wrap; overflow: visible; } }
/* Mobilon görgethető sáv, a szélek elhalványulnak, jelezve hogy van még */
@media (max-width: 640px) {
  .rail { margin-inline: -16px; padding-inline: 16px; scroll-padding-inline: 16px;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 16px, #000 calc(100% - 40px), transparent);
            mask-image: linear-gradient(90deg, transparent 0, #000 16px, #000 calc(100% - 40px), transparent); }
}
.rail a {
  text-decoration: none;
  flex: none; display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 16px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(255, 255, 255, .04); color: var(--text); font-size: .94rem;
  transition: background .2s, border-color .2s;
}
.rail a:hover { background: rgba(255, 255, 255, .09); }
.rail a[aria-current="page"] { border-color: var(--gold); background: rgba(255, 211, 77, .12); }
.rail .dots { display: inline-flex; gap: 3px; }
.rail .dots i, .xcard-dots i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--c); box-shadow: 0 0 8px var(--c); }
.rail small { color: var(--muted); font-size: .8rem; }

/* ---------- Szűrősáv ---------- */
.tools { position: sticky; top: 0; z-index: 20; background: rgba(7, 11, 38, .86); backdrop-filter: blur(14px); border-bottom: 1px solid rgba(255, 255, 255, .08); }
.tools .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; padding-block: 14px; }
.count { color: var(--muted); font-size: .94rem; margin-right: auto; }
.count b { color: var(--spark); font-family: var(--display); font-weight: 600; }
.search { position: relative; }
.search input {
  width: 240px; padding: 11px 16px 11px 40px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .05); color: var(--text); font: inherit; font-size: .94rem;
}
.search input::placeholder { color: var(--muted); }
.search svg { position: absolute; left: 14px; top: 50%; width: 16px; height: 16px; transform: translateY(-50%); fill: var(--muted); }
.seg { display: inline-flex; padding: 4px; border-radius: 999px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); }
.seg button { padding: 7px 14px; border: 0; border-radius: 999px; background: none; color: var(--muted); font-size: .88rem; white-space: nowrap; }
.seg button[aria-pressed="true"] { background: var(--gold); color: var(--night); font-weight: 700; }
.select {
  padding: 10px 14px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .16);
  background: #0e1240; color: var(--text); font: inherit; font-size: .9rem;
}

/* ---------- Termékkártya ---------- */
.xgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 40px 24px; padding: 44px 0 20px; }
.xcard { display: flex; flex-direction: column; text-decoration: none; color: var(--text); min-width: 0; }
.xcard-img {
  position: relative; display: block; aspect-ratio: 1; padding: 22px; border-radius: 26px; background: #fff;
  transition: transform .3s cubic-bezier(.2, .7, .2, 1), box-shadow .3s;
}
.xcard-img img { width: 100%; height: 100%; object-fit: contain; }
.xcard:hover .xcard-img, .xcard:focus-visible .xcard-img { transform: translateY(-6px) rotate(-1.2deg); box-shadow: 0 0 0 2px var(--gold), 0 26px 60px -18px rgba(255, 211, 77, .55); }
.xcard:focus-visible { outline: none; }
.xcard-vid { position: absolute; top: 12px; right: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 8px; border-radius: 999px; background: var(--night); color: var(--spark); font-size: .74rem; font-weight: 700; }
.xcard-vid::before { content: ""; border-left: 7px solid var(--gold); border-block: 4.5px solid transparent; }
.xcard-body { display: grid; gap: 8px; padding: 16px 4px 0; min-width: 0; }
.xcard-dots { display: flex; gap: 4px; min-height: 8px; }
.xcard-name { font-family: var(--body); font-weight: 700; font-size: 1.04rem; line-height: 1.28; letter-spacing: 0; margin: 0; overflow-wrap: anywhere; }
.xcard-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.xcard-meta span { padding: 2px 9px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .16); color: var(--muted); font-size: .78rem; }
.xcard-foot { display: flex; flex-wrap: wrap-reverse; align-items: end; justify-content: space-between; gap: 4px 10px; margin-top: 2px; }
.xprice { font-family: var(--display); font-weight: 600; font-size: 1.12rem; color: var(--gold); white-space: nowrap; }
.xprice.none { font-family: var(--body); font-weight: 500; font-size: .86rem; color: var(--muted); }
.avail { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; color: var(--muted); }
.avail::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }
.avail.shop { color: #7dffc0; }
.avail.partner { color: #a8d4ff; }
.avail.none::before { box-shadow: none; opacity: .5; }

.more { display: flex; justify-content: center; padding: 30px 0 110px; }
.empty { grid-column: 1 / -1; padding: 60px 24px; border-radius: 26px; border: 1px dashed rgba(255, 255, 255, .2); text-align: center; color: #d8d1f2; }
.empty button { margin-top: 16px; }
button.pill { cursor: pointer; font: inherit; font-weight: 700; }

/* ---------- Termékoldal ---------- */
.pband { height: auto; min-height: 100vh; min-height: 100svh; max-height: none; display: block; padding: 0; }
.pband .wrap.product { position: relative; z-index: 5; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 64px; align-items: center; padding-top: 120px; padding-bottom: 32vh; pointer-events: none; }
.pband .product a, .pband .product button { pointer-events: auto; }
.pimg {
  justify-self: center; width: min(100%, 470px); aspect-ratio: 1; padding: 34px; border-radius: 36px; background: #fff;
  transform: rotate(-2deg); box-shadow: 0 0 0 1px rgba(255, 255, 255, .5), 0 40px 120px -30px rgba(255, 211, 77, .45);
}
.pimg img { width: 100%; height: 100%; object-fit: contain; }
.pinfo h1 { font-size: clamp(2.2rem, 5vw, 4.4rem); color: var(--spark); max-width: 16ch; }
.pcat { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 14px; color: #d8d1f2; text-decoration: none; }
.pcat:hover { color: var(--spark); }
.pprice { display: flex; align-items: baseline; gap: 14px; margin: 22px 0 24px; }
.pprice b { font-family: var(--display); font-weight: 800; font-size: clamp(2rem, 4vw, 3rem); color: var(--gold); text-shadow: 0 0 40px rgba(255, 211, 77, .35); }
.pprice span { color: var(--muted); }
.lamps { display: grid; gap: 2px; margin: 0 0 28px; padding: 0; list-style: none; max-width: 430px; }
.lamps li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid rgba(255, 255, 255, .1); color: #d8d1f2; }
.lamps li::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: #3a3560; flex: none; }
.lamps li.on::before { background: var(--gold); box-shadow: 0 0 14px var(--gold); }
.lamps li span { margin-left: auto; font-size: .88rem; color: var(--muted); }
.lamps li.on span { color: var(--spark); }
.pactions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.fire-hint { margin: 14px 0 0; color: var(--muted); font-size: .9rem; }

.sheet { padding: 120px 0 60px; }
.sheet h2, .related h2, .live h2 { font-size: clamp(1.6rem, 4.6vw, 3.6rem); margin-bottom: 18px; }
.specs { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; margin: 40px 0 0; }
.specs div { padding: 24px 22px; border-radius: 20px; background: rgba(7, 11, 38, .72); border: 1px solid rgba(255, 255, 255, .1); }
.specs dt { color: var(--muted); font-size: .88rem; }
.specs dd { margin: 6px 0 0; font-family: var(--display); font-weight: 600; font-size: 1.5rem; color: var(--spark); }
.ptclass { display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: center; margin-top: 26px; padding: 26px; border-radius: 26px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); }
.ptclass b { font-family: var(--display); font-size: 2.6rem; color: var(--gold); line-height: 1; }
.ptclass p { margin: 0; color: #d8d1f2; max-width: 70ch; }

.live { padding: 60px 0; }
.vid-tabs { margin-top: 16px; flex-wrap: wrap; }
.vid-tabs button { cursor: pointer; }
.player { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; margin-top: 34px; padding: 0; border: 0; border-radius: 30px; overflow: hidden; background: #000; box-shadow: 0 40px 100px -40px rgba(0, 0, 0, .8); }
.player img, .player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }
.player .play { position: absolute; left: 50%; top: 50%; width: 92px; height: 92px; transform: translate(-50%, -50%); border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 14px rgba(255, 211, 77, .25), 0 0 60px rgba(255, 211, 77, .6); transition: transform .2s; }
.player .play::after { content: ""; position: absolute; left: 38px; top: 30px; border-left: 24px solid var(--night); border-block: 16px solid transparent; }
.player:hover .play { transform: translate(-50%, -50%) scale(1.07); }

.related { padding: 70px 0 120px; }
.related .xgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); padding-top: 34px; }
.related-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; }
.related-head > * { min-width: 0; }

/* ---------- Mobil ---------- */
@media (max-width: 1000px) {
  .pband .wrap.product { grid-template-columns: minmax(0, 1fr); gap: 34px; padding-top: 104px; }
  .pimg { width: min(76%, 360px); }
  .related .xgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .band { --band-h: clamp(520px, 72vh, 720px); padding-bottom: max(calc(var(--band-h) * .26), var(--sky-clear, 0px)); }
  .tools .wrap { gap: 10px; }
  .count { width: 100%; }
  .search { flex: 1 1 100%; }
  .search input { width: 100%; }
  .seg { overflow-x: auto; max-width: 100%; }
  .xgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 14px; }
  .xcard-img { padding: 12px; border-radius: 20px; }
  .xcard-name { font-size: .94rem; }
  .xcard-foot { flex-direction: column; align-items: flex-start; gap: 4px; }
  .pband { height: auto; min-height: 100svh; }
  .pband .wrap.product { padding-bottom: 26vh; }
  .pimg { width: min(64%, 260px); padding: 20px; }
  .ptclass { grid-template-columns: 1fr; }
  .specs dd { font-size: 1.2rem; }
}
