@import url('https://fonts.googleapis.com/css2?family=Red+Hat+Text:ital,wght@0,300..700;1,300..700&display=swap');

body {
  font-family: "Red Hat Text", sans-serif;
  font-weight: 400;
  font-size: 16px;
  color: #260F08;
}
.main{
    background-color: #FCF8F6;
}
.container {
  max-width: 1246px;
  margin: 0 auto;
  padding: 0 15px;
}
.main .container {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  padding: 88px 0;

}

.main_wrapper {
}

.main_title {
  font-size: 40px;
  font-weight: 700;
  margin-bottom: 32px;
  color: #260F08;

}

.main_cards-wrapper {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.card {

}
.card_img-wrapper{
    position: relative;
    margin-bottom: 38px;

}

.card_img {
  border-radius: 8px;
  width: 250px;
  height: 240px;
  object-fit: cover;
}
.card_img--active{
  border: 5px solid #C73B0F;
}
.card_add-wraper {
  /* display: none; */
    background-color: #fff;
    position: absolute;
    bottom: -20px;
    left: 0;
   right: 0;
    margin: 0 auto;
  display: flex;
  gap: 5px;
  width: 160px;
  padding: 12px 28px;
  border: 1px solid #ad8a85;
  border-radius: 100px;
  cursor: pointer;
}
.card_add-wraper img {
  width: 20px;
  height: 20px;
  object-fit: cover;
}
.card_add {

  width: 100%;
  white-space: nowrap;
  color: #260F08;

  font-size: 14px;
  font-weight: 600;
}
.button_wrapper{
  position: absolute;
  bottom: -20px;
  left: 0;
 right: 0;
}
.backet_card_switch{
  display: none;

  position: absolute;
    bottom: -20px;
    left: 0;
   right: 0;
    margin: 0 auto;
  background-color: #C73B0F;
  width: 160px;
  padding: 14px 28px;
  border: 1px solid #ad8a85;
  border-radius: 100px;
  color: #fff;
}
.quantity-control {
  display: flex;
  justify-content: space-between;
}
.btn-minus {
  display: flex;
  justify-content: center;
  align-items:center;
  border-radius: 50%;
  border: 1px solid #fff;
  padding: 2px;
  text-align: center;
  
}
.quantity {
  font-size: 14px;
  font-weight: 600;
  
}
.btn-plus {
  display: flex;
  justify-content: center;
  align-items:center;
  

 
  border-radius: 50%;
  border: 2px solid #fff;
 padding: 2px;
  text-align: center;

}

.card_desc {
}

.card_desc_category {
    display: inline-block;
    font-size: 14px;
    color: #87635A;
    margin-bottom: 4px;
}

.card_desc-title {
    font-weight: 600;
    color: #260F08;
    margin-bottom: 4px;
}

.card_desc-price {
    color: #C73B0F;
    font-weight: 600;
}

.basket {
   padding: 0 40px;
  
   
    height:min-content ;
}

.basket_wrapper{
  background-color: #fff;
  padding: 24px;
}

.basket_title {
    font-size: 24px;
    font-weight: 700;
    color: #C73B0F;
    margin-bottom: 24px;
}

.basket_img {
    
    margin: 0 auto;
    margin-bottom: 16px;
}

.basket_desc {
  /* display: none; */
  margin-top: 10px;
}

.basket_card {
  display: flex;
  flex-direction: column;
  position: relative;
  margin-bottom: 16px;
}
.basket_card-title {
  font-size: 14px;
  font-weight: 600;
  color: #260F08;
  margin-bottom: 8px;
}
.basket_row {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.basket_quantity {
  color: #C73B0F;
  font-size: 14px;
  font-weight: 600;
  
}
.basket_price {
  color: #87635A;
  font-size: 14px;
}
.basket_total {
  color: #87635A;
  font-size: 14px;
  font-weight: 600;
}
.basket_close {
  
  position: absolute;
  right: 0;
  top: 12px;
 

  
}

.basket_close svg {
  border: 2px solid #87635A;
  border-radius: 50%;
  padding: 2px;
}

.separator{
  height: 1px;
 background-color:#F5EEEC;
 margin: 16px 0;
}

.basket_order {
  
  margin-bottom: 24px;
display: flex;
justify-content: space-between;
align-items: center;
}

.basket_title-name {
font-size: 14px;
}

.basket_order_total-price {
font-size: 24px;
font-weight: bold;
}

.carbon {
display: flex;
align-items: flex-end;
justify-content: center;
border-radius: 8px;
background-color: #FCF8F6;
padding: 16px 50px;
font-size: 14px;
margin-bottom: 24px;
}

.carbon_img {
width: 20px;
height: 20px;
object-fit: cover;
}

.carbon_desc span {
font-weight: 600;
}

.order_btn {
  position: relative;
  white-space: nowrap;
font-weight: 600;
color: #fff;
text-align: center;
padding: 16px 113px;
background-color: #C73B0F;
border-radius: 100px;
overflow: hidden;
}
.order_btn::after {
  content: ""; 
  position: absolute; 
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.25); 
  opacity: 0; 
  transition: opacity 0.3s;
}
.order_btn:hover::after{
  opacity: 1;
}

/* ---------------modal---------------------- */


.basket_modal {
  display: none;

  margin: 100px auto;
max-width: max-content;
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
z-index: 1;




}
.overlay{
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5); 
  ; 
}

.basket_modal-wrapper {
background-color: #fff;
padding: 43px;
border-radius: 12px;
width: 600px;
}

.basket_modal-img {
margin-bottom: 27px;


}
.basket_modal-img svg {
    filter: drop-shadow(0px 4px 4px rgba(0, 0, 0, 0.2));
}

.basket_modal-title {
font-size: 40px;
font-weight: bold;
margin-bottom: 8px;
}

.basket_modal-text {
color: #87635A;
margin-bottom: 32px;
}
.basket_modal-inner{
  background-color: #FCF8F6;
padding: 24px ;
}
.basket_wrapper-goods {


}
.basket_wrapper-card-item{
  display: flex;
  flex-direction: column;
  gap: 8px;
  

}
.basket_wrapper-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.basket_wrapper-card-inner{
  display: flex;
  padding: 24px 0;
  align-items: center;
}
.basket_wrapper-card-img{
  width: 48px;
  height: 48px;
  object-fit: cover;
  margin-right: 16px;
  border-radius: 4px;

}

.basket_wrapper-title {
font-size: 14px;
font-weight: 600;
}

.basket_wrapper-desc {
  display: flex;
  gap: 8px;

}

.basket_wrapper-quality {
color: #C73B0F;
font-size: 14px;
font-weight: 600;
}

.basket_wrapper-price {
color: #87635A;
font-size: 14px;

}

.basket_wrapper-total-price {
  font-weight: 600;

}

.basket_wrapper-order-title {
}

.basket_wrapper-order{
  padding: 24px 0;
display: flex;
justify-content: space-between;
}
.basket_wrapper-order-price{
font-size: 24px;
font-weight: bold;
}

.basket_wrapper-order-btn.order_btn{
width: 100%;
margin-top: 32px;
}

@media (max-width: 768px) {
.container {
  flex-direction: column;
}
.main_wrapper {
  padding: 0 40px;
}

.main .container{
  padding: 40px 0;
}
.basket_desc{
  text-align: center;
}
.order_btn{
  width: 100%;
}
}

@media (max-width: 600px){
  .card_add-wraper{
    max-width: 120px;
    padding: 11px;
  }
  .card_add-wraper img {
    width: 15px;
    height: 15px;
  }
  .card_add {
    font-size: 12px;
  }
  .card_img{
    height: 180px;
  }
  .card_img{
    font-size: 12px;
  }
  .card_desc-title{
    font-size: 14px;
  }

  .card_desc-price{
    font-size: 14px;
  }
}

@media (max-width: 500px){
  .main_cards-wrapper{
    grid-template-columns: repeat(2, 1fr);
  }
  .main_title {
    font-size: 32px;
  }
}
@media (max-width: 480px){
  .main_cards-wrapper{
    grid-template-columns: repeat(1, 1fr);
    justify-items: center;
}
.order_btn {
  margin: 0 auto;
  white-space: nowrap;
  padding: 16px 70px;
}
.basket_modal{

  max-width: max-content;
   position: fixed;
 right: 0;
 bottom: 0;
}
.basket_modal-wrapper{
  display: block;
  max-width: max-content;
  
  
  
  z-index: 1;

}
.basket_modal-img svg {
width: 20px;
height: 20px;

}
.basket_modal-img{
  margin-bottom: 15px;
}
.basket_modal-wrapper {
  padding: 20px;
}
.basket_modal-title {
font-size: 24px;
}
.basket_modal-img{
font-size: 18px;

}
.basket_wrapper-title{
  max-width: 100px;
}
}