/* Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Inter", sans-serif;
}

body {
  min-height: 100vh;
  margin: 0;
  color: #ffffff;
  /* Professional Premium Background */
  background: linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.75)),
    url("./assets/bg\ 2.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  font-family: "Inter", sans-serif;
  overflow-x: hidden;
}

main {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Glassmorphism Card */
/* Glassmorphism Card */
.container {
  margin-top: 20px;
  width: 90%;
  padding: 35px 30px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0px 0px 45px rgba(0, 0, 0, 0.45);
  animation: fadeIn 0.6s ease;
}

/* Header Title */
.title {
  text-align: center;
  margin-bottom: 25px;
  font-size: 23px;
  font-weight: 700;
  background: linear-gradient(135deg, #9ae8ff, #c29bff);
  -webkit-background-clip: text;
  background-clip: text; /* Standard property for compatibility */
  -webkit-text-fill-color: transparent;
}

/* Section */
.section {
  margin-bottom: 30px;
}

.section h3 {
  margin-bottom: 12px;
  font-size: 18px;
  font-weight: 600;
}

#product-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 15px;
}

/* Item Row */
.item {
  background: rgba(255, 255, 255, 0.12);
  padding: 14px 16px;
  border-radius: 12px;
  width: 24%;
  align-items: center;
  margin-bottom: 12px;
  transition: 0.3s;
  border: 1px solid rgba(255, 255, 255, 0.15);
  position: relative;
}

.item:hover {
  background: rgba(255, 255, 255, 0.18);
}
#product-list .img-cont {
  width: 100%;
  min-height: 40%;
  max-height: 60%;
  overflow: hidden;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 10px;
}

#product-list img {
  width: 100%;
  height: 100%;
}

.item h4 {
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 10px;
  font-family: "Montserrat", sans-serif;
}

.item p {
  font-family: "Inter", sans-serif;
  font-size: 16px;
  opacity: 0.8;
  margin-bottom: 15px;
}

#product-list .pro-cont {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.item strong {
  font-size: 16px;
  opacity: 0.7;
}

/* Buttons */
.item button {
  background: linear-gradient(135deg, #8a6cff, #d26bff);
  border: none;
  padding: 8px 14px;
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  transition: 0.25s;
  font-size: 14px;
  font-weight: 500;
}

.item button:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0px 0px 12px rgba(210, 107, 255, 0.6);
}
.hidden {
  display: none;
}

.added {
  position: fixed;
  background: #0a9c0e;
  color: white;
  padding: 12px 20px;
  border-radius: 6px;
  font-size: 14px;
  letter-spacing: 1px;
  font-style: italic;
  box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.3);
  animation: slideIn 0.3s ease;
  transition: opacity 0.5s ease;
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

footer {
  background: linear-gradient(rgb(13, 0, 69), rgb(58, 0, 138));
  color: #ffffff;
  padding: 15px;
  position: fixed;
  bottom: 0;
  width: 100%;
  opacity: 0.8;
  display: flex;
  justify-content: space-around;
  align-items: center;
}
footer .fas {
  font-size: 20px;
  cursor: pointer;
  transition: 0.3s;
}
footer .fas:hover {
  color: #d26bff;
  transform: scale(1.2);
}

.cart-icon-wrapper {
  position: relative;
  display: inline-block;
}

.cart-icon-wrapper .fas {
  font-size: 20px;
  cursor: pointer;
  transition: 0.3s;
}

.cart-icon-wrapper .fas:hover {
  color: #d26bff;
  transform: scale(1.2);
}

.badge {
  position: absolute;
  top: -8px;
  right: -10px;
  background: #ff3b3b;
  color: white;
  padding: 2px 6px;
  border-radius: 50%;
  font-size: 11px;
  font-weight: bold;
  min-width: 18px;
  text-align: center;
  display: none;
}
/* Small Entrance Animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* RESPONSIVE DESIGN */
@media (max-width: 768px) {
  .container {
    width: 95%;
    padding: 25px 10px;
  }

  .title {
    font-size: 20px;
    margin-bottom: 20px;
  }

  #product-list {
    gap: 15px 10px;
    justify-content: center;
  }

  .item {
    padding: 12px;
    width: 32%;
  }

  .item h4 {
    font-size: 15px;
  }

  .item p {
    font-size: 14px;
  }

  .item button {
    padding: 6px 12px;
    font-size: 12px;
  }

  .checkout-area button {
    padding: 6px 12px;
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  body {
    padding: 8px;
    height: auto;
  }

  main {
    align-items: flex-start;
  }

  .container {
    width: 100%;
    margin-top: 20px;
    padding: 20px 2px;
  }

  .title {
    font-size: 18px;
  }

  .section {
    margin-bottom: 20px;
  }

  .section h3 {
    font-size: 16px;
    margin-left: 5px;
    margin-bottom: 10px;
  }

  #product-list {
    gap: 12px 8px;
  }

  .item {
    align-items: flex-start;
    width: 48%;
    min-height: 270px;
    max-height: 300px;
    font-size: 14px;
    padding: 5px;
  }

  #product-list .img-cont {
    height: 18%;
  }

  .item h4 {
    font-size: 12px;
    margin-bottom: 8px;
  }

  .item p {
    font-size: 10px;
    margin-bottom: 10px;
  }

  .item strong {
    font-size: 12px;
  }

  .item button {
    align-self: flex-end;
    padding: 5px 5px;
    font-size: 11px;
  }

  .checkout-area {
    flex-direction: column;
    gap: 5px;
    align-items: flex-end;
  }

  .total {
    font-size: 14px;
  }
}
