/* Глобальные исправления для модальных окон Bootstrap */
body.modal-open {
    overflow: auto !important;
}

.modal {
    overflow-x: hidden !important;
    overflow-y: auto !important;
}

.modal-backdrop {
    background-color: rgba(0, 0, 0, 0.5) !important;
}

/* Исправление для side-panel чтобы не конфликтовал с модальными окнами */
.side-panel {
    z-index: 1050 !important;
}

.btn:hover {
    background: #094682;
    color: #fff;
    fill:#fff !important;
}
.bascet_right .btn{
        border: 1px solid #fff;
}
.doc {
    position: relative;
    width: 50px;
    height: 65px;
    padding: 1em 1.5em;
    border-left: 1px solid #a60c08;
    border-bottom: 1px solid #a60c08;
    display: block;
    padding-top: 20px;
}
.doc:before {
    content: "";
    position: absolute;
    top: 0px;
    right: 0px;
    border-width: 0 14px 14px 0;
    border-style: solid;
    border-color: #fff #fff #a60c08 #a60c08;
    background: #a60c08;
    display: block;
    width: 0;
}
.doc span {
    margin-left: -30px;
    background-color: #a60c08;
    color: #fff;
    text-transform: uppercase;
    font-size: 12px;
    font-weight: bold;
    padding: 3px;
    border-radius: 2px;
    letter-spacing: 2px;
}
.dow .arrow {
    position: relative;
    left: -12px;
    bottom: -2px;
    width: 12px;
    height: 14px;
    background: #a60c08;
    border-radius: 3px;
}
.dow .arrow:after {
    top: 12px;
    right: -6px;
    border-top-color: #a60c08;
    background-color: #fff;
}
.dow.arrow:before, .arrow:after {
    content: "";
    display: block;
    position: absolute;
    width: 0;
    height: 0;
    border: 12px solid transparent;
    border-bottom: 0;
}
.doc:after {
    content: "";
    position: absolute;
    top: 14px;
    right: 0px;
    bottom: 0px;
    border-left: 1px solid #a60c08;
}

.doc span:before {
    content: "";
    position: absolute;
    top: 0px;
    right: 14px;
    left: 0px;
    border-top: 1px solid #a60c08;
}
.dow {
	float: left;
}
.dow_text {
    padding-top: 25px;
    margin-left: 60px;
}

.fille_group{
    display: block;
    height: 75px;
}

.contact-tabs__item{
	font-size: 13px;
	line-height: 13px;
    text-align: center;
	letter-spacing: 0px;
}
.contact-tabs_item{
	font-size: 13px;
	line-height: 13px;
    text-align: center;
	letter-spacing: 0px;
    margin-left: 5px;
    cursor: pointer; 
}
.contact-tabs_item.active {
    font-weight: 700;
    border-bottom: 2px solid #054982;
    margin-bottom: -2px;
  }
.contact-tabs__container {
	min-width: 600px;
}
.contact-content {
    padding: 20px 0 55px 30px !important;
   
}

.contact-tabs__container {
    min-width: 90%;
}

.map_contact_index{
  background-color: #fff;
  width: 400px!important;
  height: 550px;
  overflow: auto;
  padding: 20px;
  overflow: scroll;
  scrollbar-color: #054982 #fff;
  scrollbar-width: thin;
      position: absolute;
    top: 100px;
    z-index: 1;
    right: 50px;
}

.menu_map_index{
    color: #054982!important;
    cursor:pointer!important;
}
.center_map_menu{
    margin: auto 62px;
}

.nav li {
  position: relative;
  margin-top: 10px;
}

.sub-menu {
  display: none; 
  position: absolute;

}

.nav li:hover > .sub-menu {
  display: block;
  width: max-content;
  z-index: 2;
  background-color: #054982;
  padding: 0 50px 50px 10px;
  margin-left: -10px;
}
.map_contact_index .nav{
    background-color: #054982;
    padding: 2px 0px;
    margin: 15px 5px;
    width: 100%!important;
    color: #fff;
}
.nav{
    background-color: #054982;
    padding: 2px 20px;
    margin: 15px 5px;
    width: 100%!important;
    color: #fff;
}

.nav-title strong{
margin-left: 80%;
}

.ver_cont_2{
    position: relative;
    z-index: 3;
}
.contact-links {
    z-index: 1;
}
.navbar-collapse {
    align-items: center;
    width: 100%;
    background-color: #f3f3f3;
    padding: 20px;
    border-radius: 10px;
    color: #000;
}

.btn-toggle {
    padding: 10px 0 !important;
    font-weight: 600 !important;
    color: #000 !important;
    background-color: transparent;
    position: relative;
    font-size: 13px;
}
.btn-toggle::before {
    transform: rotate(90deg);
    position: absolute;
    right: -27px;
    top: 5px;
    font-size: 5px;
    width: 12px !important;
}
.btn-toggle[aria-expanded="true"]::before {
    transform: rotate(270deg)!important;
    top: 16px!important;
}
.btn-toggle[aria-expanded="true"] {
    color: rgba(var(--bs-emphasis-color-rgb), .85);
}
.collapse a{
    color: #000!important;
}

.btn-toggle-nav a {
    padding: 8px!important;
    margin-top: 0.125rem;
    margin-left: 0.25rem!important;
}
.list-unstyled a{
    color: #000!important;
    padding: 10px 0;
}
.table_catalog{
    border-radius: 5px;
    
}

.btn-sm {
    margin: 5px 5px 5px 0;
    text-decoration: none;
    outline: none;
    width: auto;
    -o-transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    transition: all 0.3s ;
    text-align: center;
}
.btn-sm:hover{
    color: #fff!important;
    background: var(--Color-Primary, #094682)!important;
}
._container{
    margin-left: auto;
    margin-right: auto;
    /* max-width: 1200px; */
    width: 90%;
}



.btn_10{
    background: #0A5BAC;
    border: 1px solid #0A5BAC;
    color: #FFF!important;
    padding: 10px 10px;
    letter-spacing: 0.06em;
    text-decoration: none;
    outline: none;
    width: 100%;
    height: 37px;
    border-radius: 0.2rem;
    -webkit-transition: all 0.3s 
cubic-bezier(0.25, 0.8, 0.25, 1);
    -o-transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    transition: all 0.3s 
cubic-bezier(0.25, 0.8, 0.25, 1);
    font-family: "Electra Text Pro", sans-serif;
    font-size: 14px;

    text-align: center;
}


.bascet a{
    color: #4A4A4A;
    font-weight: 500;
    font-style: Medium;
    line-height: 120%;
    letter-spacing: 0px;
    vertical-align: middle;

}
.bascet td{
    color: #4A4A4A;
    font-weight: 500;
    font-style: Medium;
    line-height: 120%;
    letter-spacing: 0px;
    vertical-align: middle;

}
.btn-link{
    color: #4A4A4A;
    margin: 0 auto;
}
.bascet .btn-link{
display: none;
}
.bascet_dell{
    color: #0a4682!important;
}
.top_bascet{
    width: 180px;
    position: relative;
    height: 30px;
}
.top_bascet h3{
    color: #0a4682!important;
    font-weight: 600;
   
}
.top_bascet p{
    top: 10px;
    left: 120px;
    position: absolute;
}
.bascet_right .card{
    padding: 20px;
}
.bascet_right .col-md-12{
    margin-top: 20px;
}
.bascet_right h3{
    color: #0a4682!important;
    font-weight: 600;   
     
}
.bascet_right .btn-light.active, .show > .btn-light.dropdown-toggle {
    color: #FFF;
    background-color: #0a4682;
    border-color: #0a4682;
    font-size: 12px;
    width: 45%;
    
   
}
.bascet-item-quantity {
    display: flex;
    justify-content: center;
    align-items: center;
    column-gap: 10px;
}
.bascet-item-quantity__control {
    font-size: 24px;
}
@media (max-width: 767px) {
    .bascet-item-quantity__input {
        min-width: 40px;
    }
}
input[type="number"]::-webkit-inner-spin-button, 
input[type="number"]::-webkit-outer-spin-button { 
  -webkit-appearance: none; 
  margin: 0;
  background: #f3f3f3;
  color: #4A4A4A;
  text-align: center;
}
input[type="number"] {
  -moz-appearance: textfield;
    height: 45px;
  width: 80px;
  background: #f3f3f3;
  color: #4A4A4A;
  text-align: center;
}

/* Оформление панели */
#side-checkbox {
    display: none;
}
#side-checkbox_city {
    display: none;
}
.side-panel {
    position: fixed;
    top: 0;
    right: -580px;
    background: #FFF;
    transition: all 0.5s;   
    width: 543px;
    height: 100vh;
    box-shadow: 10px 0 20px rgba(0,0,0,0.4);
    color: #000;
    overflow-y: scroll;
    overflow-x: hidden;
   
}
.filter_body{
    padding: 10px 20px;
    margin-left: 15px;
    
}
.filter_body hr{
    margin: 15px 0;
}
.side-title {
    font-size: 20px;
    margin-bottom: 20px;
    background-color: #0A5BAC;
    color: #F3F3F3;
    width: 100%;
    padding: 42px 0 42px 72px;
    font-weight: 600;
    line-height: 120%;
    letter-spacing: 0px;
    vertical-align: middle;
    text-transform: uppercase;

}
/* Оформление кнопки на странице */
.side-button-1-wr {
    text-align: center; /* Контейнер для кнопки, чтобы было удобнее ее разместить */
}
.side-button-1 {
    display: inline-block;
}
.side-button-1 .side-b {
    margin: 10px;
    text-decoration: none;
    position: relative;
    font-size: 20px;
    line-height: 20px;
    padding: 12px 30px;
    color: #FFF;
    font-weight: bold;
    text-transform: uppercase; 
    font-family: 'Roboto', Тahoma, sans-serif;
    background: #337AB7;
    cursor: pointer; 
    border: 2px solid #BFE2FF;
}
.side-button-1 .side-b:hover,
.side-button-1 .side-b:active,
.side-button-1 .side-b:focus {
    color: #FFF;
}
.side-button-1 .side-b:after,
.side-button-1 .side-b:before {
    position: absolute;
    height: 4px;
    right: 50%;
    bottom: -6px;
    content: "";
    transition: all 280ms ease-in-out;
    width: 0;
}
.side-button-1 .side-open:after,
.side-button-1 .side-open:before {
    background: green;
}
.side-button-1 .side-close:after,
.side-button-1 .side-close:before {
    background: red;
}
.side-button-1 .side-b:before {
    top: -6px;
}
.side-button-1 .side-b:hover:after,
.side-button-1 .side-b:hover:before {
    width: 100%;
    right: 0;
}
/* Переключатели кнопки 1 */
.side-button-1 .side-close {
    display: none;
}
#side-checkbox:checked + .side-panel + .side-button-1-wr .side-button-1 .side-open {
    display: none;
}
#side-checkbox:checked + .side-panel + .side-button-1-wr .side-button-1 .side-close {
    display: block;
}
#side-checkbox:checked + .side-panel {
    right: 0;
}
#side-checkbox_city:checked + .side-panel + .side-button-1-wr .side-button-1 .side-open {
    display: none;
}
#side-checkbox_city:checked + .side-panel + .side-button-1-wr .side-button-1 .side-close {
    display: block;
}
#side-checkbox_city:checked + .side-panel {
    right: 0;
}

/* Оформление кнопки на панели */
.side-button-2 {
font-size: 40px;
    position: absolute;
    z-index: 1;
    top: 35px;
    right: 10px;
    cursor: pointer;
    transform: rotate(45deg);
    color: #000;
    transition: all 280ms ease-in-out;
    background-color: #fff;
    border-radius: 35px;
    width: 25px;
    height: 25px;
    text-align: center;
    line-height: 20px;
    padding-left: 0;

}
.side-button-2:hover {
    transform: rotate(45deg) scale(1.1);    
    color: #054982;
}
.my-button-1 {
    text-align: center; /* Контейнер для кнопки, чтобы было удобнее ее разместить */
    background: #054982;
    color: #fff;
    height: 35px;
    padding: 10px;
    font-size: 14px;
    margin-top: 5px;
    max-width: 100%;
    float: right;
}
.cat_tabl{
    min-height: 500px;
    margin-top: 20px;
   /* margin-bottom: 160px; */

}
.table {
    font-weight: 600;
    color: #494949!important;
}
.side-panel .btn{
    width: 48%;
    margin: auto;
}
.link-body-emphasis.active{
    background: #d0dce8;
    color: #054982;
    width: 100%;
    font-weight: 600;
    border-bottom: 1px solid #054982!important;
    border-radius: 5px 5px 0 0!important;
}
.btn-toggle-nav span {
    padding: 8px !important;
    margin-top: 0.125rem;
    margin-left: 0 !important;
}
button:focus {
     outline: 0px!important;
     outline: 0px!important;
}
.me-2{
        border-radius: 10px;
        margin-top: 30px;
}
.text_detail_catalog{
        border-radius: 10px;
        margin-top: 20px;
        background-color: #F3F3F3;
        padding: 32px;
        margin-bottom: 20px;
        font-weight: 400;
        line-height: 140%;
        letter-spacing: 0px;
        vertical-align: middle;

      
}
.text_detail_catalog h4{
    color: #094682;
    font-weight: 600;
    line-height: 120%;
    letter-spacing: 0px;
    vertical-align: middle;
    font-size: 16px;
}


.renge{
    background: #c0c0c0;
    color: #FFF!important;
    cursor: default;
    border-color: #c0c0c0!important;
}
.renge:hover{
    background: #c0c0c0;
    color: #FFF!important;
    cursor: default;
    border-color: #c0c0c0;
}
.cena_detail_catalog {
    border-radius: 10px;
    margin-top: 30px;
    background-color: #F3F3F3;
    padding: 20px;
    min-height: 50px;
    height: auto;
    max-height: 200px;
    max-width: 100%;
}
.cena_detail_catalog span{
    color: #094682;
    font-weight: 600;
    font-size: 28px;
    line-height: 120%;
    letter-spacing: 0%;
    vertical-align: middle;

}
.cena_detail_catalog small{
    font-weight: 400;
    font-size: 14px;
    line-height: 100%;
    letter-spacing: 0px;
    vertical-align: middle;
    color: #4A4A4A;
}
#btncheck, .active2{
  background-color: #0A5BAC!important;
  width: 177px;
  height: 42px;
  opacity: 1;
  border-radius: 5px;
  padding-top: 10px;
  padding-right: 20px;
  padding-bottom: 10px;
  padding-left: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  color: #F3F3F3;

}
.head-v2__inner a:hover{
    color: #FFF!important;
}
.btn-check:checked + .btn-primary, .btn-check:active + .btn-primary, .btn-primary:active, .btn-primary.active, .show > .btn-primary.dropdown-toggle
{
    color: #fff!important;
    background-color: #0f447c!important;
    border-color: #0f447c!important;
}

.P_BLOCK_CENA {
    background-color: #fff;
    border-color: #fff;
    color: #4A4A4A;
    font-size: 12px;
    min-height: 47px;
    width: 174.5px;
    height: 60px;    
    opacity: 1;
    border-radius: 8px;
    padding-top: 21px;
    padding-right: 8px;
    padding-bottom: 16px;
    padding-left: 8px;
    gap: 10px;
    line-height: 120%;
    letter-spacing: 0px;
    vertical-align: middle;


}
.P_BLOCK_CENA i{
    color: #094682;
    font-size: 11px;
}
.filter_body .nav{
    background-color: #fff;
    border-color: #fff;
    color: #000;
    padding: 2px 20px;
    margin: 15px 5px;
    width: 100% !important;
}
.filter_body .nav a{
   color: #000!important;
   font-size: 16px;
   font-weight: 600;
}
.p_tovar_cart h4{
    color: #054982;
    font-weight: 600;
}

.p_tovar{
    border-radius: 10px!important;
    margin: 10px;
    background-color: #F3F3F3;
    min-height: 50px;
    height: auto;
    max-width: 375px;
    
}

.card a{
  color: #000;
  text-align: center;
  
}
.cards-wrapper {
  display: flex;
  justify-content: center;
}

.card {
  margin: 0 0.5em;
  border-color: #F3F3F3;
  padding: 10px;
}
.card img{
  margin: 0.5em;
width: 90%;
}
.carousel-inner {
  padding: 1em;
}
.carousel-control-prev,
.carousel-control-next {
  background-color: #054982;
  color: #FFF;
  width: 5vh;
  height: 5vh;
  border-radius: 50%;
  top: 50%;
}
.cart_sv{
    min-height: 40px;
}
._container{
    color: #000;
}
.catalog_meny{    
    max-width: 300px;
    color: #000!important;
}
#delete-selected{
    border-top: 0;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
}
.form-check-input:checked[type="checkbox"] {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%230A5BAC' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M6 10l3 3l6-6'/%3e%3c/svg%3e");
}
.fell[type="checkbox"] {
    -webkit-appearance: none;
    appearance: none;
}
input[type="checkbox"]:checked {
 background: url("/local/templates/main/svg/check.svg") no-repeat center;
    width: 15px;
    height: 15px;
}
.fell[type="checkbox"] {
    border-radius: 3px!important;
    background-color: #d9d9d9!important;
    border-color: #d9d9d9!important;
    width: 15px;
    height: 15px;
    display: block;
    float: left;
}
.form-label{
    font-family: TT Hoves;
    font-weight: 400;
    font-size: 14px;
    line-height: 100%;
    letter-spacing: 0px;
    vertical-align: middle;
    color: #4A4A4A;
    margin: 15px 0;
}

.itog_bascet{
    font-weight: 600;
    color: #0a4682;
    font-size: 20px;
    margin-top: 10px;
}
.text-muted {
    color: #6c757d !important;
    font-size: 12px;
}

.location_bascet{
    margin-top: 10px;
    font-size: 12px;
}

.location_bascet span{
    color: #0a4682;
    font-weight: 600;

}
.active_bascet{
    color: #fff!important;
    border-radius: 3px!important;
    background-color: #0a4682!important;
    border-color: #0a4682!important;
    width: 98%;
    margin: auto;
}
.active_bascet:hover{
    color: #d9d9d9!important;
}
.form-check-label{
    font-size: 12px;
}
.badge-warning {
    background-color: #ffc107;
    color: #000;
}

.alert-warning {
    background-color: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
}

.alert-warning ul {
    margin-top: 5px;
}

.alert-warning li {
    margin-bottom: 2px;
}
/* Исправление для модального окна Bootstrap */
.modal {
    z-index: 1056 !important;
}

.modal-backdrop {
    z-index: 1055 !important;
}

.modal-dialog {
    z-index: 1057 !important;
    margin-top: 5vh;
}

#warehousesModal .modal-content {
    border: none;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}
.modal-lg, .modal-xl
 {
        max-width: 1100px;
    }

#warehousesModal .modal-header {
    background-color: #0A5BAC;
    color: white;
    border-radius: 15px 15px 0 0;
    border-bottom: none;
    height: 91px;
}
.modal-title {
    margin-bottom: 0;
    line-height: 1.5;
    margin-top: 20px;
    margin-left: 25px;
    font-weight: 500;
    line-height: 120%;
    letter-spacing: 0px;
    vertical-align: middle;
}

#warehousesModal .modal-header .btn-close {
    filter: invert(1);
}

#warehousesModal .modal-body {
    padding: 35px;
}

#warehousesModal .table {
    margin-bottom: 0;
}

#warehousesModal .table th {
    background-color: #15416e !important;
    border-color: #15416e;
    color: white;
    font-weight: 600;
}

#deliveryModal .modal-header {
    background-color: #0A5BAC;
    color: white;
    border-radius: 15px 15px 0 0;
    border-bottom: none;
    height: 91px;
}
#deliveryModal .modal-content {
    border: none;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}
#warehousesModal .table td {
    vertical-align: middle;
    border-color: #dee2e6;
}

#warehousesModal .badge {
    font-size: 0.8em;
    padding: 0.4em 0.8em;
}

#warehousesModal .modal-footer {
    border-top: 1px solid #dee2e6;
    padding: 15px 25px;
}



/* Исправление для других модальных окон, если есть */
.modal {
    overflow-y: auto !important;
}

/* ================ Мобильная адаптация ================ */

/* Каталог */
@media (max-width: 767px) {
  .side-title{
    line-height: 10%!important;
  }
  .side-button-2 {
    top: 28px!important;
  }
    
  /* Общие стили для мобильных */
  .container {
    padding-left: 15px;
    padding-right: 15px;
    margin-bottom: 205px;
  }
  
  

  
  /* Заголовок каталога */
  .title_catalog {
    font-size: 18px;
    margin-bottom: 10px;
  }
  
  .title_catalog_smart {
    font-size: 14px;
    margin-top: 0;
    margin-bottom: 15px;
  }
  
  /* Фильтры */
  .my-button-1 {
    width: 100%;
    margin-bottom: 15px;
  }
  
  /* Боковая панель фильтров */
  .side-panel {
    width: 100%;
    right: -100%;
  }
  
  #side-checkbox:checked + .side-panel {
    right: 0;
  }
  
  .filter_body {
    padding: 0px 25px;
    margin-left: 0;
  }
  
  .filter-group .form-check {
    margin-bottom: 8px;
  }
  
  .filter-group .form-check-label {
    font-size: 14px;
  }
  
  /* Карточки товаров */
  .cat-catalog__title {
    font-size: 20px;
    margin-bottom: 15px;
  }
  
  .catalog-tabs__content {
    flex-wrap: wrap;
  }
  
  .catalog-card-wrapper {
    width: 100%;
    height: 180px;
    margin-bottom: 15px;
  }
  
  .catalog-card__title {
    font-size: 14px;
    line-height: 16px;
  }
  
  .catalog-card-inner {
    left: 15px;
    bottom: 10px;
  }
}

/* Детальная страница товара */
@media (max-width: 767px) {
  .filter-mobile{
    margin-top: 134px;
  }
  #resetFilters{
    width: 48%!important;
  }
  #applyFilters{
    width: 48%!important;
  }
  .title_catalog_detail {
    font-size: 18px;
    margin-bottom: 15px;
  }
  
  /* Изменение структуры страницы */
  .col-md-4, .col-md-8 {
    width: 100%;
    max-width: 100%;
    flex: 0 0 100%;
  }
  
  /* Левая колонка с изображением */
  .col-md-4:first-child {
    order: 1;
    margin-bottom: 20px;
  }
  
  /* Центральная колонка с характеристиками */
  .col-md-4:nth-child(2) {
    order: 2;
    margin-bottom: 20px;
  }
  
  /* Правая колонка с ценой и кнопкой */
  .col-md-4:last-child {
    order: 3;
    margin-bottom: 30px;
  }
  

  
  /* Цена */
  .cena_detail_catalog {
    padding: 15px;
  }
  
  .cena_detail_catalog span {
    font-size: 20px;
  }
  
  /* Характеристики */
  .cart_sv {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 10px;
  }
  
  .cart_sv a {
    margin: 5px;
    padding: 8px 12px;
    font-size: 13px;
  }
  
  /* Похожие товары */
  .cards-wrapper {
    display: flex;
    flex-direction: column;
  }
  
  .card {
    margin-bottom: 15px;
    width: 100%;
  }
  
  .card img {
    width: 100%;
    margin: 0 auto 10px;
  }
}

/* Корзина */
@media (max-width: 767px) {
.top_bascet p {
    top: 3px;
    left: 120px;
    position: absolute;
}
  
  .top_bascet h3 {
    margin-bottom: 10px!important;
  }
  
  .top_bascet .d-flex {
    width: 100%;
    justify-content: space-between;
  }
  
  /* Таблица корзины */
  #userlist {
    font-size: 14px;
  }
  
  #userlist thead {
    display: none;
  }
  
  #userlist tbody tr {
    display: block;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
  }
  
  #userlist td {
    display: block;
    text-align: right;
    padding: 8px 10px;
    border-bottom: 1px solid #eee;
    position: relative;
    padding-left: 50%;
  }
  
  #userlist td:before {
    content: attr(data-label);
    position: absolute;
    left: 6px;
    width: 45%;
    padding-right: 10px;
    white-space: nowrap;
    font-weight: bold;
    text-align: left;
  }
  
  #userlist td:first-child {
    display: flex;
    justify-content: center;
    padding: 10px;
  }
  
  #userlist td:last-child {
    border-bottom: none;
    padding: 15px;
  }
  
  /* Количество товара */
  .d-flex {
    justify-content: center;
  }
  
  /* Форма заказа */
  .bascet_right .card {
    margin-bottom: 20px;
  }
  
  
  /* Кнопки выбора города */
  .bascet_right .btn {
    margin: 5px;
  }
  
  /* Итоговая сумма */
  .itog_bascet {
    font-size: 18px;
    margin-top: 15px;
  }
}

/* Общие улучшения для мобильных */
@media (max-width: 767px) {
  /* Убираем отступы сверху */
  .document {
    padding-top: 20px;
  }
  
  /* Улучшаем отображение модальных окон */
  .modal-dialog {
    margin: 20px;
  }
  
  .modal-body {
    padding: 15px;
  }
  
  /* Адаптация изображений */
  img {
    max-width: 100%;
    height: auto;
  }
  
  /* Улучшение отображения кнопок */
  .btn {
    padding: 8px 15px;
    font-size: 14px;
  }
  
  /* Адаптация форм */
  input, textarea, select {
    font-size: 16px; /* Предотвращает зум на iOS */
  }
}

/* Дополнительные стили для очень маленьких экранов */
@media (max-width: 480px) {
  .catalog-card-wrapper {
    height: 150px;
  }
  
  .catalog-card__title {
    font-size: 12px;
  }
  
  .title_catalog, .title_catalog_detail {
    font-size: 16px;
  }
  
  .cena_detail_catalog span {
    font-size: 18px;
  }
}
/* Улучшение отображения названий в таблицах */
@media (max-width: 767px) {
  /* Убираем отступы для мобильных в ячейках таблицы */
  .table_catalog td[data-label="Название"] {
    padding-left: 10px;
    text-align: left;
  }
  
  /* Улучшаем отображение ссылок в мобильной версии */
  .table_catalog td a {
    display: block;
    color: #0a5bac;
    font-weight: 500;
  }
  
  /* Стили для корзины */
  #userlist td[data-label="Название"] {
    text-align: left;
  }
  
  #userlist td a {
    color: #0a5bac;
    font-weight: 500;
  }
}

/* Скрытие/показ элементов для адаптивности */
@media (min-width: 768px) {
  .d-md-none {
    display: none !important;
  }
}

@media (max-width: 767px) {
  .d-none {
    display: none !important;
  }
}
/* Добавить в template_styles.css или styles.css */

/* Общие стили для переноса длинных слов */
.table_catalog td[data-label="Название"],
#userlist td[data-label="Название"] {
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
  line-height: 1.3;
}

@media (max-width: 767px) {
  /* Убираем фиксированную высоту для строк таблицы */
  .box {
    height: auto !important;
    min-height: auto;
  }
  
  .box td {
    height: auto !important;
    line-height: 1.4;
    padding: 12px 10px;
  }
  
  /* Улучшаем отображение длинных названий */
  .table_catalog td[data-label="Название"] {
    padding: 15px 10px;
    min-height: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  

  
  .mobile-product-section {
    font-size: 12px;
    color: #666;
    font-style: italic;
    line-height: 1.2;
  }
  
  /* Для очень длинных названий */
  .mobile-product-name.long-title {
    font-size: 13px;
    line-height: 1.2;
  }
}

/* Для корзины аналогично */
@media (max-width: 767px) {
.p_tovar_cart{
    max-height: 275px;
  }
.cena_detail_catalog {
    min-height: 173px;
  }

  .bascet .box {
    height: auto !important;
  }
  
  .bascet .box td {
    height: auto !important;
    min-height: 60px;
    padding: 12px 10px;
  }
  
  #userlist td[data-label="Название"] {
    padding: 15px 10px 15px 80px;
    min-height: 50px;
  }
}

/* Десктопные стили оставляем без изменений */
@media (min-width: 768px) {
  .box {
    height: 60px;
  }
  
  .box td {
    line-height: 40px;
    height: 66px;
  }
}


/* Добавить эти стили в конец файла */

/* Скрытие чекбоксов и кнопки удаления для мобильных */
@media (max-width: 767px) {
  /* Скрываем заголовок с чекбоксом "Выбрать все" */
  #userlist thead th:first-child,
  #userlist thead td:first-child {
    display: none;
  }
  
  .catalog_meny .btn-toggle-nav a,
  .catalog_meny .btn-toggle-nav span {
    display: inline !important;
    padding: opx 0 !important;
    color: #000 !important;
    text-decoration: none !important;
    border-radius: 0 !important;
    transition: none !important;
  }

  /* Скрываем чекбоксы в строках таблицы */
  #userlist tbody td:first-child {
    display: none;
  }
  
  /* Скрываем кнопку "Удалить выбранные" */
  #delete-selected {
    display: none !important;
  }
  
  /* Убираем отступы, связанные с чекбоксами */
  #userlist {
    margin-left: 0;
  }
  
  /* Убираем колонку с чекбоксами из адаптивной версии */
  #userlist td:first-child,
  #userlist th:first-child {
    width: 0 !important;
    padding: 0 !important;
    border: none !important;
  }
}

/* Для планшетов оставляем видимыми */
@media (min-width: 768px) and (max-width: 1023px) {
  #delete-selected {
    display: inline-block !important;
  }
  
  #userlist thead th:first-child,
  #userlist thead td:first-child {
    display: table-cell !important;
  }
  
  #userlist tbody td:first-child {
    display: table-cell !important;
  }
}

/* Дополнительные стили для улучшения внешнего вида на мобильных */
@media (max-width: 767px) {
  /* Убираем лишние отступы в таблице */
  #userlist {
    border-collapse: separate;
    border-spacing: 0 10px;
  }

.btn-toggle::before {
    transform: rotate(90deg);
    position: absolute;
    right: 6px;
    top: 5px;
    font-size: 5px;
    width: 12px !important;
}

.py-5 {
    padding-top: 3rem !important;
    padding-bottom: 9rem !important;
}

  /* Улучшаем отображение строк корзины */
  #userlist tbody tr {
    margin-bottom: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  }
  
  /* Стили для кнопок количества на мобильных */
  .d-flex button {
   /* width: 30px;*/
    height: 30px;
    /*display: flex;*/
    align-items: center;
    justify-content: center;
    padding: 0;
  }
  
  /* Улучшаем отображение поля ввода количества */
  .d-flex input[type="number"] {
    width: 60px;
    height: 30px;
    font-size: 14px;
    text-align: center;
  }
}

/* Анимация для плавного скрытия элементов */
@media (max-width: 767px) {
  #delete-selected,
  #userlist thead th:first-child,
  #userlist tbody td:first-child {
    transition: opacity 0.3s ease, transform 0.3s ease;
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
  }
  
  /* Принудительное скрытие с помощью display none */
  #delete-selected {
    display: none !important;
  }
  
  #userlist thead th:first-child,
  #userlist thead td:first-child {
    display: none !important;
  }
  
  #userlist tbody td:first-child {
    display: none !important;
  }

}
@media (min-width: 1024px) {
    .header-actions {
        display: none;
    }
    .catalog_meny_mob{
    display: none!important;
}

}

/* Добавьте в конец файла */

/* Стиль кнопки для модального окна успеха */
.success-modal-btn {
    background-color: #0A5BAC;
    width: 424px;
    height: 39px;
    border-radius: 5px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border: none;
    margin: 0 auto;
    font-size: 14px;
    font-weight: normal;
    transition: background-color 0.3s ease;
}

.success-modal-btn:hover {
    background-color: #094682;
    color: #fff;
}

/* Адаптация для мобильных устройств */
@media (max-width: 480px) {
    .success-modal-btn {
        width: 100%;
        max-width: 424px;
    }

}
#successModal .modal-header
 {
    background-color: #0A5BAC;
    color: white;
    border-radius: 15px 15px 0 0;
    border-bottom: none;
    height: 91px;
}
/* === Мобильный хедер === */
.header {
    background: #0A5BAC;
    padding: 12px 16px;
    display: none; /* Скрыт на десктопе */
    align-items: center;
    justify-content: space-between;
    
    /* FIX: Делаем хедер статичным (фиксированным) */
    position: absolute; /* В макете header не фиксированный, просто flows */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;

    /* Позволяем контенту внутри переноситься (заголовок на новую строку) */
    flex-wrap: wrap; 
    gap: 20px;
}

.header-logo img {
    height: 40px;
    width: auto;
}
@media (max-width: 767px) {
.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-actions a, .header-actions button {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative; /* Для бейджика корзины, если нужно */
}
}
/* Иконки в хедере */
.header-actions svg {
    width: 24px;
    height: 24px;
    stroke: white;
    fill: none;
}

/* Специфичные стили для корзины, так как в макете она с fill="white" */
.header-cart-btn svg {
    stroke: none; /* Убираем обводку, используем заливку */
    fill: white;
}

/* === Блок кнопок в хедере === */
.header-filter-buttons {
    display: none; /* Скрыто на десктопе */
    width: 100%;
    order: 3; /* Помещаем ниже логотипа и иконок */
    gap: 12px;
    margin-top: 10px;
    padding-bottom: 10px;
}

/* Кнопка Каталог (Белая) */
.btn-catalog {
    flex: 1;
    background: #fff;
    border: none;
    border-radius: 5px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    color: #0A5BAC;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Кнопка Все фильтры (Синяя с рамкой) */
.btn-filters {
    flex: 1;
    background: #0A5BAC;
    border: 1px solid #fff;
    border-radius: 5px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-filters svg {
    width: 16px;
    height: 16px;
    stroke: #fff;
}

/* Скрываем чекбоксы управления */
.mobile-menu-checkbox, #side-checkbox {
    display: none;
}

/* === Адаптивность === */
@media (max-width: 767px) {
    .menu {
        height: 100%;
        margin-top: 140px;
    }
.filter-btn-wrapper .btn-sm {
    min-width: 95px!important;
  }
    /* Показываем мобильный хедер */
    .header {
        display: flex;
    }
    .d-flex.align-items-center.flex-wrap.gap-2:has(> h5.title_catalog) {
        display: none !important;
    }
    /* Показываем блок кнопок */
    .header-filter-buttons {
        display: flex;
    }
    
    /* Скрываем десктопные элементы */
    .head-v2, 
    .desktop-only-header-wrapper {
        display: none !important;
    }

._container
 {
    color: #000;
    margin-top: 160px;
}    
    /* Скрываем хлебные крошки */
    .bx-breadcrumb, 
    .breadcrumb {
        display: none !important;
    }
}
/* === Секция заголовка (в list.php) === */
.title-section {
    background: #0A5BAC;
    padding: 16px; /* Удобный отступ */
    order: 3; /* Перенос на новую строку внутри хедера */
    display: none; /* Скрыто на десктопе */
    
    /* ВАЖНО: Делаем колонкой, чтобы распределить элементы */
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Распределяем пространство */
    min-height: 250px; /* Минимальная высота для красивого распределения */
      width: calc(100% + 32px);
    margin-left: -16px;
    margin-right: -16px;
    box-sizing: border-box; /* Важно, чтобы padding не ломал ширину */
}

.title-section h1 {
    color: #fff;
    font-size: 22px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.title-section h5,
.title-section .title_catalog,
.title-section .title_catalog_smart,
.title-section .title_catalog_smart small {
    color: #fff !important;
    text-align: left;
    margin: 0;
    padding: 0;
}

.title-section .title_catalog_smart small {
    font-size: 13px;
    color: rgba(255,255,255,0.7) !important;
}

/* === Кнопки (Прижимаем к низу) === */
.filter-buttons {
    display: none;
    gap: 12px;
    width: 100%;
    
    /* ВАЖНО: Прижимаем к низу родителя */
    margin-top: auto;
}

/* Кнопки */
.btn-catalog, .btn-filters {
    height: 40px; /* Фиксированная высота для аккуратности */
    display: flex;
    align-items: center;
    justify-content: center;
}
.title-section h5 {
    font-size: 22px;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.2;
}

.title-section .subtitle {
    color: rgba(255,255,255,0.7);
    font-size: 13px;
    margin-bottom: 16px;
}

/* === Кнопки фильтров (внутри title-section) === */
.filter-buttons {
    display: none;
    gap: 12px;
}

/* Кнопка Каталог (Белая) */
.btn-catalog {
    flex: 1;
    background: #fff;
    border: none;
    border-radius: 5px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    color: #0A5BAC;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Кнопка Все фильтры (Синяя с рамкой) */
.btn-filters {
    flex: 1;
    background: #0A5BAC;
    border: 1px solid #fff;
    border-radius: 5px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-filters svg {
    width: 16px;
    height: 16px;
    stroke: #fff;
}

/* === Адаптивность === */
@media (max-width: 767px) {
    .header {
        display: flex;
    }
    
    .title-section {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }
    
    .filter-buttons {
        display: flex;
        gap: 12px;
        width: 100%;
        margin-top: auto; 

    }
    
    /* Скрываем десктопные элементы */
    .head-v2, 
    .desktop-only-header-wrapper {
        display: none !important;
    }

.title_catalog {

    margin-top: 60px!important;

}
.header-cart-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    padding: 5px; /* Увеличиваем область клика */
    -webkit-tap-highlight-color: transparent;
}

/* Убираем стандартное подчеркивание и фон */
.header-cart-btn:hover, .header-cart-btn:active, .header-cart-btn:visited {
    color: #fff;
    text-decoration: none;
}

/* Обеспечиваем, что контент внутри ссылки не блокирует клик */
#bascet-mobile-header {
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none; /* Клик пробрасывается к родительской ссылке */
}

    .menu-nav {
        padding-left: 54px;
        padding-top: 201px!important;
    }
    .contact {
      display: none;
    }
}
/* === МОБИЛЬНОЕ ВЫЕЗДАЮЩЕЕ МЕНЮ (ЛЕВОЕ) === */

/* Оверлей */
.catalog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1999;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Панель */
.catalog-mobile-panel {
    position: fixed;
    top: 0;
    left: -100%; /* Скрыто слева */
    width: 100%;
    height: 100vh;
    background: #fff;
    z-index: 2000;
    transition: left 0.3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    padding: 0;
}

/* Активация через чекбокс */
#mobile-menu-toggle:checked ~ .catalog-overlay {
    display: block;
    opacity: 1;
}

#mobile-menu-toggle:checked ~ .catalog-mobile-panel {
    left: 0;
}

/* Заголовок панели */
.catalog-mobile-header {
    background: #0A5BAC;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    height: 60px;
}

.catalog-mobile-header h3 {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    margin: 0;
    letter-spacing: 0.5px;
}

.catalog-close-btn {
    background: #fff; /* Белый фон */
    border-radius: 50%; /* Делаем круг */
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none; /* Убираем рамку, если была */
    padding: 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2); /* Опционально: легкая тень для объема */
    transition: background 0.2s;
}

.catalog-close-btn:hover {
    background: #f0f0f0; /* Легкое затемнение при наведении */
}

/* Контент меню */
.catalog-mobile-content {
    flex: 1;
    overflow-y: auto;
    padding: 0;
    background: #fff;
    padding: 0 15px;
}

/* Стили списка */
.mobile-catalog-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-catalog-item  span{
    color:#4A4A4A;
font-weight: 600;
line-height: 120%;
letter-spacing: 0px;
vertical-align: middle;

}

/* Заголовок категории (кликабельный) */
.mobile-category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    color: #333;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    background: #fff;
    transition: background 0.2s;
    text-decoration: none;
}

.mobile-category-header:hover {
    background: #F5F5F5;
}

.mobile-category-header.simple {
    cursor: default;
}

/* Иконка стрелочки */
.mobile-category-header .chevron {
    width: 16px;
    height: 16px;
    color: #999;
    transition: transform 0.3s ease;
}

/* Активное состояние раскрытой категории */
.mobile-catalog-item.open .mobile-category-header .chevron {
    transform: rotate(180deg);
}



/* Подкатегории */
.mobile-subcategory {
    background: #fff;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.mobile-catalog-item.open .mobile-subcategory {
    max-height: 500px; /* Достаточно для большинства списков */
    border-bottom: 1px solid #E0E0E0;
}

/* Ссылки в подкатегориях */
.mobile-link {
    display: block;
    padding: 14px 20px 14px 40px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    border-bottom: 2px solid #f0f0f0;
    transition: background 0.2s;
    padding-left: 36px !important;;
}



.mobile-link:hover {
    background: #F9F9F9;
}

/* Активная ссылка */
.mobile-link.active {
    background: #D6E9F8;
    color: #0A5BAC;
    font-weight: 600;
    border-bottom: 2px solid #0A5BAC;
    padding-left: 36px;
    border-radius: 5px 5px 0 0;
}

/* Скроллбар для меню */
.catalog-mobile-content::-webkit-scrollbar {
    width: 6px;
}
.catalog-mobile-content::-webkit-scrollbar-track {
    background: #f1f1f1;
}
.catalog-mobile-content::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}
/* === Мобильное меню (Логика из index.html) === */

/* Состояние по умолчанию: скрыто */
.catalog-subcategory {
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

/* Состояние при открытии: показываем */
.catalog-category.open .catalog-subcategory {
    max-height: 500px; /* Высоты достаточно для большинства списков */
}

/* Стилизация заголовка категории */
.catalog-category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    color: #333;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    background: #fff;
}

.catalog-category-header svg {
    width: 16px;
    height: 16px;
    color: #666;
    transition: transform 0.3s ease;
}

/* Поворот стрелочки при открытии */
.catalog-category.open .catalog-category-header svg {
    transform: rotate(180deg);
}

/* Ссылки внутри подкатегорий */
.catalog-item a {
    display: block;
    padding: 14px 20px 14px 20px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    background: #fff;
    border-bottom: 1px solid #E0E0E0;
}

/* Активный элемент */
.catalog-item a.active {
    background: #D6E9F8;
    color: #0A5BAC;
    border-radius: 5px 5px 0 0;
    border-bottom: 1px solid #0A5BAC;
    margin: 0 -20px;
    padding-left: 40px;
    padding-right: 40px;
}
/* === Горизонтальный скролл для кнопок фильтров === */
.filter-buttons-scroll-wrapper {
    display: flex;
    flex-wrap: nowrap; /* Запрещаем перенос на новую строку */
    overflow-x: auto;  /* Включаем горизонтальный скролл */
    gap: 8px;          /* Отступ между кнопками */
    padding-bottom: 5px; /* Место для скроллбара */
    -webkit-overflow-scrolling: touch; /* Плавный скролл на iOS */
}

/* Скрываем стандартный скроллбар для красоты (опционально) */
.filter-buttons-scroll-wrapper::-webkit-scrollbar {
    height: 4px;
}

.filter-buttons-scroll-wrapper::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 2px;
}

.filter-buttons-scroll-wrapper::-webkit-scrollbar-track {
    background: transparent;
}
.filter-buttons-scroll-wrapper {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 8px;
    padding-bottom: 5px;
    -webkit-overflow-scrolling: touch; /* Плавный скролл на iOS */

    /* Скрываем скроллбар */
    scrollbar-width: none;  /* Firefox */
    -ms-overflow-style: none;  /* IE 10+ */
}

/* Скрываем скроллбар для Chrome, Safari, Edge */
.filter-buttons-scroll-wrapper::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}
.fast-filter-button.btn-sm {
    min-width: 0;
    white-space: nowrap;
}
.fast-filter-button.btn-sm.active {
    padding-right: 10px;
    padding-left: 10px;
}
@media (max-width: 767px) {
    .fast-filter-button.btn-sm {
        min-width: 0 !important;
    }
}
/* === Исправление таблицы для мобильных (3 столбца) === */
@media (max-width: 767px) {
  .table .active2 {
    width: 60px;
    height: 35px;}
    /* 1. Включаем горизонтальный скролл для таблицы */
    .cat_tabl {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* 2. Возвращаем табличное отображение строкам и ячейкам */
    .table_catalog thead {
        display: table-header-group;
    }

    .table_catalog tbody tr {
        display: table-row ;
        border-bottom: 1px solid #eee;
        margin-bottom: 0 !important;
        box-shadow: none !important;
    }

    .table_catalog td {
        display: table-cell !important;
        border-bottom: none !important;
        padding: 12px 8px !important;
        text-align: center;
        vertical-align: middle;
        position: static !important; /* Сброс абсолютного позиционирования из карточек */
        padding-left: 8px !important;
        width: auto;
        white-space: nowrap; /* Запрещаем перенос текста в узких колонках */
    }

    /* 3. Настраиваем ширину 3 столбцов */
    
    /* Столбец 1: Название (самый широкий, с переносом текста) */
    .table_catalog td:first-child {
        width: 45%;
        min-width: 140px;
        text-align: left;
        white-space: normal; /* Разрешаем перенос текста */
    }

    /* Скрываем все промежуточные столбцы (Характеристики, Регион и т.д.) */
    .table_catalog td:not(:first-child):not(:nth-last-child(2)):not(:last-child) {
        display: none !important;
    }
    
    /* Скрываем соответствующие заголовки таблицы */
    .table_catalog thead th:not(:first-child):not(:nth-last-child(2)):not(:last-child) {
        display: none;
    }

    /* Столбец 2: Цена */
    .table_catalog td:nth-last-child(2) {
        width: 30%;
        font-weight: 600;
        color: #0A5BAC;
        font-size: 15px;
    }

    /* Столбец 3: Кнопка */
    .table_catalog td:last-child {
        width: 25%;
    }

    /* Убираем отступы у заголовка, так как он теперь в одну линию */
    .table_catalog thead th {
        display: none; /* Обычно на мобильном скролле заголовки прячут или оставляют, тут скроем для чистоты */
    }
    
    /* Если нужно оставить заголовки видными при скролле, уберите display: none выше 
       и добавьте white-space: nowrap для th */
}
/* === Стили для блока информации внутри ячейки (Мобильные) === */
.product-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.product-name {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 2px;
}

.product-gost {
    font-size: 12px;
    color: #666;
}

.product-detail {
    font-size: 12px;
    color: #666;
}

.product-location {
    font-size: 12px;
    color: #888;
    margin-top: 4px;
}

/* --- ОБНОВЛЕНИЕ СТИЛЕЙ ТАБЛИЦЫ (Чтобы первый столбец вмещал всё) --- */
@media (max-width: 767px) {

    .footer {
        max-height: 472px!important;
        height: 345px;
    }
    .cat_tabl {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .table_catalog tbody tr {
        display: table-row ;
        border-bottom: 1px solid #eee;
    }

    .table_catalog td {
        display: table-cell ;
        vertical-align: top; /* Выравнивание по верху */
        padding: 12px 8px !important;
    }

    /* Первый столбец: Занимает доступное место */
    .table_catalog td:first-child {
        width: auto; /* Автоширина */
        min-width: 150px; /* Минимальная ширина, чтобы текст не слипался */
        text-align: left;
        white-space: normal; /* Перенос строк включен */
    }

    /* Скрываем лишние колонки (характеристики, регион) */
    .table_catalog td:not(:first-child):not(:nth-last-child(2)):not(:last-child) {
        display: none !important;
    }
    
    /* Скрываем заголовки лишних колонок */
    .table_catalog thead th:not(:first-child):not(:nth-last-child(2)):not(:last-child) {
        display: none;
    }

    /* Второй столбец: Цена */
    .table_catalog td:nth-last-child(2) {
        width: 100px; /* Фиксированная ширина для цены */
        text-align: center;
        white-space: nowrap;
        font-weight: 600;
        color: #0A5BAC;
    }

    /* Третий столбец: Кнопка */
    .table_catalog td:last-child {
        width: 60px; /* Фиксированная ширина для кнопки */
        text-align: center;
    }
    
    /* Скрываем заголовок таблицы на мобильном для чистоты, так как у нас сложная структура в 1-й ячейке */
    .table_catalog thead {
        display: none;
    }
}
.region-selector {
    margin: 0 0 16px;
    background: #F5F5F5;
    border: none;
    border-radius: 5px;
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
}

.region-selector span {
    font-size: 14px;
    font-weight: 400;
    color: #666;
}

.region-selector svg {
    width: 16px;
    height: 16px;
    color: #666;
}
/* Обновляем селектор, чтобы заголовок товара был белым в мобильном хедере */
.title-section .title_catalog,
.title-section .title_catalog_detail, /* Добавлено */
.title-section .title_catalog_smart,
.title-section .title_catalog_smart small {
    color: #fff !important;
    text-align: left;
    margin: 0;
    padding: 0;
}

/* Скрываем старый заголовок на мобильных устройствах */
@media (max-width: 767px) {
    .desktop-title-wrapper {
        display: none !important;
    }
#product-block-image{
  margin-top: 120px; 
  margin-bottom: -8px!important;
}
#product-block-price{
    margin-left: 10px;
}
#btncheck, .active2{
    width: 139px;
}
.P_BLOCK_CENA{
    width: 139px;
}

#product-block-center{
    margin-top: -31px;
    margin-left: 10px;
}
#product-block-description{
    margin: 10px;
    width: 95%;
}
#product-block-package{
    margin: 10px;
    width: 95%;
}

}
.title-section small {
    font-size: 13px;
    color: rgba(255,255,255,0.7) !important;
    margin-top: 4px;
    display: block;
}
@media (max-width: 767px) {
    /* Убираем горизонтальный скролл у контейнера */
    .col-md-8 {
        overflow-x: hidden !important;
        width: 100% !important;
        padding-right: 0;
        padding-left: 0;
    }

    /* 1. Принудительно возвращаем табличную структуру */
    #userlist, 
    #userlist thead, 
    #userlist tbody, 
    #userlist tr, 
    #userlist td {
        display: table, table-header-group, table-row-group, table-row, table-cell !important;
    }

    /* Фиксированная структура таблицы */
    #userlist {
        table-layout: fixed;
        width: 100%;
    }

    /* Сбрасываем стили строк */
    #userlist tbody tr {
        display: table-row !important;
        box-shadow: none !important;
        margin-bottom: 0 !important;
        background: transparent !important;
        
        /* Добавляем нижнюю границу для строк */
        border-bottom: 1px solid #ddd !important;
    }

    /* Сбрасываем стили ячеек и задаем цвет текста */
    #userlist td {
        display: table-cell !important;
        border: none;
        padding: 12px 5px !important;
        vertical-align: middle;
        text-align: center;
        position: static !important;
        width: auto !important;
        min-width: 0 !important;
    }

    /* --- СТИЛИ ДЛЯ ЗАГОЛОВКОВ (THEAD) --- */
    /* Показываем заголовок таблицы */
    #userlist thead {
        display: table-header-group !important;
        background-color: #f9f9f9;
    }

    /* Стили для ячеек заголовка */
    #userlist thead td {
        display: table-cell !important;
        color: #4A4A4A !important;
        font-size: 12px;
        font-weight: 600;
        padding: 10px 5px !important;
        border-bottom: 2px solid #ddd; /* Заголовок имеет свою границу */
        text-align: center;
        vertical-align: middle !important; 
    }

    /* Скрываем заголовки для ненужных колонок */
    #userlist thead td:nth-child(1), /* Чекбокс */
    #userlist thead td:nth-child(4), /* Ед. изм. */
    #userlist thead td:nth-child(5)  /* Цена за ед. */
    {
        display: none !important;
    }

    /* Выравнивание заголовка "Название" по левому краю */
    #userlist thead td:nth-child(2) {
        text-align: left !important;
        vertical-align: middle !important;
    }

    /* Переименовываем "Итоговая цена" в "Стоимость" */
    #userlist thead td:nth-child(6) {
        font-size: 0;
        color: #4A4A4A !important;
        vertical-align: middle !important;
    }
    
    #userlist thead td:nth-child(6)::after {
        content: "Стоимость";
        font-size: 12px;
        color: #4A4A4A !important;
        display: inline-block; 
        vertical-align: middle;
    }

    /* --- СТИЛИ ДЛЯ ЯЧЕЕК ТЕЛА (TBODY) --- */
    
    /* Применяем цвет текста ко всем ячейкам тела */
    #userlist tbody td {
        color: #4A4A4A !important;
    }

    /* Скрываем лишние колонки в теле таблицы */
    #userlist td:nth-child(1),
    #userlist td:nth-child(4),
    #userlist td:nth-child(5) {
        display: none !important;
    }

    /* Скрываем кнопки +/- */
    #userlist td:nth-child(3) .btn-link {
        display: none;
    }

    /* Настройка ширины видимых колонок */
    
    /* Колонка 2: Название */
    #userlist td:nth-child(2) {
        width: 45% !important;
        text-align: left !important;
        padding-left: 10px !important;
    }
    #userlist td:nth-child(2) a {
        word-wrap: break-word;
        white-space: normal;
        font-size: 13px;
        color: #4A4A4A !important; /* Ссылка тоже цветом #4A4A4A */
    }

    /* Колонка 3: Количество */
    #userlist td:nth-child(3) {
        width: 20% !important;
    }
    #userlist input[type="number"] {
        width: 100% !important;
        padding: 5px 0 !important;
        font-size: 13px;
        color: #4A4A4A;
    }

    /* Колонка 6: Стоимость */
    #userlist td:nth-child(6) {
        width: 30% !important;
        text-align: right;
        padding-right: 10px !important;
        font-weight: bold;
        color: #4A4A4A !important; /* Цвет цены #4A4A4A */
    }

    /* Колонка 7: Удалить */
    #userlist td:nth-child(7) {
        width: 5% !important;
        text-align: center;
        padding-right: 5px !important;
    }
        .bas{
            margin-top: 210px;
    }
}
.table-hover>tbody>tr:hover
 {
    background: #d0dce8 !important;
    color: #054982 !important;
    cursor: pointer;
 }
 .table_catalog td{
    max-width: 220px;
 }
#userlist input[type="number"]{
margin: auto;
}
@media print {
    body > *:not(#printSection) { display: none !important; }
    .print-only { display: block !important; }
    table { width: 100%; border-collapse: collapse; }
    table th, table td { border: 1px solid #000; padding: 8px; }
    table th { background: #f0f0f0 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
    input { border: none !important; }
}
.modal-success-custom .modal-dialog {
  max-width: 1107px;
  width: 1107px;
  height: 588px;
  margin: auto;
}

.modal-success-custom .modal-content {
  border: none;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  height: 100%;
}

.modal-success-custom .modal-body {
  flex: 1;
  display: flex !important;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 40px;
}

.success-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.success-title {
  color: #0a4682;
  font-size: 24px;
  text-align: center;
}

.success-modal-btn {
  background-color: #0a4682;
  padding: 12px 40px;
  border-radius: 5px;
  font-size: 16px;
}

.success-modal-btn:hover {
  background-color: #0d55a8;
}

@media (max-width: 1110px) {
  .modal-success-custom .modal-dialog {
    max-width: 90vw;
    width: 90vw;
    height: auto;
    min-height: 400px;
  }
}

@media print {
  .modal { display: none !important; }
}
@media (max-width: 1110px) {
  #successModal .modal-dialog {
    max-width: 90vw !important;
    width: 90vw !important;
    height: auto !important;
    min-height: 400px;
  }
}
.table-price-heading {
    color: inherit;
}
.table-sort-icon {
    font-size: 16px;
}
.table-sort-icon_active {
    border-radius: 4px;
    padding: 2px;
    background-color: #d0dce8;
    color: #0a5bac;
}