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

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

html,
body {
  min-height: 100vh;
  font-family: "Cormorant Garamond", serif;
  background-color: #c9adc6;
}

a {
  text-decoration: none;
}
/* LOADER */
.loader {
  position: fixed;
  height: 100vh;
  width: 100%;
  background-color: #f1f2f3;
}

.loader img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  height: 100px;
  width: 100px;
}

/* GO TO TOP */
#top-btn {
  width: 44px;
  height: 44px;
  display: none;
  position: fixed;
  bottom: 20px;
  right: 30px;
  z-index: 25;
  border: none;
  outline: none;
  background-color: #b08ead;
  cursor: pointer;
  padding: 13px;
  border-radius: 50%;
}

#top-btn:hover {
  background-color: #c29dbf;
}

#top-btn img {
  width: 100%;
}

/* CART */

#cart-window {
  display: none;
}
.cart-window {
  position: fixed;
  height: 100vh;
  width: 100%;
  top: 0;
  right: 0;
  z-index: 30;
  display: flex;
  background-color: rgba(0, 0, 0, 0.74);
}

.cart {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  background-color: #fff;
  width: 500px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 0.3rem 0.3rem;
}

/* CART NAV */
.cart-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
}

.cart-nav p {
  font-size: 18px;
  line-height: 24px;
  font-weight: 500;
}

.cart-close {
  width: 14px;
  cursor: pointer;
}

.cart-close img {
  width: 100%;
}

/* CART ITEMS */
.cart-items {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 2rem 1.5rem;
  height: 80vh;
  gap: 1.5rem;
  overflow-y: scroll;
  -ms-overflow-style: none; /* Internet Explorer 10+ */
  scrollbar-width: none;
}

.cart-items::-webkit-scrollbar {
  display: none; /* Safari and Chrome */
}

.cart-item {
  display: flex;
  justify-content: space-between;
  height: max-content;
}

.cart-image {
  width: 5rem;
  height: 5rem;
}

.cart-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-details {
  height: 100%;
  width: 50%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-block: 0.3rem;
}

.cart-details .name {
  color: #5f4d5d;
  font-weight: 600;
  font-size: 20px;
}

.amount {
  font-family: Roboto, sans-serif;
  color: #b0b0b0;
  font-size: 16px;
  font-weight: 500;
}

.cart-details .remove {
  font-family: Roboto, sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-top: 3px;
  color: #5f4d5d;
  cursor: pointer;
  width: max-content;
}

.cart-details .remove:hover {
  color: #ff030391;
}

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

.plus-btn {
  font-size: 1rem;
  padding: 4px 10px;
}

.quantity-value {
  font-family: Roboto, sans-serif;
  font-size: 0.9rem;
  padding: 4px 10px;
}

.minus-btn {
  font-size: 1.3rem;
  padding: 1px 11px;
}
.plus-btn,
.minus-btn {
  font-family: Roboto, sans-serif;
  background-color: #c9adc696;
  cursor: pointer;
  color: #fff;
}

.plus-btn:hover,
.minus-btn:hover {
  background-color: #c9adc6c9;
}

/* CART CHECKOUT */
.cart-checkout {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem;
}

.checkout-detail {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.checkout-detail .subtotal {
  color: #5f4d5d;
  font-size: 24px;
}

.checkout-btn {
  font-family: Roboto, sans-serif;
  color: #fff;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 0.9rem 4rem;
  width: 100%;
  transition: all 0.2s ease;
  background-color: #ceb3cb;
  text-align: center;
  cursor: pointer;
}

.checkout-btn:hover {
  background-color: #e4c1e0;
  transition: all 0.2s ease;
}

.checkout-disabled {
  margin-bottom: 0.5rem;
  background-color: #ca0a0041;
  font-size: 1.2rem;
  padding: 0.6rem;
  text-align: center;
  display: none;
}

hr {
  border-top: none;
  border-bottom: 0.5px solid #d6bbd3;
}

/* NAVBAR */
nav {
  margin-top: 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 9.5rem;
  background-color: white;
}

/* LOGO */
.logo {
  width: 120px;
}

.logo img {
  width: 100%;
}

/* MENU */
.links {
  display: flex;
}

.links ul {
  list-style: none;
  display: flex;
}

.links ul li {
  font-size: 1.5rem;
  font-weight: 500;
  color: #b08ead;
  border-bottom: 4px solid rgba(0, 0, 0, 0);
  cursor: pointer;
  padding: 2.6rem 1.3rem;
}

.links a:link {
  color: #b08ead;
}

.links a:visited {
  color: #b08ead;
}

.links ul li:hover {
  border-color: #c9adc6;
}

/* CART */
.icon {
  margin: auto;
  margin-left: 3rem;
  font-size: 1.3rem;
  cursor: pointer;
  width: 23px;
}

.icon img {
  width: 100%;
}

/* FEATURES */
.features {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  padding: 3rem 20rem;
  height: max-content;
  background-color: #d6bbd3;
}

.feature {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.feature-icon {
  width: 95px;
  height: 95px;
  border-radius: 50%;
  background-color: #ba9fb7;
}

.feature-icon img {
  width: 100%;
}

.feature-name {
  color: white;
  font-weight: 700;
  font-size: 22px;
}

.feature-tag {
  font-family: Roboto, sans-serif;
  color: white;
  font-size: 17px;
}

/* FOOTER */
.footer {
  height: max-content;
  padding: 2rem 10rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #c9adc6;
  gap: 2rem;
}

/* FOOTER LOGO */
.footer-logo {
  width: 100px;
}

.footer-logo img {
  width: 100%;
}

/* FOOTER MENU */
.footer-menu {
  width: 70%;
}

.footer-menu ul {
  list-style: none;
  display: flex;
}

.footer-menu ul li {
  font-size: 1.3rem;
  font-weight: 600;
  color: #fff;
  border-bottom: 4px solid rgba(0, 0, 0, 0);
  cursor: pointer;
  padding: 1rem 1rem;
}

/* SOCIAL ICONS */
.social {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.social-icon {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background-color: #d6bbd3;
  padding: 9px;
}

.social-icon img {
  width: 100%;
}

/* RESPONSIVE */
@media only screen and (max-width: 980px) {
  * {
    -webkit-tap-highlight-color: transparent;
  }

  /* LOADER */
  .loader img {
    height: 50px;
    width: 50px;
  }
  /* CART */
  .cart {
    width: 100%;
  }

  /* CART NAV */
  .cart-nav {
    padding: 1rem;
  }
  .cart-close {
    width: 12px;
  }

  /* CART ITEMS */
  .cart-items {
    padding: 1rem;
    gap: 1.5rem;
  }

  .cart-details {
    width: 40%;
  }

  .cart-details .name {
    font-size: 16px;
  }

  .amount {
    font-size: 12px;
  }

  .cart-details .remove {
    font-size: 10px;
  }

  .plus-btn {
    font-size: 0.8rem;
    padding: 3.5px 7.5px;
  }
  .quantity-value {
    font-size: 0.8rem;
  }

  .minus-btn {
    font-size: 1rem;
    padding: 2.5px 9px;
  }

  /* CART CHECKOUT */
  .cart-checkout {
    gap: 1rem;
    padding: 1rem;
  }

  .checkout-detail .subtotal {
    font-size: 20px;
    line-height: 4px;
  }

  .checkout-btn {
    font-size: 10px;
  }

  .checkout-disabled {
    font-size: 1rem;
  }

  /* NAVBAR */
  nav {
    height: 120px;
    position: relative;
    padding: 0 1.5rem;
  }

  /* LOGO */
  .logo {
    width: 117px;
  }

  /* MENU */
  .links ul {
    z-index: 15;
    width: 100%;
    background-color: white;
    position: absolute;
    flex-direction: column;
    top: 0;
    left: 0;
    gap: 0;
  }
  .links ul li {
    padding-block: 1rem;
    padding-left: 2rem;
  }

  .open {
    transform: translateY(120px);
  }

  .close {
    display: none;
    visibility: hidden;
  }

  /* HAMBURGER MENU ICON */
  .burger {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    cursor: pointer;
    margin-right: 1rem;
  }

  .line {
    width: 15px;
    height: 2.4px;
    background-color: #c9adc6;
  }

  /* CART ICON */
  .icon {
    margin-left: 1.5rem;
    transform: translateY(2px);
  }

  /* FEATURES */
  .features {
    flex-direction: column;
    padding: 3rem 1rem;
  }

  /* FOOTER */
  .footer {
    padding: 3rem 1rem;
    flex-direction: column;
    gap: 2rem;
  }

  /* FOOTER LOGO */
  .footer-logo {
    width: 120px;
  }

  /* FOOTER MENU */
  .footer-menu {
    width: 100%;
  }

  .footer-menu ul {
    flex-direction: column;
    align-items: center;
    gap: 0.7rem;
  }

  .footer-menu ul li {
    padding: 0;
  }
}
