.products-grid {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 40px;
    gap: 0 0;
    /* justify-content: space-between; */
}

/* Модификатор: список (1 товар в строку) */
.products-grid.products-grid--list {
    flex-direction: column;
    gap: 12px;
    width: 100%;
}
.products-grid.products-grid--list .products__item {
    width: 100%;
    min-width: 100%;
}
.products-grid.products-grid--list .products__item-wrapper {
    display: grid;
    grid-template-columns: 260px 1fr minmax(240px, 320px);
    align-items: start;
    gap: 6px 24px;
    margin: 0; /* убираем боковые поля, чтобы занять всю ширину */
    width: 100%;
    grid-auto-rows: min-content;
}
@media (max-width: 1000px) {
    .products-grid.products-grid--list .products__item-wrapper {
        grid-template-columns: 160px 1fr minmax(200px, 260px);
    }
}
@media (max-width: 600px) {
    .products-grid.products-grid--list .products__item-wrapper {
        grid-template-columns: 120px 1fr;
        align-items: start;
    }
}
.products-grid.products-grid--list .products__item-image { grid-column: 1; grid-row: 1 / span 3; align-self: start; }
.products-grid.products-grid--list .products__item-slider-nav { grid-column: 1; grid-row: 3; align-self: end; z-index: 1; }
.products-grid.products-grid--list .products__item-info { grid-column: 2; grid-row: 1; display: flex; flex-direction: column; gap: 6px; }
.products-grid.products-grid--list .products__item-price { grid-column: 3; grid-row: 1; justify-self: end; align-self: start; }
.products-grid.products-grid--list .products__item-buy { grid-column: 3; grid-row: 2; justify-self: end; align-self: start; margin-top: 8px; }
@media (max-width: 1000px) {
    .products-grid.products-grid--list .products__item-price { grid-column: 2; justify-self: start; grid-row: 2; }
    .products-grid.products-grid--list .products__item-buy { grid-column: 2; justify-self: start; grid-row: 3; }
}

/* Стили для товаров в products-grid */
.products-grid .products__item {
    width: 25%;
    min-width: 25%;
}

@media screen and (max-width: 1000px) {
    .products-grid .products__item {
        width: calc(50% - 5px);
        min-width: calc(50% - 5px);
    }
}

@media screen and (max-width: 600px) {
    .products-grid .products__item {
        width: 100%;
        min-width: 100%;
    }
}

.products-grid .products__item-wrapper {
    margin: 0 12px;
    padding: 15px 20px;
    border-radius: 10px;
    transition: all 0.3s;
}



/* Стили для детальной страницы товара */

i.icon-copy,
i.icon-copy--name,
i.icon-copy--sku {
    background-image: url(../img/icon_copy.png);
    width: 18px; min-width: 18px;
    height: 18px;
    display: inline-block;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    left: 0; top: -16px;
    position: relative;
    cursor: pointer;
    transition: opacity 0.3s ease;
}
    @media screen and (max-width: 800px) {
        i.icon-copy,
        i.icon-copy--name,
        i.icon-copy--sku {
            left: 0; top: 0;
        }
    }

i.icon-copy:hover,
i.icon-copy--name:hover,
i.icon-copy--sku:hover {
    opacity: 0.7;
}

i.icon-copy--sku {
    left: 4px; top: 2px;
}

.product-detail {
    display: flex;
    flex-wrap: wrap;
    gap: 58px;
    margin: 0 0 64px 0;
    justify-content: space-between;
    align-items: start;
}
    .product-detail__left-side {
        display: flex;
        justify-content: space-between;
        flex: 1;
        gap: 58px;
    }
    @media screen and (max-width: 800px) {
        .product-detail__left-side {
            flex-direction: column;
        }
    }

.product-detail__gallery {
    position: sticky;
    top: 20px;
    height: fit-content;
    width: 54.5%;
}
    @media screen and (max-width: 800px) {
        .product-detail__gallery {
            /* position: inherit; */
            width: 100%;
        }
    }

    .product-detail__image {
        width: 100%;
        margin: 0 auto 16px auto;
    }

    .product-detail__image img {
        width: 100%;
        height: auto;
    }


.product-detail__tech-info {
    width: 45.5%;
}
    @media screen and (max-width: 800px) {
        .product-detail__tech-info {
            width: 100%;
        }
    }
    .product-detail__tech-info h3 {
        font-weight: 600;
        margin-bottom: 12px;
    }
    .product-detail__tech-info a.products__spec-link {
        font-size: 14px;
        text-decoration: underline;
    }

.product-detail__info {
    max-width: 472px;
    width: 100%;
    border: 1px solid #D0D0D0;    
    border-radius: 20px;
    overflow: hidden;
}
    @media screen and (max-width: 800px) {
        .product-detail__info {
            display: flex;
            flex-direction: column;
        }
            .product-detail__info .product-detail__info-personal-price-and-stock {order: 1;}
            .product-detail__info .product-detail__price-block {order: 5;}
            .product-detail__info .product-detail__info-credit {order: 20; margin-bottom: 0; border-bottom: 0;}
                .product-detail__info .product-detail__info-credit .product-detail__info-credit-2 {order: -1;}
            .product-detail__info .product-detail__actions {order: 10;}
            .product-detail__info .product-detail__actions-buy-now {order: 15;}
            .product-detail__info .product-detail__info-delivery {order: 25;}
    }
    .product-detail__info-login {
        font-size: 14px; text-align: center;
        background-color: #F7F7EC;
        padding: 10px 10px;
    }
        .product-detail__info-login a {text-decoration: underline;}

.product-detail__info-delivery {
    font-size: 14px;
    padding: 22px 30px;
    border-top: 1px dashed #B3B3B3;
}
    @media screen and (max-width: 800px) {
        .product-detail__info-delivery {
            padding: 16px 20px;
        }
    }
    .product-detail__info-delivery-1 {
        background: url(../img/ico_delivery_1.png) no-repeat left center;
        background-size: 19px auto;
        padding: 0 0 0 29px;
        margin-bottom: 12px;
    }
    .product-detail__info-delivery-2 {
        background: url(../img/ico_delivery_2.png) no-repeat left center;
        background-size: 19px auto;
        padding: 0 0 0 29px;
    }
        @media screen and (max-width: 800px) {
            .product-detail__info-delivery-1,
            .product-detail__info-delivery-2 {background-position: 0 3px; line-height: 1.3;}
                .product-detail__info-delivery-1 b,
                .product-detail__info-delivery-2 b {display: block;}
        }


.product-detail__sku {
    font-size: 14px;
    color: #999;
    margin-bottom: 10px;
}

.product-detail__title {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin: 0;
    line-height: 1.3;
}

.product-detail__price-block {
    margin: 0 30px 12px 30px;
}

.product-detail__price {
    font-size: 26px;
    font-weight: 700;
}


.product-detail__info-personal-price-and-stock {
    display: flex; flex-wrap: wrap;
    align-items: center;
    margin: 35px 30px 3px 30px;
    gap: 16px;
}
    @media screen and (max-width: 800px) {
        .product-detail__info-personal-price-and-stock {
            gap: 12px; margin: 0 20px 3px 20px;
        }

    }
    .product-detail__info-personal-price {
        font-size: 12px;
        color: #3DAA3B;
        background-color: #ECF7EC;
        border-radius: 5px;
        padding: 1px 8px;
    }
    .product-detail__info-stock {
        font-size: 14px;
        background: url(../img/ico_instock.png) no-repeat 0 54%;
        background-size: 9px auto;
        padding: 0 0 0 16px;
    }

    .product-detail__stock--available {}
    .product-detail__stock--unavailable {color: var(--main-orange);}

.product-detail__info-credit {
    font-size: 14px; line-height: 19px;
    margin: 0 0 30px 0;
    border-top: 1px dashed #B3B3B3;
    border-bottom: 1px dashed #B3B3B3;
    padding: 24px 30px;
    display: flex;
    gap: 16px;
    justify-content: space-between;
}
    @media screen and (max-width: 800px) {
        .product-detail__info-credit {
            padding: 16px 20px;
            flex-direction: column;
        }
    }
    .product-detail__info-credit a {text-decoration: underline;}
    .product-detail__info-credit-1 {
        background: url(../img/ico_credit_1.png) no-repeat 0 5px;
        background-size: 22px auto;
        padding: 0 0 0 38px;
    }
    .product-detail__info-credit-2 {
        background: url(../img/ico_credit_2.png) no-repeat 0 5px;
        background-size: 19px auto;
        padding: 0 0 0 38px;
    }


.product-detail__actions {
    display: flex;
    gap: 16px;
    align-items: center;
    margin: 0 30px 16px 30px;
}
    @media screen and (max-width: 800px) {
        .product-detail__actions {
            margin: 0 20px 16px 20px;
        }
    }
    .product-detail__actions .quantity-selector {
        border: 0; 
        border-radius: 10px;
    }
    .product-detail__actions .quantity-input {
        background-color: var(--main-grey);
        font-size: 18px;
        font-weight: 600;
        height: 48px;
        -moz-appearance: textfield;
    }
        .product-detail__actions .quantity-input::-webkit-inner-spin-button,
        .product-detail__actions .quantity-input::-webkit-outer-spin-button {
            -webkit-appearance: none;
            margin: 0;
        }
    .product-detail__actions .quantity-btn {
        background-color: var(--main-grey);
        font-size: 18px;
        font-weight: 600;
        height: 48px;
    }

.quantity-selector {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
}

.quantity-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: #f8f9fa;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 500;
    color: #333;
    transition: background 0.3s ease;
}

.quantity-input {
    width: 60px;
    height: 40px;
    border: none;
    text-align: center;
    font-size: 16px;
    outline: none;
}

.product-detail__actions-buy-now {
    display: block;
    text-align: center;
    font-size: 14px;
    background-color: var(--main-grey);
    margin: 0 30px 37px 30px;
    padding: 7px 24px;
    border-radius: 10px;
}
    @media screen and (max-width: 800px) {
        .product-detail__actions-buy-now {
            margin: 0 20px 16px 20px;
        }
    }

.main.product-main { padding-bottom: 0; }

.product-sticky-bar { display: none; }

@media screen and (max-width: 800px) {
    /* .main.product-main { padding-bottom: 180px; } */

    .product-sticky-bar {
        display: block;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 67px;
        background: #fff;
        box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.08);
        padding: 12px 0;
        z-index: 1050;
    }

    .product-sticky-bar__inner {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 0 20px;
    }

    .product-sticky-bar__price {
        font-size: 20px;
        font-weight: 700;
        line-height: 1.2;
        display: flex;
        align-items: baseline;
        gap: 8px;
    }

    .product-sticky-bar__btn {
        flex-shrink: 0;
        min-width: 200px;
    }
}

@media print {
    .product-sticky-bar {
        display: none;
    }
}
.btn--large.btn--primary {
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    flex: 1;
    min-width: 200px;
}
    .product-detail__secondary-actions-left-sku {
        font-size: 14px;
    }
        .product-detail__secondary-actions-left-sku .sku-label {
            display: inline;
        }
        .product-detail__secondary-actions-left-sku .sku-label-mob {
            display: none;
        }
        @media screen and (max-width: 800px) {
            .product-detail__secondary-actions-left-sku .sku-label {
                display: none;
            }
            .product-detail__secondary-actions-left-sku .sku-label-mob {
                display: inline;
            }
        }
    .product-detail__secondary-actions-left-actions {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        align-items: center;
    }
        @media screen and (max-width: 800px) {
            .product-detail__secondary-actions-left-actions {
                gap: 0;
            }
        }
        .product-detail__secondary-actions-left-actions a {
            font-size: 12px;
            border-radius: 5px;
            padding: 8px 20px 8px 44px;
            transition: all 0.3s ease;
        }
            @media screen and (max-width: 800px) {
                .product-detail__secondary-actions-left-actions a {
                    text-indent: -9999;
                    padding: 8px 20px 8px 33px;
                }
            }
        .product-detail__secondary-actions-left-actions a:hover,
        .product-detail__secondary-actions-left-actions a.active {
            background-color: var(--main-grey);
        }
        a.product-detail__secondary-actions-left-actions-favorite {
             background-image: url(../img/ico_favorites.svg);
             background-repeat: no-repeat;
             background-position: 20px 50%;
             background-size: 16px auto;
        }
            .product-detail__secondary-actions-left-actions a.product-detail__secondary-actions-left-actions-favorite.active,
            a.products__item-favorites--active {
                background-image: url(../img/ico_favorites_active.svg);
            }
        a.product-detail__secondary-actions-left-actions-compare {
            background-image: url(../img/ico_compare.svg);
            background-repeat: no-repeat;
            background-position: 20px 50%;
            background-size: 15px auto;
        }
        a.product-detail__secondary-actions-left-actions-print {
            background-image: url(../img/ico_print.svg);
            background-repeat: no-repeat;
            background-position: 20px 50%;
            background-size: 16px auto;
        }
            @media screen and (max-width: 800px) {
                a.product-detail__secondary-actions-left-actions-print {
                    display: none;
                }
            }
        a.product-detail__secondary-actions-left-actions-share {
            background-image: url(../img/ico_share.svg);
            background-repeat: no-repeat;
            background-position: 20px 50%;
            background-size: 16px auto;
        }
            @media screen and (max-width: 800px) {
                a.product-detail__secondary-actions-left-actions-share {
                    background-position: 12px 50%;
                }
            }

/* Выпадающее меню "Поделиться" */
.share-dropdown-wrapper {
    position: relative;
    display: inline-block;
}

.share-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 8px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 100;
    min-width: 200px;
    overflow: hidden;
}

.share-dropdown.active {
    display: block;
}

.share-dropdown__item,
.product-detail__secondary-actions-left-actions .share-dropdown__item {
    display: flex;
    align-items: center;
    padding: 8px 16px;
    font-size: 12px;
    color: #333;
    text-decoration: none;
    transition: background-color 0.2s ease;
    border-bottom: 1px solid #f0f0f0;
    background-image: none;
    text-indent: 0;
    border-radius: 0;
}

.share-dropdown__item:last-child {
    border-bottom: none;
}

.share-dropdown__item:hover {
    background-color: #f5f5f5;
}

.share-dropdown__icon {
    width: 20px;
    height: 20px;
    margin-right: 12px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    flex-shrink: 0;
}

.share-dropdown__icon--copy {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='9' y='9' width='13' height='13' rx='2' ry='2'%3E%3C/rect%3E%3Cpath d='M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1'%3E%3C/path%3E%3C/svg%3E");
}

.share-dropdown__icon--vk {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%230077FF' d='M12.785 16.241s.288-.032.436-.194c.136-.148.132-.427.132-.427s-.02-1.304.587-1.496c.596-.19 1.361 1.26 2.174 1.817.615.422 1.082.33 1.082.33l2.174-.03s1.137-.07.598-.964c-.044-.073-.314-.66-1.617-1.866-1.364-1.262-1.181-1.058.462-3.241.999-1.328 1.399-2.139 1.273-2.486-.12-.331-.859-.244-.859-.244l-2.448.015s-.182-.025-.316.056c-.132.079-.217.262-.217.262s-.39 1.038-.909 1.921c-1.096 1.864-1.534 1.962-1.714 1.846-.418-.269-.313-1.083-.313-1.661 0-1.805.274-2.558-.533-2.753-.268-.065-.465-.108-1.149-.115-.877-.008-1.619.003-2.04.209-.28.136-.496.441-.364.458.162.022.53.099.726.366.252.345.243 1.12.243 1.12s.145 2.125-.338 2.39c-.331.18-.785-.189-1.759-1.88-.499-.866-.876-1.824-.876-1.824s-.073-.178-.202-.273c-.158-.116-.378-.153-.378-.153l-2.325.015s-.349.01-.477.162c-.114.134-.009.412-.009.412s1.832 4.282 3.908 6.442c1.903 1.98 4.065 1.849 4.065 1.849h.98z'/%3E%3C/svg%3E");
}

.share-dropdown__icon--telegram {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%2326A5E4' d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm4.64 6.8c-.15 1.58-.8 5.42-1.13 7.19-.14.75-.42 1-.68 1.03-.58.05-1.02-.38-1.58-.75-.88-.58-1.38-.94-2.23-1.5-.99-.65-.35-1.01.22-1.59.15-.15 2.71-2.48 2.76-2.69.01-.03.01-.14-.05-.2-.06-.06-.16-.04-.23-.02-.09.02-1.49.95-4.22 2.79-.4.27-.76.41-1.08.4-.36-.01-1.04-.2-1.55-.37-.63-.2-1.12-.31-1.08-.66.02-.18.27-.36.74-.55 2.92-1.27 4.86-2.11 5.83-2.51 2.78-1.16 3.35-1.36 3.73-1.36.08 0 .27.02.39.12.1.08.13.19.14.27-.01.06.01.24 0 .37z'/%3E%3C/svg%3E");
}

.share-dropdown__icon--whatsapp {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%2325D366' d='M17.472 14.382c-.297-.149-1.758-.867-2.03-.967-.273-.099-.471-.148-.67.15-.197.297-.767.966-.94 1.164-.173.199-.347.223-.644.075-.297-.15-1.255-.463-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.298-.347.446-.52.149-.174.198-.298.298-.497.099-.198.05-.371-.025-.52-.075-.149-.669-1.612-.916-2.207-.242-.579-.487-.5-.669-.51-.173-.008-.371-.01-.57-.01-.198 0-.52.074-.792.372-.272.297-1.04 1.016-1.04 2.479 0 1.462 1.065 2.875 1.213 3.074.149.198 2.096 3.2 5.077 4.487.709.306 1.262.489 1.694.625.712.227 1.36.195 1.871.118.571-.085 1.758-.719 2.006-1.413.248-.694.248-1.289.173-1.413-.074-.124-.272-.198-.57-.347m-5.421 7.403h-.004a9.87 9.87 0 01-5.031-1.378l-.361-.214-3.741.982.998-3.648-.235-.374a9.86 9.86 0 01-1.51-5.26c.001-5.45 4.436-9.884 9.888-9.884 2.64 0 5.122 1.03 6.988 2.898a9.825 9.825 0 012.893 6.994c-.003 5.45-4.437 9.884-9.885 9.884m8.413-18.297A11.815 11.815 0 0012.05 0C5.495 0 .16 5.335.157 11.892c0 2.096.547 4.142 1.588 5.945L.057 24l6.305-1.654a11.882 11.882 0 005.683 1.448h.005c6.554 0 11.89-5.335 11.893-11.893a11.821 11.821 0 00-3.48-8.413z'/%3E%3C/svg%3E");
}

@media screen and (max-width: 800px) {
    .share-dropdown {
        left: auto;
        right: 0;
    }
}

.product-detail__secondary-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 24px 58px;
    margin-bottom: 36px;
    align-items: center;
}
    @media screen and (max-width: 1024px) {
        .product-detail__secondary-actions {
            flex-direction: column;
        }
    }

.product-detail__secondary-actions-left {
    flex: 1;
    display: flex; flex-wrap: wrap;
    gap: 10px 28px;
    align-items: center;
}
    @media screen and (max-width: 800px) {
        .product-detail__secondary-actions-left {
            gap: 10px;
            width: 100%;
            justify-content: space-between;
        }
    }

.product-detail__secondary-actions-right {
    max-width: 472px;
    width: 100%;
    display: flex;
    gap: 10px 40px;
    align-items: center;
}
    .product-detail__secondary-actions-right img {
        max-width: 135px;
        height: auto;
        max-height: 55px;
    }
    .product-detail__secondary-actions-right a {
        font-size: 14px;
        text-decoration: underline;
    }

.product-brand-mobile {
    display: none;
    align-items: center;
    gap: 16px;
}
    .product-brand-mobile img {
        max-width: 120px;
        max-height: 48px;
        height: auto;
    }
    .product-brand-mobile a {
        font-size: 14px;
        text-decoration: underline;
    }
@media screen and (max-width: 800px) {
    .product-detail__secondary-actions-right {
        display: none;
    }
    .product-brand-mobile {
        display: flex;
    }
}

.btn--icon-text {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
}

.btn--icon-text img {
    width: 16px;
    height: 16px;
}


.product-detail__description {
    display: flex;
    flex-wrap: wrap;
    gap: 96px;
    justify-content: space-between;
}
    @media screen and (max-width: 800px) {
        .product-detail__description {
            flex-direction: column;
            gap: 56px;
        }
    }
    .product-detail__left-column {
        flex: 1;
    }
    .product-detail__right-column {
        width: 45.5%;
        max-width: 472px;
    }
    @media screen and (max-width: 1024px) {
        .product-detail__right-column {
            width: 100%;
            max-width: 100%;
        }
    }
    .product-detail__right-block--questions {
        background-color: var(--main-grey);
        border-radius: 20px;
        margin-bottom: 60px;
        padding: 20px;
    }
        .product-detail__description .product-detail__right-block--questions h3 {font-size: 24px; margin: 0 0 24px 0;}
        @media screen and (max-width: 800px) {
            .product-detail__description .product-detail__right-block--questions h3 {font-size: 18px; margin: 0 0 16px 0;}
        }
        .product-detail__right-block--questions .product-detail__right-list--contacts {
            display: flex; flex-wrap: wrap;
            gap: 10px;
        }
            .product-detail__right-block--questions .product-detail__right-list--contacts a {
                font-size: 12px;
                color: #1C1C1C;
                background-color: #fff;
                border-radius: 5px;
                padding: 5px 15px 5px 40px;
            }
            @media screen and (max-width: 800px) {
                .product-detail__right-block--questions .product-detail__right-list--contacts a {
                    width: 100%;
                }
            }
            .product-detail__right-block--questions .product-detail__right-list--contacts a.product-detail__right-link--whatsapp {
                background-image: url(../img/ask_wa.png);
                background-repeat: no-repeat;
                background-position: 10px 50%;
                background-size: 15px auto;
            }
            .product-detail__right-block--questions .product-detail__right-list--contacts a.product-detail__right-link--telegram {
                background-image: url(../img/ask_tg.png);
                background-repeat: no-repeat;
                background-position: 10px 50%;
                background-size: 18px auto;
            }
            .product-detail__right-block--questions .product-detail__right-list--contacts a.product-detail__right-link--phone {
                background-image: url(../img/ask_call.png);
                background-repeat: no-repeat;
                background-position: 10px 50%;
                background-size: 18px auto;
            }
            .product-detail__right-block--questions .product-detail__right-list--contacts a.product-detail__right-link--max {
                background-image: url(../img/mah.png);
                background-repeat: no-repeat;
                background-position: 10px 50%;
                background-size: 18px auto;
            }
    .product-detail__right-block--docs {
        margin-bottom: 60px;
        padding: 0 30px;
    }
        .product-detail__description .product-detail__right-block--docs h3 {font-size: 18px; margin: 0 0 24px 0;}
            .product-detail__right-block--docs .product-detail__right-list--docs a {
                display: block;
                background-image: url(../img/ico_download.png);
                background-repeat: no-repeat;
                background-position: 0 50%;
                background-size: 17px auto;
                padding: 0 0 0 31px;
                font-size: 14px; text-decoration: underline;
                margin-bottom: 10px;
            }
    .product-detail__right-block--services {
        background-color: #F7F7EC;
        background-image: url(../img/bg_services.png);
        background-size: 120px auto;
        background-repeat: no-repeat;
        background-position: 98% 5px;
        border-radius: 20px;
        padding: 30px;
    }
        .product-detail__description .product-detail__right-block--services h3 {font-size: 24px; margin: 0 0 24px 0;}
        .product-detail__right-block--services-list {
            font-size: 14px;
            line-height: 1.6;
            color: #666;
        }
            .product-detail__right-block--services-list-item {
                margin-bottom: 12px;
            }
            .product-detail__right-block--services-list a {text-decoration: underline;}

.product-detail__description {
    margin-top: 64px;
}

.product-detail__description h3 {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 15px;
    color: #333;
}

.description-content {
    font-size: 16px;
    line-height: 1.6;
    color: #666;
}

.description-read-more {
    display: inline-block;
    margin-top: 12px;
    border-bottom: 1px dashed #0054a6;
}

@media (min-width: 800px) {
    .description-read-more {
        display: none;
    }
}

.product-additional {
    padding-top: 60px;
}
    h3.characteristics-title {
        font-size: 24px;
        font-weight: 600;
        margin-bottom: 40px;
    }

.product-tabs__nav {
    display: flex;
    border-bottom: 1px solid #eee;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--main-orange);
}



/* Стили для характеристик в детальной карточке товара */
    @media screen and (max-width: 800px) {
        .product-detail__left-side {gap:0;}
        .product-detail__tech-info-item {display: none;}
    }
.product-detail__tech-info .products__spec {
    font-size: 16px;
    margin-bottom: 10px;
}

/* Стили для характеристик в полном блоке характеристик */
.product-additional .products__spec {
    font-size: 16px;
    margin-bottom: 10px;
}

/* Характеристики в 2 столбца в блоке product-additional */
.characteristics-category {
    margin-bottom: 16px;
}
h4.characteristics-category__title {
    margin-bottom: 16px;
    font-size: 18px;
}
.product-additional .products__specs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 96px;
}

/* Адаптивность - на мобильных устройствах в 1 столбец */
@media (max-width: 800px) {
    .product-additional .products__specs {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

.characteristics-table {
    width: 100%;
    border-collapse: collapse;
}

.characteristics-table td {
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    font-size: 16px;
}

.characteristics-table td:first-child {
    font-weight: 500;
    color: #333;
    width: 30%;
}

.characteristics-table td:last-child {
    color: #666;
}



/* Стили для корзины */
.cart-table-wrapper {
    overflow-x: auto;
    margin-bottom: 30px;
}

.cart-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.cart-table th {
    background: #f8f9fa;
    padding: 15px 10px;
    text-align: left;
    font-weight: 600;
    color: #333;
    border-bottom: 1px solid #eee;
}

.cart-table td {
    padding: 20px 10px;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
}

.cart-table__header-checkbox,
.cart-table__cell-checkbox {
    width: 40px;
    text-align: center;
    padding: 15px 10px;
}

.cart-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--main-orange);
}

.cart-checkbox:hover {
    opacity: 0.8;
}

.cart-item__image {
    width: 60px;
    height: 60px;
    border-radius: 4px;
    overflow: hidden;
}

.cart-item__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item__name {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 5px;
}

.cart-item__name a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.cart-item__name a:hover {
    color: var(--main-orange);
}

.cart-item__sku {
    font-size: 12px;
    color: #999;
    margin-bottom: 5px;
}

.cart-item__warning {
    font-size: 12px;
    color: #dc3545;
    background: #f8d7da;
    padding: 4px 8px;
    border-radius: 4px;
    display: inline-block;
}

.cart-item__price {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.quantity-selector {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
    width: fit-content;
}

.quantity-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: #f8f9fa;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: background 0.3s ease;
}

.quantity-btn:hover {
    background: #e9ecef;
}

.quantity-input {
    width: 50px;
    height: 32px;
    border: none;
    text-align: center;
    font-size: 14px;
    outline: none;
}

.cart-item__subtotal {
    font-size: 16px;
    font-weight: 600;
    color: var(--main-orange);
}

.cart-item__favorite {
    width: 32px;
    height: 32px;
    border: none;
    background: #fff;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    background-image: url(../img/ico_favorites.svg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 16px auto;
}

.cart-item__favorite:hover {
    background-color: #e9ecef;
}

.cart-item__favorite--active {
    background-image: url(../img/ico_favorites_active.svg);
}

.cart-item__favorite--active:hover {
}

.cart-item__remove {
    width: 32px;
    height: 32px;
    border: none;
    background: #f8f9fa;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #dc3545;
    transition: all 0.3s ease;
}

.cart-item__remove:hover {
    background: #dc3545;
    color: white;
}

/* Мобильное отображение таблицы корзины */
@media screen and (max-width: 800px) {
    .cart-table {
        border: none;
        box-shadow: none;
    }

    .cart-table thead {
        display: none;
    }

    .cart-table tbody {
        display: flex;
        flex-direction: column;
        gap: 14px;
    }

    .cart-table tr {
        display: grid;
        position: relative;
        grid-template-columns: minmax(80px, 110px) 1fr auto;
        grid-template-areas:
            "checkbox checkbox checkbox"
            "image name name"
            "price quantity subtotal";
        column-gap: 12px;
        row-gap: 10px;
        padding: 14px 14px 12px;
        border: 1px solid #eee;
        border-radius: 10px;
        box-shadow: 0 2px 6px rgba(0,0,0,0.04);
    }

    .cart-table td {
        padding: 6px 0;
        border-bottom: none;
    }

    .cart-table td[data-label]::after {
        content: attr(data-label);
        display: block;
        font-size: 12px;
        color: #888;
        margin-bottom: 4px;
        font-weight: 500;
    }

    .cart-table__cell-checkbox {
        grid-area: checkbox;
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .cart-table__cell-image::after,
    .cart-table__cell-name::after,
    .cart-table__cell-favorite::after,
    .cart-table__cell-remove::after {
        display: none !important;
        content: none !important;
    }

    .cart-table__cell-image {
        grid-area: image;
    }

    .cart-item__image {
        width: 96px;
        height: 96px;
    }

    .cart-table__cell-name {
        grid-area: name;
    }

    .cart-item__name {
        font-size: 15px;
    }

    .cart-table__cell-price {
        grid-area: price;
        align-self: center;
        padding-right: 6px;
        text-align: left;
    }

    .cart-table__cell-quantity {
        grid-area: quantity;
        align-self: center;
        justify-self: start;
    }

    .cart-table__cell-subtotal {
        grid-area: subtotal;
        text-align: right;
        align-self: center;
    }

    .cart-item__price,
    .cart-item__subtotal {
        font-size: 15px;
    }

    .quantity-selector {
        max-width: 240px;
        width: auto;
    }
    .quantity-input {width: 30px;}

    .cart-table__cell-favorite {
        position: absolute;
        top: 7px;
        right: 46px;
        display: flex;
        align-items: center;
        padding: 0;
        margin: 0;
    }

    .cart-table__cell-remove {
        position: absolute;
        top: 7px;
        right: 6px;
        display: flex;
        align-items: center;
        padding: 0;
        margin: 0;
    }
}

.cart-layout {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.cart-table-wrapper {
    flex: 1;
    min-width: 0;
}

.cart-summary {
    flex-shrink: 0;
    width: 300px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 20px;
}

.cart-actions {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.cart-summary__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 20px;
}

.cart-summary__actions .btn,
.cart-summary__actions .btn--secondary {
    padding: 12px 24px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: var(--main-grey);
    color: #333;
    display: inline-block;
}

.cart-summary__actions .btn:hover,
.cart-summary__actions .btn--secondary:hover {
    background-color: #d5d5d5;
    transform: translateY(-1px);
}

.cart-summary__login-banner {
    font-size: 14px;
    background-color: #F7F7EC;
    padding: 12px 15px;
    border-radius: 4px;
    margin-bottom: 15px;
    line-height: 1.5;
}

.cart-summary__login-banner-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.cart-summary__login-banner-text-wrapper {
    flex: 1;
}

.cart-summary__login-banner h3 {
    margin: 0 0 5px 0;
    font-size: 16px;
}

.cart-summary__login-banner-text {
    display: block;
}

.cart-summary__login-banner a {
    text-decoration: underline;
    color: inherit;
    white-space: nowrap;
}

.cart-summary__login-banner a:hover {
    color: var(--main-orange);
}

@media screen and (max-width: 800px) {
    .cart-summary__login-banner-content {
        display: grid;
        grid-template-columns: 1fr auto;
        grid-template-rows: auto auto;
        gap: 0;
    }
    .cart-summary__login-banner-text-wrapper {
        display: contents;
    }
    .cart-summary__login-banner h3 {
        font-size: 14px;
        margin-bottom: 0;
        grid-column: 1;
        grid-row: 1;
    }
    .cart-summary__login-banner a.btn {
        padding: 6px 17px;
        grid-column: 2;
        grid-row: 1;
    }
    .cart-summary__login-banner-text {
        grid-column: 1 / -1;
        grid-row: 2;
        margin-top: 12px;
    }
}

.cart-summary__totals {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.cart-summary__checkout-btn {
    text-align: center;
}

.cart-summary__promocode {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.cart-summary__promocode-input-wrapper {
    display: flex;
    gap: 6px;
}

.cart-summary__promocode-input {
    flex: 1;
    min-width: 0;
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 13px;
    outline: none;
    transition: all 0.3s ease;
    max-width: 100%;
}

.cart-summary__promocode-input:focus {
    border-color: var(--main-orange);
    box-shadow: 0 0 0 3px rgba(223, 89, 49, 0.1);
}

.cart-summary__promocode-input:focus + .cart-summary__promocode-btn {
    background-color: var(--main-orange);
    color: #fff;
}

.cart-summary__promocode-input::placeholder {
    color: #999;
}

.cart-summary__promocode-btn {
    padding: 8px 14px;
    background-color: var(--main-grey);
    border: none;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.cart-summary__promocode-btn:hover {
    background-color: #d5d5d5;
    transform: translateY(-1px);
}

.cart-summary__promocode-btn:active {
    transform: translateY(0);
}

.cart-summary__promocode-message {
    font-size: 12px;
    padding: 6px 10px;
    border-radius: 4px;
    display: none;
}

.cart-summary__promocode-message.success {
    display: block;
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.cart-summary__promocode-message.error {
    display: block;
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.cart-summary__promocode-cancel-wrapper {
    text-align: right;
    margin-top: 5px;
}

.cart-summary__promocode-cancel {
    font-size: 12px;
    color: #999;
    text-decoration: underline;
    cursor: pointer;
    display: inline-block;
    transition: color 0.3s ease;
}

.cart-summary__promocode-cancel:hover {
    color: #dc3545;
    text-decoration: none;
}

.cart-summary__shipping-note {
    margin: 0;
    padding: 0;
    font-size: 12px;
    color: #999;
    text-align: center;
    line-height: 1.4;
}

.cart-summary__breakdown {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-bottom: 15px;
    border-bottom: 2px solid #eee;
}

.cart-summary__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 15px;
}

.cart-summary__row-label {
    color: #666;
    font-weight: 400;
}

.cart-summary__row-value {
    color: #333;
    font-weight: 500;
}

.cart-summary__row--discount .cart-summary__row-value {
    color: #28a745;
    font-weight: 600;
}

.cart-summary__row--promocode .cart-summary__row-label {
    font-size: 13px;
}

.cart-summary__row--promocode .cart-summary__row-value {
    color: #17a2b8;
    font-weight: 600;
}

.cart-summary__row--total {
    margin-top: 8px;
    padding-top: 12px;
    border-top: 1px solid #eee;
}

.cart-summary__row--total .cart-summary__row-label {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.cart-summary__row--total .cart-summary__row-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--main-orange);
}

/* Старые стили для совместимости */
.cart-total {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding-bottom: 15px;
    border-bottom: 2px solid #eee;
}

.cart-total__label {
    font-size: 18px;
    font-weight: 500;
    color: #333;
}

.cart-total__amount {
    font-size: 24px;
    font-weight: 700;
    color: var(--main-orange);
}

/* Адаптивный дизайн корзины */
@media screen and (max-width: 1000px) {
    .cart-layout {
        flex-direction: column;
    }
    
    .cart-table-wrapper {
        width: 100%;
    }
    
    .cart-summary {
        width: 100%;
        position: static;
    }
    
    .cart-summary__actions {
        justify-content: center;
    }
}

@media screen and (max-width: 800px) {
    .cart-summary__actions {
        flex-direction: column;
    }
    
    .cart-summary__actions .btn {
        width: 100%;
        text-align: center;
    }

    .cart-btn-desktop {
        display: none !important;
    }
}

.empty-cart {
    text-align: center;
    padding: 80px 20px;
    background: white;
    border-radius: 8px;
    /* box-shadow: 0 2px 10px rgba(0,0,0,0.1); */
}

.empty-cart__icon {
    color: #ccc;
    margin-bottom: 20px;
}

.empty-cart__title {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin: 0 0 10px;
}

.empty-cart__text {
    color: #666;
    margin-bottom: 30px;
}

/* Toast уведомления */
.toast-container {
    position: fixed;
    top: 150px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background: white;
    border-radius: 8px;
    padding: 15px 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-left: 4px solid var(--main-orange);
    opacity: 0;
    transform: translateX(100%);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.toast.show {
    opacity: 1;
    transform: translateX(0);
}

@media (max-width: 800px) {
    .toast-container {
        top: auto;
        right: 0;
        left: 0;
        bottom: 0;
        padding: 10px;
        z-index: 99909;
        font-size: 0.8em;
        line-height: 1.2;
    }

    .toast {
        width: 100%;
        box-sizing: border-box;
        transform: translateY(110%);
    }

    .toast.show {
        transform: translateY(0);
    }
}

.toast.error {
    border-left-color: #dc3545;
}

.toast.success {
    border-left-color: #28a745;
}

/* Когда весь toast — ссылка на /cart, /favorites или /compare */
a.toast,
.toast--link {
    display: block;
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

a.toast:hover,
.toast--link:hover {
    text-decoration: none;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* Компактный контент тоста с товаром */
.toast-product {
    display: grid;
    grid-template-columns: 48px 1fr;
    grid-column-gap: 12px;
    align-items: center;
}

.toast-product__media {
    width: 48px;
    height: 48px;
    border-radius: 6px;
    overflow: hidden;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toast-product__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.toast-product__content {
    min-width: 0;
}

.toast-product__title {
    font-weight: 600;
    margin: 0 0 2px;
    color: #111;
}

.toast-product__name {
    display: block;
    font-size: 14px;
    color: #333;
    text-decoration: none;
    margin: 0 0 4px;
}

.toast-product__price {
    font-weight: 700;
    color: #111;
    font-size: 14px;
}

/* Стили для цен распродажи */
.price-old {
    text-decoration: line-through;
    color: #999;
    font-size: 14px;
    margin-right: 8px;
}

.price-sale {
    /* color: #dc3545; */
    font-weight: 700;
    font-size: 18px;
}

.discount-badge {
    background: #dc3545;
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 5px;
    font-weight: 600;
}

.discount-badge-large {
    background: #dc3545;
    color: white;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 4px;
    margin: 5px 0;
    display: inline-block;
    font-weight: 600;
}

.savings-amount {
    color: #28a745;
    font-size: 14px;
    font-weight: 600;
    margin-top: 5px;
}

/* Стили для карточек товаров в распродаже */
.product-card__price .price-old {
    display: block;
    font-size: 14px;
    margin-bottom: 2px;
}

.product-card__price .price-sale {
    display: block;
    font-size: 18px;
    color: #dc3545;
}

.product-card__price .discount-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
}

.product-card__image {
    position: relative;
}

/* Стили для детальной страницы товара */
.product-detail__price .price-old {
    font-size: 14px;
    text-decoration: line-through;
    font-weight: 400;
}

.product-detail__price .price-sale {
    font-size: 26px;
}

/* Адаптивные стили для мобильных устройств */
@media (max-width: 800px) {
    .product-detail__price .price-sale {
        font-size: 24px;
    }
    
    .savings-amount {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .product-card__price .price-sale {
        font-size: 16px;
    }
    
    .product-card__price .price-old {
        font-size: 12px;
    }
    
    .discount-badge {
        font-size: 9px;
        padding: 1px 4px;
    }
}

/* Стили для подкатегорий */
.subcategories {
    margin: 30px 0 100px 0;
    padding-bottom: 50px;
    border-bottom: 1px solid #d0d0d0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 52px 21px;
}

.subcategory-section {
    margin-bottom: 0;
}

.subcategory-image {
    height: 190px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--main-grey);
    border-radius: 10px;
    background-size: auto 140px;
    background-position: center;
    background-repeat: no-repeat;
    transition: all 0.3s ease;
    overflow: hidden;
}
    @media (max-width: 800px) {
        .subcategory-image {
            height: 100px;
        }
    }

.subcategory-image__img {
    width: auto;
    height: 140px;
    transition: all 0.3s ease;
}
    @media (max-width: 800px) {
        .subcategory-image__img {
            height: 60px;
        }
    }

.subcategory-section:hover .subcategory-image {
    background-size: auto 145px;
}

.subcategory-section:hover .subcategory-image__img {
    transform: scale(1.05);
}

/* Fallback стили для категорий без изображений в БД */
/* .category-1 .subcategory-image {background-image: url(../img/cat-1.png);}
.category-8 .subcategory-image {background-image: url(../img/cat-2.png);}
.category-9 .subcategory-image {background-image: url(../img/cat-3.png);}
.category-10 .subcategory-image {background-image: url(../img/cat-4.png);}
.category-11 .subcategory-image {background-image: url(../img/cat-5.png);}
.category-12 .subcategory-image {background-image: url(../img/cat-6.png);}
.category-13 .subcategory-image {background-image: url(../img/cat-7.png);} */

.subcategory-main-title {
    margin: 0 0 15px 0;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
}

.subcategory-main-title a {
    color: #333;
    text-decoration: none;
    font-weight: 700;
}

.subcategory-main-title a:hover {
    color: var(--main-orange);
}
.subcategory-count {
    font-weight: 400;
    color: #DF5931;
    font-size: 0.75em;
    vertical-align: super;
}

.subcategory-children {
    list-style: none;
    padding: 0;
    margin: 0;
}

.subcategory-child {
}

.subcategory-child a {
    color: #666;
    text-decoration: none;
    font-size: 14px;
    display: block;
    transition: color 0.3s ease;
}

.subcategory-child a:hover {
    color: var(--main-orange);
}

/* Скрытие лишних пунктов подкатегорий на каталоге */
.subcategory-child--hidden {display:none;}

@media (max-width: 1024px) {
    .subcategories {
        grid-template-columns: repeat(3, 1fr);
        gap: 40px 16px;
    }
}

@media (max-width: 800px) {
    .subcategories {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px 10px;
    }
    
    .subcategory-main-title {
        font-size: 12px;
        margin-bottom: 12px;
    }
    .subcategory-main-title a {
        font-weight: 500;
    }
    .subcategory-child a {
        font-size: 13px;
    }
    
    .subcategory-child {
        margin-bottom: 6px;
    }
    
    .subcategories .subcategory-children,
    .subcategories .show-all-toggle {
        display: none;
    }
}

@media (max-width: 480px) {
    .subcategories {
        grid-template-columns: repeat(3, 1fr);
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 16px 10px;
    }
    
    .subcategory-main-title {
        font-size: 13px;
    }
    
    .subcategory-section {
        margin-bottom: 0;
        overflow-wrap: break-word;
        /* word-break: break-all; */
    }
}

/* Стили для пагинации */
.pagination-container {
    display: flex;
    justify-content: center;
    margin: 60px 0 40px;
}

.pagination-nav {
    display: flex;
    align-items: center;
}

.pagination-buttons {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: thin;
}

.pagination-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    border: none;
    background: white;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
}

.pagination-btn:hover {
    color: var(--main-orange);
}

.pagination-btn--active {
    background: #333;
    color: white !important;
    cursor: default;
}

.pagination-btn--active:hover {
    background: #333;
    color: white;
}

.pagination-btn--disabled {
    background: #f8f9fa;
    color: #ccc;
    cursor: not-allowed;
}

.pagination-btn--disabled:hover {
    background: #f8f9fa;
    color: #ccc;
}

.pagination-btn--dots {
    background: none;
    color: #999;
    cursor: default;
}

.pagination-btn--dots:hover {
    background: none;
    color: #999;
}

.pagination-arrow {
    width: 12px;
    height: 12px;
    opacity: 0.7;
}

.pagination-btn--prev .pagination-arrow {
    margin-right: 2px;
}

.pagination-btn--next .pagination-arrow {
    margin-left: 2px;
}

.pagination-btn--disabled .pagination-arrow {
    opacity: 0.3;
}

/* Адаптивность для пагинации */
@media (max-width: 800px) {
    .pagination-container {
        margin: 40px 0 30px;
    }
    
    .pagination-btn {
        min-width: 36px;
        height: 36px;
        padding: 0 8px;
        font-size: 13px;
    }
    
    .pagination-buttons {
        flex-wrap: nowrap;
        gap: 6px;
    }
}

@media (max-width: 480px) {
    .pagination-btn {
        min-width: 32px;
        height: 32px;
        padding: 0 6px;
        font-size: 12px;
    }
    
    .pagination-buttons {
        flex-wrap: nowrap;
        gap: 4px;
    }
    
    .pagination-arrow {
        width: 10px;
        height: 10px;
    }
}

/* Стили для избранного: сетка гостей — те же брейкпоинты, что и каталог (2 в строке на мобильных) */
#guest-favorites-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px 0;
}

#guest-favorites-container .products-grid .products__item {
    width: calc(25% - 9px);
    min-width: calc(25% - 9px);
}

/* В режиме списка — всегда 1 элемент на строку (ID-селектор не должен мешать) */
#guest-favorites-container .products-grid.products-grid--list .products__item {
    width: 100% !important;
    min-width: 100% !important;
    flex: 0 0 100% !important;
}

@media screen and (max-width: 1200px) {
    #guest-favorites-container .products-grid .products__item {
        width: calc(33.333% - 8px);
        min-width: calc(33.333% - 8px);
    }
}

@media screen and (max-width: 900px) {
    #guest-favorites-container .products-grid .products__item {
        width: calc(50% - 6px);
        min-width: calc(50% - 6px);
    }
}

@media screen and (max-width: 600px) {
    #guest-favorites-container .products-grid .products__item {
        width: calc(50% - 6px);
        min-width: calc(50% - 6px);
    }
}
.header__icon-link--favorites {
    position: relative;
}

.header__compare-badge,
.header__favorites-badge {
    position: absolute;
    top: -14px;
    right: -13px;
    background: var(--main-orange);
    color: var(--white);
    font-size: 10px;
    font-family: var(--main-font);
    font-weight: 700;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* Стили для бейджа в заголовках страниц сравнения и избранного */
.page-title {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.page-title-badge {
    background: var(--main-orange);
    color: var(--white);
    font-size: 16px;
    font-family: var(--main-font);
    font-weight: 700;
    border-radius: 50%;
    min-width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.products__item-favorites--active,
.products__item-compare--active {
    background-color: var(--main-grey);
}

.products__item-favorites--active:before {
}

/* Стили для страницы избранного */
.favorites-actions {
    display: flex; gap: 20px;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.compare-actions .btn-outline-danger,
.favorites-actions .btn-outline-danger,
.cart-summary .btn--secondary {
    padding: 12px 24px;
    border: 0;
    background-color: var(--main-grey);
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* Чёрный цвет текста кнопки «Очистить избранное» — переопределение дефолтного синего в мобильных браузерах */
.favorites-actions .btn-outline-danger,
.favorites-actions .btn-outline-danger:hover,
.favorites-actions .btn-outline-danger:active,
.favorites-actions .btn-outline-danger:focus {
    color: #000000 !important;
    -webkit-text-fill-color: #000000;
}

.cart-summary .btn--secondary:hover {
    background-color: #d5d5d5;
    transform: translateY(-1px);
}

/* Кнопки действий (Печать, Поделиться) */
.favorites-actions-buttons,
.compare-actions-buttons {
    display: flex;
    gap: 8px;
    align-items: center;
}

.action-button,
.action-button:link,
.action-button:visited,
.action-button:hover,
.action-button:active,
.action-button:focus {
    font-size: 12px;
    border-radius: 5px;
    padding: 8px 20px 8px 44px;
    transition: all 0.3s ease;
    background-repeat: no-repeat;
    background-position: 20px 50%;
    text-decoration: none;
    color: #000000 !important;
    -webkit-text-fill-color: #000000;
}
    @media screen and (max-width: 800px) {
        .action-button {
            padding: 8px 16px 8px 44px;
        }
    }

.action-button:hover {
    background-color: var(--main-grey);
}

.action-button--print {
    background-image: url(../img/ico_print.svg);
    background-size: 16px auto;
}

.action-button--share {
    background-image: url(../img/ico_share.svg);
    background-size: 16px auto;
}

@media screen and (max-width: 800px) {
    .action-button {
        text-indent: -9999px;
        padding: 8px 20px 8px 40px;
    }
    .action-button--print {
        display: none;
    }
}

.favorites-count {}

.favorites-empty {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
    text-align: center;
}

.favorites-empty__content img {
    margin-bottom: 20px;
    opacity: 0.3;
}

.favorites-empty__content h2 {
    color: #333;
    margin-bottom: 10px;
    font-size: 24px;
}

.favorites-empty__content p {
    color: #666;
    margin-bottom: 20px;
    font-size: 16px;
    max-width: 400px;
}

.favorites-empty .btn {
    display: inline-block;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

/* ===== СТИЛИ СТРАНИЦЫ СРАВНЕНИЯ ТОВАРОВ ===== */

.compare-table-wrapper {
    margin: 20px 0;
    overflow-x: auto;
}

.compare-table {
    display: table;
    width: 100%;
    min-width: 800px;
    border-collapse: collapse;
}

.compare-row {
    display: table-row;
    /* border-bottom: 1px solid #eee; */
}

.compare-row:hover {
}

.compare-cell {
    display: table-cell;
    padding: 15px 10px;
    vertical-align: top;
    border-right: 1px solid #eee;
}

.compare-cell:last-child {
    border-right: none;
}
.compare-group-row[data-label]::before {
    /* border-top: 1px solid #eee; */
}


.compare-label {
    background-color: #fff;
    font-weight: 500;
    width: 200px;
    min-width: 200px;
    position: sticky;
    left: 0;
    z-index: 10;
}

.compare-header {
    background-color: #fff;
}

.compare-header .compare-label {
}

/* Заголовок группы характеристик в таблице сравнения */
.compare-group-header {
    cursor: pointer;
    user-select: none;
    transition: background-color 0.2s ease;
    font-size: 1.17em; font-weight: 700;
}

.compare-group-title {
    padding: 12px 10px;
}
    .compare-cell.compare-group-title {border-bottom: 0;}

.compare-group-toggle-icon {
    display: inline-block;
    margin-right: 8px;
    font-size: 12px;
    color: #666;
    transition: transform 0.2s ease;
}

.compare-group-collapsed .compare-group-toggle-icon {
    color: #999;
}

.compare-product {
    width: 250px;
    min-width: 250px;
}

.compare-product-card {
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.compare-product-info {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
}

.compare-product-corner-actions {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
    z-index: 5;
}
    @media screen and (max-width: 800px) {
        .compare-product-corner-actions {
            top: -15px;
        }
    }

.compare-product-image {
    margin-bottom: 10px;
}

.compare-product-image img {
    width: 120px;
    height: 120px;
    object-fit: contain;
    border-radius: 4px;
}

.compare-product-name {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.3;
}

.compare-product-name a {
    color: #333;
    text-decoration: none;
}

.compare-product-name a:hover {
    color: var(--main-orange);
}

.compare-product-price {
    margin-bottom: 8px;
}

.compare-product-sku {
    font-size: 12px;
    color: #666;
    margin-bottom: 15px;
}

.compare-add-to-cart-btn {
    padding: 12px 16px;
    background: linear-gradient(85.88deg, rgba(153, 19, 0, 0.2) 0%, rgba(223, 89, 49, 0.2) 71.49%, rgba(248, 165, 48, 0.2) 93.31%), var(--main-orange);
    color: #fff !important;
    text-decoration: none;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    border-radius: var(--main-radius, 4px);
    transition: all 0.3s ease;
    box-sizing: border-box;
    margin-top: auto;
}

.compare-add-to-cart-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(223, 89, 49, 0.3);
    color: #fff;
}

.compare-product-actions {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 8px;
}

/* Иконки действий в сравнении (аналогично каталогу) */
.compare-action-btn {
    display: block;
    width: 28px;
    height: 28px;
    border-radius: var(--main-radius, 5px);
    background-repeat: no-repeat;
    background-position: center;
    transition: all 0.3s ease;
}

.compare-action-cart {
    background: linear-gradient(85.88deg, rgba(153, 19, 0, 0.2) 0%, rgba(223, 89, 49, 0.2) 71.49%, rgba(248, 165, 48, 0.2) 93.31%), var(--main-orange);
    background-image: url(../img/ico_buy.png);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 18px auto;
}

.compare-action-cart:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(223, 89, 49, 0.3);
}

.compare-action-favorites {
    background-color: #fff;
    border: 1px solid #eee;
    background-image: url(../img/ico_favorites.svg);
    background-size: 16px auto;
}

.compare-action-favorites:hover {
    background-color: var(--main-grey, #f5f5f5);
}

.compare-action-favorites--active,
.compare-action-favorites.compare-action-favorites--active {
    background-image: url(../img/ico_favorites_active.svg);
}

.compare-action-remove {
    background-color: #fff;
    border: 1px solid #eee;
    background-image: url(../img/ico_trash.svg);
    background-size: 16px auto;
}

.compare-action-remove:hover {
    background-color: #fee;
    border-color: #fcc;
}

/* Панель фильтрации сравнения */
.compare-filter-panel {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 15px 0;
    margin-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.compare-filter-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
}

.compare-filter-checkbox input[type="checkbox"] {
    display: none;
}

.compare-filter-checkbox__checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #ccc;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.compare-filter-checkbox__checkmark::after {
    content: '';
    width: 10px;
    height: 6px;
    border-left: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(-45deg) translateY(-1px);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.compare-filter-checkbox input[type="checkbox"]:checked + .compare-filter-checkbox__checkmark {
    background-color: var(--main-orange);
    border-color: var(--main-orange);
}

.compare-filter-checkbox input[type="checkbox"]:checked + .compare-filter-checkbox__checkmark::after {
    opacity: 1;
}

.compare-filter-checkbox__label {
    font-size: 14px;
    color: #333;
}

.compare-filter-checkbox__label--mobile {
    display: none;
}

@media screen and (max-width: 800px) {
    .compare-filter-checkbox__label--desktop {
        display: none;
    }
    .compare-filter-checkbox__label--mobile {
        display: inline;
    }
}

.compare-filter-checkbox:hover .compare-filter-checkbox__checkmark {
    border-color: var(--main-orange);
}

.compare-clear-category-btn {
    padding: 8px 12px 8px 34px;
    font-size: 14px;
    border: none;
    color: #666;
    border-radius: var(--main-radius, 4px);
    cursor: pointer;
    transition: all 0.2s ease;
    background: var(--main-grey, #f5f5f5);
    background-image: url(../img/ico_trash.svg);
    background-repeat: no-repeat;
    background-position: 12px center;
    background-size: 16px auto;
}

/* Скрытие строк без отличий */
.compare-row.compare-row--hidden {
    display: none !important;
}

/* Скрытие пустых заголовков групп */
.compare-group-header.compare-group-header--empty {
    display: none !important;
}

/* Стили кнопок в сравнении - аналогично основным кнопкам сайта */
.compare-product-actions .btn {
    padding: 12px 16px;
    border: none;
    border-radius: var(--main-radius, 4px);
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    text-align: center;
}

.compare-product-actions .btn-primary {
    background: linear-gradient(85.88deg, rgba(153, 19, 0, 0.2) 0%, rgba(223, 89, 49, 0.2) 71.49%, rgba(248, 165, 48, 0.2) 93.31%), var(--main-orange);
    color: white;
}

.compare-product-actions .btn-primary:hover {
    background: var(--main-orange);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(223, 89, 49, 0.3);
}

.compare-product-actions .btn-outline-danger {
    background: none;
}

.compare-product-actions .btn-outline-danger:hover {
}

.compare-actions {
    display: flex; gap: 20px;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.compare-actions .btn-outline-danger {
    padding: 12px 24px 12px 48px;
    border: none;
    background: var(--main-grey, #f5f5f5);
    background-image: url(../img/ico_trash.svg);
    background-repeat: no-repeat;
    background-position: 20px center;
    background-size: 16px auto;
    color: #666;
    border-radius: var(--main-radius, 4px);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

@media screen and (max-width: 800px) {
    .compare-actions {gap: 4px;}
    .compare-actions .btn-outline-danger {
        padding: 12px 8px 12px 28px;
        background-position: 8px center;
    }
}

/* Базовые стили для всех кнопок */
.btn--primary, a.btn--primary {
    background: var(--main-orange);
    color: white;
    font-size: 15px;
    font-weight: 700;
    padding: 12px 24px;
    border-radius: var(--main-radius, 4px);
    border: none;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.btn--primary:hover {
    background: #c44521;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(223, 89, 49, 0.3);
}

/* Адаптивность — мобильная версия */
@media (max-width: 800px) {
    /* Скрываем sticky-заголовок: на мобильных он не нужен */
    .compare-sticky-container {
        display: none !important;
    }

    /* Переключаем табличный лэйаут на блочный */
    .compare-table {
        display: block;
        min-width: 0;
    }

    .compare-row {
        display: block;
    }

    /* Шапка с карточками товаров — flex-ряд */
    .compare-row.compare-header {
        display: flex;
        flex-wrap: nowrap;
    }

    /* Скрываем пустую ячейку-заглушку слева в шапке */
    .compare-header > .compare-label {
        display: none;
    }

    /*
     * Строки характеристик: nowrap — ячейки не переносятся.
     * position: relative нужен для ::before с абсолютной позицией.
     */
    .compare-row.compare-group-row {
        display: flex;
        flex-wrap: nowrap;
        position: relative;
    }

    /*
     * Текст названия характеристики — только поверх viewport-ширины.
     * Фон и разделитель задаются на каждой ячейке отдельно (ниже),
     * чтобы они одинаково отображались на ВСЕХ столбцах, включая
     * те, что выходят за правый край экрана при прокрутке.
     */
    .compare-group-row[data-label]::before {
        content: attr(data-label);
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 26px;
        line-height: 26px;
        padding: 0 10px;
        font-size: 12px;
        color: #777;
        font-weight: 500;
        z-index: 1;
        pointer-events: none;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* Скрываем левую ячейку с названием характеристики */
    .compare-group-row > .compare-label {
        display: none !important;
    }

    /*
     * Фиксированная ширина 170px для колонок товаров.
     */
    .compare-product {
        flex: 0 0 170px;
        width: 170px;
        min-width: 170px;
    }

    /*
     * Ячейки значений: фиксированная ширина 170px.
     * Градиентный фон создаёт полосу метки (fafafa, 25px) + разделитель
     * (1px #f0f0f0) + белый фон значения — одинаково для ВСЕХ столбцов,
     * в том числе выходящих за пределы экрана при горизонтальной прокрутке.
     */
    .compare-group-row > .compare-cell:not(.compare-label) {
        flex: 0 0 170px;
        width: 170px;
        min-width: 170px;
        text-align: center;
        padding: 32px 4px 6px;
        font-size: 13px;
        background: linear-gradient(
            to bottom,
            #fafafa 0,
            #fafafa 25px,
            #f0f0f0 25px,
            #f0f0f0 26px,
            #fff 26px
        );
        outline: 1px solid #eee;
    }

    /* Размер изображений товаров */
    .compare-product-image img {
        width: 100px;
        height: 100px;
    }

    .compare-product-actions .btn {
        padding: 6px 12px;
        font-size: 11px;
    }

    .compare-add-to-cart-btn {
        display: inline-block;
        line-height: 1.1;
        padding: 8px 12px;
    }

    .compare-product-sku {
        display: none;
    }
}

/* Стили пустого состояния */
.empty-state {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
    text-align: center;
}

.empty-state__content {
    max-width: 650px;
}

.empty-state__content img {
    margin-bottom: 20px;
    opacity: 0.3;
}

.empty-state__content h2 {
    color: #333;
    margin-bottom: 10px;
    font-size: 24px;
    font-weight: 700;
}

.empty-state__content p {
    color: #666;
    margin-bottom: 20px;
    font-size: 16px;
    line-height: 1.5;
}

/* ===== КАТАЛОГОВЫЙ LAYOUT ===== */
.catalog-layout {
    display: flex;
    gap: 43px;
    margin-top: 30px;
    position: relative;
}

/* Layout без боковой панели (для избранного и др.) */
.catalog-layout--no-sidebar {
    gap: 0;
}

.catalog-layout--no-sidebar .catalog-content {
    width: 100%;
}

.catalog-layout--no-sidebar .products-grid .products__item {
    width: calc(25% - 9px);
    min-width: calc(25% - 9px);
}

/* В режиме списка — всегда 1 элемент на строку */
.catalog-layout--no-sidebar .products-grid.products-grid--list .products__item {
    width: 100% !important;
    min-width: 100% !important;
    flex: 0 0 100% !important;
}

@media screen and (max-width: 1200px) {
    .catalog-layout--no-sidebar .products-grid .products__item {
        width: calc(33.333% - 8px);
        min-width: calc(33.333% - 8px);
    }
}

@media screen and (max-width: 900px) {
    .catalog-layout--no-sidebar .products-grid .products__item {
        width: calc(50% - 6px);
        min-width: calc(50% - 6px);
    }
}

@media screen and (max-width: 600px) {
    /* Мобильная версия: 2 товара в строке (как в каталоге с сайдбаром) */
    .catalog-layout--no-sidebar .products-grid .products__item {
        width: calc(50% - 6px);
        min-width: calc(50% - 6px);
    }
}

.catalog-sidebar {
    flex: 0 0 347px;
    max-width: 347px;
    align-self: flex-start;
    height: fit-content;
}

.catalog-content {
    flex: 1;
    min-width: 0; /* Позволяет flex элементу сжиматься */
}

.sidebar-section {
    margin-bottom: 30px;
}

.sidebar-section--breadcrumbs {
    margin-bottom: 50px;
}
    @media (max-width: 800px) {
        .sidebar-section--breadcrumbs {
            display: none;
        }
    }

/* Адаптация сетки товаров для двухколоночного layout-а */
.catalog-layout .products-grid .products__item {
    width: calc(33.333% - 8px);
    min-width: calc(33.333% - 8px);
}

@media screen and (max-width: 1200px) {
    .catalog-layout .products-grid .products__item {
        width: calc(50% - 6px);
        min-width: calc(50% - 6px);
    }
}

@media screen and (max-width: 800px) {
    .catalog-layout {
        flex-direction: column;
        gap: 20px;
    }
    
    .catalog-sidebar {
        flex: none;
        max-width: none;
        position: static;
    }
    
    .catalog-layout .products-grid .products__item {
        width: calc(50% - 16px);
        min-width: calc(50% - 16px);
        margin-bottom: 16px;
    }
}

@media screen and (max-width: 800px) {
    .products-grid .products__item-wrapper {
        margin: 0; padding: 0;
        overflow:hidden;
    }
        .catalog-layout .products-grid .products__item {}
}

/* ===== СТИЛИ ЛЕВОГО СТОЛБЦА КАТАЛОГА ===== */
.sidebar-title {
    margin: 0 0 12px 0;
    font-size: 16px;
}

.category-path {
    display: flex;
    flex-direction: column;
}

.category-path-item {
    display: flex;
    align-items: center;
    font-size: 15px;
    margin-bottom: 4px;
}

.category-path-item a {
    background-image: url(../img/arrow-right-small.png);
    background-size: auto 14px;
    background-position: 0 50%;
    background-repeat: no-repeat;
    padding: 4px 8px 4px 16px;
    border-radius: 4px;
}
    .category-path .category-path-item:nth-child(1) a {background: none; padding-left: 0;}
    .category-path .category-path-item:nth-child(2) a {padding-left: 31px; background-position: 15px 50%;}
    .category-path .category-path-item:nth-child(3) a {padding-left: 46px; background-position: 30px 50%;}
    .category-path .category-path-item:nth-child(4) a {padding-left: 61px; background-position: 45px 50%;}
    .category-path .category-path-item:nth-child(5) a {padding-left: 76px; background-position: 60px 50%;}
    .category-path .category-path-item:nth-child(6) a {padding-left: 91px; background-position: 75px 50%;}

.category-path-item--current span {
    background-color: var(--main-grey);
    background-image: url(../img/arrow-right-small.png);
    background-size: auto 14px;
    background-position: 0 50%;
    background-repeat: no-repeat;
    padding: 4px 8px 4px 16px;
    border-radius: 4px;
    display: block; width: 100%;
}
    .category-path .category-path-item--current:nth-child(1) span {padding-left: 31px; background-position: 15px 50%;}
    .category-path .category-path-item--current:nth-child(2) span {padding-left: 31px; background-position: 15px 50%;}
    .category-path .category-path-item--current:nth-child(3) span {padding-left: 46px; background-position: 30px 50%;}
    .category-path .category-path-item--current:nth-child(4) span {padding-left: 61px; background-position: 45px 50%;}
    .category-path .category-path-item--current:nth-child(5) span {padding-left: 76px; background-position: 60px 50%;}
    .category-path .category-path-item--current:nth-child(6) span {padding-left: 91px; background-position: 75px 50%;}

.category-path-item--current::before {
    color: var(--main-orange);
}

/* ===== ПАНЕЛЬ УПРАВЛЕНИЯ КАТАЛОГОМ ===== */
.catalog-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.catalog-toolbar__sort {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
}

.catalog-toolbar__sort .form-select.catalog-toolbar__sort-select {
    padding: 8px 12px;
    border: 1px solid #d0d0d0;
    border-radius: 5px;
    background: white;
    font-size: 14px;
    min-width: 200px;
}

.catalog-toolbar__sort-btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 0;
    background: transparent;
    background-image: url(../img/sort.png);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 19px auto;
    cursor: pointer;
    position: relative;
    z-index: 1;
}

.catalog-toolbar__sort-btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 111, 0, 0.2);
}

.catalog-toolbar__sort-btn:active {
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.06);
}

.catalog-toolbar__count {
    display: flex;
    align-items: center;
    gap: 12px;
}

.products-count {
    padding: 3px 16px;
    background: #F7F7EC;
    border-radius: 5px;
    font-size: 14px;
    color: var(--black);
}

/* Переключатель режима отображения (плитка/список) */
.catalog-toolbar__view {
    display: flex;
    align-items: center;
    margin-left: 32px; /* расстояние от счетчика */
}
.view-toggle { display: inline-flex; align-items: center; gap: 16px; }
.view-toggle__btn {
    appearance: none;
    background-color: transparent;
    background-repeat: no-repeat;
    background-position: center;
    background-size: auto 18px; /* ширина авто, высота 18px */
    width: 28px; height: 28px; /* кликабельная зона */
    border: 0;
    padding: 0;
    cursor: pointer;
    opacity: .3; /* неактивная */
}
.view-toggle__btn.is-active { opacity: 1; }
.view-toggle__btn--grid { background-image: url(../img/view-grid.png); }
.view-toggle__btn--list { background-image: url(../img/view-list.png); }

@media (max-width: 800px) {
    .products-grid {justify-content: space-between;}
    .catalog-toolbar {
    }
    
    .catalog-toolbar__sort {
        justify-content: flex-end;
    }

    .catalog-toolbar__sort-btn {
        display: inline-flex;
    }

    .catalog-toolbar__sort .form-select.catalog-toolbar__sort-select {
        position: absolute;
        top: 0;
        right: 0;
        width: 44px;
        min-width: 44px;
        height: 44px;
        opacity: 0;
        padding: 0;
        margin: 0;
        cursor: pointer;
        z-index: 2;
    }
    
    .catalog-toolbar__count {
        justify-content: center;
    }
}

/* ===== Корректировки режима СПИСКОМ (поверх специфики catalog-layout) ===== */
.catalog-layout .products-grid.products-grid--list { flex-direction: column; }
.catalog-layout .products-grid.products-grid--list .products__item { width: 100% !important; min-width: 100% !important; flex: 0 0 100% !important; align-self: stretch; }
.products-grid.products-grid--list .products__item-wrapper { margin: 0; }

/* Описание категории */
.category-description {
    margin-top: 45px;
}
.category-description p {}

.category-description__content {
    overflow: hidden;
    transition: max-height 0.3s ease;
}
.category-description__content.is-collapsed {
    position: relative;
}
.category-description__content.is-collapsed::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, rgba(255,255,255,1) 100%);
    pointer-events: none;
}
.category-description__toggle {
    display: inline-block;
    margin-top: 10px;
    color: var(--accent-color, #E31E24);
    text-decoration: none;
    font-size: 14px;
    cursor: pointer;
    transition: opacity 0.2s;
}
.category-description__toggle:hover {
    opacity: 0.7;
}

/* ===== ФИЛЬТРЫ КАТАЛОГА ===== */

.sidebar-section--filters {
    border: 1px solid #D0D0D0;
    border-radius: 20px;
    padding: 16px 20px 44px 20px;
}

.filter-group {
    margin-bottom: 8px;
    padding-bottom: 0;
    border-bottom: 1px solid #E5E5E5;
}

.filter-group:last-child {
    border-bottom: none;
}

.filter-title {
    margin: 4px 0 8px 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 600;
    color: #333;
    position: relative;
}

.filter-title--non-collapsible {
    cursor: default;
    font-weight: 600;
    color: #333;
}

.filter-title--non-collapsible::after {
    display: none;
}

.filter-title::after {
    content: '';
    width: 10px;
    height: 10px;
    background-image: url('../img/arrow-left-small.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    transition: transform 0.2s ease;
    transform: rotate(90deg); /* Поворот влево -> вверх для открытого состояния */
}
    .filter-title--collapsed::after {
        transform: rotate(-90deg); /* Поворот влево -> вниз для закрытого состояния */
    }

.filter-content {
    overflow: hidden;
    transition: height 0.3s ease, opacity 0.3s ease;
}

.filter-content--collapsed {
    height: 0;
    opacity: 0;
}

.filter-content--expanded {
    opacity: 1;
    margin: 14px 0 20px 0;
}

/* Фильтр по цене */
.price-filter {
}

.price-range-inputs {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 5px;
}

.price-range-inputs input[type="text"] {
    flex: 1;
    padding: 8px 10px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    text-align: center;
    background: var(--main-grey);
    width: 40%;
}

.price-range-inputs span {
    color: #666;
}

.price-range-slider {
    position: relative;
    height: 20px;
    margin: 10px 0;
}

.price-range-slider::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 0;
    right: 0;
    height: 1px;
    background: #E5E5E5;
    z-index: 0;
}

/* Активная область между ползунками */
.price-range-slider::after {
    content: '';
    position: absolute;
    top: 10px;
    left: var(--range-start, 0%);
    width: var(--range-width, 100%);
    height: 1px;
    background: var(--main-black);
    z-index: 1;
    transition: all 0.1s ease;
}

.price-slider {
    position: absolute;
    top: 7px;
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: transparent;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    pointer-events: none;
    z-index: 2;
}

.price-slider::-webkit-slider-thumb {
    pointer-events: all;
    position: relative;
    z-index: 1;
    cursor: pointer;
}

.price-slider::-moz-range-thumb {
    pointer-events: all;
    position: relative;
    z-index: 1;
    cursor: pointer;
}

#price_range_from {
    z-index: 2;
}

#price_range_to {
    z-index: 3;
}

.price-slider::-webkit-slider-thumb {
    appearance: none;
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--white);
    cursor: pointer;
    border: 1px solid var(--main-black);
}

.price-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--main-orange);
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.price-slider::-webkit-slider-track {
    height: 6px;
    border-radius: 3px;
    background: #E5E5E5;
}

.price-slider::-moz-range-track {
    height: 6px;
    border-radius: 3px;
    background: #E5E5E5;
    border: none;
}

/* Фильтры по характеристикам */
.characteristic-filter {
    /* margin-top теперь управляется через filter-content */
}

.checkbox-label {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    user-select: none;
}

.checkbox-label:last-child {
    margin-bottom: 0;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkbox-custom {
    width: 16px;
    height: 16px;
    border: 1px solid #d0d0d0;
    border-radius: 3px;
    margin-right: 8px;
    position: relative;
    background: white;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.checkbox-label:hover .checkbox-custom {
    border-color: var(--main-orange);
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom {
    background: var(--main-orange);
    border-color: var(--main-orange);
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 0px;
    width: 4px;
    height: 9px;
    border: solid white;
    border-width: 0 1px 1px 0;
    transform: rotate(45deg);
}

.checkbox-text {
    flex: 1;
    line-height: 1;
}

.checkbox-label--hidden {
    display: none;
}

.show-all-toggle {
    background: none;
    border: none;
    color: var(--main-orange);
    font-size: 14px;
    cursor: pointer;
    padding: 0 0 24px 0;
    text-decoration: underline;
    margin-top: 4px;
}
.subcategories .show-all-toggle {
    color: #797979;
    text-decoration: none;
    border-bottom: 1px dashed #797979;
    padding-bottom: 2px;
    margin-top: 20px;
}

.show-all-toggle:hover {
    color: #e67e22;
    text-decoration: none;
}

/* Boolean-фильтр: переключатель (toggle switch) */
.filter-boolean {
    padding: 4px 0 12px 0;
}

.toggle-switch {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
    gap: 12px;
}

.toggle-switch input[type="checkbox"] {
    display: none;
}

.toggle-slider {
    position: relative;
    width: 46px;
    height: 26px;
    background: #ccc;
    border-radius: 13px;
    transition: background 0.3s ease;
    flex-shrink: 0;
}

.toggle-slider::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    transition: transform 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.toggle-switch input[type="checkbox"]:checked ~ .toggle-slider {
    background: var(--main-orange);
}

.toggle-switch input[type="checkbox"]:checked ~ .toggle-slider::after {
    transform: translateX(20px);
}

.toggle-switch:hover .toggle-slider {
    background: #bbb;
}

.toggle-switch input[type="checkbox"]:checked ~ .toggle-slider:hover {
    background: #c0461e;
}

.toggle-text {
    flex: 1;
    color: #333;
    font-weight: 600;
    line-height: 1.2;
}

/* Range-фильтр для характеристик (ползунок от-до) */
.char-range-filter {
    padding: 0;
}

.char-range-inputs {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 5px;
}

.char-range-inputs input[type="text"] {
    flex: 1;
    padding: 8px 10px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    background: #f5f5f5;
    color: #333;
    text-align: center;
    min-width: 0;
}

.char-range-inputs input[type="text"]:focus {
    outline: none;
    border-color: var(--main-orange);
}

.char-range-inputs span {
    color: #666;
}

.char-range-slider {
    position: relative;
    height: 20px;
    margin: 10px 0;
}

.char-range-slider::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 0;
    right: 0;
    height: 4px;
    background: #E5E5E5;
    border-radius: 2px;
}

.char-range-slider::after {
    content: '';
    position: absolute;
    top: 10px;
    left: var(--range-start, 0%);
    width: var(--range-width, 100%);
    height: 4px;
    background: var(--main-orange);
    border-radius: 2px;
}

.char-slider {
    position: absolute;
    top: 9px;
    width: 100%;
    height: 6px;
    border-radius: 3px;
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    pointer-events: none;
    margin: 0;
    padding: 0;
}

.char-slider::-webkit-slider-thumb {
    pointer-events: all;
    position: relative;
    z-index: 1;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--main-orange);
    border: none;
}

.char-slider::-moz-range-thumb {
    pointer-events: all;
    position: relative;
    z-index: 1;
    cursor: pointer;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--main-orange);
    border: none;
}

.char-slider::-webkit-slider-track {
    height: 6px;
    border-radius: 3px;
    background: transparent;
}

.char-slider::-moz-range-track {
    height: 6px;
    border-radius: 3px;
    background: transparent;
    border: none;
}

/* Кнопки управления фильтрами */
.filter-actions {
    margin-top: 25px;
    padding-top: 20px;
}

/* Недоступные опции фильтров */
.checkbox-label.is-disabled {
    opacity: 0.5;
    pointer-events: none;
}
.checkbox-label.is-disabled input[type="checkbox"] {
    cursor: not-allowed;
}

.catalog-toolbar__filters-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    background: none;
    border: none;
    cursor: pointer;
    position: relative;
}

.catalog-toolbar__filters-toggle-icon {
    width: 18px;
    height: 18px;
    display: block;
}

.catalog-toolbar__filters-toggle-icon img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.catalog-toolbar__filters-counter {
    position: absolute;
    top: -4px;
    right: -6px;
    display: none;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: #DF5931;
    color: #fff;
    border-radius: 999px;
    font-size: 11px;
    line-height: 18px;
    font-weight: 700;
    text-align: center;
    box-shadow: 0 0 0 2px #fff;
}

.catalog-toolbar__filters-counter.is-visible {
    display: inline-block;
}

.catalog-filters-placeholder {
    display: none;
}

.catalog-filters-modal {
    display: none;
}

.catalog-filters-modal__panel {
    background: #fff;
}

.catalog-filters-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 20px 14px 20px;
}

.catalog-filters-active {
    display: none;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0 20px 10px 20px;
}

.catalog-filters-active.is-visible {
    display: flex;
}

.catalog-filters-active__item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    background: #f0f0f0;
    color: #333;
    font-size: 12px;
    line-height: 1.2;
    border: 1px solid #e0e0e0;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.catalog-filters-active__item:hover {
    background: #DF5931;
    border-color: #DF5931;
    color: #fff;
}

.catalog-filters-active__close {
    display: inline-block;
    width: 12px;
    height: 12px;
    line-height: 12px;
    text-align: center;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.08);
    color: inherit;
    font-weight: 700;
}

.catalog-filters-modal__title {
    font-size: 18px;
    font-weight: 700;
}

.catalog-filters-modal__close {
    margin-left: auto;
    padding: 10px 15px;
    background: var(--main-orange);
    font-weight: 700;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    line-height: 1.2;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.catalog-filters-modal__close:active {
    transform: translateY(1px);
}

.catalog-filters-modal__body {
    padding: 0 16px 20px 16px;
    overflow-y: auto;
    flex: 1;
}
    @media (max-width: 800px) {
        .catalog-filters-modal__body {
            padding: 0 16px 0 16px;
        }
    }

.catalog-filters-apply-mobile {
    display: none;
}

body.filters-modal-open {
    overflow: hidden;
}

.btn--block {
    display: block;
    width: 100%;
    text-align: center;
}

.btn--primary {
    background: var(--main-orange);
    color: white;
    border: 1px solid var(--main-orange);
    padding: 15px 20px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.btn--primary:hover {
    background: #e67e22;
    border-color: #e67e22;
}

.btn--secondary {
    background: transparent;
    color: #666;
    border: none;
    padding: 18px 20px 0 20px;
    font-size: 14px;
    text-decoration: underline;
    cursor: pointer;
}

/* Адаптивность для фильтров */
@media (max-width: 800px) {
    .catalog-toolbar {
        flex-wrap: wrap;
        gap: 6px;
    }

    .catalog-toolbar__filters-toggle {
        display: inline-flex;
    }

    .catalog-sidebar .sidebar-section--filters {
        display: none;
    }

    .catalog-filters-modal {
        position: fixed;
        inset: 0;
        z-index: 1500;
        display: none;
        align-items: stretch;
    }

    .catalog-filters-modal.is-open {
        display: flex;
    }

    .catalog-filters-modal__backdrop {
        position: absolute;
        inset: 0;
        background: rgba(0, 0, 0, 0.35);
    }

    .catalog-filters-modal__panel {
        position: relative;
        display: flex;
        flex-direction: column;
        width: 100%;
        height: 100%;
        overflow: hidden;
    }

    .catalog-filters-modal .sidebar-section--filters {
        display: block;
        height: auto;
        overflow: visible;
        border: 1px solid #d0d0d0;
        border-radius: 20px;
        padding: 16px 20px 0 20px;
        background: #fff;
    }

    .catalog-filters-modal .catalog-filters-apply-mobile {
        display: block !important;
        margin-bottom: 10px;
    }

    .catalog-sidebar {
        order: 2;
    }
    
    .catalog-content {
        order: 1;
    }
    
    .filter-group {
        margin-bottom: 20px;
        padding-bottom: 15px;
    }
    
    .price-range-inputs input[type="text"] {
        padding: 10px;
        font-size: 16px; /* Предотвращает зум на iOS */
    }
    
    .filter-actions {
        position: sticky;
        display: flex;
        justify-content: center;
        align-items: center;
        bottom: 0;
        background: white;
        z-index: 10;
        padding: 15px 0;
        margin: 20px -15px 0;
        /* box-shadow: 0 -2px 10px rgba(0,0,0,0.1); */
        border-radius: 0 0 20px 20px;
    }
    
    .filter-actions .btn--block {
        margin-bottom: 0;
        padding: 14px 10px;
        font-size: 15px !important;
    }
}

/* ===== КАТАЛОГОВЫЙ LAYOUT ===== */


/* Стили для автодополнения поиска */
.header__search-wrapper {
    position: relative;
    flex: 1;
}

.header__search-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    max-height: 400px;
    overflow-y: auto;
}

.search-dropdown-section {
    padding: 10px 0;
}

.search-dropdown-section:not(:last-child) {
    border-bottom: 1px solid #eee;
}

.search-dropdown-title {
    padding: 5px 15px;
    font-size: 12px;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.search-dropdown-item {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    text-decoration: none;
    color: #333;
    transition: background-color 0.2s ease;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
}

.search-dropdown-item:hover,
.search-dropdown-item.active {
    background-color: #f8f9fa;
}

.search-dropdown-item-icon {
    width: 40px;
    height: 40px;
    margin-right: 12px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    border-radius: 4px;
}

.search-dropdown-item-icon img {
    width: 30px;
    height: 30px;
    object-fit: cover;
    border-radius: 3px;
}

.search-dropdown-item-content {
    flex: 1;
    min-width: 0;
}

.search-dropdown-item-name {
    font-weight: 500;
    color: #333;
    margin-bottom: 2px;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    word-break: break-word;
}

.search-dropdown-item-price {
    font-size: 14px;
    color: #DF5931;
    font-weight: 600;
}

.search-dropdown-item-old-price {
    text-decoration: line-through;
    color: #999;
    margin-right: 8px;
}

.search-dropdown-empty {
    padding: 20px 15px;
    text-align: center;
    color: #666;
    font-style: italic;
}

.search-loading {
    padding: 15px;
    text-align: center;
    color: #666;
}

/* Двухколоночный layout для выпадающего поиска */
.search-dropdown-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.search-dropdown-col--left {
    border-right: 1px solid #eee;
}

@media (max-width: 800px) {
    .search-dropdown-grid {
        grid-template-columns: 1fr;
    }
    .search-dropdown-col--left {
        border-right: none;
        border-bottom: 1px solid #eee;
    }
}

/* Сетка логотипов брендов в выпадающем поиске */
.search-brands-grid {
    padding: 8px 12px 4px 12px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.search-brand-item {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 56px;
    background: #f8f9fa;
    border: 1px solid #f0f0f0;
    border-radius: 6px;
    padding: 6px;
}

.search-brand-item img {
    max-width: 100%;
    max-height: 42px;
    object-fit: contain;
}

@media (max-width: 800px) {
    .search-brands-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 800px) {
    .header__search-wrapper {
        max-width: none;
    }
    
    .header__search-dropdown {
        max-height: 300px;
    }
}

/* ===== СТИЛИ ДЛЯ ОФОРМЛЕНИЯ ЗАКАЗОВ ===== */

.checkout-form {
    background: white;
    border-radius: 12px;
}

.checkout-form h2 {
    margin-bottom: 25px;
    font-size: 24px;
    font-weight: 600;
    color: #333;
}

.checkout-form .form-group {
    margin-bottom: 20px;
}

.checkout-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.checkout-form input,
.checkout-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

.checkout-form input:focus,
.checkout-form textarea:focus {
    outline: none;
    border-color: var(--main-orange);
    box-shadow: 0 0 0 3px rgba(223, 89, 49, 0.1);
}

.checkout-form textarea {
    resize: vertical;
    min-height: 100px;
}

.checkout-form .btn {
    width: 100%;
    padding: 16px;
    font-size: 16px;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.checkout-form .btn--primary {
    background: var(--main-orange);
    color: white;
}

.checkout-form .btn--primary:hover {
    background: #c44521;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(223, 89, 49, 0.3);
}

.order-summary {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 20px;
}

.order-summary h3 {
    margin-bottom: 25px;
    font-size: 20px;
    font-weight: 600;
    color: #333;
}

.order-summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.order-summary-item:last-child {
    border-bottom: none;
    font-weight: 700;
    font-size: 18px;
    margin-top: 10px;
    padding-top: 20px;
    border-top: 2px solid var(--main-orange);
}

.order-summary-item-info {
    flex: 1;
}

.order-summary-item-name {
    font-weight: 600;
    margin-bottom: 5px;
}

.order-summary-item-details {
    font-size: 12px;
    color: #666;
}

.order-summary-item-price {
    font-weight: 600;
    color: var(--main-orange);
}

.order-success {
    background: white;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    margin: 40px 0;
}

.order-success-icon {
    width: 80px;
    height: 80px;
    background: var(--main-orange);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    color: white;
    font-size: 40px;
}

.order-success h1 {
    color: #333;
    margin-bottom: 15px;
}

.order-success p {
    color: #666;
    margin-bottom: 30px;
    font-size: 16px;
}

.order-details {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 25px;
    margin: 30px 0;
    text-align: left;
}

.order-details h3 {
    margin-bottom: 20px;
    color: #333;
}

.order-details-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.order-details-label {
    font-weight: 600;
    color: #333;
}

.order-details-value {
    color: #666;
}

.order-items-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.order-items-table th,
.order-items-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.order-items-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #333;
}

.order-items-table .item-total {
    font-weight: 700;
    background: #f8f9fa;
}

.checkout-error {
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #f1aeb5;
}

.checkout-error ul {
    margin: 0;
    padding-left: 20px;
}

/* Адаптивность для оформления заказов */
@media (max-width: 800px) {
    .checkout-layout {
        flex-direction: column;
        gap: 30px;
    }
    
    .checkout-form,
    .order-summary {
        padding: 0;
    }
    
    .order-summary {
        position: static;
    }
    
    .order-success {
        padding: 30px 20px;
    }
    
    .order-details {
        padding: 20px;
    }
    
    .order-summary-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}


/* Карточка бренда */
.brand-header {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 50px;
    margin-bottom: 48px;
}
    @media (max-width: 800px) {
        .brand-header {
            flex-direction: column;
        }
    }
.brand-header__logo {
    max-width: 347px;
}
    .brand-header__logo img {
        width: 100%;
        height: auto;
    }
    @media (max-width: 800px) {
        .brand-header__logo {
            max-width: 50%;
        }
    }
.brand-header__content {
    flex: 1;
    min-width: 0;
}

/* Стили для фильтра брендов */
.brand-filter {
    /* Стили для контейнера фильтра брендов */
}

/* Секция брендов в категориях */
.category-brands {
    border-radius: 20px;
    padding: 18px 20px;
    margin-bottom: 36px;
    border: 1px solid #D0D0D0;
    display: flex;
    gap: 20px 52px;
    align-items: center;
}

.category-brands__title {
    font-size: 16px;
}

.category-brands__list {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: scroll;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* Internet Explorer 10+ */
    gap: 36px;
    align-items: center;
    flex: 1;
}

.category-brands__list::-webkit-scrollbar {
    display: none; /* Safari и Chrome */
}

.category-brands__item {
}

.category-brands__link {
    display: flex;
    text-decoration: none;
    outline: none;
}

.category-brands__logo {
    height: 35px; width: auto;
    max-width: 120px;
}

.category-brands__arrow-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
}

.category-brands__arrow {
    width: auto;
    height: 18px;
    cursor: pointer;
    opacity: 0.5;
    transition: all 0.3s;
}

.category-brands__arrow--right {
    transform: rotate(180deg);
}

.category-brands__arrow-wrapper:hover .category-brands__arrow {
    opacity: 1;
}

/* Каталог: секция брендов */
.catalog-brands {
    margin-bottom: 150px;
}
    @media (max-width: 800px) {
        .catalog-brands {
            margin-bottom: 60px;
        }
    }
.catalog-brands__header {
    display: flex;
    align-items: center;
    gap: 20px 52px;
    margin-bottom: 50px;
}
h2#catalog-brands-title {
    font-size: 40px;
}
    @media (max-width: 800px) {
        h2#catalog-brands-title {
            font-size: 30px;
            line-height: 36px;
        }
    }
.catalog-brands__search input[type="search"] {
    width: 305px; width: 700px;
    max-width: 100%;
    height: 48px;
    padding: 0 18px 0 18px;
    border-radius: 5px;
    border: none;
    font-size: 15px;
    background: #F3F5F7;
    font-family: var(--main-font);
    background-image: url(../img/search.png);
    background-repeat: no-repeat;
    background-position: 95% 50%;
    background-size: 14px auto;
}
.catalog-brands__list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 50px;
}
    @media (max-width: 800px) {
        .catalog-brands__list {
            gap: 28px;
        }
    }
.catalog-brands__item {
    display: inline-flex;
}
.catalog-brands__item.is-hidden { display: none; }
.catalog-brands__logo {
    height: 48px;
    width: auto;
}
    @media (max-width: 800px) {
        .catalog-brands__logo {
            height: 22px;
        }
    }
.catalog-brands__loading,
.catalog-brands__empty,
.catalog-brands__error {
    padding: 20px;
    color: #666;
    font-size: 14px;
    width: 100%;
}
.catalog-brands__error {
    color: #c00;
}
@media (max-width: 800px) {
    .catalog-brands__header { flex-direction: column; align-items: stretch; }
    .catalog-brands__search input[type="search"] { width: 100%; }
}

/* Адаптивность для секции брендов */
@media (max-width: 800px) {
    .category-brands {
        padding: 8px 4px;
        margin-bottom: 16px;
    }
    
    .category-brands__title {
        display: none;
    }
    
    .category-brands__list {
        gap: 10px;
    }
    
    .category-brands__arrow-wrapper {
        display: none !important;
    }
    
    .category-brands__item {
        padding: 8px 12px;
    }
    
    .category-brands__logo {
        height: 32px;
        max-width: 100px;
    }
}

@media (max-width: 480px) {
    .category-brands__list {
        gap: 8px;
    }
    
    .category-brands__item {
        padding: 6px 10px;
    }
    
    .category-brands__logo {
        height: 28px;
        max-width: 80px;
    }
}

/* Секция тегов категорий */
.category-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.category-tag {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    background-color: #F3F5F7;
    border-radius: 4px;
    color: #000;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.category-tag:hover {
    background-color: #EAEAEA;
}

@media (max-width: 800px) {
    .category-tags {
        gap: 8px;
        margin-bottom: 15px;
    }
    
    .category-tag {
        padding: 6px 12px;
        font-size: 13px;
    }
}

/* Стили для кнопки "Показать еще" */
.load-more-container {
    display: flex;
    justify-content: center;
}

.load-more-btn {
    width: 100%;
    background: var(--main-orange);
    border: 0;
    color: #fff;
    border-radius: 5px;
    padding: 16px 20px;
    cursor: pointer;
    font-size: 15px; 
}
    .load-more-btn:disabled {}

.load-more-loader {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

/* Лайтбокс изображений товара */
@media (min-width: 801px) {
    .product-lightbox {
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.9);
        display: none;
        align-items: center;
        justify-content: center;
        z-index: 10000;
        padding: 40px;
        cursor: zoom-out;
    }
    .product-lightbox.active { display: flex; }
    .product-lightbox__img {
        max-width: 90vw;
        max-height: 90vh;
        object-fit: contain;
        box-shadow: 0 8px 30px rgba(0,0,0,0.5);
        cursor: default;
    }
    .product-lightbox__close {
        position: absolute;
        top: 16px;
        right: 20px;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background: rgba(255,255,255,0.9);
        color: #000;
        border: 0;
        font-size: 28px;
        line-height: 40px;
        text-align: center;
        cursor: pointer;
    }
    .product-lightbox__nav {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 48px;
        height: 48px;
        border-radius: 50%;
        background: rgba(255,255,255,0.9);
        color: #000;
        border: 0;
        font-size: 32px;
        line-height: 48px;
        text-align: center;
        cursor: pointer;
        user-select: none;
    }
    .product-lightbox__prev { left: 20px; }
    .product-lightbox__next { right: 20px; }
}

/* Курсор увеличения на главном изображении галереи */
@media (min-width: 801px) {
    .product-detail__image img { cursor: zoom-in; }
}

/* ===== МОДАЛЬНОЕ ОКНО (универсальные стили) ===== */
.modal {position: fixed; inset: 0; display: none; align-items: center; justify-content: center; z-index: 1100;}
.modal.modal--open {display: flex;}
.modal__backdrop {position: absolute; inset: 0; background: rgba(0,0,0,.6);} 
.modal__dialog {position: relative; z-index: 1; background: #fff; border-radius: 16px; width: 90%; max-width: 520px; padding: 24px 24px 28px 24px; box-shadow: 0 8px 30px rgba(0,0,0,0.2);
    max-height: 90%;
    overflow: auto;}
#complex-equipment-modal .modal__dialog,
#tender-invitation-modal .modal__dialog {
    max-height: 90vh; 
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #ddd #f5f5f5;
}
#supplier-request-modal .modal__dialog {
    max-width: 920px;
}
#complex-equipment-modal .modal__dialog::-webkit-scrollbar,
#tender-invitation-modal .modal__dialog::-webkit-scrollbar {
    width: 8px;
}
#complex-equipment-modal .modal__dialog::-webkit-scrollbar-track,
#tender-invitation-modal .modal__dialog::-webkit-scrollbar-track {
    background: #f5f5f5;
    border-radius: 4px;
}
#complex-equipment-modal .modal__dialog::-webkit-scrollbar-thumb,
#tender-invitation-modal .modal__dialog::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 4px;
}
#complex-equipment-modal .modal__dialog::-webkit-scrollbar-thumb:hover,
#tender-invitation-modal .modal__dialog::-webkit-scrollbar-thumb:hover {
    background: #bbb;
} 
.modal__close {position: absolute; top: 10px; right: 14px; background: transparent; border: 0; font-size: 28px; line-height: 1; cursor: pointer; color: #333;}
.modal__title {margin: 0 0 16px 0; font-size: 28px; font-weight: 700; color: #1C1C1C;}
    @media (max-width: 800px) {
        .modal__title {
            font-size: 20px;
            line-height: 100%;
        }
    }
.modal__description {margin: 0 0 20px 0; font-size: 14px; color: #666; line-height: 1.4;}
.modal__submit {width: 100%; margin-top: 10px;}
.modal__policy {margin-top: 14px; font-size: 12px; color: #777;}
.modal__policy a {color: inherit; text-decoration: underline;}
.modal__success {margin-top: 12px; padding: 14px 16px; border-radius: 10px; background: #ECF7EC; color: #2f8a2f; font-size: 14px;}
.modal__thanks-title {margin: 0 0 8px 0; font-size: 22px; font-weight: 700; color: #1C1C1C;}

/* Состояние после успешной отправки: показываем только сообщение */
.callback-form--sent .form-group,
.callback-form--sent fieldset,
.callback-form--sent .modal__submit,
.callback-form--sent .modal__policy {display: none;}
.callback-form--sent .modal__success {display: block !important;}

.cheaper-form--sent .form-group,
.cheaper-form--sent .modal__submit,
.cheaper-form--sent .modal__policy,
.complex-equipment-form--sent .form-group,
.complex-equipment-form--sent .modal__submit,
.complex-equipment-form--sent .modal__policy,
.tender-invitation-form--sent .form-group,
.tender-invitation-form--sent .modal__submit,
.tender-invitation-form--sent .modal__policy,
.feedback-form--sent .form-group,
.feedback-form--sent .modal__submit,
.feedback-form--sent .modal__policy,
.director-letter-form--sent .form-group,
.director-letter-form--sent .modal__submit,
.director-letter-form--sent .modal__policy,
.supplier-request-form--sent .form-group,
.supplier-request-form--sent .modal__submit,
.supplier-request-form--sent .modal__policy,
.supplier-request-form--sent .modal__section-title {display: none;}

.fast-order-form--sent .form-group,
.fast-order-form--sent .modal__submit,
.fast-order-form--sent .modal__policy,
.fast-order-form--sent ~ .fast-order-product-info {display: none;}
.cheaper-form--sent .modal__success,
.complex-equipment-form--sent .modal__success,
.tender-invitation-form--sent .modal__success,
.feedback-form--sent .modal__success,
.director-letter-form--sent .modal__success,
.fast-order-form--sent .modal__success,
.supplier-request-form--sent .modal__success {display: block !important;}

/* Формы внутри модалки наследуют стили сайта */
.callback-form .form-group, .cheaper-form .form-group, .complex-equipment-form .form-group, .tender-invitation-form .form-group, .feedback-form .form-group, .director-letter-form .form-group, .fast-order-form .form-group, .supplier-request-form .form-group {margin-bottom: 14px;}
.callback-form label, .cheaper-form label, .complex-equipment-form label, .tender-invitation-form label, .feedback-form label, .director-letter-form label, .fast-order-form label, .supplier-request-form label {display: block; margin-bottom: 6px; font-weight: 600; color: #333;}
.callback-form input[type="text"],
.callback-form input[type="tel"],
.cheaper-form input[type="text"],
.cheaper-form input[type="tel"],
.cheaper-form input[type="url"],
.complex-equipment-form input[type="text"],
.complex-equipment-form input[type="tel"],
.complex-equipment-form input[type="email"],
.complex-equipment-form select,
.complex-equipment-form textarea,
.tender-invitation-form input[type="text"],
.tender-invitation-form input[type="tel"],
.tender-invitation-form input[type="email"],
.tender-invitation-form input[type="url"],
.tender-invitation-form select,
.tender-invitation-form textarea,
.feedback-form input[type="text"],
.feedback-form input[type="tel"],
.feedback-form input[type="email"],
.feedback-form select,
.feedback-form textarea,
.director-letter-form input[type="text"],
.director-letter-form input[type="tel"],
.director-letter-form input[type="email"],
.director-letter-form textarea,
.fast-order-form input[type="text"],
.fast-order-form input[type="tel"],
.fast-order-form input[type="email"],
.fast-order-form textarea,
.supplier-request-form input[type="text"],
.supplier-request-form input[type="tel"],
.supplier-request-form input[type="email"],
.supplier-request-form input[type="url"],
.supplier-request-form textarea {width: 100%; padding: 12px 14px; border: 1px solid #ddd; border-radius: 10px; font-size: 16px; background: var(--main-grey, #F3F5F7);}
.callback-form input[type="text"]:focus,
.callback-form input[type="tel"]:focus,
.cheaper-form input[type="text"]:focus,
.cheaper-form input[type="tel"]:focus,
.cheaper-form input[type="url"]:focus,
.complex-equipment-form input[type="text"]:focus,
.complex-equipment-form input[type="tel"]:focus,
.complex-equipment-form input[type="email"]:focus,
.complex-equipment-form select:focus,
.complex-equipment-form textarea:focus,
.tender-invitation-form input[type="text"]:focus,
.tender-invitation-form input[type="tel"]:focus,
.tender-invitation-form input[type="email"]:focus,
.tender-invitation-form input[type="url"]:focus,
.tender-invitation-form select:focus,
.tender-invitation-form textarea:focus,
.feedback-form input[type="text"]:focus,
.feedback-form input[type="tel"]:focus,
.feedback-form input[type="email"]:focus,
.feedback-form select:focus,
.feedback-form textarea:focus,
.director-letter-form input[type="text"]:focus,
.director-letter-form input[type="tel"]:focus,
.director-letter-form input[type="email"]:focus,
.director-letter-form textarea:focus,
.fast-order-form input[type="text"]:focus,
.fast-order-form input[type="tel"]:focus,
.fast-order-form input[type="email"]:focus,
.fast-order-form textarea:focus,
.supplier-request-form input[type="text"]:focus,
.supplier-request-form input[type="tel"]:focus,
.supplier-request-form input[type="email"]:focus,
.supplier-request-form input[type="url"]:focus,
.supplier-request-form textarea:focus {outline: none; border-color: var(--main-orange); box-shadow: 0 0 0 3px rgba(223,89,49,0.1);}

/* Стили для textarea в форме комплексного оснащения */
.complex-equipment-form textarea {resize: vertical; min-height: 100px; font-family: inherit;} 
.callback-form .form-error, .cheaper-form .form-error, .complex-equipment-form .form-error, .tender-invitation-form .form-error, .feedback-form .form-error, .director-letter-form .form-error, .fast-order-form .form-error, .supplier-request-form .form-error {margin-top: 6px; color: #dc3545; font-size: 12px;}

.supplier-request-form .checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 0;
}

.supplier-request-form .checkbox-label input[type="checkbox"] {
    display: none;
}

.supplier-request-form__columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.supplier-request-form__column {
    min-width: 0;
}

.supplier-request-form__column .modal__section-title {
    margin: 0 0 10px 0;
}

@media (max-width: 800px) {
    #supplier-request-modal .modal__dialog {
        max-width: 520px;
    }

    .supplier-request-form__columns {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

/* Стили для обязательных полей */
.required {color: #dc3545; font-weight: 600;}

/* Стили для формы быстрого заказа */
.fast-order-product-info {
    margin-bottom: 20px;
    padding: 16px;
    background: #F8F9FA;
    border-radius: 8px;
    border: 1px solid #E9ECEF;
}

.product-info-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.product-info-name {
    font-weight: 600;
    color: #333;
    font-size: 16px;
    line-height: 1.3;
}

.product-info-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.product-info-sku {
    color: #666;
    font-size: 14px;
    font-weight: 500;
}

.product-info-price {
    color: var(--main-orange);
    font-weight: 700;
    font-size: 16px;
}

@media (max-width: 480px) {
    .product-info-details {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
}

/* Стили для поля загрузки файлов */
.cheaper-form .file-input-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.cheaper-form .file-select-btn {
    padding: 12px 20px !important;
    font-size: 14px !important;
    border-radius: 10px !important;
    border: 1px solid #ddd !important;
    background: var(--main-grey, #F3F5F7) !important;
    color: #333 !important;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cheaper-form .file-select-btn:hover {
    border-color: var(--main-orange) !important;
    background: #fff !important;
}

.cheaper-form .file-name {
    font-size: 14px;
    color: #666;
    font-style: italic;
    word-break: break-all;
}

.cheaper-form .file-name:not(:empty):before {
    content: "Выбран файл: ";
    color: #333;
    font-style: normal;
    font-weight: 600;
}

.complex-equipment-form .file-input-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.supplier-request-form .file-input-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.complex-equipment-form .file-select-btn {
    padding: 12px 20px !important;
    font-size: 14px !important;
    border-radius: 10px !important;
    border: 1px solid #ddd !important;
    background: var(--main-grey, #F3F5F7) !important;
    color: #333 !important;
    cursor: pointer;
    transition: all 0.2s ease;
}

.supplier-request-form .file-select-btn {
    padding: 12px 20px !important;
    font-size: 14px !important;
    border-radius: 10px !important;
    border: 1px solid #ddd !important;
    background: var(--main-grey, #F3F5F7) !important;
    color: #333 !important;
    cursor: pointer;
    transition: all 0.2s ease;
}

.complex-equipment-form .file-select-btn:hover {
    border-color: var(--main-orange) !important;
    background: #fff !important;
}

.supplier-request-form .file-select-btn:hover {
    border-color: var(--main-orange) !important;
    background: #fff !important;
}

.complex-equipment-form .file-name {
    font-size: 14px;
    color: #666;
    font-style: italic;
    word-break: break-all;
}

.supplier-request-form .file-name {
    font-size: 14px;
    color: #666;
    font-style: italic;
    word-break: break-all;
}

.complex-equipment-form .file-name:not(:empty):before {
    content: "Выбран файл: ";
    color: #333;
    font-style: normal;
    font-weight: 600;
}

.supplier-request-form .file-name:not(:empty):before {
    content: "Выбран файл: ";
    color: #333;
    font-style: normal;
    font-weight: 600;
}

.tender-invitation-form .file-input-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.tender-invitation-form .file-select-btn {
    padding: 12px 20px !important;
    font-size: 14px !important;
    border-radius: 10px !important;
    border: 1px solid #ddd !important;
    background: var(--main-grey, #F3F5F7) !important;
    color: #333 !important;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tender-invitation-form .file-select-btn:hover {
    border-color: var(--main-orange) !important;
    background: #fff !important;
}

.tender-invitation-form .file-name {
    font-size: 14px;
    color: #666;
    font-style: italic;
    word-break: break-all;
}

.tender-invitation-form .file-name:not(:empty):before {
    content: "Выбран файл: ";
    color: #333;
    font-style: normal;
    font-weight: 600;
}

.cheaper-form .form-help,
.complex-equipment-form .form-help,
.tender-invitation-form .form-help,
.supplier-request-form .form-help {
    margin-top: 4px; 
    font-size: 11px; 
    color: #888; 
    line-height: 1.3;
    width: 100%;
}

.fieldset-title {font-weight: 600; color: #333; margin: 8px 0 10px 0;}
.form-group--contact {border: none; padding: 0; margin: 0 0 8px 0;}
.radio-group {display: flex; gap: 16px;}
.radio-label {display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: 14px; padding-left: 28px; position: relative;}
/* Радиокнопка и текст всегда в одну линию (адаптивность на мобильных) */
.radio-label__option {display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0; white-space: nowrap;}
.radio-label input[type="radio"] {accent-color: var(--main-orange);} 
.radio-group--icons .radio-label::before {content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; background-size: 18px auto; background-repeat: no-repeat; background-position: center;}
.radio-label--whatsapp::before {background-image: url(../img/ask_wa.png);} 
.radio-label--telegram::before {background-image: url(../img/ask_tg.png);} 
.radio-label--phone::before {background-image: url(../img/ask_call.png);}

@media (max-width: 480px) {
    .radio-group--icons { flex-wrap: wrap; }
}


/* Promo-banner */
.promo-banner {
    margin-bottom: 60px;
}
.promo-banner__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0 21px;
}
    @media (max-width: 800px) {
        .promo-banner__grid {
            display: flex; flex-direction: column;
        }
    }
.promo-banner__main {
    grid-column: span 3;
}
    img.promo-banner__img {
        width: 100%;
        height: auto;
    }
.promo-banner__side {
}
    img.promo-banner__side-img {
        width: 100%;
        height: auto;
    }


/* ===== WIDE BANNER (Широкий баннер) ===== */
.wide-banner {
    width: 100%;
    margin: 0;
    padding: 0;
    max-width: 1496px;
    margin: 30px auto 0 auto;
    padding: 0 20px;
}
.wide-banner__item {
    width: 100%;
    line-height: 0;
    border-radius: 10px;
    overflow: hidden;
}
.wide-banner__item + .wide-banner__item {
    margin-top: 8px;
}
.wide-banner__link {
    display: block;
    width: 100%;
}
.wide-banner__img {
    width: 100%;
    height: auto;
    display: block;
}


/* ===== COOKIE BANNER ===== */
.rittel-cookie-banner {
    position: fixed;
    bottom: 10px;
    left: 10px;
    right: 10px;
    max-width: 490px;
    border-radius: 10px;
    background: #2c2c2c;
    color: #ffffff;
    z-index: 9999;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.15);
    transform: translateY(100%);
    opacity: 0;
    transition: transform 0.3s ease-out, opacity 0.3s ease-out;
}

.rittel-cookie-banner--visible {
    transform: translateY(0);
    opacity: 1;
}

.rittel-cookie-banner__container {
    margin: 0 auto;
    padding: 0 20px;
}

.rittel-cookie-banner__content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 20px 0;
}

.rittel-cookie-banner__text {
    flex: 1;
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
    color: #ffffff;
}

.rittel-cookie-banner__button {
    flex-shrink: 0;
    padding: 12px 32px;
    background: #DF5931;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease;
    white-space: nowrap;
}

.rittel-cookie-banner__button:hover {
    background: #c94d28;
}

.rittel-cookie-banner__button:active {
    background: #b3441f;
}

/* Адаптив для планшетов */
@media (max-width: 800px) {
    .rittel-cookie-banner__content {
        padding: 16px 0;
        gap: 16px;
    }
    
    .rittel-cookie-banner__text {
        font-size: 13px;
    }
    
    .rittel-cookie-banner__button {
        padding: 10px 24px;
        font-size: 14px;
    }
}

/* Адаптив для мобильных устройств */
@media (max-width: 600px) {
    .rittel-cookie-banner__container {
        padding: 0 16px;
    }
    
    .rittel-cookie-banner__content {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding: 16px 0;
    }
    
    .rittel-cookie-banner__text {
        font-size: 13px;
        text-align: center;
    }
    
    .rittel-cookie-banner__button {
        width: 100%;
        padding: 12px;
        font-size: 14px;
    }
}

/* ===== Навигация между промо-страницами ===== */
.promo-nav {
    display: inline-flex;
    background: var(--main-grey, #F7F7F7);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 24px;
}

.promo-nav__item {
    padding: 12px 24px;
    font-size: 14px;
    cursor: pointer;
    position: relative;
    text-decoration: none;
    color: var(--main-black, #2c2c2c);
    transition: all 0.3s ease;
}

.promo-nav__item--active {
    background: var(--main-black, #2c2c2c);
    color: var(--white, #fff);
    font-weight: 700;
    border-radius: 10px;
}
a.promo-nav__item--active {color: var(--white, #fff);}

.promo-nav__item--active:hover {
    color: var(--white, #fff);
}

@media screen and (max-width: 600px) {
    .promo-nav {

    }
    
    .promo-nav__item {
        padding: 14px 16px;
        text-align: center;
    }
    
    .promo-nav__item--active {
    }
}

/* ===== Категории для брендов и избранного ===== */
.brand-categories {
    padding: 30px 0;
}

.brand-categories__title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}

.brand-categories__list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.brand-category-tag {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    background-color: #f5f5f5;
    border-radius: 20px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.brand-category-tag:hover {
    background-color: #e0e0e0;
    color: #000;
}

.brand-category-tag--active {
    background-color: #333;
    color: #fff !important;
}

.brand-category-tag--active:hover {
    background-color: #000;
    color: #fff;
}

.brand-category-show-more {
    border: none;
    background-color: transparent;
    color: #333;
    cursor: pointer;
    text-decoration: underline;
    padding: 8px 16px;
}

.brand-category-show-more:hover {
    color: #000;
}

.brand-category-tag__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    margin-left: 6px;
    font-size: 12px;
    font-weight: 600;
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

.brand-category-tag--active .brand-category-tag__count {
    background-color: rgba(255, 255, 255, 0.2);
}

/* ===== RECOMMENDED PRODUCTS SECTION ===== */
.recommended-products-section {
    margin-bottom: 80px;
}

.recommended-products-section__title {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 24px;
    color: #333;
}

@media screen and (max-width: 800px) {
    .recommended-products-section {
        padding: 30px 0 40px;
        margin-top: 30px;
        margin-bottom: 0;
    }
    
    .recommended-products-section__title {
        font-size: 22px;
        margin-bottom: 16px;
    }
}

.product-lightbox {display: none;} /* хз что это */

/* Сетка сертификатов на странице /about/sertificates */
.page-certificates-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 32px;
    margin-top: 32px;
}
.page-certificates-grid__item {
    display: flex;
    flex-direction: column;
    align-items: stretch;
}
.page-certificates-grid__item img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    padding: 10px;
    box-shadow: 0px 0px 9px rgba(0, 0, 0, 0.1);
    cursor: zoom-in;
}
.page-certificates-grid__title {
    margin-top: 12px;
    font-size: 14px;
    line-height: 1.3;
    text-align: left;
    color: #333;
}
@media screen and (max-width: 1024px) {
    .page-certificates-grid { grid-template-columns: repeat(3, 1fr); gap: 28px; }
}
@media screen and (max-width: 600px) {
    .page-certificates-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}