:root {
    /* Vzhled sladěný s mateřským e-shopem simex2.cz (stejná firma a značka):
       bílé pozadí, verzálky, tenké šedé nadpisy, tlumená zeleň tlačítek,
       červené CTA, zlaté detaily, tmavá patička, hranaté rohy. */
    --simex: #2b3990;      /* královská modrá zákazníka – menu, tlačítka, ikony */
    --simex-2: #2b3990;    /* odkazy */
    --accent: #2b3990;     /* akční prvky = stejná modrá (dle simex2.cz) */
    --ink: #333333;        /* tmavý text */
    --muted: #8c8c8c;      /* sekundární text */
    --line: #e2e2e2;       /* tenké šedé okraje boxů */
    --panel: #ededed;      /* světle šedé panely (boční menu, pruhy) */
    --bg: #ffffff;         /* čistě bílé pozadí stránky */
    --surface: #ffffff;
    --radius: 0;
    --radius-sm: 0;
    --shadow: none;        /* originál je plochý – boxy jen s tenkou linkou */
    --shadow-lg: 0 6px 18px rgba(0, 0, 0, .08);
    --sale: #e30613;       /* červená zákazníka (šipky, VÝPRODEJ, akce) */
    /* Hranatý styl – přepíše zaoblení Bootstrapu */
    --bs-border-radius: 0; --bs-border-radius-sm: 0; --bs-border-radius-lg: 0;
    --bs-border-radius-xl: 0; --bs-border-radius-xxl: 0; --bs-border-radius-pill: 0;
}

body {
    background: var(--bg);
    color: var(--ink);
    font-family: "Inter", "Segoe UI", Roboto, Arial, sans-serif;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

a { color: var(--simex-2); }

/* Sjednocená primární akce – královská modrá zákazníka (simex2.cz) */
.btn { border-radius: var(--radius-sm); font-weight: 600; text-transform: uppercase; letter-spacing: .03em; font-size: .85rem; }
.btn-primary {
    --bs-btn-bg: var(--accent); --bs-btn-border-color: var(--accent);
    --bs-btn-hover-bg: #22307a; --bs-btn-hover-border-color: #22307a;
    --bs-btn-active-bg: #1c286a; --bs-btn-active-border-color: #1c286a;
}
.btn-outline-primary {
    --bs-btn-color: var(--accent); --bs-btn-border-color: var(--accent);
    --bs-btn-hover-bg: var(--accent); --bs-btn-hover-border-color: var(--accent);
}
.card { border-color: var(--line); }
.shadow-sm { box-shadow: var(--shadow) !important; }

/* ---------- Top bar + header ---------- */
.topbar { background: #fff; color: var(--muted); font-size: .8rem; border-bottom: 1px solid var(--line); }
.topbar a { color: var(--ink); text-decoration: none; }
.topbar .topbar-usp .bi { color: var(--accent); }
.topbar-map { color: inherit; text-decoration: none; }
.topbar-map:hover { color: var(--accent); text-decoration: underline; }
.topbar-phone { font-weight: 700; color: var(--simex); }
.topbar-phone:hover { text-decoration: underline; }
.topbar-account { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; }
.topbar-account .bi { color: var(--accent); }
.topbar-account a { color: var(--ink); }
.topbar-account a:hover { color: var(--accent); }
.topbar-account .sep { color: var(--line); }
.topbar-logout { background: none; border: 0; padding: 0; color: var(--muted); font-weight: 600; cursor: pointer; font-size: .8rem; }
.topbar-logout:hover { color: var(--accent); }
.navbar-brand { font-weight: 800; letter-spacing: .5px; color: var(--simex) !important; }
.navbar-brand .text-info { color: var(--accent) !important; }

/* Sticky header + category nav */
.site-sticky { position: sticky; top: 0; z-index: 1030; box-shadow: var(--shadow); }
.shop-header { border-bottom: 1px solid var(--line); }

/* Phone block in header */
.header-phone { align-items: center; gap: .5rem; color: var(--simex); }
.header-phone i { font-size: 1.5rem; color: var(--accent); }
.header-phone span { display: flex; flex-direction: column; line-height: 1.1; }
.header-phone-num { font-weight: 800; font-size: 1.02rem; }
.header-phone-sub { font-size: .72rem; color: var(--muted); }

/* Cart button */
.btn-cart { background: var(--accent); color: #fff; border: 0; padding: .45rem .8rem; border-radius: .5rem; }
.btn-cart:hover { background: #22307a; color: #fff; }
.cart-btn-inner { display: flex; align-items: center; gap: .5rem; position: relative; }
.cart-btn-inner > .bi { font-size: 1.4rem; }
.cart-btn-text { display: flex; flex-direction: column; line-height: 1.1; text-align: left; }
.cart-btn-label { font-weight: 700; font-size: .95rem; }
.cart-btn-sum { font-size: .72rem; opacity: .9; }
.cart-btn-badge {
    position: absolute; top: -10px; left: 12px; background: var(--sale); color: #fff;
    font-size: .68rem; font-weight: 800; min-width: 18px; height: 18px; border-radius: 9px;
    display: flex; align-items: center; justify-content: center; padding: 0 4px;
}

/* ---------- Top category nav ---------- */
.cat-nav { background: #fff; border-bottom: 1px solid var(--line); }
.cat-nav .nav-link { color: var(--ink); font-weight: 600; font-size: .9rem; padding: .7rem .35rem; position: relative; transition: color .15s ease; }
/* Animované podtržení akcentem při najetí / na aktivní stránce. */
.cat-nav .nav-link::after { content: ""; position: absolute; left: .35rem; right: .35rem; bottom: .32rem; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: center; transition: transform .2s ease; }
.cat-nav .nav-link:hover { color: var(--accent); }
.cat-nav .nav-link:hover::after, .cat-nav .nav-link.active::after { transform: scaleX(1); }
.cat-nav .nav-link.active { color: var(--accent); }
/* Informační odkazy v horní liště (Obchodní podmínky / Napište nám / Kontakt) – decentní. */
.cat-nav .nav-info { color: var(--muted); font-weight: 600; }
.cat-nav .nav-info:hover { color: var(--accent); }
/* Desktop: menu se automaticky vejde na JEDEN řádek – font, mezery i odsazení se plynule
   zmenší podle šířky okna (clamp). Když by přesto bylo úzko, řádek se vodorovně odroluje
   (bez viditelného posuvníku) místo zalomení do dvou řádků. */
@media (min-width: 992px) {
    /* Kontejner lišty je o něco širší než obsah, ať mají položky víc místa. */
    .cat-nav > .container { max-width: min(1480px, 96vw); }
    .cat-nav .nav {
        justify-content: flex-start; flex-wrap: nowrap;
        column-gap: clamp(.3rem, .75vw, 1.3rem);
        padding-left: clamp(.2rem, .6vw, 1rem);
        overflow-x: auto; scrollbar-width: none;
    }
    .cat-nav .nav::-webkit-scrollbar { display: none; }
    .cat-nav .nav-item { flex: 0 0 auto; }
    .cat-nav .nav-link {
        font-size: clamp(.66rem, .82vw, .9rem);
        padding-left: clamp(.1rem, .3vw, .3rem);
        padding-right: clamp(.1rem, .3vw, .3rem);
        white-space: nowrap;
    }
    /* Podtržení akcentem přizpůsobit menšímu vnitřnímu odsazení. */
    .cat-nav .nav-link::after { left: .12rem; right: .12rem; }
}

/* ---------- Mobilní hlavička (kompaktní ikony, sbalitelné panely) ---------- */
.hdr-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 42px; height: 42px; flex: 0 0 auto;
    background: none; border: 0; border-radius: var(--radius-sm);
    color: var(--simex); font-size: 1.45rem; line-height: 1; text-decoration: none;
    position: relative; transition: background-color .15s, color .15s;
}
.hdr-icon:hover, .hdr-icon:focus-visible { background: #eef1f8; color: var(--accent); }
/* Zřetelné tlačítko menu (☰ + popisek), ať uživatel hned pozná navigaci. */
.hdr-menu { width: auto; gap: .35rem; padding: 0 .7rem; border: 1px solid var(--line); background: var(--bg); font-size: 1.35rem; }
.hdr-menu .hdr-menu-label { font-size: .82rem; font-weight: 700; letter-spacing: .01em; }
.hdr-menu[aria-expanded="true"] { background: var(--simex); color: #fff; border-color: var(--simex); }
.mbl-search { max-height: 0; overflow: hidden; transition: max-height .25s ease; }
.mbl-search.open { max-height: 90px; padding: .55rem 0 .15rem; }

/* Našeptávač vyhledávání (panel návrhů pod polem). */
.ac-panel { position: absolute; top: 100%; left: 0; right: 0; z-index: 1080; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-lg); max-height: 70vh; overflow-y: auto; display: none; }
.ac-panel.open { display: block; }
.ac-item { display: flex; align-items: center; gap: .6rem; padding: .5rem .7rem; text-decoration: none; color: var(--ink); border-bottom: 1px solid var(--line); }
.ac-item:last-child { border-bottom: 0; }
.ac-item:hover, .ac-item:focus { background: #f2f4f9; }
.ac-item img { width: 42px; height: 42px; object-fit: contain; flex: 0 0 auto; background: #fff; }
.ac-name { flex: 1 1 auto; font-size: .9rem; line-height: 1.2; }
.ac-price { flex: 0 0 auto; font-weight: 700; color: var(--simex); font-size: .9rem; white-space: nowrap; }

@media (max-width: 991.98px) {
    .navbar-brand img { height: 34px; }
    /* Košík = jen ikona + počet (text skrytý). */
    .btn-cart { padding: .35rem .55rem; }
    .btn-cart .cart-btn-text { display: none; }
    .cart-btn-inner > .bi { font-size: 1.5rem; }
    .cart-btn-badge { top: -8px; left: auto; right: -6px; }
    /* Kategorie jako sbalitelný panel pod hamburgerem. */
    .cat-nav { display: none; }
    .cat-nav.open { display: block; }
    .cat-nav .nav { flex-direction: column; flex-wrap: nowrap; }
    .cat-nav .nav-item { width: 100%; }
    .cat-nav .nav-link { padding: .7rem .25rem; border-bottom: 1px solid var(--line); font-size: 1rem; }
    .cat-nav .nav-item:last-child .nav-link { border-bottom: 0; }
    /* Strom kategorií v boku je na mobilu duplicitní (nahrazuje ho ☰) → skrýt, TOP 10 zůstává. */
    .shop-layout aside .cat-sidebar { display: none; }
    /* Na mobilu hlavní obsah (hero banner, akce) nahoře; boční panel (TOP 10) až pod něj. */
    .shop-layout > aside { order: 2; margin-top: 1.25rem; }
    .shop-layout > :not(aside) { order: 1; }
}

/* ---------- Shop layout (sidebar + content) ---------- */
.shop-layout { display: grid; grid-template-columns: 260px 1fr; gap: 1.5rem; }
@media (max-width: 991.98px) { .shop-layout { grid-template-columns: 1fr; } }

/* ---------- Category tree sidebar ---------- */
.cat-sidebar { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.cat-sidebar-title { background: #fff; color: var(--simex); font-weight: 800; padding: .75rem 1rem; font-size: .95rem; border-bottom: 2px solid var(--accent); letter-spacing: .01em; }
.cat-tree, .cat-tree ul { list-style: none; margin: 0; padding: 0; }
.cat-tree li > a {
    display: flex; justify-content: space-between; align-items: center;
    padding: .55rem 1rem; color: var(--ink); text-decoration: none;
    border-bottom: 1px solid var(--line); font-size: .92rem; font-weight: 600;
}
.cat-tree li > a:hover { background: #eef1f8; color: var(--accent); }
.cat-tree li.active > a { color: var(--accent); border-left: 3px solid var(--accent); padding-left: calc(1rem - 3px); }
.cat-tree ul li > a { padding-left: 1.75rem; font-weight: 500; font-size: .88rem; color: var(--muted); }
.cat-tree ul ul li > a { padding-left: 2.5rem; }
/* Podstrom je sbalený; rozbalí se u aktivní větve nebo po kliknutí na šipku. */
.cat-tree li > ul { display: none; }
.cat-tree li.open > ul { display: block; }
.cat-tree .caret { color: var(--accent); font-weight: 700; cursor: pointer; display: inline-block; padding: 0 .35rem; transition: transform .2s; }
.cat-tree li.open > a .caret { transform: rotate(90deg); }

/* ---------- Filters ---------- */
.filter-card { background: #fff; border: 1px solid var(--line); border-radius: .6rem; padding: 1rem 1.1rem; margin-bottom: 1rem; }
.filter-card h2 { font-size: .8rem; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); margin-bottom: .75rem; }
.price-bounds { display: flex; justify-content: space-between; font-weight: 700; color: var(--simex); }

/* ---------- Sort tabs ---------- */
.sort-tabs { display: flex; gap: .25rem; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.sort-tabs a {
    padding: .55rem .9rem; text-decoration: none; color: var(--muted); font-weight: 600; font-size: .9rem;
    border-bottom: 3px solid transparent; margin-bottom: -1px;
}
.sort-tabs a:hover { color: var(--simex); }
.sort-tabs a.active { color: var(--simex); border-bottom-color: var(--accent); }

/* ---------- Product cards ---------- */
.product-card {
    background: #fff; border: 1px solid var(--line); border-radius: .7rem; overflow: hidden;
    height: 100%; display: flex; flex-direction: column; transition: box-shadow .15s, transform .15s; position: relative;
}
.product-card:hover { box-shadow: var(--shadow-lg); overflow: visible; z-index: 20; }
.product-card .thumb {
    position: relative;
    display: flex; align-items: center; justify-content: center; height: 180px; background: #fff; padding: .75rem;
}
.product-card .thumb img { max-height: 100%; max-width: 100%; object-fit: contain; }
/* Oko (náhled) přes obrázek na hover */
.pc-eye {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) scale(.8);
    width: 46px; height: 46px; border-radius: 50%; background: rgba(43, 57, 144, .92); color: #fff;
    display: flex; align-items: center; justify-content: center; font-size: 1.3rem;
    opacity: 0; transition: opacity .15s, transform .15s; pointer-events: none;
}
.product-card:hover .pc-eye { opacity: 1; transform: translate(-50%, -50%) scale(1); }
/* Quick-view: celý popis se rozbalí pod kartou na hover */
.pc-hover {
    position: absolute; top: 100%; left: -1px; right: -1px; z-index: 21;
    background: #fff; border: 1px solid var(--line); border-top: 0;
    border-radius: 0 0 .7rem .7rem; padding: .75rem .9rem;
    box-shadow: var(--shadow-lg);
    opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .15s, transform .15s;
}
.product-card:hover .pc-hover { opacity: 1; visibility: visible; transform: translateY(0); }
.pc-hover-desc { font-size: .82rem; color: var(--ink); line-height: 1.35; white-space: pre-line; }
.pc-hover-link { display: inline-flex; align-items: center; gap: .3rem; margin-top: .5rem; font-weight: 600; font-size: .82rem; text-decoration: none; color: var(--accent); }
@media (hover: none) { .pc-hover, .pc-eye { display: none; } }
.product-card .body { padding: .85rem 1rem 1rem; display: flex; flex-direction: column; flex: 1; }
.product-card .pname {
    color: var(--ink); font-weight: 600; text-decoration: none; font-size: .95rem; line-height: 1.25;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.4em;
}
.product-card .pname:hover { color: var(--accent); }
.product-card .body .btn { margin-top: auto; }
.price-net { font-size: 1.2rem; font-weight: 800; color: var(--simex); }
.price-gross { color: var(--muted); font-size: .82rem; }
.price-old { color: #9aa0a6; text-decoration: line-through; font-size: .85rem; }
/* Slevový štítek je uvnitř přeškrtnuté ceny; inline-block zabrání, aby přes něj vedla čára line-through. */
.price-save { color: #e53935; font-weight: 800; text-decoration: none; display: inline-block; margin-left: .25rem; }
.badge-stock { background: var(--accent); color: #fff; font-weight: 600; }
.card-badges { position: absolute; top: .6rem; left: .6rem; z-index: 2; display: flex; flex-direction: column; gap: .3rem; align-items: flex-start; }
.badge-akce, .badge-novinka {
    color: #fff; font-weight: 800; font-size: .72rem;
    padding: .2rem .5rem; border-radius: .3rem; letter-spacing: .03em;
}
.badge-akce { background: #e53935; }
.badge-novinka { background: #2e9e5b; }

/* ---------- Nejprodávanější (svislý seznam s popisy, nahoře v kategorii) ---------- */
.bestseller-list { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: .7rem 1rem; box-shadow: var(--shadow); }
.bestseller-list .bs-title { font-weight: 800; color: var(--simex); font-size: 1rem; margin-bottom: .5rem; display: flex; align-items: center; gap: .35rem; }
.bestseller-list .bs-title .bi { color: #e8821a; }
.bs-rows { list-style: none; margin: 0; padding: 0; }
.bs-row { display: grid; grid-template-columns: 26px 56px 1fr auto; align-items: center; gap: .7rem; padding: .55rem 0; border-bottom: 1px solid var(--line); }
.bs-row:last-child { border-bottom: 0; }
.bs-rank {
    width: 24px; height: 24px; border-radius: 50%; background: var(--simex); color: #fff;
    font-weight: 800; font-size: .78rem; display: flex; align-items: center; justify-content: center;
}
.bs-row:nth-child(1) .bs-rank { background: linear-gradient(145deg, #ffd86b, #e0a500); color: #5a4500; }
.bs-row:nth-child(2) .bs-rank { background: linear-gradient(145deg, #d7dee6, #9aa7b4); color: #3a434d; }
.bs-row:nth-child(3) .bs-rank { background: linear-gradient(145deg, #e3a878, #c0773a); color: #4a2c12; }
.bs-thumb { display: block; }
.bs-thumb img { width: 56px; height: 56px; object-fit: contain; border: 1px solid var(--line); border-radius: .35rem; background: #fff; }
.bs-main { min-width: 0; }
.bs-name { display: block; font-weight: 700; font-size: .86rem; line-height: 1.2; color: var(--ink); text-decoration: none; }
.bs-name:hover { color: var(--accent); }
.bs-desc { font-size: .78rem; color: var(--muted); line-height: 1.25; margin-top: .15rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bs-prices { text-align: right; white-space: nowrap; }
.bs-price-main { font-size: 1rem; font-weight: 800; color: var(--simex); }
.bs-price-sub { font-size: .72rem; color: var(--muted); }
.bs-hidden { display: none; }
.bestseller-list.bs-expanded .bs-hidden { display: grid; }
.bs-more { display: block; width: 100%; text-align: center; margin-top: .5rem; padding: .45rem; font-weight: 600; font-size: .85rem; text-decoration: none; color: var(--simex-2); background: none; border: 0; border-top: 1px dashed var(--line); cursor: pointer; }
.bs-more:hover { color: var(--accent); }
@media (max-width: 575px) { .bs-row { grid-template-columns: 22px 44px 1fr; } .bs-prices { grid-column: 2 / -1; text-align: left; } }

/* ---------- Price bar (vodorovný filtr ceny pod nejprodávanějšími) ---------- */
.price-bar {
    display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: .55rem 1rem; box-shadow: var(--shadow);
}
.price-bar-label { font-weight: 700; color: var(--simex); font-size: .9rem; white-space: nowrap; }
.price-bar-label .bi { color: var(--accent); }
.price-bar-vals { font-weight: 700; color: var(--ink); font-size: .9rem; white-space: nowrap; }
.price-bar-count { font-size: .8rem; color: var(--muted); margin-left: auto; white-space: nowrap; }
.price-slider { position: relative; flex: 1 1 240px; height: 34px; min-width: 200px; }
.ps-track { position: absolute; top: 50%; transform: translateY(-50%); left: 0; right: 0; height: 5px; background: #e6e9ef; border-radius: 3px; }
.ps-fill { position: absolute; height: 100%; background: var(--accent); border-radius: 3px; }
.price-slider input[type=range] {
    position: absolute; top: 0; left: 0; width: 100%; height: 34px; margin: 0;
    background: none; pointer-events: none; -webkit-appearance: none; appearance: none;
}
.price-slider input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none; appearance: none; pointer-events: auto;
    width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 2px solid var(--accent);
    cursor: pointer; box-shadow: 0 1px 3px rgba(0,0,0,.25);
}
.price-slider input[type=range]::-moz-range-thumb {
    pointer-events: auto; width: 18px; height: 18px; border-radius: 50%; background: #fff;
    border: 2px solid var(--accent); cursor: pointer; box-shadow: 0 1px 3px rgba(0,0,0,.25);
}
.price-slider input[type=range]::-webkit-slider-runnable-track { background: none; }
.price-slider input[type=range]::-moz-range-track { background: none; }

/* ---------- Hero ---------- */
.hero {
    position: relative; border-radius: .9rem; overflow: hidden; color: #fff;
    background: var(--simex) center/cover no-repeat; display: flex; align-items: center;
    box-shadow: var(--shadow-lg);
    /* Výška se škáluje s oknem; jakýkoliv (i velký) obrázek se přizpůsobí přes cover. */
    min-height: clamp(320px, 38vw, 560px);
}
.hero .hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; background-repeat: no-repeat; opacity: 0; z-index: 0; transition: opacity 1.1s ease; }
.hero .hero-bg.active { opacity: 1; }
/* Tmavý gradient přes fotku kvůli čitelnosti textu (zleva silný, vpravo prosvítá foto). */
.hero::before {
    content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background: linear-gradient(95deg, rgba(13,26,51,.95) 0%, rgba(15,30,60,.82) 38%, rgba(15,30,60,.45) 70%, rgba(15,30,60,.15) 100%);
}
/* Klikací vrstva celého banneru (proklik na URL z nastavení). */
.hero-link { position: absolute; inset: 0; z-index: 2; }
/* Text/nadpis kliky propouští na banner, jen tlačítka jsou klikací zvlášť. */
.hero .hero-inner { position: relative; z-index: 3; padding: 3rem 3rem; pointer-events: none; }
.hero .hero-inner a, .hero .hero-inner button { pointer-events: auto; }
.hero h1 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); line-height: 1.12; text-shadow: 0 2px 8px rgba(0,0,0,.25); }
.hero .lead { color: #dde6f5; max-width: 640px; }
@media (max-width: 575px) { .hero { min-height: 300px; } .hero .hero-inner { padding: 1.75rem 1.4rem; } }

/* Hero jako banner vedle stromu kategorií. Výšku panelu určuje OBSAH (nadpis + text +
   tlačítka + malý spodní okraj) → panel končí hned pod tlačítky. Fotka vyplní pozadí
   přes cover (pruh) a plynule se mění se šířkou okna. min-height = jen pojistka. */
.hero-banner { min-height: 0; }
.hero-banner .hero-bg { background-size: cover; background-position: center; }

.hero-banner .hero-inner { padding: 1.6rem 2.25rem; }
@media (max-width: 575px) { .hero-banner .hero-inner { padding: 1.4rem 1.25rem; } }
.hero-banner h1 { font-size: clamp(1.3rem, 2.1vw, 1.85rem); margin-bottom: .4rem; }
.hero-banner .lead { font-size: .98rem; margin-bottom: .85rem !important; }
/* Blok „Oblíbené kategorie": JEDEN orámovaný panel, položky oddělené tenkou svislou linkou (dle simex2.cz). */
/* Oblíbené kategorie: jeden vodorovný pruh dlaždic (flex). Dlaždice se rovnoměrně dělí o šířku
   a při zúžení okna se plynule ZMENŠÍ (žádné prázdné buňky); na malém displeji se skládají pod sebe. */
.fav-cats { display: flex; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.cat-tile {
    flex: 1 1 0; min-width: 0; display: flex; align-items: center; gap: .9rem;
    padding: .7rem 1rem; min-height: 90px; text-decoration: none;
    border-left: 1px solid var(--line); transition: background .15s;
}
.cat-tile:first-child { border-left: 0; }
.cat-tile:hover { background: #f6f7fc; }
/* Obrázek se vždy ořízne na stejný rozměr (cover), takže položky mají jednotný vzhled. */
.cat-tile-img { flex: 0 0 auto; width: 80px; height: 68px; object-fit: cover; border-radius: 5px; background: #fff; }
.cat-tile-icon {
    flex: 0 0 auto; width: 68px; height: 68px; border-radius: 5px;
    background: #eef1fb; color: var(--simex); display: flex; align-items: center; justify-content: center; font-size: 1.6rem;
}
.cat-tile-name { color: var(--simex); font-weight: 700; font-size: .98rem; line-height: 1.22; }
.cat-tile:hover .cat-tile-name { text-decoration: underline; }
.cat-tile:hover .cat-tile-icon { background: var(--simex); color: #fff; }
/* Na malém displeji (mobil) skládáme dlaždice pod sebe s vodorovnými oddělovači. */
@media (max-width: 575px) {
    .fav-cats { flex-direction: column; }
    .cat-tile { border-left: 0; border-top: 1px solid var(--line); }
    .cat-tile:first-child { border-top: 0; }
}

/* ---------- Footer ---------- */
footer { background: var(--simex); color: #cdd7ec; border-top: 1px solid rgba(255,255,255,.12); }
footer a { color: #fff; text-decoration: none; }
footer a:hover { text-decoration: underline; color: #fff; }
footer hr { border-color: rgba(255,255,255,.18); }
footer .text-muted { color: #9fb0d0 !important; }
.footer-h { text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; color: #9fb0d0; font-weight: 700; margin-bottom: .6rem; }
.footer-links li { margin-bottom: .35rem; }
.footer-links a, footer .small a { display: inline-flex; align-items: center; gap: .45rem; }
.footer-links a:hover { color: #ffffff !important; text-decoration: underline; }
.footer-hours li { padding: .15rem 0; border-bottom: 1px dashed rgba(255,255,255,.12); }
.footer-hours li:last-child { border-bottom: 0; }
.footer-hours .text-muted { color: #8294b5 !important; }

/* ---------- USP / trust strip ---------- */
.usp-strip { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.usp-item { display: flex; align-items: center; gap: .55rem; padding: .55rem .8rem; }
.usp-item .bi { font-size: 1.3rem; color: var(--accent); flex: 0 0 auto; }
.usp-item strong { display: block; font-size: .82rem; color: var(--ink); line-height: 1.1; }
.usp-item span { font-size: .7rem; color: var(--muted); }
.usp-link { text-decoration: none; color: inherit; transition: background-color .15s ease, color .15s ease; }
.usp-link:hover { background: #f2f4f9; }
.usp-link:hover strong { color: var(--accent); }
.usp-link .bi { transition: transform .15s ease; }
.usp-link:hover .bi { transform: scale(1.08); }

/* ---------- Section headings ---------- */
.sec-head { display: flex; align-items: center; justify-content: space-between; margin: 1.3rem 0 .7rem; }
.sec-head h2 { font-size: 1.2rem; font-weight: 800; color: var(--simex); margin: 0; display: flex; align-items: center; gap: .5rem; }
.sec-head h2 .bi { color: var(--accent); }
.sec-head .sec-more { font-weight: 600; font-size: .9rem; text-decoration: none; }

/* ---------- Accessibility: visible focus ---------- */
a:focus-visible, .btn:focus-visible, .form-control:focus-visible, .form-select:focus-visible, button:focus-visible {
    outline: 3px solid rgba(43, 57, 144, .5); outline-offset: 1px;
}

/* ---------- Checkout ---------- */
.checkout-steps { display: flex; flex-wrap: wrap; gap: .5rem; }
.checkout-steps .step {
    display: inline-flex; align-items: center; gap: .4rem; font-size: .85rem; font-weight: 600;
    color: var(--muted); background: #fff; border: 1px solid var(--line); border-radius: 2rem; padding: .35rem .9rem;
}
.checkout-steps .step.active { color: #fff; background: var(--simex); border-color: var(--simex); }
.checkout-steps .step.done { color: var(--accent); border-color: var(--accent); }
@media (min-width: 992px) { .checkout-summary { position: sticky; top: 1rem; } }

/* ---------- Quantity stepper ---------- */
.qty-stepper { display: inline-flex; align-items: stretch; border: 1px solid var(--line); border-radius: .5rem; overflow: hidden; }
.qty-stepper button { border: 0; background: #f1f4f8; width: 38px; font-size: 1.1rem; color: var(--simex); }
.qty-stepper button:hover { background: var(--accent); color: #fff; }
.qty-stepper input { border: 0; width: 56px; text-align: center; }
.qty-stepper input:focus { outline: none; }

/* ---------- Trust list (product detail) ---------- */
.trust-list { list-style: none; padding: 0; margin: 0; }
.trust-list li { display: flex; align-items: center; gap: .5rem; padding: .25rem 0; font-size: .9rem; color: var(--ink); }
.trust-list .bi { color: var(--accent); font-size: 1.05rem; }

/* ---------- Product gallery ---------- */
.gallery-main { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; display: flex; align-items: center; justify-content: center; padding: 1rem; min-height: 320px; }
.gallery-main img { max-height: 380px; max-width: 100%; object-fit: contain; }
.gallery-thumbs { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .6rem; }
.gallery-thumb { width: 64px; height: 64px; border: 2px solid var(--line); border-radius: .4rem; background: #fff; padding: 4px; cursor: pointer; }
.gallery-thumb.active, .gallery-thumb:hover { border-color: var(--accent); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: contain; }

/* ---------- Pickup banner (clickable map) ---------- */
.pickup-banner {
    display: flex; align-items: center; gap: 1rem; text-decoration: none !important; color: #cdd7ec;
}
.pickup-banner:hover { color: #fff; }
.pickup-pin { flex: 0 0 auto; }
.pickup-text { display: flex; flex-direction: column; }
.pickup-text strong { letter-spacing: .04em; font-size: 1.05rem; line-height: 1.18; color: #fff; }
.pickup-text > span { color: #cdd7ec; font-size: .9rem; }
.pickup-btn {
    align-self: flex-start; background: #d0021b; color: #fff !important; padding: .3rem .85rem;
    border-radius: .25rem; font-size: .78rem; font-weight: 800; letter-spacing: .03em; margin-top: .5rem;
}
.pickup-banner:hover .pickup-btn { filter: brightness(1.08); }

/* ---------- TOP 10 ---------- */
.top10 { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-top: 1rem; box-shadow: var(--shadow); }
.top10-title {
    background: #fff; color: var(--simex); font-weight: 800; padding: .7rem 1rem; letter-spacing: .01em;
    display: flex; align-items: center; gap: .4rem; font-size: 1rem; border-bottom: 2px solid var(--accent);
}
.top10-title .top10-sub { font-size: .68rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin-left: auto; }
.top10-title .top10-flame { font-size: 1.1rem; color: #e8821a; }
.top10-list { list-style: none; counter-reset: top; margin: 0; padding: 0; }
.top10-list li { counter-increment: top; border-bottom: 1px solid var(--line); }
.top10-list li:last-child { border-bottom: 0; }
.top10-item { display: flex; align-items: center; gap: .6rem; padding: .55rem .8rem; text-decoration: none; color: var(--ink); transition: background .12s; }
.top10-item:hover { background: #eef1f8; }
.top10-item::before {
    content: counter(top); flex: 0 0 auto; width: 24px; height: 24px;
    background: var(--simex); color: #fff; border-radius: 50%; box-shadow: 0 1px 2px rgba(0,0,0,.2);
    font-size: .75rem; font-weight: 800; display: flex; align-items: center; justify-content: center;
}
/* Medaile pro TOP 3 */
.top10-list li:nth-child(1) .top10-item::before { background: linear-gradient(145deg, #ffd86b, #e0a500); color: #5a4500; }
.top10-list li:nth-child(2) .top10-item::before { background: linear-gradient(145deg, #d7dee6, #9aa7b4); color: #3a434d; }
.top10-list li:nth-child(3) .top10-item::before { background: linear-gradient(145deg, #e3a878, #c0773a); color: #4a2c12; }
.top10-item img { width: 44px; height: 44px; object-fit: contain; flex: 0 0 auto; border: 1px solid var(--line); border-radius: .35rem; background: #fff; }
.top10-info { display: flex; flex-direction: column; min-width: 0; }
.top10-name {
    font-size: .83rem; font-weight: 600; line-height: 1.18; color: var(--ink);
    overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.top10-price { font-size: .82rem; color: var(--simex); font-weight: 800; }

/* ---------- Cookie panel (small, centered) ---------- */
.cookie-panel {
    position: fixed; left: 50%; bottom: 1.25rem; transform: translateX(-50%);
    z-index: 1050; width: 380px; max-width: calc(100% - 2rem);
    background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: .7rem;
    padding: 1rem 1.1rem; box-shadow: 0 .7rem 1.8rem rgba(0,0,0,.22);
}
.cookie-panel a { color: var(--simex-2); }

/* ---------- Announcement modal ---------- */
.notice-modal { border: 0; border-radius: .7rem; box-shadow: 0 1rem 3rem rgba(0,0,0,.3); }
.notice-title { color: #c0392b; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; font-size: 1.4rem; }
.notice-underline { width: 60px; height: 3px; background: var(--accent); margin: .6rem auto 1.2rem; border-radius: 2px; }
.notice-text { color: #444; }
.notice-btn { background: #d0021b; color: #fff; font-weight: 600; padding: .55rem 1.6rem; }
.notice-btn:hover { filter: brightness(1.08); color: #fff; }

/* ---------- Misc ---------- */
.section-title { color: var(--simex); font-weight: 700; }

/* ---------- Hranatý styl (bez zaoblených rohů) – kruhové ikonky/odznaky zůstávají ---------- */
.filter-card, .product-card, .pc-hover, .hero, .cookie-panel, .notice-modal,
.gallery-main, .gallery-thumb, .qty-stepper, .btn-cart, .cat-sidebar, .cat-tile,
.bestseller-list, .price-bar, .top10, .usp-strip,
.bs-thumb img, .top10-item img, .checkout-steps .step,
.badge-akce, .badge-novinka, .pickup-btn, .ps-track, .ps-fill {
    border-radius: 0;
}

/* ==========================================================================
   Barvy a vzhled dle mateřského e-shopu simex2.cz (stejná firma a značka)
   – královská modrá lišta menu s bílým textem, červené šipky/akcenty,
     světle šedé boční panely, ploché bílé boxy, tmavá patička.
   ========================================================================== */

/* Hlavní navigace: modrý pruh přes celou lištu, bílé položky. */
.cat-nav { background: var(--simex); border-bottom: 0; }
.cat-nav .nav-link { color: #fff; font-weight: 600; }
.cat-nav .nav-link:hover { color: #fff; }
.cat-nav .nav-link.active { color: #fff; }
.cat-nav .nav-link::after { background: #fff; }
.cat-nav .nav-link .bi-house-door-fill { color: #fff; }
.cat-nav .nav-info { color: #c9d1f2; }
.cat-nav .nav-info:hover { color: #fff; }
@media (max-width: 991.98px) {
    .cat-nav .nav-link { border-bottom-color: rgba(255, 255, 255, .18); }
}

/* Strom kategorií dle reference simex2.cz: šedé řádky, šedá šipka vlevo, čistý text bez pravého caretu. */
.cat-sidebar { border: 0; background: transparent; }
.cat-sidebar-title { background: transparent; color: var(--ink); border-bottom-color: var(--simex); }
/* Hlavní kategorie: světle šedý řádek, tmavý text, šedá šipka „›" vlevo, tenký bílý oddělovač. */
.cat-tree li > a {
    justify-content: flex-start; gap: .5rem;
    background: var(--panel); border-bottom: 1px solid #fff;
    color: #333; font-weight: 600;
}
.cat-tree li > a::before { content: "\203A"; color: #9b9b9b; font-weight: 700; flex: 0 0 auto; }
.cat-tree li > a:hover { background: #e4e4e4; color: #111; }
.cat-tree li.active > a { color: var(--simex); border-left: 3px solid var(--simex); }
/* Podkategorie: bílé pozadí, odsazené, lehčí a menší text, světlejší šipka. */
.cat-tree ul li > a { background: #fff; color: #4a4a4a; font-weight: 400; border-bottom: 1px solid #f1f1f1; }
.cat-tree ul li > a::before { color: #bdbdbd; }
.cat-tree ul li > a:hover { background: #f6f6f6; color: var(--simex); }
/* Položky s podkategoriemi: šipka vlevo je klikací (caret) – otáčí se a větev sbalí/rozbalí.
   Dekorativní ::before šipku u nich skryjeme, ať nejsou dvě; text dál navádí na kategorii. */
.cat-tree li.has-kids > a::before { content: none; }
.cat-tree .caret {
    order: -1; flex: 0 0 auto; display: inline-block;
    color: #9b9b9b; font-weight: 700; cursor: pointer; padding: 0; margin: 0;
    transition: transform .18s;
}
.cat-tree ul li .caret { color: #bdbdbd; }
.cat-tree li.open > a .caret { transform: rotate(90deg); }

/* Ceny: modré jako akcenty originálu (červená jen u slev). */
.price-net, .bs-price-main, .ac-price, .price-bounds, .price-bar-label { color: var(--simex); }

/* Patička: tmavě modrá jako originál simex2.cz; dole antracitová lišta s copyrightem. */
footer { background: #1c2570; color: #d3d9ef; border-top: 0; }
footer .text-muted { color: #9fb0d0 !important; }
.footer-h { color: #b7c1de; }
footer hr { border-color: rgba(255,255,255,.14); }
.footer-bottom { background: #2d2d2d; color: #b7bcc7; padding: .7rem 0; margin-top: 1.5rem; }
.footer-bottom a { color: #cdd2dc; text-decoration: underline; }
.footer-bottom a:hover { color: #fff; }

/* Drobečková navigace ve světle šedém pruhu pod horní lištou (dle reference simex2.cz). */
.bc-bar { background: #ededed; border-bottom: 1px solid #e0e0e0; }
.bc-bar .breadcrumb { margin: 0; padding: .55rem 0; font-size: .9rem; --bs-breadcrumb-divider: '\203A'; }
.bc-bar .breadcrumb-item a { color: #6b6b6b; text-decoration: none; display: inline-flex; align-items: center; }
.bc-bar .breadcrumb-item a:hover { color: var(--simex); text-decoration: underline; }
.bc-bar .breadcrumb-item.active { color: #4a4a4a; }
.bc-bar .breadcrumb-item + .breadcrumb-item::before { color: #a9a9a9; }

/* Ploché boxy: tenká linka místo stínů. */
.card, .cat-sidebar, .top10, .usp-strip, .bestseller-list, .price-bar, .product-card, .filter-card { box-shadow: none; }
