/* =========================================================
   NIO Hub — design systém
   ========================================================= */

:root {
  /* Barvy */
  --blue-50:  #EFF5FF;
  --blue-100: #DBE8FF;
  --blue-200: #BFD5FF;
  --blue-500: #3B82F6;
  --blue-600: #2563EB;
  --blue-700: #1D4ED8;
  --blue-800: #1E40AF;

  --navy:      #0B2545;
  --navy-deep: #071A33;

  --ink:      #0F172A;
  --ink-2:    #334155;
  --muted:    #64748B;
  --muted-2:  #94A3B8;

  --line:     #E2E8F0;
  --line-2:   #EDF2F7;
  --surface:  #FFFFFF;
  --canvas:   #F6F9FE;

  --green:  #16A34A;
  --amber:  #F59E0B;
  --red:    #DC2626;

  /* Tvar a stín */
  --r-sm: 8px;
  --r:    12px;
  --r-lg: 16px;
  --r-xl: 22px;
  --r-pill: 999px;

  --sh-xs: 0 1px 2px rgba(15, 23, 42, .06);
  --sh-sm: 0 1px 3px rgba(15, 23, 42, .07), 0 1px 2px rgba(15, 23, 42, .04);
  --sh:    0 4px 16px rgba(15, 23, 42, .07);
  --sh-lg: 0 12px 34px rgba(15, 23, 42, .10);
  --sh-blue: 0 8px 22px rgba(37, 99, 235, .28);

  --container: 1360px;
  --header-h: 72px;

  --ease: cubic-bezier(.4, 0, .2, 1);
}

/* --------------------------------------------------------
   Reset a základ
   -------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

/* Atribut hidden musí přebít i prvky s vlastním display (grid, flex, block). */
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Inter, "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
input, select { font: inherit; color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }

h1, h2, h3, h4 { margin: 0; line-height: 1.2; letter-spacing: -.02em; font-weight: 700; }
p { margin: 0; }

:focus-visible { outline: 2px solid var(--blue-600); outline-offset: 2px; border-radius: 4px; }

.skip-link {
  position: absolute; left: -9999px; top: 8px; z-index: 200;
  background: var(--blue-600); color: #fff; padding: 10px 16px; border-radius: var(--r);
}
.skip-link:focus { left: 8px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 28px; }

.icon { width: 20px; height: 20px; flex: none; }
.icon--sm { width: 16px; height: 16px; }
.icon--lg { width: 24px; height: 24px; }

/* --------------------------------------------------------
   Tlačítka
   -------------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 11px 20px;
  border-radius: var(--r);
  font-size: 14.5px; font-weight: 600;
  white-space: nowrap;
  border: 1px solid transparent;
  transition: background .18s var(--ease), border-color .18s var(--ease),
              color .18s var(--ease), box-shadow .18s var(--ease), transform .18s var(--ease);
}
.btn:active { transform: translateY(1px); }

.btn--primary { background: var(--blue-600); color: #fff; box-shadow: var(--sh-blue); }
.btn--primary:hover { background: var(--blue-700); }

.btn--ghost { background: var(--surface); color: var(--ink); border-color: var(--line); box-shadow: var(--sh-xs); }
.btn--ghost:hover { border-color: var(--blue-200); color: var(--blue-700); background: var(--blue-50); }

.btn--outline { background: transparent; color: var(--blue-700); border-color: var(--blue-200); }
.btn--outline:hover { background: var(--blue-50); border-color: var(--blue-500); }

.btn--lg { padding: 15px 28px; font-size: 16px; border-radius: 14px; }
.btn--sm { padding: 8px 14px; font-size: 13.5px; border-radius: var(--r-sm); }
.btn--block { width: 100%; }

.link-more {
  display: inline-flex; align-items: center; gap: 7px;
  color: var(--blue-600); font-size: 14px; font-weight: 600;
}
.link-more:hover { color: var(--blue-800); }
.link-more .icon { transition: transform .18s var(--ease); }
.link-more:hover .icon { transform: translateX(3px); }

/* --------------------------------------------------------
   Hlavička
   -------------------------------------------------------- */

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.site-header.is-stuck { border-bottom-color: var(--line); box-shadow: var(--sh-sm); }

.header__inner {
  height: var(--header-h);
  display: flex; align-items: center; gap: 28px;
}

.logo { display: inline-flex; align-items: baseline; gap: 7px; font-size: 25px; font-weight: 800; letter-spacing: -.03em; }
.logo__mark { color: var(--blue-600); }
.logo__text { color: var(--ink); font-weight: 700; }
.logo--light .logo__text { color: #fff; }
.logo--light .logo__mark { color: #fff; }

.nav { margin-inline: auto; }
.nav__list { display: flex; align-items: center; gap: 6px; }
.nav__link {
  display: block; position: relative;
  padding: 9px 16px; border-radius: var(--r-sm);
  font-size: 14.5px; font-weight: 500; color: var(--ink-2);
  transition: color .18s var(--ease), background .18s var(--ease);
}
.nav__link:hover { color: var(--blue-700); background: var(--blue-50); }
.nav__link.is-active { color: var(--blue-600); font-weight: 600; }
.nav__link.is-active::after {
  content: ""; position: absolute; left: 16px; right: 16px; bottom: -1px;
  height: 2px; background: var(--blue-600); border-radius: 2px;
}

.header__actions { display: flex; align-items: center; gap: 10px; }
.nav__toggle, .nav__close { display: none; padding: 8px; border-radius: var(--r-sm); color: var(--ink-2); }
.nav__toggle:hover { background: var(--blue-50); color: var(--blue-700); }
.nav__mobile-actions { display: none; }
.nav__backdrop { display: none; }

/* --------------------------------------------------------
   Sekce
   -------------------------------------------------------- */

.section { padding-block: 46px; }
.section--tight { padding-block: 30px; }

.section__head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 20px; margin-bottom: 22px;
}
.section__title { font-size: 27px; font-weight: 700; }
.section__sub { color: var(--muted); margin-top: 5px; font-size: 15px; }

/* --------------------------------------------------------
   Hero
   -------------------------------------------------------- */

.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1100px 520px at 78% 22%, #E4EEFF 0%, rgba(228, 238, 255, 0) 62%),
    linear-gradient(180deg, #F7FAFF 0%, #FFFFFF 100%);
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(37, 99, 235, .13) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: radial-gradient(720px 420px at 76% 34%, #000 0%, transparent 72%);
  pointer-events: none;
}
.hero__inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 44px; align-items: center;
  padding-block: 58px 62px;
}

.badge-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 15px 7px 9px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-pill);
  font-size: 13.5px; font-weight: 600; color: var(--ink-2);
  box-shadow: var(--sh-xs);
}
.badge-pill .icon { color: var(--blue-600); }

.hero__title {
  margin-top: 22px;
  font-size: clamp(38px, 4.6vw, 63px);
  font-weight: 800; letter-spacing: -.035em; line-height: 1.05;
}
.hero__title em { font-style: normal; color: var(--blue-600); }

.hero__lead {
  margin-top: 20px; max-width: 520px;
  font-size: 17.5px; color: var(--ink-2); line-height: 1.62;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

.hero__points { display: flex; flex-wrap: wrap; gap: 26px; margin-top: 32px; }
.hero__point { display: inline-flex; align-items: center; gap: 9px; font-size: 14px; color: var(--ink-2); font-weight: 500; }
.hero__point .icon { color: var(--green); width: 18px; height: 18px; }

/* Vizuál — vrstvené náhledy aplikací */
.hero__visual { position: relative; min-height: 400px; }

.mock {
  position: absolute; border-radius: 12px; overflow: hidden;
  background: #fff; box-shadow: var(--sh-lg);
  border: 1px solid rgba(15, 23, 42, .08);
}

.mock--laptop {
  right: -4%; top: 2%; width: 84%;
  border-radius: 14px 14px 6px 6px;
  border: 9px solid #1E293B; box-shadow: 0 24px 60px rgba(15, 23, 42, .22);
}
.mock--laptop::after {
  content: ""; position: absolute; left: -9px; right: -9px; bottom: -9px; height: 9px;
  background: linear-gradient(180deg, #334155, #1E293B);
}

.mock--copilot { left: 0; top: 32%; width: 40%; background: #0B1220; z-index: 2; }
.mock--zaklio { left: 18%; bottom: 0; width: 52%; z-index: 3; }

/* Obsah mockupů */
.mockui { display: grid; grid-template-columns: 28% 1fr; font-size: 6.5px; min-height: 100%; }
.mockui__side { background: #F8FAFC; border-right: 1px solid var(--line-2); padding: 8px 6px; }
.mockui__side--green { background: #15803D; border-right-color: #166534; }
.mockui__brand { display: flex; align-items: center; gap: 4px; font-weight: 700; font-size: 7px; margin-bottom: 8px; padding-inline: 3px; }
.mockui__brand i { width: 8px; height: 8px; border-radius: 2px; background: var(--blue-600); display: block; }
.mockui__side--green .mockui__brand { color: #fff; }
.mockui__side--green .mockui__brand i { background: #fff; }
.mockui__nav { display: grid; gap: 2px; }
.mockui__nav span { padding: 3.5px 5px; border-radius: 3px; color: var(--muted); }
.mockui__nav span.on { background: var(--blue-50); color: var(--blue-700); font-weight: 600; }
.mockui__side--green .mockui__nav span { color: rgba(255, 255, 255, .82); }
.mockui__side--green .mockui__nav span.on { background: #22C55E; color: #fff; }

.mockui__main { padding: 9px 10px; }
.mockui__h { font-weight: 700; font-size: 9px; margin-bottom: 7px; }
.mockui__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; margin-bottom: 8px; }
.mockui__stat { border: 1px solid var(--line-2); border-radius: 4px; padding: 5px; }
.mockui__stat b { display: block; font-size: 8.5px; margin-top: 1px; }
.mockui__stat s { display: block; text-decoration: none; color: var(--green); font-size: 5.5px; margin-top: 1px; }
.mockui__stat span { color: var(--muted-2); }
.mockui__panels { display: grid; grid-template-columns: 1.55fr 1fr; gap: 5px; }
.mockui__panel { border: 1px solid var(--line-2); border-radius: 4px; padding: 6px; }
.mockui__panel > span { color: var(--ink); font-weight: 600; font-size: 6px; }

.spark { display: block; width: 100%; height: 34px; margin-top: 4px; }
.donut { display: block; width: 34px; height: 34px; margin: 4px auto 0; }

.mockui__rows { display: grid; gap: 3px; margin-top: 5px; }
.mockui__row { display: grid; grid-template-columns: 1.2fr 1.4fr .8fr .8fr; gap: 4px; padding: 2.5px 0; border-bottom: 1px solid var(--line-2); color: var(--ink-2); }
.mockui__row--head { color: var(--muted-2); font-weight: 600; }
.mockui__row em { font-style: normal; color: var(--green); }
.mockui__row em.warn { color: var(--red); }

.mock--copilot .copilot { padding: 10px; color: #fff; min-height: 168px; display: flex; flex-direction: column; }
.copilot__bar { display: flex; align-items: center; justify-content: space-between; font-size: 7px; font-weight: 600; }
.copilot__bar i { width: 8px; height: 8px; border-radius: 50%; border: 1.4px solid #38BDF8; display: block; }
.copilot__orb {
  width: 62px; height: 62px; margin: 16px auto 12px; border-radius: 50%;
  border: 5px solid transparent;
  background:
    conic-gradient(from 210deg, #22D3EE, #3B82F6, #8B5CF6, #22D3EE) border-box;
  -webkit-mask: linear-gradient(#000 0 0) padding-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  box-shadow: 0 0 26px rgba(56, 189, 248, .5);
}
.copilot__q { text-align: center; font-size: 8px; font-weight: 600; margin-bottom: 8px; }
.copilot__input { margin-top: auto; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .13); border-radius: 5px; padding: 6px; font-size: 6.5px; color: rgba(255, 255, 255, .5); }

/* --------------------------------------------------------
   Karta produktu
   -------------------------------------------------------- */

.grid-products {
  display: grid; gap: 20px;
  grid-template-columns: repeat(auto-fill, minmax(285px, 1fr));
}
.grid-products--3 { grid-template-columns: repeat(auto-fill, minmax(370px, 1fr)); }

.product {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); overflow: hidden;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease);
}
.product:hover { border-color: var(--blue-200); box-shadow: var(--sh-lg); transform: translateY(-3px); }

.product__shot {
  position: relative; aspect-ratio: 16 / 9;
  display: grid; place-items: center; overflow: hidden;
}
.product__shot .shotui { position: absolute; inset: 0; }

.product__flag {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  padding: 4px 10px; border-radius: var(--r-pill);
  font-size: 11px; font-weight: 700; letter-spacing: .02em;
  background: rgba(255, 255, 255, .95); color: var(--blue-700);
  box-shadow: var(--sh-xs);
}
.product__flag--sale { background: var(--red); color: #fff; }
.product__flag--new { background: var(--green); color: #fff; }

.product__body { padding: 15px 17px 17px; display: flex; flex-direction: column; flex: 1; }

.product__head { display: flex; align-items: center; gap: 11px; }
.product__logo {
  width: 40px; height: 40px; flex: none;
  border-radius: 10px; display: grid; place-items: center;
  color: #fff; font-weight: 800; font-size: 19px;
  box-shadow: var(--sh-sm);
}
.product__name { font-size: 16.5px; font-weight: 700; }
.product__tagline { font-size: 13px; color: var(--muted); }

.product__desc { margin-top: 11px; font-size: 13.8px; color: var(--ink-2); line-height: 1.55; }

.product__tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 13px; }
.tag {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 10px; border-radius: var(--r-sm);
  background: var(--canvas); border: 1px solid var(--line-2);
  font-size: 12px; font-weight: 500; color: var(--ink-2);
}
.tag .icon { width: 13px; height: 13px; color: var(--muted); }

.product__foot {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 12px;
  margin-top: auto; padding-top: 15px;
}
.rating { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 600; }
.rating__count { color: var(--muted); font-weight: 400; }
.star { color: var(--line); font-size: 13px; line-height: 1; }
.star--on { color: var(--amber); }
.rating--compact .star { display: none; }
.rating--compact .star--on:first-of-type { display: inline; }

.product__price { text-align: right; line-height: 1.25; }
.product__price b { display: block; color: var(--blue-700); font-size: 15px; font-weight: 700; }
.product__price span { font-size: 11.5px; color: var(--muted); }

/* Řádkové zobrazení katalogu */
.grid-products.is-list { grid-template-columns: 1fr; }
.grid-products.is-list .product { flex-direction: row; }
.grid-products.is-list .product__shot { width: 230px; flex: none; aspect-ratio: auto; }
.grid-products.is-list .product__body { flex-direction: row; align-items: center; gap: 22px; }
.grid-products.is-list .product__main { flex: 1; }
.grid-products.is-list .product__foot { margin: 0; padding: 0; flex-direction: column; align-items: flex-end; gap: 9px; }

/* Náhledy aplikací (generované CSS, než budou skutečné screenshoty) */
.shot { position: absolute; inset: 0; }
.shot::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .11) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .11) 1px, transparent 1px);
  background-size: 22px 22px;
}
.shot::after {
  content: ""; position: absolute; left: 12%; right: 8%; top: 22%; bottom: 12%;
  border-radius: 6px; background: rgba(255, 255, 255, .13);
  border: 1px solid rgba(255, 255, 255, .22);
  box-shadow: 0 8px 20px rgba(0, 0, 0, .18);
}
.shot--green   { background: linear-gradient(135deg, #14532D, #16A34A); }
.shot--blue    { background: linear-gradient(135deg, #1E3A8A, #3B82F6); }
.shot--dark    { background: linear-gradient(135deg, #0B1220, #312E81); }
.shot--teal    { background: linear-gradient(135deg, #0E7490, #22D3EE); }
.shot--orange  { background: linear-gradient(135deg, #7C2D12, #F97316); }
.shot--navy    { background: linear-gradient(135deg, #0B2545, #1D4ED8); }
.shot--indigo  { background: linear-gradient(135deg, #0C4A6E, #0EA5E9); }
.shot--emerald { background: linear-gradient(135deg, #064E3B, #10B981); }
.shot--amber   { background: linear-gradient(135deg, #713F12, #EAB308); }
.shot--rose    { background: linear-gradient(135deg, #831843, #EC4899); }
.shot--violet  { background: linear-gradient(135deg, #312E81, #6366F1); }
.shot--crimson { background: linear-gradient(135deg, #7F1D1D, #EF4444); }

/* --------------------------------------------------------
   Proč nakupovat u nás
   -------------------------------------------------------- */

.benefits {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); overflow: hidden;
}
.benefit { display: flex; gap: 15px; padding: 24px 22px; border-left: 1px solid var(--line-2); }
.benefit:first-child { border-left: 0; }
.benefit__icon {
  width: 46px; height: 46px; flex: none; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--blue-50); color: var(--blue-600);
}
.benefit h3 { font-size: 15.5px; margin-bottom: 5px; }
.benefit p { font-size: 13.5px; color: var(--muted); line-height: 1.55; }

/* --------------------------------------------------------
   Kategorie
   -------------------------------------------------------- */

.cats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.cat {
  display: flex; align-items: center; gap: 14px;
  padding: 18px 18px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease);
}
.cat:hover { border-color: var(--blue-200); box-shadow: var(--sh); transform: translateY(-2px); }
.cat__icon {
  width: 44px; height: 44px; flex: none; border-radius: var(--r);
  display: grid; place-items: center;
  background: var(--blue-50); color: var(--blue-600);
  border: 1px solid var(--blue-100);
}
.cat__text { flex: 1; min-width: 0; }
.cat__text h3 { font-size: 15px; margin-bottom: 3px; }
.cat__text p { font-size: 12.8px; color: var(--muted); line-height: 1.45; }
.cat > .icon { color: var(--muted-2); transition: transform .18s var(--ease), color .18s var(--ease); }
.cat:hover > .icon { transform: translateX(3px); color: var(--blue-600); }

/* --------------------------------------------------------
   Trust bar
   -------------------------------------------------------- */

.trust {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 22px;
  padding: 18px 26px; margin-bottom: 40px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-xl); box-shadow: var(--sh-sm);
}
.trust__claims { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; font-size: 16px; font-weight: 700; }
.trust__claims .icon { color: var(--blue-600); width: 26px; height: 26px; }
.trust__claims i { font-style: normal; color: var(--muted-2); }

.pay-methods { display: flex; align-items: center; gap: 16px; }
.pay { font-size: 14px; font-weight: 800; color: var(--ink-2); letter-spacing: -.02em; opacity: .85; }
.pay--visa { color: #1A1F71; font-style: italic; font-size: 17px; }
.pay--mc { display: inline-flex; }
.pay--mc i { width: 17px; height: 17px; border-radius: 50%; display: block; background: #EB001B; }
.pay--mc i + i { background: #F79E1B; margin-left: -7px; }
.pay--apple { font-size: 15px; color: var(--ink); }
.pay--gpay b { color: #4285F4; }
.pay--paypal { color: #003087; font-style: italic; }

.ssl {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: var(--r-pill);
  background: #ECFDF5; color: #15803D;
  font-size: 13px; font-weight: 600;
}

/* --------------------------------------------------------
   Katalog — vyhledávání a filtry
   -------------------------------------------------------- */

.page-head { position: relative; overflow: hidden; background: linear-gradient(180deg, #F7FAFF, #FFF); }
.page-head__inner { position: relative; z-index: 1; padding-block: 40px 30px; }
.page-head h1 { font-size: clamp(30px, 3.4vw, 44px); font-weight: 800; letter-spacing: -.035em; }
.page-head p { margin-top: 12px; max-width: 640px; color: var(--ink-2); font-size: 16px; }

.searchbar {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 14px; margin-bottom: 22px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: var(--sh-sm);
}
.searchbar__field {
  position: relative; flex: 1; min-width: 260px;
}
.searchbar__field .icon { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--muted-2); }
.searchbar__field input {
  width: 100%; padding: 12px 16px 12px 44px;
  border: 1px solid var(--line); border-radius: var(--r);
  background: var(--canvas); font-size: 14.5px;
  transition: border-color .18s var(--ease), background .18s var(--ease);
}
.searchbar__field input:focus { outline: none; border-color: var(--blue-500); background: #fff; box-shadow: 0 0 0 3px var(--blue-50); }
.searchbar__field input::placeholder { color: var(--muted-2); }

.select {
  position: relative; display: inline-flex; align-items: center;
}
.select select {
  appearance: none;
  padding: 11px 38px 11px 16px;
  border: 1px solid var(--line); border-radius: var(--r);
  background: var(--surface); font-size: 14px; font-weight: 500; color: var(--ink-2);
  cursor: pointer;
  transition: border-color .18s var(--ease), color .18s var(--ease);
}
.select select:hover { border-color: var(--blue-200); color: var(--blue-700); }
.select select:focus { outline: none; border-color: var(--blue-500); box-shadow: 0 0 0 3px var(--blue-50); }
.select .icon { position: absolute; right: 13px; pointer-events: none; color: var(--muted); width: 16px; height: 16px; }
.select--active select { border-color: var(--blue-200); color: var(--blue-700); background: var(--blue-50); }

.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 17px; border-radius: var(--r);
  border: 1px solid var(--line); background: var(--surface);
  font-size: 14px; font-weight: 600; color: var(--ink-2);
  transition: all .18s var(--ease);
}
.chip:hover { border-color: var(--blue-200); color: var(--blue-700); }
.chip .icon { width: 17px; height: 17px; }
.chip.is-on { background: var(--blue-50); border-color: var(--blue-200); color: var(--blue-700); }

.catalog { display: grid; grid-template-columns: 262px minmax(0, 1fr); gap: 22px; align-items: start; }

.filters {
  position: sticky; top: calc(var(--header-h) + 16px);
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 18px 18px 8px;
  box-shadow: var(--sh-sm);
}
.filters__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.filters__head h2 { font-size: 15.5px; }
.filters__clear { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--blue-600); }
.filters__clear:hover { color: var(--blue-800); }

.fgroup { border-top: 1px solid var(--line-2); padding-block: 13px; }
.fgroup__head {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  font-size: 13.5px; font-weight: 700; color: var(--ink);
}
.fgroup__head .icon { width: 16px; height: 16px; color: var(--muted-2); transition: transform .2s var(--ease); }
.fgroup.is-closed .fgroup__head .icon { transform: rotate(180deg); }
.fgroup__body { display: grid; gap: 2px; margin-top: 10px; }
.fgroup.is-closed .fgroup__body { display: none; }

.check {
  display: flex; align-items: center; gap: 10px;
  padding: 6px 6px; margin-inline: -6px; border-radius: var(--r-sm);
  font-size: 13.5px; color: var(--ink-2); cursor: pointer;
  transition: background .15s var(--ease);
}
.check:hover { background: var(--canvas); }
.check input { position: absolute; opacity: 0; width: 0; height: 0; }
.check__box {
  width: 17px; height: 17px; flex: none; border-radius: 5px;
  border: 1.5px solid var(--line); background: #fff;
  display: grid; place-items: center;
  transition: all .15s var(--ease);
}
.check__box svg { width: 11px; height: 11px; color: #fff; opacity: 0; stroke-width: 3; }
.check input:checked + .check__box { background: var(--blue-600); border-color: var(--blue-600); }
.check input:checked + .check__box svg { opacity: 1; }
.check input:focus-visible + .check__box { box-shadow: 0 0 0 3px var(--blue-50); }
.check__label { flex: 1; }
.check__count { color: var(--muted-2); font-size: 12.5px; }
.check__stars { color: var(--amber); letter-spacing: .5px; }
.check__stars i { color: var(--line); font-style: normal; }

.range { padding-top: 4px; }
.range input[type="range"] {
  width: 100%; appearance: none; height: 4px; border-radius: 4px;
  background: linear-gradient(90deg, var(--blue-600) var(--fill, 100%), var(--line) var(--fill, 100%));
}
.range input[type="range"]::-webkit-slider-thumb {
  appearance: none; width: 15px; height: 15px; border-radius: 50%;
  background: var(--blue-600); border: 2px solid #fff; box-shadow: var(--sh-sm); cursor: pointer;
}
.range input[type="range"]::-moz-range-thumb {
  width: 15px; height: 15px; border-radius: 50%;
  background: var(--blue-600); border: 2px solid #fff; box-shadow: var(--sh-sm); cursor: pointer;
}
.range__labels { display: flex; justify-content: space-between; margin-top: 8px; font-size: 12.5px; color: var(--muted); }

.results__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.results__count { font-size: 14px; color: var(--ink-2); }
.results__count b { font-weight: 700; }
.results__tools { display: flex; align-items: center; gap: 12px; }
.results__tools label { font-size: 13.5px; color: var(--muted); }

.viewtoggle { display: inline-flex; background: var(--canvas); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 3px; gap: 3px; }
.viewtoggle button {
  padding: 6px 9px; border-radius: 6px; color: var(--muted);
  transition: background .15s var(--ease), color .15s var(--ease);
}
.viewtoggle button.is-on { background: var(--blue-600); color: #fff; }

/* Promo banner */
.promo {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 88px minmax(0, 1fr) auto;
  gap: 22px; align-items: center;
  padding: 24px 28px; margin-bottom: 22px;
  border-radius: var(--r-lg);
  background: linear-gradient(120deg, #1D4ED8 0%, #2563EB 48%, #1E40AF 100%);
  color: #fff;
}
.promo::after {
  content: ""; position: absolute; right: -60px; top: -70px; width: 320px; height: 320px;
  border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, .16), transparent 66%);
}
.promo__logo {
  width: 66px; height: 66px; border-radius: 15px; display: grid; place-items: center;
  font-size: 32px; font-weight: 800; color: #fff; box-shadow: 0 8px 22px rgba(0, 0, 0, .22);
}
.promo__text { position: relative; z-index: 1; }
.promo__text h2 { font-size: 22px; margin-bottom: 7px; }
.promo__text p { font-size: 14.5px; color: rgba(255, 255, 255, .87); max-width: 560px; line-height: 1.55; }
.promo__cta { position: relative; z-index: 1; }
.promo .btn--ghost { background: #fff; border-color: #fff; }
.promo .btn--ghost:hover { background: var(--blue-50); }
.promo__dots { display: flex; gap: 6px; margin-top: 14px; }
.promo__dots span { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, .38); }
.promo__dots span.on { background: #fff; width: 18px; border-radius: 4px; }

/* Stránkování */
.pager { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 28px; }
.pager a, .pager span {
  min-width: 38px; height: 38px; padding-inline: 12px;
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--surface);
  font-size: 14px; font-weight: 600; color: var(--ink-2);
  transition: all .18s var(--ease);
}
.pager a:hover { border-color: var(--blue-200); color: var(--blue-700); }
.pager .is-on { background: var(--blue-600); border-color: var(--blue-600); color: #fff; }
.pager .is-off { opacity: .45; pointer-events: none; }

.empty {
  padding: 64px 24px; text-align: center;
  background: var(--surface); border: 1px dashed var(--line); border-radius: var(--r-lg);
}
.empty__icon { width: 54px; height: 54px; margin: 0 auto 16px; color: var(--muted-2); }
.empty h2 { font-size: 19px; margin-bottom: 8px; }
.empty p { color: var(--muted); margin-bottom: 20px; }

/* Spodní pruh výhod */
.assurance {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); margin-block: 34px 40px;
}
.assurance__item { display: flex; gap: 13px; align-items: center; padding: 18px 22px; border-left: 1px solid var(--line-2); }
.assurance__item:first-child { border-left: 0; }
.assurance__item .icon { width: 34px; height: 34px; padding: 8px; border-radius: 50%; background: var(--blue-50); color: var(--blue-600); box-sizing: content-box; }
.assurance__item h3 { font-size: 14px; margin-bottom: 2px; }
.assurance__item p { font-size: 12.8px; color: var(--muted); }

/* --------------------------------------------------------
   Patička
   -------------------------------------------------------- */

.site-footer { background: var(--navy); color: rgba(255, 255, 255, .72); padding-block: 46px 22px; font-size: 14px; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1.2fr 1fr 1.2fr; gap: 34px; }
.footer__brand p { margin-top: 14px; line-height: 1.65; }
.footer__col h3 { color: #fff; font-size: 15px; margin-bottom: 15px; }
.footer__col li + li { margin-top: 9px; }
.footer__col a:hover { color: #fff; }
.footer__contact li { display: flex; align-items: center; gap: 9px; }
.footer__contact .icon { color: var(--blue-200); }
.footer__badge {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 16px;
  padding: 7px 14px; border-radius: var(--r-pill);
  background: rgba(34, 197, 94, .17); color: #86EFAC;
  font-size: 12.5px; font-weight: 600;
}

.footer__social { display: flex; gap: 10px; margin-top: 18px; }
.footer__social a {
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, .09); color: #fff;
  transition: background .18s var(--ease);
}
.footer__social a:hover { background: var(--blue-600); }
.footer__social svg { width: 18px; height: 18px; }

.footer__bottom {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  margin-top: 38px; padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, .11);
  font-size: 13px; color: rgba(255, 255, 255, .58);
}
.pay-methods--footer .pay { color: rgba(255, 255, 255, .85); opacity: 1; }
.pay-methods--footer .pay--visa, .pay-methods--footer .pay--paypal, .pay-methods--footer .pay--apple { color: #fff; }

/* --------------------------------------------------------
   Responzivita
   -------------------------------------------------------- */

@media (max-width: 1240px) {
  .container { padding-inline: 20px; }
  .nav__link { padding-inline: 11px; font-size: 14px; }
  .header__login span { display: none; }
  .header__login { padding-inline: 12px; }
  .cats { grid-template-columns: repeat(3, 1fr); }
  .footer__grid { grid-template-columns: 1.4fr 1fr 1fr; row-gap: 30px; }
}

@media (max-width: 1080px) {
  .catalog { grid-template-columns: 1fr; }
  .filters { position: static; }
  .filters__mobile-toggle { display: inline-flex; }
  .benefits { grid-template-columns: repeat(2, 1fr); }
  .benefit:nth-child(3) { border-left: 0; }
  .benefit:nth-child(n+3) { border-top: 1px solid var(--line-2); }
  .assurance { grid-template-columns: repeat(2, 1fr); }
  .assurance__item:nth-child(3) { border-left: 0; }
  .assurance__item:nth-child(n+3) { border-top: 1px solid var(--line-2); }
}

@media (max-width: 960px) {
  .hero__inner { grid-template-columns: 1fr; padding-block: 42px 46px; }
  .hero__visual { min-height: 330px; order: 2; }
  .grid-products.is-list .product { flex-direction: column; }
  .grid-products.is-list .product__shot { width: auto; aspect-ratio: 16 / 9; }
  .grid-products.is-list .product__body { flex-direction: column; align-items: stretch; }
  .grid-products.is-list .product__foot { flex-direction: row; align-items: flex-end; margin-top: auto; padding-top: 15px; }
  .promo { grid-template-columns: 1fr; text-align: left; }
  .promo__logo { width: 54px; height: 54px; font-size: 26px; }
}

@media (max-width: 860px) {
  .nav {
    position: fixed; inset: 0 0 0 auto; z-index: 130;
    width: min(340px, 86vw);
    background: #fff; box-shadow: -14px 0 40px rgba(15, 23, 42, .16);
    padding: 22px 20px;
    transform: translateX(100%);
    transition: transform .28s var(--ease);
    display: flex; flex-direction: column;
    overflow-y: auto;
  }
  .nav.is-open { transform: none; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 2px; margin-top: 34px; }
  .nav__link { padding: 13px 14px; font-size: 15.5px; border-radius: var(--r); }
  .nav__link.is-active { background: var(--blue-50); }
  .nav__link.is-active::after { display: none; }
  .nav__close { display: block; position: absolute; top: 16px; right: 16px; }
  .nav__toggle { display: block; }
  .nav__mobile-actions { display: grid; gap: 10px; margin-top: 22px; }
  .nav__backdrop { display: block; position: fixed; inset: 0; z-index: 120; background: rgba(15, 23, 42, .42); }
  .header__login, .header__cta { display: none; }
  .trust { flex-direction: column; align-items: flex-start; }
  .footer__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__bottom { justify-content: flex-start; }
}

@media (max-width: 640px) {
  body { font-size: 14.5px; }
  .container { padding-inline: 16px; }
  .section { padding-block: 34px; }
  .section__head { flex-direction: column; align-items: flex-start; gap: 10px; }
  .hero__actions .btn { flex: 1; }
  .hero__points { gap: 14px 22px; }
  .hero__visual { min-height: 250px; }
  .benefits, .assurance, .cats { grid-template-columns: 1fr; }
  .benefit, .assurance__item { border-left: 0; border-top: 1px solid var(--line-2); }
  .benefit:first-child, .assurance__item:first-child { border-top: 0; }
  .grid-products { grid-template-columns: 1fr; }
  .searchbar { padding: 12px; }
  .searchbar .select, .searchbar .chip { flex: 1; }
  .searchbar .select select { width: 100%; }
  .footer__grid { grid-template-columns: 1fr; }
  .trust__claims { font-size: 14.5px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto; }
}

/* Doplňky */
.product__head > div { min-width: 0; }
.product__name, .product__tagline { display: block; }
.searchbar__field .icon { z-index: 1; }

/* ---------- Počítadlo návštěv v patičce ---------- */

.counter {
  display: flex; align-items: center; justify-content: center;
  gap: 22px; flex-wrap: wrap;
  margin-top: 30px; padding: 16px 20px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: var(--r-lg);
}
.counter__title {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: rgba(255, 255, 255, .5);
}
.counter__title .icon { color: var(--blue-200); }

.counter__items { display: flex; gap: 10px; flex-wrap: wrap; }
.counter__item {
  display: flex; flex-direction: column; align-items: center; gap: 1px;
  min-width: 84px; padding: 8px 16px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: var(--r);
}
.counter__item b {
  font-size: 19px; font-weight: 800; letter-spacing: -.02em; color: #fff;
  font-variant-numeric: tabular-nums;
}
.counter__item > span {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11.5px; color: rgba(255, 255, 255, .58);
}
.counter__item--live { background: rgba(34, 197, 94, .13); border-color: rgba(34, 197, 94, .26); }
.counter__item--live b { color: #86EFAC; }

.dot-live {
  width: 7px; height: 7px; border-radius: 50%; display: inline-block;
  background: #22C55E; box-shadow: 0 0 0 0 rgba(34, 197, 94, .55);
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  70%  { box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

@media (max-width: 640px) {
  .counter { flex-direction: column; gap: 12px; }
  .counter__items { width: 100%; }
  .counter__item { flex: 1; min-width: 0; padding-inline: 8px; }
}
