

     /* Стили для галереи */
.product-gallery {
    margin-top: 20px;
    position: relative;
    overflow: hidden; /* Прячем лишние слайды */
    max-width: 65%; /* Уменьшение размера галереи */
    margin-left: auto;
    margin-right: auto;
}

.gallery-wrapper {
    display: flex;
    gap: 10px; /* Расстояние между слайдами */
    transition: transform 0.3s ease; /* Анимация для прокрутки */
}

.gallery-slide {
    flex: 0 0 calc(33.333% - 10px); /* Три слайда в строке (десктоп) */
    cursor: pointer;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-slide img {
    width: 100%;
    height: auto;
}

.gallery-slide:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Название слайда */
.slide-title {
    margin-top: 10px;
    font-size: 14px;
   /* font-weight: bold;*/
    color: #333;
    text-align: center;
}


/* Мобильная версия */
@media (max-width: 768px) {
    .gallery-slide {
        flex: 0 0 100%; /* Один слайд на экране */
    }
      .slide-title {
        font-size: 12px; /* Уменьшение размера текста на мобильных устройствах */
    }
}







/* Общий стиль модального окна */

 .cart-icon button,
  .cart-icon a {
    background: #ffd000;
    border: none;
    border-radius: 50%;
    padding: 5px;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
  }




.cart-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.6);
}

/* Контент модального окна */
.cart-modal-content {
  background: white;
  padding: 25px;
  margin: 5% auto;
  max-width: 650px;
  max-height: 90vh; /* увеличено с 90vh */
  overflow-y: auto; /* позволяет прокручивать при большом списке */
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0,0,0,0.4);
  position: relative;
}

/* Закрыть */
.cart-modal-content .close {
  position: absolute;
  right: 15px;
  top: 10px;
  font-size: 28px;
  font-weight: bold;
  color: #444;
  cursor: pointer;
}

.cart-modal-content .close:hover {
  color: #000;
}









         .buy-button {
        display: inline-block;
        padding: 4px 8px;
        background-color: #007BFF;
        color: #ffffff;
        text-decoration: none;
        border-radius: 4px;
    } 
      /* CSS для плавного раскрытия и поворота стрелки */
      #characteristics-content {
          overflow: hidden;
          transition: max-height 0.5s ease;
          max-height: 0; /* Начальное состояние - скрыто */
      }
      
      /* Поворот стрелки вниз и вверх */
      .characteristics_title .arrow {
          display: inline-block;
          transition: transform 0.5s ease;
      }
      
      .rotate-up {
          transform: rotate(180deg);
      }
      .order-button {
    background-color: #00a046;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    display: block;
    margin: 20px auto;
    font-size: 16px;
    cursor: pointer;
  }

 /* --- Общие стили карточки товара --- */

.product-container {
  padding: 15px;
  max-width: 1200px;
  margin: auto;
  background: #fff;
  width: 100%;
  box-sizing: border-box;
}

.tab-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  border-bottom: 2px solid #ddd;
  background: #fff;
  margin-bottom: 20px;
  width: 100%;
  box-sizing: border-box;
  padding: 0;
}

.tab-button {
  flex: 1 1 25%;
  text-align: center;
  padding: 12px;
  font-weight: bold;
  background: none;
  border: none;
  font-size: 16px;
  color: #555;
  cursor: pointer;
  transition: all 0.3s;
  white-space: nowrap;
  box-sizing: border-box;
}

.tab-button.active {
  color: #007BFF;
  border-bottom: 3px solid #007BFF;
}

.tab-content {
  padding: 20px 10px;
  animation: fadeEffect 0.5s ease-in-out;
  min-height: 200px;
  background: #fff;
  width: 100%;
  box-sizing: border-box;
}

.tab-pane {
  width: 100%;
  box-sizing: border-box;
  text-align: left;
  display: none;
}

.tab-pane.active {
  display: block;
  animation: fadeEffect 0.5s ease-in-out;
}





@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


#order-payment {
  display: block !important;
  width: 100%;
  margin-top: 10px;
}




/* Для iframe видео */
.video-frame iframe {
  width: 100%;
  height: 220px;
  border-radius: 8px;
  box-sizing: border-box;
}

.video-description {
  font-weight: bold;
  font-size: 16px;
  margin-bottom: 10px;
  padding: 8px;
  border: 2px solid #007BFF;
  border-radius: 8px;
  background: #f9f9f9;
  text-align: center;
  width: 100%;
  box-sizing: border-box;
  margin-left: auto;
  margin-right: auto;
}

/* --- Адаптивность для мобильных устройств --- */
@media (max-width: 768px) {
  .product-container {
    padding: 10px;
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
  }
  
  /* убираем горизонтальный скролл 13:14 08.08.25 */
  
  
  html, body { overflow-x: hidden; }
  
  
    /* оба столбца — в один, 100% ширины */
  #msProduct_ua .ms2_form { display: block !important; }
  .section_product .col-sm-6,
  .section_product .col-sm-12 {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  
  /* галерея и превью без фиксированных 300/400/560px */
  #msGallery,
  .fotorama,
  .big_image,
  .small_image {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
  }
  .fotorama { max-width: 100% !important; }
  .fotorama__nav-wrap { margin: 8px 0 !important; }

  
   /* картинки растягиваем по контейнеру */
  .gallery-wrapper img,
  .big_image img { width: 100% !important; height: auto !important; }

  /* убираем сдвиг превью влево */
  .small_image { left: 0 !important; }
  
  
   /* тексты без min-width, баннер на всю ширину */
  .product_subtitle { min-width: 0 !important; margin: 10px 0; }
  .right_banner {
    min-width: 0 !important;
    width: 100% !important;
    left: auto !important;
    margin: 16px 0;
  }
  
    /* строка покупки: компактнее и переносится, кнопка на всю ширину */
  .count_item { gap: 10px; flex-wrap: wrap; }
  .btn_buy { width: 100% !important; margin-left: 0 !important; }
  .btn_product { width: 100% !important; height: auto; padding: 12px; }
  
  
  
   /* табы сеткой 2×N, чтобы не вылазили */
  .product-tabs .tab-buttons {
    gap: 8px;
    justify-content: space-between;
    border-bottom: none;
  }
  .product-tabs .tab-button {
    flex: 0 0 calc(50% - 8px);
    padding: 10px 8px;
    font-size: 15px;
    line-height: 1.15;
    white-space: normal;
    min-width: 0;
  }

  
  
  
  
  
  
  
  

  .tab-buttons {
    flex-wrap: wrap;
    justify-content: space-between;
    border-bottom: none;
    padding: 0;
    width: 100%;
  }

  .tab-button {
    flex: 0 0 48%;
    padding: 10px 0;
    font-size: 14px;
    margin-bottom: 8px;
    margin-top: 4px;
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-sizing: border-box;
  }

  .tab-button.active {
    border: 2px solid #007BFF;
    background: #e9f4ff;
    color: #007BFF;
  }

  .tab-content {
    padding: 15px;
  }

  .tab-pane {
    padding: 0 5px;
  }

  .video-frame iframe {
    height: 250px;
  }
}

/* На больших экранах */
@media (min-width: 768px) {
  .tab-button {
    flex: 1 1 auto;
  }

  .video-frame iframe {
    height: 400px;
  }
}
     
 #msGallery{
    width: 400px;
}
#msGallery 
.form-horizontal{ height:auto!important; overflow:visible!important; }

.gallery-wrapper img {
    width: 400px;
    height: 400px;
    object-fit: cover; /* или contain, если нужно сохранить пропорции изображения */
}

/*галлерея в карточки товара*/

.form-horizontal{
    height: 600px;
    position: relative;
}
.fotorama__nav-wrap{ 
    margin-top:12px!important; 
    height:auto!important; 
    
}
.fotorama__nav__shaft{
    height: 100px;
}
.fotorama__thumb-border{
    width: 100px;   
    border: 2px solid #ffd000;
    
}
.fotorama__img{
    height: 100px;
    width: 100px;
}
.fotorama__nav__frame .fotorama__nav__frame--thumb{
    margin-left: 20px;
    margin-right: 20px;
}

.fotorama__nav-wrap .fotorama__nav__frame .fotorama__nav__frame--thumb{
    height: 100px;
    width: 100px;
    border: 0;
    border-radius: 3px;
}
.fotorama__thumb-border{
    height: 100px;
    width: 100px;
}
.fotorama{
  position:relative; 
  top:0!important; 
  width:100%; 
  max-width:560px; 
  height:auto!important;
}
.fotorama__nav-wrap .fotorama__img{
    width: 100px;
    height: 100px;
    position: relative;
    left: 0px;
    top: 0px;
}
.fotorama__wrap .fotorama__wrap--css3 .fotorama__wrap--slide .fotorama__wrap--toggle-arrows{
    width: 400px;
    border: 1px solid;
}    

.item_teaser {
  margin-bottom: 20px; }

.teaser_title {
    font-size: 14px;
    color: #000000;
    max-height: 70px;
    padding: 0 5px;
    width: auto;
    text-align: center;
    height: 50px;
    margin-top: 10px;
    display: block;
    margin: 5px;
 }

.item_teaser_wrapp {
  background: #fff;
  padding: 5px;
  height: 450px;
  width: 220px;
}
.item_teaser_wrapp .img_teaser_link img{
    width: 140px;
    height: auto;
}


.img_teaser_link {
    display: block; 
}
.item_teaser_wrapp .btn_teaser{
    position: relative;
}
.item_teaser_wrapp{
    min-height: 290px;
    width: 230px;
    height: auto;
}

.section_catalog {
  padding-top: 30px;
  padding-bottom: 15px; }

.btn_teaser {
   
    -webkit-border-radius: 3px;
    border-radius: 3px;
    padding: 6px 8px;
    margin: 10px;
 }
  .btn_teaser:hover, .btn_product:hover {
    color: #fff; 
  }
.section_catalog .item_teaser_wrapp{
    bottom: 10px;
    position: relative; 
    left: 0;
    right: 0;
    margin-left: auto;
    margin-right: auto;
}
.media-body p{
    display: none;
}
.media .media-top a{
    left: 0px;
    right: 0px;
    margin-left: auto;
    margin-right: auto;
    width: 100px;
}     
     
.section_catalog p, h1, h2, h3{
    color: #323232;
}
.section_catalog a{
    color: #000000;
}


/*.section_catalog a: hover{
    color: #323232;
}

*/

.section_product .left{
    position: absolute;
    left: 20px;
    z-index: 10;
    top: 150px;
    cursor: pointer;
}
.section_product .right{
    position: absolute;
    top: 150px;
    left: 295px;
    z-index: 10;
    cursor: pointer;
}
.section_product .zoom{
    position: absolute;
    top: 5px;
    left: 290px;
    cursor: pointer;
    z-index: 10;
}

.big_image {
    width: 330px;
    height: 330px;
    position: static;
    margin-top: 20px;
}
.big_image img {
    display: inline-block;
    vertical-align: middle;
}


#product_price{
    margin: 0px 30px;
    text-align: center;
}


/* Две колонки на десктопе */
@media (min-width: 992px){
  #msProduct_ua .ms2_form{
    display:flex; gap:28px; align-items:flex-start; flex-wrap:nowrap;
  }
  
  
  /* левая — галерея */
  #msProduct_ua .ms2_form .col-sm-6{ flex:1 1 auto; min-width:0; width:auto!important; }
  /* правая — блок с ценой */
  #msProduct_ua .ms2_form .col-sm-12{
    flex:0 0 380px; position:static!important; left:auto!important; top:auto!important;
    min-width:0!important; height:auto!important; padding:0;
  }
}
/* оформление правой карточки */
#msProduct_ua .ms2_form .col-sm-12{
  background:#fff; border:1px solid #eee; border-radius:14px; padding:18px;
  box-shadow:0 6px 18px rgba(0,0,0,.06);
}
.product_title{margin-bottom:8px;}


/*.count_item{display:flex; align-items:center; gap:12px; flex-wrap:wrap; margin:10px 0;}*/



.cfill{display:flex; align-items:center; gap:8px; position:static; width:auto; height:auto;}


/*.count_item .price{margin:0; float:none; padding:10px 16px; border:1px solid #ddd; height:auto;}*/


/*.btn_buy{width:100%;}  изменил 11/08/2025 строку нижн коммент


.btn_product{width:100%; 
height:48px;
border-radius:12px; 
font-weight:700;}*/



/* цена в правом блоке */
.count_item .price{
  display:inline-block;
  padding:10px 14px;
  border:1px solid #D9D9D9;
  border-radius:10px;
  background:#fff;
  color:#222;
  font-weight:400;      /* НЕ жирная */
  line-height:1;
  white-space:nowrap;   /* не переносим 15 900грн */
}




/*.count_item{
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  width: auto;
  height: auto;
  margin: 10px 0;
}
*/

.count_item{
  display:flex;
  align-items:center;
  gap:14px;
  flex-wrap:nowrap;
  margin:10px 0;
  width:auto;
  height:auto;
}

.count_item .count{
    width: 50px;
    height: 26px;
    
    border: 1px solid #d2d2d2;
}


/* Компактнее поле количества */

.cfill{ display:flex; 
align-items:center; 
gap:8px; 
position:static; 
}


/*.cfill input[type="number"]{
  width:64px;
  text-align:center;
}*/

.count_item .btn-primary{
    margin-left: 10px;
    /*margin-top: -27px; фиксил 14:07 08.08.25*/
    margin-top: auto;
}

.count_item .plus,
.count_item .minus{ 
    position:static; 
    margin:0;
    z-index:auto; }

/*.count_item .plus{
    margin-left: 85px;    
    z-index: 10;
    position: absolute;
}
.count_item .minus{
    margin-left: 0px;
    z-index: 10;
    position: absolute;
}

*/



.slick-track{
  top:auto!important; left:auto!important; height:auto!important; border:0!important;
}
.small_image{
    width: 400px;
    height: 116px;
    position: relative;
    margin-top: 20px;
    left: -20px;
}
  .small_image img {
    margin: 0px 0px;
  }
.product_subtitle{
    color: #323232;
    font-size: 16px;
    width: auto;
    min-width: 400px;
    padding: 0;
    margin: 10px 20px;
    text-align: left;
    font-weight: 400;
}
/* Перебиваем старые жёсткие стили, которые тянут блок под галерею */
.section_product .col-sm-12{
  position: static !important;
  left: auto !important;
  top: auto !important;
  min-width: 0 !important;
  height: auto !important;
}
.section_product .col-sm-6{ width: auto !important; }
     
 /* Стили для product_title только на мобильных устройствах */
@media (max-width: 768px) {
    .product_title {
        font-size: 16px;       /* Уменьшение размера шрифта */
        padding-right: 35px;   /* Отступ справа */
        padding-left: 15px;    /* Отступ слева */
        min-width: auto;       /* Отмена минимальной ширины */
    }
}



.characteristics {
    color: #323232;
    padding: 20px;
    font-family: 'Inter', sans-serif;
    /*font-family: 'Orelega One';*/
    font-size: 14px;
    position: relative;
}

.characteristics_title {
    color: #0000cd;
    font-size: 18px; }





.btn_product{
  width: 100%;
  height: 48px;
  border-radius: 12px;
  font-weight: 400;
}





/*.btn_product: hover{
    background-color: #ffa000;
}
*/


.shor_description_title {
    font-size: 16px;
    font-family: 'Orelega One';
    color: #141414;
    margin-top: 25px;
    margin-left: 20px;
}
.short_description{
    margin-top: 10px;
    margin-left: 20px;
    height: auto;
    max-width: 500px;
    min-height: auto;
}
.short_description p{
    font-size: 13px;
    font-family: 'Orelega One';
    color: #141414; 
    text-align: left;
}

.right_banner {
    color: #323232;
    background: #fafafa;
    font-size: 13px;
    text-decoration: none;
    font-weight: 500;
    width: auto;
    min-width: 460px;
    height: 95px;
    left: 400px;
    margin: 35px 10px;
    position: relative;
}
.right_banner img {
    margin-top: 25px; 
}

.other_section_title {
    font-size: 20px;
    font-weight: 500;
    color: #0000cd;
    text-align: center;
}

.section_other_items {
  padding-top: 35px;
  padding-bottom: 40px; }

.other_wrapp {
    margin: 20px;
    min-height: 300px;
}

.other_wrapp .item_teaser_wrapp .other_item_title {
    padding: 10px;
    min-height: 50px;
    float: left;
    display: block;
    width: auto;
    height: 40px;
    font-size: 16px;
    color: #0000cd;
}
.section_other_items .item_teaser_wrapp{
    width: 260px;
    left: 0;
    right: 0;
    margin-left: auto;
    margin-right: auto;
}

.banner_title{
    color: #323232;
    font-size: 14px;
    font-weight: 500;
}
.ai{
    width: 150px;
    float: left;
}
.category_tpl{
  min-height: 150px;
}
.teaser_category_title{
  font-size: 22px;
}
.imageslider_wrapper{

  border-radius: 5px;
}
.big_image .imageslider_wrapper{
  display: flex;

  box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.1);
  background: #fff;
  align-items: center;
  flex-direction: row;
}
.section_product .col-sm-6{
    width: 300px;
}


.imageslider_wrapper img{
    margin-left: auto;
    margin-right: auto;
    position: relative;
    bottom: 300px;
}
.teaser_news_container{
  margin-bottom: 20px;
}
.teaser_news_container .media-left{
  min-width: 180px;
}
.teaser_news_container .media-object{
  display: inline-block;
}
.img_teaser_link{
    width: 200px;
    height: 200px;
    left: 0;
    right: 0;
    display: block;
    margin-left: auto;
    margin-right: auto;
}
.section_text{
  padding-bottom: 35px;
}
.section_text .col-sm-12{
    width: 220px;
    height: 280px;
    position: relative;
    box-shadow: 0 0 5px 0 rgba(0, 0, 0, 0.1);
    margin: 10px;
    padding: 0px;
}
.media-left{
    margin-top: 0px;
}
.media-body{
    margin-top: 50px;
}

.section_text .col-sm-12 .teaser_category_title{
    width: auto;
    height: auto;
    margin: 0px;
    padding: 10px;
    font-size: 15px;
    top: 100px;
}
.succesMessageTitle p{
  margin-bottom: 300px;
}
    
    
    
  /* Адаптация для десктопной версии */
@media (min-width: 992px) {
    .section_catalog .item_teaser {
        width: 23% !important;
        margin: 1% !important;
        padding: 15px; /* Увеличенные внутренние отступы для карточек на десктопе */
    }
}




.section_catalog .row {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start; /* Выравнивание по началу для многостраничности */
}


  
     
 /* ======= Раскладка: 2 колонки как раньше (галерея слева, инфо справа) ======= */
 
 @media (min-width: 992px){
  /* общие размеры: левая галерея ~620px, зазор 24px */
  #msProduct_ua .ms2_form{
    display:flex; gap:24px; align-items:flex-start; flex-wrap:nowrap;
  }
  #msProduct_ua .ms2_form .col-sm-6{ flex:0 0 620px; min-width:0; }
  
  
  #msProduct_ua .ms2_form .col-sm-12{
    flex:1 1 auto;
    position:static!important; left:auto!important; top:auto!important;
    min-width:0!important; height:auto!important;
    padding:0; margin:0;
    background:transparent; border:0; box-shadow:none;
  }

  /* переносим блок с вкладками (product-container) в правую колонку визуально */
  #msProduct_ua{ position:relative; }
  
  
  
  /* сам контейнер вкладок находится в .col-sm-12 ниже по DOM — выравниваем его вправо */
  #msProduct_ua > .col-sm-12 .product-container{
    max-width: 420px;                     /* ширина правой колонки (подгоняй при желании) */
    margin: 12px 0 0 calc(620px + 24px);  /* отступ слева = ширина галереи + зазор */
  }
}

/* На всякий случай — мобильные без изменений (вкладки остаются под фото) */
@media (max-width: 991.98px){
  #msProduct_ua > .col-sm-12 .product-container{
    max-width:100%;
    margin: 16px 0 0 0;
  }
}
 
 
 
 
 
@media (min-width: 992px){
  #msProduct_ua .ms2_form{
    display:flex; gap:24px; align-items:flex-start; flex-wrap:nowrap;
  }
  /* Левая колонка: галерея */
  #msProduct_ua .ms2_form .col-sm-6{
    flex:0 0 620px;            /* ширина области с фото */
    min-width:0; width:auto!important;
  }
  /* Правая колонка: убираем «коробку» и лишние отступы */
  #msProduct_ua .ms2_form .col-sm-12{
    flex:1 1 auto;
    position:static!important; left:auto!important; top:auto!important;
    min-width:0!important; height:auto!important;
    padding:0; margin:0;
    background:transparent; border:0; box-shadow:none;
  }
}

/* ======= Заголовок как «пилюля» + выравнивание строки покупки ======= */
/*.product_title{
  display:inline-block;
  margin:0 0 12px;
  padding:8px 14px;
  border:2px solid #0b3d91;   
  border-radius:12px;
  font-size:24px; line-height:1.15;
}*/

.product_title{
  display:inline-block;
  margin:0 0 12px;
  padding:8px 14px;
  border:2px solid #0b3d91;
  border-radius:12px;
  font-size:24px;
  line-height:1.15;
}





/* Одна строка: минус/поле/плюс — цена — кнопка */


.count_item{
  display:flex; align-items:center; gap:14px; flex-wrap:nowrap;
  margin:10px 0; width:auto; height:auto;
}





/*.cfill{ display:flex; align-items:center; gap:8px; position:static; }*/


/*.count_item .price{
  margin:0; padding:0 10px; height:auto;
  border:0; background:transparent; font-weight:700;
}
*/

.btn_buy{ margin-left:auto; }              /* кнопка у правого края строки */



.btn_product{ height:50px; 
border-radius:12px; 
font-weight:400; 
     font-size: 14px;
    color: #fff;
    background-color: #ffd000;
}



/* ======= Превью под фото (fotorama) — без сдвигов и «обрезаний» ======= */
.form-horizontal{ height:auto!important; overflow:visible!important; }
.fotorama{ position:relative; top:0!important; width:100%; max-width:620px; height:auto!important; }
.fotorama__nav-wrap{ margin-top:12px!important; height:auto!important; position:static!important; }


.section_product .col-sm-6{ width:auto !important; }

/* На всякий случай убираем прежние «сдвиги» правой колонки */
.section_product .col-sm-12{
  position:static !important; left:auto !important; top:auto !important;
  min-width:0 !important; height:auto !important;
}


/* --- расположение вкладок справа под ценой/кнопками --- */
@media (min-width: 992px){
  #msProduct_ua{ 
    position: relative;   /* якорь для абсолютного позиционирования вкладок */
  }

  /* ширина левой галереи и зазор (если нужно — подгони под свои размеры) */
  #msProduct_ua .ms2_form .col-sm-6{ flex:0 0 620px; min-width:0; }
  #msProduct_ua .ms2_form{ display:flex; gap:24px; align-items:flex-start; }

  /* сам контейнер вкладок, который сейчас идёт ниже по DOM */
  #msProduct_ua > .col-sm-12 .product-container{
    position: absolute;
    right: 0;                 /* прижали к правому краю */
    width: 420px;             /* ширина правой колонки */
    top: 205px;               /* ВАЖНО: подгони под свою высоту заголовка/кол-ва/кнопок */
    margin: 0;
    max-width: 420px;
  }
}

/* на мобильных — как было (вкладки под фото) */
@media (max-width: 991.98px){
  #msProduct_ua > .col-sm-12 .product-container{
    position: static;
    width: auto;
    max-width: 100%;
    margin: 16px 0 0 0;
  }
}
    
    @media (min-width:992px){
  .product-container{
    position: static;
    width: 100%;
    max-width: none;
    margin-top: 14px;  /* аккуратный зазор под кнопкой */
  }
}

/* CSS для навигационной строки и блока с видео */

   .video-section {
    display: inline-block; /* обтекание содержимого */
    border: 3px solid #0000cd; /* синяя рамка */
    padding: 10px;
    border-radius: 10px;
   /* background-color: #f0f8ff;  светло-голубой фон */
    color: #000;
    margin-bottom: 15px;
    max-width: 100%; /* чтобы не вылезало за пределы контейнера */
}

    .mobile-nav-bar {
        display: none;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background-color: #ffffff;
        border-top: 1px solid #ddd;
        box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
        padding: 10px 0;
        display: flex;
        justify-content: space-around;
        align-items: center;
        z-index: 1000; /* Убедитесь, что z-index ниже, чем у стрелки */
    }

    .nav-icon {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-decoration: none;
        color: #000;
        font-size: 12px;
    }

    .nav-icon img {
        margin-bottom: 5px;
    }



/* Скрываем панель по умолчанию */
.mobile-nav-bar {
    display: none; /* Панель скрыта */
}

/* Показываем панель только на мобильных устройствах */
@media (max-width: 768px) {
    .mobile-nav-bar {
        display: flex;
    }
}


    /* Стили для стрелки поднятия вверх */
    .scroll-to-top {
        
        position: fixed;
        bottom: 70px; /* Выше навигационной панели */
        right: 20px;
        z-index: 1100; /* Поверх панели */
        width: 40px;
        height: 40px;
        background-image: url('/assets/images/index_48.png');
        /*  background-color: #000;
        color: #fff;
       border-radius: 50%;*/
        display: flex;
        justify-content: center;
        align-items: center;
        cursor: pointer;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    }


   /* 1) Отступ под названием товара, чтобы блок цены/кнопок не лип к заголовку */
.product_title{
  margin: 0 0 18px;      /* было слишком мало */
}

/* 2) Десктопная раскладка: меньше зазор, шире правая колонка, ближе к галерее */
@media (min-width: 992px){
  /* уменьшаем gap между колонками */
  #msProduct_ua .ms2_form{
    gap: 16px;           /* было 24px */
    align-items: flex-start;
  }
  /* левая (галерея) можно чуть уже, чтобы дать место правой */
  #msProduct_ua .ms2_form .col-sm-6{
    flex: 0 0 560px;     /* было 620px */
    max-width: 560px;
  }
  .fotorama{
    max-width: 560px;    /* держим одинаково с левой колонкой */
  }
  /* правая колонка шире и вплотную к галерее (gap уже 16px) */
  #msProduct_ua .ms2_form .col-sm-12{
    flex: 1 1 520px;     /* растягивается, но минимум комфортной ширины есть */
    max-width: 520px;    /* чтобы не “схлопывалась” на широких экранах */
  }

  /* вкладки сразу под блоком кнопок — чуть меньше воздух сверху */
  .product-container{ padding-top: 8px; }
  .product-tabs .tab-buttons{ margin-top: 6px; }
}

/* 3) Убираем зелёный/фисташковый выделитель при нажатии на кнопки и вкладки */
/* 3.1) Убираем фисташковый только для вкладок */
.product-tabs .tab-button {
  -webkit-tap-highlight-color: transparent;
}
.product-tabs .tab-button:focus,
.product-tabs .tab-button:active {
  outline: none !important;
  box-shadow: none !important;
  background: transparent !important;
}
.product-tabs .tab-button:hover {
  text-decoration: underline;
}

/* 3.2) Для кнопок купить/в корзину возвращаем активный фон */
.btn_product,
.btn_addtocart {
  -webkit-tap-highlight-color: transparent;
}
.btn_product:focus,
.btn_product:active,
.btn_addtocart:focus,
.btn_addtocart:active {
  outline: none !important;
  box-shadow: none !important;
  background-color: #ffc107 !important; /* твой желтый брендовый */
  color: #000 !important;
}


/* на всякий случай — цена в одну строку */
.count_item .price{
  white-space: nowrap;
}
    
    
/* === MOBILE PATCHES: дорабатываем переносы и убираем вылезания вправо === */
@media (max-width: 768px) {
  /* 1) Строка количества/цены/кнопки — складываем в грид, кнопка на всю ширину */
  .count_item {
    display: grid !important;
    grid-template-columns: 1fr 1fr; /* слева количество, справа цена */
    grid-auto-rows: auto;
    gap: 10px;
    width: 100%;
  }
  .count_item .cfill { grid-column: 1 / 2; }
  .count_item .price { 
    grid-column: 2 / 3; 
    justify-self: end; 
    max-width: 100%;
  }
  .btn_buy {
    grid-column: 1 / -1;      /* кнопка на всю строку */
    width: 100% !important;
    margin: 0 !important;
  }
 /* .btn_product { width: 100%; padding: 12px; }    закомментировал 13082025*/ 

  /* 2) Таб-кнопки — два столбца без переполнения */
  .product-tabs .tab-buttons {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 0 8px;
  }
  .product-tabs .tab-button {
    min-width: 0;               /* важно: позволяем сжиматься */
    white-space: normal;        /* можно переносить слова */
    overflow: hidden;           /* на всякий случай */
    text-overflow: ellipsis;
    padding: 10px 8px;
    font-size: 15px;
    line-height: 1.2;
  }

  /* 3) Жёсткие ширины/сдвиги, которые ещё могли остаться */
  #msGallery,
  .fotorama,
  .big_image,
  .small_image { width: 100% !important; max-width: 100% !important; height: auto !important; }
  .small_image { left: 0 !important; }
  .product_subtitle { min-width: 0 !important; }
  .right_banner { min-width: 0 !important; width: 100% !important; left: auto !important; margin: 16px 0; }

  /* 4) Защита от случайных переполнений — ни один элемент не шире экрана */
  #msProduct_ua * { max-width: 100%; box-sizing: border-box; }
  html, body { overflow-x: hidden; }
}
    
   /* Кнопка "В кошик" — отдельной строкой на мобилке */
@media (max-width: 768px){
  .count_item{
    display:grid !important;
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "qty price"
      "btn btn";
    gap: 10px;
    width:100%;
  }
  .count_item .cfill{ grid-area: qty; }
  .count_item .price{ grid-area: price; justify-self:end; }
  .count_item .btn_buy{ 
    grid-area: btn; 
    margin-top: 6px;   /* зазор сверху, чтобы не липла */
    width:100% !important;
  }
 /* .count_item .btn_buy .btn_product{
    display:block;
    width:100%;
    padding: 14px 16px;   
    line-height:1.2;
  }  закомментировал 13082025*/
}
 

/* сам nav держим ниже корзины */
.blue-grey.darken-4.fixed-nav,
nav.blue-grey.darken-4 {
  position: fixed;          /* или fixed у тебя, как было */
  top: 0;
  z-index: 1100;
}

/* контейнер навигации */
nav .nav-wrapper {
  position: relative;
  z-index: 1;                /* базовый слой шапки */
}

/* сама иконка корзины (правый верх) */
.cart-icon.mobile-only {
  position: absolute;        /* если она внутри .nav-wrapper */
  right: 12px;
  top: 10px;
  z-index: 2000;             /* выше, чем у nav */
  pointer-events: auto;
}
.cart-icon.mobile-only img { display:block; }




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

/* Кнопка "В кошик" — всегда вмещает текст */
.count_item .btn_buy{
  margin-left: auto;          /* у правого края строки */
  flex: 0 0 auto;             /* не сжимать контейнер кнопки */
}

.count_item .btn_buy .btn_product{
  display: inline-flex;       /* надёжное выравнивание текста по центру */
  align-items: center;
  justify-content: center;

  padding: 12px 28px;         /* добавили горизонтальные отступы */
  min-width: 220px;           /* минимальная ширина под «В КОШИК» */
  max-width: 100%;
  height: 52px;               /* комфортная высота */
  line-height: 1.2;

  white-space: nowrap;        /* не переносить надпись */
  border-radius: 12px;

  background-color: #ffd000;
  color: #fff;
  font-size: 16px;            /* читаемо на десктопе */
  font-weight: 600;
}

/* Поджимаем кнопку на уже́ сужающихся экранах */
@media (max-width: 1200px){
  .count_item .btn_buy .btn_product{
    min-width: 200px;
    font-size: 15px;
    padding: 10px 24px;
    height: 50px;
  }
}
@media (max-width: 992px){
  .count_item .btn_buy .btn_product{
    min-width: 180px;
    font-size: 14px;
    padding: 10px 20px;
  }
}

/* На телефонах кнопка — на всю ширину (у тебя это уже есть, дублируем для надёжности) */
@media (max-width: 768px){
  .count_item .btn_buy{
    width: 100% !important;
    margin: 0 !important;
  }
  .count_item .btn_buy .btn_product{
    width: 100%;
    min-width: 0;
    font-size: 16px;
    padding: 14px 16px;
    height: 50px;
  }
}

