/* BCOMP – responzivní vzhled nad Bootstrapem 5.3 (veřejná část webu)
   Tmavý motiv s červenou #cc3318, banner, karty produktů. */

:root {
    --bc-red: #cc3318;
    --bc-red-dark: #a02812;
    --bc-orange: #ff8a1f;
    --bs-link-color: #cc3318;
    --bs-link-hover-color: #000;
}

body.bcomp-body {
    background: #1b1b1b url('../engine/bg.jpg') top center / cover fixed;
    font-family: "Segoe UI", Arial, Helvetica, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: #222;
}
a, a:link, a:visited { color: var(--bc-red); text-decoration: none; font-weight: 600; }
a:hover { color: #000; }
img { max-width: 100%; height: auto; }
h1 { font-size: 1.15rem; color: var(--bc-red); margin: 0 0 .8rem; font-weight: 700; }
h2 { font-size: 1rem; color: var(--bc-red); margin: 0; }
h3 { font-size: 1.05rem; margin: 0; }
hr { opacity: 1; background: #efefef; height: 1px; border: 0; }
ul { padding: 0; margin: 0; list-style: none; }
li { list-style: none; }

.bcomp-page { max-width: 1200px; margin: 0 auto 1rem; background: #111; box-shadow: 0 0 24px rgba(0,0,0,.8); }
@media (min-width: 992px) { .bcomp-page { margin-top: 16px; } }

/* ---------- Horní lišta + banner ---------- */
.bcomp-topbar { background: #000; color: #fff; font-size: 12px; }
.bcomp-topbar a, .bcomp-topbar a:link { color: #fff; font-weight: 600; }
.bcomp-topbar a:hover { color: var(--bc-orange); }
.bcomp-login { margin-left: auto; }
.bcomp-login form { margin: 0; }
.bcomp-login .form-control { width: 130px; max-width: 100%; background: #fff; }
.bcomp-forgot { font-size: 11px; opacity: .85; white-space: nowrap; }
.btn-bcomp, .btn-bcomp:focus { background: var(--bc-red); color: #fff; border: 1px solid var(--bc-red-dark); font-weight: 600; }
.btn-bcomp:hover { background: var(--bc-red-dark); color: #fff; }
.bcomp-banner img { background: #1a1a1a; }

/* ---------- Navigace ---------- */
.bcomp-nav { background: linear-gradient(#444, #262626); padding: 0 .5rem; border-bottom: 1px solid #000; }
.bcomp-nav .nav-link { color: #fff !important; font-weight: 600; font-size: 12.5px; padding: .7rem .8rem; }
.bcomp-nav .nav-link:hover { color: var(--bc-orange) !important; }
.bcomp-nav .nav-link.active { color: var(--bc-orange) !important; }
.bcomp-menu-btn { color: #fff; border-color: rgba(255,255,255,.4); font-size: 13px; font-weight: 600; }
.bcomp-nav .navbar-toggler { border-color: rgba(255,255,255,.4); }
@media (max-width: 991.98px) {
    .bcomp-nav { padding: .35rem .5rem; }
    .bcomp-nav .navbar-nav { padding: .4rem 0; }
}

/* ---------- Rozvržení ---------- */
.bcomp-main { background: #111; }
.bcomp-left { background: #111; }
.bcomp-content { padding: 1rem; min-width: 0; background: #fff; }
.bcomp-right { background: linear-gradient(#3a3a3a, #232323); }
@media (min-width: 992px) { .bcomp-main { padding: 0; } .bcomp-content { margin: 0; } }

/* ---------- Levý panel (offcanvas na mobilu) ---------- */
.bcomp-offcanvas { background: #111; color: #fff; --bs-offcanvas-width: 300px; }
.bcomp-offcanvas .offcanvas-title { color: #fff; }
.bcomp-offcanvas .offcanvas-body { overflow-y: auto; }
@media (min-width: 992px) { .bcomp-offcanvas { background: transparent; } }
.levy { color: #ddd; }
.nadpis_sekce {
    padding: 10px 14px; background: #000; color: #fff; font-weight: 700; font-size: 11px;
    letter-spacing: .06em; text-transform: uppercase; border-bottom: 1px solid #2a2a2a;
}
.levy-menu > li { background: #181818; border-bottom: 1px solid #2a2a2a; padding: 0; border-left: 3px solid transparent; }
.levy-menu > li.levy-menu-active { border-left-color: var(--bc-red); background: #222; }
.kat-radek { display: flex; align-items: center; justify-content: space-between; gap: .4rem; padding-right: 8px; }
.levy-menu > li > a, .kat-radek > a, .levy-menu > li > a:link, .kat-radek > a:link {
    display: block; flex: 1; color: #fff; font-weight: 600; font-size: 12px; padding: 11px 4px 11px 12px;
}
.levy-menu > li > a:hover, .kat-radek > a:hover { color: var(--bc-orange); }
.kat-toggle {
    flex: 0 0 auto; width: 22px; height: 22px; border: 0; border-radius: 50%; background: #444; color: #fff;
    display: inline-flex; align-items: center; justify-content: center; font-size: 11px; padding: 0; cursor: pointer;
}
.kat-toggle:hover { background: var(--bc-red); }
.kat-toggle i { transition: transform .2s; }
.kat-toggle:not(.collapsed) i { transform: rotate(180deg); }
.levy-menu2 { background: #0a0a0a; }
.levy-menu2 li { padding: 0; margin: 0; border-top: 1px solid #1d1d1d; }
.levy-menu2 a, .levy-menu2 a:link { display: block; color: #ccc; font-weight: 500; font-size: 12px; padding: 7px 10px 7px 16px; }
.levy-menu2 a:hover { color: #fff; background: #1c1c1c; }
.levy-menu2 li.levy-menu2-active a { color: #fff; background: #2a1511; border-left: 3px solid var(--bc-red); padding-left: 13px; }
.bcomp-firma { margin: 16px; line-height: 1.5; }
.bcomp-firma span { color: #87c80a !important; }
.bcomp-firma span:last-child { color: #fff !important; }
.bcomp-skype { margin: 16px; font-weight: 600; }
.levy img { max-width: 100%; }

/* ---------- Aktuality ---------- */
.bcomp-aktuality { padding: .75rem; color: #e5e5e5; }
.bcomp-aktuality-nadpis { color: #fff; font-size: 1rem; font-weight: 700; margin: 0 0 .6rem; }
.novinky_title { background: var(--bc-red); color: #fff; font-weight: 700; padding: 8px 10px; font-size: 13px; border-radius: 3px; }
.novinky_content { padding: 8px 10px 14px; color: #bbb; font-size: 12px; overflow-wrap: anywhere; }
.novinky_content a { color: #ffb199; }

/* ---------- Newsletter, řazení ---------- */
.bcomp-newsletter { border: 1px solid #ddd; border-radius: .375rem; padding: .75rem 1rem 1rem; margin-bottom: 1rem; background: #fff; }
.bcomp-newsletter-nadpis { font-size: 13px; margin-bottom: .5rem; color: #333; }
.bcomp-newsletter .form-label { font-size: 11px; margin-bottom: 2px; color: #555; }
.bcomp-newsletter .bcomp-val { width: 70px; }
.bcomp-sort { margin-bottom: .9rem; display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; }
.bcomp-sort-label { font-size: 11px; color: #777; }
.bcomp-sort .btn-outline-secondary { --bs-btn-color: #444; --bs-btn-border-color: #ccc; font-size: 12px; font-weight: 500; }

/* ---------- Výpis produktů (karty) ---------- */
.pravy { width: 100%; }
.shop_produkty {
    display: grid;
    grid-template-columns: 130px 1fr 190px;
    grid-template-areas: "img text cart";
    gap: 0 1rem;
    border: 1px solid #ddd; border-radius: .375rem; background: #fff; overflow: hidden;
    margin: 0 0 .8rem; padding: .8rem 0 .8rem .8rem; align-items: stretch;
}
.shop_produkty_img { grid-area: img; display: flex; align-items: center; justify-content: center; }
.shop_produkty_img img { width: 100%; height: auto; max-height: 130px; object-fit: contain; }
.shop_produkty_nadpis { grid-area: text; min-width: 0; overflow-wrap: anywhere; font-size: 12px; color: #666; }
.shop_produkty_nadpis a { font-size: 13.5px; line-height: 1.3; font-weight: 700; }
.shop_produkty_nadpis a:hover { text-decoration: underline; }
.shop_produkty_nadpis hr { display: none; }
.shop_produkty_nadpis br { display: none; }
.shop_produkty_nadpis h2 { margin-bottom: .35rem; }
.bcomp-skladem { margin-top: .4rem; }
.bcomp-badge-ok { background: #198754; color: #fff; font-size: 10px; font-weight: 700; }
.shop_produkty_kosik-list, .shop_produkty_kosik {
    grid-area: cart; display: flex; flex-wrap: wrap; align-content: center; gap: .3rem .5rem;
    background: #f4f4f4; border-left: 1px solid #e3e3e3; padding: .8rem; margin: -.8rem 0;
}
.shop_produkty_kosik-list br, .shop_produkty_kosik br { display: none; }
.shop_produkty_kosik-list .cena-sdph, .shop_produkty_kosik .cena-sdph { order: 1; flex: 1 0 100%; color: var(--bc-red); font-size: 1.2rem; font-weight: 700; }
.shop_produkty_kosik-list .cena-bezdph, .shop_produkty_kosik .cena-bezdph { order: 2; flex: 1 0 100%; color: #888; font-size: 11px; margin-top: -.3rem; margin-bottom: .3rem; }
.shop_produkty_kosik-list input[name=mnozstvi], .shop_produkty_kosik input[name=mnozstvi] {
    order: 3; width: 3rem; text-align: center; border: 1px solid #bbb; border-radius: .25rem; padding: .3rem; font-weight: 600; color: #222 !important;
}
.btn-kosik, .shop_produkty_kosik input[type=submit] {
    order: 4; flex: 1; background: var(--bc-red); color: #fff; border: 0; border-radius: .25rem;
    padding: .35rem .4rem; font-weight: 700; font-size: 12px; cursor: pointer; white-space: nowrap;
}
.btn-kosik:hover, .shop_produkty_kosik input[type=submit]:hover { background: var(--bc-red-dark); }
.cena-sdph { font-size: 1.15rem; font-weight: 700; }
.cena-bezdph { font-size: .8rem; }

@media (max-width: 575.98px) {
    .shop_produkty {
        grid-template-columns: 96px 1fr; grid-template-areas: "img text" "cart cart";
        padding: .7rem .7rem 0; gap: .5rem .8rem;
    }
    .shop_produkty_kosik-list { margin: .5rem -.7rem 0; border-left: 0; border-top: 1px solid #e3e3e3; flex-wrap: nowrap; align-items: center; }
    .shop_produkty_kosik-list .cena-sdph { order: 0; flex: 1 1 auto; font-size: 1.1rem; }
    .shop_produkty_kosik-list .cena-bezdph { display: none; }
    .shop_produkty_kosik-list .btn-kosik { flex: 0 0 auto; }
}

/* ---------- Detail produktu ---------- */
.shop-detail {
    display: grid; grid-template-columns: minmax(180px, 260px) 1fr; grid-template-areas: "img info" "img cart";
    gap: 1rem; align-items: start; margin-bottom: 1rem;
}
.shop-detail-img { grid-area: img; border: 1px solid #ddd; border-radius: .375rem; padding: .5rem; }
.shop-detail-img img { width: 100%; height: auto; }
.shop-detail-parslov { grid-area: info; position: static; width: auto; height: auto; overflow-wrap: anywhere; color: #444; }
.shop-detail .shop_produkty_kosik { grid-area: cart; max-width: 280px; margin: 0; border: 1px solid #ddd; border-radius: .375rem; }
.shop-img { height: auto; padding-top: .5rem; }
@media (max-width: 767.98px) {
    .shop-detail { grid-template-columns: 1fr; grid-template-areas: "img" "cart" "info"; }
    .shop-detail-img { max-width: 320px; margin: 0 auto; }
    .shop-detail .shop_produkty_kosik { max-width: none; }
}

/* ---------- Záložky (idTabs) ---------- */
ul.idTabs { display: flex; flex-wrap: wrap; gap: .25rem; margin: 0 0 .75rem; }
ul.idTabs li { display: block; padding: 0; }
ul.idTabs li a { display: block; padding: .4rem .75rem; background: #f3e4e1; color: #000; border-radius: .25rem .25rem 0 0; }
ul.idTabs li a.selected, ul.idTabs li a:hover { background: #333; color: #fff; padding-top: .4rem; }
div.tabs > div { border: 1px solid #ccc; padding: .75rem; overflow-x: auto; }

/* ---------- Tabulky, formuláře (zbytek veřejné části) ---------- */
.pravy table { max-width: 100%; }
.pravy td { padding: 3px; }
.maroon { background: var(--bc-red); }
.white-bold { color: #fff; font-weight: bold; }
.eee { background: #eee; }
.obj-kosik, .pravy > table, .pravy form > table { width: 100%; }
.obj-kosik td { padding: 6px; }
.pravy input[type=text], .pravy input[type=password], .pravy input[type=email],
.pravy input[type=tel], .pravy select, .pravy textarea {
    max-width: 100%; border: 1px solid #aaa; border-radius: .25rem; padding: .3rem .5rem; font-size: 14px;
}
.pravy textarea, .poznamky { width: 100%; height: auto; min-height: 100px; }
.input-text { width: 100%; max-width: 320px; }
.pravy input[type=submit], .submit, .submit-produkty {
    background: maroon; color: #fff; border: 0; border-radius: .25rem; font-weight: bold; cursor: pointer;
    padding: .5rem 1rem; height: auto; width: auto; max-width: 100%;
}
.submit { float: right; margin-top: 1rem; font-size: 1rem; }
.but_objednej { margin-top: 1.25rem; text-align: center; }
.but_objednej a, .but_objednej a:link {
    display: block; background: var(--bc-red); color: #fff; font-size: 1.2rem; padding: .75rem; border-radius: .375rem;
}
.but_objednej a:hover { background: #a02812; text-decoration: underline; }
.obj { margin-bottom: 1rem; }
.obj-left { width: auto; text-align: right; }
.obj-right, .obj-right2 { width: auto; padding-left: .75rem; }
.dod { position: static; width: auto; }
.obj-nadpis { font-size: 1.05rem; font-weight: bold; margin: 1rem 0 .5rem; }
.obj-doprava-popis { padding-left: 1.5rem; }
.obj-chyba { color: red; font-size: 1.1rem; }
.obj-topbar { display: flex; flex-wrap: wrap; gap: 4px; height: auto; margin-bottom: 1.5rem; color: #fff; }
.obj-topbar-polozka, .obj-topbar-polozka-active {
    float: none; flex: 1 1 140px; width: auto; height: auto; padding: .5rem; margin: 0; text-align: center; font-weight: bold;
}
.obj-topbar-polozka { background: #444; }
.obj-topbar-polozka-active { background: maroon; }
.ke_stazeni { width: auto; padding: .75rem; margin: 1rem 0; background: #e8eef9; }
.fotogalerie { width: auto; }
.fotogalerie_content { width: auto; height: auto; }
.novinky { width: auto; }

/* zalamování širokých formulářových tabulek na mobilu */
@media (max-width: 767.98px) {
    .pravy table.obj, .pravy table.obj tbody, .pravy table.obj tr, .pravy table.obj td,
    .pravy table.inz, .pravy table.inz tbody, .pravy table.inz tr, .pravy table.inz td {
        display: block; width: 100% !important; text-align: left !important; padding-left: 0;
    }
    .obj-left { padding-bottom: 0; }
    .obj-right, .obj-right2 { padding-left: 0; }
    .pravy td[width] { width: auto !important; }
    .obj-kosik { display: block; overflow-x: auto; }
    .submit { float: none; width: 100%; }
    .pravy input[type=text], .pravy input[type=password], .pravy select { width: 100%; }
}
.pravy td[colspan] input[type=text] { width: auto; }

/* prettyPhoto – ať se vejde na mobil */
div.pp_pic_holder { max-width: 100vw; }

.pravy .shop_produkty_kosik-list input[type=submit], .pravy .shop_produkty_kosik input[type=submit] { width: 100%; }
@media (max-width: 575.98px) { .pravy .shop_produkty_kosik-list input[type=submit] { width: auto; } }

/* ---------- Patička ---------- */
.bcomp-footer { background: #000; color: #ddd; font-size: 12px; border-top: 2px solid var(--bc-red); }
.bcomp-footer a, .bcomp-footer a:link { color: #fff; }
.bcomp-footer a:hover { color: var(--bc-orange); }

.kat-pocet { float: right; margin-left: .5rem; color: #999; font-weight: 400; font-size: 11px; white-space: nowrap; }
.levy-menu2 li.levy-menu2-active .kat-pocet { color: #e0a79c; }
