@import url("https://fonts.googleapis.com/css?family=Roboto:300");
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0rem 5rem;
  width: 100%;
}

.navlist {
  display: flex;
  align-items: center;
  gap: 3rem;
  font-family: "Poppins", sans-serif;
}

.navlist>a {
  text-decoration: none;
  color: black;
  font-weight: 500;
}

.logo {
  width: 10vw;
  height: 5vh;
}

.logo>img {
  width: 100%;
  height: 100%;
}

.navicons {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  font-size: 1.5rem;
}

.hero {
  margin-top: 40px;
  height: 18rem;
  width: 100%;
  background: url("/images/Group\ 78.png") center/cover;
  
}
.cart {
  height: 32rem;
  width: 100%;
  padding: 4rem 6rem;
  display: flex;
  justify-content: center;
  gap: 2rem;
  font-family: "poppins", sans-serif;
  font-size: 0.7rem;
}

.cartContainer {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  width: 70%;
}

.cartHeader {
  display: flex;
  align-items: center;
  justify-content: space-around;
  background: rgba(249, 241, 231, 1);
  padding: .5rem 1rem;
  padding-right: 2.5rem;
  font-size: 0.6rem;
}

.cartItems .item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-right: 1rem;
}

.cartItems .item i {
  font-size: 2rem;
  color: rgb(255, 193, 117);
  cursor: pointer;
}

.cartItems .item>input {
  width: 1.8rem;
}

.item img {
  background: rgba(249, 241, 231, 1);
  width: 5rem;
  height: 5rem;
}

.item h2:nth-child(2),
.item h2:nth-child(3) {
  font-weight: 300;
}

.cartTotal {
  background-color: rgba(249, 241, 231, 1);
  padding: 50px 20px;
  width: 300px;
  font-family: Arial, sans-serif;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.cartTotal h1 {
  font-size: 24px;
  margin-bottom: 20px;
}

.cartTotal h2 {
  font-size: 18px;
  margin: 5px 0;
}

.cartTotal>div div {
  display: flex;
  justify-content: space-between;
  margin: 10px 0;
}

.cartTotal .checkout {
  background-color: transparent;
  border: 1px solid #000;
  border-radius: 15px;
  padding: 10px 20px;
  font-size: 18px;
  cursor: pointer;
  margin-top: 20px;
}

.cartTotal div:nth-child(2) h2:last-child,
.cartTotal div:nth-child(3) h2:last-child {
  color: #d4af37;
}

footer {
  height: 17rem;
  background: rgba(249, 241, 231, 1);
  display: flex;
  gap: 4rem;
  justify-content: center;
  align-items: center;
  font-family: "poppins", sans-serif;
}

.footerText img {
  width: 3rem;
  height: 3rem;
}

.footerText {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.loader {
  display: none;
  transform: translate(-50%, -50%);
  border: 16px solid #f3f3f3;
  border-top: 16px solid #3498db;
  border-radius: 50%;
  width: 80px;
  height: 80px;
  animation: spin 2s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* Modal */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
}

.modal-content {
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  text-align: center;
}

.confirm-btn,
.cancel-btn {
  padding: 10px 20px;
  margin: 10px;
  cursor: pointer;
  border: none;
  border-radius: 5px;
}

.confirm-btn {
  background: #d9534f;
  color: #fff;
}

.cancel-btn {
  background: #5bc0de;
  color: #fff;
}

@media (max-width: 768px) {
  header {
    flex-direction: column;
    padding: 0rem 2rem 2rem 2rem;
  }

  .navlist {
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
  }

  .navicons {
    margin-top: 1rem;
  }

  .hero {
    height: 12rem;
  }

  .cart {
    flex-direction: column;
    padding: 2rem 3rem;
    height: auto;
  }

  .cartContainer {
    width: 100%;
  }

  .cartTotal {
    width: 100%;
    margin-top: 2rem;
  }

  .cartHeader h2,
  .cartItems .item h2,
  .cartTotal h2 {
    font-size: 0.7rem;
  }

  .cartHeader,
  .cartItems .item,
  .cartTotal>div div {
    align-items: center;
    padding: 8px 4px;
  }

  .cartItems .item img,
  .cartHeader img {
    width: 2.5rem;
    height: 2.5rem;
  }

  .cartItems .item>input {
    width: 3rem;
  }

  .checkout {
    width: 100%;
  }

  footer {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
    height: auto;
  }

  .footerText img {
    width: 2rem;
    height: 2rem;
  }

  .footerText {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 480px) {

  .logo>img {
    width: 4rem;
    height: 4rem;
  }

  .banner>h1 {
    font-size: 2rem;
  }

  .cart {
    padding: 1rem 1.5rem;
  }

  .cartTotal,
  .cartTotal h1,
  .cartTotal h2 {
    font-size: 1rem;
  }

  .checkout {
    padding: 10px;
  }

  footer {
    padding: 0.5rem;
  }

  .footerText img {
    width: 1.5rem;
    height: 1.5rem;
  }
}