/*Карусель*/
.mySlides {display: none; width: 600px; height: 600px;}
.mySlides img {vertical-align: middle; width: 100%; height: 100%; object-fit: cover;}

/* Slideshow container */
.slideshow-container {
  max-width: 100%;
  height: 100%;
  position: relative;
}

/* Next & previous buttons */
.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  padding: 16px;
  margin-top: -22px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 18px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
}

/* Position the "next button" to the right */
.next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

/* On hover, add a black background color with a little bit see-through */
.prev:hover, .next:hover {
  color: rgba(255, 255, 255, 1);
}

/* Caption text */
.text {
  color: #f2f2f2;
  font-size: 15px;
  padding: 8px 12px;
  position: absolute;
  bottom: 8px;
  width: 100%;
  text-align: center;
}

/* Number text (1/3 etc) */
.numbertext {
  color: #f2f2f2;
  font-size: 12px;
  padding: 8px 12px;
  position: absolute;
  top: 0;
}

/* The dots/bullets/indicators */
.dot {
  cursor: pointer;
  height: 15px;
  width: 15px;
  margin: 0 2px;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.6s ease;
}

.active, .dot:hover {
  background-color: #717171;
}

/* Fading animation */
.fade {
  -webkit-animation-name: fade;
  -webkit-animation-duration: 1.5s;
  animation-name: fade;
  animation-duration: 1.5s;
}

@-webkit-keyframes fade {
  from {opacity: .4} 
  to {opacity: 1}
}

@keyframes fade {
  from {opacity: .4} 
  to {opacity: 1}
}

/* On smaller screens, decrease text size */
@media only screen and (max-width: 300px) {
  .prev, .next,.text {font-size: 11px}
}








/*Страница товара*/

.info_card {

    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    max-width: 490px;
}

.info_card h2 {

margin: 0;
font-family: Jost;
font-weight: 300;
font-size: 20px;
}

.card_product {

    display: flex;
    flex-direction: row;
    gap: 60px;
    justify-content: start;
}


.card_product h3 {

    font-family: Jost;
    font-size: 16px;
    font-weight: 500;

    margin: 0;
    padding-top: 40px;
}

.card_product p {

    font-family: Jost;
    font-size: 16px;
    font-weight: 300;

    margin: 0;
    padding-top: 15px;
}

/* Цена в карточке */
.sale {

    display: flex;
    flex-direction: row;
    width: 100%;
    align-items: flex-end;
    
    padding-top: 5px;
    padding-bottom: 20px;
  }

  .sale p{

    margin: 0;
    margin-bottom: 3px;
    color: #D7D3CF;
    text-decoration: line-through;
    font-size: 16px;
    font-family: Prosto One;
  }

  .sale h1{

    margin: 0;
    margin-right: 15px;
    font-size: 32px;
    font-family: Prosto One;
  }

  /*Все круги размера*/
  .size {

    display: flex;
    flex-direction: row;
    gap: 10px;
  }

  
  
  
 
 
 
  /*Круг размера*/


.form{
  width: 315px;
}

.radio-container{
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 20px;
  font-family: Prosto One;
  flex-wrap: wrap;
}


.radio-container .radio-btn{
  width: 50x;
  height: 50px;
  
  border: 1px solid #1D1D1B;
  border-radius: 50%;
  overflow: hidden;

  text-align: center;
}



.radio-container .radio-btn label{
  background-color: transparent;
  display: block;
  padding: 16px 9px;
  text-align: center;
}

.radio-container .radio-btn input{display: none;}
.radio-container .radio-btn input:checked + label{
  background-color: #1D1D1B;
  color: #fff;
}





  /*Кнопка Плюс-Минус*/

  .number {
    user-select: none;
    position: relative;
    text-align: left;
    padding: 0;
    width: 140px;
    height: 53px;
    border: 1px solid #1D1D1B;
    border-radius: 10px;

    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  
  }
  .number-minus, .number-plus {
    width: 40px;
    margin-top: 14px;
  
    display: block;

    font-size: 20px;

    text-align: center;
    font-family: arial;
    color: #1D1D1B;
    text-decoration: none;
  }
  
  
  .minus:hover, .plus:hover {
    background: #f3efed;
  }
  .minus:active, .plus:active {
    background: #e8e4e2;
  }
  .number-text{
    font-family: Jost;
    font-size: 16px;
    color: #000;
    height: 32px;
    padding: 0;
    outline: none;
    border: none;
    width: 57px;
    text-align: center;
  }

  .plus, .minus {
    width: 40px;
    height: 53px;

    align-items: center;
  }

  .minus {
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
  }

  .plus {
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
  }


/*Все кнопки*/

.all_button {

    display: flex;
    flex-direction: row;
    align-items: end;
    gap: 20px;

    padding-top: 50px;
}


/*Закуска*/

.toasts {
  position: fixed;
  left: 0;
  bottom: 0;
  height: 0;
  width: 100%;
  overflow: visible;
}

.toasts-container {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;

  max-width: 1920px;
  padding-right: 20px;

  display: flex;
  flex-direction: column;
  align-items: end;
 
  flex: 1;
  transition: transform 250ms ease;
  overflow: hidden;
}

.toast {
  display: flex;
  flex: 1;
  padding: 10px 20px;
  margin: 0 0 10px;
  border-radius: 5px;
  background: rgba(29, 29, 27, 0.9);
  
  z-index: 999;
  animation: slideUp 500ms ease forwards 1;

  font-family: Jost;
  font-size: 16px;
  color: #fff;
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
}
  
  
#button_basket {
    height: 55px;
    width: 320px;
    border: 0;
    background: #FFCF31;
    border-radius: 10px;
    font-family: Jost;
    font-size: 16px;
    color: #1D1D1B; /* Добавьте явное указание цвета текста */
}

#button_basket:hover {
    background: #FFAE00;
    cursor: pointer;
}

/* Измените порядок и объедините disabled-стили */
#button_basket:disabled,
#button_basket.disabled {
    background: #808080 !important;
    color: #FFFFFF !important; /* Белый текст для лучшей читаемости */
    cursor: not-allowed;
    pointer-events: none;
    opacity: 0.7; /* Добавьте прозрачность для визуального эффекта */
}


  /*Разрешения экранов*/

  @media  (max-width: 1332px) {
    .mySlides {width: 440px; height: 440px;}

    .card_product {
      gap: 20px;
      justify-content: start;
  }

  }

  @media (max-width: 990px) {
    .mySlides {width: 315px; height: 315px;}

    .info_card {
      max-width: 315px;
    }
  
    .card_product {
      gap: 10px;
    }

    .info_card h2 {
      font-size: 16px;
    }
      
    .card_product h3 {
      font-size: 14px;
      padding-top: 25px;
    }
      
    .card_product p {
      font-size: 14px;
      padding-top: 5px;
    }

    /*Кнопка Плюс Минус*/
    .button-card-wrapper{
      display: flex;
      width: 100px;
      height: 40px;
    
    }

    .col-md-3 {
      margin-top: 30px;
    }
    
    .button-card-wrapper .subtract,
    .button-card-wrapper .add{
      font-size: 1.3em;
      width: 30px;
      padding: 0;
    }
    
    .js-number{
      width: 46px;
      font-size: 16px;
    }

    #button_basket {
      height: 42px;
      width: 190px;
      font-size: 14px;
    }

    .toast {
      font-size: 14px;
    }

     /*Кнопка Плюс-Минус*/
  .number {
    width: 100px;
    height: 40px;
  }
  .number-minus, .number-plus {
    width: 30px;
    margin-top: 8px;
  }

  .number-text{
    width: 37px;
  }

  .plus, .minus {
    width: 30px;
    height: 38px;
  }
  }


  @media (max-width: 690px) {
    .mySlides {width: 440px; height: 440px;}

    .card_product {
      width: 440px;
      flex-direction: column;
      justify-content: center;
      margin: auto;
    }

    .info_card {
      max-width: 440px;
    }
  
    #button_basket {
      width: 250px;
    }

    .toast {
      font-size: 14px;
    }
  }


  @media (max-width: 470px) {
    .mySlides {width: 320px; height: 320px;}

    .card_product {
      width: 320px;
    }

    .info_card {
      max-width: 320px;
    }

    #button_basket {
      width: 180px;
    }

    .toast {
      font-size: 14px;
    }
  }