/* =========================
   WISHLIST PAGE
========================= */

.wishlist-page {
  min-height: calc(100vh - 80px);
  padding: 80px 8%;
}

/* =========================
   HEADER
========================= */

.wishlist-header {
  max-width: 700px;
}

.wishlist-header .section-tag {
  font-size: 11px;
  letter-spacing: 2px;
  font-weight: 700;
}

.wishlist-header h1 {
  margin-top: 15px;

  font-size: clamp(55px, 7vw, 95px);

  letter-spacing: -5px;

  line-height: 0.95;
}

.wishlist-header h1 span {
  font-family: "Playfair Display", serif;

  font-style: italic;

  font-weight: 500;
}

.wishlist-header > p:last-child {
  max-width: 480px;

  margin-top: 25px;

  color: #777;

  line-height: 1.7;

  font-size: 16px;
}

/* =========================
   CONTROLS
========================= */

.wishlist-controls {
  display: flex;

  justify-content: space-between;

  align-items: center;

  margin-top: 70px;

  padding-bottom: 20px;

  border-bottom: 1px solid #ddd;

  font-size: 11px;

  letter-spacing: 1.5px;

  font-weight: 700;
}

.clear-btn {
  border: 1px solid #111;

  padding: 12px 18px;

  background: transparent;

  font-size: 10px;

  letter-spacing: 1px;

  font-weight: 700;

  cursor: pointer;

  transition: 0.3s;
}

.clear-btn:hover {
  background: #111;

  color: white;
}

/* =========================
   PRODUCTS GRID
========================= */

.wishlist-products {
  display: grid;

  grid-template-columns: repeat(4, 1fr);

  gap: 25px;

  margin-top: 40px;
}

/* =========================
   PRODUCT CARD
========================= */

.wishlist-card {
  position: relative;
}

.wishlist-image {
  height: 420px;

  position: relative;

  overflow: hidden;

  background: #eee;
}

.wishlist-image img {
  width: 100%;

  height: 100%;

  object-fit: cover;

  transition: 0.5s;
}

.wishlist-card:hover img {
  transform: scale(1.06);
}

/* Remove Button */

.remove-wishlist {
  position: absolute;

  top: 15px;

  right: 15px;

  width: 42px;

  height: 42px;

  border-radius: 50%;

  background: white;

  display: flex;

  align-items: center;

  justify-content: center;

  border: none;

  cursor: pointer;

  font-size: 16px;

  transition: 0.3s;
}

.remove-wishlist:hover {
  background: #111;

  color: white;

  transform: scale(1.08);
}

/* Product Info */

.wishlist-info {
  padding-top: 18px;
}

.wishlist-category {
  font-size: 10px;

  color: #888;

  letter-spacing: 1px;

  font-weight: 700;
}

.wishlist-info h3 {
  margin-top: 7px;

  font-size: 16px;

  font-weight: 600;
}

.wishlist-bottom {
  display: flex;

  justify-content: space-between;

  align-items: center;

  margin-top: 12px;
}

.wishlist-price {
  font-size: 16px;

  font-weight: 700;
}

.add-cart-btn {
  background: #111;

  color: white;

  border: none;

  padding: 11px 15px;

  font-size: 10px;

  letter-spacing: 1px;

  font-weight: 700;

  cursor: pointer;

  transition: 0.3s;
}

.add-cart-btn:hover {
  background: #333;

  transform: translateY(-2px);
}

/* =========================
   EMPTY STATE
========================= */

.empty-wishlist {
  display: none;

  text-align: center;

  padding: 100px 20px;
}

.empty-heart {
  width: 90px;

  height: 90px;

  margin: auto;

  display: flex;

  align-items: center;

  justify-content: center;

  border: 1px solid #111;

  border-radius: 50%;

  font-size: 30px;
}

.empty-wishlist .section-tag {
  justify-content: center;

  margin-top: 30px;
}

.empty-wishlist h2 {
  font-size: clamp(35px, 5vw, 65px);

  letter-spacing: -3px;
}

.empty-wishlist h2 span {
  display: block;

  font-family: "Playfair Display", serif;

  font-style: italic;

  font-weight: 500;
}

.empty-wishlist p {
  margin-top: 20px;

  color: #777;

  line-height: 1.7;
}

.shop-btn {
  display: inline-flex;

  align-items: center;

  gap: 10px;

  margin-top: 30px;

  background: #111;

  color: white;

  padding: 17px 25px;

  font-size: 11px;

  letter-spacing: 1px;

  font-weight: 700;

  transition: 0.3s;
}

.shop-btn:hover {
  transform: translateY(-3px);
}

/* =========================
   ACTIVE HEART
========================= */

.active-icon {
  position: relative;
}

.active-icon i {
  color: #111;
}

.wishlist-count {
  position: absolute;

  top: -9px;

  right: -10px;

  width: 16px;

  height: 16px;

  border-radius: 50%;

  background: #111;

  color: white;

  font-size: 9px;

  display: flex;

  align-items: center;

  justify-content: center;
}

/* =========================
   TOAST
========================= */

.toast {
  position: fixed;

  right: 30px;

  bottom: 30px;

  background: #111;

  color: white;

  padding: 15px 20px;

  display: flex;

  align-items: center;

  gap: 10px;

  font-size: 13px;

  transform: translateY(100px);

  opacity: 0;

  transition: 0.4s;

  z-index: 9999;
}

.toast.show {
  transform: translateY(0);

  opacity: 1;
}

.toast i {
  color: #d8ff3f;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1100px) {
  .wishlist-products {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 800px) {
  .wishlist-page {
    padding: 50px 6%;
  }

  .wishlist-products {
    grid-template-columns: repeat(2, 1fr);
  }

  .wishlist-image {
    height: 350px;
  }
}

@media (max-width: 500px) {
  .wishlist-header h1 {
    letter-spacing: -3px;
  }

  .wishlist-controls {
    margin-top: 45px;
  }

  .clear-btn {
    padding: 10px 12px;

    font-size: 9px;
  }

  .wishlist-products {
    grid-template-columns: 1fr;
  }

  .wishlist-image {
    height: 450px;
  }
}
