/* BESTKANC menu first-paint stylesheet, static extracted rules, 2026-10-26 */

/* From vertical.main.menu.html */
/* BESTKANC_VERTICAL_MENU_V9_COMPACT_ICONS
 * Desktop-only visual refinement of the native Mastershop vertical menu.
 * Important: submenu mechanics remain native.
 * No position / overflow / z-index / display overrides.
 * No JS. No icons.
 */
@media (min-width: 1001px) {
    .bk-menu-v9-compact-icons.categories-v {
        background: #fff;
        border: 1px solid #e3e9ee;
        border-radius: 12px;
        box-shadow: 0 8px 24px rgba(24, 48, 70, .07);
    }

    .bk-menu-v9-compact-icons .categories-v__head {
        height: 50px;
        line-height: 50px;
        padding-left: 22px;
        padding-right: 22px;
        border-radius: 11px 11px 0 0;
        font-size: 12px;
        font-weight: 700;
        letter-spacing: .04em;
    }

    .bk-menu-v9-compact-icons .categories-v__head-caret {
        height: 50px;
        line-height: 50px;
    }

    .bk-menu-v9-compact-icons .categories-v__head-icon {
        margin-right: 9px;
    }

    .bk-menu-v9-compact-icons .categories-v__menu {
        padding-top: 5px;
        padding-bottom: 6px;
        border-radius: 0 0 11px 11px;
        background: #fff;
    }

    .bk-menu-v9-compact-icons .categories-v__item {
        font-size: 12.5px;
        font-weight: 500;
    }

    .bk-menu-v9-compact-icons .categories-v__title {
        padding-top: 5px;
        padding-bottom: 5px;
        line-height: 17px;
        color: #111;
        transition: color .12s ease;
    }

    .bk-menu-v9-compact-icons .categories-v__item:hover {
        background: #f6f8fa;
    }

    .bk-menu-v9-compact-icons .categories-v__item-inner.selected {
        background: #f2f5f7;
    }

    .bk-menu-v9-compact-icons .categories-v__item:hover .categories-v__title {
        color: #111;
    }

    .bk-menu-v9-compact-icons .categories-v__item-inner.selected .categories-v__title {
        color: #111;
        font-weight: 600;
    }

    .bk-menu-v9-compact-icons .categories-v__caret {
        opacity: .40;
        font-size: 11px;
        transition: opacity .12s ease, color .12s ease;
    }

    .bk-menu-v9-compact-icons .categories-v__item:hover .categories-v__caret {
        opacity: .82;
    }

    /* Hide native category-image icons to avoid duplicates. */
    .bk-menu-v9-compact-icons .categories-v__icon {
        display: none !important;
    }

    /*
     * V9 icons live INSIDE the title line.
     * 14px icon is smaller than the 17px text line-height.
     * Margins total zero width (-19 + 14 + 5 = 0), so the icon sits
     * in the existing left padding and does not make titles wrap earlier.
     */
    .bk-menu-v9__icon {
        display: inline-block;
        width: 14px;
        height: 14px;
        margin-left: -19px;
        margin-right: 5px;
        vertical-align: -2px;
        color: #3185bd;
        pointer-events: none;
    }

    .bk-menu-v9__icon svg {
        display: block;
        width: 14px;
        height: 14px;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.8;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

    .bk-menu-v9__icon--green  { color: #2d8a67; }
    .bk-menu-v9__icon--orange { color: #b9782c; }
    .bk-menu-v9__icon--purple { color: #7566b4; }
    .bk-menu-v9__icon--red    { color: #bd5d5d; }
    .bk-menu-v9__icon--teal   { color: #278a92; }

    .bk-menu-v9-compact-icons .categories-v__item:hover .bk-menu-v9__icon {
        color: #087cb8;
    }
}

/* From vertical.main.menu.subs-deployed.html */
/*
 * BESTKANC_SUBMENU_V13_LOCK_TO_CATALOG_BODY
 * Compact Komus-inspired deployed mega menu for BestKanc.
 *
 * Goals:
 * - keep the proven full-height hover corridor;
 * - make the panel noticeably narrower and denser;
 * - remove decorative dots/cards and large empty-looking spacing;
 * - use plain editorial columns similar to Komus;
 * - dropdown lower edge follows the left category tree;
 * - category product counts are intentionally hidden;
 * - no external JS and no admin custom-JS setting.
 */
.bk-mega-v11,
.bk-mega-v11 * {
    box-sizing: border-box;
}

.bk-mega-v11.subcat-v-deployed {
    position: fixed !important;
    z-index: 9999 !important;
    right: auto !important;
    bottom: auto !important;
    min-height: 0 !important;
    padding: 0 !important;
    background: #f7f8fa;
    border: 1px solid #dfe3e8;
    border-radius: 0 10px 10px 0;
    box-shadow: 0 12px 28px rgba(28, 43, 58, .11);
    overflow: hidden;
    transform: none !important;
}

/* Slim section header instead of the large previous title block. */
.bk-mega-v11__head {
    display: flex;
    min-height: 52px;
    padding: 9px 16px 9px 18px;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    background: #f5f7f9;
    border-bottom: 1px solid #e2e6ea;
}

.bk-mega-v11__head-main {
    min-width: 0;
}

.bk-mega-v11__section-title {
    display: block;
    overflow: hidden;
    color: #2d3741;
    font-size: 15.5px;
    font-weight: 800;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bk-mega-v11__all {
    display: inline-flex;
    flex: 0 0 auto;
    min-height: 31px;
    padding: 6px 10px;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: #286fae !important;
    background: #fff;
    border: 1px solid #d7e1e9;
    border-radius: 7px;
    font-size: 10.5px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none !important;
    white-space: nowrap;
}

.bk-mega-v11__all:hover {
    color: #145e9f !important;
    background: #f1f6fa;
    border-color: #c8d8e5;
}

/* Optional banner. */
.bk-mega-v11__banner {
    margin: 12px 18px 0;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
}

.bk-mega-v11__banner img {
    display: block;
    width: 100%;
    max-height: 105px;
    object-fit: cover;
}

/* Internal scroll only. Outer panel remains a stable hover target. */
.bk-mega-v11__body {
    padding: 15px 18px 18px;
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #cbd2d9 transparent;
}

.bk-mega-v11__body::-webkit-scrollbar {
    width: 7px;
}

.bk-mega-v11__body::-webkit-scrollbar-thumb {
    background: #cbd2d9;
    border: 2px solid #f7f8fa;
    border-radius: 8px;
}

/*
 * Komus-like editorial flow:
 * three narrow columns instead of a huge four-column canvas.
 */
.bk-mega-v11__columns {
    width: 100%;
    column-count: 3;
    column-gap: 30px;
}

/* One level-2 group. No card, no colored dot. */
.bk-mega-v11__group {
    display: inline-block;
    width: 100%;
    margin: 0 0 17px;
    padding: 0 5px 0 0;
    break-inside: avoid;
    -webkit-column-break-inside: avoid;
    page-break-inside: avoid;
    vertical-align: top;
}

.bk-mega-v11__title-row {
    line-height: 1.3;
}

.bk-mega-v11__group-title {
    color: #3b4651 !important;
    font-size: 12.5px;
    font-weight: 800;
    line-height: 1.32;
    text-decoration: none !important;
}

.bk-mega-v11__group-title:hover {
    color: #176fbe !important;
}


/* Level 3: plain links without bullets, like Komus. */
.bk-mega-v11__links {
    margin-top: 5px;
}

.bk-mega-v11__link {
    display: block;
    padding: 2px 0;
    color: #68727d !important;
    font-size: 11.5px;
    font-weight: 400;
    line-height: 1.34;
    text-decoration: none !important;
}

.bk-mega-v11__link:hover {
    color: #176fbe !important;
}

/* "Ещё" uses a quiet down-caret instead of a blue arrow. */
.bk-mega-v11__more {
    display: inline-flex;
    margin-top: 6px;
    padding: 2px 0;
    align-items: center;
    gap: 6px;
    color: #4d5965 !important;
    font-size: 10.5px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none !important;
}

.bk-mega-v11__more:after {
    content: "⌄";
    position: relative;
    top: -1px;
    color: #7e8892;
    font-size: 13px;
}

.bk-mega-v11__more:hover {
    color: #176fbe !important;
}

/* Neutralize only inner legacy deployed sizing. */
.bk-mega-v11 .subcat-v-deployed__items,
.bk-mega-v11 .subcat-v-deployed__item,
.bk-mega-v11 .subcat-v-deployed__inner {
    width: auto !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
}

@media (max-width: 1120px) {
    .bk-mega-v11__columns {
        column-count: 2;
        column-gap: 26px;
    }
}

@media (max-width: 760px) {
    .bk-mega-v11.subcat-v-deployed {
        position: absolute !important;
        left: 0 !important;
        right: auto !important;
        top: 100% !important;
        bottom: auto !important;
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: 520px !important;
        border-radius: 0 9px 9px 0;
        overflow-y: auto !important;
    }

    .bk-mega-v11__head {
        min-height: 48px;
        padding: 9px 13px;
    }

    .bk-mega-v11__section-title {
        font-size: 15px;
    }

    .bk-mega-v11__all {
        display: none;
    }

    .bk-mega-v11__banner {
        margin: 10px 13px 0;
    }

    .bk-mega-v11__body {
        height: auto !important;
        max-height: none !important;
        padding: 13px;
    }

    .bk-mega-v11__columns {
        column-count: 1;
    }

    .bk-mega-v11__group {
        margin-bottom: 15px;
    }
}
