/* ============================================================ */


/* ---------- Design tokens ---------- */
:root {
/* Barvy */
  --gold:        #FFD700;
  --gold-dark:   #E6C200;
  --gold-soft:   #FFF6BF;
  --ink:         #0E1726;
  --ink-2:       #1D2A3D;
  --muted:       #5A6577;
  --muted-2:     #8A94A6;
  --line:        #E6EAF0;
  --line-2:      #EEF2F7;
  --bg:          #FFFFFF;
  --bg-soft:     #F5F7FA;
  --green:       #12A150;
  --green-soft:  #E4F6EC;
  --red:         #D8412F;
  --orange:      #F07A16;

/* Rarity ĹˇtĂ­tky */
  --r-common:      #64748B;  --r-common-bg:      #EEF1F5;
  --r-uncommon:    #12A150;  --r-uncommon-bg:    #E4F6EC;
  --r-rare:        #2563EB;  --r-rare-bg:        #E6EEFE;
  --r-ultra:       #7C3AED;  --r-ultra-bg:       #F0E9FE;
  --r-secret:      #B8860B;  --r-secret-bg:      #FBF0D2;
  --r-promo:       #F07A16;  --r-promo-bg:       #FDEBDA;
  --r-holo:        #0EA5A5;  --r-holo-bg:        #DFF6F5;
  --r-reverse:     #4F46E5;  --r-reverse-bg:     #E7E7FD;

/* Tvar a stĂ­n */
  --radius:      14px;
  --radius-sm:   10px;
  --radius-lg:   20px;
  --shadow:      0 10px 30px rgba(14,23,38,.07);
  --shadow-sm:   0 4px 14px rgba(14,23,38,.06);
  --shadow-gold: 0 12px 26px rgba(255,215,0,.32);

/* RozmÄ›ry */
  --header-h:    92px;
  --wrap:        1240px;

  --font: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* ---------- Reset & base ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; letter-spacing: -.02em; color: var(--ink); }
h1 { font-size: clamp(30px, 4.5vw, 46px); font-weight: 900; }
h2 { font-size: clamp(22px, 3vw, 30px); font-weight: 800; }
h3 { font-size: 18px; font-weight: 800; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }
.section { padding: 54px 0; }
.section-soft { background: var(--bg-soft); }

/* ---------- TlaÄŤĂ­tka ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  border: 1px solid transparent; border-radius: var(--radius-sm);
  padding: 13px 22px; font-size: 15px; font-weight: 800; letter-spacing: -.01em;
  transition: .16s ease; white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn-gold  { background: var(--gold); color: var(--ink); box-shadow: var(--shadow-gold); }
.btn-gold:hover  { background: var(--gold-dark); transform: translateY(-1px); }
.btn-ink   { background: var(--ink); color: #fff; }
.btn-ink:hover   { background: var(--ink-2); transform: translateY(-1px); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--muted-2); }
.btn-block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }

/* ---------- Ĺ tĂ­tky * badge ---------- */
.tag {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 800;
}
.tag-common   { color: var(--r-common);   background: var(--r-common-bg); }
.tag-uncommon { color: var(--r-uncommon); background: var(--r-uncommon-bg); }
.tag-rare     { color: var(--r-rare);     background: var(--r-rare-bg); }
.tag-ultra    { color: var(--r-ultra);    background: var(--r-ultra-bg); }
.tag-secret   { color: var(--r-secret);   background: var(--r-secret-bg); }
.tag-promo    { color: var(--r-promo);    background: var(--r-promo-bg); }
.tag-holo     { color: var(--r-holo);     background: var(--r-holo-bg); }
.tag-reverse  { color: var(--r-reverse);  background: var(--r-reverse-bg); }

.stock-in  { color: var(--green); font-weight: 800; font-size: 13px; display: inline-flex; align-items: center; gap: 6px; }
.stock-in::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.stock-out { color: var(--muted-2); font-weight: 800; font-size: 13px; }

/* ============================================================ */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--bg); border-bottom: 1px solid var(--line);
}
.header-top {
  position: relative;
  display: flex; align-items: center; justify-content: center; gap: 22px;
  height: var(--header-h);
}
/* Logo */
.logo { display: flex; align-items: center; gap: 13px; flex-shrink: 0; }
.logo-mark {
  width: 80px; height: 80px; border-radius: 0;
  background: transparent; display: grid; place-items: center; flex-shrink: 0;
}
.logo-img {
  width: 80px; height: 80px; object-fit: contain; display: block;
  filter: drop-shadow(0 4px 8px rgba(255,215,0,.32));
}
.logo-text { font-size: 28px; font-weight: 900; letter-spacing: -.03em; }
.logo-text b { color: var(--gold); font-weight: 900; }

/* VyhledĂˇvĂˇnĂ­ */
.search { flex: 0 1 620px; max-width: min(620px, 48vw); position: relative; }
.search input {
  width: 100%; height: 46px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 0 16px 0 44px; font-size: 15px; color: var(--ink); background: var(--bg-soft);
  outline: none; transition: .15s;
}
.search input:focus { border-color: var(--gold); background: #fff; box-shadow: 0 0 0 3px var(--gold-soft); }
.search .search-ico {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  width: 19px; height: 19px; color: var(--muted-2); pointer-events: none;
}

/* Ikony vpravo */
.header-actions { position: absolute; right: 22px; top: 50%; transform: translateY(-50%); display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.icon-btn {
  position: relative; width: 44px; height: 44px; border-radius: 11px; border: 1px solid transparent;
  background: transparent; display: grid; place-items: center; color: var(--ink); transition: .15s;
}
.icon-btn:hover { background: var(--bg-soft); }
.icon-btn svg { width: 22px; height: 22px; }
.cart-badge {
  position: absolute; top: 4px; right: 4px; min-width: 19px; height: 19px; padding: 0 5px;
  border-radius: 10px; background: var(--gold); color: var(--ink);
  font-size: 11px; font-weight: 900; line-height: 19px; text-align: center; display: none;
}
.cart-badge.show { display: block; }

/* Navigace */
.header-nav { border-bottom: 1px solid var(--line-2); }
.nav-list { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; height: 52px; }
.nav-list a {
  display: flex; align-items: center; height: 100%; padding: 0 15px;
  font-size: 15px; font-weight: 700; color: var(--muted);
  border-bottom: 3px solid transparent; margin-bottom: -1px; transition: .15s;
}
.nav-list a:hover { color: var(--ink); }
.nav-list a.active { color: var(--ink); border-bottom-color: var(--gold); }

/* Hamburger (mobil) */
.hamburger { display: none; position: absolute; left: 22px; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 11px; background: #fff; place-items: center; }
.hamburger svg { width: 22px; height: 22px; }

/* ============================================================ */

.site-footer { background: var(--ink); color: #C7D0DD; margin-top: 60px; }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.5fr; gap: 40px;
  padding: 56px 0 40px;
}
.footer-col h4 { color: #fff; font-size: 15px; margin-bottom: 16px; letter-spacing: .01em; }
.footer-col .logo-text { color: #fff; margin-bottom: 12px; }
.footer-col p { font-size: 14px; color: #9AA6B6; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { font-size: 14px; color: #B7C1D0; transition: .15s; }
.footer-links a:hover { color: var(--gold); }
.footer-col p a { color: #B7C1D0; transition: .15s; }
.footer-col p a:hover { color: var(--gold); }
.footer-ident { margin-top: 12px; font-size: 13px; line-height: 1.6; color: #7E8CA0; }
.footer-bottom {
  border-top: 1px solid #22314A; padding: 22px 0;
  display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center;
}
.footer-bottom p { margin: 0; font-size: 12.5px; color: #7E8CA0; max-width: 720px; }
.footer-legal-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-legal-links a { font-size: 12.5px; color: #9AA6B6; }
.footer-legal-links a:hover { color: var(--gold); }

/* ============================================================ */

.mobile-overlay { position: fixed; inset: 0; background: rgba(14,23,38,.5); z-index: 90; opacity: 0; pointer-events: none; transition: .2s; }
.mobile-overlay.show { opacity: 1; pointer-events: auto; }
.mobile-menu {
  position: fixed; top: 0; left: 0; bottom: 0; width: min(320px, 86%); background: #fff; z-index: 100;
  transform: translateX(-100%); transition: .24s ease; display: flex; flex-direction: column; padding: 20px;
}
.mobile-menu.show { transform: none; }
.mobile-menu-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.mobile-menu-head .x { width: 40px; height: 40px; border: 0; background: var(--bg-soft); border-radius: 10px; font-size: 24px; color: var(--muted); }
.mobile-menu a { padding: 14px 12px; border-radius: 10px; font-weight: 700; font-size: 16px; color: var(--ink); }
.mobile-menu a:hover, .mobile-menu a.active { background: var(--gold-soft); }

/* ============================================================ */

@media (max-width: 900px) {
  .header-nav { display: none; }
  .hamburger { display: grid; }
  .header-top { gap: 12px; justify-content: center; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
}
@media (max-width: 640px) {
  :root { --header-h: 70px; }
  .logo-mark, .logo-img { width: 54px; height: 54px; }
  .logo-text { font-size: 22px; }
  .search { order: 3; flex-basis: 100%; max-width: none; }
  .header-top { flex-wrap: wrap; height: auto; padding: 12px 0; gap: 10px; justify-content: center; }
  .header-actions { position: static; transform: none; margin-left: 0; }
  .hamburger { position: static; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; padding: 40px 0 28px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .section { padding: 40px 0; }
}


