

/* Start:/local/templates/.default/components/bitrix/catalog/redesign/bitrix/catalog.element/.default/style.css?175432146065405*/
.product-labels {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 5;
    cursor: default;
}

.product-labels .discount {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 51px;
    height: 51px;
    border-radius: 50%;
    background-color: #000000;
    color: #ffffff;
    font-size: 14px;
    line-height: 16px;
    font-weight: 700;
    overflow: hidden;

    z-index: 3;
    font-family: 'Inter', sans-serif;
}


.catalog_detail {
    margin: 0 auto;
} 
@media screen and (min-width: 1600px){
    .catalog_detail {
        max-width: 1570px !important;
    } 
    .detail_page .container-fluid {
        padding-right: 0;
        padding-left: 0;
        overflow-x: hidden;
    }
}

.catalog_detail * {
    font-family: 'Inter';
}
.catalog_detail .item_slider:not(.flex) .slides li {

}
.catalog_detail .item_slider:not(.flex) .slides li iframe,
.catalog_detail .item_slider:not(.flex) .slides li img{
    position: absolute;
    margin: auto;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    border: 0;
    max-width: 100%;
    max-height: 100%;
    margin: 0;
}
.catalog_detail .item_slider .slides li iframe {
    width: 1010px;
    height: 970px;
}
@media screen and (max-width: 600px){
    .catalog_detail .item_slider .slides {
        height: 340px;
        padding: 0 0 5px 0;
    }
}

@media screen and (min-width: 1200px){
    .catalog_detail .item_slider:not(.flex) .slides li,
    .catalog_detail .item_slider .slides {
        height: 540px;
        width: 100%;
        max-width: 870px;
    }
}
@media screen and (min-width: 1366px){
    .catalog_detail .item_slider:not(.flex) .slides li,
    .catalog_detail .item_slider .slides {
        height: 580px;
        width: 100%;
        max-width: 820px;
    }
}

@media screen and (min-width: 1451px){
    .catalog_detail .item_slider:not(.flex) .slides li,
    .catalog_detail .item_slider .slides {
        height: 600px;
        width: 100%;
        max-width: 848px;
    }
    .catalog_detail .item_slider .slides {
        line-height: 610px;
        margin: 0 auto 25px auto;
    }
    .catalog_detail .item_slider:not(.flex) .slides li iframe {
        height: 565px;
        width: 100%;
        max-width: 928px;
    }
}
@media screen and (min-width: 1580px){
    .catalog_detail .item_slider .slides {
        line-height: 670px;
        margin: 0 auto 25px auto;
    }
    .catalog_detail .item_slider:not(.flex) .slides li iframe {
        height: 565px;
        width: 100%;
        max-width: 1010px;
    }
}

.image-title {
    position: absolute;
    display: block;
    bottom: 0;
    width: 100%;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.8);
    font-size: 16px;
    color: white;
    padding: 4px 10px;
    line-height: 18px;
}
@media screen and (max-width: 980px){
    .image-title {
        font-size: 12px;
        line-height: 14px;
    }
}
.catalog_detail .item_slider .wrapp_thumbs {
    position: relative;
    width: 100%;
    margin: 0 auto;
    padding: 10px 32px;
}
@media screen and (max-width: 1120px) {
    .catalog_detail .item_slider .wrapp_thumbs {
        padding: 20px 0px;
    }
}
.catalog_detail .item_slider .wrapp_thumbs .thumbs {
    max-width: 100%;
}
.catalog_detail .item_slider .wrapp_thumbs #thumbs {
    height: 105px;
}
.pictures__big .slick-slide img {
    width: auto;
    height: auto;
}
.pictures__big .slick-slide .iframe-pseudo img {
    min-height: 101%;
}
.catalog_detail .item_slider .thumbs .slick-slide {
    padding: 1px;
}
.catalog_detail .item_slider .thumbs .slick-slide img {
    max-height: 100%;
    max-width: 155px;
    width: 155px;
    height: 103px;
    outline: 1px solid lightgray;
    border-bottom: 4px solid transparent;
}
@media screen and (max-width: 430px) {
    .catalog_detail .item_slider .thumbs .slick-slide img,
    .catalog_detail .item_slider .thumbs .slick-slide .video-wrap-div {
        max-width: 125px;
        width: 125px;
        height: 90px;
    }
    .catalog_detail .item_slider .thumbs .slick-slide .video-wrap-div img {
        max-width: 123px;
        width: 123px;
        height: 88px;
    }
}
.product__pictures {
    position: relative;
}
.catalog_detail .item_slider.product__pictures .thumbs {
    max-width: 100%;
}
.catalog_detail .item_slider.product__pictures #thumbs {
    width: 100%;
}
.item_slider .thumbs .slides_block .slick-slide.slick-current img {
    border-bottom: 4px solid #8e8e8e;
}
@media screen and (min-width: 1371px) {
    .item_slider .thumbs .slides_block .slick-slide:hover img {
        border-bottom: 4px solid #8e8e8e;
    }
}

.catalog_detail .slick-slide {
    position: relative;
}
.catalog_detail .slick-slide:focus {
    outline: none;
}


@media (max-width: 1199px) {
.catalog_detail .tabs_section .tabs-head li {
    margin: 0px auto !important;
}
}


.iframe-container iframe {
    border: none;
}
.product__name,
.product__type, 
.info-block__preview-text {
    color: #121212;
}
.product__name {
    font-size: 28px;
    line-height: 31px;
    letter-spacing: 0.5px;
    margin-bottom: 15px;
    margin-top: 0;
    text-align: left;
    font-weight: 600;
}
.product__type {
    font-size: 14px;
    line-height: 20px;
    margin-bottom: 0px;
    margin-top: 0;
    text-align: left;
    text-transform: uppercase;
}
.product_osobennosti{
    color: #121212;
    font-size: 14px;
    padding: 15px;
    line-height: 20px;
}
.product_osobennosti h2,
.info-block__price .price-title,
.info-block__preview-text h2,
.catalog_detail .info-block h2,
.catalog_detail .info-block .title {
    color: #121212;
    display: block;
    font-size: 20px;
    font-weight: bold;
    text-align: left;
}
.characters h2 {
    font-size: 20px;
    font-weight: 700;
}

.info-block__preview-text h3,
.info-block__preview-text h4 {
    text-align: left;
}

.info-block:last-child {
    margin-bottom: 0;
}
.info-block__preview-text {
    font-size: 14px;
}
.catalog_detail .color_stickers a{
   margin-right: 8px;
   text-decoration: none;
}
.catalog_detail .color_stickers .color_item {
    height: 28px;
    width: 28px;
    border-radius: 50%;
    display: inline-block;
    background-size: cover;
    border: 3px solid #bbbbbb;
}
.catalog_detail .color_stickers .color_item.current_color{
    border-color: #d04520;
}

.info-section .inf-block {
    margin-bottom: 40px;

}

.info-section .characters table{
    width: 100%;
}
.info-section .characters tr {
    border-top: 1px solid #bababa;
}
.info-section .characters tr:first-child {
    border-top: 2px solid #000000;
}
.info-section .characters tr td:first-child {
    font-weight: bold;
    width: 50%;
}
.info-section .characters tr:nth-of-type(odd) {
    background-color: #f7f7f7;
}
.info-section .characters td {
    font-size: 14px;
    padding: 7px 5px 5px 5px;
}
.info-block__pictures img {
    max-width: 88px;
    height: auto;
}
.info-block__warranty .text,
.info-block__components .content{
    position: relative;
}
.info-block__warranty .text {
    color: #121212;
    font-size: 15px;
    line-height: 18px;
}
.info-block__components .content {
    font-size: 14px;
    line-height: 16px;
}
.info-block__warranty .pic {
    left: 0;
    top: 0;
    width: 65px;
    height: auto;
}
.info-block__warranty .warranty-link {
    font-size: 14px;
}
.info-block__warranty a.dealer {
    bottom: -15px;
}
.info-block__components .one-component{ 
    margin-bottom: 10px;
    font-size: 14px;
}
.info-block__components .one-component .product-name {
    margin-bottom: 5px;
    display: block;
}
.info-block__components .one-component .component-sku {
    display: block;
    color: #777777;
}
.videoplay:before {
    background: url('/local/templates/.default/components/bitrix/catalog/redesign/bitrix/catalog.element/.default/./img/playvideo.png');
    background-size: contain;
    content: '';
    position: absolute;
    width: 40px;
    height: 40px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
}
span.videoplay:before{
    width: 20px;
    height: 20px;
}
.videoplay.videoplay--bigpic {
    cursor: pointer;
}
.videoplay.videoplay--bigpic:before {
    width: 72px;
    height: 72px;
}
.files-wrap h2 {
    margin: 12px 0 6px;
    font-size: 18px;
    font-weight: 700;
}
.info-block__components .title,
.info-block__warranty .title{
    font-size: 18px;
    font-weight: 700;
}
.info-block__components .title {
    margin-bottom: 10px;
}

@media screen and (min-width: 981px){
    .product_osobennosti ul{
        -webkit-column-count: 2;
        -moz-column-count: 2;
        column-count: 2;
        -webkit-column-gap: 50px;
        -moz-column-gap: 50px;
        column-gap: 50px;
    }
}

.info-block__buy .counter_wrapp {
    padding: 0;
}
.info-block__buy .counter_wrapp .counter_block input[type="text"] {
    background-color: white;
    width: 62px;
}
.info-block__buy .counter_block.big_basket {
    width: 116px;
}
.catalog_detail .button.button.one_click{
    background-color: #d04620;
    border-color: #d04620;
    color: white;
}
.catalog_detail .button.button.one_click:hover{
   background-color: #9b3418;
   border-color: #9b3418;
}
.files_block{
    align-items: center;
}
.catalog_detail .file_type i.icon {
    width: 29px;
    height: 29px;
    background-size: 100%;
    display: block;
    float: unset;
    position: relative;
}
.catalog_detail .file_type {
    line-height: 29px;
    margin-top: 0px;
    margin-bottom: 5px;
    position: relative;
}

/*accessorids slider*/
.sliders {
    position: relative;

}
.slider-wrapper{
    display: inline-block;
    min-width: 100%;
    width: 100%;
}
.slider {
    width: 100%;
    overflow: hidden;
    display: inline-block;
    min-width: 100%;
    clear: both;
}
.slider .title {
    border-top: 1px solid #E5E5E5;
    position: relative;
    font-size: 0;
    margin: 0 0 24px;
    padding: 42px 0 0;
}
.slider .title .text {
    display: inline-block;
    margin: 0 38px 0 0;
    font-size: 20px;
    color: #1d1a1a;
    line-height: 30px;
    font-weight: 500;
}
.slider .title .controls{
    position: absolute;
    right: 0;
    top: 50%;
}
.slider .slider-wrapper {
    margin: 0 -13px;
    padding: 0 13px;
    z-index: 1;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}
.sliders .flex-viewport {
    overflow: visible !important;
    margin-top: 26px;
}
.sliders .tabs_content {
    margin-bottom: 35px;
    margin: 1px -13px 2px;
    padding: 0 22px;
    zoom: 1;
}

.detail_page .specials_slider > li,
.detail_page .tabs_slider li,
.detail_page .wrapper_block .wr li {
    width: 210px !important;
    height: 345px !important;
}
.detail_page .file_type .description {
    top: 0;
    padding: 0 0 0 10px;
    font-size: 14px;
}

.wrapp_thumbs .flex-direction-nav .flex-nav-prev {
    left: 0;  
}
.wrapp_thumbs .flex-direction-nav .flex-nav-next {
    right: 0;
}
.catalog_detail .item_slider .wrapp_thumbs.without-controls {
    padding: 10px 0px;
}
.wrapp_thumbs.without-controls .flex-direction-nav{
    display: none;
}
.pictures__big  {
    position: relative;
    width: 100%;
    display: block;
}
.pictures__big .slick-list {
    width: 100%;
    height: auto;
    position: relative;
    max-width: 100%;
}
.pictures__big img {
    max-width: 100%;
    max-height: 100%;
}
.thumbs_navigation {
    width: 100%;
    position: absolute;
    bottom: 50px;
    height: 29px;
}
.thumbs_navigation .slick-arrow {
    position: absolute;
}
.thumbs_navigation .flex-nav-next.slick-arrow {
    right: 0;
}
@media screen and (max-width: 991px) {
    .product__pictures {
        max-width: 100%;
        overflow-x: hidden;
    }
    .catalog_detail {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    /*
    .container-fluid {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    */
    /*.block-product-info {
        padding-left: 30px !important;
        padding-right: 30px !important;
    }*/
    .catalog-detail-wrapper-sizing-half {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    .catalog-detail-wrapper-sizing {
        margin-left: 15px !important;
        margin-right: 15px !important;
    }
    .cgaracters-wrap {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    .catalog_detail .item_slider .wrapp_thumbs {
        padding: 20px 0px 20px 10px;
    }
    .pictures__big .slick-list {
        border: 1px solid #eeeeee;
        width: 90vw;
        margin: 0 auto;
    }
    .catalog_detail .item_slider .thumbs .slick-slide {
        margin: 0 5px;
    }
    .wrapp_thumbs .slick-slide > div,
    .wrapp_thumbs .slick-slide > img {
        border: 1px solid #eeeeee;
        margin: 0 auto;
    }
    .catalog_detail .item_slider .thumbs .slick-slide > img,
    .item_slider .thumbs .slides_block .slick-slide.slick-current > img,
    .catalog_detail .item_slider .thumbs .slick-slide > div,
    .item_slider .thumbs .slides_block .slick-slide.slick-current > div {
        border-bottom: 1px solid #eeeeee;
    }
    .catalog_detail .item_slider .thumbs .slick-slide > div img,
    .item_slider .thumbs .slides_block .slick-slide.slick-current > div img {
        border-bottom: none;
    }
    .item_slider .thumbs .slides_block .slick-slide.slick-current:after {
        content: '';
        position: absolute;
        display: block;
        width: 155px;
        height: 4px;
        bottom: 0;
        left: 50%;
        margin-left: -77.5px;
        background-color: #67a4cf;
    }
}
@media screen and (min-width: 992px) {
    .pictures__big .slick-list {
        outline: 1px solid lightgray;
    }
}
@media screen and (min-width: 1600px) {
    .container-fluid .catalog_detail {
        max-width: 100% !important;
    }
    .product__pictures {
        padding-left: 25px;
        padding-right: 25px;
    }
    .catalog-detail-wrapper .stickers {
        left: 15px;
    }
    .thumbs_navigation {
        width: calc(100% - 50px);
    }
}
.btn-toggle-partially-hidden-xs {
    display: none;
}
.icon-dropdown-arrow {
    display: block;
    background: url(/local/assets/img/ico/arrow-left.svg);
    width: 20px;
    height: 20px;
    margin: 0 auto;
    transform: rotate(270deg);
}
.btn-toggle-partially-hidden-xs.active .icon-dropdown-arrow {
    transform: rotate(90deg);
}
.product__pictures .product-labels {
    right: 41px;
}
@media screen and (max-width: 767px) {
    .partially-hidden-xs {
        position: relative;
        max-height: 120px;
        overflow: hidden;
    }
    .partially-hidden-xs.active {
        max-height: 1000px;
    }
    .partially-hidden-xs:not(.active)::after {
        content: '';
        position: absolute;
        top: 0;
        bottom: 0;
        left: 0;
        right: 0;
        background: linear-gradient(rgba(255,255,255,0),#fff);
    }
    .btn-toggle-partially-hidden-xs {
        display: block;
        color: #575757;
        cursor: pointer;
        text-align: center;
        font-size: 25px;
    }
}
@media screen and (max-width: 1700px) {
    .catalog_detail .item_slider .wrapp_thumbs .thumbs {
        height: 90px;
        min-height: 90px;
    }
    .catalog_detail .item_slider .thumbs .slick-slide img {
        max-width: 130px;
        width: 130px;
        height: 88px;
    }
}
@media screen and (max-width: 1599px) {
    .catalog_detail .item_slider .wrapp_thumbs #thumbs {
        height: 110px;
    }
    .catalog_detail .item_slider .wrapp_thumbs .thumbs {
        height: 110px;
        min-height: 110px;
    }
    .catalog_detail .item_slider .thumbs .slick-slide img {
        max-width: 155px;
        width: 155px;
        height: 105px;
    }
    .product__pictures .product-labels {
        right: 16px;
    }
}
@media screen and (max-width: 1100px) {
    .catalog_detail .item_slider .wrapp_thumbs #thumbs {
        height: 90px;
    }
    .catalog_detail .item_slider .wrapp_thumbs .thumbs {
        height: 90px;
        min-height: 90px;
    }
    .catalog_detail .item_slider .thumbs .slick-slide img {
        max-width: 130px;
        width: 130px;
        height: 88px;
    }
    .product__name {
        font-size: 22px;
        line-height: 28px;
    }
}
@media screen and (max-width: 991px) {
    .catalog_detail .item_slider .wrapp_thumbs #thumbs {
        height: 110px;
    }
    .catalog_detail .item_slider .wrapp_thumbs .thumbs {
        height: 110px;
        min-height: 110px;
    }
    .catalog_detail .item_slider .thumbs .slick-slide img,
    .catalog_detail .item_slider .thumbs .slick-slide .video-wrap-div {
        max-width: 156px;
        width: 156px;
        height: 104px;
    }
    .catalog_detail .item_slider .thumbs .slick-slide .video-wrap-div img {
        max-width: 154px;
        width: 154px;
        height: 102px;
    }
}
@media screen and (max-width: 768px) {
    .catalog_detail .item_slider .wrapp_thumbs #thumbs {
        height: 60px;
    }
    .catalog_detail .item_slider .wrapp_thumbs .thumbs {
        height: 60px;
        min-height: 60px;
    }
    .catalog_detail .item_slider .thumbs .slick-slide img,
    .catalog_detail .item_slider .thumbs .slick-slide .video-wrap-div {
        max-width: 80px;
        width: 80px;
        height: 53px;
    }
    .catalog_detail .item_slider .thumbs .slick-slide .video-wrap-div img {
        max-width: 78px;
        width: 78px;
        height: 51px;
    }
    .item_slider .thumbs .slides_block .slick-slide.slick-current:after {
        width: 80px;
        margin-left: -40px;
    }
}
.product-small__buy.product-small__buy--one-click {
    margin-top: 12px;
    background-color: #575757;
    border-color: #575757;
}
.product-small__buy.product-small__buy--one-click:hover {
    background-color: #3e3e3e;
    border-color: #3e3e3e;
}

/*Редизайн карточки 2024*/

.bd-wrap {
	margin-bottom: 1rem;
} 
/*
@media (max-width: 991px) {
    .bd-wrap {
	 margin-top: 2rem;
} 
}*/

.bd-wrap button {
	 border: none;
	 background-color: transparent;
	 cursor: pointer;
	 outline: none;
}

.bd-wrap button:hover, .bd-wrap button:focus, {
	 border: none;
	 background-color: transparent;
	 cursor: pointer;
	 outline: none;
}

.btn-secondary {
    color: #fff;
    background-color: #212529;
    border-color: #212529;
}	

.btn-secondary:not(:disabled):not(.disabled).active, .btn-secondary:not(:disabled):not(.disabled):active, .show>.btn-secondary.dropdown-toggle {
    color: #fff;
    background-color: #3a3b3d;
    border-color: #3a3b3d;
}

.bd-wrap .badge {
	font-family: Arial, Helvetica, sans-serif;
	font-size: 11px;
    display: inline-block;
    padding: .65em .95em;
	margin-right: 0.3rem;
    font-weight: 600;
    line-height: 1.5;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 0 !important;
    transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}

@media (min-width: 991px) and (max-width: 1199px) {.bd-wrap .badge {padding: .75em .4em;}}

.bg-red {border: 1px #e52b1a solid !important; color: #e52b1a;}
.bg-lilac {border: 1px #4900ff solid !important;color: #4900ff;}
.bg-blue {border: 1px #22b0f3 solid !important;color: #22b0f3;}


.catalog_detail .color_stickers .color_item.current_color {
    box-shadow: 0 0 0 1px #181818;
	border-color: #f7f7f7;   
}

.catalog_detail .color_stickers .color_item {
    border: 4px solid #f7f7f7;
	border-radius: 0;
    height: 40px;
    width: 40px;
    cursor: pointer;
    background: gray;
    position: relative;
    background-position: center;
    background-size: cover;
}

.catalog_detail .background-gray {
    background-color: #ffffff;
}

.tabs_section .tabs-head {
    margin: 0px;
}

.tabs-head li.current {
    border-color: #f5f5fa !important;
}

.tabs-head li.current span, .tabs-head li:hover {
    color: #000 !important;
}


@media screen and (min-width: 992px) {
    .pictures__big .slick-list {
        outline: 0px solid lightgray;
    }
}

.catalog_detail .item_slider .thumbs .slick-slide img {
    max-height: 100%;
    max-width: 155px;
    width: 155px;
    height: 103px;
    outline: 0px solid lightgray;
    border-bottom: 4px solid transparent;
}


.product-small__buy, .product__product-buy, .product-buy-btn {
    display: block;
    color: #fff;
    background-color: #2e2e2e !important;
    border-color: #2e2e2e !important;
    width: 100%;
    border-radius: 4px;
    text-align: center;
    font-weight: 400;
    font-size: 15px;
    min-height: 38px;
    line-height: 38px;
    border-radius: 4px;
    font-weight: 400;
	border-radius: 0 !important;
}


.product-labels .discount.discount--blackfriday .discount__size {
    z-index: 3;
    color: #000000;
}

.product-price-old {
    color: #616161;
    font-weight: 400;
    font-size: 14px;
    line-height: 16px;
    text-decoration: line-through;
}

.selection_items {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.selection_items__block {
    width: 49%;
}

@media (max-width: 659px) {
    .selection_items {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        margin-bottom: 20px;
    }

    .selection_items__block {
        width: 100%;
    }
}




/* ===== СЛАЙДЕР АКСЕССУАРОВ ===== */

/* Заголовок слайдера */
.accessories-slider-header,
.related-slider-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 26px;
}

.related-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: #222;
    margin: 0;
}

/* Навигация слайдера */
.accessories-slider-nav,
.related-slider-nav {
    display: flex;
    gap: 10px;
}

.slider-nav-btn {
    border: none;
    background: #f4f4f4;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background .2s, box-shadow .2s, color .18s;
    box-shadow: 0 1px 8px rgba(44, 90, 160, 0.10);
    color: #7a7a7a;
    padding: 0;
    outline: none;
}

.slider-nav-btn:disabled {
    background: #e0e0e0;
    color: #bbb;
    cursor: default;
    opacity: 0.5;
}

.slider-arrow {
    display: block;
    width: 24px;
    height: 24px;
    background-color: #222;
    mask: url('data:image/svg+xml;utf8,<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M13 5L8 10L13 15" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>') center/contain no-repeat;
    -webkit-mask: url('data:image/svg+xml;utf8,<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M13 5L8 10L13 15" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>') center/contain no-repeat;
    transition: background .18s;
}

.slider-arrow.right {
    transform: rotate(180deg);
}

/* Контейнер слайдера */
.accessories-slider-wrapper,
.related-slider-wrapper {
    overflow-x: hidden;
    position: relative;
    width: 100%;
    padding-bottom: 16px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.accessories-slider-wrapper::-webkit-scrollbar,
.related-slider-wrapper::-webkit-scrollbar {
    display: none !important;
}

/* Слайдер */
.accessories-slider,
.related-slider {
    display: flex;
    flex-wrap: nowrap;
    gap: 24px;
    will-change: transform;
    transition: transform 0.18s cubic-bezier(.4, 0, .2, 1);
    cursor: grab;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.accessories-slider:active,
.related-slider:active {
    cursor: grabbing;
}

.accessories-slider::-webkit-scrollbar,
.related-slider::-webkit-scrollbar {
    display: none !important;
}

/* Скроллбар */
.slider-scrollbar {
    width: 100%;
    max-width: 100%;
    height: 3px;
    background: #e0e0e0;
    border-radius: 3px;
    margin-top: 8px;
    position: relative;
    cursor: pointer;
    user-select: none;
}

.slider-scrollbar-drag {
    height: 100%;
    background: #222;
    border-radius: 3px;
    width: 60px;
    position: absolute;
    left: 0;
    transition: width 0.3s, left 0.3s;
}

/* ===== КАРТОЧКА ТОВАРА ===== */
.product-item {
    flex: 0 0 320px;
    min-width: 220px;
    max-width: 95vw;
    background: #fff;
    margin: 0;
    display: flex;
    flex-direction: column;
}

.product-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-image {
    display: block;
    margin: 0 auto 16px auto;
    max-width: 100%;
    max-height: 110px;
    object-fit: contain;
    border-radius: 12px;
    background: #f8f8f8;
}

.product-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
}

.product-name {
    font-size: 1.12rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #222;
    min-height: 2.5em;
    line-height: 1.2;
}

.product-description {
    font-size: 0.99rem;
    color: #606060;
    margin-bottom: 10px;
    min-height: 2.2em;
}

.product-price {
    font-size: 1.15rem;
    font-weight: 500;
    color: #222;
    margin-top: auto;
    margin-bottom: 0;
    display: block;
}

.block-product-info .bd-wrap {
    display: flex;
}

.block-product-info .badge {
    flex: auto;
}


@media (max-width: 768px) {
    .info-block.info-block__pictures img {
        max-width: 65px;
    }
}

/* ===== КНОПКИ ДЕЙСТВИЙ ===== */
.btn-store-action {
    font-size: 16px;
    padding: 8px 22px;
    border: none;
    font-weight: 500;
    transition: background 0.2s, opacity 0.2s;
    margin-top: 10px;
    min-width: 160px;
    box-sizing: border-box;
}

.btn-store-reserve {
    background: #222;
    color: #fff;
    cursor: pointer;
}

.btn-store-reserve:hover:not(:disabled) {
    background: #444;
}

.btn-store-order {
    background: #ccc;
    color: #fff;
    cursor: not-allowed;
    opacity: 0.65;
}

.btn.btn-map.active,
.btn.btn-list.active {
    color: #fff;
}

.btn-reserve,
.btn-order {
    background: #222;
    color: #fff;
    border: none;
    padding: 7px 18px;
    border-radius: 4px;
    cursor: pointer;
}

.btn-order {
    background: #666;
}

.store-view-switch .btn {
    margin-right: 10px;
    border: 1px solid #ddd;
    background: #fff;
}

.store-view-switch .active {
    background: #222;
    color: #fff;
}

/* ===== РАЗМЕРЫ ===== */
.size-block-wrap {
    display: flex;
    overflow: auto;
    scrollbar-width: none;
}

.size-block {
    padding: 10px 14px;
    background: #f5f5f5 !important;
    cursor: pointer;
    margin: 1px 12px 5px 0px; /*margin: 1px 12px 4px 0px;*/
    text-align: center;
    text-decoration: none;
    font-size: 16px;
    border: none;
    color: #575757 !important;
}

.size-block.selected {
    border: 1px solid #222;
    background: #fff;
}

.size-block.disabled {
    color: #ddd !important;
    background: #fafafa !important;
    border-color: #eee !important;
    cursor: default !important;
    pointer-events: none;
    font-weight: 400;
}

.size-block:not(.selected):hover:not(.disabled) {
    border-color: #999;
    background: #f0f0f0;
}

.title-option {
    color: #181818;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 24px; /*margin: 1px 12px 5px 0px;*/
    display: inline-block;
}


/* ===== БЛОК ДОСТАВКИ И ГАРАНТИИ ===== */
.delivery-info {}

.delivery-item {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.delivery-item:last-child {
    margin-bottom: 0;
}

.icon {
    width: 20px;
    height: 20px;
    margin-right: 12px;
    flex-shrink: 0;
}

.text {
    font-size: 14px;
    line-height: 1.4;
}

.main-text {
    color: #121212;
}

.main-text a {
    color: #121212 !important;
}

.location {
    color: #121212;
    font-weight: 500;
    text-decoration: underline;
}


/* ===== ТАБЫ И АККОРДЕОН ===== */
/*ul.tabs1 li:first-child {
    margin-left: 15px !important;
}

.catalog_detail .tabs_section .tabs-head li {
    margin-top: 0 !important;
}

.tabs-head li.current span, 
.tabs-head li:hover, 
.tabs-head li:hover span {
    color: #212529 !important;
}

.tabs_section .tabs-head {
    position: sticky;
    z-index: 99999;
    top: 39px;
}*/

/* ===== ОСОБЕННОСТИ ТОВАРА ===== */
.product_osobennosti h2 {
    margin-bottom: 20px;
}
.product_osobennosti h3,
.product_osobennosti h4 {
    font-weight: bold;
    text-align: left;
}

.product_osobennosti ul li {
    padding-left: 0 !important;
    display: inline-block;
	margin-bottom: 15px;
    font-size: 15px;
    position: relative;
    padding-left: 25px;
    text-align: left;
}

.product_osobennosti ul li::before {
    content: "";
    color: #313131;
    position: absolute;
    left: 2px;
    top: 0;
}

.osobennosti-list li::before {
    content: "" !important;
    display: block;
    width: 50px;
    height: 4px;
    background-color: #ddd;
    margin-bottom: 10px;
    position: relative !important;
    left: 0 !important;
    will-change: transform;
}

.osobennosti-list li:last-child::after {
    display: none;
}

/* ===== ОБЩИЕ ЭЛЕМЕНТЫ ===== */
/* Базовые стили таблицы остаются */
.store-table {
    width: 100%;
    border-collapse: collapse;
}

.store-table th,
.store-table td { 
    padding: 10px;
    border-bottom: 1px solid #eee;
}

.metro {
    font-weight: bold;
}

.metro-orange {
    color: #ff9800;
}

/* Мобильные стили */
@media (max-width: 768px) {

    .store-table,
    .store-table thead,
    .store-table tbody,
    .store-table th,
    .store-table td,
    .store-table tr {
        display: block;
    }

    .store-table thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }

    .store-table tr {
        background: #fff;
        margin-bottom: 15px;
    }

    .store-table td {
        border: none;
        padding: 2px 0;
        position: relative;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .store-table td:before {
        content: attr(data-label);
        font-weight: 600;
        color: #666;
        flex-shrink: 0;
    }

    .store-card-title {
        font-size: 18px;
        font-weight: 600;
        color: #333;
        margin-bottom: 10px;
        display: block;
    }

    .store-card-phone {
        color: #007bff;
        text-decoration: none;
        font-weight: 500;
    }

    .store-card-metro {
        display: flex;
        align-items: center;
    }

    .store-card-availability {
        font-weight: 600;
    }

    .store-card-availability.available {
        color: #28a745;
    }

    .store-card-availability.unavailable {
        color: #dc3545;
    }

    .btn-store-action {
        width: 100%;
        padding: 12px;
        border: none;
        font-weight: 600;
        cursor: pointer;
        margin-top: 10px;
    }

    .btn-store-reserve {
        background: #333;
        color: white;
    }

    .btn-store-order {
        background: #6c757d;
        color: white;
    }

    .btn-store-order:disabled {
        opacity: 0.6;
        cursor: not-allowed;
    }
}

.file_type .description {
    padding: 0 0 0 10px;
    top: 0px;
}

.file_type .description a {
    color: #000000;
    border-bottom: 2px solid;
}

.hr-line-bottom {
    border-bottom: 1px solid #6a737c;
}

.site_wrap {
    z-index: 99;
    overflow-x: inherit !important;
}

.block-product-info {
    position: sticky;
    top: 150px;
    transition: top 0.2s, left 0.2s, width 0.2s;
    will-change: top, left, width;
}

/* ===== МЕДИА-ЗАПРОСЫ ===== */

/* Десктоп */
@media (min-width: 991px) {
    .hr-line {
        border-right: .1rem solid #e0e0e0;
    }
}

@media screen and (min-width: 981px) {
    .product_osobennosti ul:after {
        content: "";
        position: absolute;
        right: 0;
        top: 0;
        width: 1px;
        height: 100%;
        background-color: #ddd;
    }
}

@media screen and (min-width: 1600px) {
    .product__pictures {
        padding-left: 0px !important;
        padding-right: 0px !important;
    }
}

/* Планшет */
@media (max-width: 900px) {
    .product-item {
        flex: 0 0 240px;
        min-width: 180px;
    }

    .accessories-slider {
        gap: 14px;
    }
}


/* Мобильные устройства - аккордион */
@media (max-width: 1100px) {

    /* Скрываем обычные табы на мобильных */
    .tabs_section .tabs-head {
        display: none !important;
    }

    /* Контейнер для аккордиона */
    .tabs_section .tabs_content {
        display: block !important;
    }

    /* Элементы аккордиона */
    .tabs_section .tabs_content li {
        display: block !important;
        border-bottom: 1px solid #e0e0e0;
        background: white;
        padding: 0 !important;
        margin: 0 !important;
    }

    .tabs_section .tabs_content li:last-child {
        border-bottom: none;
    }

    /* Заголовок аккордиона */
    .tabs_section .tabs_content li .accordion-header {
        padding: 15px 0px;
        background: white;
        border: none;
        cursor: pointer;
        display: flex !important;
        justify-content: space-between;
        align-items: center;
        font-weight: 500;
        color: #333;
        width: 100%;
        text-align: left;
        font-size: 16px;
        outline: none;
        transition: background-color 0.2s ease;
    }

    /*.tabs_section .tabs_content li .accordion-header:hover {
        background-color: #f8f9fa;
    }*/

    /* Иконка плюс/минус */
.tabs_section .tabs_content li .accordion-header:after {
    content: '';
    display: inline-block;
    width: 24px;
    height: 24px;
    background-image: url('/bitrix/templates/mshop_adaptive/img/icons/plus.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    vertical-align: middle;
    transition: all 0.3s ease;
}

    .tabs_section .tabs_content li.accordion-active .accordion-header:after {
            content: '';
    display: inline-block;
    width: 24px;
    height: 24px;
    background-image: url("/bitrix/templates/mshop_adaptive/img/icons/minus.svg");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    vertical-align: middle;
    transition: all 0.3s ease;
    }

    /* Контент аккордиона - изначально скрыт */
    .tabs_section .tabs_content li .accordion-content {
        max-height: 0;
        overflow: hidden;
        padding: 0;
        transition: max-height 0.4s ease-out, padding 0.4s ease-out;
        background: white;
    }

    /* Активный контент аккордиона */
    .tabs_section .tabs_content li.accordion-active .accordion-content {
        max-height: 3000px;
        /* Увеличил значение */
        padding: 0;
        transition: max-height 0.4s ease-in, padding 0.4s ease-in;
    }

    .tabs_section h3 {
        font-size: 20px;
        text-align: left !important;
    }

    /* Убираем стандартные стили current для мобильных */
    .tabs_section .tabs_content li.current {
        display: block !important;
    }

    /* Переопределяем current стили для мобильных */
    .tabs_section .tabs_content li.current .accordion-content {
        padding: 20p 0x;
    }

    /* Стили для списков внутри аккордиона */
    .osobennosti-list li {
        border: none !important;
    }

    .osobennosti-list:after {
        content: "";
        display: block;
        width: 100%;
        height: 4px;
        background-color: #ddd;
        margin: 15px 0;
    }
}

/* Десктопные стили - табы */
@media (min-width: 1101px) {
    .tabs_section .tabs-head {
        display: flex !important;
        border-bottom: 1px solid #e0e0e0;
		border-top: 1px solid #e0e0e0;
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .tabs_section .tabs-head li {
        cursor: pointer;
        transition: all 0.3s ease;
		margin: 0 auto !important;
    }

	.tabs_section .tabs-head.sticky li {margin: 0 !important;}

    /*.tabs_section .tabs-head li:hover {
        background-color: #f5f5f5;
    }*/

    .tabs_section .tabs-head li.current {
        border-bottom-color: #007bff;
        background-color: #fff;
    }

    .tabs_section .tabs-head li span {
        display: block;
        font-weight: 500;
        color: #333;
    }

    .tabs_section .tabs-head li:hover span {
        color: #333;
    }

    .tabs_section .tabs-head li.current span {
        color: #007bff;
    }



    /* Скрываем аккордион на десктопе */
    .accordion-header {
        display: none !important;
    }

    .accordion-content {
        display: block !important;
        padding: 0 !important;
        max-height: none !important;
    }
}



@media screen and (max-width: 981px) {
    .site_header__inner {
        height: 50px !important;
    }

    .site_main {
        padding-top: 60px !important;
    }
}


/* Основные стили для табов */
.tabs_section {
    position: relative;
}


.tabs1.main_tabs1 {
    background: transparent;
    transition: all 0.3s ease;
    z-index: 100;
}

/* Стили для закрепленного состояния */
.tabs1.main_tabs1.sticky {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: #fff !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 0;
    margin: 0;
    z-index: 999999;
    height: 45px;
}

.tabs1.main_tabs1.sticky li {
    background: #fff !important;
    border: none;
	margin: 0;
}

.tabs_section.sticky-active {
    padding-top: 45px;
    /* Соответствует height в .sticky */
}

@media (min-width: 992px) {
    .tabs1.main_tabs1.sticky {
        display: flex;
        justify-content: center;
    }

    .tabs_section .tabs-body {
        min-height: 400px;
    }
}

/* На мобильных отключаем sticky */
@media (max-width: 991px) {
    .tabs1.main_tabs1.sticky {
        position: relative !important;
        top: auto !important;
        background: transparent !important;
        box-shadow: none !important;
    }

    .tabs_section.sticky-active {
        padding-top: 0 !important;
    }
}


#panel {
    z-index: 999999;
    display: none !important;
}

.site_header {
    padding-top: 0 !important;
}


.catalog_detail .tabs_section .tabs-head li {
    margin-top: 0px !important;
}


.catalog_detail .tabs_section {
    margin: 5px 0px 0px !important;
}

.file_type.jpg i.icon {
    background-position: 0px -0px !important;
}



.color_stickers::before,
.size-sku::before,
.info-block__price::before,
.product-city::before,
.delivery-info::before,
.product-delivery-container::before,
.info-block__pictures::before {
    content: "";
    display: block;
    border-top: 0.1rem solid #e0e0e0 !important;
    margin: 24px 0; /*margin: 0.5rem 0;*/
}

.price-title {
    margin-bottom: 5px;
}

.modal-dialog .icon {
    width: 48px;
    height: 48px;
    margin-right: 0 !important;
    flex-shrink: 0;
}

.modal-dialog .icon-min {
    width: 30px;
    height: 30px;
    margin-left: 5px;
}

/* Мобильная галерея */
@media (max-width: 990px) {
.block-product-images {
    margin-bottom: 15px;
}

    .item_slider.product__pictures {
        position: relative;
        overflow: hidden; 
    }
    
    .pictures__big {
        position: relative;
        display: flex;
        flex-wrap: nowrap;
        will-change: transform;
        transition: transform 0.18s cubic-bezier(.4, 0, .2, 1);
        cursor: grab;
        overflow: visible;
        height: auto;
        min-height: 200px;
    }
    
    .pictures__big:active {
        cursor: grabbing;
    }
    
    .gallery-slide {
        flex: 0 0 100%;
        width: 100%;
        height: auto;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .gallery-slide img {
        width: 100%;
        height: auto;
        max-width: 100%;
        object-fit: contain;
    }
    
    /* Для видео контейнеров */
    .gallery-slide.iframe-container {
        display: block;
    }
    
    .gallery-slide .iframe-pseudo {
        width: 100%;
    }
    
    .wrapp_thumbs {
        display: none !important;
    }
}

/* Мобильные элементы управления галереей (overlay) */
.mobile-gallery-controls {
    display: none;
    position: absolute;
    bottom: 0px;
    left: 4px;
    right: 4px;
    z-index: 10;
    border-radius: 12px;
    padding: 0;
}

.mobile-gallery-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.mobile-gallery-counter {
	font-weight: 600;
    color: #333;
    background: #f4f4f4;
    padding: 4px 6px;
}

.mobile-gallery-arrows {
    display: flex;
    gap: 8px;
}

/* Кнопки навигации */
.mobile-gallery-nav .slider-nav-btn {
    border: none;
    background: #f4f4f4;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background .2s, box-shadow .2s, color .18s, opacity .2s;
    box-shadow: 0 1px 8px rgba(44, 90, 160, 0.10);
    color: #7a7a7a;
    padding: 0;
    outline: none;
}

.mobile-gallery-nav .slider-nav-btn:hover:not(:disabled) {
    background: #e8e8e8;
}

.mobile-gallery-nav .slider-nav-btn:disabled {
    background: #e0e0e0;
    color: #bbb;
    cursor: default;
    opacity: 0.5;
}

.mobile-gallery-nav .slider-arrow {
    display: block;
    width: 20px;
    height: 20px;
    background-color: currentColor;
    mask: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M13 5L8 10L13 15' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
    -webkit-mask: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M13 5L8 10L13 15' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
    transition: background .18s;
}

.mobile-gallery-nav .slider-arrow.right {
    transform: rotate(180deg);
}

/* Скроллбар */
.mobile-gallery-scrollbar {
    width: 100%;
    height: 3px;
    background: #e0e0e0;
    border-radius: 0px;
    position: relative;
    cursor: pointer;
    user-select: none;
}

.mobile-gallery-scrollbar .slider-scrollbar-drag {
    height: 100%;
    background: #333;
    border-radius: 3px;
    width: 30px;
    position: absolute;
    left: 0;
    cursor: grab;
    transition: none;
}

.mobile-gallery-scrollbar .slider-scrollbar-drag:active {
    cursor: grabbing;
}

@media (max-width: 990px) {
    .mobile-gallery-controls {
        display: block !important;
    }
}

@media (max-width: 600px) {
    .mobile-gallery-controls {
        bottom: 0px;
        left: 0px;
        right: 0px;
        padding: 0 4px;
    }
    
    .mobile-gallery-nav .slider-nav-btn {
        width: 28px;
        height: 28px;
    }
    
    .mobile-gallery-nav .slider-arrow {
        width: 18px;
        height: 18px;
    }
    
    .mobile-gallery-counter {
        font-size: 13px;
    }
}

@media (min-width: 991px) {
    .mobile-gallery-controls {
        display: none !important;
    }
    
    .pictures__big {
        display: block;
    }
}


@media (max-width: 990px) {
    .pictures__big {
        position: relative;
        display: flex;
        flex-wrap: nowrap;
        will-change: transform;
        transition: transform 0.18s cubic-bezier(.4, 0, .2, 1);
        cursor: grab;
        overflow: visible;
        height: auto;
        min-height: 200px;
        touch-action: pan-y pinch-zoom;
        -webkit-user-select: none;
        user-select: none;
    }
    
    .pictures__big:active {
        cursor: grabbing;
    }
    
    .gallery-slide {
        flex: 0 0 100%;
        width: 100%;
        height: auto;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .gallery-slide img {
        width: 100%;
        height: auto;
        max-width: 100%;
        object-fit: contain;
        pointer-events: none;
        -webkit-user-drag: none;
        user-drag: none;
    }
}

.image-title {
    top: 0 !important;
    bottom: auto;
}



/* Стили для полноэкранного просмотра фото на мобильных */
.product-fullscreen-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    cursor: pointer;
    -webkit-backdrop-filter: blur(5px); /* Для iOS */
    backdrop-filter: blur(5px);
}

.product-fullscreen-overlay img {
    max-width: 95%;
    max-height: 95%;
    object-fit: contain;
    user-select: none; /* Запретить выделение картинки */
    -webkit-user-drag: none; /* Запретить перетаскивание */
}

.product-fullscreen-overlay .fullscreen-close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 40px;
    font-weight: 300;
    color: white;
    background: none;
    border: none;
    cursor: pointer;
    line-height: 1;
    padding: 10px;
    text-shadow: 0 0 5px rgba(0,0,0,0.5);
}












/* ==========================================================================
   Стили для блока выбора города в карточке товара
   ========================================================================== */

/* 1. Внешний контейнер-обертка */
/* Он теперь отвечает за фон, отступы и вертикальное расположение элементов */
.product-delivery-wrapper {
    display: flex;
    flex-direction: column; /* Элементы (основная строка и примечание) идут друг под другом */
    align-items: flex-start;
    border-radius: 8px;
}

/* 2. Внутренний контейнер для основной строки (заголовок + селектор) */
/* У него убраны фон и отступы, он теперь только для выравнивания в строку */
.product-delivery {
    display: flex;
    align-items: center;
    width: 100%;
}

/* 3. Заголовок перед селектором ("Бесплатная доставка по/до ТК") */
.product-delivery__label {
    margin-right: 5px;
    font-size: 14px; /* Взято из удаленного .product-delivery__title */
    color: #666;      /* Взято из удаленного .product-delivery__title */
    white-space: nowrap;
}

/* 4. Примечание под селектором */
/* Теперь имеет отступ сверху, а не сбоку */
.product-delivery__note {
    font-size: 13px;
    color: #888;
}


/* --- Стили для самого выпадающего списка (без изменений) --- */

/* Основной контейнер селектора */
.city-selector {
    position: relative;
    width: 220px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

/* Отображение текущего города */
.city-selector__current {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    background-color: #fff;
    cursor: pointer;
    transition: border-color 0.2s;
}

.city-selector.is-open .city-selector__current {
    border-color: #007bff;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}


.block-product-info.product-info--z-indexed {
    z-index: 1000; 
}
.city-selector__current-name {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    border-bottom: 1px dashed #333; /* Стиль как у ссылки */
    transition: color 0.2s;
}

.city-selector__current-name:hover {
    color: #0056b3;
    border-bottom-color: #0056b3;
}

/* Стрелка */
.city-selector__arrow {
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid #888;
    transition: transform 0.2s ease-in-out;
}

.city-selector.is-open .city-selector__arrow {
    transform: rotate(180deg);
}

/* Выпадающий список */
.city-selector__dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #fff;
    border: 1px solid #007bff;
    border-top: none;
    border-bottom-left-radius: 6px;
    border-bottom-right-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    z-index: 100;
    max-height: 250px;
    overflow-y: auto;
}

.city-selector.is-open .city-selector__dropdown {
    display: block;
}

/* Поиск */
.city-selector__search-wrapper {
    padding: 8px;
    border-bottom: 1px solid #e0e0e0;
}

.city-selector__search-input {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}

.city-selector__search-input:focus {
    outline: none;
    border-color: #007bff;
}

/* Список городов */
.city-selector__list-item {
    display: block;
    padding: 10px 12px;
    font-size: 14px;
    color: #333;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s;
}

.city-selector__list-item:hover {
    background-color: #f0f8ff;
}

.city-selector__list-item.is-selected {
    background-color: #e6f3ff;
    font-weight: 600;
    color: #0056b3;
}


/* ==========================================================================
   Стили для МОБИЛЬНОГО модального окна выбора города
   ========================================================================== */

/* Скрываем модальное окно по умолчанию */
.city-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1050;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

/* Показываем, когда активен */
.city-modal.is-visible {
    opacity: 1;
    visibility: visible;
}

.city-modal__content {
    background-color: #fff;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    transform: translateY(100%);
    transition: transform 0.3s ease-out;
}

.city-modal.is-visible .city-modal__content {
    transform: translateY(0);
}

.city-modal__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #e0e0e0;
    flex-shrink: 0;
}

.city-modal__title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.city-modal__close {
    border: none;
    background: none;
    font-size: 28px;
    font-weight: 300;
    line-height: 1;
    color: #888;
    cursor: pointer;
    padding: 0;
}

.city-modal__search {
    padding: 15px 20px;
    flex-shrink: 0;
}

.city-modal__search-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 16px;
    box-sizing: border-box;
}

.city-modal__list {
    flex-grow: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch; /* Плавный скролл на iOS */
}

/* Стили для элементов списка в модалке (похожи на десктопные) */
.city-modal .city-selector__list-item {
    padding: 15px 20px;
    font-size: 16px;
    border-bottom: 1px solid #f0f0f0;
}
.city-modal .city-selector__list-item:last-child {
    border-bottom: none;
}


/* ==========================================================================
   Адаптивные правки для основного селектора
   ========================================================================== */

@media (max-width: 767px) {
    /* На мобильных устройствах мы больше не показываем стандартный выпадающий список.
       Вместо него будет открываться модальное окно. */
    .city-selector__dropdown {
        display: none !important;
    }
    
    /* Делаем сам виджет селектора чуть компактнее */
    .product-delivery {
        flex-wrap: wrap; /* Разрешаем перенос, если не влезает */
    }
    .city-selector {
        flex-grow: 1; /* Позволяем селектору занять доступное место */
        width: 100%;
margin: 0 0 10px 0;
    }
}


/* Основной контейнер: выстраивает текстовый блок и селектор в ряд */
.product-delivery {
    display: flex;
    align-items: center; /* Вертикальное выравнивание по центру */
}

/* Новый блок-обертка для текста */
.product-delivery__text-wrapper {
    display: flex;
    flex-direction: column; /* Элементы внутри идут друг под другом */
}

/* Надпись "Бесплатная доставка..." */
.product-delivery__label {
    font-size: 14px;
    color: #666;
    line-height: 1.2;
}

/* Примечание "(есть исключения)" */
.product-delivery__note {
    font-size: 13px;
    color: #888;
    line-height: 1.2;
    margin-top: 2px;
}





/* =================================================================== */
/* СТИЛИ ДЛЯ УНИФИЦИРОВАННЫХ МОДАЛЬНЫХ ОКОН (BOOTSTRAP)        */
/* =================================================================== */

/* ----------------------------------------- */
/* 1. ОБЩИЕ СТИЛИ ДЛЯ ВСЕХ МОДАЛЬНЫХ ОКОН     */
/* ----------------------------------------- */

.modal-content {
    border: none;
    box-shadow: none;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.modal-header .close {
    position: absolute;
    right: 20px;
    top: 20px;
    width: 40px;
    height: 40px;
    border: none;
    background: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #999999;
    transition: all 0.2s ease;
    opacity: 1;
    cursor: pointer;
    text-shadow: none;
    font-weight: normal;
    padding: 0;
    margin: 0;
}

.modal-header .close:hover {
    color: #333333;
    transform: scale(1.1);
    opacity: 1;
}

.modal-header .close span {
    line-height: 1;
}

.modal-footer {
    background: #ffffff;
    border-top: none;
    padding: 0 30px 15px 30px;
    text-align: center;
}

.modal-footer .btn-secondary,
.modal-footer .delivery-btn {
    background: #000000;
    border: none;
    color: #ffffff;
    padding: 15px 40px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s ease;
    text-transform: none;
    min-width: 200px;
    width: 100%;
    border-radius: 0px !important;
    cursor: pointer;
}

.modal-footer .btn-secondary:hover,
.modal-footer .delivery-btn:hover {
    background: #333333;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    color: #ffffff;
}

/* ----------------------------------------- */
/* 2. СТИЛИ ДЛЯ МОДАЛЬНОГО ОКНА ДОСТАВКИ      */
/* ----------------------------------------- */

#deliveryModal .modal-dialog {
    max-width: 400px;
    margin: 30px auto;
}

#deliveryModal .modal-header {
    border-bottom: none;
    padding: 30px 30px 20px 30px;
    text-align: center;
    justify-content: center;
}

#deliveryModal .modal-title {
    font-size: 20px;
    font-weight: 700;
    color: #333333;
    line-height: 1.3;
}

#deliveryModal .modal-body {
    padding: 0 30px 25px 30px;
}

#deliveryModal .delivery-truck-icon {
    width: 150px;
    height: 150px;
    margin: 0 auto 25px auto;
    background: url('/bitrix/templates/mshop_adaptive/img/icons/shipping.svg') no-repeat center;
    background-size: contain;
}

#deliveryModal .delivery-info-item {
    margin-bottom: 20px;
    text-align: left;
}

#deliveryModal .delivery-info-item:last-child {
    margin-bottom: 0;
}

#deliveryModal .delivery-info-title {
    font-size: 14px;
    font-weight: 600;
    color: #333333;
    margin-bottom: 5px;
    line-height: 1.3;
}

#deliveryModal .delivery-info-text {
    font-size: 14px;
    color: #666666;
    line-height: 1.4;
    margin: 0;
}

#deliveryModal .delivery-time-range {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 15px 0;
}

#deliveryModal .delivery-time-labels {
    display: flex;
    justify-content: space-between;
    width: 295px;
    margin-bottom: 8px;
    position: relative;
}

#deliveryModal .delivery-time-start,
#deliveryModal .delivery-time-end {
    font-size: 14px;
    font-weight: 600;
    color: #333333;
    position: relative;
}

#deliveryModal .delivery-time-start::after,
#deliveryModal .delivery-time-end::after {
    content: '';
    position: absolute;
    top: 90%;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 10px;
    background: #e0e0e0;
}

#deliveryModal .delivery-time-segments {
    display: flex;
    gap: 8px;
    width: 255px;
}

#deliveryModal .delivery-time-segment {
    flex: 1;
    height: 5px;
    background: #333333;
}

/* ----------------------------------------- */
/* 3. СТИЛИ ДЛЯ ИНФО-ОКОН (ГАРАНТИЯ, ОРИГИНАЛ)*/
/* ----------------------------------------- */

#originalModal .modal-dialog,
#warrantyModal .modal-dialog {
    max-width: 500px;
    margin: 30px auto;
}

#originalModal .modal-header,
#warrantyModal .modal-header {
    border-bottom: none;
    padding: 30px 30px 20px 30px;
    display: block; /* Чтобы заголовок был слева */
}

#originalModal .modal-title,
#warrantyModal .modal-title {
    font-size: 24px;
    font-weight: 700;
    color: #333333;
    margin: 0 0 8px 0;
    line-height: 1.2;
    letter-spacing: 0.5px;
}

#originalModal .modal-body,
#warrantyModal .modal-body {
    padding: 0 30px 25px 30px;
}

#originalModal .icon-item,
#warrantyModal .icon-item {
    display: flex;
    align-items: flex-start;
    padding-bottom: 20px;
}

#originalModal .icon-item:last-child,
#warrantyModal .icon-item:last-child {
    padding-bottom: 0;
}

#originalModal .icon-container,
#warrantyModal .icon-container {
    width: 40px;
    height: 40px;
    margin-right: 20px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

#originalModal .icon-container .icon,
#warrantyModal .icon-container .icon,
#originalModal .icon-container .icon-min,
#warrantyModal .icon-container .icon-min {
    max-width: 100%;
    max-height: 100%;
}

#originalModal .content-title,
#warrantyModal .content-title {
    font-size: 16px;
    font-weight: 600;
    color: #333333;
    margin: 0 0 8px 0;
    line-height: 1.3;
}

#originalModal .content-text,
#warrantyModal .content-text {
    font-size: 14px;
    color: #666666;
    line-height: 1.4;
    margin: 0;
}


/* ----------------------------------------- */
/* 4. СТИЛИ ДЛЯ ОКНА "ГАРАНТИЯ ЛУЧШЕЙ ЦЕНЫ"   */
/* ----------------------------------------- */

#warrantyPriceModal .modal-dialog {
    max-width: 500px;
    margin: 30px auto;
}

#warrantyPriceModal .modal-header {
    border-bottom: none;
    padding: 30px 30px 20px 30px;
    display: block; /* Чтобы заголовки были друг под другом */
}

#warrantyPriceModal .modal-title {
    font-size: 24px;
    font-weight: 700;
    color: #333333;
    margin: 0 0 8px 0;
    line-height: 1.2;
    letter-spacing: 0.5px;
}

#warrantyPriceModal .modal-header h6 {
    font-size: 16px;
    color: #666666;
    font-weight: 400;
    margin: 0;
    line-height: 1.3;
}

#warrantyPriceModal .modal-body {
    padding: 0 30px 25px 30px;
}

#warrantyPriceModal .conditions-title {
    font-size: 18px;
    font-weight: 600;
    color: #333333;
    margin-bottom: 20px;
}

#warrantyPriceModal .warranty-conditions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 25px;
}

#warrantyPriceModal .warranty-condition {
    border-left: .1rem solid #e0e0e0;
    padding: 0 0 0 10px;
    font-size: 14px;
    line-height: 1.4;
    color: #575757;
}

#warrantyPriceModal .price-confirmation {
    margin-bottom: 25px;
}

#warrantyPriceModal .price-confirmation-title {
    font-size: 16px;
    font-weight: 600;
    color: #333333;
    margin-bottom: 15px;
}

#warrantyPriceModal .price-confirmation-item {
    border-left: .1rem solid #e0e0e0;
    padding: 0 0 0 10px;
    font-size: 14px;
    line-height: 1.4;
    color: #575757;
}

/* ----------------------------------------- */
/* 5. СТИЛИ ДЛЯ ФОРМЫ БРОНИРОВАНИЯ            */
/* ----------------------------------------- */
#reserveModal .modal-dialog {
    max-width: 450px;
    margin: 30px auto;
}

/* --- Заголовок --- */
#reserveModal .modal-header {
    padding: 30px 30px 10px 30px;
    border-bottom: none;
    display: block; 
}

#reserveModal .modal-title {
    font-size: 22px;
    font-weight: 700;
    color: #333333;
    line-height: 1.3;
}

#reserveModal .modal-header .subtitle {
    font-size: 15px;
    color: #666666;
    margin-top: 5px;
}

#reserveModal .modal-body {
    padding: 15px 30px 25px 30px;
}

#reserveModal form, 
#reserveModal form table, 
#reserveModal form tbody,
#reserveModal form tr,
#reserveModal form td {
    display: block;
    width: 100%;
    padding: 0;
    border: none;
    background: none;
}

#reserveModal form tr {
    margin-bottom: 18px;
}
#reserveModal form tr:last-of-type {
    margin-bottom: 0;
}

#reserveModal label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}
#reserveModal .bx-form-required {
    color: #dc3545;
    margin-left: 2px;
}

#reserveModal input[type="text"],
#reserveModal input[type="tel"] {
    display: block;
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #dcdcdc;
    border-radius: 8px;
    font-size: 15px;
    color: #333;
    background-color: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

#reserveModal input[type="text"]:focus,
#reserveModal input[type="tel"]:focus {
    outline: none;
    border-color: #0078d7;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.2);
}

/* --- Кнопки --- */
/* Прячем старый, некрасивый блок с кнопками Bitrix */
#reserveModal .bx-form-submit {
    display: none !important;
}


/* Кнопка "Забронировать" */
#reserveModal .btn-submit-reserve {
    background: #000000;
    border: none;
    color: #ffffff;
    padding: 15px 40px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.2s ease;
    width: 100%;
    border-radius: 0px !important;
    cursor: pointer;
}
#reserveModal .btn-submit-reserve:hover {
    background: #333333;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Стили для сообщения об успехе */
#reserveModal .alert-success {
    text-align: center;
    padding: 20px;
}
#reserveModal .alert-success h4 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
}

/* ----------------------------------------- */
/* 6. АДАПТИВНОСТЬ                            */
/* ----------------------------------------- */

@media (max-width: 768px) {
    .modal .modal-dialog {
        margin: 15px;
        max-width: none;
    }

    .modal .modal-header,
    .modal .modal-body,
    .modal .modal-footer {
        padding-left: 20px;
        padding-right: 20px;
    }

    #deliveryModal .modal-title,
    #originalModal .modal-title,
    #warrantyModal .modal-title {
        font-size: 18px;
    }

    #warrantyPriceModal .modal-title {
        font-size: 20px;
    }
    
    #warrantyPriceModal .warranty-conditions {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}


/* --- СТИЛИ ПО УМОЛЧАНИЮ --- */
::-webkit-scrollbar{width:.3rem; height: 0.3rem;} /* Для Chrome, Safari, Edge */
::-webkit-scrollbar-thumb{background-color:#2b2b2b;border-radius:.6rem}
::-webkit-scrollbar-track{background-color:#eee}

/* End */
/* /local/templates/.default/components/bitrix/catalog/redesign/bitrix/catalog.element/.default/style.css?175432146065405 */
