:root {
  --header-height: 64px;
  --filter-bar-height: 36px;
  --stats-bar-height: 42px;
  --promo-strip-height: 32px;
  --color-bg: #0f172a;
  --color-bg-alt: #020617;
  --color-card: #111827;
  --color-primary: #6366f1;
  --color-primary-hover: #4f46e5;
  --color-text: #e5e7eb;
  --color-muted: #9ca3af;
  --color-danger: #ef4444;
  --radius-lg: 12px;
  --radius-md: 8px;
  --shadow-soft: 0 20px 40px rgba(0, 0, 0, 0.45);
  /* Category palette (0–14) for display sections and product cards */
  --category-0: #facc15;
  --category-1: #8b5cf6;
  --category-2: #3b82f6;
  --category-3: #ef4444;
  --category-4: #10b981;
  --category-5: #f97316;
  --category-6: #ec4899;
  --category-7: #06b6d4;
  --category-8: #84cc16;
  --category-9: #f43f5e;
  --category-10: #6366f1;
  --category-11: #14b8a6;
  --category-12: #0ea5e9;
  --category-13: #d946ef;
  --category-14: #64748b;
}

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

/* ========== Layout & base ========== */
body {
  margin: 0;
  padding-top: calc(var(--header-height) + var(--filter-bar-height) + var(--stats-bar-height));
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #020617;
  color: var(--color-text);
  transition: background-color 0.7s ease-in-out;
}

/* Displays wrapper with scroll progress bar */
.displays-wrapper {
  position: relative;
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

/* Backmost: original gradient so it stays visible behind tint layers */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  background: radial-gradient(ellipse 120% 80% at 50% 0%, #1e293b 0%, #020617 45%, #000 100%);
  background-attachment: fixed;
}

/* Filter category tint: two layers for crossfade (opacity only) */
.category-tint-layer {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    transparent 0%,
    transparent 18%,
    var(--category-tint-layer-color, transparent) 35%,
    var(--category-tint-layer-color, transparent) 65%,
    transparent 82%,
    transparent 100%
  );
  background-attachment: fixed;
  opacity: 0;
  transition: opacity 0.7s ease-in-out;
}

#category-tint-a { --category-tint-layer-color: var(--category-tint-a, transparent); }
#category-tint-b { --category-tint-layer-color: var(--category-tint-b, transparent); }

/* Scroll-based category tint: two layers for crossfade */
.category-bg-overlay {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-color: #020617;
  opacity: 0;
  transition: opacity 0.8s ease-in-out, background-color 0.8s ease-in-out;
}

body.has-promo-strip {
  padding-top: calc(var(--header-height) + var(--filter-bar-height) + var(--stats-bar-height));
}

.admin-page {
  padding-top: var(--header-height);
}

/* Layout */

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem;
}

/* ========== Top fixed (stats, header, filter) ========== */
/* Fix felső sáv – egyáltalán nem gördül */
.top-fixed {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 11;
  background: rgba(15, 23, 42, 0.98);
}

/* Állapotmutató sáv – sokkal áttetszőbb (gradient marad mozgó) */
.stats-bar {
  width: 100%;
  min-height: var(--stats-bar-height);
  display: flex;
  align-items: center;
  background: linear-gradient(90deg, rgba(30, 58, 95, 0.12) 0%, rgba(45, 74, 124, 0.12) 25%, rgba(99, 102, 241, 0.14) 50%, rgba(124, 58, 237, 0.12) 75%, rgba(30, 58, 95, 0.12) 100%);
  background-size: 200% 100%;
  animation: stats-bar-shine 8s ease-in-out infinite;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 2px 12px rgba(99, 102, 241, 0.08);
}

@keyframes stats-bar-shine {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.stats-bar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  padding: 0.5rem 1rem;
  flex-wrap: wrap;
  position: relative;
}

.stat-item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  white-space: nowrap;
}

.stat-item .stat-label {
  color: rgba(148, 163, 184, 0.95);
  font-size: 1em;
  font-weight: 500;
}

.stat-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.4));
  background-color: currentColor;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

/* Stats bar distinct icons (mask so color comes from nth-child) */
.stat-icon-user {
  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='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='3.5'/%3E%3Cpath d='M5 21v-2a7 7 0 0 1 14 0v2'/%3E%3C/svg%3E") center/contain no-repeat;
  -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='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='3.5'/%3E%3Cpath d='M5 21v-2a7 7 0 0 1 14 0v2'/%3E%3C/svg%3E") center/contain no-repeat;
}
.stat-icon-cube {
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M12 2L2 7v10l10 5 10-5V7L12 2zm0 2.18l6.9 3.45L12 11.09 5.1 7.63 12 4.18zM4 8.82l7 3.5v7.36l-7-3.5V8.82zm9 10.86v-7.36l7-3.5v7.36l-7 3.5z'/%3E%3C/svg%3E") center/contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M12 2L2 7v10l10 5 10-5V7L12 2zm0 2.18l6.9 3.45L12 11.09 5.1 7.63 12 4.18zM4 8.82l7 3.5v7.36l-7-3.5V8.82zm9 10.86v-7.36l7-3.5v7.36l-7 3.5z'/%3E%3C/svg%3E") center/contain no-repeat;
}
.stat-icon-bag {
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M18 6h-2c0-2.21-1.79-4-4-4S8 3.79 8 6H6c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zm-6-2c1.1 0 2 .9 2 2h-4c0-1.1.9-2 2-2zm6 16H6V8h2v2c0 .55.45 1 1 1s1-.45 1-1V8h4v2c0 .55.45 1 1 1s1-.45 1-1V8h2v12z'/%3E%3C/svg%3E") center/contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M18 6h-2c0-2.21-1.79-4-4-4S8 3.79 8 6H6c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zm-6-2c1.1 0 2 .9 2 2h-4c0-1.1.9-2 2-2zm6 16H6V8h2v2c0 .55.45 1 1 1s1-.45 1-1V8h4v2c0 .55.45 1 1 1s1-.45 1-1V8h2v12z'/%3E%3C/svg%3E") center/contain no-repeat;
}
.stat-icon-heart {
  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='1.5' stroke-linejoin='round'%3E%3Cpath d='M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z'/%3E%3C/svg%3E") center/contain no-repeat;
  -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='1.5' stroke-linejoin='round'%3E%3Cpath d='M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z'/%3E%3C/svg%3E") center/contain no-repeat;
}

.stat-value {
  font-weight: normal;
  font-size: 1em;
  letter-spacing: 0.02em;
}

.stat-item:nth-child(1) .stat-value { color: #facc15; }
.stat-item:nth-child(1) .stat-icon { color: #facc15; }
.stat-item:nth-child(2) .stat-value { color: #e07c6b; }
.stat-item:nth-child(2) .stat-icon { color: #e07c6b; }
.stat-item:nth-child(3) .stat-value { color: #22c55e; }
.stat-item:nth-child(3) .stat-icon { color: #22c55e; }
.stat-item:nth-child(4) .stat-value { color: #60a5fa; }
.stat-item:nth-child(4) .stat-icon { color: #60a5fa; }

.nav-link.nav-admin.hidden,
.nav-link.nav-admin-btn.hidden {
  display: none !important;
}

.stats-bar-promo-btn {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.6rem;
  border: 1px solid rgba(251, 146, 60, 0.4);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.92);
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s, border-color 0.2s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.stats-bar-promo-btn .promo-label,
.stats-bar-promo-btn .promo-countdown {
  background: linear-gradient(90deg, #ea580c 0%, #f97316 45%, #fb923c 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stats-bar-promo-btn:hover {
  opacity: 0.95;
  transform: scale(1.02);
  border-color: rgba(251, 146, 60, 0.6);
}

.stats-bar-promo-btn .promo-progress-circles {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: 0.35rem;
}

.stats-bar-promo-btn .promo-circle {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  border: 1.5px solid rgba(251, 146, 60, 0.7);
  background: transparent;
  transition: background 0.15s ease;
}

.stats-bar-promo-btn .promo-circle.filled {
  background: linear-gradient(135deg, #fb923c 0%, #ea580c 100%);
  border-color: #ea580c;
}

.stats-bar-promo-btn .promo-code-reveal {
  margin-left: 0;
  font-weight: 700;
  letter-spacing: 0.08em;
  background: linear-gradient(90deg, #ea580c 0%, #f97316 45%, #fb923c 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stats-bar-promo-btn.promo-code-visible .promo-btn-text,
.stats-bar-promo-btn.promo-code-visible .promo-progress-circles {
  display: none;
}

.stats-bar-promo-btn.promo-code-visible .promo-code-reveal {
  display: inline !important;
}

.stats-bar-promo-btn.hidden {
  display: none !important;
}

/* Extra kedvezmény gomb a szűrő sáv mellett (uganolyan kinézet) */
.filter-bar-promo-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.6rem;
  border: 1px solid rgba(251, 146, 60, 0.4);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.92);
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s, border-color 0.2s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.filter-bar-promo-btn .promo-label,
.filter-bar-promo-btn .promo-countdown {
  background: linear-gradient(90deg, #ea580c 0%, #f97316 45%, #fb923c 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.filter-bar-promo-btn:hover {
  opacity: 0.95;
  transform: scale(1.02);
  border-color: rgba(251, 146, 60, 0.6);
}

.filter-bar-promo-btn .promo-progress-circles {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: 0.35rem;
}

.filter-bar-promo-btn .promo-circle {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  border: 1.5px solid rgba(251, 146, 60, 0.7);
  background: transparent;
  transition: background 0.15s ease;
}

.filter-bar-promo-btn .promo-circle.filled {
  background: linear-gradient(135deg, #fb923c 0%, #ea580c 100%);
  border-color: #ea580c;
}

.filter-bar-promo-btn .promo-code-reveal {
  margin-left: 0;
  font-weight: 700;
  letter-spacing: 0.08em;
  background: linear-gradient(90deg, #ea580c 0%, #f97316 45%, #fb923c 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.filter-bar-promo-btn.promo-code-visible .promo-btn-text,
.filter-bar-promo-btn.promo-code-visible .promo-progress-circles {
  display: none;
}

.filter-bar-promo-btn.promo-code-visible .promo-code-reveal {
  display: inline !important;
}

.filter-bar-promo-btn.hidden {
  display: none !important;
}

@media (max-width: 640px) {
  .stats-bar-inner {
    gap: 1.25rem;
    padding: 0.4rem 0.75rem;
  }
  .stat-item {
    gap: 0.35rem;
    font-size: 0.75rem;
  }
  .stats-bar-promo-btn {
    margin-left: 0;
    width: 100%;
    justify-content: center;
  }
}

/* ========== Header & nav ========== */
.header {
  min-height: 40px;
  overflow: visible;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.3);
}

/* Felső banner: ugyanolyan széles mint a .container alatta, lekerekített sarkok, teljes kitöltés */
/* Gördülő logók */
.brands-scroll-wrapper {
  overflow: hidden;
  margin: 2rem 0;
  padding: 1rem 0;
  position: relative;
}

.brands-scroll-wrapper::before,
.brands-scroll-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 100px;
  z-index: 2;
  pointer-events: none;
}

.brands-scroll-wrapper::before {
  left: 0;
  background: linear-gradient(to right, var(--color-bg), transparent);
}

.brands-scroll-wrapper::after {
  right: 0;
  background: linear-gradient(to left, var(--color-bg), transparent);
}

.brands-scroll {
  display: flex;
  gap: 2rem;
  animation: scroll-brands 30s linear infinite;
  white-space: nowrap;
}

.brand-logo {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--color-text);
  padding: 0.5rem 1rem;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: var(--radius-md);
  white-space: nowrap;
  flex-shrink: 0;
}

@keyframes scroll-brands {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}


.top-rated-item-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.top-rated-item {
  border-radius: var(--radius-md);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  border: 2px solid rgba(148, 163, 184, 0.3);
  background: rgba(15, 23, 42, 0.6);
  padding: 0.75rem;
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.top-rated-item-name {
  font-size: 0.65rem;
  color: var(--color-muted);
  text-align: center;
  line-height: 1.2;
  padding: 0 0.25rem;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.top-rated-item-wrapper:hover .top-rated-item {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
  border-color: #10b981;
}

.top-rated-position {
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(148, 163, 184, 0.5);
  border-radius: 50%;
  width: 28px;
  height: 28px;
  min-width: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fbbf24;
  flex-shrink: 0;
}

.top-rated-rating {
  font-size: 0.85rem;
  color: #fbbf24;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex: 1;
  justify-content: flex-end;
}

.top-rated-star {
  font-size: 1rem;
  color: #fbbf24;
}

/* ========== Banner ========== */
.banner-wrap {
  position: relative;
  width: 100%;
  margin-top: 5rem;
  height: 440px;
  flex-shrink: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-bg-alt);
}

.banner-link {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  line-height: 0;
}

.banner-link:not([href]) {
  pointer-events: none;
}

.banner-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: opacity 0.8s ease;
}

.banner-image.active {
  opacity: 1;
  z-index: 1;
}

.banner-image:not(.active) {
  opacity: 0;
  z-index: 0;
}

.banner-dots {
  position: absolute;
  bottom: 0.75rem;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  z-index: 2;
}

.banner-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.9);
  background: transparent;
  transition: background 0.25s ease;
}

.banner-dot.active {
  background: rgba(255, 255, 255, 0.95);
}

/* Alsó két banner: egyenként ~526×225 px (grid 2 oszlop, gap 1rem, container max 1100px) */
.banner-boxes {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 1.5rem 0 2rem 0;
}

.banner-box-link {
  display: block;
  position: relative;
  height: 225px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: var(--color-bg-alt);
}

.banner-box-link:not([href]) {
  pointer-events: none;
}

.banner-box-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

@media (max-width: 640px) {
  .banner-boxes {
    grid-template-columns: 1fr;
  }
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 40px;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo-img {
  height: 68px;
  width: auto;
  max-width: 280px;
  object-fit: contain;
  object-position: left center;
}

.nav-link-disabled {
  position: relative;
  cursor: default;
  opacity: 0.7;
}

.nav-link-disabled:hover {
  border-color: transparent;
  background: transparent;
}

.nav-link-disabled[title]::after {
  content: attr(title);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-bottom: 0.25rem;
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  white-space: nowrap;
  background: #1e293b;
  border: 1px solid rgba(148, 163, 184, 0.4);
  border-radius: var(--radius-md);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}

.nav-link-disabled[title]:hover::after {
  opacity: 1;
}

.cart-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem;
  width: 12.5rem;
  min-width: 12.5rem;
  flex-shrink: 0;
}

.header-countdown {
  font-size: 0.8rem;
  font-variant-numeric: tabular-nums;
  color: #facc15;
  padding: 0.2rem 0.5rem;
  background: rgba(234, 179, 8, 0.2);
  border-radius: 999px;
  width: 2.75rem;
  min-width: 2.75rem;
  text-align: center;
  display: inline-block;
  flex-shrink: 0;
}

/* Visszaszámláló mindig foglal helyet, üres kosárnál csak nem látszik */
.header-countdown.hidden {
  visibility: hidden;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.nav-link {
  color: var(--color-muted);
  text-decoration: none;
  font-size: 0.9rem;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.nav-link-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
  background-color: currentColor;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

/* Nav link icons (mask so color inherits) */
.nav-icon-info {
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z'/%3E%3C/svg%3E") center/contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z'/%3E%3C/svg%3E") center/contain no-repeat;
}
.nav-icon-gift {
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M20 6h-2.18c.11-.31.18-.65.18-1 0-1.66-1.34-3-3-3-1.05 0-2.05.5-2.67 1.26L12 5l-.33-.74C10.88 3.5 9.88 3 8.84 3 7.34 3 6 4.34 6 5.99c0 .35.07.69.18 1H4c-1.11 0-1.99.89-1.99 2L2 19c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V8c0-1.11-.89-2-2-2zm-5-2c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zM8 4c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zm4 15H4v-2h4v-2H4V8h8v11zm4 0h-4V8h4v11z'/%3E%3C/svg%3E") center/contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M20 6h-2.18c.11-.31.18-.65.18-1 0-1.66-1.34-3-3-3-1.05 0-2.05.5-2.67 1.26L12 5l-.33-.74C10.88 3.5 9.88 3 8.84 3 7.34 3 6 4.34 6 5.99c0 .35.07.69.18 1H4c-1.11 0-1.99.89-1.99 2L2 19c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V8c0-1.11-.89-2-2-2zm-5-2c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zM8 4c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zm4 15H4v-2h4v-2H4V8h8v11zm4 0h-4V8h4v11z'/%3E%3C/svg%3E") center/contain no-repeat;
}
.nav-icon-shop {
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8h5z'/%3E%3C/svg%3E") center/contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8h5z'/%3E%3C/svg%3E") center/contain no-repeat;
}
.nav-icon-cart {
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M7 18c-1.1 0-1.99.9-1.99 2S5.9 22 7 22s2-.9 2-2-.9-2-2-2zM1 2v2h2l3.6 7.59-1.35 2.45c-.16.28-.25.61-.25.96 0 1.1.9 2 2 2h12v-2H7.42c-.14 0-.25-.11-.25-.25l.03-.12.9-1.63h7.45c.75 0 1.41-.41 1.75-1.03l3.58-6.49c.08-.14.12-.31.12-.48 0-.55-.45-1-1-1H5.21l-.94-2H1zm16 16c-1.1 0-1.99.9-1.99 2s.89 2 1.99 2 2-.9 2-2-.9-2-2-2z'/%3E%3C/svg%3E") center/contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M7 18c-1.1 0-1.99.9-1.99 2S5.9 22 7 22s2-.9 2-2-.9-2-2-2zM1 2v2h2l3.6 7.59-1.35 2.45c-.16.28-.25.61-.25.96 0 1.1.9 2 2 2h12v-2H7.42c-.14 0-.25-.11-.25-.25l.03-.12.9-1.63h7.45c.75 0 1.41-.41 1.75-1.03l3.58-6.49c.08-.14.12-.31.12-.48 0-.55-.45-1-1-1H5.21l-.94-2H1zm16 16c-1.1 0-1.99.9-1.99 2s.89 2 1.99 2 2-.9 2-2-.9-2-2-2z'/%3E%3C/svg%3E") center/contain no-repeat;
}
.nav-icon-lock {
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2z'/%3E%3C/svg%3E") center/contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2z'/%3E%3C/svg%3E") center/contain no-repeat;
}
.nav-icon-admin {
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z'/%3E%3C/svg%3E") center/contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z'/%3E%3C/svg%3E") center/contain no-repeat;
}
.nav-icon-facebook {
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M24 12.073c0-6.627-5.373-12-12-12s-12 5.373-12 12c0 5.99 4.388 10.954 10.125 11.854v-8.385H7.078v-3.47h3.047V9.43c0-3.007 1.792-4.669 4.533-4.669 1.312 0 2.686.235 2.686.235v2.953H15.83c-1.491 0-1.956.925-1.956 1.874v2.25h3.328l-.532 3.47h-2.796v8.385C19.612 23.027 24 18.062 24 12.073z'/%3E%3C/svg%3E") center/contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M24 12.073c0-6.627-5.373-12-12-12s-12 5.373-12 12c0 5.99 4.388 10.954 10.125 11.854v-8.385H7.078v-3.47h3.047V9.43c0-3.007 1.792-4.669 4.533-4.669 1.312 0 2.686.235 2.686.235v2.953H15.83c-1.491 0-1.956.925-1.956 1.874v2.25h3.328l-.532 3.47h-2.796v8.385C19.612 23.027 24 18.062 24 12.073z'/%3E%3C/svg%3E") center/contain no-repeat;
}
.nav-icon-discord {
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M20.317 4.37a19.791 19.791 0 0 0-4.885-1.515.074.074 0 0 0-.079.037c-.21.375-.444.864-.608 1.25a18.27 18.27 0 0 0-5.487 0 12.64 12.64 0 0 0-.617-1.25.077.077 0 0 0-.079-.037A19.736 19.736 0 0 0 3.677 4.37a.07.07 0 0 0-.032.027C.533 9.046-.32 13.58.099 18.057a.082.082 0 0 0 .031.057 19.9 19.9 0 0 0 5.993 3.03.078.078 0 0 0 .084-.028c.462-.63.874-1.295 1.226-1.994a.076.076 0 0 0-.041-.106 13.107 13.107 0 0 1-1.872-.892.077.077 0 0 1-.008-.128 10.2 10.2 0 0 0 .372-.292.074.074 0 0 1 .077-.01c3.928 1.793 8.18 1.793 12.062 0a.074.074 0 0 1 .078.01c.12.098.246.198.373.292a.077.077 0 0 1-.006.127 12.299 12.299 0 0 1-1.873.892.077.077 0 0 0-.041.107c.36.698.772 1.362 1.225 1.993a.076.076 0 0 0 .084.028 19.839 19.839 0 0 0 6.002-3.03.077.077 0 0 0 .032-.054c.5-5.177-.838-9.674-3.549-13.66a.061.061 0 0 0-.031-.03zM8.02 15.33c-1.183 0-2.157-1.085-2.157-2.419 0-1.333.956-2.419 2.157-2.419 1.21 0 2.176 1.096 2.157 2.42 0 1.333-.956 2.418-2.157 2.418zm7.975 0c-1.183 0-2.157-1.085-2.157-2.419 0-1.333.955-2.419 2.157-2.419 1.21 0 2.176 1.096 2.157 2.42 0 1.333-.946 2.418-2.157 2.418z'/%3E%3C/svg%3E") center/contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M20.317 4.37a19.791 19.791 0 0 0-4.885-1.515.074.074 0 0 0-.079.037c-.21.375-.444.864-.608 1.25a18.27 18.27 0 0 0-5.487 0 12.64 12.64 0 0 0-.617-1.25.077.077 0 0 0-.079-.037A19.736 19.736 0 0 0 3.677 4.37a.07.07 0 0 0-.032.027C.533 9.046-.32 13.58.099 18.057a.082.082 0 0 0 .031.057 19.9 19.9 0 0 0 5.993 3.03.078.078 0 0 0 .084-.028c.462-.63.874-1.295 1.226-1.994a.076.076 0 0 0-.041-.106 13.107 13.107 0 0 1-1.872-.892.077.077 0 0 1-.008-.128 10.2 10.2 0 0 0 .372-.292.074.074 0 0 1 .077-.01c3.928 1.793 8.18 1.793 12.062 0a.074.074 0 0 1 .078.01c.12.098.246.198.373.292a.077.077 0 0 1-.006.127 12.299 12.299 0 0 1-1.873.892.077.077 0 0 0-.041.107c.36.698.772 1.362 1.225 1.993a.076.076 0 0 0 .084.028 19.839 19.839 0 0 0 6.002-3.03.077.077 0 0 0 .032-.054c.5-5.177-.838-9.674-3.549-13.66a.061.061 0 0 0-.031-.03zM8.02 15.33c-1.183 0-2.157-1.085-2.157-2.419 0-1.333.956-2.419 2.157-2.419 1.21 0 2.176 1.096 2.157 2.42 0 1.333-.956 2.418-2.157 2.418zm7.975 0c-1.183 0-2.157-1.085-2.157-2.419 0-1.333.955-2.419 2.157-2.419 1.21 0 2.176 1.096 2.157 2.42 0 1.333-.946 2.418-2.157 2.418z'/%3E%3C/svg%3E") center/contain no-repeat;
}

.nav-social-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: auto;
}

.nav-link:hover {
  color: var(--color-text);
  border-color: rgba(148, 163, 184, 0.5);
  background: rgba(15, 23, 42, 0.9);
}

/* Login “hamarosan” tooltip on hover */
.nav-link-coming-soon {
  position: relative;
}
.nav-link-coming-soon::after {
  content: 'hamarosan';
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-bottom: 0.25rem;
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  white-space: nowrap;
  background: #1e293b;
  border: 1px solid rgba(148, 163, 184, 0.4);
  border-radius: var(--radius-md);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.nav-link-coming-soon:hover::after {
  opacity: 1;
}

.nav-link.active {
  color: #e5e7eb;
  background: rgba(99, 102, 241, 0.15);
  border-color: rgba(99, 102, 241, 0.5);
}

.filter-bar-label {
  font-size: 0.85rem;
  color: var(--color-muted);
  white-space: nowrap;
  flex-shrink: 0;
}

.filter-bar {
  padding: 0.2rem 0;
  min-height: var(--filter-bar-height);
  display: flex;
  align-items: center;
}

.filter-bar-lower {
  border-bottom: none;
  margin-top: 0;
  padding: 0.5rem 0;
}

.filter-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  flex-wrap: wrap;
}

.manufacturer-filter-wrap {
  display: flex;
  justify-content: center;
  min-width: 0;
  flex: 1;
}

/* Scrolling list under carousel: fade out at left/right edges */
.filter-bar-lower .manufacturer-filter-wrap {
  position: relative;
  overflow: hidden;
  width: 100%;
}

.filter-bar-lower .manufacturer-filter-wrap::before,
.filter-bar-lower .manufacturer-filter-wrap::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 48px;
  z-index: 2;
  pointer-events: none;
}

.filter-bar-lower .manufacturer-filter-wrap::before {
  left: 0;
  background: linear-gradient(to right, var(--color-bg-alt), transparent);
}

.filter-bar-lower .manufacturer-filter-wrap::after {
  right: 0;
  background: linear-gradient(to left, var(--color-bg-alt), transparent);
}

.manufacturer-filter {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.4rem;
  align-items: center;
  overflow-x: auto;
  overflow-y: hidden;
  min-width: 0;
  width: 100%;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  padding: 0.1rem 0;
}

/* Conveyor track: infinite scroll to the left, seamless loop (no gap after Pokémon → Összes) */
.manufacturer-filter-conveyor-track {
  display: flex;
  flex-wrap: nowrap;
  gap: 0;
  width: max-content;
  animation: conveyor-scroll 80s linear infinite;
}

.manufacturer-filter-conveyor-track .manufacturer-filter {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.75rem;
  padding: 0.35rem 0;
  padding-left: 0.75rem;  /* same as right so first/last don’t touch at carousel loop */
  padding-right: 0.75rem; /* same as gap so Pokémon → Összes has no visual gap, both segments equal width */
  flex-shrink: 0;
  width: auto; /* override base .manufacturer-filter width:100% so both copies take content width */
  min-width: max-content;
}

.manufacturer-filter-conveyor-track .manufacturer-filter:last-child {
  padding-right: 0.75rem; /* same as first segment so both halves equal width → seamless -50% loop */
}

/* 4 segments: move by one segment (-25%) for seamless loop; track is 4× width so content never ends */
@keyframes conveyor-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-25%); }
}

/* Lower bar: full-width row, chips overflow with edge fade */
.filter-bar-lower .manufacturer-filter {
  justify-content: flex-start;
  gap: 0.75rem;
  padding: 0.35rem 0;
}

/* Conveyor segments: keep horizontal padding so Pokémon and Összes don’t touch (override above) */
.filter-bar-lower .manufacturer-filter-conveyor-track .manufacturer-filter {
  padding-right: 0.75rem;
}

.nav-chip {
  flex-shrink: 0;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  padding: 0.15rem 0.65rem;
  font-size: 0.75rem;
  background: rgba(15, 23, 42, 0.9);
  color: var(--color-muted);
  cursor: pointer;
  transition: all 0.15s ease;
}

/* Lower bar chips: large text, white outline (border), fills width / overflows */
.filter-bar-lower .nav-chip {
  font-size: 1.1rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(15, 23, 42, 0.6);
  color: var(--color-text);
  white-space: nowrap;
}

.nav-chip:hover {
  border-color: rgba(129, 140, 248, 0.8);
  color: #e5e7eb;
}

.filter-bar-lower .nav-chip:hover {
  border-color: rgba(255, 255, 255, 0.75);
  color: #fff;
}

.nav-chip-active {
  background: var(--category-active-hex, #16a34a);
  color: #fff;
  border-color: var(--category-active-hex, rgba(22, 163, 74, 0.9));
  box-shadow: 0 4px 14px var(--category-active-rgba, rgba(22, 163, 74, 0.5));
}

/* Lower bar active: same style as row, no green glow – clear selected state */
.filter-bar-lower .nav-chip-active {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.85);
  box-shadow: none;
}
.filter-bar-lower .nav-chip-active:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.16);
}

.nav-chip-scroll-hint {
  background: transparent;
  border: none;
  color: var(--color-muted);
}

.nav-chip-scroll-hint:hover {
  background: transparent;
  border: none;
  color: #e5e7eb;
}

.nav-chip-scroll-hint.nav-chip-active {
  background: transparent;
  border: none;
  box-shadow: none;
  color: var(--color-muted);
}

.nav-admin,
.nav-admin-btn {
  border: none;
  color: #1c1917;
  background: #eab308;
  font-weight: 600;
  padding: 0.4rem 0.9rem;
}
.nav-admin-btn:hover {
  background: #ca8a04;
  color: #1c1917;
}

.nav-social {
  opacity: 0.85;
  padding: 0.35rem;
  cursor: pointer;
}
.nav-social:hover {
  opacity: 1;
}

.nav-social .nav-link-icon {
  margin: 0;
}

.cart-trigger {
  cursor: pointer;
  font: inherit;
  color: var(--color-muted);
  text-decoration: none;
  font-size: 0.9rem;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  transition: all 0.15s ease;
  min-width: 9rem;
  width: 9rem;
  text-align: right;
  box-sizing: border-box;
}

.cart-trigger:hover {
  color: var(--color-text);
  border-color: transparent;
  background: rgba(15, 23, 42, 0.9);
}

.cart-trigger-count {
  font-size: 0.85em;
  opacity: 0.9;
}

.cart-dropdown-panel {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 0.35rem;
  min-width: 280px;
  max-width: 360px;
  max-height: 70vh;
  overflow: auto;
  background: linear-gradient(180deg, #0f172a, #111827);
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  padding: 0.75rem;
  z-index: 20;
}

.cart-dropdown-panel.hidden {
  display: none !important;
}

.cart-dropdown-timer {
  font-size: 0.85rem;
  color: #facc15;
  margin-bottom: 0.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(55, 65, 81, 1);
}

.cart-dropdown-items {
  list-style: none;
  margin: 0 0 0.75rem 0;
  padding: 0;
  font-size: 0.85rem;
  max-height: 220px;
  overflow-y: auto;
}

.cart-dropdown-items li {
  padding: 0.35rem 0;
  border-bottom: 1px solid rgba(31, 41, 55, 1);
}

.cart-dropdown-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.cart-dropdown-item-row span {
  flex: 1;
  min-width: 0;
}

.cart-dropdown-remove {
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(148, 163, 184, 0.2);
  color: var(--color-muted);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.cart-dropdown-remove:hover {
  background: rgba(239, 68, 68, 0.3);
  color: #ef4444;
}

.cart-dropdown-items li:last-child {
  border-bottom: none;
}

.cart-dropdown-items .cart-empty {
  color: var(--color-muted);
  font-size: 0.9rem;
}

.cart-dropdown-item-position {
  color: var(--color-muted);
  font-size: 0.8rem;
}

.cart-dropdown-tovabb {
  width: 100%;
  justify-content: center;
}

.cart-dropdown-tovabb:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.cart-dropdown-coupon {
  display: flex;
  gap: 0.35rem;
  margin-bottom: 0.5rem;
}

.cart-coupon-input {
  flex: 1;
  min-width: 0;
}

.cart-coupon-btn {
  flex-shrink: 0;
}

.cart-dropdown-discount {
  font-size: 0.85rem;
  color: #22c55e;
  margin-bottom: 0.25rem;
}

.cart-dropdown-discount.hidden {
  display: none !important;
}

.cart-dropdown-total-wrap {
  margin-bottom: 0.5rem;
  font-weight: 600;
}

/* Promo strip – narancssárga gradient gomb */
.promo-label {
  letter-spacing: 0.02em;
}

.promo-countdown {
  font-variant-numeric: tabular-nums;
  opacity: 0.95;
}

/* Kuponkód modal */
.modal-box-sm {
  max-width: 380px;
}

.coupon-modal-title {
  margin: 0 0 0.5rem 0;
  font-size: 1.1rem;
}

.coupon-modal-desc {
  font-size: 0.9rem;
  color: var(--color-muted);
  margin: 0 0 1rem 0;
  line-height: 1.4;
}

.coupon-modal-code-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.coupon-modal-code {
  flex: 1;
  padding: 0.5rem 0.75rem;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.4);
  border-radius: var(--radius-md);
  font-size: 1rem;
  letter-spacing: 0.08em;
  color: #facc15;
}

main.container {
  padding-top: 1.5rem;
  padding-bottom: 3rem;
}

h2 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.section-header {
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 0.9rem;
  color: var(--color-muted);
}

/* ========== Miben más banner (single block, LIVE tag) ========== */
.miben-mas-banner {
  margin: 2rem 0;
  padding: 1.75rem 1.5rem;
  border-radius: 14px;
  background: #1a243d;
  border: 1px solid rgba(148, 163, 184, 0.3);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

.miben-mas-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
}

.miben-mas-content {
  flex: 1;
  min-width: 0;
  max-width: 60%;
  position: relative;
  padding-right: 1rem;
}

.miben-mas-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 0.75rem 0;
  line-height: 1.3;
}

.miben-mas-text {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.5;
  margin: 0;
}

.miben-mas-badge {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.35rem;
  flex-shrink: 0;
}

.miben-mas-live-tag {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  background: #f97316;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.miben-mas-badge-desc {
  font-size: 0.8rem;
  color: rgba(148, 163, 184, 0.95);
}

@media (max-width: 640px) {
  .miben-mas-content {
    max-width: 100%;
  }
  .miben-mas-inner {
    flex-direction: column;
  }
  .miben-mas-badge {
    align-items: flex-start;
  }
}

/* ========== Promo cards (image only – text is in the image) ========== */
.promo-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 2rem 0;
}

.promo-card {
  display: block;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: var(--color-bg-alt);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  line-height: 0;
}

.promo-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.promo-card-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  object-position: center;
}

@media (max-width: 640px) {
  .promo-cards-grid {
    grid-template-columns: 1fr;
  }
}

/* ========== Displays intro (heading above product list) ========== */
.displays-intro {
  margin: 2rem 0 1.5rem 0;
}

.displays-intro-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 0.5rem 0;
}

.displays-intro-desc {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
  line-height: 1.5;
}

/* Hero (kept for any legacy use) */
.hero-section {
  margin-top: 1.5rem;
  margin-bottom: 2rem;
  padding: 1.25rem 1rem;
  border-radius: 18px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, #0f172a, #020617);
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: 0 25px 60px rgba(15, 23, 42, 0.9);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.hero-text h2 {
  font-size: 1.8rem;
  margin: 0 0 0.25rem 0;
}

.hero-text p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--color-muted);
  max-width: 520px;
}

.hero-badge {
  position: absolute;
  right: 1.1rem;
  top: 1.1rem;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.25rem;
  text-align: right;
}

.hero-badge span:first-child {
  font-size: 0.75rem;
  padding: 0.18rem 0.6rem;
  border-radius: 999px;
  background: radial-gradient(circle at top left, #f97316, #ea580c);
  color: #fffbeb;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.hero-badge span:last-child {
  font-size: 0.8rem;
  color: var(--color-muted);
}

/* Intro – Miért válassz */
.intro-section {
  margin: 2rem 0;
  padding: 1.5rem 0;
}

.intro-section h2 {
  text-align: center;
  margin-bottom: 1.25rem;
  font-size: 1.35rem;
}

.intro-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.intro-card {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  text-align: center;
}

.intro-icon {
  font-size: 2rem;
  display: block;
  margin-bottom: 0.5rem;
}

.intro-card h3 {
  font-size: 1rem;
  margin: 0 0 0.35rem 0;
}

.intro-card p {
  font-size: 0.85rem;
  color: var(--color-muted);
  margin: 0;
  line-height: 1.4;
}

/* ========== Displays & product cards ========== */
/* Gyártó szerinti szekciók – nagyobb távolság a horgony miatt, szín data-color-index alapján */
.display-section {
  margin-top: 5rem;
  margin-bottom: 3rem;
  padding: 2rem 1.25rem;
  border-radius: var(--radius-lg);
  /* Clear fixed bar (header + filter + stats) so section title isn't hidden under breadcrumb row */
  scroll-margin-top: calc(var(--header-height) + var(--filter-bar-height) + var(--stats-bar-height) + 1rem);
}

.display-section.filter-hidden {
  display: none;
}

/* Kategória buborékoknak nincs színes hátterük – csak a teljes oldal gradientje mutatja a kategóriát */

.display-section-title {
  font-size: 1.25rem;
  margin: 0 0 1rem 0;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.25);
  color: var(--color-text);
}

/* Kategória név szövegként a kategória színével */
.product-category-name {
  font-size: 0.75rem;
  font-weight: 500;
  margin-bottom: 0.35rem;
  text-transform: none;
  letter-spacing: normal;
}

/* Category color variables per section (use --category-color and --category-rgb in children) */
.display-section[data-color-index="0"] { --category-color: var(--category-0); --category-rgb: 250, 204, 21; }
.display-section[data-color-index="1"] { --category-color: var(--category-1); --category-rgb: 139, 92, 246; }
.display-section[data-color-index="2"] { --category-color: var(--category-2); --category-rgb: 59, 130, 246; }
.display-section[data-color-index="3"] { --category-color: var(--category-3); --category-rgb: 239, 68, 68; }
.display-section[data-color-index="4"] { --category-color: var(--category-4); --category-rgb: 16, 185, 129; }
.display-section[data-color-index="5"] { --category-color: var(--category-5); --category-rgb: 249, 115, 22; }
.display-section[data-color-index="6"] { --category-color: var(--category-6); --category-rgb: 236, 72, 153; }
.display-section[data-color-index="7"] { --category-color: var(--category-7); --category-rgb: 6, 182, 212; }
.display-section[data-color-index="8"] { --category-color: var(--category-8); --category-rgb: 132, 204, 22; }
.display-section[data-color-index="9"] { --category-color: var(--category-9); --category-rgb: 244, 63, 94; }
.display-section[data-color-index="10"] { --category-color: var(--category-10); --category-rgb: 99, 102, 241; }
.display-section[data-color-index="11"] { --category-color: var(--category-11); --category-rgb: 20, 184, 166; }
.display-section[data-color-index="12"] { --category-color: var(--category-12); --category-rgb: 14, 165, 233; }
.display-section[data-color-index="13"] { --category-color: var(--category-13); --category-rgb: 217, 70, 239; }
.display-section[data-color-index="14"] { --category-color: var(--category-14); --category-rgb: 100, 116, 139; }
.display-section .product-category-name { color: var(--category-color); }

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.2rem;
  max-width: 100%;
}

.product-card-wrapper {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

@media (max-width: 1200px) {
  .products-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

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

@media (max-width: 580px) {
  .products-grid {
    grid-template-columns: 1fr;
    max-width: 100%;
  }
}

.product-card {
  position: relative;
  overflow: visible;
  width: 100%;
  max-width: 260px;
  min-width: 0;
  justify-self: center;
  margin: 0 auto;
  background:
    radial-gradient(circle at top left, rgba(96, 165, 250, 0.22), transparent 60%),
    radial-gradient(circle at bottom right, rgba(52, 211, 153, 0.16), transparent 60%),
    linear-gradient(145deg, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 1));
  border-radius: 16px;
  padding: 0.85rem;
  padding-bottom: 70px;
  box-shadow: none;
  border: none;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  overflow: visible;
  position: relative;
  min-height: 400px;
}

.product-card::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 18px;
  border: 1px solid transparent;
  pointer-events: none;
  transition: border-color 0.15s ease;
  z-index: 1;
}


/* Kategória színű háttér gradient a termék csempéknél (--category-rgb a szülőn) */
.display-section .product-card {
  background:
    radial-gradient(circle at top left, rgba(var(--category-rgb), 0.15), transparent 60%),
    radial-gradient(circle at bottom right, rgba(var(--category-rgb), 0.1), transparent 60%),
    linear-gradient(145deg, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 1));
}

.product-top-tags {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  z-index: 3;
}

.product-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(252, 211, 77, 0.1), transparent 55%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
}

/* Hover border kategória színével (--category-color a szülőn) */
.display-section .product-card:hover::after { border-color: var(--category-color); }

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 26px 60px rgba(15, 23, 42, 0.95);
}

.product-card:hover::after {
  z-index: 1;
}

.product-card:hover::before {
  opacity: 1;
}

.product-series-logo {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  max-width: 60px;
  max-height: 40px;
  object-fit: contain;
  z-index: 2;
  opacity: 0.9;
}

.product-card-image-wrap {
  position: relative;
  margin-bottom: 0.5rem;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: rgba(15, 23, 42, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-card-image-wrap .product-card-image {
  margin-bottom: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-card-image-wrap .product-card-image.no-image {
  display: none !important;
}

.product-rating-tag {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(148, 163, 184, 0.5);
  border-radius: 999px;
  padding: 0.25rem 0.5rem;
  font-size: 0.7rem;
  color: #fbbf24;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-weight: 600;
  cursor: help;
}

/* Rating positioned lower when series logo is present to avoid overlap */
.product-card:has(.product-series-logo) .product-rating-tag {
  top: 2.5rem;
}

.product-rating-star {
  font-size: 0.75rem;
  color: #fbbf24;
}

.product-viewers-tag {
  position: absolute;
  top: 2rem;
  right: 0.75rem;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(148, 163, 184, 0.5);
  border-radius: 999px;
  padding: 0.25rem 0.5rem;
  font-size: 0.7rem;
  color: #fbbf24;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-weight: 600;
  cursor: help;
  position: relative;
}

.product-viewers-tooltip {
  position: absolute;
  left: 50%;
  bottom: 100%;
  transform: translateX(-50%) translateY(-0.35rem);
  width: 200px;
  max-width: 90vw;
  padding: 0.5rem 0.6rem;
  font-size: 0.75rem;
  line-height: 1.4;
  color: var(--color-text);
  background: rgba(15, 23, 42, 0.98);
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: var(--radius-md);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  white-space: normal;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
  pointer-events: none;
  z-index: 10;
}

.product-viewers-tag:hover .product-viewers-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(-0.5rem);
}

.product-viewers-icon {
  font-size: 0.75rem;
  color: #fbbf24;
}


.product-card-image {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-md);
  object-fit: contain;
  margin-bottom: 0.75rem;
  position: relative;
  display: block;
}

.product-card-image::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: var(--radius-md);
  background: rgba(2, 6, 23, 0.97);
  filter: blur(8px);
  z-index: -1;
  opacity: 0.8;
}

.product-name {
  font-size: 1rem;
  margin: 0 0 0.5rem 0;
  font-weight: 600;
  line-height: 1.3;
  min-height: 2.6em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-stock-info,
.product-display-info,
.product-accessories-info {
  font-size: 0.75rem;
  color: var(--color-muted);
  margin-bottom: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.product-stock-label,
.product-display-label,
.product-accessories-label {
  font-weight: 500;
}

.product-stock-value,
.product-display-value,
.product-accessories-value {
  color: var(--color-muted);
  font-weight: 500;
}

.product-text-muted {
  color: var(--color-muted) !important;
}

.product-meta {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.35rem;
}

.product-tag {
  font-size: 0.7rem;
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-muted);
}

.product-tag-live {
  background: radial-gradient(circle at top left, #f97316, #ea580c);
  border-color: rgba(234, 88, 12, 0.9);
  color: #fffbeb;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(234, 88, 12, 0.4);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.product-live-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
  display: inline-block;
  animation: pulse 2s infinite;
  box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
  flex-shrink: 0;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
  }
  70% {
    box-shadow: 0 0 0 6px rgba(255, 255, 255, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
  }
}

.product-tag-sale {
  background: radial-gradient(circle at top left, #ef4444, #dc2626);
  border-color: rgba(239, 68, 68, 0.9);
  color: #fffbeb;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
}

.product-actions-qty {
  display: flex;
  align-items: center;
  gap: 0.2rem;
}

.product-qty-btn {
  width: 1.75rem;
  height: 1.75rem;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.5);
  border-radius: var(--radius-md);
  color: var(--color-text);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.product-qty-btn:hover {
  border-color: rgba(129, 140, 248, 0.7);
  background: rgba(30, 41, 59, 1);
}

.product-qty-input {
  width: 2.5rem;
  padding: 0.3rem 0.2rem;
  text-align: center;
  font-size: 0.85rem;
}

.product-description {
  font-size: 0.85rem;
  color: var(--color-muted);
  margin-bottom: 0.6rem;
  min-height: 2.9em;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.4;
  max-height: calc(1.4em * 5);
}


.product-footer {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.product-footer-background {
  background: rgba(2, 6, 23, 0.97);
  padding: 0.5rem 0.75rem;
  border-radius: 0 0 16px 16px;
  border: none;
  margin: 0;
  width: 100%;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
}

.product-sold-24h-wrapper {
  width: 100%;
  margin-top: 0.25rem;
}

.product-sold-24h {
  font-size: 0.7rem;
  color: var(--color-muted);
  text-align: center;
  padding: 0.4rem 0.75rem 0.5rem 0.75rem;
}

.product-sold-24h-count {
  color: #10b981;
  font-weight: 600;
}

.product-price-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.product-price-old {
  text-decoration: line-through;
  color: var(--color-muted);
  font-size: 0.85rem;
}

.product-price-sale {
  color: var(--color-danger);
  font-weight: 600;
  font-size: 1rem;
}

.product-price {
  font-weight: 600;
  color: #e5e7eb;
  margin: 0;
  font-size: 1rem;
}

.product-price-booster {
  font-size: 0.75rem;
  color: var(--color-muted);
  font-weight: 400;
}

.product-actions {
  flex-shrink: 0;
  position: relative;
}


/* Frissesség bar: zöld → sárga → narancs → piros, 15 nap = 25% */
.product-freshness-bar {
  position: absolute;
  bottom: 60px;
  left: 0.85rem;
  right: 0.85rem;
  height: 2px;
  border-radius: 999px;
  overflow: visible;
  margin: 0;
  cursor: default;
  z-index: 1;
}

/* Tooltip: azonnal megjelenik ha ráhúzzuk az egeret */
.product-freshness-tooltip {
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  padding: 0.35rem 0.6rem;
  font-size: 0.7rem;
  color: #e2e8f0;
  background: rgba(15, 23, 42, 0.98);
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: var(--radius-md);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  transition: none;
  pointer-events: none;
  z-index: 10;
}

.product-freshness-bar:hover .product-freshness-tooltip {
  opacity: 1;
  visibility: visible;
}

.product-freshness-segments {
  display: flex;
  width: 100%;
  height: 100%;
  border-radius: 999px;
  overflow: hidden;
}

.product-freshness-seg {
  flex: 1;
  min-width: 0;
}

.product-freshness-seg--green {
  background: #22c55e;
}

.product-freshness-seg--yellow {
  background: #eab308;
}

.product-freshness-seg--orange {
  background: #f97316;
}

.product-freshness-seg--red {
  background: #ef4444;
}

.product-freshness-indicator {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid rgba(0, 0, 0, 0.4);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.5);
  pointer-events: none;
  z-index: 1;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary), #8b5cf6);
  color: white;
  border: none;
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  font-size: 0.85rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.btn-buy {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  border: none;
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  font-size: 0.85rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-weight: 600;
  transition: all 0.2s ease;
  position: relative;
  overflow: visible;
}


.btn-buy-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: visible;
}

.btn-buy-particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: #10b981;
  border-radius: 50%;
  opacity: 0;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.btn-buy:hover .btn-buy-particles .btn-buy-particle,
.product-actions:hover .btn-buy-particle {
  animation: particle-float 1.2s ease-out forwards;
}

.btn-buy:hover .btn-buy-particles .btn-buy-particle:nth-child(1),
.product-actions:hover .btn-buy-particle:nth-child(1) {
  animation-delay: 0s;
  animation-name: particle-float-1;
}

.btn-buy:hover .btn-buy-particles .btn-buy-particle:nth-child(2),
.product-actions:hover .btn-buy-particle:nth-child(2) {
  animation-delay: 0.05s;
  animation-name: particle-float-2;
}

.btn-buy:hover .btn-buy-particles .btn-buy-particle:nth-child(3),
.product-actions:hover .btn-buy-particle:nth-child(3) {
  animation-delay: 0.1s;
  animation-name: particle-float-3;
}

.btn-buy:hover .btn-buy-particles .btn-buy-particle:nth-child(4),
.product-actions:hover .btn-buy-particle:nth-child(4) {
  animation-delay: 0.15s;
  animation-name: particle-float-4;
}

.btn-buy:hover .btn-buy-particles .btn-buy-particle:nth-child(5),
.product-actions:hover .btn-buy-particle:nth-child(5) {
  animation-delay: 0.2s;
  animation-name: particle-float-5;
}

.btn-buy:hover .btn-buy-particles .btn-buy-particle:nth-child(6),
.product-actions:hover .btn-buy-particle:nth-child(6) {
  animation-delay: 0.25s;
  animation-name: particle-float-6;
}

/* Click success: add-to-cart animation */
.btn-buy-added {
  animation: btn-buy-bounce 0.5s ease;
}
.btn-buy-particles-fly .btn-buy-particle:nth-child(1) { animation: particle-float-1 0.6s ease-out forwards; animation-delay: 0s; }
.btn-buy-particles-fly .btn-buy-particle:nth-child(2) { animation: particle-float-2 0.6s ease-out forwards; animation-delay: 0.05s; }
.btn-buy-particles-fly .btn-buy-particle:nth-child(3) { animation: particle-float-3 0.6s ease-out forwards; animation-delay: 0.1s; }
.btn-buy-particles-fly .btn-buy-particle:nth-child(4) { animation: particle-float-4 0.6s ease-out forwards; animation-delay: 0.15s; }
.btn-buy-particles-fly .btn-buy-particle:nth-child(5) { animation: particle-float-5 0.6s ease-out forwards; animation-delay: 0.2s; }
.btn-buy-particles-fly .btn-buy-particle:nth-child(6) { animation: particle-float-6 0.6s ease-out forwards; animation-delay: 0.25s; }

@keyframes btn-buy-bounce {
  0% { transform: scale(1); }
  35% { transform: scale(0.92); background: rgba(16, 185, 129, 0.5); }
  70% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

@keyframes particle-float-1 {
  0% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1) translate(0, 0);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) translate(15px, -35px) scale(0.3);
  }
}

@keyframes particle-float-2 {
  0% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1) translate(0, 0);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) translate(-20px, -30px) scale(0.3);
  }
}

@keyframes particle-float-3 {
  0% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1) translate(0, 0);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) translate(8px, -40px) scale(0.3);
  }
}

@keyframes particle-float-4 {
  0% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1) translate(0, 0);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) translate(-12px, -38px) scale(0.3);
  }
}

@keyframes particle-float-5 {
  0% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1) translate(0, 0);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) translate(22px, -28px) scale(0.3);
  }
}

@keyframes particle-float-6 {
  0% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1) translate(0, 0);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) translate(-18px, -32px) scale(0.3);
  }
}

.btn-buy:hover {
  background: linear-gradient(135deg, #047857, #065f46);
  transform: translateY(-1px);
  box-shadow: none;
}

.btn-buy:active {
  transform: translateY(0);
  box-shadow: 0 6px 12px rgba(16, 185, 129, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--color-primary-hover), #7c3aed);
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(79, 70, 229, 0.7);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 6px 12px rgba(79, 70, 229, 0.5);
}

.btn-secondary {
  background: transparent;
  color: var(--color-muted);
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  padding: 0.35rem 0.8rem;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-secondary:hover {
  border-color: var(--color-text);
  color: var(--color-text);
}

/* Cart */

/* Cart sidebar (slides in from right) */
.cart-sidebar-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.cart-sidebar-backdrop.cart-sidebar-open {
  opacity: 1;
  visibility: visible;
}

.cart-sidebar {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 420px;
  height: 100vh;
  background: linear-gradient(180deg, #0f172a, #111827);
  border-left: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: -8px 0 32px rgba(0, 0, 0, 0.4);
  z-index: 1001;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  overflow: hidden;
}
.cart-sidebar.cart-sidebar-open {
  transform: translateX(0);
}

.cart-sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
  flex-shrink: 0;
  background: rgba(15, 23, 42, 0.6);
}
.cart-sidebar-header-text {
  min-width: 0;
}
.cart-sidebar-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-text);
}
.cart-sidebar-count {
  margin: 0.2rem 0 0 0;
  font-size: 0.8rem;
  color: var(--color-muted);
  font-weight: 400;
}
.cart-sidebar-close {
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: none;
  background: rgba(148, 163, 184, 0.15);
  color: var(--color-text);
  font-size: 1.35rem;
  line-height: 1;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.cart-sidebar-close:hover {
  background: rgba(148, 163, 184, 0.3);
  color: #fff;
}

.cart-sidebar-body {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 1rem 1.25rem;
  -webkit-overflow-scrolling: touch;
}

/* Empty state */
.cart-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2.5rem 1rem;
  min-height: 12rem;
}
.cart-empty-state.hidden {
  display: none;
}
.cart-empty-icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
  opacity: 0.6;
}
.cart-empty-title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-text);
}
.cart-empty-desc {
  margin: 0.5rem 0 0 0;
  font-size: 0.9rem;
  color: var(--color-muted);
  max-width: 260px;
  line-height: 1.45;
}

/* Sticky footer */
.cart-sidebar-footer {
  flex-shrink: 0;
  padding: 1rem 1.25rem;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(15, 23, 42, 0.8);
}
.cart-countdown-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.75rem;
  margin-bottom: 0.75rem;
  background: rgba(234, 179, 8, 0.12);
  border: 1px solid rgba(234, 179, 8, 0.35);
  border-radius: var(--radius-md);
  font-size: 0.85rem;
}
.cart-countdown-wrap.hidden {
  display: none !important;
}
.cart-countdown-label {
  color: var(--color-muted);
}
.cart-countdown-value {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: #facc15;
}
.cart-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 1rem;
  gap: 1rem;
}
.cart-summary-label {
  font-size: 0.95rem;
  color: var(--color-muted);
}
.cart-summary .cart-total {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-text);
}
.cart-sidebar-body .cart-table {
  margin-top: 0;
}

/* Nav cart button (looks like nav-link) */
.nav-cart-btn {
  font: inherit;
  color: var(--color-muted);
  text-decoration: none;
  font-size: 0.9rem;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.nav-cart-btn:hover {
  color: var(--color-text);
  border-color: rgba(148, 163, 184, 0.5);
  background: rgba(15, 23, 42, 0.9);
}
.nav-cart-count {
  font-size: 0.85em;
  opacity: 0.9;
}

/* Toast: item added to cart */
.cart-toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(1rem);
  padding: 0.75rem 1.25rem;
  background: #0f172a;
  border: 1px solid rgba(34, 197, 94, 0.5);
  border-radius: var(--radius-md);
  color: #86efac;
  font-size: 0.95rem;
  font-weight: 500;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
}
.cart-toast.cart-toast-visible {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.cart-section {
  margin-top: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
}

.cart-content {
  margin-top: 0.75rem;
}

.cart-timer-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  padding: 0.5rem 0.75rem;
  background: rgba(234, 179, 8, 0.15);
  border: 1px solid rgba(234, 179, 8, 0.5);
  border-radius: var(--radius-md);
  width: max-content;
}

.cart-timer-label {
  font-size: 0.9rem;
  color: var(--color-muted);
}

.cart-countdown {
  font-size: 1.1rem;
  font-weight: 700;
  color: #facc15;
  font-variant-numeric: tabular-nums;
}

.cart-items-list {
  list-style: none;
  margin: 0 0 0.75rem 0;
  padding: 0;
  font-size: 0.9rem;
}

.cart-items-list li {
  padding: 0.35rem 0;
  border-bottom: 1px solid rgba(31, 41, 55, 1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.cart-items-list li:last-child {
  border-bottom: none;
}

.cart-item-position {
  color: var(--color-muted);
  font-size: 0.85rem;
}

.cart-item-cell {
  vertical-align: middle;
}
.cart-item-thumb-wrap {
  display: inline-block;
  width: 40px;
  height: 40px;
  margin-right: 0.5rem;
  vertical-align: middle;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: rgba(31, 41, 55, 0.8);
}
.cart-item-thumb {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.cart-item-info {
  display: inline-flex;
  flex-direction: column;
  gap: 0.15rem;
  vertical-align: middle;
}
.cart-item-manufacturer {
  font-size: 0.75rem;
  color: var(--color-muted);
  font-weight: 500;
}
.cart-item-name {
  font-size: 0.9rem;
  color: var(--color-text);
}

.cart-empty {
  font-size: 0.95rem;
  color: var(--color-muted);
}

.cart-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.cart-table th,
.cart-table td {
  padding: 0.6rem 0.4rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  vertical-align: middle;
}
.cart-table tbody tr:hover {
  background: rgba(148, 163, 184, 0.04);
}

.cart-table th {
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--color-muted);
}
.cart-th-product { text-align: left; }
.cart-th-price,
.cart-th-total { text-align: right; }
.cart-th-qty { text-align: center; }
.cart-th-action { width: 2.5rem; text-align: right; }

.cart-table td:nth-child(2),
.cart-table td:nth-child(4) {
  text-align: right;
  white-space: nowrap;
}

.cart-qty-cell {
  text-align: center;
  font-variant-numeric: tabular-nums;
  color: var(--color-muted);
}

.cart-table-remove {
  padding: 0.2rem 0.5rem;
  border: none;
  background: rgba(239, 68, 68, 0.2);
  color: var(--color-danger);
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  transition: background 0.2s;
}
.cart-table-remove:hover {
  background: rgba(239, 68, 68, 0.35);
}

.cart-total {
  font-size: 1.1rem;
  font-weight: 600;
}

.cart-discount-line {
  font-size: 0.9rem;
  color: #22c55e;
  margin-top: 0.35rem;
}

.cart-discount-line.hidden {
  display: none !important;
}

.cart-summary {
  display: block;
}

.cart-purchase-btn {
  width: 100%;
  padding: 0.85rem 1.25rem;
  background: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}
.cart-purchase-btn:hover {
  background: var(--color-primary-hover);
}
.cart-purchase-btn:active {
  transform: scale(0.98);
}

.cart-dropdown-error {
  color: var(--color-danger) !important;
}

/* Admin */

.admin-auth-section,
.admin-panel {
  margin-top: 1.5rem;
  background: rgba(15, 23, 42, 0.95);
  padding: 1rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(148, 163, 184, 0.3);
  box-shadow: var(--shadow-soft);
}

.admin-auth-section {
  position: relative;
}

.admin-auth-hover-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.95);
  border-radius: var(--radius-lg);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-muted);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.admin-auth-section:hover .admin-auth-hover-label {
  opacity: 1;
}

/* Admin Edit Modal */
.admin-edit-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.admin-edit-modal.hidden {
  display: none;
}

.admin-edit-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(4px);
}

.admin-edit-modal-content {
  position: relative;
  background: rgba(15, 23, 42, 0.98);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(148, 163, 184, 0.3);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9);
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  z-index: 1;
}

.admin-edit-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(55, 65, 81, 1);
}

.admin-edit-modal-header h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-text);
}

.admin-edit-modal-close {
  background: transparent;
  border: none;
  font-size: 2rem;
  line-height: 1;
  color: var(--color-muted);
  cursor: pointer;
  padding: 0;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  transition: color 0.15s ease, background 0.15s ease;
}

.admin-edit-modal-close:hover {
  color: var(--color-text);
  background: rgba(55, 65, 81, 0.5);
}

.admin-edit-modal-body {
  padding: 1.5rem;
}

.modal-series-logo {
  max-width: 80px;
  max-height: 50px;
  object-fit: contain;
  margin-bottom: 0.75rem;
  opacity: 0.9;
}

.admin-tabs {
  display: flex;
  gap: 0.5rem;
  margin: 1.5rem 0 1rem 0;
  border-bottom: 1px solid rgba(55, 65, 81, 1);
}

.admin-tab {
  padding: 0.6rem 1.2rem;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--color-muted);
  font-size: 0.9rem;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease;
  margin-bottom: -1px;
}

.admin-tab:hover {
  color: var(--color-text);
}

.admin-tab.active {
  color: #e5e7eb;
  border-bottom-color: rgba(129, 140, 248, 1);
}

.admin-tab-content {
  display: none;
}

.admin-tab-content.active {
  display: block;
}

/* Admin page: smaller container, form above table only */
.admin-page main.container {
  max-width: 960px;
}

.admin-table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.admin-layout {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.admin-form,
.admin-list {
  background: rgba(15, 23, 42, 0.9);
  border-radius: var(--radius-md);
  padding: 1rem;
  border: 1px solid rgba(55, 65, 81, 1);
}

.form-section {
  margin-bottom: 2rem;
  padding: 1.25rem;
  background: rgba(2, 6, 23, 0.5);
  border-radius: var(--radius-md);
  border: 1px solid rgba(55, 65, 81, 0.5);
}

.form-section-title {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 1rem 0;
  color: var(--color-text);
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 0.75rem;
}

.form-group label {
  font-size: 0.85rem;
  margin-bottom: 0.25rem;
  color: var(--color-muted);
  font-weight: 500;
}

.form-hint {
  font-size: 0.8rem;
  color: var(--color-muted);
  margin-top: 0.25rem;
}

.product-display-only {
  /* visibility toggled by JS when type = Kiegészítő */
}

input,
textarea {
  background: #020617;
  border-radius: var(--radius-md);
  border: 1px solid rgba(55, 65, 81, 1);
  color: var(--color-text);
  padding: 0.45rem 0.6rem;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

input:focus,
textarea:focus {
  border-color: rgba(129, 140, 248, 1);
  box-shadow: 0 0 0 1px rgba(129, 140, 248, 0.4);
}

textarea {
  resize: vertical;
}

.form-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  min-width: 1200px;
}

.admin-table th,
.admin-table td {
  padding: 0.5rem 0.4rem;
  border-bottom: 1px solid rgba(31, 41, 55, 1);
  vertical-align: top;
  white-space: nowrap;
}

.admin-table th {
  font-weight: 600;
  font-size: 0.8rem;
  background: rgba(15, 23, 42, 0.5);
}

.admin-table td {
  font-size: 0.8rem;
}

.admin-table td:nth-child(5) {
  white-space: normal;
  max-width: 200px;
}

.admin-table td:nth-child(n+9):nth-child(-n+12) {
  white-space: normal;
  max-width: 150px;
  font-size: 0.75rem;
}

.admin-table img {
  max-width: 60px;
  border-radius: var(--radius-md);
}

.admin-actions {
  display: flex;
  gap: 0.35rem;
}

.admin-file-input {
  margin-top: 0.35rem;
  font-size: 0.85rem;
}

.admin-upload-status {
  display: block;
  font-size: 0.8rem;
  color: var(--color-muted);
  margin-top: 0.25rem;
}

.admin-upload-status.error {
  color: var(--color-error, #ef4444);
}

.admin-page-actions {
  margin-bottom: 1rem;
}

.admin-page-actions .btn-primary,
.admin-page-actions .btn-secondary {
  display: inline-block;
  text-decoration: none;
  padding: 0.5rem 1rem;
}

.admin-tabs-inner {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.admin-tab-inner {
  padding: 0.5rem 1rem;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--color-text);
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.2s;
}

.admin-tab-inner:hover {
  color: var(--color-primary);
}

.admin-tab-inner.active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}

.admin-tab-inner-content {
  display: none;
}

.admin-tab-inner-content.active {
  display: block;
}

.admin-banner-section {
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: rgba(15, 23, 42, 0.9);
  border-radius: var(--radius-md);
  border: 1px solid rgba(55, 65, 81, 1);
}

.admin-banner-section .form-group {
  max-width: 400px;
}

.admin-message {
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 500;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.3);
  min-height: 1.5rem;
}

.admin-promo-section {
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: rgba(15, 23, 42, 0.9);
  border-radius: var(--radius-md);
  border: 1px solid rgba(55, 65, 81, 1);
}

.admin-promo-section .form-group {
  max-width: 400px;
}

.admin-category-colors-section {
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: rgba(15, 23, 42, 0.9);
  border-radius: var(--radius-md);
  border: 1px solid rgba(55, 65, 81, 1);
}

.admin-category-colors-section .form-group-inline {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.admin-category-colors-section .form-group-inline label {
  min-width: 11rem;
  margin-bottom: 0;
  font-size: 0.9rem;
  color: var(--color-muted);
}

.admin-category-colors-section select {
  background: #020617;
  border: 1px solid rgba(55, 65, 81, 1);
  border-radius: var(--radius-md);
  color: var(--color-text);
  padding: 0.4rem 0.6rem;
  font-size: 0.9rem;
  min-width: 140px;
}

.accessory-item {
  margin-bottom: 1rem;
  padding: 1rem;
  background: rgba(15, 23, 42, 0.5);
  border-radius: var(--radius-md);
  border: 1px solid rgba(55, 65, 81, 0.5);
}

.accessory-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(55, 65, 81, 0.3);
}

.accessory-item-number {
  font-weight: 600;
  color: var(--color-text);
  font-size: 0.9rem;
}

.accessory-remove-btn {
  font-size: 0.8rem;
  padding: 0.25rem 0.5rem;
}

.accessory-item .form-group {
  margin-bottom: 0;
}

.accessory-item .form-group-inline {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
}

.accessory-item .form-group-inline .form-group {
  margin-bottom: 0;
}

/* Messages */

.loading {
  font-size: 0.9rem;
  color: var(--color-muted);
  margin-top: 0.5rem;
}

.error-message {
  color: var(--color-danger);
  font-size: 0.85rem;
  margin-top: 0.4rem;
}

.info-message {
  color: #22c55e;
  font-size: 0.85rem;
  margin-top: 0.4rem;
}

/* Promo hero section - olyan mint a "Miben más a Knights of Cards?" */
.promo-section {
  margin-top: 2rem;
}

.promo-hero-btn {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 1.5rem;
  border-radius: 12px;
  border: 1.5px solid rgba(251, 146, 60, 0.4);
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(2, 6, 23, 0.95) 100%);
  backdrop-filter: blur(8px);
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 1rem;
  font-weight: 500;
}

.promo-hero-btn:hover {
  opacity: 0.95;
  transform: scale(1.02);
  border-color: rgba(251, 146, 60, 0.6);
  box-shadow: 0 4px 12px rgba(234, 88, 12, 0.2);
}

.promo-hero-btn .promo-label,
.promo-hero-btn .promo-countdown {
  background: linear-gradient(90deg, #ea580c 0%, #f97316 45%, #fb923c 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.promo-hero-btn .promo-progress-circles {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-left: 0.4rem;
}

.promo-hero-btn .promo-circle {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  border: 1.5px solid rgba(251, 146, 60, 0.7);
  background: transparent;
  transition: all 0.2s ease;
}

.promo-hero-btn .promo-circle.filled {
  background: linear-gradient(135deg, #fb923c 0%, #ea580c 100%);
  border-color: #ea580c;
}

.promo-hero-btn .promo-code-reveal {
  margin-left: 0;
  font-weight: 700;
  letter-spacing: 0.08em;
  background: linear-gradient(90deg, #ea580c 0%, #f97316 45%, #fb923c 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.promo-hero-btn.promo-code-visible .promo-btn-text,
.promo-hero-btn.promo-code-visible .promo-progress-circles {
  display: none;
}

.promo-hero-btn.promo-code-visible .promo-code-reveal {
  display: inline !important;
}

.promo-hero-btn.hidden {
  display: none !important;
}

/* Footer */
.site-footer {
  margin-top: 4rem;
  padding: 3rem 0 1.5rem;
  background: linear-gradient(to top, rgba(2, 6, 23, 0.95), rgba(15, 23, 42, 0.8));
  border-top: 1px solid rgba(148, 163, 184, 0.2);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 1rem 0;
  color: var(--color-text);
}

.footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section a {
  color: var(--color-muted);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s ease;
}

.footer-section a:hover {
  color: var(--color-text);
}

.footer-social {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.social-link {
  padding: 0.5rem 1rem;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
}

.social-link:hover {
  border-color: rgba(148, 163, 184, 0.5);
  background: rgba(15, 23, 42, 0.8);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  color: var(--color-muted);
  font-size: 0.875rem;
}

/* Promo bottom wrapper - hátteres átmenettel */
.promo-bottom-wrapper {
  position: relative;
  margin-top: 3rem;
  padding: 2rem 0;
}

.promo-bottom-gradient {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(15, 23, 42, 0.3) 20%,
    rgba(15, 23, 42, 0.6) 50%,
    rgba(2, 6, 23, 0.9) 80%,
    #020617 100%
  );
  pointer-events: none;
}

.promo-bottom-container {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1;
}

.promo-bottom-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border-radius: 12px;
  border: 1.5px solid rgba(251, 146, 60, 0.4);
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(2, 6, 23, 0.95) 100%);
  backdrop-filter: blur(8px);
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.95rem;
  font-weight: 500;
}

.promo-bottom-btn:hover {
  opacity: 0.95;
  transform: scale(1.02);
  border-color: rgba(251, 146, 60, 0.6);
  box-shadow: 0 4px 12px rgba(234, 88, 12, 0.2);
}

.promo-bottom-btn .promo-label,
.promo-bottom-btn .promo-countdown {
  background: linear-gradient(90deg, #ea580c 0%, #f97316 45%, #fb923c 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.promo-bottom-btn .promo-progress-circles {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-left: 0.4rem;
}

.promo-bottom-btn .promo-circle {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  border: 1.5px solid rgba(251, 146, 60, 0.7);
  background: transparent;
  transition: all 0.2s ease;
}

.promo-bottom-btn .promo-circle.filled {
  background: linear-gradient(135deg, #fb923c 0%, #ea580c 100%);
  border-color: #ea580c;
}

.promo-bottom-btn .promo-code-reveal {
  margin-left: 0;
  font-weight: 700;
  letter-spacing: 0.08em;
  background: linear-gradient(90deg, #ea580c 0%, #f97316 45%, #fb923c 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.promo-bottom-btn.promo-code-visible .promo-btn-text,
.promo-bottom-btn.promo-code-visible .promo-progress-circles {
  display: none;
}

.promo-bottom-btn.promo-code-visible .promo-code-reveal {
  display: inline !important;
}

.promo-bottom-btn.hidden {
  display: none !important;
}

/* ========== Footer ========== */
.footer {
  border-top: 1px solid rgba(31, 41, 55, 1);
  background: #020617;
  padding: 0.75rem 0;
  color: var(--color-muted);
  font-size: 0.8rem;
  text-align: center;
}

/* Modal – termék részletek + booster grid */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal.hidden {
  display: none !important;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  cursor: pointer;
}

.modal-box {
  position: relative;
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow: auto;
  background: linear-gradient(145deg, #0f172a, #111827);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(148, 163, 184, 0.3);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
}

.modal-box-product {
  max-width: 860px;
  display: flex;
  flex-direction: column;
  max-height: 88vh;
  overflow: hidden;
}

.modal-box-product .modal-bubble {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}

.modal-box-product .modal-selection-summary {
  flex-shrink: 0;
}

.modal-box-position-selector {
  max-width: 95vw;
  max-height: 95vh;
  display: flex;
  flex-direction: column;
  width: 100%;
}

.modal-position-selector-wrap {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  overflow: visible;
}

/* Instruction box: subtle outline, like reference */
.modal-position-selector-title-wrapper {
  width: 100%;
  margin-bottom: 1rem;
  padding: 0.75rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: flex-start;
  background: rgba(148, 163, 184, 0.06);
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: var(--radius-md);
}

.modal-position-selector-title-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--color-muted);
  background: rgba(148, 163, 184, 0.1);
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.modal-position-selector-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text);
  margin: 0;
}

.modal-position-selector-hint {
  font-size: 0.65rem;
  color: var(--color-muted);
  text-align: left;
  opacity: 0.8;
  line-height: 1.4;
  margin: 0;
}

.modal-selected-positions-list {
  min-height: 2rem;
  padding: 0.5rem 0;
  text-align: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  align-items: center;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.modal-selected-positions-list.has-selection {
  visibility: visible;
  opacity: 1;
}

.modal-selected-position-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--color-text);
  background: rgba(148, 163, 184, 0.15);
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.3);
}

.modal-position-selector-wrap .booster-grid {
  width: 100%;
  max-width: 100%;
  overflow: visible;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
}

.modal-position-selector-wrap .booster-grid-wrapper {
  transform: none;
  width: 100%;
  max-width: 100%;
  overflow: visible;
}

.booster-grid-actions-right {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 0.5rem;
}

/* Price below grid for LIVE products (reference layout) */
.modal-live-price {
  margin: 0.75rem 0 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-text);
}
.modal-live-price.hidden {
  display: none !important;
}

.position-selector-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 1.5rem;
  overflow-y: auto;
}

.position-selector-header {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.position-selector-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
}

.position-selector-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.position-selector-grid-container {
  width: 100%;
  overflow: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem;
  background: rgba(15, 23, 42, 0.4);
  border-radius: var(--radius-md);
  min-height: 400px;
}

.position-selector-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background: rgba(15, 23, 42, 0.8);
  border-radius: var(--radius-md);
  border-top: 2px solid rgba(148, 163, 184, 0.35);
}

.position-selector-text {
  color: var(--color-muted);
  font-size: 0.95rem;
}

.position-selector-total {
  font-weight: 700;
  color: #86efac;
  font-size: 1.1rem;
}

/* Egy buborék, belül 2 sor: 1. sor = kép + leírás, 2. sor = pozíció választó */
.modal-bubble {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem;
  margin: 1rem;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.modal-row {
  display: flex;
  gap: 1rem;
  width: 100%;
}

.modal-row-1 {
  display: grid;
  grid-template-columns: 1fr 4fr;
  gap: 1rem;
}

.modal-row-2 {
  width: 100%;
  flex-shrink: 0;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
}

.modal-fakk {
  padding: 0.75rem;
  min-width: 0;
}

/* Image column (first in row): contain images so they don't overflow */
.modal-row-1 > .modal-fakk:first-child {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.modal-row-1 > .modal-fakk:first-child > img.modal-fakk-image {
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  border-radius: var(--radius-md);
}

.modal-row-1 > .modal-fakk:first-child > img.modal-fakk-image.hidden {
  display: none;
}

.modal-row-1 > .modal-fakk:first-child > img.modal-series-logo {
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.modal-fakk-image {
  min-width: 0;
}

.modal-fakk-image .modal-product-image-wrap {
  width: 100%;
  max-width: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-bg-alt);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.modal-fakk-image .modal-product-image {
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 4/3;
  object-fit: contain;
  display: block;
}

.modal-fakk-image .modal-pack-image {
  width: 100%;
  max-width: 100%;
  aspect-ratio: 2/3;
  object-fit: contain;
  border-radius: var(--radius-md);
  margin-top: 0.5rem;
}

.modal-fakk-image .modal-pack-image.hidden {
  display: none;
}

.modal-fakk-description {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.modal-fakk-description .modal-product-name {
  font-size: 1.05rem;
  margin: 0;
}

.modal-fakk-description .modal-product-description {
  font-size: 0.9rem;
  color: var(--color-muted);
  margin: 0;
  line-height: 1.4;
}

.modal-fakk-description .modal-product-price {
  margin-top: 0.25rem;
  font-weight: 600;
}

.modal-fakk-selector {
  width: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  padding: 0.5rem 0;
  position: relative;
}

.booster-grid-container-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  overflow: hidden;
}

.booster-grid-indicator-left {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.4rem 0.6rem;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.4);
  border-radius: var(--radius-md);
  min-width: 55px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.booster-grid-indicator-left .booster-grid-indicator-icon {
  font-size: 1.2rem;
  margin-bottom: 0.2rem;
  transform: rotate(-90deg);
  line-height: 1;
}

.booster-grid-indicator-left .booster-grid-indicator-text {
  font-size: 0.65rem;
  color: var(--color-muted);
  text-align: center;
  font-weight: 600;
  white-space: nowrap;
}

.booster-grid-container {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.5rem;
}

.booster-grid-actions-right {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.booster-grid-header-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 0.75rem;
  gap: 1rem;
}

.booster-grid-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.4rem 0.6rem;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.4);
  border-radius: var(--radius-md);
  min-width: 55px;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.booster-grid-indicator-icon {
  font-size: 1.2rem;
  margin-bottom: 0.2rem;
  transform: rotate(-90deg);
  line-height: 1;
}

.booster-grid-indicator-text {
  font-size: 0.65rem;
  color: var(--color-muted);
  text-align: center;
  font-weight: 600;
  white-space: nowrap;
}

.modal-new-display-wrap {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.modal-new-display-wrap.hidden {
  display: none !important;
}

.modal-new-display-price {
  color: var(--color-muted);
  font-size: 0.9rem;
}

.modal-fakk-selector .booster-grid-title {
  margin: 0;
  font-size: 0.9rem;
  flex: 1;
}

.modal-grid-tab .booster-grid-title {
  margin: 0 0 0.5rem 0;
  font-size: 0.9rem;
}

.modal-fakk-selector.hidden {
  display: none !important;
}

.modal-nonlive-qty-wrap {
  margin-top: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.modal-nonlive-qty-wrap.hidden {
  display: none !important;
}

.modal-nonlive-qty-label {
  font-size: 0.9rem;
  color: var(--color-muted);
}

.modal-accessories-wrap {
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
}

.modal-accessories-title {
  font-size: 0.85rem;
  margin: 0 0 0.5rem 0;
  color: var(--color-muted);
}

.modal-accessories-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.modal-accessory-item-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.modal-accessory-actions {
  display: flex;
  gap: 0.25rem;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.modal-accessory-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding: 0.35rem;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.modal-accessory-info,
.modal-accessory-zoom {
  width: auto;
  min-width: 24px;
  height: 16px;
  padding: 0.1rem 0.3rem;
  margin: 0;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.55rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

.modal-accessory-zoom {
  background: rgba(251, 191, 36, 0.2);
  color: #fbbf24;
}

.modal-accessory-zoom:disabled {
  opacity: 0.3;
  cursor: not-allowed !important;
}

.modal-accessory-info {
  background: rgba(16, 185, 129, 0.2);
  color: #10b981;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  flex-shrink: 0;
  position: relative;
}

.modal-accessory-info:disabled {
  opacity: 0.3;
  cursor: not-allowed !important;
}

.modal-accessory-info:hover {
  background: rgba(16, 185, 129, 0.4);
}

.modal-accessory-zoom:hover {
  background: rgba(251, 191, 36, 0.4);
}

.modal-accessory-info-tooltip {
  position: absolute;
  left: 50%;
  bottom: 100%;
  transform: translateX(-50%) translateY(-0.35rem);
  width: 200px;
  max-width: 90vw;
  padding: 0.5rem 0.6rem;
  font-size: 0.75rem;
  line-height: 1.4;
  color: var(--color-text);
  background: #1e293b;
  border: 1px solid rgba(148, 163, 184, 0.4);
  border-radius: var(--radius-md);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s, visibility 0.2s;
  z-index: 10;
  text-align: left;
  white-space: normal;
  word-wrap: break-word;
}

.modal-accessory-info:hover .modal-accessory-info-tooltip {
  opacity: 1;
  visibility: visible;
}

.modal-box-image-viewer {
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  padding: 1rem;
}

.image-viewer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
}

.accessory-image-viewer-img {
  max-width: 100%;
  max-height: 70vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.accessory-image-viewer-name {
  margin: 0;
  font-size: 1rem;
  color: var(--color-text);
  text-align: center;
}

.modal-accessory-item:hover {
  border-color: rgba(129, 140, 248, 0.6);
  background: rgba(15, 23, 42, 0.9);
}

.modal-accessory-tooltip {
  position: absolute;
  left: 50%;
  bottom: 100%;
  transform: translateX(-50%) translateY(-0.35rem);
  width: 160px;
  max-width: 90vw;
  padding: 0.4rem 0.5rem;
  font-size: 0.7rem;
  line-height: 1.3;
  color: var(--color-text);
  background: #1e293b;
  border: 1px solid rgba(148, 163, 184, 0.4);
  border-radius: var(--radius-md);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s, visibility 0.2s;
  z-index: 5;
  text-align: left;
}

.modal-accessory-item:hover .modal-accessory-tooltip {
  opacity: 1;
  visibility: visible;
}

.modal-accessory-img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  border-radius: 4px;
  margin-bottom: 0.25rem;
  background: rgba(15, 23, 42, 0.4);
}

.modal-accessory-img.no-image {
  display: none !important;
}

.modal-accessory-price {
  font-size: 0.7rem;
  color: var(--color-muted);
}

.modal-summary-lines {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}

.modal-summary-accessories {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  font-size: 0.8rem;
  color: var(--color-muted);
}

.modal-summary-accessory-row {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.modal-summary-trash {
  padding: 0.1rem 0.3rem;
  font-size: 0.75rem;
  background: transparent;
  border: none;
  cursor: pointer;
  opacity: 0.8;
  border-radius: 4px;
}

.modal-summary-trash:hover {
  opacity: 1;
  background: rgba(239, 68, 68, 0.2);
}

/* Footer bar: counter left, price + Kosárhoz right */
.modal-selection-summary {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.25rem;
  border-top: 1px solid rgba(148, 163, 184, 0.3);
  background: rgba(2, 6, 23, 0.97);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  font-size: 0.95rem;
  margin-top: 0.5rem;
}

.modal-selection-summary .modal-selection-text {
  flex-shrink: 0;
}

.modal-summary-price-cart {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
  margin-left: auto;
}

.modal-selection-summary #modal-summary-accessories {
  flex-basis: 100%;
  order: 3;
}

.modal-selection-text {
  color: var(--color-muted);
  margin: 0;
}

.modal-selection-summary .modal-selection-total {
  font-weight: 700;
  color: #86efac;
  font-size: 1rem;
}

.modal-btn-cart {
  flex-shrink: 0;
}

@media (max-width: 700px) {
  .modal-row-1 {
    grid-template-columns: 1fr;
  }
  .modal-fakk-image .modal-product-image-wrap {
    width: 100%;
    max-width: 240px;
    margin: 0 auto;
  }
  .modal-fakk-selector {
    width: 100%;
  }
  .booster-grid-container-wrapper {
    flex-direction: column;
    gap: 0.75rem;
  }
  .booster-grid-indicator-left,
  .booster-grid-actions-right {
    width: 100%;
    max-width: 200px;
  }
}

.modal-close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  z-index: 2;
  width: 2rem;
  height: 2rem;
  border: none;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.9);
  color: var(--color-text);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}

.modal-close:hover {
  background: rgba(30, 41, 59, 1);
}

.modal-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem;
}

.modal-product-image-wrap {
  width: 100%;
  max-width: 280px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-bg-alt);
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-product-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: var(--radius-md);
}

.modal-product-image-wrap .modal-product-image.no-image {
  display: none !important;
}

.modal-product-info {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.modal-product-name {
  font-size: 1.1rem;
  margin: 0;
}

.modal-product-description {
  font-size: 0.9rem;
  color: var(--color-muted);
  margin: 0;
  line-height: 1.4;
}

.modal-product-price {
  font-weight: 600;
  margin: 0;
}

.booster-grid-title {
  font-size: 0.9rem;
  margin: 0;
  flex: 1;
}

.booster-grid {
  margin-top: 0;
  width: 100%;
  max-width: 100%;
  padding: 0.25rem;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: visible;
}

/* Mozi/színház helyfoglaló stílus – kártya alakú slotok, keret nélkül */
.booster-grid-wrapper {
  display: grid;
  /* Dinamikus értékek JS-ből jönnek */
  gap: 4px 6px;
  padding: 0.4rem 0.5rem;
  align-items: center;
  justify-items: center;
  justify-content: start;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.6) 0%, rgba(2, 6, 23, 0.85) 100%);
  border-radius: var(--radius-md);
  width: fit-content;
  height: fit-content;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  margin: 0 auto;
  max-width: 100%;
}

.booster-grid-header {
  display: contents;
}

.booster-grid-header .booster-grid-corner {
  grid-column: 1;
  grid-row: 1;
}

.booster-grid-header .booster-grid-col-label {
  font-size: 0.6rem;
  color: var(--color-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

.booster-grid-row {
  display: contents;
}

.booster-grid-row-label {
  font-size: 0.6rem;
  color: var(--color-muted);
  display: flex;
  align-items: center;
  justify-self: end;
  padding-right: 4px;
  font-weight: 600;
}

.booster-slot {
  width: 24px;
  height: 36px;
  min-width: 24px;
  min-height: 36px;
  border-radius: 3px;
  border: 1px solid transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  transition: transform 0.12s, box-shadow 0.12s, border-color 0.15s;
  background: transparent;
}

.booster-slot-inner {
  font-size: 0.6rem;
  font-weight: 700;
  line-height: 1;
}

.booster-slot:hover:not(.booster-slot--sold):not(.booster-slot--reserved) {
  transform: scale(1.08);
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.45);
}

.booster-slot--available {
  background: linear-gradient(145deg, rgba(34, 197, 94, 0.3), rgba(22, 163, 74, 0.25));
  border-color: rgba(34, 197, 94, 0.8);
  color: #86efac;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.booster-slot--available .booster-slot-inner {
  color: #bbf7d0;
}

/* Selected (in cart): solid green + arrow – reference UX */
.booster-slot--reserved {
  background: linear-gradient(145deg, rgba(34, 197, 94, 0.55), rgba(22, 163, 74, 0.5));
  border-color: rgba(34, 197, 94, 0.9);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
  position: relative;
}

.booster-slot--reserved:hover {
  background: linear-gradient(145deg, rgba(34, 197, 94, 0.7), rgba(22, 163, 74, 0.6));
  border-color: #22c55e;
}

.booster-slot--reserved .booster-slot-inner {
  color: #fff;
}

.booster-slot--sold {
  background: rgba(75, 85, 99, 0.5);
  border-color: #4b5563;
  color: #9ca3af;
  cursor: not-allowed;
  opacity: 0.8;
}

.booster-slot--sold .booster-slot-inner {
  color: #9ca3af;
}

/* Pending = más vásárló foglalja (kék) */
.booster-slot--pending {
  background: linear-gradient(145deg, rgba(59, 130, 246, 0.4), rgba(37, 99, 235, 0.35));
  border-color: rgba(59, 130, 246, 0.9);
  color: #93c5fd;
  cursor: not-allowed;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.booster-slot--pending .booster-slot-inner {
  color: #bfdbfe;
}

/* Utils */

.hidden {
  display: none !important;
}

/* Responsiveness */

/* Admin: keep form above table (no side-by-side) on all breakpoints */
@media (min-width: 768px) {
  .admin-form {
    flex: 0 0 auto;
  }
  .admin-list {
    flex: 1 1 auto;
    min-width: 0;
  }
}

@media (max-width: 640px) {
  .header-content {
    flex-direction: column;
    align-items: flex-start;
  }
  .nav {
    width: 100%;
    justify-content: space-between;
  }
}

