@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@500&display=swap');
@import url('https://fonts.googleapis.com/css2?family=PT+Mono&display=swap');
body{
  font-family: 'Nunito', sans-serif;
    background-color: #FFF8E9;
}
/* Adjust the checkbox appearance to make it invisible */
.wine-checkbox{
    font-weight: bold;
}
input[type="checkbox"] {
    display: none;
  }
  
  /* Style the container and label */
  .wine-checkbox {
    display: inline-block;
    margin: 10px;
    cursor: pointer;
  }
  
  .wine-checkbox label {
    display: inline-block;
    padding-left: 30px;
    position: relative;
    font-size: 12px;
    line-height: 24px;
    color: #333;
  }
  
  /* Custom checkbox styles */
  .wine-checkbox label::before {
    content: "";
    display: inline-block;
    width: 15px;
    height: 15px;
    border: 1px solid black; /* Black border */
    margin-right: 8px; /* Add margin for white space */
    position: absolute;
    left: 0;
    top: 2px;
  }
  
  /* Add the red fill in the center when the checkbox is checked */
  .wine-checkbox input[type="checkbox"]:checked + label::before {
    background-color: #BF0D12;
  box-sizing: border-box;
  content: "";
  position: absolute;
  }
  
  /* Make the checkbox look like a square */
  .wine-checkbox label::before {
  box-sizing: border-box;
  transform: rotate(45deg);
  }
  
  /* Rotate the checkbox back to a square when checked */
  .wine-checkbox input[type="checkbox"]:checked + label::before {
    transform: none;
  }

  /*mine  */
  #main{
    display: flex;
    justify-content: space-around;
  }
  #first{
    width: 260px;
    padding: 40px;
    border: 1px solid gray;
    margin-left: 20px;
    padding-top: 10px;
  }
  #wineType{
    display: flex;
    flex-direction: column;
  }
  #price{
    display: flex;
    justify-content: space-between;
    font-size: 18px;
    margin-top: 15px;
    margin-bottom: 15px;
  }
  #plus{
   
    font-size: 25px;
  }
  .cat{
    display: flex;
    justify-content: space-between;
    font-size: 18px;
    /* background-color: green; */
  }
  .minus{
    /* margin-left: 180px; */
    font-size: 25px;
  }
  #min{
    margin-left: 170px;
    font-size: 25px;
  }





#wines{
  display: grid;
  grid-template-columns: repeat(3,1fr);
  margin-left: 30px;
  margin-right: 30px;
  margin-top: 60px;
}
#wines>div{
  width: 270px;
  border: 1px solid gray;
  padding: 20px;
}
.top>img{
  width: 100%;
}
.belowName>img{
     width: 20px;  
}
.wineimg{
  text-align: center;
  margin-top: 10px;
}
.wineimg>img{
  width: 20%;
  height: 200px;
}
.priceDiv{
  display: flex;
  height: 80px;
 justify-content: space-between;
}
.cart{
  height: 40px;
  margin-top: 30px;
  width: 40px;
  background-color: #BF0D12;
  color: white;
  border: 0px;
  font-size: 25px;
  cursor: pointer;
  border-radius: 5px;
}
.cart:hover {
  background-color: rgb(255, 0, 0);
}

.priceDiv>h3{
  margin-top: 35px;
}

.top{
  display: flex;
  justify-content: space-between;
  font-size: 20px;
}
.heart{
  cursor: pointer;
}

.belowName{
  display: flex;
  justify-content: space-between;
  color: gray;
}

#pagination{
  text-align: center;
  margin-top: 40px;
  margin-bottom: 40px;
}
#pagination>button{
  margin: 10px;
  padding: 10px;
  border-radius: 7px;
  background-color: #BF0D12;
color: white;
border: 0px;
cursor: pointer;
border: 1px solid #BF0D12;
width: 50px;
}

 


/* Your existing styles can go here */

/* Cart popup styles */
.cart-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  display: none;
}

.cart-popup.active {
  display: block;
}

.cart-popup h2 {
  margin-top: 0;
}

.cart-popup button {
  background-color: #BF0D12;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 4px;
  cursor: pointer;
}


#star{
  display: flex;
  flex-direction: column;
}
#cata{
  font-size: 45px;
  margin-left: 30px;
  font-family: 'PT Mono', monospace;
}
#sort{
  display: flex;
  margin-right: 50px;
  justify-content: end;
}
#sort>label{
  color: gray;
}
#sorting{
  margin-left: 10px;
  border: #FFF8E9;
  background-color: #FFF8E9;
}

#country{
  display: flex;
  flex-direction: column;
  font-size: 25px;
}
#toggleFilters{
  display: none;
  background-color: #BF0D12;
  border: 2px solid #BF0D12;  
  cursor: pointer;
  color: white;
  margin:10px;
margin-left: 20px;
}

@media(max-width: 1300px){
  #wines {
    grid-template-columns: repeat(2, 1fr);
    margin: 30px;
  }
} 
@media (max-width: 1000px){
#toggleFilters{
  display: block;
  position: relative;
  padding: 10px;
 bottom: 30px;
 border-radius: 8px;
 right: 250px;
}
.filter-panel #first {
  display: none;
}
#sort{
  margin-right: 150px;
}

.filter-panel.active #first {
  display: block;
}


#main {
  flex-direction: column;
  align-items: center;
}
}

@media (max-width: 768px) {
  



  /* #first {
    width: auto;
    margin: 20px;
    padding: 20px;
  }

  #wines {
    grid-template-columns: repeat(2, 1fr);
    margin: 30px;
  }

  .wine-checkbox label {
    padding-left: 20px;
  }

  .priceDiv {
    flex-direction: column;
    align-items: center;
    height: auto;
    margin-top: 20px;
  }

  .cart {
    margin-top: 20px;
  }

  .top {
    flex-direction: column;
    align-items: center;
  }

  .belowName {
    flex-direction: column;
    align-items: center;
  }

  #pagination {
    margin-top: 20px;
    margin-bottom: 20px;
  }

  #pagination > button {
    margin: 5px;
    width: 40px;
    padding: 5px 10px;
  }

  #cata {
    font-size: 30px;
    margin: 20px;
  }

  #country {
    font-size: 20px;
  } */


  #toggleFilters{
    display: block;
    position: relative;
    padding: 10px;
   bottom: 30px;
   border-radius: 8px;
   right: 30px;
  }
  #sort{
    position: relative;
    top: 60px;
    right: 80px;
  }
  .filter-panel #first {
    display: none;
  }
  
  /* Show the filter panel when it's expanded */
  .filter-panel.active #first {
    display: block;
  }

  
}


@media (max-width: 639px){
  #wines {
    grid-template-columns: repeat(1, 1fr);
    margin: 30px;
  }
  #sort{
    position: relative;
    top: 60px;
    right: 80px;
  }
}

@media (max-width: 480px){
  #sort{
        left: 40px;
  }
}

