/* GKhair: accessible names remain in the tree; retain the existing visual system. */
body .gk-sort-bar__tab:not(.on),
body .gk-sort-bar__view:not(.on) { color: #626272; }
body .product_item .product_descr .product_price small,
body .product_item .qty input { color: #595959 !important; }
body .product_item .product_item__btn-box .btn_yellow,
body .product_item .product_item__btn-box .btn_yellow span { color: #302438 !important; }
body .gk-table td[data-label="Задача"],
body .gk-reviews__cnt,
body .gk-reviews__prod-name { color: #626272; }
body .gk-tip__label { color: #855000; }
/* The original notice uses inline colour; keep it readable without changing its copy. */
body .subscribe-form__result > p,
body .subscribe-form__result > p a { color: #626262 !important; }
body .mm-bottom-nav .mm-label { color: #596574; }
body .mm-bottom-nav .mm-item--active .mm-label { color: #8a5200; }

body :is(a,button,input,select,textarea):focus-visible {
    outline: 3px solid #592c82;
    outline-offset: 3px;
}
body .catalog-right__header .filter_mob {
    border: 1px solid #d8d1e3;
    border-radius: 6px;
    background: #fff;
    color: #592c82;
    min-width: 36px;
    min-height: 36px;
    align-items: center;
    justify-content: center;
}
@media (max-width: 991px) {
    body .catalog-right__header { display: none !important; }
    /* The filter template repeats the category navigation; keep one visible close control. */
    body #gk-catalog-filters .close_aside { display: none; }
    body #gk-catalog-filters > .close_aside {
        display: inline-flex;
        min-width: 32px;
        min-height: 32px;
        align-items: center;
        justify-content: center;
    }
    body .footer_bottom .f_menu .site_map {
        display: inline-flex;
        align-items: center;
        min-height: 28px;
        margin-block: 2px;
    }
}
@media (max-width: 767px) {
    body .product_item .product_item__btn-box { gap: 4px; }
    body .product_item .product_item__btn-box .qty {
        flex: 0 0 80px;
        min-width: 80px;
        max-width: 80px;
        min-height: 36px;
        height: 36px;
    }
    body .product_item .product_item__btn-box .qty button {
        flex: 0 0 26px !important;
        width: 26px !important;
        min-width: 26px !important;
        min-height: 32px;
        padding-inline: 0;
    }
    body .product_item .product_item__btn-box .qty .input {
        min-width: 0;
        flex: 1 1 auto;
    }
    body .product_item .product_item__btn-box .qty input {
        min-width: 0;
        padding-inline: 0;
    }
    body .product_item .product_item__btn-box .btn_yellow {
        min-width: 40px;
        min-height: 36px;
        height: 36px;
        padding-inline: 4px;
    }
}
@media (max-width: 414px) {
    /* A visually hidden label is still the button's accessible name. */
    body .product_item .product_item__btn-box .btn_yellow span {
        display: block;
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0,0,0,0);
        clip-path: inset(50%);
        white-space: nowrap;
        border: 0;
    }
}

/* Semantic controls: keep the established layout after replacing action anchors. */
button.gk-ui-action {
    appearance: none; background: transparent; border: 0; padding: 0;
    font: inherit; color: inherit; text-align: inherit; cursor: pointer;
}
.header_bottom .container .user_panel li button.gk-ui-action { position: relative; display: block; }
.header_bottom .container .user_panel li button.gk-ui-action img { display: block; }
.header_bottom .container .user_panel li button.gk-ui-action:hover { opacity: .5; }
.header_bottom .container .user_panel li button.gk-ui-action .amount {
    position: absolute; top: -7px; right: -11px; border-radius: 50%;
    background: #ffa300; width: 17px; height: 17px; font-size: 12px;
    display: flex; align-items: center; justify-content: center; color: #fff;
}
.header_bottom .container .user_nav li .nav-section-title {
    display: flex; align-items: center; justify-content: flex-start;
    font-size: 13px; font-weight: bold; text-transform: uppercase; white-space: nowrap; cursor: default;
}
.header_bottom .container .user_nav li .nav-section-title svg { width: 9px; margin: 0 0 0 7px; }
.header_bottom .container .user_nav li .nav-section-title:hover { color: #ffa300; }
.header_bottom .container .user_nav li .nav-section-title:hover svg path { fill: #ffa300; }
.header_bottom .container .user_nav .nav_item__dropdown:focus-within > .catalog_submenu {
    transform: translateY(0); opacity: 1; visibility: visible;
}
body .nav-section-title:focus-visible { outline: 3px solid #592c82; outline-offset: 3px; }
@media (max-width: 1365px) {
    .header_bottom .container .user_nav li .nav-section-title { font-size: 12px; }
}
@media (max-width: 991px) {
    .header_bottom .container .user_panel li button.gk-ui-action img { width: 20px; height: 20px; object-fit: contain; }
    .header_bottom .container .user_panel li button.gk-ui-action .amount { width: 12px; height: 12px; font-size: 8px; right: -5px; }
}

/* Category labels are plain headings; child navigation is always expanded. */
aside .aside-elem .catalog-section-title {
    margin: 0; font-size: 14px; color: #2d2a2a; font-weight: bold;
    display: flex; align-items: center; position: relative; justify-content: space-between;
}
aside .aside-elem > .catalog-section-title + .toggled-content { display: block; }
@media (max-width: 991px) { aside .aside-elem .catalog-section-title { font-size: 12px; } }

/* Keep the mobile logo centered independently of the optional hamburger. */
@media (max-width: 991px) {
    .header_bottom .container {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    }
    .header_bottom .container .menu_box { grid-column: 1; justify-self: start; }
    .header_bottom .container .header_center_nav { grid-column: 2; justify-self: center; margin: 0; }
    .header_bottom .container .user_panel { grid-column: 3; justify-self: end; }
    .header_bottom .container .header_center_nav .logo { margin: 0; }
}
