@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600;700&display=swap');

* {
  outline: none;
  font-family: "Poppins", sans-serif;
  font-style: normal;
  letter-spacing: 0.05vw;
  box-sizing: border-box;
  text-decoration: none;
  
}

html {
  height: 100%;
  margin: 0;
  padding: 0;
  background-size: cover;
}



body {
    background-size: cover;
    padding-top: 2vw; 
    
}






.winecard-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5vw;
  width: 70vw;
  float: right;
  margin-bottom: 1vw;
}

@media (max-width: 768px) {
  .winecard-container {
    padding: 0vw;
    width: 100%;
  }
}

.winecard-image {
  width: 21vw;
  height: 35.5vw;
  border-radius: 1vw;
  justify-content: center;
  align-items: center;
  display: flex;
  position: relative;
}

.winecard-image img {
  height: 35vw;
  object-fit: cover;
  transform: scale(1);
  margin: 0 auto;
  z-index: 2;
  transition: transform 0.25s ease;
}

@media (max-width: 768px) {
  .winecard-image {
    width: 35vw;
    height: 55.5vw;
    border-radius: 1vw;
    justify-content: center;
    align-items: center;
    display: flex;
    margin: 0 auto;
  }

  .winecard-image img {
    height: 35vw;
    object-fit: cover;
    transform: scale(1);
    margin: 0 auto;
    transition: transform 0.25s ease;
    position: absolute;
    z-index: 10;
    margin-left: 55vw;
    margin-top: 85vw;
  }
}

.winecard-image img:hover {
  transform: scale(1.015);
}

.prev-wine, .next-wine {
  color: #000000;
  font-size: 2.5vw;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  padding: 0.5vw;
  cursor: pointer;
  z-index: 3;
  transition: color 0.1s ease, transform 0.1s ease;
  transform: scale(1);
  font-weight: 700;
}

.prev-wine:hover, .next-wine:hover {
  color: #a84747;
  transform: scale(1.1);
}

.prev-wine {
  left: 1vw;
  top: 24vw;
}

.next-wine {
  right: 1vw;
  top: 24vw;
}

@media (max-width: 768px) {
  .prev-wine {
    display: none;
  }
  
  .next-wine {
    display: none;
  }
}


.winecard-image-background {
  border-radius: 1vw;
  justify-content: center;
  align-items: center;
  display: flex;
  position: absolute;
  margin-top: 3vw;
  margin-left: -15vw;
  z-index: -1;
  opacity: 0.35;
}

.winecard-image-background img {
  width: 80vw;
  object-fit: cover;
  transform: scale(1) rotate(0deg);
  margin: 0 auto;
  transition: transform 0.75s ease;
}

@media (max-width: 768px) {
  .winecard-image-background {
    border-radius: 0vw;
    margin-top: 3vw;
    margin-left: 0vw;
    opacity: 0.35;
  }
  .winecard-image-background img {
    width: 100%;
    height: 310vw;
  }
}

















.winecard-details {
  width: 27vw;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background-color: #ffffff;
  box-shadow: 0vw 0vw 1vw 0vw rgba(0, 0, 0, 0.25);
  border-radius: 2vw;
  padding: 2vw;
  position: relative;
  z-index: 1;
}

@media (max-width: 768px) {
  .winecard-details {
    width: 95%;
    border-radius: 5vw;
    padding: 2vw;
    position: absolute;
    left: 50%;
    margin-top: 200vw;
    transform: translate(-50%, -50%);
  }
}

.winecard-title-container {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 0 auto;
}

.winecard-title {
  font-size: 2.5vw;
  margin-top: -0.5vw;
  margin-bottom: 0.75vw;
}


.winecard-title-container p {
  font-size: 1.5vw;
  margin-left: 1vw;
  margin-top: 0;
  margin-bottom: 1vw;
}


@media (max-width: 768px) {
  .winecard-title {
    font-size: 9vw;
    margin-top: -0.5vw;
    margin-bottom: 0.75vw;
  }
}


.winecard-description {
  font-size: 1.15vw;
  margin-top: -0.35vw;
  margin-bottom: 0.75vw;
  padding-bottom: 0.75vw;
  border-bottom: 0.15vw solid black;
  text-align: center;
}

@media (max-width: 768px) {
  .winecard-description {
    font-size: 5vw;
    margin-bottom: 1vw;
    padding-bottom: 3vw;
    line-height: 4.5vw;
  }
}

.winecard-info {
  font-size: 1.2vw;
  color: #333;
  line-height: 1.6;
  margin-left: 0.5vw;
}

.winecard-info p {
  margin: -0.15vw 0;
  display: flex;
  align-items: center;
}

.winecard-info i {
  margin-right: 0.5vw;
  color: rgb(69, 69, 69);
}

.winecard-info strong {
  color: rgb(0, 0, 0);
  font-weight: 600;
}

@media (max-width: 768px) {
  .winecard-info {
    font-size: 3.5vw;
    margin-left: 1.5vw;
  }
  
  .winecard-info i {
    margin-right: 0.75vw;
  }
}


#price-per-unit {
  height: 1vw;
}

.total-price p {
  font-size: 1.15vw;
  border-top: 0.15vw solid black;
  text-align: center;
  width: 100%;
  padding-top: 0.5vw;
}

@media (max-width: 768px) {
  .total-price p {
    font-size: 5vw;
    padding-top: 1vw;
  }
}


.winecard-quantity {
  font-size: 1.5vw;
  margin: 0 auto;
  text-align: center;
  width: 100%;
  margin-top: 1.5vw;
  margin-bottom: -0.5vw;
  border: none;
}

.winecard-quantity input {
  font-size: 1.5vw;
  padding: 0.5vw;
  text-align: center;
  width: 100%;
  border: none;
  background-color: #eeeeee;
  border-radius: 0.5vw;
}


@media (max-width: 768px) {
  .winecard-quantity {
    margin-top: 8vw;
  }
  
  .winecard-quantity input {
    font-size: 5vw;
    padding: 1.35vw;
    border-radius: 1.25vw;
  }
}


.winecard-buy-button {
  background-color: #922f2f;
  padding: 0.7vw;
  align-items: center;
  margin-top: -1.05vw;
  border-radius: 0.5vw;
  margin-left: 0.15vw;
  cursor: pointer;
  color: white;
  transition: background-color 0.3s ease, color 0.3s ease;
  border: none;
  margin-top: 1vw;
  font-size: 1.15vw;
  text-align: center;
}

.winecard-buy-button:hover {
  background-color: rgba(129, 36, 36, 0.256);
  border: none;
  color: rgb(61, 12, 12);
}

.winecard-info-button {
  padding: 0.7vw;
  align-items: center;
  text-align: center;
  margin-top: -1.05vw;
  border-radius: 0.5vw;
  margin-left: 0.15vw;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
  border: none;
  margin-top: 0.2vw;
  font-size: 1.15vw;

  background-color: rgba(129, 36, 36, 0.256);
  border: none;
  color: rgb(61, 12, 12);
}

.winecard-info-button:hover {
  background-color: rgba(129, 36, 36, 0.2);
  color: rgba(61, 12, 12, 0.85);
}

@media (max-width: 768px) {
  .winecard-buy-button {
    font-size: 5vw;
    padding: 1.35vw;
    border-radius: 1.25vw;
    margin-top: 1.35vw;
  }
  
  .winecard-info-button {
    font-size: 5vw;
    padding: 1.35vw;
    border-radius: 1.25vw;
    margin-top: 1vw;
  }
}