/* Bűvös Kuckó – stabil, egységes storefront réteg (2026-10) */
:root {
  --bk-bg: #070706;
  --bk-surface: #11100e;
  --bk-surface-2: #17140f;
  --bk-line: rgba(224, 179, 76, .24);
  --bk-line-strong: rgba(224, 179, 76, .48);
  --bk-gold: #e2b74f;
  --bk-gold-light: #ffe08a;
  --bk-text: #f7f3ea;
  --bk-muted: #b9b2a6;
  --bk-success: #70d990;
  --bk-danger: #ff766f;
  --bk-radius: 18px;
  --bk-shadow: 0 18px 50px rgba(0, 0, 0, .28);
}

body.storefront {
  min-width: 320px;
  overflow-x: hidden;
  background: var(--bk-bg);
  color: var(--bk-text);
  -webkit-font-smoothing: antialiased;
}

body.storefront :focus-visible {
  outline: 3px solid var(--bk-gold-light);
  outline-offset: 3px;
}

body.storefront img {
  max-width: 100%;
}

/* Header: a navigáció egy sorban marad, kis kijelzőn vízszintesen görgethető. */
body.storefront .topline {
  min-height: 34px;
  padding: 7px clamp(14px, 3vw, 44px);
  gap: 18px;
}

body.storefront .reference-header {
  min-height: 82px;
  padding-inline: clamp(16px, 4vw, 64px);
}

body.storefront .category-ribbon {
  display: flex !important;
  justify-content: center;
  gap: 0 !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  padding: 0 clamp(12px, 3vw, 42px) !important;
  scrollbar-width: thin;
  scrollbar-color: var(--bk-gold) transparent;
  scroll-snap-type: x proximity;
}

body.storefront .category-ribbon a {
  display: inline-flex !important;
  flex: 0 0 auto !important;
  width: auto !important;
  min-width: max-content !important;
  min-height: 48px !important;
  align-items: center;
  justify-content: center;
  padding: 0 19px !important;
  border-radius: 0 !important;
  font-size: 12px !important;
  line-height: 1 !important;
  white-space: nowrap !important;
  scroll-snap-align: start;
}

body.storefront .category-ribbon a.category-artofbeats {
  color: #151107 !important;
  -webkit-text-fill-color: #151107 !important;
  background: linear-gradient(135deg, #ffe682, #ffc932) !important;
}

body.storefront .category-ribbon a.category-turulrend {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  background: linear-gradient(135deg, #dd343a, #9f0d15) !important;
}

body.storefront .nav-dropdown-panel a > span img {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  object-fit: cover;
}

/* Termékkatalógus: kevesebb vizuális zaj, egységes kártyamagasság. */
body.storefront .premium-product-grid {
  align-items: stretch;
  gap: clamp(14px, 2vw, 24px) !important;
}

body.storefront .premium-product-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--bk-line) !important;
  border-radius: var(--bk-radius) !important;
  background: linear-gradient(155deg, rgba(24, 21, 16, .98), rgba(8, 8, 7, .98)) !important;
  box-shadow: 0 12px 34px rgba(0, 0, 0, .2) !important;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

body.storefront .premium-product-card:hover {
  transform: translateY(-3px);
  border-color: var(--bk-line-strong) !important;
  box-shadow: var(--bk-shadow) !important;
}

body.storefront .premium-product-card .product-media {
  display: block;
  overflow: hidden;
  background: #0d0c0a;
}

body.storefront .premium-product-card .product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}

body.storefront .premium-product-card:hover .product-media img {
  transform: scale(1.025);
}

body.storefront .premium-product-card .product-body {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 8px;
}

body.storefront .premium-product-card h3 {
  display: -webkit-box;
  min-height: 2.7em;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-height: 1.35;
}

body.storefront .premium-product-card .product-card-summary {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

body.storefront .premium-product-card .product-meta {
  margin-top: auto;
}

body.storefront .premium-product-card form,
body.storefront .premium-product-card .product-card-actions {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px !important;
  align-items: stretch !important;
  margin-top: 4px;
}

body.storefront .premium-product-card .btn {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  margin: 0 !important;
}

/* Főoldali terméksor: azonos méret és könnyen kattintható vezérlés. */
body.storefront .bk-product-carousel {
  gap: 16px;
  scroll-padding-inline: 16px;
  scrollbar-color: var(--bk-gold) rgba(255, 255, 255, .06);
}

body.storefront .bk-product-card {
  overflow: hidden;
  border: 1px solid var(--bk-line) !important;
  border-radius: 16px !important;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .2);
}

body.storefront .bk-product-card > a:first-child {
  display: block;
  overflow: hidden;
  background: #0e0d0b;
}

body.storefront .bk-product-card > a:first-child img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body.storefront .bk-product-card h3 {
  display: -webkit-box;
  min-height: 2.55em;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

/* Termékoldali méretválasztó: egyértelmű gombok, olvasható összesítés. */
body.storefront .product-size-picker {
  border: 1px solid var(--bk-line-strong) !important;
  background: linear-gradient(155deg, rgba(25, 22, 16, .98), rgba(10, 10, 8, .98)) !important;
  box-shadow: inset 0 1px rgba(255, 255, 255, .03);
}

body.storefront .product-size-card {
  min-width: 0;
}

body.storefront .size-stepper {
  min-height: 44px;
}

body.storefront .size-stepper button {
  min-width: 36px;
  touch-action: manipulation;
}

body.storefront .size-selection-summary {
  border-color: var(--bk-line) !important;
  background: rgba(226, 183, 79, .07) !important;
}

/* Pénztár: a rádiógombok és pipák valódi, kontrasztos választók. */
body.storefront .checkout-option,
body.storefront .checkout-check-card {
  position: relative;
  border: 1px solid rgba(226, 183, 79, .28) !important;
  border-radius: 15px !important;
  background: linear-gradient(145deg, #17140f, #0d0c0a) !important;
  color: var(--bk-text) !important;
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

body.storefront .checkout-option:hover,
body.storefront .checkout-check-card:hover {
  border-color: rgba(255, 216, 119, .7) !important;
  transform: translateY(-1px);
}

body.storefront .checkout-option:has(input:checked),
body.storefront .checkout-check-card:has(input:checked) {
  border-color: var(--bk-gold) !important;
  background: linear-gradient(145deg, rgba(226, 183, 79, .17), rgba(20, 17, 12, .98)) !important;
  box-shadow: 0 0 0 2px rgba(226, 183, 79, .12);
}

body.storefront .checkout-main input[type="radio"],
body.storefront .checkout-main input[type="checkbox"] {
  width: 22px !important;
  min-width: 22px !important;
  height: 22px !important;
  min-height: 22px !important;
  margin: 1px 0 0 !important;
  padding: 0 !important;
  border: 2px solid #9f947f !important;
  accent-color: var(--bk-gold);
  cursor: pointer;
}

body.storefront .checkout-check-copy {
  min-width: 0;
}

body.storefront .checkout-check-copy strong {
  display: block;
  color: #fff !important;
  font-size: 14px;
  line-height: 1.42;
}

body.storefront .checkout-check-copy small,
body.storefront .checkout-option small {
  display: block;
  margin-top: 3px;
  color: var(--bk-muted) !important;
  font-size: 12px;
  line-height: 1.45;
}

body.storefront .checkout-check-copy a {
  color: var(--bk-gold-light) !important;
  font-weight: 800;
}

body.storefront .checkout-check-badge,
body.storefront .checkout-check-price {
  flex: 0 0 auto;
  align-self: center;
  border: 1px solid var(--bk-line);
  border-radius: 999px;
  padding: 5px 8px;
  color: var(--bk-gold-light) !important;
  background: rgba(226, 183, 79, .08);
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
  letter-spacing: .04em;
}

body.storefront .checkout-check-badge.is-required {
  border-color: rgba(255, 118, 111, .4);
  color: #ffc2be !important;
  background: rgba(255, 118, 111, .08);
}

/* Barátságos hibaoldal. */
body.storefront .store-error-page {
  display: grid;
  min-height: 62vh;
  place-items: center;
  padding: clamp(32px, 7vw, 100px) 18px;
  background:
    radial-gradient(circle at 50% 5%, rgba(226, 183, 79, .13), transparent 42%),
    var(--bk-bg);
}

body.storefront .store-error-card {
  width: min(680px, 100%);
  padding: clamp(28px, 5vw, 58px);
  border: 1px solid var(--bk-line);
  border-radius: 26px;
  background: linear-gradient(155deg, #17140f, #090908);
  box-shadow: var(--bk-shadow);
  text-align: center;
}

body.storefront .store-error-code {
  display: block;
  color: var(--bk-gold);
  font-size: clamp(72px, 14vw, 142px);
  font-weight: 950;
  line-height: .85;
  letter-spacing: -.07em;
  opacity: .22;
}

body.storefront .store-error-card h1 {
  margin: 12px 0;
  font-size: clamp(28px, 5vw, 46px);
}

body.storefront .store-error-card > p:not(.eyebrow) {
  max-width: 520px;
  margin: 0 auto 24px;
  color: var(--bk-muted);
  line-height: 1.7;
}

body.storefront .store-error-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

@media (min-width: 1024px) {
  body.storefront .premium-product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 900px) {
  body.storefront .topline {
    justify-content: center;
    min-height: 30px;
    padding: 6px 12px;
    text-align: center;
  }

  body.storefront .topline span:nth-child(2),
  body.storefront .topline a {
    display: none;
  }

  body.storefront .reference-header {
    min-height: 64px;
    padding: 8px 14px;
  }

  body.storefront .reference-header .brand strong {
    font-size: 20px;
  }

  body.storefront .reference-header .brand small {
    display: none;
  }

  body.storefront .category-ribbon {
    justify-content: flex-start;
    padding: 6px 10px !important;
    gap: 6px !important;
    background: #0a0908 !important;
  }

  body.storefront .category-ribbon a,
  body.storefront .category-ribbon a.category-turulrend,
  body.storefront .category-ribbon a.category-artofbeats {
    min-height: 38px !important;
    padding: 0 13px !important;
    border: 1px solid rgba(226, 183, 79, .18) !important;
    border-radius: 10px !important;
    font-size: 11px !important;
    letter-spacing: .035em !important;
  }

  body.storefront .category-ribbon a.category-artofbeats {
    position: static !important;
    color: #151107 !important;
    -webkit-text-fill-color: #151107 !important;
    font-size: 11px !important;
  }

  body.storefront .category-ribbon a.category-artofbeats::after {
    content: none !important;
  }

  body.storefront .bk-cinema-hero {
    min-height: auto !important;
  }

  body.storefront .bk-hero-stage {
    min-height: min(86vw, 430px) !important;
  }

  body.storefront .checkout-check-card {
    display: grid !important;
    grid-template-columns: 22px minmax(0, 1fr);
    gap: 11px !important;
    padding: 14px !important;
  }

  body.storefront .checkout-check-card .checkout-check-badge,
  body.storefront .checkout-check-card .checkout-check-price {
    grid-column: 2;
    justify-self: start;
  }
}

@media (max-width: 620px) {
  body.storefront .premium-product-grid,
  body.storefront .category-products .premium-product-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }

  body.storefront .premium-product-card,
  body.storefront .category-products .premium-product-card {
    display: flex !important;
    min-height: 0 !important;
    flex-direction: column !important;
    border-radius: 14px !important;
  }

  body.storefront .premium-product-card .product-media,
  body.storefront .category-products .premium-product-card .product-media {
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: 1 / 1 !important;
  }

  body.storefront .premium-product-card .product-body,
  body.storefront .category-products .premium-product-card .product-body {
    flex: 1;
    padding: 11px !important;
    gap: 6px !important;
  }

  body.storefront .premium-product-card .product-body > small,
  body.storefront .premium-product-card .product-card-summary,
  body.storefront .premium-product-card .stock-line,
  body.storefront .premium-product-card .product-meta > span,
  body.storefront .premium-product-card .btn.mini {
    display: none !important;
  }

  body.storefront .premium-product-card h3,
  body.storefront .category-products .premium-product-card h3 {
    min-height: 2.55em !important;
    margin: 0 !important;
    font-size: 14px !important;
    line-height: 1.28 !important;
  }

  body.storefront .premium-product-card .product-meta strong {
    font-size: 17px !important;
  }

  body.storefront .premium-product-card form,
  body.storefront .premium-product-card .product-card-actions {
    display: block !important;
    margin-top: 2px;
  }

  body.storefront .premium-product-card .btn.primary {
    width: 100%;
    min-height: 40px !important;
    padding: 9px 6px !important;
    font-size: 11px !important;
    line-height: 1.2;
  }

  body.storefront .product-badge-stack {
    inset: 7px auto auto 7px !important;
    gap: 4px !important;
  }

  body.storefront .product-badge-stack b {
    padding: 4px 6px !important;
    font-size: 9px !important;
  }

  body.storefront .bk-product-carousel {
    grid-auto-columns: minmax(158px, 72vw) !important;
  }

  body.storefront .footer {
    gap: 26px !important;
  }

  body.storefront .store-error-actions {
    display: grid;
  }

  body.storefront .store-error-actions .btn {
    width: 100%;
  }
}

@media (max-width: 360px) {
  body.storefront .premium-product-grid,
  body.storefront .category-products .premium-product-grid {
    gap: 8px !important;
  }

  body.storefront .premium-product-card .product-body,
  body.storefront .category-products .premium-product-card .product-body {
    padding: 9px !important;
  }

  body.storefront .premium-product-card h3,
  body.storefront .category-products .premium-product-card h3 {
    font-size: 13px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.storefront *,
  body.storefront *::before,
  body.storefront *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}
