.footer-logo {
  height: 50px;
  width: auto;
  display: inline-block;
  opacity: 0.85;
}
/* ===== RESET & ZÁKLADNÍ STYLY ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* === BARVY === */
  --primary: #0077b6;
  --primary-light: #0096c7;
  --primary-dark: #005f87;
  --secondary: #ffb703;
  --secondary-light: #fb8500;
  --accent: #ffe45f;
  --success: #10b981;
  --warning: #f59e0b;
  --error: #ef4444;
  
  /* === NEUTRÁLY === */
  --text-primary: #1a1a1a;
  --text-secondary: #4a5568;
  --text-muted: #718096;
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-glass: rgba(219, 219, 219, 0.563);
  --border-light: rgba(0, 0, 0, 0.1);
  --border-medium: rgba(0, 0, 0, 0.15);
  
  /* === TYPOGRAFIE === */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-secondary: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  
  /* === ROZMĚRY === */
  --border-radius-sm: 8px;
  --border-radius-md: 12px;
  --border-radius-lg: 16px;
  --border-radius-xl: 20px;
  --border-radius-2xl: 24px;
  --border-radius-full: 9999px;
  
  /* === STÍNY === */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.2);
  --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.25);
  
  /* === TRANSITION === */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
}

body {
  font-family: var(--font-primary);
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-primary);
  min-height: 100vh;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  margin: 0;
  padding: 0;
  position: relative;
}

html {
  scroll-behavior: smooth;
  margin: 0;
  padding: 0;
}

/* Zabraň horizontálnímu posunu/scrollu */
html, body { overflow-x: hidden; }

/* ===== TYPOGRAFIE ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-primary);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }

p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
  font-size: 1.1rem;
  line-height: 1.6;
}

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

/* ===== NAVIGACE ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  z-index: 1000; /* Nad vším ostatním */
  transition: all var(--transition-normal);
}

.navbar.scrolled {
  background: var(--bg-glass);
  box-shadow: var(--shadow-md);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

/* Centered logo in navbar */
/* Logo vlevo s ikonkou */
.navbar .nav-container { position: static; }
.navbar .logo {
  position: static;
  transform: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.navbar .logo .logo-mark {
  height: 50px;
  width: auto;
  display: block;
}
/* Nav links držet vpravo */
.navbar .nav-links { margin-left: auto; }

.logo {
  font-family: var(--font-secondary);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.logo:hover {
  color: var(--primary-dark);
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  align-items: center;
  transition: all var(--transition-normal);
}

.nav-links li a {
  text-decoration: none;
  font-weight: 600;
  color: var(--text-primary);
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius-md);
  transition: all var(--transition-fast);
  position: relative;
}

.nav-links li a:hover {
  color: var(--primary);
  background: rgba(0, 119, 182, 0.1);
}

.nav-links li a.badge {
  background: var(--primary);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius-full);
}

.nav-links li a.badge:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

/* Hamburger menu */
.menu-toggle {
  display: none;
  font-size: 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-primary);
  padding: 0.5rem;
  border-radius: var(--border-radius-md);
  transition: all var(--transition-fast);
}

.menu-toggle:hover {
  background: var(--bg-secondary);
}

/* === Mobilní navigace === */
@media (max-width: 900px) {
  .menu-toggle {
    display: block;
  }
  .nav-links {
    position: absolute;
    top: 64px;
    right: 1rem;
    left: 1rem;
    flex-direction: column;
    gap: 0.5rem;
    background: var(--bg-glass);
    border: 1px solid var(--border-light);
    border-radius: var(--border-radius-lg);
    padding: 0.75rem;
    display: none;
  }
  .nav-links.open {
    display: flex;
  }
}

/* Boční odsazení pro glass karty i na středních mobilech/tabletech */
@media (max-width: 900px) {
  .glass-card { margin-left: 1rem; margin-right: 1rem; }
}

/* Při otevřeném mobilním menu vypnout glass efekt pro lepší čitelnost */
@media (max-width: 900px) {
  body.menu-open .navbar,
  body.menu-open .nav-links {
    background: white !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border-color: var(--border-light) !important;
  }
}

/* === Medium viewport fixes (1100px → 901px): zabraň zalamování navigace a akcí na checkoutu */
@media (max-width: 1100px) and (min-width: 901px) {
  .nav-container { padding: 0.75rem 1rem; }
  .navbar .logo .logo-mark { height: 44px; }
  .logo { font-size: 1.25rem; }
  .nav-links { gap: 1rem; flex-wrap: nowrap; }
  .nav-links li a { padding: 0.4rem 0.6rem; font-size: 0.95rem; white-space: nowrap; }

  /* Přizpůsob QR layout, ať se vše vejde */
  .checkout-page .qr-box { grid-template-columns: 280px 1fr; gap: 1.5rem; }
  .checkout-page .actions { flex-wrap: nowrap; gap: 0.5rem; justify-content: center; }
  .checkout-page .btn-primary,
  .checkout-page .btn-secondary { padding: 0.8rem 1.25rem; font-size: 1rem; }
}

/* ===== ORNAMENT BACKGROUND ===== */
#ornament-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0; /* Pod obsahem */
  pointer-events: none; /* Nepřekrývá kliky */
  opacity: 0.8;
}

/* ===== FULL-WIDTH STATS BAR ===== */
.stats-bar {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 0;
}

.stats-bar-inner {
  max-width: 1400px;
  margin: 32px auto;
  padding: 16px;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-light);
  border-radius: var(--border-radius-2xl);
  box-shadow: var(--shadow-md);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  align-items: stretch;
}

.stats-bar .stat-box {
  display: grid;
  place-items: center;
  background: rgba(255,255,255,0.5);
  border: 1px solid var(--border-light);
  border-radius: var(--border-radius-lg);
  padding: 12px;
}

.stats-bar .stat-value {
  font-family: var(--font-secondary);
  font-weight: 800;
  font-size: clamp(1.4rem, 4vw, 2rem);
  color: var(--primary);
}

.stats-bar .stat-label {
  color: var(--text-muted);
  font-weight: 600;
}

@media (max-width: 768px) {
  .stats-bar-inner { grid-template-columns: 1fr; }
}

/* ===== STATS LOADING ANIMATION ===== */
@keyframes shimmer {
  0% { background-position: -200px 0; }
  100% { background-position: 200px 0; }
}

.stats-bar .stat-box.loading .stat-value,
.stats-bar .stat-box.loading .stat-label {
  color: transparent;
  position: relative;
  overflow: hidden;
}

.stats-bar .stat-box.loading .stat-value::before,
.stats-bar .stat-box.loading .stat-label::before {
  content: '';
  display: block;
  height: 1.2em;
  border-radius: 8px;
  background: linear-gradient(90deg, rgba(0,0,0,0.06) 25%, rgba(0,0,0,0.12) 50%, rgba(0,0,0,0.06) 75%);
  background-size: 400px 100%;
  animation: shimmer 1.2s infinite;
}

.stats-bar .stat-box.loading .stat-value::before { width: 60%; margin: 4px auto; }
.stats-bar .stat-box.loading .stat-label::before { width: 40%; margin: 6px auto; }

/* ===== HERO SEKCE ===== */
.hero {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 120px 2rem 2rem 2rem; /* 120px nahoře pro navigaci */
  overflow: hidden;
  background: linear-gradient(135deg, rgba(213, 227, 234, 0.1), rgba(255, 183, 3, 0.1));
  margin-top: 0; /* Zajistí, že sekce začíná hned pod navigací */
  z-index: 1; /* Nad ornament-bg */
}

.hero-card {
  position: relative;
  max-width: 1400px;
  width: 100%;
  min-height: 600px;
  background: url('images/DSC00234.webp') center 63% / cover no-repeat;
  border-radius: var(--border-radius-2xl);
  box-shadow: var(--shadow-xl);
  padding: 4rem 3rem;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  text-align: center;
  color: white;
  overflow: hidden;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 10; /* Zajistí, že karta je nad pozadím */
}

.hero-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
}

.hero-card > * {
  position: relative;
  z-index: 2;
}

.hero-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 32px 72px rgba(0, 0, 0, 0.3);
}

.hero-card h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  color: white;
  margin-bottom: 1.5rem;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.hero-card p {
  font-size: 1.5rem;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 2.5rem;
  max-width: 600px;
}

/* ===== TLAČÍTKA ===== */
.btn-primary, .btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border-radius: var(--border-radius-full);
  font-family: var(--font-secondary);
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white;
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
}

.btn-secondary {
  background: var(--bg-secondary);
  color: var(--text-primary);
  border: 1px solid var(--border-medium);
}

.btn-secondary:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  background: white;
  border-color: var(--primary);
}

/* Ripple efekt */
.btn-primary::before, .btn-secondary::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn-primary:active::before, .btn-secondary:active::before {
  width: 300px;
  height: 300px;
}

/* ===== GLASS KARTY ===== */
.glass-card {
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-light);
  border-radius: var(--border-radius-xl);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1s forwards;
  animation-delay: 0.2s;
  position: relative;
  z-index: 2; /* Nad sekcemi */
}

/* Menší odsazení pro karty na stránce O nás */
.about-page .glass-card {
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.25rem;
}

.glass-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-medium);
}

/* ===== SEKCE ===== */
section {
  padding: 5rem 2rem;
  position: relative;
  z-index: 1; /* Nad ornament-bg */
}

/* Zarovnání samostatné sekce s třídou glass-card na šířku layoutu */
section.glass-card {
  max-width: 1800px;
  margin-left: auto;
  margin-right: auto;
}

.card-section {
  padding: 5rem 2rem;
  background: rgba(255, 255, 255, 0.02);
  position: relative;
  z-index: 1; /* Nad ornament-bg */
}

.card-wrapper {
  display: flex;
  align-items: center;
  gap: 4rem;
  max-width: 1400px;
  margin: 0 auto;
  flex-wrap: wrap;
  background: var(--bg-glass);
  border: 1px solid var(--border-light);
  border-radius: var(--border-radius-2xl);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-md);
  padding: 3rem;
}

.card-wrapper.reverse {
  flex-direction: row-reverse;
}

.card-image {
  flex: 1;
  min-width: 300px;
}

.card-image img {
  width: 100%;
  max-width: 600px;
  height: auto;
  object-fit: cover;
  border-radius: var(--border-radius-xl);
  box-shadow: var(--shadow-lg);
  transition: all var(--transition-normal);
}

.card-image img:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-xl);
}

.card-content {
  flex: 1;
  min-width: 300px;
}

.card-content h2 {
  color: var(--primary);
  margin-bottom: 1.5rem;
}

.card-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

/* ===== INDEX: MOBILNÍ ÚPRAVY ===== */
@media (max-width: 768px) {
  .hero { padding: 96px 1rem 1.5rem 1rem; min-height: 70vh; }
  .hero-card { min-height: 420px; padding: 2.25rem 1.5rem; background-position: center 40%; }
  .hero-card h1 { font-size: clamp(1.8rem, 7vw, 2.4rem); }
  .hero-card p { font-size: 1.05rem; margin-bottom: 1.25rem; }

  .card-wrapper { flex-direction: column !important; gap: 1.25rem; padding: 1.5rem; }
  .card-image, .card-content { width: 100%; min-width: 0; }
  .card-image img { max-width: 100%; }
  .card-content p { font-size: 1.05rem; }

  .products-grid { gap: 1rem; margin-top: 1.25rem; }
  section { padding: 3rem 1rem; }
}

/* ===== PRODUKTY ===== */
.products {
  text-align: center;
  padding: 5rem 2rem;
}

.products h2 {
  text-align: center;
  margin-bottom: 1.5rem;
}

.products p {
  text-align: center;
  margin-bottom: 1.5rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.products .btn-primary {
  text-align: center;
  display: inline-block;
}

.products-section {
  text-align: center;
  padding: 5rem 2rem;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}

.product-card {
  background: var(--bg-glass);
  border: 1px solid var(--border-light);
  border-radius: var(--border-radius-xl);
  padding: 1.5rem;
  text-align: center;
  transition: all var(--transition-normal);
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1s forwards;
}

.product-card:nth-child(1) { animation-delay: 0.1s; }
.product-card:nth-child(2) { animation-delay: 0.2s; }
.product-card:nth-child(3) { animation-delay: 0.3s; }
.product-card:nth-child(4) { animation-delay: 0.4s; }

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.product-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--border-radius-lg);
  margin-bottom: 1rem;
  transition: transform var(--transition-normal);
}

.product-card:hover img {
  transform: scale(1.05);
}

.product-card h3 {
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.product-card p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

/* ===== CALL TO ACTION ===== */
.call-to-action {
  background: linear-gradient(135deg, rgba(0, 119, 182, 0.1), rgba(255, 183, 3, 0.1));
  border-radius: var(--border-radius-2xl);
  padding: 4rem 2rem;
  max-width: 1000px;
  margin: 5rem auto;
  text-align: center;
  box-shadow: var(--shadow-lg);
  transition: all var(--transition-normal);
}

.call-to-action:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

.call-to-action h2 {
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}

.call-to-action p {
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.call-to-action p strong {
  color: var(--primary);
}

/* ===== FOOTER ===== */
.contact {
  background: var(--bg-secondary);
  padding: 4rem 2rem;
  text-align: center;
  margin-top: 5rem;
}

.contact .footer-logo { margin-bottom: 0.4rem; }

.social-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  list-style: none;
  margin: 2rem 0;
}

.social-links li a {
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius-md);
  transition: all var(--transition-fast);
}

.social-links li a:hover {
  background: var(--primary);
  color: white;
}

.copyright {
  color: var(--text-muted);
  margin-top: 2rem;
}

/* ===== DONATIONS USAGE (DU) SECTION ===== */
.donations-usage {
  padding-top: 2rem;
}

.donations-usage .du-header {
  max-width: 1000px;
  margin: 0 auto 2rem;
  text-align: center;
}

.donations-usage .du-steps {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.donations-usage .du-step {
  position: relative;
  padding-top: 2.25rem;
}

.donations-usage .du-step-num {
  position: absolute;
  top: -14px;
  left: 18px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  box-shadow: var(--shadow-md);
}

.donations-usage .du-budgets {
  max-width: 1400px;
  margin: 2rem auto 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.donations-usage .du-budget h4 { margin-bottom: 0.5rem; }
.donations-usage .du-price {
  margin-top: 0.75rem;
  font-weight: 800;
  color: var(--primary);
}

.donations-usage .du-stats {
  max-width: 1200px;
  margin: 2rem auto 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  text-align: center;
}

.donations-usage .du-stat-value {
  font-family: var(--font-secondary);
  font-weight: 800;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  color: var(--primary);
}

.donations-usage .du-summary {
  grid-column: 1/-1;
  margin-top: 0.5rem;
}

.donations-usage .du-note {
  max-width: 1000px;
  margin: 1rem auto 0;
  text-align: center;
}

.donations-usage .du-cta {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
}

@media (max-width: 992px) {
  .donations-usage .du-steps,
  .donations-usage .du-budgets {
    grid-template-columns: 1fr;
  }
  .donations-usage .du-stats {
    grid-template-columns: 1fr;
  }
}

/* ===== ANIMACE ===== */
@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes ripple {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* ===== SCROLL PROGRESS ===== */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  z-index: 9999; /* Nad navigací */
  transition: width var(--transition-fast);
}

/* ===== BACK TO TOP ===== */
#toTop {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.5rem;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
  opacity: 0;
  transform: translateY(20px);
  z-index: 1000; /* Nad ornament-bg */
}

#toTop.show {
  opacity: 1;
  transform: translateY(0);
}

#toTop:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

/* ===== KOŠÍK ===== */
#cart-drawer .cart-toggle {
  position: fixed;
  right: 1rem;
  top: 6rem;
  background: var(--bg-glass);
  color: var(--text-primary);
  padding: 1rem 1.5rem;
  border-radius: var(--border-radius-full);
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  z-index: 1600; /* Nad navigací */
  display: flex;
  gap: 0.5rem;
  align-items: center;
  border: 1px solid var(--border-light);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: all var(--transition-normal);
}

#cart-drawer .cart-toggle:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
}

#cart-drawer .cart-toggle .count {
  background: var(--error);
  color: white;
  min-width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  padding: 0 6px;
  font-weight: 800;
  font-size: 0.8rem;
}

#cart-drawer .cart-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: min(420px, 92vw);
  height: 100vh;
  background: var(--bg-glass);
  color: var(--text-primary);
  transform: translateX(110%);
  transition: transform var(--transition-normal);
  z-index: 1700; /* Nad vším ostatním */
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-xl);
  border-left: 1px solid var(--border-light);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

#cart-drawer .cart-panel[aria-hidden="false"] {
  transform: translateX(0);
}

body.cart-open {
  overflow: hidden;
}

#cart-drawer .cart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
  border-bottom: 1px solid var(--border-light);
  background: var(--bg-glass);
}

#cart-drawer .cart-body {
  padding: 1rem;
  overflow: auto;
  flex: 1;
}

#cart-drawer .cart-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem;
  border-radius: var(--border-radius-md);
  background: var(--bg-secondary);
  margin-bottom: 0.5rem;
  border: 1px solid var(--border-light);
}

#cart-drawer .cart-row .meta {
  display: flex;
  gap: 1rem;
  align-items: center;
}

#cart-drawer .cart-row .meta img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: var(--border-radius-md);
}

#cart-drawer .cart-row .name {
  font-weight: 700;
}

#cart-drawer .cart-row .qty {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

#cart-drawer .cart-row .qty .dec,
#cart-drawer .cart-row .qty .inc {
  width: 28px;
  height: 28px;
  border-radius: var(--border-radius-sm);
  border: 1px solid var(--border-light);
  background: white;
  cursor: pointer;
  color: var(--text-primary);
  transition: all var(--transition-fast);
}

#cart-drawer .cart-row .qty .dec:hover,
#cart-drawer .cart-row .qty .inc:hover {
  background: var(--bg-secondary);
  border-color: var(--primary);
}

#cart-drawer .cart-row .qty .val {
  width: 46px;
  text-align: center;
  padding: 0.5rem;
  border-radius: var(--border-radius-sm);
  border: 1px solid var(--border-light);
  background: white;
  color: var(--text-primary);
}

#cart-drawer .cart-row .remove {
  border: 0;
  background: transparent;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0.6;
  color: var(--text-primary);
  transition: opacity var(--transition-fast);
}

#cart-drawer .cart-row .remove:hover {
  opacity: 1;
}

#cart-drawer .cart-foot {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem;
  border-top: 1px solid var(--border-light);
  background: var(--bg-glass);
  display: grid;
  gap: 1rem;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

#cart-drawer .sum {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
}

#cart-drawer .btn-secondary.clear {
  background: var(--bg-secondary);
  color: var(--text-primary);
  border: 1px solid var(--border-light);
}

#cart-drawer .cart-head .close {
  width: 44px;
  height: 44px;
  font-size: 1.5rem;
  line-height: 1;
  display: grid;
  place-items: center;
  border-radius: var(--border-radius-md);
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  cursor: pointer;
  transition: all var(--transition-fast);
}

#cart-drawer .cart-head .close:hover {
  background: var(--error);
  color: white;
}

/* ===== TOAST ===== */
.toast {
  position: fixed;
  left: 50%;
  bottom: 2rem;
  transform: translate(-50%, 20px);
  background: var(--text-primary);
  color: white;
  padding: 1rem 1.5rem;
  border-radius: var(--border-radius-md);
  opacity: 0;
  transition: all var(--transition-normal);
  z-index: 2000; /* Nad vším ostatním */
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-lg);
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.toast-error {
  background: #dc2626;
  color: white;
  border-left: 4px solid #b91c1c;
}

.toast-warning {
  background: #f59e0b;
  color: white;
  border-left: 4px solid #d97706;
}

.toast-success {
  background: #10b981;
  color: white;
  border-left: 4px solid #059669;
}

/* Admin expand/collapse */
.btn-outline {
  background: transparent;
  border: 1px solid rgba(0,0,0,0.1);
  color: #666;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-outline:hover {
  background: rgba(0,0,0,0.05);
  border-color: rgba(0,0,0,0.2);
}

.btn-outline.expanded {
  background: #f3f4f6;
  border-color: #d1d5db;
}

/* Order products display */
.order-products {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.order-product {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 12px;
}

.order-product img {
  width: 24px;
  height: 24px;
  object-fit: cover;
  border-radius: 4px;
}

.order-product .qty {
  background: #3b82f6;
  color: white;
  border-radius: 10px;
  padding: 2px 6px;
  font-weight: 600;
  min-width: 20px;
  text-align: center;
}

/* Shipped checkbox */
.shipped-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.shipped-checkbox input[type="checkbox"] {
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.shipped-checkbox label {
  font-size: 14px;
  color: #374151;
  cursor: pointer;
}

/* ===== CHECKOUT STRÁNKA ===== */
.checkout-page {
  padding-top: 120px; /* Pro navigaci */
  min-height: 100vh;
  background: linear-gradient(135deg, rgba(0, 119, 182, 0.05), rgba(255, 183, 3, 0.05));
}

.checkout-page .checkout-wrap {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 3rem;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-light);
  border-radius: var(--border-radius-2xl);
  box-shadow: var(--shadow-xl);
}

.checkout-page h1 {
  text-align: center;
  color: var(--primary);
  margin-bottom: 1rem;
  font-size: 2.5rem;
}

.checkout-page .muted {
  text-align: center;
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 2rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.checkout-page .mono {
  font-family: 'Courier New', monospace;
  background: var(--bg-secondary);
  padding: 0.2rem 0.4rem;
  border-radius: var(--border-radius-sm);
  font-size: 0.9rem;
}

/* ===== FORMULÁŘ ===== */
.checkout-page .form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

.checkout-page .field {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.checkout-page .field label {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 1rem;
}

.checkout-page .field input,
.checkout-page .field textarea,
.checkout-page .field select {
  width: 100%;
  border: 2px solid var(--border-light);
  background: white;
  border-radius: var(--border-radius-lg);
  padding: 1rem 1.25rem;
  outline: none;
  transition: all var(--transition-normal);
  font-family: var(--font-primary);
  font-size: 1rem;
  box-shadow: var(--shadow-sm);
}

/* Zvýrazněné ovládání částky */
.checkout-page .amount-field .amount-control {
  display: grid;
  grid-template-columns: 48px 1fr 48px;
  gap: 0.5rem;
  align-items: center;
}

.checkout-page .amount-field .amount-control input#amount {
  text-align: center;
  font-weight: 800;
  font-size: 1.25rem;
}

.checkout-page .amount-field .amount-inc,
.checkout-page .amount-field .amount-dec {
  height: 48px;
  border-radius: var(--border-radius-lg);
  border: 2px solid var(--primary);
  background: white;
  color: var(--primary);
  font-size: 1.5rem;
  font-weight: 800;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.checkout-page .amount-field .amount-inc:hover,
.checkout-page .amount-field .amount-dec:hover {
  background: var(--primary);
  color: white;
}

.checkout-page .amount-range {
  width: 100%;
  margin-top: 0.75rem;
  appearance: none;
  -webkit-appearance: none;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  outline: none;
}

.checkout-page .amount-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: white;
  border: 3px solid var(--primary);
  box-shadow: var(--shadow-md);
  cursor: pointer;
}

.checkout-page .amount-range::-moz-range-thumb {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: white;
  border: 3px solid var(--primary);
  box-shadow: var(--shadow-md);
  cursor: pointer;
}

.checkout-page .field input:focus,
.checkout-page .field textarea:focus,
.checkout-page .field select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(0, 119, 182, 0.1);
  transform: translateY(-2px);
}

.checkout-page .field.checkbox {
  flex-direction: row;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: var(--bg-secondary);
  border-radius: var(--border-radius-lg);
  border: 1px solid var(--border-light);
}

.checkout-page .field.checkbox input[type="checkbox"] {
  width: auto;
  margin: 0;
  transform: scale(1.2);
}

.checkout-page .field.checkbox label {
  margin: 0;
  cursor: pointer;
}

.checkout-page .help {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-style: italic;
  margin-top: 0.5rem;
}

/* ===== DORUČOVACÍ ÚDAJE ===== */
.checkout-page .delivery-section {
  background: var(--bg-glass);
  border: 1px solid var(--border-light);
  border-radius: var(--border-radius-xl);
  padding: 2rem;
  margin: 2rem 0;
  box-shadow: var(--shadow-md);
}

.checkout-page .delivery-section h3 {
  color: var(--primary);
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  text-align: center;
  border-bottom: 2px solid var(--primary);
  padding-bottom: 0.5rem;
}

.checkout-page .delivery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.checkout-page .delivery-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.checkout-page .delivery-field label {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.95rem;
}

.checkout-page .delivery-field input {
  border: 2px solid var(--border-light);
  background: white;
  border-radius: var(--border-radius-lg);
  padding: 0.875rem 1rem;
  font-size: 1rem;
  transition: all var(--transition-normal);
}

.checkout-page .delivery-field input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 119, 182, 0.1);
}

.checkout-page .agree {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-top: 1.5rem;
  padding: 1rem;
  background: var(--bg-secondary);
  border-radius: var(--border-radius-lg);
  border: 1px solid var(--border-light);
}

.checkout-page .agree input[type="checkbox"] {
  width: auto;
  margin: 0;
  margin-top: 0.25rem;
  transform: scale(1.2);
}

.checkout-page .agree label {
  margin: 0;
  line-height: 1.5;
  cursor: pointer;
}

.checkout-page .agree a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

.checkout-page .agree a:hover {
  text-decoration: underline;
}

/* ===== TLAČÍTKA ===== */
.checkout-page .btn-primary,
.checkout-page .btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  border-radius: var(--border-radius-full);
  font-family: var(--font-secondary);
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  min-height: 3rem;
}

.checkout-page .btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white;
  box-shadow: var(--shadow-md);
  width: 100%;
  font-size: 1.2rem;
  padding: 1.25rem 2rem;
}

.checkout-page .btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.checkout-page .btn-secondary {
  background: var(--bg-secondary);
  color: var(--text-primary);
  border: 2px solid var(--border-light);
}

.checkout-page .btn-secondary:hover {
  background: var(--border-light);
  transform: translateY(-2px);
}

/* ===== KOŠÍK REKAPITULACE ===== */
.checkout-page .summary-card {
  background: var(--bg-glass);
  border: 1px solid var(--border-light);
  border-radius: var(--border-radius-xl);
  padding: 2rem;
  margin: 2rem 0;
  box-shadow: var(--shadow-md);
}

.checkout-page .summary-card h2 {
  color: var(--primary);
  margin-bottom: 1.5rem;
  text-align: center;
  font-size: 1.5rem;
}

.checkout-page .summary-list {
  display: grid;
  gap: 1rem;
  margin: 1.5rem 0;
}

.checkout-page .summary-list .line {
  display: grid;
  grid-template-columns: 60px 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem;
  border-radius: var(--border-radius-lg);
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  transition: all var(--transition-normal);
}

.checkout-page .summary-list .line:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.checkout-page .summary-list .thumb {
  width: 60px;
  height: 60px;
  border-radius: var(--border-radius-lg);
  object-fit: cover;
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
}

.checkout-page .summary-list .info .name {
  font-weight: 700;
  color: var(--text-primary);
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.checkout-page .summary-list .info .meta {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.checkout-page .summary-list .price {
  font-weight: 800;
  color: var(--primary);
  font-size: 1.1rem;
  white-space: nowrap;
}

.checkout-page .summary-total {
  margin-top: 1.5rem;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  background: var(--bg-glass);
  border-radius: var(--border-radius-lg);
  border: 1px solid var(--border-light);
}

.checkout-page .summary-total strong {
  color: var(--primary);
  font-size: 1.4rem;
}

.checkout-page .badge {
  background: var(--primary);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: var(--border-radius-full);
  font-size: 0.8rem;
  font-weight: 600;
}

/* ===== QR SEKCE ===== */
.checkout-page .qr-box {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 2.5rem;
  align-items: start;
  margin: 2rem 0;
}

.checkout-page .qr-preview {
  display: grid;
  place-items: center;
  background: var(--bg-glass);
  border: 2px solid var(--border-light);
  border-radius: var(--border-radius-xl);
  padding: 2rem;
  box-shadow: var(--shadow-lg);
  transition: all var(--transition-normal);
}

.checkout-page .qr-preview:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

.checkout-page .qr-preview canvas {
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
}

.checkout-page .sticky-help {
  background: var(--bg-glass);
  border: 1px solid var(--border-light);
  border-radius: var(--border-radius-xl);
  padding: 2rem;
  box-shadow: var(--shadow-md);
}

.checkout-page .sticky-help .note {
  color: var(--text-primary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.checkout-page .sticky-help .note strong {
  color: var(--primary);
}

.checkout-page .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 1.5rem 0;
}

.checkout-page .hr {
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--border-light), transparent);
  margin: 3rem 0;
  border-radius: 1px;
}

.checkout-page .note {
  color: var(--text-primary);
  line-height: 1.6;
  text-align: center;
  max-width: 800px;
  margin: 2rem auto;
  padding: 1.5rem;
  background: var(--bg-glass);
  border-radius: var(--border-radius-lg);
  border: 1px solid var(--border-light);
}

/* ===== RESPONZIVNOST ===== */
@media (max-width: 768px) {
  .checkout-page .checkout-wrap {
    margin: 1rem;
    padding: 2rem 1.5rem;
  }
  
  .checkout-page .delivery-grid {
    grid-template-columns: 1fr;
  }
  
  .checkout-page .qr-box {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .checkout-page .qr-preview {
    padding: 1.5rem;
  }
  
  .checkout-page .summary-list .line {
    grid-template-columns: 50px 1fr auto;
    gap: 0.75rem;
    padding: 0.75rem;
  }
  
  .checkout-page .summary-list .thumb {
    width: 50px;
    height: 50px;
  }
}

@media (max-width: 480px) {
  .checkout-page { padding-left: 1rem; padding-right: 1rem; }
  .checkout-page .checkout-wrap {
    padding: 1.5rem 1rem;
  }
  
  .checkout-page h1 {
    font-size: 2rem;
  }
  
  .checkout-page .btn-primary,
  .checkout-page .btn-secondary {
    padding: 1rem 1.5rem;
    font-size: 1rem;
  }

  /* Boční odsazení pro glass-card na malých displejích */
  .glass-card { margin-left: 1rem; margin-right: 1rem; }

  /* Checkout: donutit všechny boxy, aby měly okraje a nepřetékaly */
  .checkout-page .glass-card,
  .checkout-page .summary-card,
  .checkout-page .delivery-section,
  .checkout-page .qr-preview,
  .checkout-page .sticky-help,
  .checkout-page .note {
    margin-left: auto;
    margin-right: auto;
    max-width: 640px;
    width: 100%;
  }
}

/* Extra small phones (<= 380px) */
@media (max-width: 380px) {
  .checkout-page .checkout-wrap { padding: 1rem 0.75rem; margin: 0.5rem; }
  .checkout-page h1 { font-size: 1.6rem; }
  .checkout-page .muted { font-size: 0.95rem; }

  .checkout-page .qr-box { grid-template-columns: 1fr; gap: 1rem; }
  .checkout-page .qr-preview { padding: 1rem; }
  .checkout-page .qr-preview canvas { width: 200px !important; height: 200px !important; }

  .checkout-page .actions { flex-direction: column; align-items: stretch; gap: 0.5rem; }
  .checkout-page .btn-primary, .checkout-page .btn-secondary { width: 100%; }

  .checkout-page .summary-list .line { grid-template-columns: 44px 1fr auto; gap: 0.5rem; padding: 0.6rem; }
  .checkout-page .summary-list .thumb { width: 44px; height: 44px; }
  .checkout-page .summary-list .info .name { font-size: 1rem; }
  .checkout-page .summary-list .price { font-size: 1rem; }
}

/* Checkout vyrovnání na malých displejích (bez posunu doprava) */
@media (max-width: 480px) {
  .checkout-page .checkout-wrap,
  .checkout-page .form-grid,
  .checkout-page .delivery-section,
  .checkout-page .delivery-grid,
  .checkout-page .field { width: 100%; max-width: 100%; }
  .checkout-page .delivery-section { padding: 1rem; margin: 1rem 0; }
  .checkout-page .btn-primary { width: 100%; }
}

/* ===== PREFERS REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ===== PRINT STYLY ===== */
@media print {
  .navbar,
  #scroll-progress,
  #toTop,
  #cart-drawer,
  .btn-primary,
  .btn-secondary {
    display: none !important;
  }

  body {
    background: white !important;
    color: black !important;
  }

  .glass-card {
    background: white !important;
    box-shadow: none !important;
    border: 1px solid #ccc !important;
  }
}

/* ===== LIGHTBOX (ZOOM OBRÁZKŮ) ===== */
.lightbox-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2100; /* nad toasty */
}

.lightbox-backdrop.show { display: flex; animation: lbFadeIn var(--transition-normal); }

.lightbox-content {
  position: relative;
  max-width: 92vw;
  max-height: 92vh;
}

.lightbox-content img {
  max-width: 92vw;
  max-height: 92vh;
  width: auto;
  height: auto;
  border-radius: 12px;
  box-shadow: var(--shadow-xl);
}

.lightbox-close {
  position: absolute;
  top: -16px;
  right: -16px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border-light);
  background: rgba(255,255,255,0.9);
  color: var(--text-primary);
  display: grid;
  place-items: center;
  font-size: 20px;
  cursor: pointer;
  box-shadow: var(--shadow-md);
}

@keyframes lbFadeIn { from { opacity: 0; } to { opacity: 1; } }

body.lb-locked { overflow: hidden; }
