@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@300;400;500;600;700&display=swap');



*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

#bg-video {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -100;
  background-attachment: fixed;
}

body {
  font-family: 'Rajdhani', sans-serif;
}

#overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  min-height: 100vh;
  background: rgba(10, 15, 13, 0.8);
  z-index: 1;
}

#logo {
  position: absolute;
  top: 20px;
  left: 20px;
  width: 200px;
  height: auto;
}

header {
  margin-top: 20px;
  margin-bottom: 20px;
}

.title {
  color: #F1FAEE;
  text-align: center;
  margin: 25px, 0, 0, 0;
  font-family: 'Orbitron', sans-serif;
  font-size: 2rem;
  text-shadow: 2px 2px 4px #000000;
  text-transform: uppercase;
}
.title-p {
  color: #F1FAEE;
  text-align: center;
  margin: 10px 0;
  font-family: 'Orbitron', sans-serif;
  font-size: 1rem;
  text-shadow: 2px 2px 4px #000000;
  text-transform: uppercase;
}
.product-image {
  width: 100%;
  max-width: 250px;
  height: auto;
  aspect-ratio: 1/1;
  object-fit: cover;
  margin-bottom: 10px;
}

#item-card-container {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  width: 100%;
  padding: 10px;
  box-sizing: border-box;
}

.item-card {
  background-color: #203d7c;
  color: #F1FAEE;
  padding: 15px;
  text-align: center;
  border-radius: 15px;
  margin: 10px auto;
  width: 90vw;
  max-width: 350px;
}
.item-card:hover {
  transform: scale(1.05);
  background-color: #34A0A4;
  transition: all 0.5s ease-in-out;
  z-index: 1;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}
  

.dessert-price {
  font-size: 1.2rem;
}

.btn {
  display: block;
  cursor: pointer;
  width: 100px;
  color: #34A0A4;
  background-color: #F1FAEE;
  background-image: #a8d2e2;
  border-radius: 15px;
  border-color: #05DFD7;
  border-width: 3px;
  font-family: 'Exo 2', sans-serif;
}

.btn:hover {
  scale: 1.05;
  transition: all 0.3s ease-in-out;
}

#cart-btn {
  position: fixed;
  top: auto;
  right: 5vw;
  bottom: 20px;
  background-color: #F1FAEE;
  color: #34A0A4;
  width: 90vw;
  max-width: 250px;
  min-width: 120px;
  height: 50px;
  border: 8px solid #34A0A4;
  border-radius: 15px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  z-index: 100;
}
#cart-btn:hover {
  transform: scale(1.05);
  transition: all 0.3s ease-in-out;
}

.add-to-cart-btn {
  margin: 30px auto 10px;
}

/* Modal overlay for cart */
#cart-modal-overlay {
  display: none; /* Show with JS when cart is open */
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw;
  height: 100vh;
  min-width: 100vw;
  min-height: 100vh;
  background: rgba(10, 15, 13, 0.7);
  z-index: 99;
}

#clear-cart-btn {
 display: flex;
  justify-content: center;
  align-items: center;
  margin: 20px auto;
  width: 90vw;
  max-width: 250px;
  min-width: 120px;
  height: 50px;
  background-color: #F1FAEE;
  color: #34A0A4;
  border-radius: 15px;
  border: 8px solid #34A0A4;
  font-size: 1rem;
  cursor: pointer;
 align-self: center;
}
#clear-cart-btn:hover {
  transform: scale(0.9);
  transition: all 0.3s ease-in-out;
}
#checkout-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 20px auto;
  width: 90vw;
  max-width: 250px;
  min-width: 120px;
  height: 50px;
  background-color: #F1FAEE;
  color: #34A0A4;
  border-radius: 15px;
  border: 8px solid #34A0A4;
  font-size: 1rem;
  cursor: pointer;
 align-self: center;
}
#checkout-btn:hover {
  transform: scale(0.9);
  transition: all 0.3s ease-in-out;
}

/* Modal cart container */
#cart-container {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #F1FAEE;
  color: #34A0A4;
  width: 95vw;
  max-width: 600px;
  min-width: 260px;
  height: 80vh;
  max-height: 90vh;
  padding: 20px 10px;
  box-sizing: border-box;
  overflow-y: auto;
  z-index: 100;
  box-shadow: 0 0 40px rgba(0,0,0,0.5);
}

.product {
  margin: 25px 0;
}

.product-count {
  display: inline-block;
  margin-right: 10px;
}

.product-category {
  margin: 10px 0;
}

@media (min-width: 768px) {
  #item-card-container {
    flex-direction: row;
    justify-content: center;
    gap: 30px;
  }
  .item-card {
    width: 45vw;
    max-width: 300px;
    margin: 15px;
  }
  .title {
    font-size: 2.5rem;
  }
  #cart-container {
    max-width: 70vw;
    padding: 30px 20px;
  }
}

@media (min-width: 1024px) {
  #item-card-container {
    gap: 40px;
  }
  .item-card {
    width: 22vw;
    max-width: 270px;
  }
  .title {
    font-size: 3rem;
  }
  #cart-container {
    max-width: 500px;
    padding: 40px 30px;
  }
}

@media (max-width: 600px) {
  #logo {
    position: static;
    display: block;
    margin: 20px auto 10px auto;
    width: 120px;
    z-index: 200;
  }
  #overlay {
    position: static;
    padding-top: 0;
  }
  header {
    margin-top: 0;
  }
}

/* Hide empty image in item-card-container if present */
#item-card-container img[alt=""] {
  display: none;
}