/* ============================================================
   STOREFRONT — BRANY PROFI design system (rev. 2026-05)
   --------------------------------------------------------------
   Návrh ze složky NAVRH/. Tmavě modrá #121a20 (chrome) + oranžová
   #ff6b00 (CTA, ceny) + bílá/mist pozadí. Inter font, generous
   spacing, výrazné karty s jemným stínem.
   ============================================================ */

:root {
    /* === Surfaces === */
    --bg:        #f5f7f8;        /* page background — light blue-gray */
    --surface:   #ffffff;
    --surface-2: #f0f3f5;        /* alternativní section bg */

    /* === Brand neutrals === */
    --dark:      #121a20;        /* topbar, nav, footer, hero — primary dark */
    --dark-2:    #1c252d;        /* nav row */
    --dark-3:    #182229;        /* form fields v dark sekci */

    /* === Text barvy (dle mockupů — měkčí než pure black) === */
    --text:      #17212b;        /* primární text */
    --text-2:    #2c3e5e;        /* sekundární heading */
    --text-3:    #4b5563;        /* body */
    --muted:     #65717c;        /* popisky, captions */
    --muted-2:   #9ca7ad;        /* placeholder, hints */
    --line:      #dde3e8;        /* hairline borders */
    --line-2:    #e7ecef;        /* light separators */

    /* === Accent === */
    --orange:    #ff6b00;        /* CTA primární */
    --orange-2:  #ff7f22;        /* hover light */
    --orange-3:  #e95f00;        /* hover dark */

    /* === Status === */
    --green:     #21a45d;        /* skladem */
    --red:       #dc2626;
    --amber:     #f59e0b;

    /* === Typografie === */
    --font: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

    /* === Border radius (dle mockupů) === */
    --radius:    18px;           /* hero, config-band, panel, article-hero */
    --radius-sm: 12px;           /* card, panel, gallery thumb, .accordion */
    --radius-xs: 8px;            /* media uvnitř product-card, search input */
    --radius-pill: 999px;        /* badge, chip */

    /* === Shadows (jemné, dle mockupů) === */
    --shadow:    0 10px 30px rgba(17,26,32,.08);
    --shadow-sm: 0 4px 18px rgba(17,26,32,.04);
    --shadow-lg: 0 16px 40px rgba(17,26,32,.12);

    /* === Layout container max-widths === */
    --max:       1320px;         /* default (FullHD comfortable) */
    --max-wide:  1600px;         /* hero / wider sekce na QHD+ */
    --max-narrow: 960px;         /* CMS článek (čitelná délka řádku) */

    /* === Breakpointy === */
    --bp-sm:  640px;
    --bp-md:  980px;
    --bp-lg:  1280px;
    --bp-xl:  1440px;
    --bp-2xl: 1920px;
}

/* Reset & base ------------------------------------------------ */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.shop-body {
    margin: 0;
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
    font-size: 15px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; }
img {
    max-width: 100%;
    display: block;
    border-radius: var(--radius-xs);  /* default radius pro <img> uvnitř karet */
}
button, input, select, textarea { font: inherit; }

/* === Typografie (dle mockupů) === */
.shop-body h1,
.shop-body h2,
.shop-body h3,
.shop-body h4,
.shop-body h5,
.shop-body h6 {
    font-family: var(--font);
    color: var(--text);
    line-height: 1.2;
    margin: 0;
}
.shop-body h1 { font-size: clamp(28px, 3vw, 36px); font-weight: 800; letter-spacing: -0.02em; }
.shop-body h2 { font-size: clamp(22px, 2.2vw, 28px); font-weight: 800; letter-spacing: -0.015em; }
.shop-body h3 { font-size: clamp(16px, 1.4vw, 19px); font-weight: 700; letter-spacing: -0.01em; }
.shop-body h4 { font-size: 16px; font-weight: 700; }
.shop-body p  { margin: 0 0 12px; line-height: 1.55; }

/* Page-title (větší než h1) */
.page-title { font-size: clamp(28px, 3.5vw, 44px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; margin: 0 0 16px; }

/* Hero h1 — extra velký, fluid */
.hero h1 {
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 900;
    letter-spacing: -0.025em;
    line-height: 1.05;
    margin: 0 0 18px;
    color: #fff;
}

/* Eyebrow — malý uppercase nad nadpisy */
.eyebrow {
    color: var(--orange);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 11px;
    margin: 0 0 8px;
    display: block;
}

/* === IMG / media radiusy === */
.media,
.thumb,
.cart-item .media,
.product .media,
.preview,
.gallery-main,
.article-hero,
.megamenu__featured-img,
.card__art {
    border-radius: var(--radius-sm);
    overflow: hidden;
}
.product .media { border-radius: var(--radius-xs); }
.cart-item .media { border-radius: var(--radius-xs); }
.thumb { border-radius: var(--radius-xs); }

.container {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 clamp(16px, 2.5vw, 32px);   /* fluid horizontal padding */
}
.container--wide {
    max-width: var(--max-wide);
}
.container--narrow {
    max-width: var(--max-narrow);
}

/* ============================================================
   1) TOP UTILITY BAR
   ============================================================ */
.topbar {
    background: var(--dark);
    color: #fff;
    font-size: 13px;
}
.topbar__inner {
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.topbar span,
.topbar a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    color: #fff;
    text-decoration: none;
}
.topbar a:hover { color: var(--orange); }

/* ============================================================
   2) HEADER (logo + search + actions)
   ============================================================ */
.header {
    background: #fff;
    border-bottom: 1px solid var(--line);
}
.header__inner {
    height: 82px;
    display: grid;
    grid-template-columns: 240px 1fr 280px;
    align-items: center;
    gap: 26px;
}
.logo {
    font-size: 28px;
    font-weight: 900;
    letter-spacing: -0.04em;
    color: var(--text);
    line-height: 1.05;
}
.logo b {
    color: var(--orange);
}
.logo small {
    display: block;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0;
    color: var(--muted);
    margin-top: -3px;
}

/* Search */
.search {
    display: flex;
    border: 1px solid var(--line);
    border-radius: var(--radius-xs);     /* 8px — dle mockupu */
    overflow: hidden;
    background: #fff;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.search:focus-within {
    border-color: var(--dark);
    box-shadow: 0 0 0 3px rgba(18, 26, 32, 0.08);
}
.search input {
    flex: 1;
    border: 0;
    outline: 0;
    padding: 14px 16px;
    color: var(--text);
    font-size: 15px;
    background: #fff;
}
.search input::placeholder { color: var(--muted-2); }
.search button {
    width: 54px;
    border: 0;
    background: var(--dark);
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    transition: background .15s ease;
}
.search button:hover { background: var(--dark-2); }

/* Header action icons */
.header-actions {
    display: flex;
    justify-content: flex-end;
    gap: 22px;
}
.ha {
    position: relative;
    text-align: center;
    font-size: 13px;
    color: var(--text);
    transition: color .15s ease;
    text-decoration: none;
}
.ha:hover,
.ha:focus,
.ha:active {
    color: var(--orange);
    text-decoration: none;     /* žádné podtržení po hoveru */
}
.ha:hover i { color: var(--orange); }
.ha .icon,
.ha i {
    display: block;
    margin: 0 auto 4px;
    font-style: normal;
    font-size: 20px;
    line-height: 1;
}
.ha .icon { width: 22px; height: 22px; }
.ha:hover i { color: var(--orange); }
/* FA ikony v topbaru */
.topbar i { color: var(--orange); }
.badge {
    position: absolute;
    right: -6px;          /* posunuto víc napravo (z 6px → -6px = vyčnívá z ikony) */
    top: -4px;
    background: var(--orange);
    color: #fff;
    border-radius: 99px;
    font-size: 10px;
    line-height: 16px;
    min-width: 16px;
    padding: 0 4px;
    font-weight: 700;
    border: 2px solid #fff;     /* jemný white outline aby badge "stál" na ikoně */
    box-sizing: content-box;
}

/* ============================================================
   3) MEGA NAV BAR
   ============================================================ */
.nav {
    background: var(--dark-2);
    color: #fff;
    position: relative;     /* parent pro absolute mega menu panel */
}
.nav__inner {
    height: 46px;
    display: flex;
    align-items: stretch;
    gap: 0;
    font-weight: 700;
    list-style: none;
    margin: 0;
    padding: 0;
}
.nav__inner > li {
    display: flex;
    align-items: stretch;
}
.nav__inner a,
.nav__inner button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0 18px;
    color: rgba(255, 255, 255, 0.92);
    background: transparent;
    border: 0;
    cursor: pointer;
    font-weight: 700;
    font-size: 14px;
    white-space: nowrap;
    text-decoration: none;
    transition: color .12s, background .12s;
}
.nav__inner a:hover,
.nav__inner a.active,
.nav__inner button:hover,
.nav__inner button[aria-expanded="true"] {
    color: var(--orange);
}
.nav__inner button[aria-expanded="true"] {
    background: var(--dark);
}
.nav__chevron {
    font-size: 10px;
    opacity: 0.7;
    transition: transform .15s ease;
}
.nav__inner > button[aria-expanded="true"] .nav__chevron {
    transform: rotate(180deg);
}

/* Mega panel — full-width drop pod nav */
.megamenu__panel {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    color: var(--text);
    border-bottom: 3px solid var(--orange);
    box-shadow: var(--shadow-lg);
    z-index: 100;
    animation: mm-fadeIn .18s ease-out;
}
@keyframes mm-fadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}
.megamenu__panel[hidden] { display: none; }
.megamenu__panel-inner {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 48px;
    padding: 28px 22px 32px;
    align-items: start;
    max-width: var(--max);
    margin: 0 auto;
    /* žádný min-height — panel je vysoký dle obsahu */
}
@media (max-width: 980px) {
    .megamenu__panel-inner {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 24px 22px;
        min-height: 0;
    }
}
.megamenu__panel-inner > .megamenu__columns:only-child { grid-column: 1 / -1; }
.megamenu__columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 32px;
}
.megamenu__col-title {
    margin: 12px 0 14px 0;       /* 12px shora — odsazení od top hrany panelu */
    font-size: 12px;
    font-weight: 800;
    color: var(--text);
    text-transform: uppercase;
    letter-spacing: .08em;
    padding-bottom: 10px;
    position: relative;
}
.megamenu__col-title::after {
    content: "";
    position: absolute;
    bottom: 0; left: 0;
    width: 32px;
    height: 2px;
    background: var(--orange);
    border-radius: 1px;
}
.megamenu__col-desc {
    font-size: 12px;
    color: var(--muted);
    margin: -4px 0 8px 0;
    line-height: 1.4;
}
.megamenu__links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
}
.nav .megamenu__link,
.megamenu__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px 7px 4px;
    border-radius: var(--radius-xs);
    color: var(--text-3) !important;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: background .12s, color .12s, padding-left .12s;
}
.megamenu__link::before {
    content: "›";
    color: var(--orange);
    font-weight: 700;
    opacity: 0;
    transition: opacity .12s, transform .12s;
    transform: translateX(-4px);
    margin-right: -2px;
}
.megamenu__link:hover {
    background: rgba(255, 107, 0, 0.08);
    color: var(--orange-3) !important;
    padding-left: 12px;
}
.megamenu__link:hover::before { opacity: 1; transform: translateX(0); }
.megamenu__badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    padding: 2px 6px;
    border-radius: 2px;
    letter-spacing: .03em;
    background: var(--orange);
    color: #fff;
}
.megamenu__badge--red   { background: var(--red); }
.megamenu__badge--green { background: var(--green); }
.megamenu__badge--blue  { background: var(--dark); }

/* Featured promo (vpravo v panelu) */
.megamenu__featured-stack {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 12px 0 0 32px;       /* 12px shora — sjednoceno s col-title */
    border-left: 1px solid var(--line-2);
    align-self: stretch;
}
@media (max-width: 980px) {
    .megamenu__featured-stack { padding: 0; border-left: 0; }
}
.nav .megamenu__featured,
.megamenu__featured {
    display: block;
    background: linear-gradient(135deg, #fff5e6 0%, #fff 100%);
    border-radius: var(--radius-sm);
    overflow: hidden;
    text-decoration: none;
    color: var(--text) !important;
    border: 1px solid #ffd1ad;
    transition: transform .18s ease, box-shadow .18s ease;
}
.megamenu__featured:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(255, 107, 0, 0.18);
    border-color: var(--orange);
}
.megamenu__featured-img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
}
.megamenu__featured-body {
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
}
.megamenu__featured-title {
    font-size: 15px;
    font-weight: 800;
    color: var(--text);
    line-height: 1.3;
}
.megamenu__featured-desc {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.45;
}

/* Skryjeme starý desktop nav-wrap kontejner — používáme nový .nav element */
.masthead-v2 .masthead-v2__nav-wrap { display: none; }

/* ============================================================
   4) BUTTONS & CONTROLS
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: var(--radius-xs);     /* 8px — sjednoceno s search */
    border: 1px solid transparent;
    padding: 14px 22px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: background .15s, transform .15s, border-color .15s, color .15s, box-shadow .15s;
    text-decoration: none;
    line-height: 1.2;
    letter-spacing: 0;
    font-family: inherit;
}
.btn--primary,
.btn-primary {
    background: var(--orange) !important;
    color: #fff !important;
    border-color: var(--orange) !important;
}
.btn--primary:hover,
.btn-primary:hover {
    background: var(--orange-3) !important;
    border-color: var(--orange-3) !important;
    color: #fff !important;
    transform: translateY(-1px);
}
.btn--dark {
    background: var(--dark);
    color: #fff;
    border-color: var(--dark);
}
.btn--dark:hover { background: var(--dark-2); border-color: var(--dark-2); }
.btn--outline {
    background: #fff;
    border-color: var(--line);
    color: var(--text);
}
.btn--outline:hover { border-color: var(--dark); }
/* Specificita 0,2,0 — přebíjí novější `[class].btn--ghost` v app.css, které
   nastavuje `--btn-fg: var(--c-ink)` (dark text). Bez toho byl text v hero
   tmavý na tmavém pozadí a vidět až po hoveru (kde se měnilo --btn-bg). */
[class].btn--ghost {
    --btn-fg: #fff;
    --btn-bg: transparent;
    --btn-bd: rgba(255, 255, 255, 0.5);
    color: #fff;
    background: transparent;
    border-color: rgba(255, 255, 255, 0.5);
}
[class].btn--ghost,
[class].btn--ghost svg.icon {
    color: #fff;
}
[class].btn--ghost:hover {
    --btn-fg: #fff;
    --btn-bg: rgba(255, 255, 255, 0.12);
    --btn-bd: #fff;
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
    border-color: #fff;
}
.btn--lg {
    padding: 16px 28px;
    font-size: 15px;
}
.btn--block { width: 100%; }

/* Quantity stepper */
.qty {
    display: inline-flex;
    border: 1px solid var(--line);
    border-radius: 9px;
    overflow: hidden;
}
.qty button,
.qty span {
    width: 42px;
    height: 42px;
    border: 0;
    background: #fff;
    display: grid;
    place-items: center;
    cursor: pointer;
    font-weight: 700;
}
.qty button:hover { background: var(--surface-2); }

/* ============================================================
   5) HERO
   ============================================================ */
.hero {
    background:
        radial-gradient(circle at 70% 50%, rgba(255, 107, 0, 0.08), transparent 60%),
        linear-gradient(135deg, #1c252d 0%, #121a20 100%);
    min-height: clamp(360px, 50vh, 540px);
    color: #fff;
    display: flex;
    align-items: center;
    overflow: hidden;
}
.hero__inner {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: clamp(24px, 4vw, 64px);
    align-items: center;
    width: 100%;
    padding: clamp(28px, 5vw, 56px) clamp(16px, 2.5vw, 32px);
    max-width: var(--max-wide);   /* hero využije širší container */
    margin: 0 auto;
}
.hero__content { max-width: 640px; }
.hero__art {
    margin: 0;
    color: rgba(255, 255, 255, 0.85);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    padding: clamp(16px, 2vw, 28px);
    backdrop-filter: blur(2px);
}
.hero__art svg { width: 100%; height: auto; max-height: clamp(200px, 30vh, 360px); }
.hero__art figcaption {
    margin-top: 12px;
    color: rgba(255, 255, 255, 0.7);
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: .04em;
}
.hero__art figcaption .eyebrow--white {
    color: var(--orange);
    display: block;
    margin-bottom: 4px;
}

/* ICON velikosti */
.icon { width: 1em; height: 1em; }
.icon--lg  { width: 22px; height: 22px; }
.icon--xl  { width: 32px; height: 32px; }
.icon--xxl { width: 64px; height: 64px; }
.eyebrow {
    color: var(--orange);
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
    font-size: 12px;
}
.hero h2 { color: #fff; font-size: 28px; font-weight: 800; }
.hero p {
    font-size: 17px;
    color: rgba(255, 255, 255, 0.92);
    font-weight: 400;
    line-height: 1.55;
    margin-bottom: 24px;
}
.config-band h1,
.config-band h2,
.config-band h3,
.config-band p,
.config-band a:not(.btn) {
    color: #fff;
}
.config-band h2 { font-size: 26px; }
.config-band p {
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.5;
    font-weight: 400;
}
/* Konfigurátor / Nevíte si rady? eyebrow zachová značkovou oranžovou + bold,
   nepřepíše ho generická .config-band p barva. */
.config-band .eyebrow {
    color: var(--orange);
    font-weight: 800;
}
.hero p {
    font-size: 17px;
    color: #edf2f5;
    margin-bottom: 24px;
    line-height: 1.5;
}

/* ============================================================
   6) "SITUATION" GRID (Quick — 6 dlaždic pod hero)
   ============================================================ */
.quick {
    margin-top: -36px;
    position: relative;
    z-index: 2;
}
.quick__grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    background: #fff;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow);
    overflow: hidden;
}
.quick a {
    padding: 20px 14px;
    border-right: 1px solid var(--line);
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    font-size: 14px;
    color: var(--text);
    transition: background .12s, color .12s;
}
.quick a:last-child { border-right: 0; }
.quick a:hover { background: var(--surface-2); color: var(--orange-3); }
.quick .icon-tile,
.benefits .icon-tile {
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: #fff;
    font-size: 18px;
    color: var(--orange);
    flex-shrink: 0;
}
/* FontAwesome ikona uvnitř tilu */
.icon-tile i {
    font-size: 18px;
}

/* ============================================================
   7) BENEFITS STRIPE
   ============================================================ */
.section { padding: 34px 0; }
.section--paper-2 { background: var(--surface-2); }
.benefits {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 18px;
}
.benefit {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    color: var(--text);
}
.benefit .icon-tile {
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: #fff;
    font-size: 18px;
    color: var(--orange);
}

/* ============================================================
   8) CARDS
   ============================================================ */
.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}
.cards--6 { grid-template-columns: repeat(6, 1fr); }
.cards--4 { grid-template-columns: repeat(4, 1fr); }
.card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    color: var(--text);
    text-decoration: none;
    transition: transform .15s, box-shadow .15s, border-color .15s;
}
.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(17, 26, 32, 0.08);
    border-color: #c4ccd2;
}
.card__body { padding: 16px; }
.card h3 { margin: 0 0 4px; font-size: 18px; font-weight: 800; }

/* Card art — technický výkres uvnitř kategorie/realizace karty */
.card__art {
    aspect-ratio: 16 / 10;
    background: linear-gradient(135deg, #f5f7f8, #e7ecef);
    color: var(--dark);
    padding: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
}
.card__art svg {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.card__art--icon {
    background: linear-gradient(135deg, #fff5e6, #fff);
    color: var(--orange);
}
.card__art--icon svg { width: 56px; height: 56px; }

.card:hover .card__art { background: linear-gradient(135deg, #eef2f4, #dde3e8); }
.card:hover .card__art--icon { background: linear-gradient(135deg, #ffe8c9, #fff5e6); }

/* Placeholder vizuály pro produkty bez fotografie */
.media {
    height: 150px;
    background: linear-gradient(135deg, #cbd5d9, #f8fafb);
    position: relative;
    overflow: hidden;
}
.media:after {
    content: "";
    position: absolute;
    inset: 26px;
    border-radius: 12px;
    background: linear-gradient(135deg, #26323a, #63717a);
    box-shadow: inset 0 -25px 0 rgba(255, 255, 255, 0.18);
}
.media--gate:after {
    height: 70px;
    top: 55px;
    left: 10%;
    right: 10%;
    background:
        repeating-linear-gradient(0deg, #1d252d 0 8px, transparent 8px 18px),
        linear-gradient(135deg, #2a333a, #111820);
}
.media--motor:after {
    width: 90px;
    height: 100px;
    left: 55px;
    top: 30px;
    background: linear-gradient(#1f252b 0 55%, #aab3b8 55%);
}
.media--metal:after {
    background: linear-gradient(135deg, #9ca7ad, #f8fafc);
    transform: skewX(-12deg);
}

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

/* ============================================================
   9) PRODUCT CARDS (4-up)
   ============================================================ */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}
.product {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 14px;
    transition: border-color .15s, box-shadow .15s;
}
.product:hover {
    border-color: #c4ccd2;
    box-shadow: var(--shadow-sm);
}
.product .media {
    height: 130px;
    border-radius: 10px;
    margin-bottom: 12px;
}
.product h3 {
    margin: 0 0 4px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--text);
}
.product .muted {
    font-size: 13px;
    color: var(--muted);
    margin: 0 0 10px;
}
.price {
    font-weight: 800;
    font-size: 22px;
    color: var(--text);
    margin: 8px 0 6px;
    letter-spacing: -0.01em;
    line-height: 1.1;
}
.price small {
    font-size: 13px;
    font-weight: 500;
    color: var(--muted);
    letter-spacing: 0;
}
.stock {
    color: var(--green);
    font-weight: 700;
    font-size: 13px;
    margin: 0 0 10px;
}
.stock--out { color: var(--muted); }
.stock--limited { color: var(--amber); }

/* ============================================================
   10) CONFIG BAND (homepage hero pro konfigurátor)
   ============================================================ */
.config-band {
    background: var(--dark);
    color: #fff;
    border-radius: var(--radius);
    padding: 30px;
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 30px;
    align-items: center;
}
.config-band h2 { margin: 8px 0; font-size: 28px; line-height: 1.15; }
.steps {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr;
    gap: 16px;
    align-items: center;
    text-align: center;
}
.steps h3 { font-size: 16px; margin: 10px 0 4px; }
.steps p { font-size: 13px; color: rgba(255,255,255,0.75); margin: 0; }
.step-no {
    background: var(--orange);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: inline-grid;
    place-items: center;
    font-weight: 900;
    color: #fff;
}
.steps .arrow { font-size: 20px; opacity: 0.6; }

/* Karta kolem ilustrační ikony — jemně světlejší rámeček na dark pozadí.
   Step-no badge je absolutně pozicovaný v levém horním rohu. */
.steps .step-card {
    position: relative;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 14px;
    padding: 28px 16px;
    display: grid;
    place-items: center;
    min-height: 132px;
    overflow: visible;        /* ať badge přečnívající za roh není ořezaný */
    margin-top: 16px;         /* místo nahoře pro přečnívající polovinu badge */
}
.steps .step-card .step-no {
    position: absolute;
    top: -16px;               /* polovina ze 32px = 16, badge je půl venku */
    left: -16px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);   /* lehký lift mimo rámeček */
    z-index: 1;
}
.steps .step-card svg {
    width: 72px;
    height: 72px;
    color: rgba(255, 255, 255, 0.92);
    display: block;
}

/* ============================================================
   11) SPLIT layout (2:1)
   ============================================================ */
.split {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 22px;
}
.panel {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 22px;
    box-shadow: var(--shadow-sm);
}
.panel h2 { margin: 0 0 12px; font-size: 22px; font-weight: 800; }
.panel hr { border: 0; border-top: 1px solid var(--line); margin: 14px 0; }

/* ============================================================
   12) FOOTER
   ============================================================ */
.footer {
    background: var(--dark);
    color: #d6dde2;
    margin-top: 30px;
    padding: 38px 0 20px;
}
.footer__grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(4, 1fr) 1.4fr;
    gap: 26px;
}
.footer h4 {
    color: #fff;
    margin: 0 0 12px;
    font-size: 16px;
    font-weight: 800;
}
.footer a,
.footer p,
.footer li {
    font-size: 14px;
    color: #c4ccd2;
}
.footer a:hover { color: var(--orange); }
.footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 8px;
}
.newsletter {
    display: flex;
    border: 1px solid #3c4852;
    border-radius: 8px;
    overflow: hidden;
}
.newsletter input {
    min-width: 0;
    flex: 1;
    background: var(--dark-3);
    color: #fff;
    border: 0;
    padding: 12px;
    font-size: 14px;
}
.newsletter input::placeholder { color: #8a98a3; }
.newsletter button {
    border: 0;
    background: var(--orange);
    color: #fff;
    width: 46px;
    cursor: pointer;
    font-size: 18px;
}
.newsletter button:hover { background: var(--orange-3); }
.footer__bottom {
    border-top: 1px solid #34404a;
    margin-top: 28px;
    padding-top: 14px;
    font-size: 13px;
    display: flex;
    justify-content: space-between;
    color: #9ca7ad;
}

/* ============================================================
   13) PRODUCT DETAIL PAGE (PDP)
   ============================================================ */
.breadcrumb {
    font-size: 13px;
    color: var(--muted);
    padding: 22px 0 0;
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--orange); }

.pdp {
    display: grid;
    grid-template-columns: 1.1fr .9fr 310px;
    gap: 28px;
}
.gallery-main {
    height: 460px;
    border-radius: var(--radius);
    background: linear-gradient(135deg, #f8fafb, #d5dde2);
    position: relative;
    overflow: hidden;
}
.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 20px;
}
.thumbs {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    margin-top: 16px;
}
.thumb {
    height: 78px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    overflow: hidden;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.active { border: 2px solid var(--orange); }
.stars { color: #ff9a17; font-weight: 900; }
.buybox { position: sticky; top: 14px; }

.tabs {
    display: flex;
    gap: 28px;
    border-bottom: 1px solid var(--line);
    margin: 28px 0 22px;
}
.tabs button {
    background: 0;
    border: 0;
    padding: 16px 0;
    font-weight: 800;
    cursor: pointer;
    color: var(--muted);
    font-size: 15px;
    transition: color .12s;
}
.tabs button.active {
    color: var(--text);
    border-bottom: 3px solid var(--orange);
}
.tabs button:hover { color: var(--text); }
.table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
}
.table td,
.table th {
    border-bottom: 1px solid var(--line);
    padding: 12px 14px;
    text-align: left;
}
.table th { background: var(--surface-2); font-weight: 700; }

/* ============================================================
   14) CONFIGURATOR WIZARD
   ============================================================ */
.configurator {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}
.progress {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    margin: 24px 0;
}
.progress div {
    position: relative;
    text-align: center;
    font-weight: 800;
    color: var(--muted);
    padding: 8px 0;
}
.progress span {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #aeb7bf;
    color: #fff;
    margin-right: 8px;
}
.progress .active { color: var(--text); }
.progress .active span { background: var(--orange); }
.progress .done span { background: var(--green); }

.option-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}
.option {
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 10px;
    padding: 15px;
    cursor: pointer;
    font-weight: 800;
    text-align: left;
    color: var(--text);
    transition: border-color .12s, box-shadow .12s, color .12s;
}
.option:hover { border-color: var(--orange); }
.option.active {
    border-color: var(--orange);
    box-shadow: 0 0 0 2px rgba(255, 107, 0, 0.12);
    color: var(--orange-3);
}
.form-row { margin: 16px 0; }
.form-row label {
    display: block;
    font-weight: 800;
    margin-bottom: 7px;
}
.input-line { display: flex; }
.input-line input,
.input-line select,
.form-row select,
.form-row input[type="text"],
.form-row input[type="number"] {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 13px;
    background: #fff;
    font-size: 15px;
}
.input-line input:focus,
.input-line select:focus,
.form-row select:focus,
.form-row input:focus {
    outline: 0;
    border-color: var(--dark);
}
.color-options,
.fill-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}
.switch {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--line);
    padding: 16px 0;
    gap: 16px;
}
.toggle {
    width: 52px;
    height: 28px;
    border-radius: 999px;
    background: #aeb7bf;
    position: relative;
    cursor: pointer;
    transition: background .15s;
    flex-shrink: 0;
}
.toggle.is-on { background: var(--orange); }
.toggle:after {
    content: "";
    position: absolute;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    left: 3px;
    top: 3px;
    background: #fff;
    transition: left .15s;
}
.toggle.is-on:after { left: 27px; }

.preview {
    height: 330px;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, #d8e1e3, #fff);
    position: relative;
    overflow: hidden;
}
.preview:after {
    content: "";
    position: absolute;
    left: 35px;
    right: 35px;
    top: 120px;
    height: 90px;
    background:
        repeating-linear-gradient(0deg, #1d252d 0 8px, transparent 8px 18px),
        linear-gradient(#1f2930, #111820);
}

/* ============================================================
   15) ARTICLE / PORADNA
   ============================================================ */
.article {
    display: grid;
    grid-template-columns: 1fr 310px;
    gap: 30px;
}
.article h1 {
    font-size: 42px;
    line-height: 1.1;
    margin-bottom: 12px;
    letter-spacing: -0.03em;
}
.article-hero {
    height: 300px;
    border-radius: var(--radius);
    background: linear-gradient(135deg, #c8d3d7, #eef2f3);
    position: relative;
    margin: 24px 0;
    overflow: hidden;
}
.article-hero img { width: 100%; height: 100%; object-fit: cover; }
.toc { position: sticky; top: 14px; }
.toc ol { padding-left: 18px; }
.toc li { margin: 6px 0; }
.callout {
    background: #fff3e8;
    border: 1px solid #ffd1ad;
    border-radius: 12px;
    padding: 18px;
}
.faq details,
.accordion {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
    margin-bottom: 8px;
    padding: 14px;
}
.faq summary { font-weight: 800; cursor: pointer; }
.faq details[open] summary { color: var(--orange); }

/* ============================================================
   16) CART
   ============================================================ */
.cart {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 24px;
}
.cart-item {
    display: grid;
    grid-template-columns: 150px 1fr 120px 110px 30px;
    gap: 18px;
    align-items: center;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 16px;
    margin-bottom: 12px;
}
.cart-item .media {
    height: 110px;
    border-radius: 10px;
}
.cart-item h3 { margin: 0 0 4px; font-size: 16px; }
.cart-item .remove-btn {
    background: transparent;
    border: 0;
    font-size: 22px;
    color: var(--muted);
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
}
.cart-item .remove-btn:hover { color: var(--red); background: var(--surface-2); }
.summary { position: sticky; top: 14px; }
.summary .between {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 10px 0;
}
.mini-products {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

/* ============================================================
   17) UTILITIES
   ============================================================ */
.mt    { margin-top: 24px; }
.mt-sm { margin-top: 12px; }
.mb    { margin-bottom: 24px; }
.flex {
    display: flex;
    gap: 12px;
    align-items: center;
}
.between {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: center;
}
.mobile-menu { display: none; }

/* ============================================================
   18) RESPONSIVE — multi-breakpoint progressive layout
   --------------------------------------------------------------
   xs:    < 480px  — small phone
   sm:    < 640px  — phone
   md:    < 980px  — tablet
   lg:    1280px+  — desktop default
   xl:    1440px+  — large desktop
   2xl:   1920px+  — wide desktop / 4K
   ============================================================ */

/* === Hamburger button (visible only on tablet/mobile) === */
.ha--menu {
    display: none;
    background: transparent;
    border: 0;
    cursor: pointer;
    font-family: inherit;
}

/* === Mobile drawer === */
.mobile-drawer {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: #fff;
    z-index: 200;
    overflow-y: auto;
    padding-bottom: 60px;
}
.mobile-drawer[hidden] { display: none; }
.mobile-drawer__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 22px;
    border-bottom: 1px solid var(--line);
    background: var(--dark);
    color: #fff;
    font-size: 15px;
    position: sticky;
    top: 0;
}
.mobile-drawer__close {
    background: transparent;
    border: 0;
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
}
.mobile-drawer__close:hover { background: rgba(255,255,255,0.1); }
.mobile-drawer__body { padding: 12px 16px; }
/* Mobile drawer mega menu — accordion style */
.mobile-drawer .nav__inner {
    flex-direction: column;
    height: auto;
    align-items: stretch;
    gap: 0;
}
.mobile-drawer .nav__inner > li {
    flex-direction: column;
    border-bottom: 1px solid var(--line-2);
}
.mobile-drawer .megamenu__trigger,
.mobile-drawer .nav__inner a {
    color: var(--text) !important;
    width: 100%;
    justify-content: space-between;
    padding: 14px 12px;
    font-size: 15px;
}
.mobile-drawer .megamenu__panel {
    position: static;
    box-shadow: none;
    border: 0;
    background: var(--surface-2);
}
.mobile-drawer .megamenu__panel-inner {
    grid-template-columns: 1fr;
    padding: 16px;
    gap: 16px;
    min-height: 0;
}
.mobile-drawer .megamenu__columns { gap: 16px; }
.mobile-drawer .megamenu__featured-stack { padding-left: 0; border-left: 0; }
body.has-drawer-open { overflow: hidden; }

/* === Tablet (< 980px) === */
@media (max-width: 979.98px) {
    .header__inner {
        grid-template-columns: auto 1fr auto;
        gap: 12px;
        height: auto;
        padding: 14px 0;
    }
    .logo small { display: none; }
    .header-actions { justify-content: flex-end; gap: 12px; }
    .search { grid-column: 1 / -1; order: 3; }
    .ha:not(.ha--menu):not([data-cart-link]) { display: none; }
    .ha--menu { display: inline-flex; flex-direction: column; align-items: center; }

    /* Desktop nav skryt — používá se mobile drawer */
    .nav { display: none; }

    .quick__grid,
    .benefits,
    .cards--6,
    .product-grid,
    .footer__grid,
    .pdp,
    .configurator,
    .article,
    .cart,
    .split,
    .hero__inner { grid-template-columns: 1fr; }

    .cards { grid-template-columns: 1fr 1fr; }
    .quick__grid { grid-template-columns: 1fr 1fr; }
    .benefits { grid-template-columns: 1fr 1fr; gap: 12px; }
    .product-grid { grid-template-columns: 1fr 1fr; }
    .footer__grid { grid-template-columns: 1fr 1fr; gap: 24px; }
    .cards--6 { grid-template-columns: 1fr 1fr 1fr; }

    .topbar__inner { overflow-x: auto; height: 32px; font-size: 12px; }
    .topbar span:not(:first-child) { display: none; }
    .topbar a { display: inline-flex; }       /* telefon zůstává */

    .cart-item { grid-template-columns: 80px 1fr; gap: 12px; }
    .cart-item > *:nth-child(n+3) { grid-column: 2; }
    .buybox, .summary, .toc { position: static; }
    .config-band { grid-template-columns: 1fr; gap: 18px; padding: 22px; }
    .steps { grid-template-columns: 1fr; }
    .steps .arrow { display: none; }
    .pdp .gallery-main { height: clamp(260px, 50vw, 420px); }
}

/* === Phone (< 640px) === */
@media (max-width: 639.98px) {
    .cards,
    .quick__grid,
    .benefits,
    .product-grid,
    .footer__grid,
    .mini-products,
    .cards--6 { grid-template-columns: 1fr; }

    .header-actions { gap: 8px; }
    .header-actions .ha { font-size: 11px; }
    .footer__bottom { display: block; text-align: center; }
    .footer__bottom span { display: block; margin: 4px 0; }

    .color-options, .fill-options, .option-grid { grid-template-columns: 1fr; }
    .cart-item { grid-template-columns: 1fr; gap: 10px; }
    .cart-item > *:nth-child(n) { grid-column: auto; }

    .tabs { overflow-x: auto; gap: 16px; }
    .tabs button { white-space: nowrap; padding: 12px 0; font-size: 14px; }

    .progress { grid-template-columns: 1fr 1fr; gap: 8px; font-size: 13px; }
    .progress span { width: 28px; height: 28px; }

    .breadcrumb { font-size: 12px; padding: 14px 0 0; }
    .container { padding: 0 14px; }
}

/* === Small phone (< 480px) === */
@media (max-width: 479.98px) {
    .logo { font-size: 22px; }
    .ha i { font-size: 18px; }
    .ha { font-size: 0; }                         /* ikona only, label hidden */
    .ha[data-cart-link]::after { content: ''; }
}

/* === Large desktop (>= 1280px) === */
@media (min-width: 1280px) {
    /* Cards mohou být širší */
    .product-grid { gap: 22px; }
    .cards { gap: 22px; }
    .megamenu__panel-inner { gap: 56px; padding: 32px clamp(16px, 2.5vw, 32px) 36px; }
}

/* === XL desktop (>= 1440px) === */
@media (min-width: 1440px) {
    :root {
        --radius:    20px;
        --radius-sm: 14px;
    }
    .hero { min-height: clamp(420px, 50vh, 600px); }
    .config-band { padding: 40px; gap: 40px; }
    .quick a { padding: 24px 18px; }
    .benefits { gap: 24px; }
    .benefits .icon-tile { width: 48px; height: 48px; font-size: 20px; }
}

/* === 2XL / 4K (>= 1920px) === */
@media (min-width: 1920px) {
    .shop-body { font-size: 16px; }
    .hero { min-height: 600px; }
    .hero h1 { font-size: 64px; }
    .container { padding: 0 40px; }
    /* Hero a footer mohou být ještě širší */
    .hero__inner,
    .footer__grid { max-width: 1760px; }
}

/* ============================================================
   Legacy overrides — neutralizace starého atelier headeru
   (zatím stále existuje masthead-v2 v některých kontextech)
   ============================================================ */
.masthead-v2,
.masthead { display: none !important; }
.shop-body .utility-bar { display: none; } /* utility bar je teď .topbar */
