/* ============================================================
   3.sk — dizajn systém storefrontu
   Prémiový, čistý, rýchly: žiadny build krok, žiadne JS knižnice.
   ============================================================ */

:root {
  --ink: #0f1b2d;
  --ink-soft: #3b4a5f;
  --muted: #64748b;
  --line: #e6eaf0;
  --line-strong: #d4dbe5;
  --accent: #0b66c2;
  --accent-dark: #084e96;
  --accent-deep: #0a2d52;
  --bg: #ffffff;
  --bg-soft: #f5f7fa;
  --success: #0a7d33;
  --success-bg: #e9f6ee;
  --warn: #b45309;
  --radius: 10px;
  --radius-lg: 14px;
  --shadow-sm: 0 1px 2px rgba(15, 27, 45, .06);
  --shadow-md: 0 6px 24px -8px rgba(15, 27, 45, .16);
  --shadow-lift: 0 12px 32px -10px rgba(11, 102, 194, .25);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  font-size: 15.5px;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); }
h1 { font-size: 28px; letter-spacing: -.02em; line-height: 1.2; }
h2 { font-size: 21px; letter-spacing: -.015em; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 20px; }

/* ---------- header ---------- */
header.site {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
header.site .wrap { display: flex; align-items: center; gap: 22px; padding: 14px 20px; }
.logo { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 23px; color: var(--ink); letter-spacing: -.02em; }
.logo:hover { color: var(--ink); }
.logo .mark {
  width: 38px; height: 38px; border-radius: 10px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 100%);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 800; box-shadow: var(--shadow-sm);
}
.search { flex: 1; max-width: 640px; }
.search form { display: flex; position: relative; }
.search input {
  flex: 1; padding: 12px 52px 12px 18px; font-size: 15px;
  border: 1.5px solid var(--line-strong); border-radius: 999px;
  background: var(--bg-soft); transition: border-color .15s, background .15s, box-shadow .15s;
}
.search input:focus { outline: none; border-color: var(--accent); background: #fff; box-shadow: 0 0 0 4px rgba(11, 102, 194, .12); }
.search button {
  position: absolute; right: 5px; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--accent); color: #fff; font-size: 16px;
  display: flex; align-items: center; justify-content: center; transition: background .15s;
}
.search button:hover { background: var(--accent-dark); }
.cartlink {
  display: flex; align-items: center; gap: 8px; white-space: nowrap;
  font-weight: 600; color: var(--ink); padding: 9px 16px;
  border: 1.5px solid var(--line-strong); border-radius: 999px; transition: border-color .15s, box-shadow .15s;
}
.cartlink:hover { color: var(--ink); border-color: var(--accent); box-shadow: var(--shadow-sm); }
.cartbadge {
  background: var(--accent); color: #fff; border-radius: 999px;
  min-width: 22px; height: 22px; padding: 0 7px; font-size: 12.5px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
}

/* ---------- nav kategórií ---------- */
nav.cats { background: #fff; border-bottom: 1px solid var(--line); }
nav.cats .wrap {
  display: flex; gap: 4px; padding: 8px 20px;
  overflow-x: auto; scrollbar-width: none;
}
nav.cats .wrap::-webkit-scrollbar { display: none; }
nav.cats a {
  white-space: nowrap; font-size: 13.5px; font-weight: 500; color: var(--ink-soft);
  padding: 7px 13px; border-radius: 999px; transition: background .12s, color .12s;
}
nav.cats a:hover { background: var(--bg-soft); color: var(--accent); }

/* ---------- hero (titulka) ---------- */
.hero {
  background:
    radial-gradient(1100px 420px at 12% -10%, rgba(56, 142, 224, .35), transparent 60%),
    radial-gradient(900px 380px at 95% 0%, rgba(8, 50, 98, .55), transparent 55%),
    linear-gradient(140deg, #0a2d52 0%, #0b4f9c 55%, #0b66c2 100%);
  color: #fff; padding: 64px 0 56px; margin-bottom: 8px;
}
.hero h1 { font-size: 42px; margin: 0 0 12px; font-weight: 800; letter-spacing: -.03em; }
.hero p.sub { font-size: 18px; margin: 0 0 28px; color: rgba(255, 255, 255, .85); max-width: 560px; }
.hero .search { max-width: 580px; }
.hero .search input { background: #fff; border-color: transparent; box-shadow: var(--shadow-md); }
.hero .chips { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 26px; font-size: 14px; color: rgba(255, 255, 255, .92); }
.hero .chips span { display: flex; align-items: center; gap: 7px; }
.hero .chips b { font-weight: 700; }
.hero .stats { display: flex; gap: 38px; margin-top: 34px; }
.hero .stats div { line-height: 1.25; }
.hero .stats .n { font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.hero .stats .l { font-size: 13px; color: rgba(255, 255, 255, .75); }

/* ---------- promo bannery ---------- */
.banners { display: grid; grid-template-columns: 2.05fr 1fr; gap: 14px; padding: 22px 0 4px; }
.kicker { display: block; font-size: 12px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
.banner-main {
  display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: 18px;
  background:
    radial-gradient(700px 260px at 100% 0%, rgba(11, 102, 194, .10), transparent 60%),
    linear-gradient(135deg, #eef5fc 0%, #f7fafd 60%, #eef5fc 100%);
  border: 1px solid #d7e6f5; border-radius: var(--radius-lg);
  padding: 28px 30px; min-height: 230px;
  transition: border-color .15s, box-shadow .18s, transform .18s;
}
.banner-main:hover { border-color: var(--accent); box-shadow: var(--shadow-lift); transform: translateY(-2px); }
.banner-main .bm-text h2 { margin: 0 0 10px; font-size: 25px; font-weight: 800; letter-spacing: -.02em; color: var(--ink); line-height: 1.18; }
.banner-main .bm-text p { margin: 0 0 18px; font-size: 14.5px; color: var(--ink-soft); max-width: 360px; }
.banner-main .btn { padding: 11px 22px; }
.bm-products { display: flex; gap: 12px; justify-content: flex-end; }
.bm-tile {
  position: relative; background: #fff; border: 1px solid var(--line);
  border-radius: 12px; padding: 10px; width: 118px; height: 130px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-sm); transition: transform .18s, box-shadow .18s;
}
.banner-main:hover .bm-tile { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.banner-main:hover .bm-tile:nth-child(2) { transition-delay: .04s; }
.banner-main:hover .bm-tile:nth-child(3) { transition-delay: .08s; }
.bm-tile img { max-width: 96px; max-height: 86px; object-fit: contain; }
.bm-tile em {
  position: absolute; bottom: -9px; left: 50%; transform: translateX(-50%);
  font-style: normal; font-size: 12px; font-weight: 800; white-space: nowrap;
  background: var(--accent); color: #fff; border-radius: 999px; padding: 3px 11px;
}
.banner-side { display: grid; grid-template-rows: 1fr 1fr; gap: 14px; }
.bs-card {
  display: flex; flex-direction: column; justify-content: center;
  border-radius: var(--radius-lg); padding: 20px 22px;
  transition: border-color .15s, box-shadow .18s, transform .18s;
}
.bs-card strong { font-size: 17.5px; font-weight: 800; letter-spacing: -.015em; line-height: 1.25; }
.bs-card .bs-sub { font-size: 13px; margin-top: 6px; }
.bs-ship { background: linear-gradient(135deg, var(--accent-deep) 0%, var(--accent) 130%); color: #fff; }
.bs-ship .kicker { color: rgba(255, 255, 255, .75); }
.bs-ship .bs-sub { color: rgba(255, 255, 255, .8); }
.bs-cat { background: #fff; border: 1px solid var(--line); color: var(--ink); }
.bs-cat .bs-sub { color: var(--muted); }
.bs-cat:hover { border-color: var(--accent); box-shadow: var(--shadow-lift); transform: translateY(-2px); color: var(--ink); }
.bs-cat:hover strong { color: var(--accent); }
@media (max-width: 980px) {
  .banners { grid-template-columns: 1fr; }
  .banner-side { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr; }
}
@media (max-width: 640px) {
  .banner-main { grid-template-columns: 1fr; min-height: 0; padding: 22px; }
  .bm-products { justify-content: flex-start; }
  .bm-tile { width: 31%; }
  .banner-side { grid-template-columns: 1fr; }
}

/* ---------- sekcie titulky ---------- */
.home-section { padding: 34px 0 6px; }
.home-section .head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 16px; }
.home-section .head h2 { margin: 0; }
.home-section .head a { font-size: 14px; font-weight: 600; }

.sections { display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 14px; }
.section {
  position: relative; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 18px 20px 16px;
  transition: border-color .15s, box-shadow .18s, transform .18s;
}
.section:hover { border-color: var(--accent); box-shadow: var(--shadow-lift); transform: translateY(-3px); }
.section h3 { margin: 0 0 6px; font-size: 16px; letter-spacing: -.01em; }
.section h3 a { color: var(--ink); }
.section h3 a::after { content: ""; position: absolute; inset: 0; }
.section:hover h3 a { color: var(--accent); }
.section .subs { font-size: 13px; color: var(--muted); line-height: 1.7; }
.section .subs a { color: var(--muted); position: relative; z-index: 1; }
.section .subs a:hover { color: var(--accent); }
.section .count { position: absolute; top: 18px; right: 18px; font-size: 12px; color: var(--muted); background: var(--bg-soft); border-radius: 999px; padding: 3px 10px; }

/* ---------- produktové karty ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; padding: 6px 0 36px; }
.card {
  display: flex; flex-direction: column; background: #fff; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  transition: border-color .15s, box-shadow .18s, transform .18s;
}
.card:hover { border-color: var(--line-strong); box-shadow: var(--shadow-md); transform: translateY(-3px); }
.card img { width: 100%; height: 196px; object-fit: contain; background: #fff; padding: 14px; transition: transform .25s; }
.card:hover img { transform: scale(1.04); }
.card .body { padding: 4px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card .brand { font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.card .name {
  font-size: 14px; color: var(--ink); line-height: 1.45; min-height: 40px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card:hover .name { color: var(--accent); }
.card .price { font-weight: 800; font-size: 18.5px; letter-spacing: -.02em; margin-top: auto; }
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--success); }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 999px; background: var(--success); }
.badge.out { color: var(--muted); }
.badge.out::before { background: var(--line-strong); }

/* ---------- benefity ---------- */
.benefits { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-top: 26px; }
.benefits .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px; padding: 26px 20px; }
.benefit { display: flex; gap: 13px; align-items: flex-start; }
.benefit .ico {
  flex: none; width: 42px; height: 42px; border-radius: 12px;
  background: #fff; border: 1px solid var(--line); color: var(--accent);
  display: flex; align-items: center; justify-content: center; font-size: 19px;
}
.benefit b { display: block; font-size: 14.5px; }
.benefit span.d { font-size: 13px; color: var(--muted); }

/* ---------- footer ---------- */
footer.site { background: var(--accent-deep); color: rgba(255, 255, 255, .82); margin-top: 0; }
footer.site .cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 30px; padding: 40px 20px 28px; }
footer.site h4 { color: #fff; font-size: 14px; letter-spacing: .04em; text-transform: uppercase; margin: 0 0 12px; }
footer.site a { color: rgba(255, 255, 255, .82); display: block; padding: 3px 0; font-size: 14px; }
footer.site a:hover { color: #fff; }
footer.site .about { font-size: 14px; line-height: 1.7; max-width: 360px; }
footer.site .about .logo { color: #fff; margin-bottom: 10px; font-size: 20px; }
footer.site .bottom { border-top: 1px solid rgba(255, 255, 255, .14); padding: 16px 20px; font-size: 13px; color: rgba(255, 255, 255, .6); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

/* ---------- breadcrumbs, stránkovanie, hlášky ---------- */
.crumbs { font-size: 13px; color: var(--muted); padding: 16px 0 6px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--accent); }
.pager { display: flex; gap: 8px; justify-content: center; align-items: center; padding: 8px 0 36px; }
.pager a, .pager span { padding: 9px 16px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; font-weight: 500; }
.pager a:hover { border-color: var(--accent); box-shadow: var(--shadow-sm); }
.msg { background: var(--success-bg); border: 1px solid #bfe3cc; color: var(--success); padding: 12px 16px; border-radius: var(--radius); margin: 14px 0; font-weight: 500; }

/* ---------- tlačidlá ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--accent); color: #fff; padding: 12px 24px; border: 0;
  border-radius: var(--radius); font-size: 15px; font-weight: 600; cursor: pointer;
  transition: background .15s, transform .12s, box-shadow .15s;
}
.btn:hover { background: var(--accent-dark); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-lift); }
.btn:active { transform: translateY(0); }
.btn.sec { background: #fff; color: var(--accent); border: 1.5px solid var(--accent); }
.btn.sec:hover { background: #f0f7ff; box-shadow: none; }

/* ---------- filtre ---------- */
.filters {
  display: flex; flex-wrap: wrap; gap: 16px 22px; align-items: flex-end;
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 16px 18px; margin: 14px 0 18px; background: #fff; box-shadow: var(--shadow-sm);
}
.filters fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.filters legend { font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); margin-bottom: 7px; padding: 0; }
.filters select, .filters input[type="text"] {
  padding: 9px 12px; border: 1.5px solid var(--line-strong); border-radius: 8px;
  font-size: 14px; background: #fff;
}
.filters select:focus, .filters input:focus { outline: none; border-color: var(--accent); }
.filters label { font-size: 14px; white-space: nowrap; color: var(--ink-soft); }
.brandlist { display: flex; flex-wrap: wrap; gap: 5px 16px; max-width: 560px; max-height: 100px; overflow: auto; }
.brandlist .cnt { color: var(--muted); font-size: 12px; }
.factions { display: flex; gap: 10px; align-items: center; }
.qtybox { display: flex; gap: 8px; align-items: center; }
.qtybox input { width: 62px; padding: 9px; border: 1.5px solid var(--line-strong); border-radius: 8px; font-size: 14px; text-align: center; }

/* ---------- detail produktu ---------- */
.pdetail { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding: 14px 0 10px; }
.pdetail .imgbox { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px; background: #fff; }
.pdetail img.main { width: 100%; max-height: 460px; object-fit: contain; }
.buy { font-size: 34px; font-weight: 800; color: var(--ink); letter-spacing: -.02em; margin: 8px 0 4px; }
.params { width: 100%; border-collapse: collapse; margin: 14px 0; }
.params td { border-bottom: 1px solid var(--line); padding: 9px 6px; font-size: 14px; }
.params tr td:first-child { color: var(--muted); width: 44%; }
section h2 { margin-top: 30px; }

/* ---------- košík / pokladňa ---------- */
.ctable { width: 100%; border-collapse: collapse; }
.ctable td, .ctable th { border-bottom: 1px solid var(--line); padding: 13px 8px; text-align: left; font-size: 14.5px; vertical-align: middle; }
.ctable th { font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.summary { margin: 18px 0 30px auto; max-width: 360px; font-size: 15px; background: var(--bg-soft); border-radius: var(--radius-lg); padding: 18px 20px; }
.summary .row { display: flex; justify-content: space-between; padding: 6px 0; }
.summary .grand { font-size: 23px; font-weight: 800; border-top: 1px solid var(--line-strong); padding-top: 12px; margin-top: 6px; }
.field { margin: 12px 0; }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--ink-soft); margin-bottom: 5px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 11px 13px; border: 1.5px solid var(--line-strong);
  border-radius: 8px; font-size: 14.5px; font-family: inherit;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(11, 102, 194, .1); }
.field .errorlist { color: #c0392b; font-size: 13px; list-style: none; padding: 0; margin: 5px 0 0; }
.field ul { list-style: none; padding: 0; margin: 0; display: flex; gap: 18px; }

/* ---------- responzív ---------- */
@media (max-width: 860px) {
  .hero { padding: 42px 0 38px; }
  .hero h1 { font-size: 30px; }
  .hero .stats { gap: 22px; }
  .pdetail { grid-template-columns: 1fr; gap: 22px; }
  footer.site .cols { grid-template-columns: 1fr; gap: 22px; }
  header.site .wrap { gap: 12px; }
  .cartlink .lbl { display: none; }
}
@media (max-width: 560px) {
  .grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
  .card img { height: 150px; }
  .hero h1 { font-size: 26px; }
  .hero .chips { gap: 8px 14px; font-size: 13px; }
}
