@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&family=Lato:wght@400;700&display=swap');
body {
  font-family: 'Open Sans', sans-serif;

    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

header {
  padding: 20px;
  text-align: center ;
}

.bg-img {
  background-image: url("https://png.pngtree.com/thumb_back/fw800/background/20240727/pngtree-big-online-shopping-cart-with-people-in-the-background-blury-face-image_16115904.jpg");
  min-height: 100px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
}

.bg-img::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.navbar {
  background-color: transparent !important;
  z-index: 2;
}

.navbar-nav {
  text-align: center;
}

.navbar-nav .nav-link {
  color: azure;
  margin: 0 15px;
  text-decoration: none;
  z-index: 2;
}

.navbar-nav .nav-link:hover {
  text-decoration: underline;
}

.navbar-toggler {
  z-index: 2;
}
.content {
  color: white; 
  position: relative;
  z-index: 2;
  text-align: center;
  margin-top: 20px;
}

header h1 {
  color: white;
  z-index: 2;
}



main {
    padding: 20px;
}
.btn-grow-shadow {
  padding: 10px 20px;
  font-size: 16px;
  border: none;
  
  color: white;
  border-radius: 5px;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.btn-grow-shadow:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  transform: translateY(-5px);
}

.product-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: space-between;
    padding-bottom: 20px;
    animation: fadeIn 1s ease forwards;
}

.product {
    flex: 1 1 calc(30%);    
    background-color:rgb(37, 0, 51);
    border: none;
    border-radius: 8px;
    padding: 10px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
}

.product h3{
    color: rgb(235, 175, 107);
    text-shadow: -1px 0 rgb(0, 0, 0), 0 1px black, 1px 0 black, 0 -1px black;
}


.product img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

button {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 5px;
    font-size: 14px;
    font-weight: bold;
}


footer {
    font-size: 17px;
    
    margin-top: 10px;
    background-color:rgb(37, 0, 51);
    color:white;
    text-align: center;
    padding: 10px 0;
    margin-top: auto;
}


main section {
    
    padding: 20px;
    border-radius: 8px;
}
.contact,.register {
    max-width: 500px;
    display:flex;
    flex-direction: column;
    font-size: 20px;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}
blockquote{
    color: rgb(49, 129, 82);
}

footer p {
    margin-bottom: 10px;
    font-size: 0.9em;
}
.home img {
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 50%;
}
.home{
    font-size: 25px;
    text-align: center;
}
.register label{
    font-family:'Courier New', Courier, monospace; 
}

blockquote{
    color: rgb(5, 95, 231);
}
#carouselExampleFade {
    max-width: 600px; 
    max-height: 400px; 
    margin: auto; 
}
  
.carousel-inner img {
    object-fit: contain; 
    max-height: 400px;
    width: 100%;
 }

.our-description1{
    background-color: teal;
    color: white;
    
    border-radius: 25px;
}
.our-description1 img{
    border-radius: 70px;
    height: 300px
}
.card-body{
    background-color:rgb(37, 0, 51);
    color:white;
    border-radius: 15px;
    overflow: hidden;
}
.card {
    border-radius: 15px;
}
.card-img-top {
    border-radius: 15px;
    height: auto;
    width: 100%;
}

.product-price {
    color: white;
    font-size: 18px;
}

.total-cost {
    color: white;
    font-size: 22px;
    width: 100%;
    padding-left: 20px;
}
.product-container-cart{
    background-color: rgb(37, 0, 51);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    max-width: 100%;
    box-sizing: border-box;
    color: white;
    font-size: 22px;
    width: 100%;
    padding-left: 20px;
}
.drinks, .snacks, .goods, .care{
    display: flex;
    flex-direction: row;
    width: 100%;
    justify-content: space-between;
}
.snacks-name{
    margin: auto;
}
.drinks-name{
    text-align: center;
}
.goods-name{
    margin: auto;
}
.care-name{
    margin: auto;
}
#demo{
    font-size: 20px;
    color: white;
    text-shadow: 2px 2px black;
  
  }
  .winter-sales{
    position: relative;
    text-align: center;
    color: black;
    font-weight: bold;
  }
  .winter-sales img{
    height: 500px;
    width: 400px;
  }
  .centered {
    position: absolute;
    top: 70%;
    left: 50%;
    transform: translate(-50%, -50%);
  }
  .question {
    cursor: pointer;
    padding: 10px;
    background-color: gray;
  }
  .answer {
    display: none;
    padding: 10px;
    transition: all 0.3s ease-in-out;
  }
  
  .answer.show {
    display: block;
  }
  #purpose img{
    width: 80%;
    height: 300px;
    margin: 3%;
  }
  #purpose{
    padding-bottom: 50px;
  }
 
  .subscribe-btn {
    padding: 10px 20px;
    font-size: 16px;
    background-color: #007bff;
    color: white;
    border: none;
    cursor: pointer;
  }
  
  .overlay {
    display: none;
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 999;
  }
  

  .popup {
    display: none;
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    padding: 20px;
    background-color: #fff;
    width: 300px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
    z-index: 1000;
  }

  .popup h2 {
    margin-top: 0;
  }


  .closeBtn {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #ff4d4d;
    border: none;
    color: white;
    padding: 5px 8px;
    cursor: pointer;
  }


  .popup input[type="text"], 
  .popup input[type="email"] {
    width: 100%;
    padding: 8px;
    margin: 10px 0;
    border: 1px solid #ccc;
  }


  .popup input[type="submit"] {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    width: 100%;
  }


  @media only screen and (max-width: 600px) {
    .popup {
      width: 90%;
    }
    .home img {
      width: 90%;
      height: 90%;
    }
  }
  #register {
    display: flex;
    flex-direction: column;
    width: 30%;
    margin: auto;
    text-align: center;
  }
  #greeting-message{
    color: white;
    font-size: 25px;
    

  }
  @keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

#word-container {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.cell {
  width: 50px;
  height: 50px;
  margin: 5px;
  border: 2px solid #000;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#letters {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.letter {
  width: 50px;
  height: 50px;
  margin: 5px;
  background-color: #f0f0f0;
  border: 1px solid #000;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: grab;
}

.column-layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin: auto;
}
body.body-dark-mode {
  background-color: #333;
  color: #f0f0f0;
}

body.body-light-mode {
  background-color: rgb(255, 240, 216);
  color: #333;
}

.theme-switcher {
  position: relative;
  width: 60px;
  height: 30px;
  background-color: #ccc;
  border-radius: 15px;
  border: none;
  cursor: pointer;
  outline: none;
  bottom: 15px;
  left: 20px;

}

.switch-icon {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 24px;
  height: 24px;
  background-color: #fff;
  border-radius: 50%;
  transition: transform 0.3s ease;
}

body.body-dark-mode .switch-icon {
  transform: translateX(30px);
  background-color: #333;
}
.faq-item{
  background-color: orange;
}

#register, #login {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 400px;
  margin: auto;
  text-align: center;
  padding: 20px;
}
#register input[type="text"],
#register input[type="password"],
#register input[type="email"],
#login input[type="text"],
#login input[type="email"],
#login input[type="password"] {
    width: 100%;
    max-width: 300px;
    margin-bottom: 10px;
    padding: 8px;
    box-sizing: border-box;
}
#register {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 400px;
  margin: auto;
  padding: 20px;
  box-sizing: border-box;
}

.form-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 300px;
  margin-bottom: 15px;
}

label {
  font-size: 16px;
  margin-bottom: 5px;
  text-align: center;
  width: 100%;
}

input[type="text"],
input[type="password"] {
  width: 100%;
  padding: 8px;
  box-sizing: border-box;
  text-align: center;
}

button {
  margin-top: 20px;
  padding: 10px 20px;
}

  .btn-underline {
    position: relative;
    padding: 10px 20px;
    font-size: 16px;
    border: none;
    background-color: transparent;
    color: #007bff;
    border-bottom: 2px solid transparent;
    transition: color 0.3s ease;
  }

  .btn-underline:hover {
    color: #0056b3;
  }

  .btn-underline:hover::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #007bff;
    animation: slide-underline 0.3s ease-in-out;
  }

  @keyframes slide-underline {
    0% {
      width: 0;
    }
    100% {
      width: 100%;
    }
  }
.filter-container{
  text-align: center;
  font-size: 20px;
}
.filter-container label {
  font-size: 20px;
}
/* new styles */
.product-wrapper{
  display: flex;
  flex-direction: column;
  gap: 50px;
}
.drinks-wrapper .items{
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-bottom: 50px;
}

@media(max-width:610px){
  .drinks-wrapper .items{
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
    row-gap: 50px;
  }
}
.snacks-wrapper .items{
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-bottom: 50px;
}

@media(max-width:610px){
  .snacks-wrapper .items{
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
    row-gap: 50px;
  }
}
.goods-wrapper .items{
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-bottom: 50px;
}

@media(max-width:610px){
  .goods-wrapper .items{
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
    row-gap: 50px;
  }
}
.care-wrapper .items{
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-bottom: 50px;
}

@media(max-width:610px){
  .care-wrapper .items{
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
    row-gap: 50px;
  }
}

.name{
  text-align: center;
  font-size: 25px;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: bold;
  margin-bottom: 10px;
}
#category {
  background-color: rgb(37, 0, 51);
  color: white;
}
#category option:checked {
  background-color: darkpurple;
  color: white;
}
#price {
  background-color: rgb(37, 0, 51);
  color: white;
}

#price option:checked {
  background-color: darkpurple;
  color: white;
}
.nav-links-container {
  display: flex;
  gap: 10px; 
  justify-content: center; 
}

.product-nav-container,
.login-container,
.cart-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  background-color: rgb(37, 0, 51);
  padding: 3px;
  border-radius: 8px;
  width: 50px;
}

.product-nav-icon,
.login-icon,
.cart-icon {
  width: 30px;
  height: 30px;
}

.product-nav-text,
.login-text,
.cart-text {
  color: white;
  font-size: 14px;
}

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
  background-color: rgb(37, 0, 51);
  margin: 10% auto;
  padding: 20px;
  border: 1px solid rgb(37, 0, 51);
  width: 300px;
  border-radius: 8px;
  color:white;
}

.close {
  color: red;
  float: right;
  font-size: 24px;
  font-weight: bold;
  max-width: 20px;
  max-height: 30px;
}

.close:hover,
.close:focus {
  color: red;
  text-decoration: none;
  cursor: pointer;
}

.modal-content h3 {
  margin-top: 0;
}

.modal-content label {
  display: block;
  margin-top: 10px;
}

.modal-content input {
  width: 100%;
  padding: 8px;
  margin-top: 5px;
  box-sizing: border-box;
}

.modal-content button {
  margin-top: 15px;
  width: 100%;
  padding: 10px;
  background-color: #28a745;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.modal-content button:hover {
  background-color: #218838;
}
.testimonials {
  
  padding: 50px 0;
}

.testimonials h2 {
  text-align: center;
  font-size: 36px;
  margin-bottom: 20px;
}

.testimonial-slider {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.testimonial {
  background-color: white;
  border: 1px solid #ddd;
  padding: 20px;
  width: 250px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.testimonial p {
  font-style: italic !important; 
  font-size: 20px;

}

.customer-name {
  text-align: right;
  font-weight: bold;
}

.body-dark-mode .testimonial {
  background-color: #333; 
 
}