/* ==========================================================================
   VERTEX SPORT — ukážkový projekt, čisté HTML/CSS/JS, mobile-first
   ========================================================================== */

:root {
  --ink: #0d0d0d;
  --paper: #ffffff;
  --paper-alt: #f4f4f4;
  --accent: #ff4b3e;
  --accent-dark: #d93327;
  --muted: #6b6b6b;
  --line: #e2e2e2;

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin: 0 0 0.4em;
  line-height: 1.05;
}

p {
  margin: 0 0 1em;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* ==========================================================================
   Tlačidlá
   ========================================================================== */

.btn {
  display: inline-block;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  padding: 14px 24px;
  border-radius: 2px;
}

.btn--accent {
  background: var(--accent);
  color: #fff;
}

.btn--accent:hover {
  background: var(--accent-dark);
}

.btn--lg {
  font-size: 1.05rem;
  padding: 16px 30px;
}

/* ==========================================================================
   Hlavička
   ========================================================================== */

.header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--ink);
  color: #fff;
}

.header__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.logo {
  font-weight: 900;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.logo--footer {
  display: inline-block;
  margin-bottom: 10px;
}

.logo span {
  color: var(--accent);
}

.nav {
  display: none;
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.cart-btn {
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  padding: 7px 12px;
  border-radius: 2px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
}

.cart-btn__count {
  color: var(--accent);
}

.burger {
  background: none;
  border: none;
  width: 28px;
  height: 20px;
  position: relative;
  cursor: pointer;
}

.burger span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: #fff;
}

.burger span:nth-child(1) {
  top: 0;
}

.burger span:nth-child(2) {
  top: 9px;
}

.burger span:nth-child(3) {
  top: 18px;
}

.nav.is-open {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--ink);
  padding: 8px 20px 20px;
  gap: 4px;
}

.nav.is-open a {
  padding: 10px 0;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.9rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

@media (min-width: 760px) {
  .nav {
    display: flex;
    gap: 28px;
    position: static;
    background: none;
    padding: 0;
  }

  .nav a {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.04em;
  }

  .nav a:hover {
    color: var(--accent);
  }

  .burger {
    display: none;
  }
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  background: var(--ink);
  color: #fff;
  padding: 56px 20px 64px;
  text-align: center;
}

.hero__inner {
  max-width: 640px;
  margin: 0 auto;
}

.hero__tag {
  color: var(--accent);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
}

.hero__title {
  font-size: 2.4rem;
}

.hero__title span {
  color: var(--accent);
}

.hero__subtitle {
  color: #c9c9c9;
  font-size: 1.05rem;
  margin-bottom: 1.6em;
}

@media (min-width: 760px) {
  .hero {
    padding: 96px 20px 108px;
  }

  .hero__title {
    font-size: 3.6rem;
  }
}

/* ==========================================================================
   Sekcie a produkty
   ========================================================================== */

.section {
  padding: 48px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.section--dark {
  background: var(--ink);
  color: #fff;
  max-width: none;
  padding: 48px 20px;
}

.section--dark .section__header {
  max-width: 1200px;
  margin: 0 auto 28px;
}

.section--dark .product-grid {
  max-width: 1200px;
  margin: 0 auto;
}

.section__header {
  margin-bottom: 28px;
}

.section__header p {
  color: var(--muted);
}

.section--dark .section__header p {
  color: #b8b8b8;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.filter-btn {
  background: none;
  border: 1px solid var(--line);
  padding: 9px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
}

.filter-btn.is-active {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.product-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.product-card {
  display: flex;
  flex-direction: column;
}

.product-card__media {
  aspect-ratio: 1 / 1;
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  position: relative;
}

.product-card__icon {
  width: 56%;
  max-width: 90px;
}

.product-card__icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

.product-card__badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--accent);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 2px;
}

.product-card__name {
  margin: 10px 0 2px;
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: none;
}

.product-card__price {
  font-weight: 800;
}

.product-card__price del {
  color: var(--muted);
  font-weight: 400;
  margin-right: 6px;
}

.product-card__price ins {
  text-decoration: none;
  color: var(--accent);
}

@media (min-width: 640px) {
  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 960px) {
  .product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* ==========================================================================
   Pätička
   ========================================================================== */

.footer {
  background: var(--paper-alt);
  border-top: 1px solid var(--line);
}

.footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  display: grid;
  gap: 28px;
}

.footer__col p {
  color: var(--muted);
  font-size: 0.9rem;
}

.footer__col h3 {
  font-size: 0.9rem;
  margin-bottom: 0.8em;
}

.footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer__links li {
  margin-bottom: 6px;
}

.footer__links a {
  color: var(--muted);
  font-size: 0.9rem;
}

.footer__links a:hover {
  color: var(--ink);
}

.footer__bottom {
  border-top: 1px solid var(--line);
  padding: 16px 20px;
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted);
}

@media (min-width: 760px) {
  .footer__inner {
    grid-template-columns: 2fr 1fr 1fr;
  }
}
