/* Глобальные исправления для модальных окон 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: 999 !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;
}
.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%;
    
   
}
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;
    z-index: 999999;
    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!important;
  height: 42px!important;
  opacity: 1;
  border-radius: 5px;
  padding-top: 10px;
  padding-right: 20px;
  padding-bottom: 10px;
  padding-left: 20px;
  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;
}

/* Уменьшаем z-index конфликтующих элементов */
.side-panel {
    z-index: 999 !important;
}

/* Исправление для других модальных окон, если есть */
.modal {
    overflow-y: auto !important;
}

/* ================ Мобильная адаптация ================ */

/* Каталог */
@media (max-width: 767px) {
    
  /* Общие стили для мобильных */
  .container {
    padding-left: 15px;
    padding-right: 15px;
    margin-bottom: 205px;
  }
  
  /* Каталог - таблица */
  .table_catalog {
    font-size: 14px;
  }
  
  .table_catalog thead {
    display: none;
  }
  
  .table_catalog tbody tr {
    display: block;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
  }
  
  .table_catalog td {
    display: block;
    text-align: right;
    padding: 8px 10px;
    border-bottom: 1px solid #eee;
    position: relative;
    padding-left: 50%;
  }
  
  .table_catalog td:before {
    content: attr(data-label);
    position: absolute;
    left: 6px;
    width: 45%;
    padding-right: 10px;
    white-space: nowrap;
    font-weight: bold;
    text-align: left;
  }
  
  .table_catalog td:last-child {
    border-bottom: none;
  }
  
  /* Кнопки в таблице */
  .table_catalog td:last-child button {
    width: 100%;
    margin-top: 10px;
  }
  
  /* Хлебные крошки */
  .breadcrumb {
    font-size: 12px;
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 10px;
  }
  
  /* Заголовок каталога */
  .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: 90%;
    right: -90%;
  }
  
  #side-checkbox:checked + .side-panel {
    right: 0;
  }
  
  .filter_body {
    padding: 20px 10px;
    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) {
  .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 {
    width: 100%;
    margin-bottom: 10px;
  }
  
  /* Кнопки выбора города */
  .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-name {
    font-weight: 500;
    color: #333;
    word-break: break-word;
    overflow-wrap: break-word;
    line-height: 1.3;
    margin-bottom: 5px;
    margin-left: 188px;
    margin-top: 8px;
  }
  
  .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: 215px;
  }
.cena_detail_catalog {
    min-height: 280px;
  }

  .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) {

    .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;
}