/* ========================= */
/* PRODUCT GRID */
/* ========================= */

.allCard {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
  padding: 20px 40px;
}

/* ========================= */
/* CARD */
/* ========================= */

.product-card {
  width: 100%;

  background: #ffffff;

  border-radius: 16px;

  overflow: hidden;

  border: 1px solid #dbe5f2;

  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);

  transition: 0.3s;
}

.product-card:hover {
  transform: translateY(-5px);

  box-shadow: 0 15px 35px rgba(37, 99, 235, 0.1);
}

/* ========================= */
/* IMAGE */
/* ========================= */

.card-image {
  position: relative;

  width: 100%;
  height: 220px;

  background: #f4f8fd;

  display: flex;

  align-items: center;
  justify-content: center;

  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 100%;

  object-fit: contain;

  transition: 0.4s ease;
}

.product-card:hover .card-image img {
  transform: scale(1.05);
}

/* ========================= */
/* DISCOUNT */
/* ========================= */

.discount-percent {
  position: absolute;

  top: 17px;
  left: 17px;

  z-index: 2;

  background: #f97316;

  color: #ffffff;

  padding: 7px 10px;

  font-size: 12px;

  font-weight: 600;

  border-radius: 8px;
}

/* ========================= */
/* WISHLIST */
/* ========================= */

/* ÜRƏK DÜYMƏSİ */
.product-card {
  position: relative;
}

.wishlist-toggle {
  position: absolute;
  top: 17px;
  right: 17px;
  z-index: 5;

  width: 43px;
  height: 43px;

  display: flex;
  align-items: center;
  justify-content: center;

  border: none;
  border-radius: 13px;

  background: #ffffff;
  color: #08265c;

  font-size: 25px;
  cursor: pointer;

  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transition: 0.25s;
}

.wishlist-toggle:hover {
  transform: scale(1.08);
}

/* SEÇİLMİŞ MƏHSUL */
.wishlist-toggle.active {
  color: #f97316;
}

/* DETAL KEÇİDİ */
.product-link,
.product-name-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.product-name-link h3 {
  transition: 0.2s;
}

.product-name-link:hover h3 {
  color: #2563eb;
}

/* ========================= */
/* CONTENT */
/* ========================= */

.card-info {
  padding: 20px 22px 22px;
}

/* ========================= */
/* STOCK */
/* ========================= */

.card-info h5 {
  position: relative;

  display: block;

  padding-left: 14px;

  margin: 0 0 14px;

  background: none;

  color: #2563eb;

  font-size: 11px;

  font-weight: 600;

  border: none;

  letter-spacing: 0.3px;
}

.card-info h5::before {
  content: "";

  position: absolute;

  left: 0;
  top: 50%;

  width: 6px;
  height: 6px;

  background: #06b6d4;

  border-radius: 50%;

  transform: translateY(-50%);
}

/* ========================= */
/* PRODUCT NAME */
/* ========================= */

.card-info h3 {
  margin: 0 0 16px;

  color: #08265c;

  font-size: 17px;

  font-weight: 500;

  line-height: 1.4;
}

/* ========================= */
/* PRICE */
/* ========================= */

.price {
  margin: 0;
}

.discountPercent {
  color: #2563eb;

  font-size: 21px;

  font-weight: 600;
}

.real-price {
  margin-left: 8px;

  color: #94a3b8;

  font-size: 13px;

  text-decoration: line-through;
}

/* ========================= */
/* BUTTON */
/* ========================= */

.add-to-cart {
  position: relative;

  overflow: hidden;

  width: 100%;

  margin-top: 16px;

  padding: 11px 0;

  border: none;

  border-radius: 10px;

  background: linear-gradient(135deg, #2563eb, #06b6d4);

  color: #ffffff;

  font-size: 14px;

  font-weight: 500;

  cursor: pointer;

  transition: 0.3s;
}

.add-to-cart:hover {
  background: linear-gradient(135deg, #1d4ed8, #0891b2);
}

/* ========================= */
/* TITLE */
/* ========================= */

.title {
  display: flex;

  align-items: center;
  justify-content: space-between;

  margin: 0 40px;
}

.title a {
  color: #2563eb;

  font-size: 16px;

  text-decoration: none;
}

.title a:hover {
  color: #06b6d4;
}

/* ========================= */
/* RESPONSIVE */
/* ========================= */

@media (max-width: 1000px) {
  .allCard {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .allCard {
    grid-template-columns: 1fr;

    padding: 20px;
  }
}
