@import url("normalize.css");
@import url("reset.css");
@import url("form.css");
@import url("style-for-slider.css");
@import url("bootstrap.css");
@import url("font-awesome.min.css");

html,
body{
  background-image: url("../img/polotno.webp");
  background-attachment: fixed;
  background-color: #fff;
  color: #4bb7d6;
  font-family: 'Open Sans', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  overflow-x:hidden; 
}
img{width: 100%;}


/*HEADER*/
header p{
  color: rgba(255, 255, 255, 1);
  line-height: 1.3;
}
.eTimer {
  margin-top: 20px;
}
header{
  padding-top: 10px;
}
.title_min{
  font-size: 25px;
    font-weight: 600;
    max-width: 80%;
}
.header_p{
  font-size: 20px;
    margin: 0 auto;
    line-height: 1;
    text-align: center;
    border-bottom: solid 1px#58b5d0;
    padding-bottom: 10px;
}
.chooze_us .header_p{
  color:#fff;
}
.old_price{
  font-size:30px;
  color:white;
  text-decoration: line-through;
}
.new_price{
  font-size:35px;
  color:red;
}
.cart_old_price{
  font-size: 20px;
  color: #000;
  text-decoration: line-through;
}
.cart_new_price{
  font-size: 25px;
    color: red;
}
.title_top_text:hover{
  border-bottom: solid 1px #4bb7d6;
  color: #4bb7d6;
   box-shadow: 0 6px 4px -4px #4bb7d6;
}
.header_bg{
  position: relative;
  background-image: url("../img/bg.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  height: 100vh;
}

.header_bg:before{
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.4);
  z-index: 0;
}

.header_bg > *{
  position: relative;
  z-index: 1;
}
h1{
    font-weight: 700;
    text-transform: uppercase;
    margin: 12px auto;
    text-align: center;
    color: #fff;
    font-size: 40px;
}
p.title_selling{
  font-size: 18px;
}
.title_selling{
    background: rgba(0, 0, 0, 0.5);
    margin: 0 0 1px 0;
    padding: 7px 15px;
    display: inline-block;
}

/*CONTENT*/
.icon_box{
    min-width: 74px;
    max-width: 74px;
    min-height: 74px;
    max-height: 74px;
    font-size: 27px;
    line-height: 72px;
    border-style: solid;
    border-width: 1px;
    border-radius: 500px;
    text-align: center;
    margin-right: 22px;
    background-color: #11abd6;
    color: #ffffff;
}
.pad_category{
  padding: 70px 0;
}
.title_categopy{
  color:#4bb7d6;
  font-size: 16.22px;
  font-weight: 600;
  text-transform: uppercase;
}
.title_categopy:hover{
  color:#4bb7d6;
}
.title_categopy_min{
  font-size: 18px;
  margin: 15px 0 0;
}
.gray_bg{
  background-color: #f4f4f4;
  padding: 50px 0;
  border-bottom:solid 1px #ccc;
}
.gray_bg h2, .chooze_us h2, .can_help h2{
  font-size: 46px;
  font-weight: 400;
  margin: auto;
}
.chooze_us h2{
  padding-bottom: 30px;
}
.can_help h2{
  text-align: center;
}
.gray_bg .title_selling, .chooze_us .title_selling{
  margin: auto;
  text-align: center;
  background-color: transparent;
  line-height: 1;
}

.chooze_us .title_selling{
  margin: 50px auto;
}
.blue_line{
    width: 50px;
    margin: 38px auto;
    background-color: #11abd6;
}
.can_help{
  padding: 30px 0;
}
.far{
  font-weight: 900;
}
.opasity{
  background-color: rgba(0, 0, 0, 0.8);
  padding: 30px 0;
}
.lict_help{
  max-width: 550px;
  margin: auto;
}
.bottom_text{
  font-size: 18px;
  font-weight: 600;
  color: #109bc5;
}
.coment_wrap{
  display: flex;
  flex-direction: row;
  align-items: center;
}
footer{
  background-color: #11abd6;
  width: 100%;
  padding: 15px 0;
}
footer .header_p, footer .section-heading{
  color:#fff;
}
footer .section-heading{
  font-size: 25px;
}
.logo_bg{
  background-color: #fff;
  border-radius: 5px;
}
.footer_text{
  padding-left: 20px;
  color:#fff;
  font-size: 11px;
}
.footer_text a{
  color:#fff;
  font-size: 11px;
}
.text-block {
  width: 250px;
  margin: 50px;
}
.b-top {
  z-index:2600;
  position:fixed;
  left:0;
  bottom:90px;
  width:34%;
  margin-left:50%;
  opacity: 0.5;
  filter:alpha(opacity=50);
}
.b-top:hover {
  opacity:1;
  filter:alpha(opacity=100);
  cursor:pointer;
}
.b-top-but {
  width: 50px;
  height: 50px;
  z-index:2600;
  position:absolute;
  display:block;
  left:56px;
  bottom:0;
  margin:0 0 0 100%;
  padding: 10px 16px 4px;
  color:white;
  background:#0a7998 no-repeat ;
  border-radius:4px;
}
#scroller .fa-angle-up{
  font-size: 30px;
}
@media only screen and (max-width: 767px){
    h1{
      font-size: 30px;
    }
    .title_min{
      font-size: 20px;
      text-align: center;
    }
    footer .title_min{
      font-size: 20px;
      text-align: center;
      margin: auto;
      color:#000;
    }
    .gray_bg h2, .chooze_us h2, .can_help h2{
      font-size: 32px;
      text-align: center;
    }
    .coment_wrap{
      flex-direction: column;
    }
    .old_price{
      font-size: 18px;
    }
    .new_price{
      font-size: 25px;
    }
}


.h100{
  height: 100%;
}
.wrap_cart p{
   font-size:25px;
   text-align: center;
}
.df{
  display: flex;
}
.fd_row{
  flex-direction: row;
}
.fd_col{
  flex-direction: column;
}
.al_it_center{
  align-items: center;
}
.wrap_cart{
  padding: 5px !important;
}
.wrap_wrap {
  width: 100%;
  min-height: 100%; /* Поставив min-height для гнучкості */
  margin: 10px;
  border: solid 2px #4bb7d6!important;
  box-shadow: 0 0 10px rgba(0, 123, 25, 0.8);
  
  display: flex;
  flex-direction: column;
  align-items: center; 
  /* space-between розштовхає картинку вгору, а кнопку вниз */
  justify-content: space-between; 
  padding-top: 0 !important; /* Прибираємо повітря зверху */
  padding-bottom: 15px;
  overflow: hidden; /* Щоб картинка не вилазила за рамку */
}
.wrap_wrap img {
  width: 100%; 
  max-height: 400px;
  object-fit: cover;
  display: block;
  margin-top: -1px; /* Твоя магія підйому вгору */
  margin-bottom: 15px; 
}
.color_name {
    font-weight: bold;
    margin-bottom: 5px;
}
.price_block {
    display: inline-block;
    text-align: left;
    margin: auto 0; /* Вирівнює блок з цінами строго по центру порожнього простору */
}
.price_block .header_p {
    margin: 5px 0;
}
.wrap_wrap .btn {
  margin: 10px auto 5px;
  width: 80%;
}
.old_price {
    text-decoration: line-through;
    color: #888;
    margin-right: 5px;
}
.new_price {
    color: #d9534f; 
}
/* Налаштування для великих екранів (ПК) */
@media (min-width: 992px) {
    .price_block .header_p, 
    .price_block .old_price, 
    .price_block .new_price {
        font-size: 20px !important; /* Трохи підкоригував під твій запит */
    }
}
form{
    margin: auto;
    max-width: 410px;
    width: 100%;
    padding: 10px
    border: solid 1px #f05f40;
}  
.input::-webkit-input-placeholder       {opacity: 1; transition: opacity 0.5s ease;}
.input::-moz-placeholder                {opacity: 1; transition: opacity 0.5s ease;}
.input:-moz-placeholder                 {opacity: 1; transition: opacity 0.5s ease;}
.input:-ms-input-placeholder            {opacity: 1; transition: opacity 0.5s ease;}
.input:focus::-webkit-input-placeholder {opacity: 0; transition: opacity 0.5s ease;}
.input:focus::-moz-placeholder          {opacity: 0; transition: opacity 0.5s ease;}
.input:focus:-moz-placeholder           {opacity: 0; transition: opacity 0.5s ease;}
.input:focus:-ms-input-placeholder      {opacity: 0; transition: opacity 0.5s ease;} 
::-webkit-input-placeholder { color: #f05f40; }
::-moz-placeholder          { color: #f05f40; } /* Firefox 19+ */
:-moz-placeholder           { color: #f05f40; } /* Firefox 18- */
:-ms-input-placeholder      { color: #f05f40; }          
input{
    width: 99%;
    height: 40px;
    margin: 5px auto;
    padding: 3px 5px;
    outline:none;
}
input:focus{
    border:solid 2px #f05f40!important;
    box-shadow: 0 0 10px rgba(240, 95, 64, 0.8);
}
.btn {
  font-family: 'Open Sans', 'Helvetica Neue', Arial, sans-serif;
  border: none;
  margin-top: 10px;
  padding: 10px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 18px;
  text-transform: uppercase;
  background-color: rgba(83, 186, 215, 1);
}
.btn:hover{
  background-color: rgba(83, 186, 215, 0.8);
  box-shadow: 0 0 10px rgba(225, 225, 225, 1);
}
.coment img{
  width: 100px;
  height: 100px;
  border-radius: 100%;
  margin-right: 10px;
}
.text_coment{
  padding: 10px 30px;
  color: #000;
  font-size: 15px;
}
.hr{
  width: 100%;
  height: 2px;
  color:#ccc;
  background-color: #ccc;
}

.content-center {
    justify-content: center;
}
/* FLOAT VIBER BUTTON */
.viber-float{
  position: fixed;
  right: 16px;
  bottom: 18px;
  z-index: 9999;
  background: #7360F2;
  color: #fff;
  padding: 12px 16px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 14px;
  text-decoration: none;
  box-shadow: 0 10px 25px rgba(0,0,0,.25);
}
.viber-float:hover{ opacity: .92; }
.viber-float:active{ transform: scale(.97); }
/* ===== HERO TYPE BUTTONS ===== */
.typeBtn{
  display: block;
  position: relative;
  background: rgba(0,0,0,.6);
  border-radius: 16px;
  padding: 10px;
  text-align: center;
  color: #fff;
  text-decoration: none;
  border: 2px solid rgba(0,255,120,.55);
  box-shadow:
    0 0 10px rgba(0,255,120,.6),
    0 0 22px rgba(0,255,120,.35);
  animation: neonPulse 2s infinite;
  transition: transform .25s ease, box-shadow .25s ease;
}

/* фото в кнопці */
.typeBtn img{
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 6px;
}

/* текст */
.typeTitle{
  font-weight: 500;
  font-size: 16px;
  margin-top: 4px;
}
.typePrice{
  font-size: 14px;
  opacity: .9;
}
.typePrice span{
  font-size: 12px;
  opacity: .8;
}

/* hover ТІЛЬКИ для ПК */
@media (hover:hover){
  .typeBtn:hover{
    transform: scale(1.07);
    box-shadow:
      0 0 18px rgba(0,255,120,.9),
      0 0 38px rgba(0,255,120,.6);
  }
}

/* пульсація */
@keyframes neonPulse{
  0%{
    box-shadow:
      0 0 6px rgba(0,255,120,.4),
      0 0 16px rgba(0,255,120,.25);
  }
  50%{
    box-shadow:
      0 0 16px rgba(0,255,120,.9),
      0 0 36px rgba(0,255,120,.6);
  }
  100%{
    box-shadow:
      0 0 6px rgba(0,255,120,.4),
      0 0 16px rgba(0,255,120,.25);
  }
}
header .row{ margin-left:0; margin-right:0; }
header .row > [class*="col-"]{ padding-left:6px; padding-right:6px; }

.chairs-title{
  color: #fff;
  text-align: center;
  margin: 30px auto 20px;
  font-weight: 700;
}

body{ overflow-x: hidden; }

.typeButtonsWrap{ padding: 0 15px; }              /* компенсує -15px у .row */
.typeButtonsWrap .row{ margin-left: 0; margin-right: 0; }  /* ідеально рівно */
@media (max-width: 420px){
  .header_bg{ height:auto !important; min-height:100vh; padding-bottom:20px; }
  .h100{ height:auto !important; }
}

.chairs-title{
  color:#fff;
  text-align:center;
  margin:30px auto 20px;
  font-weight:700;
}

.chairs-subtitle{
  display:block;
  font-size:0.65em;   /* менший шрифт */
  font-weight:500;
  opacity:.85;
  margin-top:6px;
}

/* === MEASURE IMAGE === */
.measure-wrap{
  max-width: 900px;
  margin: 50px auto;
  text-align: center;
}

.measure-title{
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 18px;
}

.measure-img{
  max-width: 100%;
  border-radius: 12px;
  cursor: zoom-in;
  box-shadow: 0 10px 25px rgba(0,0,0,.15);
  transition: transform .25s ease;
}

.measure-img:hover{
  transform: scale(1.02);
}

/* === MEASURE BLOCK === */
.measure-wrap{
  max-width: 900px;
  margin: 50px auto;
  text-align: center;
}

.measure-title{
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 18px;
}

/* прев’ю (маленьке) */
.measure-img{
  width: 320px;          /* ПК */
  max-width: 88vw;       /* мобілка */
  height: auto;
  display: inline-block;
  border-radius: 12px;
  cursor: zoom-in;
  box-shadow: 0 10px 25px rgba(0,0,0,.15);
}

/* === MODAL === */
.measure-modal{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  padding: 16px;          /* щоб не прилипало до країв */
}

.measure-modal.active{
  display: flex;
}

/* модальне фото (велике, але з обмеженням) */
.measure-modal-img{
  width: auto !important;
  height: auto !important;
  max-width: 92vw;
  max-height: 92vh;
  border-radius: 14px;
  cursor: zoom-out;
}

/* хрестик */
.measure-close{
  position: absolute;
  top: 14px;
  right: 18px;
  font-size: 40px;
  line-height: 1;
  color: #fff;
  background: transparent;
  border: 0;
  cursor: pointer;
  font-weight: 700;
}
.measure-img{
  width: 200px;
}
/* ПОВНИЙ ФІКС: КНОПКИ ТА ХЕДЕР */
@media (min-width: 420px) and (max-width: 768px) {
  /* Дозволяємо фону хедера розтягуватися під контент */
  .header_bg {
    height: auto !important;
    min-height: 100vh;
    padding-bottom: 40px !important;
  }

  /* Робимо обгортку кнопок видимою */
  .typeButtonsWrap {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    z-index: 10 !important;
    margin-top: 20px !important;
  }

  /* Налаштовуємо ряд для 2 кнопок */
  .typeButtonsWrap .row {
    display: flex !important;
    flex-wrap: wrap !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  /* Кожна кнопка займає рівно 50% ширини */
  .typeButtonsWrap .col-6 {
    flex: 0 0 50% !important;
    max-width: 50% !important;
    display: block !important;
    padding: 6px !important;
  }

  /* Перевірка, щоб картинки не мали нульову висоту */
  .typeBtn img {
    display: block !important;
    width: 100% !important;
    height: auto !important;
  }
}