/* redport-web — základný vzhľad (fáza 1). Vzhľad 1:1 s dnešným redport.sk príde vo fáze 2. */
:root {
  --red: #c8102e;
  --red-dark: #9e0c24;
  --ink: #1d1d1f;
  --muted: #6b6b70;
  --line: #e4e4e7;
  --bg: #ffffff;
  --bg-soft: #f6f6f7;
  --green: #1f8a3b;
  --radius: 4px;
  --wrap: 1200px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; color: var(--ink); background: var(--bg); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); }
a:hover { color: var(--red-dark); }
h1 { font-size: 1.75rem; line-height: 1.25; margin: .25em 0 .5em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.main { padding-top: 16px; padding-bottom: 48px; min-height: 50vh; }

/* hlavička */
.site-header { border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; gap: 24px; padding-top: 14px; padding-bottom: 14px; }
.logo { font-size: 1.6rem; font-weight: 800; color: var(--red); text-decoration: none; letter-spacing: -.02em; }
.header-info { display: flex; gap: 16px; color: var(--muted); font-size: .875rem; flex: 1; }
.cart-link { text-decoration: none; font-weight: 600; color: var(--ink); white-space: nowrap; }
.cart-count { display: inline-block; min-width: 1.5em; padding: 0 .4em; border-radius: 99px; background: var(--red); color: #fff; text-align: center; font-size: .8rem; }
.main-nav { background: var(--ink); }
.nav-toggle { display: none; }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
.nav-list > li { position: relative; }
.nav-list > li > a { display: block; padding: 12px 16px; color: #fff; text-decoration: none; font-weight: 600; }
.nav-list > li > a:hover { background: var(--red); }
.nav-list .sub { display: none; position: absolute; top: 100%; left: 0; z-index: 10; list-style: none; margin: 0; padding: 6px 0; background: #fff; border: 1px solid var(--line); min-width: 240px; box-shadow: 0 8px 24px rgba(0,0,0,.08); }
.nav-list .sub a { display: block; padding: 8px 16px; color: var(--ink); text-decoration: none; }
.nav-list .sub a:hover { background: var(--bg-soft); color: var(--red); }
.nav-list > li:hover .sub, .nav-list > li:focus-within .sub { display: block; }

/* zoznamy */
.breadcrumbs { font-size: .875rem; color: var(--muted); margin-bottom: 8px; }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs span { margin: 0 4px; }
.subcats { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; }
.subcats a, .home-cat { padding: 8px 14px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); background: var(--bg-soft); }
.subcats a:hover, .home-cat:hover { border-color: var(--red); color: var(--red); }
.home-cats { display: flex; flex-wrap: wrap; gap: 12px; margin: 8px 0 32px; }
.home-cat { font-size: 1.1rem; font-weight: 600; padding: 18px 24px; }
.section-title { font-size: 1.35rem; margin: 32px 0 16px; }
.list-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; color: var(--muted); font-size: .9rem; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
.card { border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; display: flex; flex-direction: column; background: #fff; }
.card-img { position: relative; aspect-ratio: 1; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.card-img img { max-height: 100%; object-fit: contain; }
.flag { position: absolute; top: 6px; left: 6px; padding: 2px 8px; font-size: .75rem; font-weight: 700; color: #fff; background: var(--red); border-radius: 2px; }
.card-name { font-size: 1rem; margin: 10px 0; flex: 1; }
.card-name a { color: var(--ink); text-decoration: none; }
.card-name a:hover { color: var(--red); }
.card-bottom { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.price { font-weight: 700; font-size: 1.1rem; }
.avail { font-size: .85rem; }
.in-stock { color: var(--green); }
.out-of-stock { color: var(--muted); }
.pager { display: flex; gap: 6px; justify-content: center; margin-top: 28px; }
.pager a { padding: 6px 12px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); }
.pager a.current { background: var(--red); border-color: var(--red); color: #fff; }
.empty { color: var(--muted); }

/* detail produktu */
.product { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.gallery-main { width: 100%; aspect-ratio: 1; object-fit: contain; border: 1px solid var(--line); border-radius: var(--radius); }
.thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.thumbs button { padding: 0; border: 1px solid var(--line); background: #fff; width: 72px; height: 72px; cursor: pointer; border-radius: var(--radius); }
.thumbs img { width: 100%; height: 100%; object-fit: contain; }
.brand { color: var(--muted); margin: 0 0 12px; }
.short-desc { color: var(--muted); }
.variants { border: 0; padding: 0; margin: 16px 0; }
.variants legend { font-weight: 700; margin-bottom: 8px; }
.variant { display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "r l p" "r a u"; column-gap: 12px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 8px; cursor: pointer; }
.variant input { grid-area: r; }
.v-label { grid-area: l; font-weight: 600; }
.v-price { grid-area: p; font-weight: 700; text-align: right; }
.v-unit { grid-area: u; font-size: .8rem; color: var(--muted); text-align: right; }
.variant .avail { grid-area: a; }
.variant:has(input:checked) { border-color: var(--red); background: #fff5f6; }
.variant.disabled { opacity: .55; cursor: not-allowed; }
.price-big { font-size: 1.8rem; font-weight: 800; margin: 16px 0 4px; }
.price-big s { font-size: 1.1rem; color: var(--muted); font-weight: 400; margin-right: 8px; }
.vat-note, .meta { font-size: .85rem; color: var(--muted); }
.add-row { display: flex; gap: 10px; margin: 16px 0; }
.add-row input { width: 80px; padding: 10px; font-size: 1rem; border: 1px solid var(--line); border-radius: var(--radius); }
.btn { display: inline-block; padding: 12px 28px; font-size: 1rem; font-weight: 700; color: #fff; background: var(--red); border: 0; border-radius: var(--radius); cursor: pointer; text-decoration: none; }
.btn:hover { background: var(--red-dark); color: #fff; }
.btn:disabled { background: #bbb; cursor: not-allowed; }
.description { margin-top: 40px; max-width: 820px; }
.static-page { max-width: 820px; }
.brand-list { columns: 3 180px; }

/* pätička */
.site-footer { background: var(--bg-soft); border-top: 1px solid var(--line); padding: 32px 0 16px; font-size: .9rem; }
.footer-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }
.site-footer h3 { font-size: 1rem; margin: 0 0 10px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 6px; }
.site-footer a { color: var(--ink); text-decoration: none; }
.copyright { color: var(--muted); margin-top: 24px; font-size: .8rem; }

@media (max-width: 760px) {
  .header-info { display: none; }
  .header-row { justify-content: space-between; }
  .nav-toggle { display: block; background: none; border: 0; color: #fff; font-weight: 700; padding: 12px 0; font-size: 1rem; }
  .nav-list { display: none; flex-direction: column; padding-bottom: 8px; }
  .main-nav .wrap.open .nav-list { display: flex; }
  .nav-list > li > a { padding: 10px 0; }
  .nav-list .sub { position: static; display: block; border: 0; box-shadow: none; background: transparent; padding: 0 0 4px 12px; }
  .nav-list .sub a { color: #ddd; padding: 4px 0; }
  .product { grid-template-columns: 1fr; gap: 20px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  h1 { font-size: 1.4rem; }
}

/* číslo buildu v pravom hornom rohu (len testovacia verzia) */
.build-badge { position: fixed; top: 0; right: 0; z-index: 100; padding: 2px 8px; font: 11px/1.4 ui-monospace, Consolas, monospace; color: #fff; background: rgba(29,29,31,.75); border-bottom-left-radius: 4px; pointer-events: none; }
