/* Sportvyber — hlavný stylesheet. Self-contained, žiadne externé CDN. */

:root {
  --c-dark: oklch(14% 0.01 260);
  --c-dark-2: oklch(20% 0.015 260);
  --c-dark-3: oklch(22% 0.01 260);
  --c-dark-border: oklch(25% 0.01 260);
  --c-dark-border-2: oklch(35% 0.01 260);
  --c-accent: oklch(64% 0.19 35);
  --c-accent-hover: oklch(54% 0.19 35);
  --c-bg: oklch(97% 0.004 80);
  --c-bg-2: oklch(96% 0.004 80);
  --c-white: #ffffff;
  --c-text: oklch(20% 0.01 260);
  --c-text-dim: oklch(85% 0.005 80);
  --c-text-dim-2: oklch(75% 0.005 80);
  --c-muted: oklch(45% 0.01 260);
  --c-muted-2: oklch(40% 0.01 260);
  --c-muted-3: oklch(35% 0.01 260);
  --c-muted-4: oklch(30% 0.01 260);
  --c-muted-5: oklch(50% 0.01 260);
  --c-border: oklch(90% 0.005 80);
  --c-border-2: oklch(93% 0.005 80);
  --c-danger: oklch(55% 0.15 25);
  --c-green: oklch(60% 0.15 145);
  --c-badge-best: oklch(45% 0.02 260);
  --font-head: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  --radius: 8px;
  --radius-lg: 14px;
  --shadow-sm: 0 2px 10px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--c-bg);
  color: var(--c-text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
img { max-width: 100%; display: block; }
a { color: var(--c-accent); text-decoration: none; }
a:hover { color: var(--c-accent-hover); }
h1, h2, h3 { font-family: var(--font-head); }
ul { margin: 0; }
button { font-family: inherit; }

.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.container-md { max-width: 960px; margin: 0 auto; padding: 0 24px; }
.container-sm { max-width: 760px; margin: 0 auto; padding: 0 24px; }

.btn {
  display: inline-block;
  border: none;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  padding: 14px 28px;
  text-align: center;
}
.btn-accent { background: var(--c-accent); color: #fff; }
.btn-accent:hover { background: var(--c-accent-hover); color: #fff; }
.btn-outline-dark { background: transparent; color: #fff; border: 1px solid var(--c-dark-border-2); }
.btn-dark { background: var(--c-dark); color: #fff; }
.btn-block { width: 100%; }
.btn-sm { padding: 10px 16px; font-size: 13px; }

/* ===== Skip link ===== */
.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--c-accent); color: #fff;
  padding: 10px 16px; z-index: 200; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ===== Header ===== */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--c-dark); border-bottom: 1px solid var(--c-dark-border); }
.site-header__inner { max-width: 1280px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 16px; }
.logo { display: flex; align-items: center; gap: 8px; }
.logo__mark { width: 36px; height: 36px; background: var(--c-accent); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-family: var(--font-head); font-weight: 900; color: #fff; font-size: 18px; flex-shrink: 0; }
.logo__text { font-family: var(--font-head); font-weight: 800; font-size: 22px; letter-spacing: 0.5px; color: #fff; white-space: nowrap; }
.logo__text span { color: var(--c-accent); }

.main-nav { display: flex; gap: 24px; align-items: center; }
.main-nav a { color: #fff; font-weight: 600; font-size: 14px; }
.main-nav a.active { color: var(--c-accent); }

.header-actions { display: flex; align-items: center; gap: 16px; }
.phone-link { color: var(--c-text-dim); font-size: 13px; font-weight: 600; white-space: nowrap; }
.cart-btn { position: relative; background: var(--c-accent); border: none; border-radius: 8px; padding: 10px 16px; color: #fff; font-weight: 700; font-size: 14px; cursor: pointer; display: flex; align-items: center; gap: 6px; }
.cart-btn:hover { background: var(--c-accent-hover); }
.cart-btn__count { position: absolute; top: -8px; right: -8px; background: #fff; color: var(--c-accent); border-radius: 50%; width: 20px; height: 20px; display: none; align-items: center; justify-content: center; font-size: 11px; font-weight: 800; }
.cart-btn__count.show { display: flex; }
.mobile-toggle { background: none; border: 1px solid var(--c-dark-border-2); border-radius: 6px; color: #fff; padding: 8px 10px; cursor: pointer; font-size: 16px; display: none; }

.mobile-nav { background: var(--c-dark); border-top: 1px solid var(--c-dark-border); padding: 16px 24px; display: none; flex-direction: column; gap: 14px; }
.mobile-nav.open { display: flex; }
.mobile-nav a { color: #fff; font-weight: 600; }

@media (max-width: 900px) {
  .main-nav { display: none; }
  .mobile-toggle { display: inline-block; }
  .phone-link { display: none; }
}

/* ===== Cart drawer ===== */
.cart-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 90; display: none; }
.cart-overlay.open { display: block; }
.cart-drawer { position: fixed; top: 0; right: 0; height: 100vh; width: min(420px, 100vw); background: #fff; z-index: 91; box-shadow: -8px 0 30px rgba(0,0,0,0.2); display: flex; flex-direction: column; transform: translateX(100%); transition: transform 0.25s ease; }
.cart-drawer.open { transform: translateX(0); }
.cart-drawer__head { padding: 20px 24px; border-bottom: 1px solid var(--c-border); display: flex; justify-content: space-between; align-items: center; }
.cart-drawer__title { font-family: var(--font-head); font-weight: 800; font-size: 18px; }
.cart-drawer__close { background: none; border: none; font-size: 22px; cursor: pointer; color: var(--c-muted); }
.cart-drawer__body { flex: 1; overflow-y: auto; padding: 16px 24px; display: flex; flex-direction: column; gap: 16px; }
.cart-drawer__foot { padding: 20px 24px; border-top: 1px solid var(--c-border); }
.cart-line { display: flex; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid var(--c-border-2); }
.cart-line__thumb { width: 64px; height: 64px; border-radius: 8px; flex-shrink: 0; object-fit: cover; background: var(--c-border-2); }
.cart-line__name { font-weight: 700; font-size: 14px; }
.cart-line__price { color: var(--c-muted); font-size: 13px; margin-top: 2px; }
.qty-control { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.qty-btn { width: 24px; height: 24px; border: 1px solid var(--c-border); background: #fff; border-radius: 4px; cursor: pointer; line-height: 1; }
.qty-val { font-size: 13px; font-weight: 600; min-width: 16px; text-align: center; }
.remove-link { margin-left: auto; background: none; border: none; color: var(--c-danger); font-size: 12px; cursor: pointer; font-weight: 600; }
.cart-empty { text-align: center; padding: 40px 0; color: var(--c-muted); }
.cart-empty__icon { font-size: 40px; margin-bottom: 12px; }
.cart-drawer__total { display: flex; justify-content: space-between; font-weight: 700; font-size: 16px; margin-bottom: 14px; }

/* ===== Hero ===== */
.hero { background: linear-gradient(180deg, var(--c-dark), var(--c-dark-2)); padding: 80px 24px; color: #fff; }
.hero__inner { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.hero__badge { display: inline-block; background: var(--c-accent); color: #fff; font-size: 12px; font-weight: 700; padding: 6px 14px; border-radius: 20px; margin-bottom: 20px; letter-spacing: 0.5px; }
.hero__title { font-weight: 900; font-size: 52px; line-height: 1.05; margin: 0 0 20px; }
.hero__text { font-size: 17px; line-height: 1.6; color: var(--c-text-dim-2); max-width: 480px; margin: 0 0 32px; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero__img { height: 380px; border-radius: 16px; overflow: hidden; }
.hero__img img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__title { font-size: 36px; }
  .hero__img { height: 260px; }
}

/* ===== Features bar ===== */
.features-bar { padding: 36px 24px; background: #fff; border-bottom: 1px solid var(--c-border-2); }
.features-bar__grid { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.features-bar__icon { font-size: 26px; margin-bottom: 6px; }
.features-bar__label { font-weight: 700; font-size: 14px; }
@media (max-width: 700px) { .features-bar__grid { grid-template-columns: repeat(2, 1fr); } }

/* ===== Section headings ===== */
.section { padding: 72px 24px; max-width: 1280px; margin: 0 auto; }
.section-tinted { padding: 72px 24px; background: var(--c-bg-2); }
.section-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 32px; flex-wrap: wrap; gap: 12px; }
.section-title { font-weight: 800; font-size: 30px; margin: 0; }
.section-sub { text-align: center; color: var(--c-muted); margin: 0 0 40px; }
.section-title-center { font-weight: 800; font-size: 30px; text-align: center; margin: 0 0 8px; }
.section-link { font-weight: 700; font-size: 14px; }

/* ===== Grids ===== */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* ===== Category card ===== */
.cat-card { cursor: pointer; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); background: #fff; display: block; }
.cat-card__img { height: 180px; overflow: hidden; }
.cat-card__img img { width: 100%; height: 100%; object-fit: cover; }
.cat-card__body { padding: 20px; }
.cat-card__title { font-family: var(--font-head); font-weight: 800; font-size: 17px; margin-bottom: 6px; color: var(--c-text); }
.cat-card__desc { color: var(--c-muted); font-size: 13px; line-height: 1.5; }

/* ===== Product card ===== */
.product-card { background: #fff; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; height: 100%; }
.product-card__imgwrap { position: relative; height: 180px; display: block; }
.product-card__imgwrap img { width: 100%; height: 100%; object-fit: cover; }
.badge { position: absolute; top: 10px; left: 10px; color: #fff; font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 16px; }
.badge-best { background: var(--c-badge-best); }
.badge-sale { background: var(--c-accent); }
.badge-new { background: var(--c-green); }
.product-card__body { padding: 18px; display: flex; flex-direction: column; flex: 1; }
.product-card__name { font-weight: 700; font-size: 15px; margin-bottom: 8px; line-height: 1.3; color: var(--c-text); display: block; }
.product-card__price { font-weight: 800; font-size: 18px; color: var(--c-accent); margin-bottom: 14px; }
.product-card__btn { margin-top: auto; width: 100%; padding: 11px; background: var(--c-dark); color: #fff; border: none; border-radius: 8px; font-weight: 700; font-size: 13px; cursor: pointer; }
.product-card__btn:hover { background: #000; }

/* ===== Blog card ===== */
.blog-card { cursor: pointer; background: #fff; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); display: block; }
.blog-card__img { height: 140px; overflow: hidden; }
.blog-card__img img { width: 100%; height: 100%; object-fit: cover; }
.blog-card__body { padding: 18px; }
.blog-card__tag { font-size: 11px; font-weight: 700; color: var(--c-accent); margin-bottom: 8px; text-transform: uppercase; }
.blog-card__title { font-weight: 700; font-size: 15px; margin-bottom: 8px; line-height: 1.3; color: var(--c-text); display: block; }
.blog-card__excerpt { color: var(--c-muted); font-size: 13px; line-height: 1.5; }

/* ===== Newsletter ===== */
.newsletter { background: var(--c-dark); padding: 56px 24px; color: #fff; }
.newsletter__inner { max-width: 700px; margin: 0 auto; text-align: center; }
.newsletter__title { font-weight: 800; font-size: 26px; margin: 0 0 10px; }
.newsletter__text { color: var(--c-text-dim-2); margin: 0 0 24px; }
.newsletter__form { display: flex; gap: 10px; max-width: 420px; margin: 0 auto; flex-wrap: wrap; justify-content: center; }
.newsletter__form input[type="email"] { flex: 1; min-width: 200px; padding: 13px 16px; border-radius: 8px; border: none; font-size: 14px; }

/* ===== Breadcrumb ===== */
.breadcrumb { font-size: 13px; color: var(--c-muted); margin-bottom: 12px; }

/* ===== Page heading ===== */
.page-head { padding: 40px 24px 0; max-width: 1280px; margin: 0 auto; }
.page-title { font-weight: 800; font-size: 32px; margin: 0 0 10px; }
.page-lede { color: var(--c-muted); max-width: 640px; margin: 0 0 32px; line-height: 1.6; }

/* ===== Product detail ===== */
.pd-wrap { max-width: 1280px; margin: 0 auto; padding: 40px 24px; }
.pd-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-bottom: 60px; }
.pd-img { height: 420px; border-radius: var(--radius-lg); overflow: hidden; }
.pd-img img { width: 100%; height: 100%; object-fit: cover; }
.pd-title { font-weight: 800; font-size: 30px; margin: 0 0 12px; }
.pd-price { font-size: 30px; font-weight: 800; color: var(--c-accent); margin-bottom: 18px; }
.pd-desc { color: var(--c-muted-2); line-height: 1.7; margin-bottom: 24px; }
.pd-list { color: var(--c-muted-2); font-size: 14px; line-height: 1.9; padding-left: 20px; margin-bottom: 28px; }
.pd-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.pd-actions .qty-btn { width: 40px; height: 40px; font-size: 18px; }
.pd-actions .qty-val { font-weight: 700; font-size: 16px; min-width: 24px; }
@media (max-width: 800px) { .pd-grid { grid-template-columns: 1fr; } .pd-img { height: 280px; } }

/* ===== Cart page ===== */
.cart-page-item { display: flex; gap: 16px; align-items: center; background: #fff; border-radius: 12px; padding: 16px; box-shadow: var(--shadow-sm); flex-wrap: wrap; }
.cart-page-item__thumb { width: 80px; height: 80px; border-radius: 8px; flex-shrink: 0; object-fit: cover; background: var(--c-border-2); }
.cart-summary { width: 320px; max-width: 100%; background: #fff; border-radius: 12px; padding: 20px; box-shadow: var(--shadow-sm); }
.cart-summary__row { display: flex; justify-content: space-between; margin-bottom: 10px; color: var(--c-muted); }
.cart-summary__total { display: flex; justify-content: space-between; font-weight: 800; font-size: 18px; padding-top: 14px; border-top: 1px solid var(--c-border); margin-bottom: 18px; }

/* ===== Forms ===== */
.field { padding: 12px; border-radius: 8px; border: 1px solid var(--c-border); font-size: 14px; font-family: inherit; width: 100%; }
textarea.field { resize: vertical; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 20px; }
.field-grid .span-2 { grid-column: span 2; }
.form-card { background: #fff; border-radius: 12px; padding: 24px; box-shadow: var(--shadow-sm); }
.form-card__title { font-weight: 700; margin-bottom: 14px; }
.radio-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; font-size: 14px; color: var(--c-muted-2); }
.radio-list label { display: flex; gap: 8px; align-items: center; }
.honeypot { position: absolute; left: -9999px; top: -9999px; }
.form-msg { padding: 12px 16px; border-radius: 8px; margin-bottom: 20px; font-size: 14px; font-weight: 600; display: none; }
.form-msg.show { display: block; }
.form-msg--ok { background: oklch(93% 0.06 145); color: oklch(30% 0.1 145); }
.form-msg--err { background: oklch(93% 0.06 25); color: oklch(35% 0.12 25); }

/* ===== Checkout ===== */
.checkout-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; }
@media (max-width: 850px) { .checkout-grid { grid-template-columns: 1fr; } }
.order-confirm { text-align: center; padding: 60px 24px; background: #fff; border-radius: 14px; box-shadow: var(--shadow-md); }
.order-confirm__icon { font-size: 52px; margin-bottom: 16px; }

/* ===== About ===== */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin: 36px 0; }
.stats-grid__item { text-align: center; }
.stats-grid__num { font-family: var(--font-head); font-weight: 800; font-size: 28px; color: var(--c-accent); }
.stats-grid__label { font-size: 13px; color: var(--c-muted); }
@media (max-width: 700px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }
.about-img { border-radius: var(--radius-lg); overflow: hidden; margin: 24px 0; height: 320px; }
.about-img img { width: 100%; height: 100%; object-fit: cover; }

/* ===== Contact ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
@media (max-width: 800px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-map { border-radius: 12px; overflow: hidden; margin-top: 24px; height: 180px; }
.contact-map img { width: 100%; height: 100%; object-fit: cover; }

/* ===== Legal ===== */
.legal-section { margin-bottom: 26px; }
.legal-section h2 { font-weight: 700; font-size: 18px; margin: 0 0 10px; }
.legal-section p { line-height: 1.8; color: var(--c-muted-3); font-size: 15px; margin: 0; }

/* ===== 404 ===== */
.error-404 { max-width: 600px; margin: 0 auto; padding: 100px 24px; text-align: center; }
.error-404__code { font-family: var(--font-head); font-weight: 900; font-size: 64px; color: var(--c-accent); }
.error-404__text { font-weight: 700; font-size: 18px; margin: 12px 0 24px; }

/* ===== Footer ===== */
.site-footer { background: var(--c-dark); color: var(--c-text-dim-2); padding: 56px 24px 0; }
.site-footer__grid { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid var(--c-dark-border); }
.site-footer__brand { font-family: var(--font-head); font-weight: 800; font-size: 20px; color: #fff; margin-bottom: 12px; }
.site-footer__brand span { color: var(--c-accent); }
.site-footer__desc { font-size: 13px; line-height: 1.7; max-width: 280px; }
.site-footer__social { display: flex; gap: 10px; margin-top: 16px; }
.site-footer__social span { width: 32px; height: 32px; border-radius: 6px; background: var(--c-dark-3); display: flex; align-items: center; justify-content: center; font-size: 14px; }
.site-footer__heading { font-weight: 700; color: #fff; margin-bottom: 14px; font-size: 14px; }
.site-footer__links { display: flex; flex-direction: column; gap: 10px; font-size: 13px; }
.site-footer__links a { color: var(--c-text-dim-2); }
.site-footer__contact { font-size: 13px; line-height: 2; }
.site-footer__bottom { max-width: 1280px; margin: 0 auto; padding: 20px 0; display: flex; justify-content: space-between; font-size: 12px; color: var(--c-muted-5); flex-wrap: wrap; gap: 8px; }
@media (max-width: 900px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 550px) { .site-footer__grid { grid-template-columns: 1fr; } }

/* ===== Cookie banner ===== */
.cookie-banner { position: fixed; bottom: 0; left: 0; right: 0; background: var(--c-dark); color: #fff; padding: 20px 24px; z-index: 100; box-shadow: 0 -4px 20px rgba(0,0,0,0.3); display: none; }
.cookie-banner.show { display: block; }
.cookie-banner__inner { max-width: 1280px; margin: 0 auto; display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.cookie-banner__text { flex: 1; font-size: 13px; line-height: 1.6; min-width: 260px; }
.cookie-banner__text a { color: oklch(70% 0.15 40); }
.cookie-banner__actions { display: flex; gap: 10px; }
.btn-cookie-reject { background: transparent; border: 1px solid var(--c-dark-border-2); color: #fff; padding: 10px 18px; border-radius: 8px; font-weight: 600; font-size: 13px; cursor: pointer; }
.btn-cookie-accept { background: var(--c-accent); border: none; color: #fff; padding: 10px 18px; border-radius: 8px; font-weight: 700; font-size: 13px; cursor: pointer; }

/* ===== Visually hidden ===== */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
