/* Product Grid */
.product-grid-section {
  padding: 0 32px 80px;
  max-width: 1440px;
  margin: 0 auto;
}

/* =========================

   PRODUCT GRID

========================= */

.product-grid {
  display: grid;

  grid-template-columns: repeat(5, 1fr);

  gap: 28px;

  align-items: stretch;
}

.product-card {
  background: #ffffff;

  border-radius: 32px;

  padding: 24px;

  position: relative;

  overflow: hidden;

  transition:
    transform 0.4s ease,
    box-shadow 0.4s ease,
    border-color 0.4s ease;

  border: 1px solid rgba(96, 55, 99, 0.08);

  display: flex;

  flex-direction: column;

  justify-content: space-between;

  min-height: 540px;

  box-shadow: 0 4px 18px rgba(17, 17, 17, 0.03);

  height: 100%;
}
/* .product-card{

    transform: translateY(0) !important;

    opacity: 1 !important;

} */

.product-card:hover {
  transform: translateY(-8px);
  box-shadow:
    0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.product-card-link {
  text-decoration: none;

  color: inherit;

  display: flex;

  flex-direction: column;

  flex: 1;
}

.card-img-container {
  width: 100%;

  aspect-ratio: 1 / 1;

  border-radius: 24px;

  background: #f7f4f8;

  display: flex;

  align-items: center;

  justify-content: center;

  overflow: hidden;

  position: relative;
}

.card-img-container img {
  width: 100%;

  height: 100%;

  object-fit: cover;

  object-position: center;

  display: block;

  transition: transform 0.45s ease;

  filter: brightness(1.02) contrast(1.02);
}

.product-card:hover .card-img-container img {
  transform: scale(1.04);
}

.wishlist-toggle {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(4px);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-muted);
  transition: var(--transition);
  z-index: 2;
}

.wishlist-toggle:hover {
  background: var(--white);
  color: #ef4444;
}

.wishlist-toggle.active {
  color: #ef4444;
}

.wishlist-toggle.active svg {
  fill: #ef4444;

  stroke: #ef4444;
}
.card-content {
  padding-top: 24px;

  display: flex;

  flex-direction: column;

  gap: 10px;

  flex: 1;
}

.card-category {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--primary-purple);
  margin-bottom: 4px;
}

.card-title {
  font-size: 28px;

  line-height: 1.1;

  font-weight: 500;

  color: #1d1d1f;

  letter-spacing: -1px;

  min-height: 64px;
}

.card-price {
  font-size: 20px;
  font-weight: 600;
  color: #2d004f;
  margin-bottom: 24px;
}

.offer-price-block {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 20px;
}

.offer-badge {
  width: fit-content;
  padding: 4px 10px;

  border-radius: 999px;

  background: linear-gradient(135deg, #57029d, #7a4e7c);

  color: white;

  font-size: 10px;

  font-weight: 700;

  letter-spacing: 0.5px;

  text-transform: uppercase;
}

.original-price {
  font-size: 14px;

  color: #9ca3af;

  text-decoration: line-through;

  margin: 0;
}

.discounted-price {
  font-size: 22px;

  font-weight: 700;

  color: #2d004f;

  margin: 0;
}

.saving-price {
  font-size: 12px;

  font-weight: 600;

  color: #16a34a;

  margin: 0;
}

/* =========================

   VARIANT DETAILS

========================= */

.variant-details {
  display: flex;

  flex-wrap: wrap;

  gap: 8px;

  margin-bottom: 18px;
}

.variant-pill {
  display: inline-flex;

  align-items: center;

  gap: 6px;

  padding: 7px 12px;

  border-radius: 999px;

  background: #f6f2f7;

  border: 1px solid rgba(96, 55, 99, 0.08);

  font-size: 11px;

  font-weight: 700;

  letter-spacing: 0.4px;

  color: #603763;

  text-transform: uppercase;

  transition: all 0.25s ease;
}

.product-card:hover .variant-pill {
  background: #f1e8f4;

  border-color: rgba(96, 55, 99, 0.16);
}

.color-dot {
  width: 10px;

  height: 10px;

  border-radius: 50%;

  border: 1px solid rgba(0, 0, 0, 0.08);

  flex-shrink: 0;
}

.add-to-cart-btn {
  width: 100%;
  padding: 12px;
  border-radius: 24px;
  border: none;
  background: linear-gradient(90deg, #4c0080 0%, #6a0dad 100%);
  color: var(--white);
  font-weight: 700;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: var(--transition);
}

.add-to-cart-btn:hover {
  opacity: 0.9;
  gap: 12px;
}

.add-to-cart-btn.unavailable {
  background: #e5e7eb;

  color: #6b7280;

  cursor: not-allowed;

  pointer-events: none;

  opacity: 0.85;
}

.wishlist-toggle.disabled {
  opacity: 0.45;

  cursor: not-allowed;

  pointer-events: none;
}
/* =========================

   LARGE LAPTOPS

========================= */

@media (max-width: 1400px) {
  .product-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* =========================

   TABLETS / SMALL LAPTOPS

========================= */

@media (max-width: 1100px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);

    gap: 24px;
  }
}

/* =========================

   LARGE MOBILE / IPAD MINI

========================= */

@media (max-width: 768px) {
  .product-grid-section {
    padding: 0 18px 80px;
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);

    gap: 18px;
  }

  .product-card {
    min-height: auto;

    padding: 14px;

    border-radius: 24px;
  }
  .variant-details {
    gap: 6px;

    margin-bottom: 14px;
  }

  .variant-pill {
    font-size: 10px;

    padding: 6px 10px;
  }

  .card-content {
    padding-top: 16px;

    gap: 6px;
  }

  .card-title {
    font-size: 18px;

    min-height: auto;

    letter-spacing: -0.5px;
  }

  .card-price {
    font-size: 16px;

    margin-bottom: 14px;
  }

  .add-to-cart-btn {
    height: 42px;

    border-radius: 18px;

    font-size: 14px;
  }
}

/* =========================

   SMALL IPHONES

========================= */

@media (max-width: 480px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);

    gap: 14px;
  }

  .product-card {
    padding: 12px;

    border-radius: 22px;
  }

  .card-title {
    font-size: 16px;

    line-height: 1.2;
  }

  .card-category {
    font-size: 9px;
  }

  .card-price {
    font-size: 15px;
  }

  .wishlist-toggle {
    width: 28px;

    height: 28px;

    top: 10px;

    right: 10px;
  }

  .wishlist-toggle svg {
    width: 16px;

    height: 16px;
  }

  .add-to-cart-btn {
    height: 38px;

    font-size: 13px;

    gap: 6px;
  }

  .wishlist-toggle.active {
    background: #603763;

    color: white;

    border-color: #603763;
  }

  .wishlist-toggle.active svg {
    fill: white;
  }
}
