/* ---- Sidebar obecn� ---- */
.sidebar-shopins {
    width: 270px;
    background: none;
    margin-right: 36px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.sidebar-block h3 {
    font-size: 1.18em;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 10px;
    color: #3b449a;
}

/* Platformy */
.sidebar-platform-list {
    list-style: none;
    margin: 0 0 0 0;
    padding: 0;
}
.sidebar-platform-list li {
    margin: 0 0 8px 0;
}
.sidebar-platform-list a {
    display: flex;
    align-items: center;
    gap: 10px;
    background: none;
    border-radius: 8px;
    padding: 7px 7px 7px 0;
    text-decoration: none;
    color: #2c3ba8;
    font-weight: 600;
    font-size: 1.13em;
    transition: background 0.14s, color 0.13s;
}
.sidebar-platform-list a:hover,
.sidebar-platform-list li.active a {
    background: #f2f7ff;
    color: #ea2367;
}
.sidebar-platform-icon {
    width: 34px;
    height: 34px;
    object-fit: contain;
    border-radius: 7px;
    background: #fff;
}

/* Kategorie/Blog/Info seznam */
.sidebar-block ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.sidebar-block ul li {
    margin-bottom: 5px;
}
.sidebar-block ul li a {
    text-decoration: none;
    color: #344389;
    font-size: 1.05em;
    transition: color 0.13s;
}
.sidebar-block ul li a:hover {
    color: #ea2367;
    text-decoration: underline;
}

/* Filtr produkt� */
.sidebar-filter label {
    display: flex;
    align-items: center;
    margin: 0 0 5px 0;
    font-size: 1.02em;
    gap: 6px;
    color: #313c68;
}
.sidebar-filter b {
    margin-top: 12px;
    display: inline-block;
    color: #232d60;
}

/* Produkty v sidebaru (nov�, nejprod�van�j��) */
.sidebar-prod {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    margin-bottom: 13px;
    font-size: 0.99em;
}
.sidebar-prod img {
    width: 38px;
    height: 48px;
    object-fit: contain;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 1px 5px #e3ebfd1c;
}
.sidebar-prod b {
    color: #1e2899;
    font-size: 1.04em;
    font-weight: 700;
}
.sidebar-prod span {
    display: block;
    margin-top: 2px;
}

/* Blog odkazy */
.sidebar-blog div {
    margin-bottom: 8px;
}
.sidebar-blog a {
    color: #2246ad;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.06em;
}
.sidebar-blog a:hover {
    color: #ea2367;
    text-decoration: underline;
}

/* Informace */
.sidebar-info ul {
    margin-top: 4px;
}
.sidebar-info li {
    margin-bottom: 3px;
}

.sidebar-shopins {
    width: 100%;
    max-width: 270px;
    display: flex;
    flex-direction: column;
    gap: 22px;
    padding: 0 0 10px 0;
}

.sidebar-block {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 1px 13px #dde9fa16;
    padding: 18px 18px 16px 18px;
    margin-bottom: 10px;
    border: 1px solid #e7edfa;
    box-shadow: rgba(0, 0, 0, 0.04) 0px 3px 5px;
}

.sidebar-block-title {
    font-size: 1.18em;
    font-weight: 700;
    color: #3452b8;
    margin-bottom: 13px;
    letter-spacing: -0.5px;
}

.sidebar-platforms-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sidebar-platform-card {
    display: flex;
    align-items: center;
    gap: 13px;
    background: #f7faff;
    border-radius: 10px;
    padding: 12px 11px;
    color: #1532a2;
    text-decoration: none;
    font-size: 1.10em;
    font-weight: 600;
    border: 2px solid transparent;
    transition: background .15s, border .15s, color .14s;
    min-height: 62px;
    box-shadow: 0 1px 8px #e0eafb18;
}
.sidebar-platform-card img {
    width: 44px;
    height: 44px;
    object-fit: contain;
    border-radius: 7px;
    background: #fff;
}
.sidebar-platform-card.active,
.sidebar-platform-card:hover {
    background: #e9f2ff;
    border: 2px solid #2967df;
    color: #1756e0;
}

.sidebar-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.sidebar-list li {
    margin-bottom: 6px;
}
.sidebar-list a {
    color: #1b2f7c;
    text-decoration: none;
    font-size: 1.07em;
    transition: color .15s;
}
.sidebar-list a:hover { color: #e6257e; }

.sidebar-filter-section {
    margin-bottom: 13px;
}
.sidebar-filter-title {
    font-weight: 700;
    color: #39288b;
    margin-bottom: 5px;
    font-size: 1.08em;
}
.sidebar-block label {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 6px;
    font-size: 1em;
    color: #1a3876;
    cursor: pointer;
}
.sidebar-block input[type="checkbox"] {
    accent-color: #1961e2;
    width: 17px; height: 17px;
}

/* ── Filter chipy ── */
.sf-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    margin: 0 5px 7px 0;
    background: #f2f5ff;
    border: 1.8px solid #d5dcf5;
    border-radius: 999px;
    font-size: .9em;
    font-weight: 600;
    color: #2c3ba8;
    text-decoration: none;
    transition: background .13s, border .13s, color .13s;
    cursor: pointer;
}
.sf-chip:hover {
    background: #e4eaff;
    border-color: #1840c0;
    color: #1840c0;
}
.sf-chip.active {
    background: #1840c0;
    border-color: #1840c0;
    color: #fff;
}
.sf-chip.active:hover {
    background: #1432a0;
}
.sf-count {
    background: rgba(0,0,0,.1);
    border-radius: 999px;
    padding: 1px 7px;
    font-size: .82em;
    font-weight: 700;
}
.sf-chip.active .sf-count {
    background: rgba(255,255,255,.25);
}
.sf-reset {
    display: inline-block;
    font-size: .82em;
    color: #e63070;
    text-decoration: none;
    font-weight: 600;
    margin-top: 4px;
}
.sf-reset:hover { text-decoration: underline; }

/* ===== MOBIL: sidebar jako drawer ===== */
@media (max-width: 900px) {
    /* Sidebar se schová z layoutu */
    .sidebar-shopins {
        display: none;
    }

    /* Filtr tlačítko nad produkty */
    .mobile-filter-bar {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 10px 0 6px 0;
        flex-wrap: wrap;
    }
    .mobile-filter-btn {
        display: inline-flex;
        align-items: center;
        gap: 7px;
        padding: 9px 18px;
        background: #fff;
        border: 1.8px solid #d5dcf5;
        border-radius: 999px;
        font-size: .95em;
        font-weight: 700;
        color: #1840c0;
        cursor: pointer;
        box-shadow: 0 1px 6px #dde9fa30;
    }
    .mobile-filter-btn.has-filter {
        background: #1840c0;
        border-color: #1840c0;
        color: #fff;
    }
    /* Aktivní chipy nad produkty */
    .mobile-active-chips { display: flex; gap: 6px; flex-wrap: wrap; }
    .mobile-active-chip {
        display: inline-flex; align-items: center; gap: 5px;
        padding: 5px 11px;
        background: #1840c0; color: #fff;
        border-radius: 999px; font-size: .85em; font-weight: 600;
        text-decoration: none;
    }

    /* Drawer overlay */
    .filter-drawer-overlay {
        display: none;
        position: fixed; inset: 0;
        background: rgba(10,14,50,.38);
        z-index: 200;
    }
    .filter-drawer-overlay.open { display: block; }

    /* Drawer panel */
    .filter-drawer {
        position: fixed;
        bottom: 0; left: 0; right: 0;
        max-height: 82vh;
        background: #fff;
        border-radius: 20px 20px 0 0;
        box-shadow: 0 -8px 40px rgba(20,32,100,.18);
        z-index: 201;
        overflow-y: auto;
        transform: translateY(100%);
        transition: transform .28s cubic-bezier(.4,0,.2,1);
        padding: 0 0 env(safe-area-inset-bottom,0) 0;
    }
    .filter-drawer.open { transform: translateY(0); }
    .filter-drawer-handle {
        width: 40px; height: 4px;
        background: #dde3f5; border-radius: 999px;
        margin: 12px auto 0;
    }
    .filter-drawer-head {
        display: flex; align-items: center; justify-content: space-between;
        padding: 14px 20px 10px;
        font-size: 1.12em; font-weight: 700; color: #1532a2;
        border-bottom: 1px solid #eef1fb;
    }
    .filter-drawer-close {
        background: none; border: none; font-size: 1.4em;
        color: #8b9bc4; cursor: pointer; padding: 2px 6px; border-radius: 6px;
    }
    .filter-drawer-close:hover { background: #f0f4ff; color: #e63070; }
    .filter-drawer-body { padding: 16px 20px 24px; }
    .filter-drawer-body .sidebar-filter-section { margin-bottom: 18px; }
    .filter-drawer-body .sidebar-filter-title {
        font-size: 1.05em; font-weight: 700; color: #39288b; margin-bottom: 8px;
    }
}

/* Na desktopu drawer a tlačítko schovej */
@media (min-width: 901px) {
    .mobile-filter-bar { display: none; }
    .filter-drawer-overlay { display: none !important; }
    .filter-drawer { display: none !important; }
}
