﻿html, body, div, span, h1, h2, h3, h4, h5, h6, p, a, img, ul, ol, li, table, tr, td, th, form, fieldset, legend, button, input, textarea {
    margin: 0;
    padding: 0;
    border: 0;
    font: inherit;
    vertical-align: baseline;
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

*, *::before, *::after {
    box-sizing: inherit;
}



/* ========== TOKENS ========== */
:root {
    --bg: #f7f6f2;
    --panel: #fff;
    --line: #eae7e3;
    --text: #3f3f3f;
    --muted: #6b6b6b;
    --brand: #2a9aa5;
    --accent: #d79a4a;
    --danger: #c0392b;
    --success: #2e7d32;
    --radius: 12px;
    --shadow: 0 2px 12px rgba(0,0,0,.06);
    --card-img-h: 260px;
}

/* ========== TYPOGRAPHY & BASE ========== */
body {
    font-family: "Segoe UI", Roboto, Arial, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.5;
    font-size: 16px;
}

h1 {
    font-size: 28px;
    margin: 10px 0 14px;
    letter-spacing: .5px;
}

h2 {
    font-size: 22px;
    margin: 10px 0 12px;
    letter-spacing: .5px;
}

h3 {
    font-size: 18px;
    margin: 8px 0 10px;
}

p {
    margin: 8px 0;
}

small, .muted {
    color: var(--muted);
}

a {
    color: var(--brand);
    text-decoration: none;
}

    a:hover {
        text-decoration: underline;
    }

/* ========== LAYOUT ========== */
.container {
    max-width: 1260px;
    margin: 0 auto;
    padding: 0 16px;
}

.topbar-wrap {
    transition: transform .18s ease, opacity .18s ease;
    will-change: transform;
    z-index: 99999;
}

    .topbar-wrap.tb-hidden {
        transform: translateY(-110%);
        opacity: 0;
        pointer-events: none;
    }
	
#TopBarWrap{
  position: relative;   /* nebo relative, sticky je lepší pro topbar */
  top: 0;
  z-index: 99999;
}	

#TopBarWrap .menu .sub{
  z-index: 100000;
}

.wrap {
    padding: 18px 0 28px;
}

.panel {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 16px;
}

    .panel + .panel {
        margin-top: 18px;
    }

/* Grid helpers */
.row {
    display: flex;
    flex-wrap: wrap;
    margin: -8px;
}

.col {
    padding: 8px;
    flex: 1 1 0;
    min-width: 240px;
}

/* Spacing helpers */
.gap-8 {
    gap: 8px;
}

.gap-12 {
    gap: 12px;
}

.gap-16 {
    gap: 16px;
}

.mt-8 {
    margin-top: 8px;
}

.mt-12 {
    margin-top: 12px;
}

.mt-16 {
    margin-top: 16px;
}

.mb-8 {
    margin-bottom: 8px;
}

.mb-12 {
    margin-bottom: 12px;
}

.mb-16 {
    margin-bottom: 16px;
}

/* ========== BUTTONS ========== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--text);
    cursor: pointer;
}

    .btn:hover {
        box-shadow: var(--shadow);
    }

.btn-primary {
    background: var(--brand);
    color: #fff;
    border-color: transparent;
}

    .btn-primary:hover {
        filter: saturate(105%);
    }

.btn-ghost {
    background: transparent;
    border-color: var(--line);
}

.btn-danger {
    background: var(--danger);
    color: #fff;
    border-color: transparent;
}

/* ========== FORMS ========== */
.input, input[type=text], input[type=search], input[type=number], select, textarea {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
}

label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
}

/* ========== TABLES ========== */
.table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
}

    .table th, .table td {
        padding: 10px 12px;
        border-bottom: 1px solid var(--line);
        text-align: left;
    }

    .table thead th {
        background: #faf9f6;
        font-weight: 700;
    }

    .table tr:hover td {
        background: #fafafa;
    }

/* ========== CARDS (generic) ========== */
.card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.card-img {
    width: 100%;
    height: var(--card-img-h);
    object-fit: cover;
    background: #f0f0f0;
}

.card-body {
    flex: 1;
    padding: 12px;
    display: flex;
    flex-direction: column;
}

.card-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 4px;
}

.card-sub {
    color: var(--muted);
    font-size: 13px;
}

.card-actions {
    display: flex;
    justify-content: center;
    padding: 12px;
    border-top: 1px solid var(--line);
    margin-top: auto;
}

.card-price {
    font-weight: 700;
    font-size: 16px;
    margin-top: 6px;
}

/* ========== SECTIONS ========== */
.page-info {
    justify-content: center; 
    text-align: center; 
    font-size: 14px;
    text-transform: uppercase;
    color: var(--muted);
    letter-spacing: 1px;
    margin: 24px 0 12px;
    width: 100%;
}
.section-title {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 500;
    margin: 16px 0 24px;
    position: relative;
    text-align: center;
}

    .section-title::before, .section-title::after {
        content: "";
        flex: 1;
        border-bottom: 1px solid var(--line);
        margin: 0 12px;
    }

.hot-tips {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
    align-items: stretch;
}

/* ===== Horké tipy – karta podle předlohy ===== */
.tip-card {
    background: #f7f6f2;
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: var(--shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.tip-imgwrap {
    position: relative;
    padding: 18px;
    background: #f7f6f2;
}

.tip-img {
    width: 100%;
    height: 340px;
    object-fit: cover;
    display: block;
    border: 1px solid rgba(0,0,0,.06);
}
/* CTA přes obrázek (hover) */
.tip-cta {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 18px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    color: #fff !important;
    text-transform: uppercase;
    letter-spacing: .5px;
    font-weight: 700;
    border: none;
    border-radius: 0;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity .18s ease, transform .18s ease;
    cursor: pointer;
    text-decoration: none;
}

.tip-imgwrap:hover .tip-cta {
    opacity: 1;
    transform: translateY(0);
}

.tip-info {
    text-align: center;
    padding: 18px 16px 20px;
    background: transparent;
}

.tip-title {
    font-family: Georgia,"Times New Roman",serif;
    font-size: 20px;
    line-height: 1.25;
    margin: 6px 0 10px;
    word-break: break-word;
}

.tip-author, .tip-publisher {
    color: var(--muted);
    font-size: 14px;
    margin-top: 4px;
}

.tip-price {
    font-weight: 700;
    font-size: 18px;
    margin-top: 12px;
}

/* ===== Nejprodávanější titul (nové .bs-* třídy) ===== */
.bestseller {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 28px;
    margin-top: 28px;
    padding: 18px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.bs-left img.bs-cover {
    width: 100%;
    border-radius: var(--radius);
}

.bs-top {
    display: flex;
    align-items: flex-end;
    gap: 16px;
}

.bs-heading {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 6px;
    position: relative;
}

    .bs-heading::before {
        content: "";
        display: block;
        width: 60px;
        height: 2px;
        background: #000;
        position: absolute;
        top: -8px;
        left: 0;
    }

.bs-price {
    margin-left: auto;
    font-size: 22px;
    color: #7a652f;
}

.bs-meta {
    margin: 10px 0 14px;
    color: var(--muted);
}

.bs-title {
    font-size: 26px;
    font-weight: 600;
    margin: 6px 0 14px;
}

.bs-score {
    color: var(--danger);
}

.bs-stock {
    color: var(--success);
}

.bs-actions {
    list-style: none;
    margin: 10px 0 0;
    padding: 0;
}

.bs-action {
    display: inline-block;
    margin-right: 16px;
    font-weight: 600;
    color: var(--text);
    text-decoration: none;
}

    .bs-action:hover {
        text-decoration: underline;
    }

/* ========== FOOTER & MISC ========== */
.footer {
    margin-top: 36px;
    padding: 22px 0;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 14px;
}

.sticky-top {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--bg);
}

/* ========== RESPONSIVE ========== */
@media (max-width:860px) {
    .container {
        padding: 0 12px;
    }

    .card-img {
        height: 180px;
    }

    .bestseller {
        grid-template-columns: 1fr;
    }

    .tip-cta {
        position: static;
        margin-top: 12px;
        opacity: 1;
        transform: none;
        width: 100%;
    }
}

/* === Mini Footer (rozdělený do 3 částí) === */
.mini-footer {
    border-top: 1px solid var(--line, #eae7e3);
    background: var(--bg, #faf9f6);
    font-size: 13px;
    color: var(--muted, #6b6b6b);
    padding: 10px 20px;
    margin-top: 10px;
}

.mini-footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    max-width: 1180px;
    margin: 0 auto;
}

.mini-footer-link {
    color: var(--text, #3f3f3f);
    text-decoration: none;
    transition: color 0.15s ease;
    font-weight: 500;
}

    .mini-footer-link:hover {
        color: var(--brand, #2a9aa5);
        text-decoration: underline;
    }

.copy {
    color: var(--muted, #6b6b6b);
    font-size: 13px;
}

/* Mobilní úprava – zarovná do středu */
@media (max-width: 720px) {
    .mini-footer-inner {
        flex-direction: column;
        gap: 6px;
        text-align: center;
    }
}
/* Obecný chip */
.chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 90px;
    height: 60px;
    padding: 0 10px;
    background: #fff;
    color: var(--muted,#6b6b6b);
    font-size: 13px;
    text-align: center;
    box-sizing: border-box;
}



    /* CBDB rating uvnitř jednoho chipu (bez druhé bubliny) */
    .chip .cbdb_rating {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        width: auto !important;
        height: 24px !important;
        padding: 2px 8px !important;
        margin: 0 !important;
        border: none !important;
        border-radius: 999px !important;
        background: transparent !important;
        text-decoration: none !important;
        box-sizing: border-box !important;
        color: inherit !important;
        line-height: 1 !important;
    }

    /* Vnitřní wrapper bez rámečků/paddingu a bez hvězd či „CBDB.cz“ */
    .chip .cbdb_area_rating {
        border: none !important;
        background: transparent !important;
        padding: 0 !important;
        text-align: center !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        flex-direction: column !important;
    }


        .chip .cbdb_area_rating table {
            border: none !important;
            background: transparent !important;
            margin: 0 auto !important;
        }

        .chip .cbdb_area_rating td {
            border: none !important;
            padding: 0 !important;
            text-align: center !important;
        }

        /* Odstranění všech zbytkových prvků */
        .chip .cbdb_stars,
        .chip .cbdb_subscribe,
        .chip .cbdb_end,
        .chip .cbdb_area_rating br {
            display: none !important;
        }

            .chip .cbdb_area_rating .cbdb_stars,
            .chip .cbdb_area_rating .cbdb_subscribe,
            .chip .cbdb_area_rating .cbdb_end,
            .chip .cbdb_area_rating br {
                display: none !important;
            }

    .chip .cbdb_percent {
        display: inline-block !important;
        font-size: 13px !important;
        font-weight: 600 !important;
        color: var(--text, #3f3f3f) !important;
        margin: 0 !important;
    }

        .chip .cbdb_percent::before {
            content: "Hodnocení: " !important;
            font-weight: 400 !important;
            color: var(--muted, #6b6b6b) !important;
        }

    /* Odebrání veškerého rámečku z kontejneru */
    .chip .cbdb_rating {
        border: none !important;
        box-shadow: none !important;
        background: transparent !important;
    }

            /* Procenta + prefix „Hodnocení:“ */
            .chip .cbdb_area_rating .cbdb_percent {
                display: inline !important;
                visibility: visible !important;
                font-size: 18px !important;
                font-weight: 600 !important;
                color: var(--text,#3f3f3f) !important;
            }

                .chip .cbdb_area_rating .cbdb_percent::before {
                    content: "Hodnocení: " !important;
                    font-weight: 400 !important;
                    color: var(--muted,#6b6b6b) !important;
                    margin-right: 2px !important;
                }
    .chip .cbdb_subscribe {
        display: none !important;
    }

.chipo_first_release {
    display: inline-flex;
    align-items: center; /* vertikální centrování obsahu */
    justify-content: center;
    min-width: 90px;
    height: 35px;
    padding: 0px 10px;
    border: 1px solid var(--line, #eae7e3);
    border-radius: 999px;
    font-size: 13px;
    text-align: center;
    box-sizing: border-box;
    background: #28D3ED;
    color: var(--muted, #6b6b6b);
}

