/* Kartonvilág — bolt stíluslap (v2, barna arculat a kartonvilag.hu designja alapján)
   Paletta: borostyán-barna #BE8A2E / #B78335, tinta #212121, fehér, világosszürke #F4F4F4 */

:root {
  --brand: #B78335;
  --brand-dark: #96690E;
  --brand-tint: #FBF6EC;
  --ink: #212121;
  --muted: #6b6b6b;
  --gray: #F4F4F4;
  --line: #ebebeb;
  --sale: #E2574C;
  --star: #F5A623;
  --ok: #1d7a3c;
  --radius: 12px;
  --shadow: 0 4px 20px rgba(33, 33, 33, .1);
  --font: 'Instrument Sans', system-ui, sans-serif;
  --paper: #F4EEE3;       /* kartonpapír-tónus: a fehér hátterű termékfotók ebbe olvadnak (multiply) */
}

* { box-sizing: border-box; }
/* a hidden attribútum MINDIG rejtsen — akkor is, ha az elem osztálya display-t állít */
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--page-bg, #fff);
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: var(--brand-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.015em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 700; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.container.narrow { max-width: 780px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.section { padding: 60px 0; }
.section-gray { background: var(--brand-tint); }
.section-title { text-align: center; margin-bottom: 14px; }
.section-lead { text-align: center; color: var(--muted); max-width: 62ch; margin: 0 auto 36px; }
.section-cta { margin-top: 36px; }
.eyebrow { color: var(--brand); font-weight: 600; margin: 0 0 .3em; }
.eyebrow a { color: var(--brand); }
.eyebrow-caps { color: var(--muted); font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 6px; }

/* ---------- Gombok ---------- */
.btn {
  display: inline-block;
  font: 600 .98rem var(--font);
  padding: 11px 26px;
  border-radius: var(--btn-radius, 999px);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .12s ease, background .12s, color .12s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-lg { padding: 14px 34px; font-size: 1.04rem; text-transform: uppercase; letter-spacing: .05em; }
.btn-block { display: block; width: 100%; text-align: center; }

/* ---------- Bejelentő sáv + fejléc ---------- */
.announce-bar {
  background: var(--announce-bg, var(--brand));
  color: var(--announce-text, #fff);
  text-align: center;
  font-size: .85rem;
  font-weight: 600;
  padding: 7px 16px;
}
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: var(--header-bg, rgba(255, 255, 255, .96));
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 30px; height: 74px; }
.logo img { height: 52px; width: auto; }
.main-nav { display: flex; gap: 24px; flex: 1; justify-content: center; }
.main-nav a { color: var(--ink); font-weight: 500; }
.main-nav a:hover { color: var(--brand); text-decoration: none; }
.lang-switch { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; margin-left: 6px; }
.lang-switch a { padding: 3px 10px; font-size: .8rem; font-weight: 700; color: var(--muted); }
.lang-switch a:hover { text-decoration: none; background: var(--brand-tint); }
.lang-switch a.active { background: var(--brand); color: #fff; }
.header-actions { display: flex; align-items: center; gap: 14px; }
.search-form input {
  font: inherit; padding: 8px 14px; border: 1px solid var(--line);
  border-radius: 999px; width: 140px; transition: width .2s;
}
.search-form input:focus { width: 190px; outline: 2px solid var(--brand); border-color: transparent; }
.cart-link { position: relative; color: var(--brand-dark); display: flex; padding: 6px; background: none; border: 0; cursor: pointer; }
.cart-badge {
  position: absolute; top: -4px; right: -6px;
  background: var(--sale); color: #fff;
  font-size: .7rem; font-weight: 700;
  min-width: 18px; height: 18px; border-radius: 999px;
  display: flex; align-items: center; justify-content: center; padding: 0 4px;
}
.nav-toggle { display: none; font-size: 1.4rem; background: none; border: 0; cursor: pointer; }

/* ---------- Flash ---------- */
.flash { padding: 12px 0; font-weight: 500; }
.flash-success { background: #e6f4ea; color: var(--ok); }
.flash-error { background: #fdecea; color: var(--sale); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: min(72vh, 620px);
  background-size: cover;
  background-position: center 30%;
  display: flex; align-items: flex-end;
  border-radius: 0;
}
/* háttérvideó (a régi oldal Vegleges2 videója); mozgáscsökkentésnél csak az állókép látszik */
.hero { overflow: hidden; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (prefers-reduced-motion: reduce) { .hero-video { display: none; } }
.hero-shade {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(0,0,0,.45) 100%);
}
.hero-inner { position: relative; padding-bottom: 64px; color: #fff; }
.hero-eyebrow {
  font-size: .82rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; margin: 0 0 4px; opacity: .9;
}
.hero h1, .cta-band h2 { color: #fff; margin-bottom: 20px; text-shadow: 0 2px 18px rgba(0,0,0,.35); }

/* ---------- USP futósáv ---------- */
.usp-ticker {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 8px 34px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
}
.usp-item { color: var(--brand-dark); font-size: .88rem; font-weight: 600; white-space: nowrap; }

/* ---------- Kategóriakártyák (fotós) ---------- */
.category-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.category-card {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius);
  overflow: hidden;
  display: flex; align-items: flex-end;
  background: linear-gradient(160deg, #cfe3d8, #8a9e74) center/cover no-repeat;
  background-size: cover; background-position: center;
  color: #fff;
  transition: transform .18s ease, box-shadow .18s ease;
}
.category-card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(60,45,20,.72) 100%);
}
.category-card:hover { text-decoration: none; transform: translateY(-4px); box-shadow: var(--shadow); }
.category-card-body { position: relative; z-index: 1; padding: 18px; display: flex; flex-direction: column; gap: 2px; }
.category-card-body strong { font-size: 1.15rem; }
.category-card-body sup { font-size: .68rem; font-weight: 500; opacity: .85; }
.category-card-body span { font-size: .88rem; opacity: .92; }

/* ---------- Termékkártyák (minimál, mint az eredetin) ---------- */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px 22px; }
.product-card { color: var(--ink); display: block; }
.product-card:hover { text-decoration: none; }
.product-card-img {
  position: relative; display: block;
  border-radius: var(--radius); overflow: hidden; background: var(--paper);
}
/* a termékfotók fehér/szürke háttere a papírtónusba olvad, így a rács egységes */
.product-card-img img { aspect-ratio: 1; object-fit: cover; width: 100%; mix-blend-mode: multiply; transition: transform .25s ease; }
.product-card:hover .product-card-img img { transform: scale(1.04); }
.product-card-body { display: block; padding: 12px 2px 0; }
.product-card-name { display: block; font-size: 1rem; font-weight: 600; line-height: 1.3; }
.product-card .price { color: var(--brand-dark); font-weight: 600; }
.product-card .price-sale { color: var(--sale); }
.price { display: block; margin-top: 3px; font-size: .95rem; }
.price del { color: var(--muted); margin-left: 8px; font-weight: 400; }
.price-sale { color: var(--sale); }

.badge {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  font-size: .76rem; font-weight: 700; padding: 4px 10px; border-radius: 999px;
}
.badge-sale { background: var(--sale); color: #fff; }
.badge-oos { background: #555; color: #fff; }

.card-add {
  position: absolute; left: 10px; right: 10px; bottom: 10px; z-index: 2;
  padding: 9px 0; border: 0; border-radius: 999px;
  background: rgba(255,255,255,.95); color: var(--ink);
  font: 600 .88rem var(--font); cursor: pointer;
  opacity: 0; transform: translateY(6px);
  transition: opacity .18s, transform .18s, background .12s;
}
.product-card:hover .card-add, .card-add:focus-visible { opacity: 1; transform: translateY(0); }
.card-add:hover { background: var(--brand); color: #fff; }

/* ---------- Galéria ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.gallery-grid img {
  width: 100%; height: 100%; aspect-ratio: 1; object-fit: cover;
  border-radius: 10px;
}

/* ---------- Vélemények ---------- */
.review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.review-card {
  background: #fff; border-radius: var(--radius); box-shadow: 0 1px 0 rgba(150, 105, 14, .08), 0 8px 24px -16px rgba(150, 105, 14, .35);
  padding: 26px; display: flex; flex-direction: column; gap: 8px;
}
.review-card .stars { color: var(--star); letter-spacing: 2px; }
.review-card p { margin: 0; color: #444; font-size: .95rem; flex: 1; }
.review-author { font-size: .98rem; }
.review-product {
  display: flex; align-items: center; gap: 12px;
  margin-top: 12px; padding-top: 14px; border-top: 1px solid var(--line);
  color: var(--ink);
}
.review-product img { width: 46px; height: 46px; object-fit: cover; border-radius: 8px; background: var(--gray); }
.review-product span { display: flex; flex-direction: column; font-size: .88rem; }
.review-product:hover { text-decoration: none; color: var(--brand-dark); }

/* ---------- Okos játék szekció ---------- */
.smart-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; text-align: left; margin-top: 24px; }
.smart-icon {
  display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; margin-bottom: 14px;
  border-radius: 50%; background: var(--brand-tint); color: var(--brand-dark);
}
.smart-icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.smart-item strong { display: block; margin-bottom: 6px; }
.smart-item p { color: var(--muted); font-size: .9rem; margin: 0; }

/* ---------- CTA sáv ---------- */
.cta-band {
  position: relative;
  min-height: 380px;
  background-size: cover; background-position: center;
  display: flex; align-items: center;
  text-align: center;
}
.cta-shade { position: absolute; inset: 0; background: rgba(20, 14, 5, .45); }
.cta-inner { position: relative; color: #fff; }

/* ---------- Oldalfej / katalógus ---------- */
.page-head { background: var(--brand-tint); padding: 42px 0 36px; }
.page-head h1 { margin: 0; }
.page-lead { color: var(--muted); font-size: 1.05rem; }

.catalog-layout { display: grid; grid-template-columns: 230px 1fr; gap: 36px; align-items: start; }
.catalog-side h4 { margin-bottom: 12px; }
.cat-filter { display: flex; flex-direction: column; gap: 2px; }
.cat-filter a { color: var(--ink); padding: 8px 12px; border-radius: 8px; }
.cat-filter a:hover { background: var(--brand-tint); text-decoration: none; }
.cat-filter a.active { background: var(--brand); color: #fff; }
.cat-filter a.cat-child { padding-left: 28px; font-size: .93rem; }
.cat-filter small { color: inherit; opacity: .65; }
.catalog-main .product-grid { grid-template-columns: repeat(3, 1fr); }
.empty-note { color: var(--muted); font-size: 1.05rem; }

/* ---------- Szűrőpanel ---------- */
.filter-panel { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); }
.filter-panel h4 { margin: 18px 0 12px; }
.filter-panel h4:first-child { margin-top: 0; }
.filter-check { margin: 8px 0 !important; font-size: .94rem; cursor: pointer; }
.filter-check input { accent-color: var(--brand); width: 16px; height: 16px; }
.filter-dot { width: 8px; height: 8px; border-radius: 999px; background: var(--sale); display: inline-block; }
.filter-apply { margin-top: 14px; }
.filter-clear { display: block; text-align: center; margin-top: 10px; font-size: .88rem; color: var(--muted); }
.filter-clear:hover { color: var(--sale); }

/* dupla csúszkás ársáv */
.price-slider-track { position: relative; height: 26px; }
.price-slider-track::before {
  content: ""; position: absolute; top: 11px; left: 0; right: 0;
  height: 4px; border-radius: 999px; background: var(--line);
}
.price-slider-fill {
  position: absolute; top: 11px; height: 4px; border-radius: 999px; background: var(--brand);
}
.price-slider-track input[type=range] {
  position: absolute; top: 0; left: 0; width: 100%; margin: 0;
  -webkit-appearance: none; appearance: none;
  background: none; pointer-events: none; height: 26px;
}
.price-slider-track input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; pointer-events: auto;
  width: 18px; height: 18px; border-radius: 999px;
  background: #fff; border: 3px solid var(--brand); cursor: grab;
  box-shadow: 0 1px 4px rgba(0,0,0,.2);
}
.price-slider-track input[type=range]::-moz-range-thumb {
  pointer-events: auto; width: 12px; height: 12px; border-radius: 999px;
  background: #fff; border: 3px solid var(--brand); cursor: grab;
  box-shadow: 0 1px 4px rgba(0,0,0,.2);
}
.price-slider-values {
  display: flex; justify-content: space-between;
  font-size: .86rem; font-weight: 600; color: var(--brand-dark); margin-top: 2px;
}

/* eszköztár a lista felett */
.catalog-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; flex-wrap: wrap; margin-bottom: 20px;
  padding-bottom: 14px; border-bottom: 1px solid var(--line);
}
.catalog-count { color: var(--muted); font-size: .92rem; }
.catalog-sort { display: flex; align-items: center; gap: 8px; font-size: .92rem; color: var(--muted); }
.catalog-sort select {
  font: inherit; padding: 7px 12px; border: 1px solid #d7d7d7; border-radius: 9px;
  background: #fff; color: var(--ink); cursor: pointer;
}

/* ---------- Termékoldal ---------- */
.product-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.gallery-main { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--paper); }
.gallery-main img { aspect-ratio: 1; object-fit: cover; width: 100%; mix-blend-mode: multiply; }
.gallery-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 42px; height: 42px; border-radius: 999px; border: 0;
  background: rgba(255,255,255,.92); color: var(--ink);
  font-size: 1.6rem; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 10px rgba(0,0,0,.15);
  transition: background .12s, transform .12s;
}
.gallery-nav:hover { background: var(--brand); color: #fff; transform: translateY(-50%) scale(1.06); }
.gallery-nav-prev { left: 12px; }
.gallery-nav-next { right: 12px; }
.gallery-zoom {
  position: absolute; top: 12px; right: 12px; z-index: 3;
  width: 38px; height: 38px; border-radius: 999px; border: 0;
  background: rgba(255,255,255,.92); color: var(--ink); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 10px rgba(0,0,0,.15);
}
.gallery-zoom:hover { background: var(--brand); color: #fff; }
.gallery-thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.gallery-thumb {
  width: 72px; padding: 0; border: 2px solid var(--line); border-radius: 10px;
  overflow: hidden; cursor: pointer; background: none;
}
.gallery-thumb.active { border-color: var(--brand); }
.gallery-thumb img { aspect-ratio: 1; object-fit: cover; }

.product-info h1 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
.product-price { font-size: 1.5rem; margin: 10px 0 16px; }
.product-price del { color: var(--muted); font-size: 1.1rem; margin-left: 10px; }
.product-price .price-sale { color: var(--sale); }
.product-short { color: var(--muted); }
.stock { font-weight: 600; }
.stock-in { color: var(--ok); }
.stock-in::before { content: "●"; margin-right: 6px; }
.stock-out { color: var(--sale); }
.add-to-cart { display: flex; gap: 14px; margin: 18px 0 22px; flex-wrap: wrap; }
.product-perks { list-style: none; padding: 16px 0 0; margin: 12px 0 0; border-top: 1px solid var(--line); }
.product-perks li { padding: 3px 0; color: var(--muted); }
.sku { color: var(--muted); font-size: .88rem; }
.product-description { margin-top: 56px; }
.product-description .rich-text { max-width: 760px; margin: 0 auto; font-size: 1.02rem; line-height: 1.7; }
.product-description .rich-text h2 { font-size: clamp(1.35rem, 2.2vw, 1.7rem); line-height: 1.25; }
.product-description .rich-text > h2:first-child { margin-top: .4em; }
.rich-text img { border-radius: var(--radius); }
.rich-text h2 { margin-top: 1.6em; padding-bottom: .3em; border-bottom: 2px solid var(--brand-tint); }
.rich-text h3 { margin-top: 1.4em; color: var(--brand-dark); }
.rich-text table {
  width: 100%; border-collapse: collapse; margin: 16px 0; font-size: .93rem;
}
.rich-text table th {
  text-align: left; background: var(--brand-tint); color: var(--brand-dark);
  padding: 9px 12px; border: 1px solid #eadfc8;
}
.rich-text table td { padding: 9px 12px; border: 1px solid var(--line); vertical-align: top; }
.rich-text table tr:nth-child(even) td { background: #fafafa; }
.note-info, .note-warn {
  border-radius: 10px; padding: 12px 16px; margin: 14px 0; font-size: .93rem;
}
.note-info { background: var(--brand-tint); border-left: 4px solid var(--brand); }
.note-warn { background: #fdecea; border-left: 4px solid var(--sale); }
.legal-meta { color: var(--muted); font-size: .9rem; margin-bottom: 20px; }

.qty-input {
  display: inline-flex; align-items: stretch;
  border: 1px solid #d7d7d7; border-radius: 999px; overflow: hidden;
}
.qty-input button {
  width: 40px; border: 0; background: #f6f6f6; font-size: 1.15rem; cursor: pointer;
}
.qty-input button:hover { background: var(--line); }
.qty-input input {
  width: 52px; border: 0; text-align: center; font: inherit;
  -moz-appearance: textfield; appearance: textfield;
}
.qty-input input::-webkit-inner-spin-button { display: none; }

/* ---------- Kosár / pénztár ---------- */
.cart-layout, .checkout-layout { display: grid; grid-template-columns: 1.5fr 1fr; gap: 36px; align-items: start; }
.cart-row {
  display: grid; grid-template-columns: 84px 1fr auto auto auto;
  gap: 16px; align-items: center;
  padding: 16px 0; border-bottom: 1px solid var(--line);
}
.cart-row-img img { aspect-ratio: 1; object-fit: cover; border-radius: 10px; background: var(--gray); }
.cart-row-info { display: flex; flex-direction: column; gap: 2px; }
.cart-row-info a { color: var(--ink); font-weight: 600; }
.cart-unit { color: var(--muted); font-size: .88rem; }
.cart-remove { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 1rem; padding: 8px; }
.cart-remove:hover { color: var(--sale); }
.cart-actions { padding-top: 16px; }

.cart-summary {
  background: var(--brand-tint);
  border-radius: var(--radius); padding: 26px; position: sticky; top: 96px;
}
.cart-summary dl { margin: 0 0 16px; }
.cart-summary dl > div { display: flex; justify-content: space-between; padding: 6px 0; }
.cart-summary dt { color: var(--muted); }
.cart-summary dd { margin: 0; font-weight: 600; }
.cart-summary .total { border-top: 2px solid var(--brand); margin-top: 8px; padding-top: 12px; font-size: 1.15rem; }
.free-ship-note { color: var(--brand-dark); font-weight: 600; font-size: .92rem; }
.summary-items { list-style: none; margin: 0 0 14px; padding: 0 0 10px; border-bottom: 1px solid rgba(183,131,53,.3); }
.summary-items li { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; font-size: .95rem; }

.coupon-row { display: flex; gap: 8px; margin-bottom: 14px; }
.coupon-row input {
  flex: 1; font: inherit; padding: 9px 12px;
  border: 1px solid #d7d7d7; border-radius: 999px; min-width: 0;
}
.coupon-applied {
  flex: 1; display: flex; align-items: center; gap: 8px;
  background: #fff; border: 1px dashed var(--brand); border-radius: 10px; padding: 9px 14px;
  font-size: .92rem;
}
.coupon-remove { margin-left: auto; background: none; border: 0; cursor: pointer; color: var(--muted); }
.coupon-remove:hover { color: var(--sale); }
.cart-summary dd.discount { color: var(--ok); }
.withdrawal-reason { margin: 14px 0; }

.checkout-form h3 { margin: 28px 0 14px; }
.checkout-form h3:first-child { margin-top: 0; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid .span-2 { grid-column: span 2; }
.checkout-form label { display: flex; flex-direction: column; gap: 5px; font-weight: 500; font-size: .93rem; }
.checkout-form input:not([type=checkbox]):not([type=radio]),
.checkout-form textarea {
  font: inherit; padding: 11px 14px; border: 1px solid #d7d7d7; border-radius: 10px;
}
.checkout-form input:focus, .checkout-form textarea:focus { outline: 2px solid var(--brand); border-color: transparent; }
.check-line { flex-direction: row !important; align-items: center; gap: 9px !important; margin: 16px 0; }
.pay-options { display: grid; gap: 10px; }
.pay-option {
  flex-direction: row !important; align-items: center; gap: 12px !important;
  border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; cursor: pointer;
}
.pay-option:has(input:checked) { border-color: var(--brand); background: var(--brand-tint); }
.pay-option span { display: flex; flex-direction: column; }
.pay-option small { color: var(--muted); font-weight: 400; }
.pay-note { color: var(--muted); font-size: .9rem; }
.secure-note { text-align: center; color: var(--muted); font-size: .87rem; margin-top: 10px; }

/* Csomagpont választó */
#pickupBlock { margin: 14px 0 6px; }
.pickup-selected {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  border: 1px solid var(--brand); background: var(--brand-tint);
  border-radius: 12px; padding: 12px 16px; margin-bottom: 10px;
}
.pickup-selected small { display: block; color: var(--muted); }

.map-modal {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,.5);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.map-modal-box {
  background: #fff; border-radius: 14px; width: min(980px, 100%);
  max-height: 92vh; display: flex; flex-direction: column; overflow: hidden;
}
.map-modal-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px 8px; }
.map-modal-head h3 { margin: 0; }
#mapSearch { margin: 0 20px 12px; padding: 10px 14px; border: 1px solid #d7d7d7; border-radius: 10px; font: inherit; }
.map-modal-body { display: grid; grid-template-columns: 1.5fr 1fr; min-height: 0; flex: 1; }
#mapCanvas { min-height: 420px; height: 100%; }
.map-list { overflow-y: auto; border-left: 1px solid var(--line); max-height: 60vh; }
.map-list-item {
  display: block; width: 100%; text-align: left; background: none; border: 0;
  border-bottom: 1px solid var(--line); padding: 12px 16px; cursor: pointer; font: inherit;
}
.map-list-item:hover { background: var(--brand-tint); }
.map-list-item small { color: var(--muted); display: block; }
.map-popup-select { margin-top: 6px; }

/* ---------- Köszönőoldal ---------- */
.thank-you { text-align: center; max-width: 640px; }
.thank-badge { font-size: 3rem; }
.order-box {
  text-align: left; background: var(--brand-tint);
  border-radius: var(--radius); padding: 26px; margin: 28px 0;
}
.order-box dl { margin: 0; }
.order-box dl > div { display: flex; justify-content: space-between; padding: 4px 0; }
.order-box dd { margin: 0; font-weight: 600; }
.order-box .total { border-top: 2px solid var(--brand); margin-top: 8px; padding-top: 10px; font-size: 1.1rem; }

/* ---------- Lábléc (fehér, mint az eredetin) ---------- */
.site-footer { margin-top: 40px; border-top: 1px solid var(--line); background: var(--footer-bg, #fff); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 36px; padding: 52px 20px 28px; }
.footer-logo { height: 84px; width: auto; margin-bottom: 10px; }
.footer-brand p { color: var(--muted); font-size: .93rem; max-width: 34ch; }
.footer-brand a { display: block; color: var(--ink); padding: 2px 0; }
.social-dot {
  display: inline-flex !important; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 999px; background: var(--ink); color: #fff !important;
  margin-top: 12px;
}
.site-footer h4 { margin-bottom: 12px; font-size: .95rem; }
.site-footer .footer-grid > div > a { display: block; color: #444; padding: 4px 0; font-size: .93rem; }
.site-footer a:hover { color: var(--brand-dark); }
.footer-bottom {
  border-top: 1px solid var(--line); padding: 18px 20px; font-size: .88rem; color: var(--muted);
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
}
.pay-badges { display: flex; gap: 6px; }
.pay-badges span {
  border: 1px solid var(--line); border-radius: 6px; padding: 2px 9px;
  font-size: .75rem; font-weight: 700; color: #555; background: #fff;
}

/* ---------- Oldalsó kosárfiók ---------- */
.drawer-overlay {
  position: fixed; inset: 0; z-index: 150;
  background: rgba(0,0,0,.45);
  opacity: 0; transition: opacity .22s;
}
.drawer-overlay.open { opacity: 1; }
.cart-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 160;
  width: min(420px, 94vw);
  background: #fff;
  box-shadow: -8px 0 30px rgba(0,0,0,.15);
  transform: translateX(105%);
  transition: transform .28s cubic-bezier(.22,.8,.36,1);
  display: flex; flex-direction: column;
}
.cart-drawer.open { transform: translateX(0); }
.cart-drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px; border-bottom: 1px solid var(--line);
}
.cart-drawer-head h3 { margin: 0; }
.drawer-close { background: none; border: 0; font-size: 1.15rem; cursor: pointer; padding: 6px; color: var(--muted); }
.drawer-close:hover { color: var(--ink); }
.cart-drawer-body { flex: 1; overflow-y: auto; padding: 16px 20px; display: flex; flex-direction: column; }
.drawer-empty { text-align: center; color: var(--muted); margin: auto 0; }
.drawer-empty p:first-child { font-size: 2.4rem; margin: 0; }
.drawer-free-note {
  background: var(--brand-tint); border-radius: 10px; padding: 10px 14px;
  font-size: .9rem; margin-bottom: 14px;
}
.drawer-free-note.done { color: var(--ok); }
.free-bar { height: 6px; background: #e8dcc4; border-radius: 999px; margin-top: 8px; overflow: hidden; }
.free-bar span { display: block; height: 100%; background: var(--brand); border-radius: 999px; transition: width .3s; }
.drawer-items { list-style: none; margin: 0; padding: 0; flex: 1; }
.drawer-item {
  display: grid; grid-template-columns: 64px 1fr auto; gap: 12px;
  align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line);
}
.drawer-item-img img { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; background: var(--gray); }
.drawer-item-info a { color: var(--ink); font-weight: 600; font-size: .92rem; }
.drawer-item-row { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; gap: 10px; }
.drawer-qty { display: inline-flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 999px; padding: 2px 6px; }
.drawer-qty button { background: none; border: 0; cursor: pointer; font-size: 1rem; padding: 2px 6px; }
.drawer-qty b { min-width: 16px; text-align: center; }
.drawer-remove { background: none; border: 0; color: var(--muted); cursor: pointer; align-self: start; padding: 4px; }
.drawer-remove:hover { color: var(--sale); }
.drawer-foot { border-top: 1px solid var(--line); padding-top: 14px; margin-top: 8px; }
.drawer-foot .btn { margin-bottom: 8px; }
.drawer-total { display: flex; justify-content: space-between; font-size: 1.05rem; margin-bottom: 12px; }

/* ---------- Cookie banner ---------- */
.cookie-banner { position: fixed; z-index: 400; }
.cookie-bar { left: 0; right: 0; bottom: 0; }
.cookie-bar .cookie-box { border-radius: 0; width: 100%; }
.cookie-card { left: 20px; bottom: 20px; max-width: 400px; }
.cookie-card .cookie-box { border-radius: 14px; }
.cookie-modal { inset: 0; display: flex; align-items: center; justify-content: center; }
.cookie-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.5); }
.cookie-modal .cookie-box { position: relative; border-radius: 14px; max-width: 520px; margin: 20px; }
.cookie-box {
  background: #fff; box-shadow: 0 -4px 30px rgba(0,0,0,.15);
  padding: 20px 24px; border-top: 4px solid var(--cb-color, var(--brand));
}
.cookie-card .cookie-box, .cookie-modal .cookie-box { border: 1px solid var(--line); border-top: 4px solid var(--cb-color, var(--brand)); box-shadow: 0 8px 40px rgba(0,0,0,.2); }
.cookie-title { display: block; margin-bottom: 6px; }
.cookie-text { font-size: .9rem; color: var(--muted); margin: 0 0 12px; }
.cookie-cats { display: grid; gap: 8px; margin-bottom: 14px; }
.cookie-cat { display: flex; gap: 10px; align-items: flex-start; font-size: .87rem; color: #444; }
.cookie-cat input { margin-top: 3px; }
.cookie-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.cookie-btn {
  font: 600 .9rem var(--font); padding: 9px 18px; border-radius: 999px;
  cursor: pointer; border: 1px solid #ccc; background: #fff; color: var(--ink);
}
.cookie-accept { background: var(--cb-color, var(--brand)); border-color: var(--cb-color, var(--brand)); color: #fff; }
.cookie-save { background: var(--ink); border-color: var(--ink); color: #fff; }
.cookie-btn:hover { filter: brightness(.95); }

/* ---------- Lightbox (kép nagyban) ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 500;
  background: rgba(15, 12, 8, .92);
  display: none; align-items: center; justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: min(92vw, 1100px); max-height: 88vh;
  object-fit: contain; border-radius: 8px;
}
.lb-close, .lb-prev, .lb-next {
  position: absolute; z-index: 2; border: 0; cursor: pointer;
  background: rgba(255,255,255,.12); color: #fff;
  width: 48px; height: 48px; border-radius: 999px;
  font-size: 1.7rem; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  transition: background .12s;
}
.lb-close:hover, .lb-prev:hover, .lb-next:hover { background: var(--brand); }
.lb-close { top: 18px; right: 18px; font-size: 1.2rem; }
.lb-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 18px; top: 50%; transform: translateY(-50%); }
.lb-count {
  position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,.85); font-weight: 600; font-size: .9rem;
}
@media (max-width: 640px) {
  .lb-prev { left: 8px; } .lb-next { right: 8px; }
  .lb-prev, .lb-next { width: 40px; height: 40px; }
}

/* Kosárba tett visszajelzés (toast) */
.toast {
  position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%) translateY(20px);
  background: var(--ink); color: #fff; padding: 12px 22px; border-radius: 999px;
  font-weight: 600; z-index: 300; opacity: 0; transition: opacity .25s, transform .25s;
  max-width: 90vw; text-align: center;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* Mobil szűrő-nyitó gomb és menün belüli kereső — asztali nézetben rejtve */
.filter-toggle { display: none; }
.search-form-mobile { display: none; }

/* ---------- Reszponzív ---------- */
/* Fejléc-menü: 1024px alatt hamburgerre váltunk, hogy sose törjön sorba */
@media (max-width: 1023px) {
  .header-inner { gap: 14px; }
  .nav-toggle { display: block; padding: 8px 10px; }
  .main-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; flex-direction: column; align-items: stretch;
    padding: 8px 0 14px; gap: 0;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 30px rgba(33, 33, 33, .12);
    max-height: calc(100dvh - 110px); overflow-y: auto;
  }
  .main-nav.open { display: flex; }
  .main-nav > a {
    padding: 13px 22px; font-size: 1.02rem;
    border-bottom: 1px solid var(--gray);
  }
  .main-nav > a:hover { background: var(--brand-tint); color: var(--ink); }
  .lang-switch { margin: 14px 22px 4px; align-self: flex-start; }
  .lang-switch a { padding: 6px 16px; font-size: .85rem; }
  .search-form-mobile { display: block; padding: 12px 22px 6px; }
  .search-form-mobile input { width: 100%; }
  .search-form-mobile input:focus { width: 100%; }
}
@media (max-width: 980px) {
  .section { padding: 44px 0; }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .category-grid > :last-child:nth-child(odd) { grid-column: 1 / -1; aspect-ratio: 2 / 1; } /* páratlan számú kategóriánál az utolsó teljes sor, fekvő */
  .product-grid, .catalog-main .product-grid { grid-template-columns: repeat(2, 1fr); }
  .review-grid { grid-template-columns: 1fr; }
  .smart-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .catalog-layout, .product-layout, .cart-layout, .checkout-layout { grid-template-columns: 1fr; gap: 26px; }
  .cart-summary { position: static; }
  .footer-grid { grid-template-columns: 1fr; gap: 22px; padding: 36px 20px 22px; }
  .map-modal { padding: 10px; }
  .map-modal-body { grid-template-columns: 1fr; }
  #mapCanvas { min-height: 300px; }
  .map-list { max-height: 32vh; border-left: 0; border-top: 1px solid var(--line); }
  /* Szűrők mobilon: gombbal nyitható panel a lista felett */
  .filter-toggle { display: block; width: 100%; margin-bottom: 18px; }
  .catalog-side {
    display: none;
    background: var(--brand-tint); border-radius: var(--radius);
    padding: 18px; margin-top: -6px; margin-bottom: 6px;
  }
  .catalog-side.open { display: block; }
  .filter-panel { margin-top: 20px; padding-top: 16px; }
}
@media (max-width: 640px) {
  .header-inner { height: 62px; gap: 10px; }
  .search-form:not(.search-form-mobile) { display: none; }
  .logo img { height: 40px; }
  .announce-bar { font-size: .78rem; padding: 6px 12px; }
  .section { padding: 36px 0; }
  .container { padding: 0 16px; }
  .page-head { padding: 30px 0 26px; }
  .hero { min-height: 58vh; }
  .hero-inner { padding-bottom: 40px; }
  .product-grid, .catalog-main .product-grid, .category-grid { grid-template-columns: repeat(2, 1fr); gap: 16px 12px; }
  .smart-grid { grid-template-columns: 1fr; gap: 20px; }
  .usp-ticker { gap: 6px 20px; padding: 10px 14px; }
  .usp-item { font-size: .8rem; }
  .cart-row { grid-template-columns: 64px 1fr auto; }
  .cart-row .qty-input { grid-column: 2; justify-self: start; }
  .cart-row-total { grid-column: 3; }
  .cart-row { position: relative; padding-right: 30px; }
  .cart-remove { position: absolute; top: 6px; right: -6px; } /* mobilon a sor jobb felső sarkában, nem külön sorban */
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .span-2 { grid-column: span 1; }
  .card-add { opacity: 1; transform: none; }
  .qty-input button { width: 44px; }
  .add-to-cart .btn-lg { flex: 1; text-align: center; }
  .gallery-thumb { width: 60px; }
  .product-description { margin-top: 36px; }
  /* széles táblázatok (pl. ÁSZF) görgethetők, ne feszítsék szét az oldalt */
  .rich-text table { display: block; overflow-x: auto; white-space: nowrap; }
  .cookie-card { left: 12px; right: 12px; bottom: 12px; max-width: none; }
  .footer-bottom { justify-content: center; text-align: center; }
  .thank-you { padding: 0 4px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------- Vevői értékelések + készletértesítő ---------- */
.rating-line { display: inline-flex; align-items: center; gap: 8px; margin: 2px 0 6px; text-decoration: none; }
.rating-line .stars { color: var(--star); letter-spacing: 2px; }
.rating-line:hover { text-decoration: none; }
.product-reviews { margin-top: 56px; }
.review-avg .stars { color: var(--star); letter-spacing: 2px; margin-right: 6px; }
.review-card-bordered { border: 1px solid var(--line); }
.pill-verified {
  display: inline-block; font-size: .72rem; font-weight: 600; margin-left: 6px;
  background: #e6f4ea; color: var(--ok); border-radius: 999px; padding: 2px 9px;
  vertical-align: middle;
}
.stock-alert-form {
  background: var(--brand-tint); border: 1px dashed var(--brand);
  border-radius: 12px; padding: 16px 18px; margin: 14px 0 6px; max-width: 420px;
}
.stock-alert-row { display: flex; gap: 8px; margin: 10px 0 6px; }
.stock-alert-row input {
  flex: 1; min-width: 0; font: inherit; padding: 10px 14px;
  border: 1px solid #d7d7d7; border-radius: 999px;
}
.stock-alert-row .btn { white-space: nowrap; }

/* Értékelő oldal */
.review-item-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin-bottom: 18px; }
.review-item-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.review-item-head img { width: 56px; height: 56px; object-fit: cover; border-radius: 10px; background: var(--gray); }
.review-item-card label { display: flex; flex-direction: column; gap: 6px; font-weight: 500; margin: 12px 0; }
.review-item-card textarea { font: inherit; padding: 10px 14px; border: 1px solid #d7d7d7; border-radius: 10px; }
.review-item-card .ok { color: var(--ok); font-weight: 600; }
.star-input { display: inline-flex; flex-direction: row-reverse; gap: 2px; }
.star-input input { position: absolute; opacity: 0; pointer-events: none; }
.star-input label { font-size: 1.7rem; color: #d8d0c0; cursor: pointer; transition: color .1s; }
.star-input input:checked ~ label, .star-input label:hover, .star-input label:hover ~ label { color: var(--star); }

/* ---------- Üzemmód sáv (teszt / szünetel) ---------- */
.mode-banner { text-align: center; font-size: .88rem; font-weight: 600; padding: 8px 16px; }
.mode-test { background: #FFF3CD; color: #7a5d00; border-bottom: 1px solid #f0e0a0; }
.mode-paused { background: #FDECEA; color: #a13a2e; border-bottom: 1px solid #f5cfc9; }

/* ===== Lango-motor pénztára (2026-10), a Kartonvilág színeire igazítva ===== */
:root { --field: #d8d2c8; }
.pay-option:has(input:checked) { border-color: var(--ink); background: var(--gray); }
.pay-option input { accent-color: var(--brand); }
.pay-option span { display: flex; flex-direction: column; }
.pay-option small { color: var(--muted); }
.pay-note { color: var(--muted); font-size: .875rem; }
.secure-note { text-align: center; color: var(--muted); font-size: .8125rem; margin-top: 12px; }

#pickupBlock { margin: 14px 0 6px; }
/* a kiválasztott csomagpontos mód alá illesztve: a választó a mód kártyájának folytatása */
.ship-options #pickupBlock {
  margin: -11px 0 0; padding: 4px 18px 16px; border: 1px solid var(--ink); border-top: 0; background: var(--gray);
}
.ship-options #pickupBlock.is-in { animation: pickupIn .35s var(--ease, ease-out); }
@keyframes pickupIn { from { opacity: 0; transform: translateY(-6px); } }
.pickup-selected {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  border: 1px solid var(--line); border-left: 3px solid var(--brand); background: #fff; padding: 12px 16px; margin-bottom: 0;
}
.pickup-selected small { display: block; color: var(--muted); }
.map-modal { position: fixed; inset: 0; z-index: 200; background: rgba(28, 27, 25, .55); display: flex; align-items: center; justify-content: center; padding: 20px; }
.map-modal-box { background: var(--page-bg); width: min(980px, 100%); max-height: 92vh; display: flex; flex-direction: column; overflow: hidden; }
.map-modal-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px 8px; }
.map-modal-head h3 { margin: 0; }
.map-tools { display: flex; gap: 16px; align-items: center; padding: 0 22px 10px; }
.map-tools #mapSearch { flex: 1; min-width: 0; margin: 0; }
.map-kinds { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 22px 12px; }
.map-kinds button {
  display: inline-flex; align-items: center; gap: 7px; cursor: pointer;
  font: 400 .8125rem var(--font); color: var(--ink); background: #fff;
  border: 1px solid var(--line); padding: 5px 11px;
}
.map-kinds button[aria-pressed=true] { border-color: var(--ink); background: var(--gray); }
.map-kinds small { color: var(--muted); }
.map-list-item { display: grid !important; grid-template-columns: 30px 1fr; column-gap: 12px; align-items: baseline; }
.map-list-logo { grid-row: span 2; align-self: center; width: 30px; height: 30px; object-fit: contain; border-radius: 6px; background: #fff; box-shadow: 0 0 0 1px var(--line); }
/* térképjelölő: a szolgáltató logója fehér jelvényben, alul hegyes véggel */
.map-pin { background: none; border: 0; }
.map-pin-badge {
  position: relative; display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 8px; background: #fff;
  box-shadow: 0 2px 8px rgba(28, 27, 25, .35); transition: transform .15s;
}
.map-pin-badge::after {
  content: ""; position: absolute; left: 50%; bottom: -6px; margin-left: -6px;
  border: 6px solid transparent; border-bottom: 0; border-top-color: #fff;
}
/* a logó a jelvényen belül fix méretű (a PNG-k 96 px-esek, nélküle a jelölő akkora lenne, mint a kép) */
.map-pin-badge img { display: block; width: 24px; height: 24px; object-fit: contain; border-radius: 5px; }
.map-pin:hover .map-pin-badge, .map-pin:focus .map-pin-badge { transform: translateY(-3px); }
/* „Közelemben”: szöveges gomb helymeghatározó ikonnal */
.map-tools .link-btn {
  display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0; cursor: pointer;
  background: none; border: 0; padding: 6px 2px; font: 600 .875rem var(--font); color: var(--brand);
}
.map-tools .link-btn::before {
  content: ""; width: 16px; height: 16px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Cpath d='M12 2v3M12 19v3M2 12h3M19 12h3'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Cpath d='M12 2v3M12 19v3M2 12h3M19 12h3'/%3E%3C/svg%3E") center / contain no-repeat;
}
.map-tools .link-btn:hover { text-decoration: underline; }
.map-kinds button { border-radius: 999px; padding: 6px 13px; }
.map-kinds button[aria-pressed=true] { border-color: var(--brand); background: var(--brand-tint); }

.vat-note { font-size: .75rem; color: var(--muted); margin: 10px 0 14px; line-height: 1.5; }
.pay-option .pay-off-note { color: var(--sale, #8C2F2A); }

.order-duty-note { text-align: center; font-size: .75rem; color: var(--muted); margin: 6px 0 0; }

/* a kézi csomagpont-mező csak akkor látszik, ha a pénztár szkriptje nem indult el */
.pickup-fallback { margin: 12px 0; }
.checkout-js-ok .pickup-fallback { display: none; }

/* Telefon: a hosszú linkek (pl. a jogi oldalakon) ne tolják szélesebbre az oldalt; a mezők 16 px-esek, hogy iOS ne nagyítson rá */
.rich-text a, .page-body a { overflow-wrap: anywhere; }
.checkout-form, .cart-summary { min-width: 0; }
@media (max-width: 900px) {
  input, select, textarea { font-size: 16px; }
  #sortSelect { font-size: 16px; }
}

/* ---------- Pénztár (2026-10): számozott fehér lapok a gyöngyház háttér előtt ---------- */
.co-page { padding: clamp(28px, 5vw, 64px) 0 clamp(56px, 8vw, 104px); }
.co-title { font: 400 clamp(2rem, 4vw, 2.75rem) / 1.1 var(--font); margin: 0 0 clamp(20px, 3vw, 36px); }
.co-page .checkout-layout { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 40px); }
.co-card {
  min-width: 0; margin: 0 0 16px; padding: clamp(20px, 3vw, 34px);
  background: #fff; border: 1px solid var(--line);
  box-shadow: 0 18px 40px -32px rgba(28, 27, 25, .35);
}
.co-card:last-child { margin-bottom: 0; }
/* a legend a lapon belül álljon, ne a keret vonalán */
.co-step { float: left; width: 100%; padding: 0; margin: 0 0 22px; display: flex; align-items: center; gap: 14px; font: 400 1.5rem / 1.2 var(--font); color: var(--ink); }
.co-step + * { clear: both; }
.co-num {
  flex: none; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--brand); color: var(--brand);
  display: inline-flex; align-items: center; justify-content: center; font: 400 .9375rem / 1 var(--font);
}
.co-page .form-grid { gap: 16px 14px; }
.co-page label { font-size: .8125rem; letter-spacing: .02em; color: var(--ink); }
.co-page .form-grid input, .co-page textarea, .co-page .coupon-row input {
  background: #fdfbf7; border-color: var(--field); width: 100%; min-width: 0;
}
.co-page .form-grid input:focus, .co-page textarea:focus, .co-page .coupon-row input:focus { background: #fff; }
.co-page .form-grid input::placeholder { color: #A9A197; }
.co-hint { color: var(--muted); font-size: .75rem; letter-spacing: 0; line-height: 1.4; }
.co-opt { color: var(--muted); font-size: .75rem; letter-spacing: 0; font-weight: 400; }
.co-addr { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }

/* választható lapok (szállítás, fizetés) */
.co-group { margin: 22px 0 8px; font-size: .8125rem; letter-spacing: .02em; color: var(--muted); }
.ship-options > .co-group:first-child { margin-top: 0; }
.co-page .pay-options { gap: 8px; }
.co-page .pay-option {
  background: #fff; border: 1px solid var(--line); padding: 14px 16px; gap: 14px !important;
  transition: border-color .15s, background-color .15s, box-shadow .15s;
}
@media (hover: hover) { .co-page .pay-option:hover { border-color: var(--field); } }
.co-page .pay-option:has(input:checked) { border-color: var(--brand); background: var(--brand-tint); box-shadow: inset 0 0 0 1px var(--brand); }
.co-page .pay-option input { width: 18px; height: 18px; margin: 0; flex: none; }
.co-page .pay-option strong { font-weight: 500; }
.co-page .pay-option small { font-size: .8125rem; line-height: 1.45; margin-top: 2px; }
.co-page .pay-option.is-disabled:has(input:checked) { box-shadow: none; }
.opt-main { flex: 1; min-width: 0; }
.opt-fee { flex: none; margin-left: auto; font-weight: 500; font-size: .875rem; white-space: nowrap; }
.co-page .ship-options #pickupBlock { margin: -9px 0 0; padding: 6px 16px 16px; border: 2px solid var(--brand); border-top: 0; background: var(--brand-tint); }
.checkout-form .co-sub { font: 400 1.125rem / 1.3 var(--font); margin: 28px 0 12px; }
.co-check { margin-top: 20px !important; }
.co-page #billFields { margin-top: 12px; }
.co-note { margin-top: 16px; font-size: .875rem; }
.co-note summary { cursor: pointer; color: var(--ink); list-style: none; display: inline-flex; gap: 6px; align-items: baseline; }
.co-note summary::-webkit-details-marker { display: none; }
.co-note summary::before { content: "+"; color: var(--brand); width: 12px; }
.co-note[open] summary::before { content: "–"; }
.co-note textarea { margin-top: 10px; }

/* összesítő */
.co-page .co-summary { background: #fff; border: 1px solid var(--line); padding: clamp(22px, 2.6vw, 32px); box-shadow: 0 18px 40px -32px rgba(28, 27, 25, .35); }
.co-sum-title { font: 400 1.5rem / 1.2 var(--font); margin: 0 0 14px; }
.co-items { list-style: none; margin: 0 0 18px; padding: 0; }
.co-items li { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: .9375rem; }
.co-items li:first-child { padding-top: 0; }
.co-thumb { position: relative; display: block; }
.co-thumb img { display: block; width: 56px; aspect-ratio: 4 / 5; object-fit: cover; background: var(--gray); }
.co-thumb b {
  position: absolute; top: -7px; right: -7px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px;
  background: var(--ink); color: #fff; font: 500 .6875rem / 20px var(--font); text-align: center;
}
.co-item-name { font: 400 1rem / 1.3 var(--font); }
.co-page .cart-summary .total { border-top-color: var(--ink); }
.co-terms { align-items: flex-start !important; font-size: .8125rem; line-height: 1.5; margin: 4px 0 16px !important; }
.co-terms input { margin-top: 2px !important; flex: none; }
.co-page .co-terms a, .co-page .co-note a { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.co-page .co-terms a:hover { color: var(--brand); }
.co-submit {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 10px 10px 10px 28px; line-height: 1.2; text-align: left;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .25) inset, 0 8px 20px -8px rgba(150, 105, 14, .65);
  transition: transform .12s ease, background .12s, box-shadow .12s;
}
.co-submit:hover { box-shadow: 0 1px 0 rgba(255, 255, 255, .25) inset, 0 12px 24px -8px rgba(150, 105, 14, .75); }
.co-submit:active { transform: translateY(0); box-shadow: 0 1px 0 rgba(255, 255, 255, .25) inset, 0 4px 10px -6px rgba(150, 105, 14, .7); }
.co-submit:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.co-submit-label { font-size: 1.2rem; font-weight: 700; letter-spacing: .01em; }
.co-assure { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 8px; font-size: .8125rem; color: var(--muted); }
.co-assure li { display: flex; gap: 10px; align-items: baseline; }
.co-assure li::before { content: ""; flex: none; width: 10px; height: 6px; border-left: 1.5px solid var(--brand); border-bottom: 1.5px solid var(--brand); transform: rotate(-45deg) translateY(-2px); }

/* mobil: összecsukott összesítő a lap tetején */
.co-mini { display: none; }
@media (max-width: 900px) {
  .co-page .checkout-layout { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .co-mini { display: block; background: #fff; border: 1px solid var(--line); }
  .co-mini summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px; cursor: pointer; list-style: none; font-size: .9375rem; }
  .co-mini summary::-webkit-details-marker { display: none; }
  .co-mini summary > span::after {
    content: ""; display: inline-block; width: 7px; height: 7px; margin-left: 10px; vertical-align: 2px;
    border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); transition: transform .2s;
  }
  .co-mini[open] summary > span::after { transform: rotate(-135deg); vertical-align: -1px; }
  .co-mini summary small { color: var(--muted); font-size: .8125rem; }
  .co-mini .co-items { margin: 0; padding: 0 16px 6px; }
  .co-mini .co-items li:first-child { padding-top: 10px; border-top: 1px solid var(--line); }
  .co-mini .co-items li:last-child { border-bottom: 0; }
  .co-page .co-summary .co-items { display: none; }
  .co-card { padding: 22px 18px; margin-bottom: 12px; }
  .co-step { font-size: 1.3125rem; margin-bottom: 18px; }
  .co-addr { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
  .co-addr .span-2 { grid-column: span 2; }
}

/* sütisáv telefonon: kisebb, hogy ne takarja el a kosár és a pénztár gombjait (a gombok egyforma súlyúak maradnak) */
@media (max-width: 600px) {
  .cookie-bar .cookie-box { padding: 14px 16px calc(14px + env(safe-area-inset-bottom, 0px)); }
  .cookie-bar .cookie-title { font-size: 1.0625rem; margin-bottom: 2px; }
  .cookie-bar .cookie-text { font-size: .75rem; line-height: 1.45; margin-bottom: 10px; }
  .cookie-bar .cookie-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .cookie-bar .cookie-btn { padding: 10px 6px; font-size: .75rem; letter-spacing: .02em; line-height: 1.25; }
  .cookie-bar #ccSave:not([hidden]) { grid-column: 1 / -1; }
}
/* rövidebb lista: a szállítási mód leírása csak a kiválasztottnál látszik */
.co-page .ship-options .pay-option:not(:has(input:checked)) .opt-main small { display: none; }
/* szállítói logók és kártyamárkák a pénztárban */
.co-page .pay-option .opt-logo { flex: none; width: 32px; height: 32px; display: block; }
.opt-logo img { display: block; width: 32px; height: 32px; object-fit: contain; border-radius: 6px; box-shadow: 0 0 0 1px var(--line); background: #fff; }
.co-page .pay-option .pay-brands { display: flex; flex-direction: row; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.co-page .pay-option .pay-brand {
  display: inline-flex; flex-direction: row; align-items: center; justify-content: center;
  width: 44px; height: 28px; background: #fff; border: 1px solid var(--line); border-radius: 4px;
}
.pay-brand img { width: 22px; height: 22px; display: block; }
.co-page .pay-stripe img { display: inline-block; width: 14px; height: 14px; vertical-align: -2px; margin: 0 3px 0 1px; border-radius: 3px; }
.co-page .pay-stripe b { font-weight: 600; color: #635BFF; letter-spacing: .01em; }
@media (max-width: 380px) { .co-page .pay-option .opt-logo, .opt-logo img { width: 28px; height: 28px; } }
.co-page .pay-options { grid-template-columns: minmax(0, 1fr); }
.co-page #pickupOpen { white-space: normal; text-align: center; line-height: 1.3; }

/* Pénztár: hibás mező (szerveroldali ellenőrzés után) — a mező alatt az üzenet */
.co-page [aria-invalid="true"] { border-color: var(--sale) !important; box-shadow: 0 0 0 1px var(--sale); }
.co-page .co-err { display: block; margin-top: 6px; color: var(--sale); font-size: .8125rem; letter-spacing: 0; line-height: 1.4; }
.co-page .co-terms + .co-err { margin: -10px 0 14px 26px; }
.co-page .co-optin { margin-top: -6px !important; color: var(--muted); }
/* Kartonvilág: lekerekített lapok és gombok, félkövér címek */
.co-card, .co-page .co-summary, .co-mini { border-radius: var(--radius); }
.co-page .pay-option { border-radius: 10px; }
.co-step, .co-sum-title, .co-title { font-weight: 700; }
.co-num { font-weight: 600; background: var(--brand-tint); }
.co-page .form-grid input, .co-page textarea, .co-page .coupon-row input { border-radius: 10px; }
/* átutalási adatok a köszönőoldalon */
.transfer-box { text-align: left; border: 1px solid var(--brand); border-radius: var(--radius); background: var(--brand-tint); padding: 22px 26px; margin: 20px 0 28px; }
.transfer-box p { margin: 0 0 4px; font-size: .9375rem; }
.transfer-box .transfer-lead { font-weight: 600; font-size: 1.0625rem; margin-bottom: 14px; }
.pay-note { color: var(--muted); font-size: .8125rem; margin: 6px 0 14px; }
.pay-badges img { display: inline-block; vertical-align: middle; margin-left: 6px; border-radius: 4px; }
/* ÁSZF-elfogadás és opt-in: külön sorban, a jelölő a szöveg elején */
.co-page .co-terms { display: flex; gap: 10px; }

/* ---------- Bizalom: kosár és pénztár ----------
   Motívum: a kartonjátékok szaggatott vágóvonala (lépések közti vonal, bizalmi blokk, üres kosár keretje).
   Tartalom: csak valós adat — jóváhagyott vélemények, az ÁSZF-ben vállalt feltételek, elérhetőség (_trust.php). */
:root { --cut: rgba(183, 131, 53, .45); }
.page-head-co, .co-head { display: flex; align-items: center; justify-content: space-between; gap: 16px 28px; flex-wrap: wrap; }
.co-head .co-title { margin-bottom: 0; }
.co-head { margin-bottom: 28px; }

.co-steps { list-style: none; display: flex; align-items: center; margin: 0; padding: 0; font-size: .88rem; color: var(--muted); }
.co-steps li { display: flex; align-items: center; gap: 8px; }
.co-steps li + li::before { content: ""; width: 34px; margin: 0 12px; border-top: 2px dashed var(--cut); }
.co-steps-num {
  display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%;
  border: 1.5px solid var(--cut); background: #fff; color: var(--brand-dark); font-weight: 700; font-size: .78rem;
}
.co-steps li.is-current { color: var(--ink); font-weight: 600; }
.co-steps li.is-current .co-steps-num { background: var(--brand); border-color: var(--brand); color: #fff; }
.co-steps li.is-done .co-steps-num { background: var(--brand-tint); border-color: var(--brand); }

.free-ship { margin: 2px 0 16px; }
.free-ship .free-ship-note { margin: 0 0 8px; }
.free-ship-bar { display: block; height: 8px; border-radius: 99px; background: #EFE5D2; overflow: hidden; }
.free-ship-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--brand), var(--brand-dark)); transition: width .4s ease; }
.free-ship.is-done .free-ship-note { color: var(--ok); }
.free-ship.is-done .free-ship-bar i { background: var(--ok); }

.trust { margin-top: 22px; padding-top: 18px; border-top: 1.5px dashed var(--cut); display: grid; gap: 16px; }
.trust-proof { margin: 0; }
.trust-proof figcaption { font-size: .88rem; color: var(--muted); }
.trust-proof figcaption strong { color: var(--ink); }
.trust-stars { color: var(--star); letter-spacing: 1px; margin-right: 4px; }
.trust-proof blockquote { margin: 8px 0 4px; font-size: .9rem; line-height: 1.55; color: #3d3d3d; font-style: italic; }
.trust-cite { margin: 0; font-size: .8rem; color: var(--muted); }
.trust-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; font-size: .86rem; color: #3d3d3d; }
.trust-list li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; }
.trust-list svg { width: 20px; height: 20px; margin-top: 1px; fill: none; stroke: var(--brand-dark); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.trust-contact { margin: 0; padding: 12px 14px; border-radius: 10px; background: var(--paper); font-size: .86rem; line-height: 1.6; }
.trust-contact a { color: var(--ink); font-weight: 600; }
.trust-contact small, .trust-contact small a { color: var(--muted); font-weight: 400; }

.co-submit-total { flex-shrink: 0; padding: 10px 16px; border-radius: 999px; background: rgba(255, 255, 255, .18); font-size: 1rem; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }

.cart-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.link-back { color: var(--muted); font-size: .92rem; }
.link-back:hover { color: var(--brand-dark); }
.cart-row-img img, .co-thumb img { background: var(--paper); mix-blend-mode: multiply; }

.cart-empty {
  max-width: 540px; margin: 8px auto 0; padding: 38px 28px 34px; text-align: center;
  border: 2px dashed var(--cut); border-radius: 18px; background: var(--brand-tint);
}
.cart-empty-icon { display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 64px; margin-bottom: 12px; border-radius: 50%; background: #fff; color: var(--brand-dark); }
.cart-empty-icon svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.cart-empty h2 { margin: 0 0 8px; }
.cart-empty p { margin: 0 auto 22px; max-width: 400px; color: var(--muted); }
.cart-empty-more { margin-top: 64px; }

@media (max-width: 640px) {
  .co-steps { font-size: .8rem; }
  .co-steps li + li::before { width: 16px; margin: 0 6px; }
  .co-steps li:not(.is-current) .co-steps-label { display: none; }
  .co-head { margin-bottom: 18px; }
}

.trust-stars-off { opacity: .25; }
.cart-summary .total small { font-weight: 400; font-size: .75em; color: var(--muted); }

/* ---------- Segítő (Kirakat → Segítő): gombos, nem AI — vágóvonalas kartonpanel ---------- */
.kvchat { position: fixed; right: 18px; bottom: 18px; z-index: 140; font-size: .95rem; }
.kvchat .visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.kvchat-fab {
  display: flex; align-items: center; gap: 8px; height: 56px; min-width: 56px; padding: 0 16px; justify-content: center;
  border: 0; border-radius: 999px; background: var(--brand); color: #fff; font: 600 .95rem var(--font); cursor: pointer;
  box-shadow: 0 8px 22px rgba(80, 55, 15, .28); transition: transform .15s;
}
.kvchat-fab:hover { transform: translateY(-2px); }
.kvchat-fab:focus-visible { outline: 3px solid var(--brand-dark); outline-offset: 3px; }
.kvchat-fab svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.kvchat.is-open .kvchat-fab { display: none; }
.kvchat-panel {
  position: absolute; right: 0; bottom: 0; width: min(370px, calc(100vw - 24px)); max-height: min(600px, calc(100dvh - 36px));
  display: flex; flex-direction: column; background: #fff; border-radius: 18px; overflow: hidden;
  box-shadow: 0 18px 50px rgba(40, 28, 10, .25); border: 1px solid var(--line);
}
.kvchat-head {
  display: flex; align-items: center; justify-content: space-between; padding: 14px 16px;
  background: var(--brand-tint); border-bottom: 2px dashed var(--cut);
}
.kvchat-head strong { font-size: 1.02rem; }
.kvchat-close { border: 0; background: none; font-size: 1.6rem; line-height: 1; cursor: pointer; color: var(--ink); padding: 0 4px; }
.kvchat-log > * { flex-shrink: 0; }
.kvchat-log { overflow-y: auto; padding: 16px 14px 18px; display: flex; flex-direction: column; gap: 10px; overscroll-behavior: contain; }
.kvchat-msg { max-width: 88%; padding: 10px 13px; border-radius: 14px; line-height: 1.45; animation: kvchat-in .22s ease-out; }
.kvchat-bot { align-self: flex-start; background: var(--paper); border-bottom-left-radius: 4px; }
.kvchat-me { align-self: flex-end; background: var(--brand); color: #fff; border-bottom-right-radius: 4px; }
.kvchat-opts { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 2px; }
.kvchat-opt {
  border: 1.5px solid var(--brand); background: #fff; color: var(--brand-dark); border-radius: 999px; padding: 7px 13px;
  font: 600 .88rem var(--font); cursor: pointer; text-decoration: none; text-align: left;
}
.kvchat-opt:hover, .kvchat-opt:focus-visible { background: var(--brand-tint); }
.kvchat-opt.is-restart { border-style: dashed; border-color: var(--cut); color: var(--muted); font-weight: 500; }
.kvchat-link { align-self: flex-start; display: inline-block; background: var(--ink); color: #fff; border-radius: 999px; padding: 8px 15px; font-weight: 600; font-size: .88rem; }
.kvchat-link:hover { color: #fff; opacity: .9; }
.kvchat-products { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 6px; scroll-snap-type: x mandatory; }
.kvchat-prod {
  flex: 0 0 128px; scroll-snap-align: start; border: 1.5px dashed var(--cut); border-radius: 12px; padding: 7px; color: var(--ink);
  display: flex; flex-direction: column; gap: 4px; font-size: .82rem; line-height: 1.3; background: #fff;
}
.kvchat-prod img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; background: var(--paper); mix-blend-mode: multiply; }
.kvchat-prod b { color: var(--brand-dark); }
.kvchat-typing { align-self: flex-start; color: var(--muted); letter-spacing: 3px; padding: 4px 10px; }
@keyframes kvchat-in { from { opacity: 0; transform: translateY(6px); } }
@media (prefers-reduced-motion: reduce) { .kvchat-msg { animation: none; } .kvchat-fab { transition: none; } }
@media (max-width: 560px) {
  .kvchat { right: 12px; bottom: 12px; }
  .kvchat-fab.has-label span { display: none; }
  .kvchat-fab { padding: 0; width: 52px; height: 52px; min-width: 0; }
}

/* Hírlevél-feliratkozás a lábléc tetején */
.footer-news { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 14px 40px; align-items: start; padding: 40px 20px 34px; border-bottom: 1px solid var(--line); }
.footer-news h4 { margin: 0 0 6px; font-size: 1.05rem; }
.footer-news-text p { margin: 0; color: var(--muted); font-size: .95rem; max-width: 40ch; }
.footer-news-row { display: flex; gap: 8px; }
.footer-news-row input { flex: 1 1 auto; min-width: 0; font: inherit; padding: 11px 14px; border: 1px solid #d7d7d7; border-radius: 10px; background: #fff; }
.footer-news-row input:focus { outline: 2px solid var(--brand); border-color: transparent; }
.footer-news-row .btn { flex: none; }
.footer-news-consent { align-items: flex-start !important; margin: 10px 0 0; font-size: .82rem; color: var(--muted); line-height: 1.45; }
.footer-news-consent input { margin-top: 2px; flex: none; }
.footer-news-msg { margin: 8px 0 0; font-size: .9rem; min-height: 0; }
.footer-news-msg:empty { display: none; }
.footer-news-msg.is-ok { color: var(--ok); }
.footer-news-msg.is-error { color: var(--sale); }
.hp-field { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
@media (max-width: 760px) {
  .footer-news { grid-template-columns: 1fr; padding: 30px 20px 26px; }
  .footer-news-row { flex-direction: column; }
}

/* „Hol tart a rendelésem?” — lépések */
.status-steps { list-style: none; margin: 6px 0 18px; padding: 0; }
.status-steps li { position: relative; display: flex; gap: 12px; align-items: flex-start; padding: 0 0 16px; color: var(--muted); }
.status-steps li:not(:last-child)::before { content: ''; position: absolute; left: 11px; top: 26px; bottom: 2px; width: 2px; background: var(--line); }
.status-steps li.is-done:not(:last-child)::before { background: var(--ok); }
.status-steps li.is-done { color: var(--ink); }
.status-dot { flex: none; width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line); background: #fff; display: grid; place-items: center; font-size: .75rem; font-weight: 700; color: #fff; }
.status-steps li.is-done .status-dot { background: var(--ok); border-color: var(--ok); }
.status-steps small { display: block; color: var(--muted); font-size: .85rem; margin-top: 2px; }
.status-cancelled { color: var(--sale); }
.footer-news-consent { display: flex; gap: 8px; }
