/* ============================================================
   Dzonas Cards – Neo-Collector Dark
   Fonts: Syne (headings) + Outfit (body)
   Palette: near-black + gold + warm cream
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

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

:root {
  /* Core */
  --bg:            #080808;
  --surface:       #111111;
  --surface-2:     #191919;
  --surface-3:     #222222;
  --border:        #242424;
  --border-bright: #383838;

  /* Text */
  --text:          #F2EDE4;
  --text-2:        #A09A91;
  --text-3:        #5C5750;

  /* Accents */
  --gold:          #F5C518;
  --gold-dim:      rgba(245,197,24,0.12);
  --gold-glow:     rgba(245,197,24,0.25);
  --red:           #FF2D55;
  --red-dim:       rgba(255,45,85,0.12);
  --teal:          #00C9A7;
  --teal-dim:      rgba(0,201,167,0.12);

  /* Semantic */
  --color-primary:      var(--gold);
  --color-primary-dark: #C9A400;
  --color-primary-glow: var(--gold-dim);
  --color-bg:           var(--bg);
  --color-surface:      var(--surface);
  --color-surface-2:    var(--surface-2);
  --color-border:       var(--border);
  --color-border-bright:var(--border-bright);
  --color-text:         var(--text);
  --color-muted:        var(--text-2);
  --color-success:      var(--teal);
  --color-warning:      #F5A623;
  --color-danger:       var(--red);

  --radius:  4px;
  --radius-lg: 8px;
  --shadow:  0 4px 32px rgba(0,0,0,.8);
  --font-head: 'Plus Jakarta Sans', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Plus Jakarta Sans', 'Helvetica Neue', Arial, sans-serif;

  --transition: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── Noise grain overlay ─────────────────────────────── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.028;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 180px;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--gold); text-decoration: none; transition: color var(--transition); }
a:hover { color: #FFD84D; }

h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text);
}

/* ── Scroll reveal ───────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes shimmer {
  0%   { background-position: -600px 0; }
  100% { background-position: 600px 0; }
}
@keyframes pulse-gold {
  0%, 100% { box-shadow: 0 0 0 0 var(--gold-glow); }
  50%       { box-shadow: 0 0 0 8px transparent; }
}
@keyframes ticker-slide {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ── Container ───────────────────────────────────────── */
.container { max-width: 1320px; margin: 0 auto; padding: 0 20px; }

/* ── Ticker / announcement bar ──────────────────────── */
.site-ticker {
  background: var(--gold);
  color: #000;
  font-family: var(--font-head);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  overflow: hidden;
  height: 32px;
  display: flex;
  align-items: center;
}
.site-ticker__track {
  display: flex;
  white-space: nowrap;
  animation: ticker-slide 24s linear infinite;
  gap: 0;
}
.site-ticker__track span {
  padding: 0 40px;
  opacity: 0.75;
}
.site-ticker__track span.sep {
  opacity: 0.3;
  padding: 0;
}

/* ── Header ──────────────────────────────────────────── */
.site-header {
  background: rgba(8,8,8,0.97);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  border-bottom: 1px solid var(--border);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header .container {
  display: flex;
  align-items: center;
  height: 60px;
  gap: 24px;
}

.logo {
  color: var(--text);
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 800;
  white-space: nowrap;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.logo::before {
  content: '';
  display: block;
  width: 22px; height: 22px;
  background: var(--gold);
  clip-path: polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%);
  flex-shrink: 0;
}
.logo:hover { color: var(--gold); }

.main-nav {
  display: flex;
  gap: 0;
  flex: 1;
}
.main-nav a {
  color: var(--text-2);
  font-family: var(--font-head);
  font-size: .75rem;
  font-weight: 600;
  padding: 8px 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color var(--transition);
  position: relative;
}
.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 14px; right: 14px;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform var(--transition);
  transform-origin: center;
}
.main-nav a:hover { color: var(--text); }
.main-nav a:hover::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }

/* ── Search ──────────────────────────────────────────── */
.search-form {
  display: flex;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--transition);
  position: relative;
}
.search-form:focus-within {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px var(--gold-dim);
}
.search-form input {
  background: transparent;
  border: none;
  color: var(--text);
  padding: 8px 12px;
  width: 180px;
  outline: none;
  font-family: var(--font-body);
  font-size: .83rem;
}
.search-form input::placeholder { color: var(--text-3); }
.search-form button {
  background: transparent;
  border: none;
  border-left: 1px solid var(--border);
  color: var(--text-2);
  padding: 8px 12px;
  cursor: pointer;
  transition: color var(--transition), background var(--transition);
  font-size: .9rem;
}
.search-form button:hover { color: var(--gold); background: var(--surface-2); }

/* ── Cart button ─────────────────────────────────────── */
.cart-btn {
  color: var(--text-2);
  font-size: .85rem;
  font-family: var(--font-head);
  font-weight: 600;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color var(--transition);
}
.cart-btn:hover { color: var(--gold); }
.cart-count {
  background: var(--gold);
  color: #000;
  border-radius: 50%;
  width: 18px; height: 18px;
  font-size: .65rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ── User menu ───────────────────────────────────────── */
.user-menu { position: relative; }
.user-menu__trigger {
  background: transparent;
  border: 1px solid var(--border-bright);
  color: var(--text-2);
  padding: 7px 14px;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: .78rem;
  font-family: var(--font-head);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: all var(--transition);
}
.user-menu__trigger:hover { border-color: var(--gold); color: var(--gold); }
.user-menu__dropdown {
  display: none;
  position: absolute;
  right: 0; top: calc(100% + 6px);
  background: var(--surface-2);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  min-width: 180px;
  border: 1px solid var(--border-bright);
  z-index: 200;
  overflow: hidden;
}
.user-menu.open .user-menu__dropdown { display: block; }
.user-menu__dropdown li { list-style: none; }
.user-menu__dropdown li a {
  display: block;
  padding: 11px 16px;
  color: var(--text-2);
  font-size: .82rem;
  font-family: var(--font-head);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: background var(--transition), color var(--transition);
}
.user-menu__dropdown li a:hover { background: var(--surface-3); color: var(--gold); }
.user-menu__dropdown .separator { border-top: 1px solid var(--border); }
.logout-link { color: var(--red) !important; }

/* ── Flash ───────────────────────────────────────────── */
.flash-container { padding: 0; }
.flash {
  padding: 12px 20px;
  margin: 8px 0;
  font-size: .84rem;
  border-left: 2px solid;
  font-family: var(--font-head);
  font-weight: 600;
  letter-spacing: 0.03em;
}
.flash--success { background: var(--teal-dim); color: var(--teal); border-color: var(--teal); }
.flash--error   { background: var(--red-dim); color: var(--red); border-color: var(--red); }
.flash--info    { background: var(--gold-dim); color: var(--gold); border-color: var(--gold); }

/* ── Main content ────────────────────────────────────── */
.main-content { padding: 32px 0 72px; }
.page-header { margin-bottom: 32px; padding-bottom: 24px; border-bottom: 1px solid var(--border); }
.page-header h1 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
}
.page-header p { color: var(--text-2); margin-top: 6px; font-size: .9rem; }

/* ── Buttons ─────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 22px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  font-size: .78rem;
  font-weight: 700;
  font-family: var(--font-head);
  text-decoration: none;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.btn:hover { text-decoration: none; }

.btn--primary {
  background: var(--gold);
  color: #000;
}
.btn--primary:hover {
  background: #FFD84D;
  color: #000;
  box-shadow: 0 4px 24px var(--gold-glow);
  transform: translateY(-1px);
}

.btn--outline {
  background: transparent;
  border: 1px solid var(--border-bright);
  color: var(--text-2);
}
.btn--outline:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: var(--gold-dim);
}

.btn--danger { background: var(--red); color: #fff; }
.btn--danger:hover { background: #FF5271; transform: translateY(-1px); }

.btn--sm  { padding: 6px 14px; font-size: .7rem; }
.btn--lg  { padding: 14px 36px; font-size: .84rem; }
.btn--icon { padding: 8px; font-size: 1rem; background: transparent; border: 1px solid var(--border); color: var(--text-2); border-radius: var(--radius); }
.btn--icon:hover { border-color: var(--gold); color: var(--gold); }
.btn--icon.active { background: var(--gold); color: #000; border-color: var(--gold); }
.btn[disabled] { opacity: .3; cursor: not-allowed; pointer-events: none; }
.w-full { width: 100%; justify-content: center; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }

/* ── Forms ───────────────────────────────────────────── */
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-size: .68rem;
  font-weight: 700;
  margin-bottom: 7px;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-family: var(--font-head);
}
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
.input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: .88rem;
  font-family: var(--font-body);
  outline: none;
  transition: border var(--transition), box-shadow var(--transition);
  background: var(--surface);
  color: var(--text);
}
.input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-dim);
}
.input::placeholder { color: var(--text-3); }
.input--sm { padding: 6px 10px; font-size: .82rem; }
select.input { cursor: pointer; }
select.input option { background: var(--surface); color: var(--text); }

/* ── Badges ──────────────────────────────────────────── */
.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 2px;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: var(--font-head);
  background: var(--surface-2);
  color: var(--text-2);
  border: 1px solid var(--border);
}
.badge--warning  { background: rgba(245,166,35,0.12); color: #F5A623; border-color: rgba(245,166,35,0.4); }
.badge--success  { background: var(--teal-dim); color: var(--teal); border-color: rgba(0,201,167,0.4); }
.badge--danger   { background: var(--red-dim); color: var(--red); border-color: rgba(255,45,85,0.4); }
.badge--default  { background: var(--surface-2); color: var(--text-2); border-color: var(--border); }
.badge--rarity   { background: rgba(168,100,252,0.12); color: #C084FC; border-color: rgba(168,100,252,0.4); }
.badge--cond     { background: var(--gold-dim); color: var(--gold); border-color: rgba(245,197,24,0.4); }
.badge--lang     { background: var(--teal-dim); color: var(--teal); border-color: rgba(0,201,167,0.35); }
.badge--status-pending   { background: rgba(245,166,35,0.12); color: #F5A623; border-color: rgba(245,166,35,0.4); }
.badge--status-confirmed { background: var(--gold-dim); color: var(--gold); border-color: rgba(245,197,24,0.4); }
.badge--status-shipped   { background: rgba(168,100,252,0.12); color: #C084FC; border-color: rgba(168,100,252,0.4); }
.badge--status-delivered { background: var(--teal-dim); color: var(--teal); border-color: rgba(0,201,167,0.4); }
.badge--status-cancelled { background: var(--red-dim); color: var(--red); border-color: rgba(255,45,85,0.4); }

/* ── Cards grid ──────────────────────────────────────── */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; }
.cards-grid--small { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }

.card-item {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
  transform-style: preserve-3d;
  position: relative;
}
.card-item::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(245,197,24,0.04) 0%, transparent 60%);
  opacity: 0;
  transition: opacity var(--transition);
  pointer-events: none;
}
.card-item:hover {
  transform: translateY(-4px) scale(1.01);
  border-color: rgba(245,197,24,0.5);
  box-shadow: 0 12px 40px rgba(0,0,0,.7), 0 0 0 1px rgba(245,197,24,0.15);
}
.card-item:hover::after { opacity: 1; }

.card-item__image-wrap {
  display: block;
  aspect-ratio: 3/4;
  overflow: hidden;
  background: var(--surface-2);
  position: relative;
}
.card-item__image-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.card-item:hover .card-item__image-wrap img { transform: scale(1.06); }
.card-item__no-img {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem; color: var(--border-bright);
  font-family: var(--font-head);
  letter-spacing: -0.05em;
  color: var(--border-bright);
}
.card-item__body { padding: 12px; }
.card-item__set {
  font-size: .62rem;
  color: var(--text-3);
  margin-bottom: 3px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: var(--font-head);
  font-weight: 600;
}
.card-item__name { font-size: .85rem; font-weight: 700; margin-bottom: 7px; font-family: var(--font-head); }
.card-item__name a { color: var(--text); }
.card-item__name a:hover { color: var(--gold); }
.card-item__meta { display: flex; flex-wrap: wrap; gap: 3px; margin-bottom: 9px; }
.card-item__footer { display: flex; align-items: center; justify-content: space-between; }
.card-item__actions { display: flex; gap: 4px; }

.price { color: var(--gold); font-weight: 700; font-family: var(--font-head); font-size: .95rem; }
.price--lg { font-size: 1.7rem; letter-spacing: -0.03em; }
.price--discounted { color: var(--teal); }

/* ── Shop layout ─────────────────────────────────────── */
.shop-layout { display: grid; grid-template-columns: 220px 1fr; gap: 28px; }
.shop-sidebar {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 18px;
  align-self: start;
  position: sticky;
  top: 76px;
}
.filter-section { margin-bottom: 20px; }
.filter-section h3 {
  font-size: .62rem;
  font-weight: 800;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-3);
  font-family: var(--font-head);
}

/* ── Pagination ──────────────────────────────────────── */
.pagination { display: flex; gap: 6px; margin-top: 32px; flex-wrap: wrap; }
.pagination a {
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: .75rem;
  font-weight: 700;
  font-family: var(--font-head);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-2);
  transition: all var(--transition);
}
.pagination a:hover { border-color: var(--gold); color: var(--gold); background: var(--gold-dim); }
.pagination a.active { background: var(--gold); color: #000; border-color: var(--gold); }

/* ── Card detail ─────────────────────────────────────── */
.card-detail__main { display: grid; grid-template-columns: 300px 1fr; gap: 48px; margin-bottom: 56px; }
.card-detail__image img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 80px rgba(0,0,0,.8), 0 0 0 1px var(--border);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s;
}
.card-detail__image img:hover {
  transform: scale(1.02) rotate(-0.5deg);
  box-shadow: 0 32px 100px rgba(0,0,0,.9), 0 0 0 1px rgba(245,197,24,0.4);
}
.card-detail__no-img {
  width: 100%; aspect-ratio: 3/4;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface-2); border-radius: var(--radius-lg);
  font-size: 5rem; color: var(--border-bright);
  border: 1px solid var(--border);
}
.card-detail__breadcrumb {
  font-size: .7rem;
  color: var(--text-3);
  margin-bottom: 12px;
  font-family: var(--font-head);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.card-detail__specs { width: 100%; border-collapse: collapse; margin: 18px 0; }
.card-detail__specs th,
.card-detail__specs td { padding: 10px 12px; border-bottom: 1px solid var(--border); font-size: .86rem; }
.card-detail__specs th { text-align: left; color: var(--text-3); width: 130px; font-weight: 600; font-family: var(--font-head); font-size: .7rem; text-transform: uppercase; letter-spacing: 0.08em; }
.card-detail__price-row { display: flex; align-items: center; gap: 14px; margin: 24px 0; }
.card-detail__actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 18px 0; }
.card-detail__rating { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.stars { color: var(--gold); font-size: 1.1rem; }
.loyalty-info { font-size: .8rem; color: var(--text-2); margin-top: 8px; }
.discount-badge {
  background: var(--teal-dim); color: var(--teal);
  border: 1px solid rgba(0,201,167,0.4);
  padding: 3px 10px; border-radius: 2px;
  font-size: .72rem; font-weight: 700; font-family: var(--font-head);
  letter-spacing: 0.08em; text-transform: uppercase;
}

/* ── Cart ────────────────────────────────────────────── */
.cart-layout { display: grid; grid-template-columns: 1fr 320px; gap: 24px; }
.cart-row {
  display: grid;
  grid-template-columns: 70px 1fr 100px 100px 40px;
  gap: 14px; align-items: center;
  padding: 16px 0; border-bottom: 1px solid var(--border);
}
.cart-row__image img { width: 70px; border-radius: 4px; }
.cart-row__no-img {
  width: 70px; height: 90px; background: var(--surface-2);
  display: flex; align-items: center; justify-content: center;
  border-radius: 4px; font-size: 1.5rem;
}
.cart-summary {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px; align-self: start; position: sticky; top: 76px;
}
.summary-table { width: 100%; border-collapse: collapse; margin-bottom: 18px; }
.summary-table td { padding: 8px 0; color: var(--text-2); font-size: .86rem; }
.summary-table td:last-child { text-align: right; color: var(--text); }
.discount-row td { color: var(--teal) !important; }
.total-row td {
  font-size: 1.1rem; font-weight: 800;
  padding-top: 14px; border-top: 1px solid var(--border-bright);
  color: var(--text) !important;
  font-family: var(--font-head);
  letter-spacing: -0.02em;
}
.qty-input { width: 70px; text-align: center; }

/* ── Checkout ────────────────────────────────────────── */
.checkout-layout { display: grid; grid-template-columns: 1fr 340px; gap: 24px; }
.checkout-section {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 24px; margin-bottom: 16px;
}
.checkout-section h2 { margin-bottom: 18px; font-size: 1rem; font-weight: 800; font-family: var(--font-head); letter-spacing: 0.02em; text-transform: uppercase; }
.checkout-summary {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 22px; align-self: start; position: sticky; top: 76px;
}
.checkout-item { display: flex; justify-content: space-between; padding: 6px 0; font-size: .86rem; }
.checkout-totals div { display: flex; justify-content: space-between; padding: 5px 0; font-size: .86rem; }
.checkout-note { font-size: .73rem; color: var(--text-2); margin-top: 8px; }
.payment-options { display: flex; flex-direction: column; gap: 10px; }
.payment-option {
  display: flex; flex-direction: column;
  padding: 14px; border: 1px solid var(--border);
  border-radius: var(--radius); cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
}
.payment-option input { display: none; }
.payment-option:has(input:checked) { border-color: var(--gold); background: var(--gold-dim); }
.payment-option span { font-weight: 700; font-family: var(--font-head); font-size: .86rem; text-transform: uppercase; letter-spacing: 0.06em; }
.payment-option small { color: var(--text-2); font-size: .78rem; margin-top: 3px; }

/* ── Auth ────────────────────────────────────────────── */
.auth-page { display: flex; justify-content: center; padding: 72px 16px; }
.auth-box {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 44px; width: 100%; max-width: 440px;
  position: relative;
}
.auth-box::before {
  content: '';
  position: absolute;
  top: 0; left: 50%; transform: translateX(-50%);
  width: 60px; height: 2px;
  background: var(--gold);
  border-radius: 0 0 2px 2px;
}
.auth-box h1 { margin-bottom: 8px; font-size: 1.7rem; font-weight: 800; letter-spacing: -0.03em; }
.auth-box__sub { color: var(--text-2); margin-bottom: 28px; font-size: .88rem; }
.auth-box__links {
  margin-top: 22px; text-align: center; font-size: .82rem;
  display: flex; gap: 12px; justify-content: center; color: var(--text-2);
}

/* ── Dashboard ───────────────────────────────────────── */
.dashboard-layout { display: grid; grid-template-columns: 200px 1fr; gap: 24px; }
.dashboard-nav {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 8px; align-self: start;
}
.dashboard-nav a {
  display: block; padding: 9px 14px; color: var(--text-2);
  border-radius: var(--radius); font-size: .75rem; font-weight: 700;
  font-family: var(--font-head); letter-spacing: 0.06em; text-transform: uppercase;
  transition: all var(--transition);
}
.dashboard-nav a:hover { color: var(--text); background: var(--surface-2); }
.dashboard-nav a.active { color: var(--gold); background: var(--gold-dim); }

.stats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; margin-bottom: 28px; }
.stat-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 20px;
  position: relative; overflow: hidden;
}
.stat-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}
.stat-card:hover::before { opacity: 1; }
.stat-card--highlight { border-left: 2px solid var(--gold); }
.stat-card--warning   { border-left: 2px solid var(--color-warning); }
.stat-card__value {
  font-size: 1.9rem; font-weight: 800; color: var(--gold);
  font-family: var(--font-head); letter-spacing: -0.04em;
}
.stat-card__label { font-size: .68rem; color: var(--text-3); margin-top: 4px; text-transform: uppercase; letter-spacing: 0.1em; font-family: var(--font-head); font-weight: 700; }
.stat-card__link { font-size: .76rem; color: var(--gold); display: block; margin-top: 10px; font-family: var(--font-head); font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }

/* ── Tables ──────────────────────────────────────────── */
.data-table { width: 100%; border-collapse: collapse; font-size: .84rem; }
.data-table th {
  background: var(--surface-2); padding: 10px 14px;
  text-align: left; font-weight: 700;
  border-bottom: 1px solid var(--border-bright);
  color: var(--text-3); font-size: .65rem;
  text-transform: uppercase; letter-spacing: 0.12em;
  font-family: var(--font-head);
}
.data-table td { padding: 11px 14px; border-bottom: 1px solid var(--border); }
.data-table tbody tr:hover { background: var(--surface-2); }
.row--warning td { background: rgba(245,166,35,0.04); }
.row--muted td { opacity: .4; }

/* ── Info box ────────────────────────────────────────── */
.info-box {
  background: var(--gold-dim); border: 1px solid rgba(245,197,24,0.25);
  color: var(--gold); padding: 13px 16px; border-radius: var(--radius);
  font-size: .84rem; margin: 12px 0;
  font-family: var(--font-head); font-weight: 600;
}
.info-box--success { background: var(--teal-dim); border-color: rgba(0,201,167,0.25); color: var(--teal); }
.info-box--warning { background: rgba(245,166,35,0.1); border-color: rgba(245,166,35,0.25); color: #F5A623; }

/* ── Admin ───────────────────────────────────────────── */
.admin-layout { display: grid; grid-template-columns: 200px 1fr; gap: 24px; }
.admin-sidebar {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 8px; align-self: start; position: sticky; top: 76px;
}
.admin-sidebar ul { list-style: none; }
.admin-sidebar li a {
  display: block; padding: 9px 14px; color: var(--text-2);
  border-radius: var(--radius); font-size: .75rem; font-weight: 700;
  font-family: var(--font-head); letter-spacing: 0.06em; text-transform: uppercase;
  transition: all var(--transition);
}
.admin-sidebar li a:hover { color: var(--text); background: var(--surface-2); }
.admin-sidebar li a.active { color: var(--gold); background: var(--gold-dim); }
.admin-sidebar .separator { border-top: 1px solid var(--border); margin: 6px 0; }
.admin-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; margin-bottom: 28px; }
.admin-content h2 { margin: 26px 0 16px; font-size: 1rem; font-weight: 800; font-family: var(--font-head); text-transform: uppercase; letter-spacing: 0.04em; }
.admin-form-box {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 26px; margin-bottom: 20px;
}
.admin-filters { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 20px; }

/* ── Reviews ─────────────────────────────────────────── */
.reviews-section { margin-top: 56px; }
.review-form-wrap {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 26px; margin-bottom: 26px;
}
.reviews-list { display: flex; flex-direction: column; gap: 12px; }
.review-item {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 18px;
  transition: border-color var(--transition);
}
.review-item:hover { border-color: var(--border-bright); }
.review-item__header { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; flex-wrap: wrap; }
.review-item__header time { color: var(--text-3); font-size: .75rem; font-family: var(--font-head); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.star-picker { display: flex; flex-direction: row-reverse; gap: 2px; }
.star-picker input { display: none; }
.star-picker label { font-size: 1.5rem; cursor: pointer; color: var(--border-bright); transition: color var(--transition); }
.star-picker label:hover,
.star-picker label:hover ~ label,
.star-picker input:checked ~ label { color: var(--gold); }

/* ── FAQ ─────────────────────────────────────────────── */
.faq-section { margin-bottom: 36px; }
.faq-section h2 { font-size: 1.1rem; margin-bottom: 16px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; }
.faq-item {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); margin-bottom: 8px; overflow: hidden; transition: border-color var(--transition);
}
.faq-item[open] { border-color: var(--border-bright); }
.faq-item__question {
  padding: 16px 18px; cursor: pointer; font-weight: 700;
  list-style: none; font-size: .9rem;
  font-family: var(--font-head);
  transition: color var(--transition);
}
.faq-item__question::-webkit-details-marker { display: none; }
.faq-item[open] .faq-item__question { border-bottom: 1px solid var(--border); color: var(--gold); }
.faq-item__answer { padding: 16px 18px; color: var(--text-2); font-size: .88rem; line-height: 1.75; }
.faq-contact { text-align: center; margin-top: 32px; color: var(--text-2); }

/* ── Gallery ─────────────────────────────────────────── */
.gallery-filters { margin-bottom: 22px; }
.gallery-filter-form { display: flex; gap: 10px; flex-wrap: wrap; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
.gallery-item {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: border-color var(--transition), transform var(--transition);
}
.gallery-item:hover { border-color: rgba(245,197,24,0.4); transform: translateY(-2px); }
.gallery-item__img { width: 100%; aspect-ratio: 3/4; object-fit: cover; }
.gallery-item__no-img {
  width: 100%; aspect-ratio: 3/4;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface-2); font-size: 3rem;
}
.gallery-item__info { padding: 10px; }
.gallery-item__set { font-size: .62rem; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.08em; font-family: var(--font-head); font-weight: 700; }
.gallery-item__name { font-size: .84rem; font-weight: 700; margin: 4px 0 6px; font-family: var(--font-head); }
.gallery-item__meta { display: flex; flex-wrap: wrap; gap: 3px; margin-bottom: 6px; }

/* ── Loyalty ─────────────────────────────────────────── */
.loyalty-page { max-width: 800px; }
.loyalty-balance {
  text-align: center; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 48px; margin-bottom: 28px; position: relative; overflow: hidden;
}
.loyalty-balance::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% -10%, rgba(245,197,24,0.1), transparent 65%);
  pointer-events: none;
}
.loyalty-balance__points {
  font-size: 4rem; font-weight: 800; color: var(--gold);
  font-family: var(--font-head); letter-spacing: -0.05em;
}
.loyalty-balance__label { font-size: .76rem; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.14em; margin-top: 4px; font-family: var(--font-head); font-weight: 700; }
.loyalty-balance__value { font-size: 1.1rem; color: var(--text); margin-top: 10px; }
.loyalty-info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 28px; }
.loyalty-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 22px;
}
.loyalty-card h3 { margin-bottom: 14px; font-size: .9rem; font-family: var(--font-head); font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; }
.loyalty-card ul { padding-left: 18px; font-size: .88rem; line-height: 2.2; color: var(--text-2); }

/* ── Buyback / Request ───────────────────────────────── */
.buyback-layout, .request-layout { display: grid; grid-template-columns: 1fr 300px; gap: 24px; }
.buyback-info, .request-info {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 22px; align-self: start;
}
.buyback-info ol, .request-info ol { padding-left: 18px; line-height: 2.2; color: var(--text-2); font-size: .88rem; }
.buyback-admin-item {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 18px; margin-bottom: 14px;
  display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: start;
}
.buyback-admin-item__form { display: flex; flex-direction: column; gap: 8px; min-width: 220px; }

/* ── Newsletter ──────────────────────────────────────── */
.newsletter-page { display: grid; grid-template-columns: 1fr 300px; gap: 24px; }
.newsletter-info {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 22px; align-self: start;
}
.newsletter-info ul { padding-left: 18px; line-height: 2.2; color: var(--text-2); font-size: .88rem; }
.footer-newsletter { display: flex; gap: 8px; }
.footer-newsletter input { flex: 1; }

/* ── Order detail ────────────────────────────────────── */
.order-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.order-detail__info h3, .order-detail__items h3 { margin: 18px 0 10px; font-size: .88rem; font-weight: 800; font-family: var(--font-head); text-transform: uppercase; letter-spacing: 0.06em; }
.order-totals { text-align: right; margin-top: 14px; }
.order-totals div { display: flex; justify-content: space-between; padding: 4px 0; font-size: .86rem; }
.order-admin-layout { display: grid; grid-template-columns: 1fr 320px; gap: 24px; }

/* ── Search dropdown ─────────────────────────────────── */
.search-dropdown {
  position: absolute; top: 100%; left: 0; right: 0;
  background: var(--surface-2); border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid var(--border-bright); z-index: 300; overflow: hidden; margin-top: 4px;
}
.search-dropdown__item {
  display: grid; grid-template-columns: 40px 1fr auto;
  gap: 12px; padding: 12px 14px; align-items: center;
  color: var(--text); border-bottom: 1px solid var(--border); transition: background var(--transition);
}
.search-dropdown__item:hover { background: var(--surface-3); }
.search-dropdown__item img { width: 40px; height: 54px; object-fit: cover; border-radius: 3px; }
.search-dropdown__no-img {
  width: 40px; height: 54px; background: var(--surface-3);
  display: flex; align-items: center; justify-content: center; border-radius: 3px;
}
.search-dropdown__item strong { font-size: .86rem; font-family: var(--font-head); font-weight: 700; }
.search-dropdown__item span { font-size: .72rem; color: var(--text-2); }
.search-dropdown__price { color: var(--gold); font-weight: 800; font-family: var(--font-head); white-space: nowrap; }
.search-dropdown__all {
  display: block; padding: 12px 14px; text-align: center;
  font-size: .74rem; color: var(--gold); font-weight: 700;
  font-family: var(--font-head); letter-spacing: 0.08em; text-transform: uppercase;
  border-top: 1px solid var(--border); transition: background var(--transition);
}
.search-dropdown__all:hover { background: var(--surface-3); }

/* ── Toast ───────────────────────────────────────────── */
.toast {
  position: fixed; bottom: 24px; right: 24px;
  background: var(--surface-2); border: 1px solid var(--border-bright);
  color: var(--text); padding: 13px 20px; border-radius: var(--radius-lg);
  font-size: .84rem; font-family: var(--font-head); font-weight: 600;
  box-shadow: var(--shadow);
  opacity: 0; transform: translateY(12px) scale(0.98);
  transition: opacity 0.25s, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 9999;
}
.toast--visible { opacity: 1; transform: none; }
.toast--error { background: rgba(255,45,85,0.15); border-color: rgba(255,45,85,0.5); color: var(--red); }

/* ── Footer ──────────────────────────────────────────── */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  color: var(--text-2);
  padding: 56px 0 28px;
  margin-top: 80px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 32px; margin-bottom: 32px;
}
.footer-col h4 {
  color: var(--text); margin-bottom: 16px; font-size: .7rem;
  font-weight: 800; text-transform: uppercase; letter-spacing: 0.14em;
  font-family: var(--font-head);
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { color: var(--text-2); font-size: .84rem; transition: color var(--transition); }
.footer-col ul li a:hover { color: var(--gold); }
.footer-col p { font-size: .84rem; line-height: 1.9; }
.footer-bottom {
  border-top: 1px solid var(--border); padding-top: 20px;
  text-align: center; font-size: .74rem; color: var(--text-3);
  font-family: var(--font-head); font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
}

/* ── Section heading ─────────────────────────────────── */
.section-heading {
  font-size: 1.2rem; font-weight: 800; letter-spacing: -0.02em;
  margin-bottom: 22px; display: flex; align-items: center; gap: 14px;
  text-transform: uppercase;
}
.section-heading::after { content: ''; flex: 1; height: 1px; background: var(--border); }

/* ── Page header ─────────────────────────────────────── */
.page-header { margin-bottom: 32px; }
.page-header h1 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}
.page-header p { color: var(--text-2); margin-top: 8px; }

/* ── Utility ─────────────────────────────────────────── */
.text-success { color: var(--teal); }
.text-danger  { color: var(--red); }
.text-muted   { color: var(--text-2); }

.empty-state {
  text-align: center; padding: 64px 24px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.empty-state p { color: var(--text-2); margin-bottom: 20px; font-size: 1rem; }

/* ── Skeleton loading ────────────────────────────────── */
.skeleton {
  background: linear-gradient(90deg, var(--surface) 25%, var(--surface-2) 50%, var(--surface) 75%);
  background-size: 600px 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius);
}

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 900px) {
  .shop-layout, .cart-layout, .checkout-layout, .dashboard-layout, .admin-layout,
  .buyback-layout, .request-layout, .newsletter-page, .order-detail, .loyalty-info-grid {
    grid-template-columns: 1fr;
  }
  .shop-sidebar { position: static; }
  .card-detail__main { grid-template-columns: 1fr; }
  .site-header .container { gap: 10px; }
  .main-nav { display: none; }
}
@media (max-width: 600px) {
  .cart-row { grid-template-columns: 60px 1fr 70px; }
  .cart-row__subtotal, .cart-row__remove { display: none; }
  .header-actions { gap: 6px; }
  .search-form input { width: 120px; }
}

/* ── Card Picker ─────────────────────────────────────── */
.card-picker { position: relative; }

.card-picker__search { position: relative; }

.card-picker__results {
  position: absolute;
  top: calc(100% + 4px);
  left: 0; right: 0;
  background: var(--surface-2);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  z-index: 500;
  max-height: 420px;
  overflow-y: auto;
  padding: 8px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 8px;
}

.card-picker__item {
  cursor: pointer;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  background: var(--surface);
  transition: border-color var(--transition), transform var(--transition);
  display: flex;
  flex-direction: column;
}
.card-picker__item:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
}
.card-picker__item img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  display: block;
  background: var(--surface-3);
}
.card-picker__item-noimg {
  width: 100%;
  aspect-ratio: 3/4;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-3);
  color: var(--text-3);
  font-size: .75rem;
  font-family: var(--font-head);
  font-weight: 700;
  letter-spacing: 0.06em;
}
.card-picker__item-info {
  padding: 6px 8px;
  border-top: 1px solid var(--border);
}
.card-picker__item-name {
  font-size: .72rem;
  font-weight: 700;
  font-family: var(--font-head);
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}
.card-picker__item-set {
  font-size: .62rem;
  color: var(--text-3);
  font-family: var(--font-head);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.card-picker__loading {
  grid-column: 1 / -1;
  text-align: center;
  padding: 20px;
  color: var(--text-2);
  font-size: .84rem;
  font-family: var(--font-head);
}
.card-picker__empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 20px;
  color: var(--text-3);
  font-size: .84rem;
}

/* Vybraná karta */
.card-picker__selected {
  display: flex !important;
  align-items: center;
  gap: 14px;
  padding: 12px;
  background: var(--surface);
  border: 1px solid rgba(245,197,24,0.4);
  border-radius: var(--radius-lg);
  margin-top: 8px;
  position: relative;
}
.card-picker__selected img {
  width: 56px;
  border-radius: 4px;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0,0,0,.5);
}
.card-picker__selected-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
  min-width: 0;
}
.card-picker__selected-info strong {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.card-picker__selected-info span {
  font-size: .75rem;
  color: var(--text-2);
  font-family: var(--font-head);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.card-picker__clear {
  position: absolute;
  top: 8px; right: 8px;
  background: var(--surface-3);
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 24px; height: 24px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  color: var(--text-2);
  font-size: 1rem;
  line-height: 1;
  transition: all var(--transition);
}
.card-picker__clear:hover {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

/* Fix: hidden attribute nesmí být přebito CSS */
[hidden] { display: none !important; }

/* ── Load more ───────────────────────────────────────── */
.load-more-wrap {
  text-align: center;
  margin-top: 40px;
  padding: 32px 0;
  border-top: 1px solid var(--border);
}
.load-more-count {
  margin-top: 12px;
  font-size: .75rem;
  color: var(--text-3);
  font-family: var(--font-head);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.load-more-btn.loading {
  opacity: .5;
  pointer-events: none;
}

/* ── Gallery image quality ───────────────────────────── */
.gallery-item__img {
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}
.gallery-item__no-price {
  font-size: .68rem;
  color: var(--text-3);
  font-family: var(--font-head);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 4px;
  display: block;
}

/* ── Market price ────────────────────────────────────── */
.market-price {
  color: var(--teal) !important;
}
.market-price-label {
  display: block;
  font-size: .6rem;
  color: var(--text-3);
  font-family: var(--font-head);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 1px;
  margin-bottom: 4px;
}

/* ══════════════════════════════════════════════════════
   Gallery v2 – Cardmarket-inspired
═══════════════════════════════════════════════════════ */
.gallery-page {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 28px;
  align-items: start;
}

/* ── Sidebar ─────────────────────────────────────────── */
.gallery-sidebar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 0;
  position: sticky;
  top: 76px;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
}
.gallery-sidebar__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  position: sticky;
  top: 0;
  background: var(--surface);
  z-index: 2;
}
.gallery-filter-group {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}
.gallery-filter-label {
  display: block;
  font-size: .65rem;
  font-weight: 800;
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-3);
  margin-bottom: 8px;
}
.gallery-filter-toggle {
  width: 100%;
  background: none;
  border: none;
  color: var(--text-2);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0;
  transition: color var(--transition);
}
.gallery-filter-toggle:hover { color: var(--gold); }
.gallery-filter-body {
  margin-top: 10px;
}
.gallery-filter-checks {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.gallery-filter-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .8rem;
  color: var(--text-2);
  cursor: pointer;
  transition: color var(--transition);
}
.gallery-filter-checkbox:hover { color: var(--text); }
.gallery-filter-checkbox input { accent-color: var(--gold); }
.gallery-filter-toggle-mobile { display: none; }

/* ── Main area ───────────────────────────────────────── */
.gallery-main__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.gallery-results-count {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .88rem;
  color: var(--text);
}

/* ── Card grid v2 ────────────────────────────────────── */
.gallery-grid-v2 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 14px;
}
.gallery-card-v2 {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
  text-decoration: none;
  cursor: pointer;
}
.gallery-card-v2:hover {
  border-color: rgba(245,197,24,0.5);
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(0,0,0,.6);
}
.gallery-card-v2__img-wrap {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  background: var(--surface-2);
}
.gallery-card-v2__img-wrap img {
  width: 100%; height: 100%;
  object-fit: contain;
  transition: transform 0.35s cubic-bezier(0.16,1,0.3,1);
}
.gallery-card-v2:hover .gallery-card-v2__img-wrap img { transform: scale(1.05); }
.gallery-card-v2__no-img {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  color: var(--border-bright); font-family: var(--font-head); font-size: .8rem;
}
.gallery-card-v2__lang {
  position: absolute;
  top: 6px; right: 6px;
  background: rgba(0,0,0,.7);
  color: var(--text);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .6rem;
  letter-spacing: 0.08em;
  padding: 2px 6px;
  border-radius: 3px;
  backdrop-filter: blur(4px);
}
.gallery-card-v2__body {
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
}
.gallery-card-v2__set {
  font-size: .6rem;
  color: var(--text-3);
  font-family: var(--font-head);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.gallery-card-v2__name {
  font-size: .82rem;
  font-weight: 700;
  color: var(--text);
  font-family: var(--font-head);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}
.gallery-card-v2__rarity {
  font-size: .6rem;
  color: var(--text-3);
  font-family: var(--font-head);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.gallery-card-v2__price {
  margin-top: 6px;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.gallery-card-v2__czk {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: .9rem;
  color: var(--gold);
  letter-spacing: -0.02em;
}
.gallery-card-v2__eur {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .72rem;
  color: var(--text-2);
}
.gallery-card-v2__price-label {
  font-size: .58rem;
  color: var(--text-3);
  font-family: var(--font-head);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.gallery-card-v2__no-price {
  font-size: .65rem;
  color: var(--text-3);
  font-family: var(--font-head);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 6px;
}

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 900px) {
  .gallery-page { grid-template-columns: 1fr; }
  .gallery-sidebar {
    position: static;
    max-height: none;
    display: none;
  }
  .gallery-sidebar.open { display: block; }
  .gallery-filter-toggle-mobile { display: inline-flex; }
  .gallery-grid-v2 { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
}
@media (max-width: 500px) {
  .gallery-grid-v2 { grid-template-columns: repeat(3, 1fr); gap: 8px; }
}

/* ── Gallery card wishlist button ───────────────────── */
.gallery-card-v2 { position: relative; }
.gallery-card-v2__link { display: flex; flex-direction: column; text-decoration: none; flex: 1; }
.gallery-card-v2__wish {
  position: absolute;
  top: 8px; left: 8px;
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  color: rgba(255,255,255,0.5);
  font-size: .9rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
  z-index: 2;
  line-height: 1;
  padding: 0;
}
.gallery-card-v2__wish:hover {
  background: rgba(255,45,85,0.3);
  border-color: var(--red);
  color: var(--red);
  transform: scale(1.15);
}
.gallery-card-v2__wish.active {
  background: rgba(255,45,85,0.2);
  border-color: var(--red);
  color: var(--red);
}

/* ── Cart btn – gold icon ────────────────────────────── */
.cart-btn {
  display: flex;
  align-items: center;
  gap: 0;
  color: var(--gold);
  transition: opacity var(--transition);
}
.cart-btn:hover { opacity: 0.8; color: var(--gold); }
.cart-btn svg { stroke: var(--gold); }

/* ── Search form wider ───────────────────────────────── */
.search-form input { width: 220px; }
@media (max-width: 900px) { .search-form input { width: 140px; } }

/* ── Header live search dropdown ────────────────────── */
.search-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0; right: 0;
  background: var(--surface-2);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  z-index: 600;
  overflow: hidden;
}
.search-hit {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  text-decoration: none;
  transition: background var(--transition);
}
.search-hit:hover { background: var(--surface-3); }
.search-hit:last-child { border-bottom: none; }
.search-hit__img { width: 40px; height: 54px; object-fit: cover; border-radius: 3px; background: var(--surface-3); }
.search-hit__name { font-family: var(--font-head); font-weight: 700; font-size: .84rem; }
.search-hit__set { font-size: .7rem; color: var(--text-2); margin-top: 2px; }
.search-hit__price { color: var(--gold); font-family: var(--font-head); font-weight: 800; font-size: .82rem; white-space: nowrap; }
.search-hit__all {
  display: block; padding: 11px 14px; text-align: center;
  font-size: .74rem; color: var(--gold); font-weight: 700;
  font-family: var(--font-head); letter-spacing: 0.08em; text-transform: uppercase;
  transition: background var(--transition);
}
.search-hit__all:hover { background: var(--surface-3); }

/* ── Gallery search wider ────────────────────────────── */
.gallery-filter-group input[type="search"] { width: 100%; }

/* ── Wishlist btn fix ────────────────────────────────── */
.wishlist-btn { cursor: pointer; }

/* ── Feature icons – gold ────────────────────────────── */
.feature__icon svg {
  stroke: var(--gold);
}
.feature__icon {
  color: var(--gold);
}

/* ── Sidebar search dropdown ─────────────────────────── */
.shop-search-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0; right: 0;
  background: var(--surface-2);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  z-index: 500;
  max-height: 360px;
  overflow-y: auto;
}
