/* ===== CUSTOM PROPS ===== */
:root {
  --font-display: 'Syne', sans-serif;
  --font-body:    'Inter', sans-serif;
}

body { font-family: var(--font-body); }
.font-display { font-family: var(--font-display); }

/* ===== GALLERY – JS animace ===== */
.gallery { position: relative; overflow: hidden; user-select: none; -webkit-user-select: none; }
.gallery-track { display: flex; will-change: transform; }
.gallery-slide { width: 100%; min-width: 100%; flex-shrink: 0; position: relative; transition: opacity 0.3s ease; }
.slide-num {
  position: absolute; bottom: 0.55rem; right: 0.7rem;
  font-size: 0.68rem; font-weight: 600; color: #2563EB;
  background: rgba(255,255,255,0.75); padding: 0.12rem 0.42rem;
  border-radius: 999px; backdrop-filter: blur(6px); pointer-events: none;
}
.gallery-arrow {
  position: absolute; top: 50%; transform: translateY(-50%) scale(0.9);
  opacity: 0; transition: opacity 0.2s, transform 0.2s;
}
.gallery:hover .gallery-arrow { opacity: 1; transform: translateY(-50%) scale(1); }
.gallery-arrow:hover { transform: translateY(-50%) scale(1.09) !important; }
.gallery-prev { left: 0.55rem; }
.gallery-next { right: 0.55rem; }
.gallery-dots {
  position: absolute; bottom: 0.55rem; left: 50%; transform: translateX(-50%);
  display: flex; gap: 5px; z-index: 3; pointer-events: none;
}
.dot { width: 5px; height: 5px; border-radius: 999px; background: rgba(37,99,235,0.2); transition: background 0.25s, width 0.25s; }
.dot.active { background: #2563EB; width: 14px; border-radius: 3px; }

/* ===== TOAST – pozice, JS animuje ===== */
#toast {
  position: fixed; bottom: 2rem; left: 50%;
  transform: translateX(-50%) translateY(60px);
  opacity: 0; pointer-events: none; z-index: 9999;
  will-change: transform, opacity;
}

/* ===== FILTER BTN active ===== */
.filter-btn { transition: none; }
.filter-btn.active { background: #2563EB; color: #fff; border-color: #2563EB; }
.filter-btn:not(.active):hover { border-color: #2563EB; color: #2563EB; }

/* ===== PRODUCT CARD – JS animuje transform, tady jen base ===== */
.product-card { will-change: transform; }
.unavailable .img-placeholder { filter: grayscale(0.5) opacity(0.7); }

/* ===== PLACEHOLDER PEN ===== */
.img-placeholder {
  background: linear-gradient(160deg, #EFF4FF 0%, #EDE9FE 100%);
  height: 220px; display: flex; align-items: center;
  justify-content: center; position: relative; overflow: hidden;
}
.img-placeholder::after {
  content: '';
  position: absolute;
  width: 16px; height: 130px;
  background: linear-gradient(180deg, #bfd0ff 0%, #2563EB 45%, #1a3fa8 100%);
  border-radius: 8px 8px 4px 4px;
  box-shadow: 0 4px 18px rgba(37,99,235,0.22), inset 0 1px 0 rgba(255,255,255,0.4);
}

/* ===== NAV BLUR ===== */
.nav-blur { background: rgba(255,255,255,0.88); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }

/* ===== HERO BG ===== */
.hero-bg { background: linear-gradient(135deg, #EFF4FF 0%, #FAFBFF 55%, #F0F9FF 100%); }
.hero-card { background: #fff; border: 1px solid #E8EAF0; }

/* ===== BUTTONS – JS animuje scale, tady barvy ===== */
.btn-primary { background: #2563EB; color: #fff; border: none; }
.btn-primary:hover { background: #1D4ED8; }
.btn-secondary { border: 1.5px solid #E8EAF0; color: #0F1117; }
.btn-secondary:hover { border-color: #2563EB; color: #2563EB; background: #EFF4FF; }

/* ===== CART PILL ===== */
.cart-pill {
  background: transparent;
  border: 1.5px solid #E8EAF0;
  color: #0F1117;
  cursor: pointer;
}
.cart-pill:hover { border-color: #2563EB; color: #2563EB; background: #EFF4FF; }
.cart-icon-wrap { display: flex; align-items: center; justify-content: center; transform-origin: 50% 30%; }

/* ===== BADGE ===== */
.badge-new { background: #7C3AED; }

/* ===== HTML – smooth scroll ===== */
html { scroll-behavior: auto; } /* JS řídí scroll */

/* ===== REDUCED MOTION – vypni JS animace ===== */
@media (prefers-reduced-motion: reduce) {
  .product-card, .gallery-track, .gallery-arrow { transition: none !important; }
}
