/* ===============================
   🛍️ PRODUCTS GRID
================================ */
/* 🔹 Products Grid */
/* 🔹 Products Grid (Desktop default) */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

/* 💻 Laptop */
@media (max-width: 1200px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* 📱 Tablet */
@media (max-width: 992px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* 📱 Mobile → 1 ROW = 2 PRODUCTS (IMPORTANT) */
@media (max-width: 576px) {
  .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)); /* ⭐ GUARANTEED */
    gap: 10px;
  }

  .product-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 10px;
  }
}

/* 🔹 Image stays top */
.product-image {
  flex-shrink: 0;
}

/* 🔹 Details section */
.product-details {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  text-align: center;
}

/* 🔹 Product name fixed height */
.product-details h5 {
  min-height: 36px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* 🔹 Price fixed */
.product-details p {
  min-height: 22px;
}

/* 🔹 Actions always bottom */
.product-actions {
  margin-top: auto;
  display: flex;
  gap: 6px;
}

/* 🔹 Add to Cart single line */
.add-to-cart-btn {
  white-space: nowrap;
  font-size: 13px;
  padding: 6px 10px;
}


/* 🔹 Image Section */
.product-image {
  width: 100%;
  flex-shrink: 0;              /* ⭐ image shrink nahi hogi */
}

/* 🔹 Image Wrapper */
.product-img-wrapper {
  width: 100%;
  height: 200px;               /* ⭐ FIXED IMAGE HEIGHT */
  overflow: hidden;
  /* border-radius: 12px; */
  background: #f5f5f5;
}

/* 🔹 Actual Image */
.product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;           /* ⭐ image fill karegi */
  object-position: center;
  display: block;
}
@media (max-width: 576px) {
  .product-img-wrapper {
    height: 180px;             /* mobile me balanced size */
  }
}
/* 🔹 Product Card */
.product-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  /* border-radius: 12px; */
  padding: 10px;
  height: 100%;
}

/* 🔹 Image as background */
.product-img-bg {
  width: 100%;
  aspect-ratio: 4 / 3;           /* ⭐ same image size everywhere */
  background-size: cover;        /* ⭐ fill container */
  background-position: center;   /* ⭐ center crop */
  background-repeat: no-repeat;
  background-color: #f4f4f4;
}

/* 🔹 No image fallback */
.product-img-bg.no-image {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: 14px;
}

/* 🔹 Product name fixed height */
.product-details h6 {
  min-height: 34px;
  font-size: 14px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* 🔹 Actions bottom */
.product-actions {
  margin-top: auto;
}

/* 🔹 Buttons */
.add-to-cart-btn {
  white-space: nowrap;
  font-size: 13px;
}

.wishlist-btn {
  min-width: 36px;
}
.price-box {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
}

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

.price-original {
  font-size: 13px;
}

.price-discount {
  font-size: 12px;
}
/* ===============================
   📦 PRODUCT CARD – IMPROVED
================================ */
.product-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 360px;          /* ⭐ card height increased */
  padding: 12px;
  background: #fff;
  /* border-radius: 14px; */
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

/* Hover effect (optional but premium) */
.product-card:hover {
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

/* ===============================
   🖼️ IMAGE AREA
================================ */
.product-img-bg {
  width: 100%;
  aspect-ratio: 4 / 3;        /* stable image area */
  /* border-radius: 12px; */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #f4f4f4;
}

/* ===============================
   📝 DETAILS
================================ */
.product-details {
  margin-top: 10px;
}

.product-details h6 {
  min-height: 40px;           /* ⭐ more space for name */
  font-size: 14px;
  line-height: 1.3;
  margin-bottom: 6px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* ===============================
   💰 PRICE
================================ */
.price-box {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
}

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

.price-original {
  font-size: 13px;
}

.price-discount {
  font-size: 12px;
}

/* ===============================
   🛒 ACTIONS (BOTTOM FIXED)
================================ */
.product-actions {
  margin-top: auto;           /* ⭐ stick to bottom */
  padding-top: 10px;
}

.add-to-cart-btn {
  font-size: 13px;
  white-space: nowrap;
}

.wishlist-btn {
  min-width: 36px;
}

/* ===============================
   📱 MOBILE TWEAKS
================================ */
@media (max-width: 576px) {
  .product-card {
    min-height: 330px;        /* mobile balanced */
    padding: 10px;
  }

  .product-details h6 {
    font-size: 13px;
  }
}
/* CARD */
.product-card {
  border-radius: 14px;
  overflow: hidden;
  border: none;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

/* IMAGE BOX */
.product-img-box {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
}

/* MAIN IMAGE */
.main-img {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform 0.4s ease;
}

/* HOVER ZOOM */
.product-card:hover .main-img {
  transform: scale(1.08);
}



/* BODY */
.card-body {
  padding: 12px;
}

/* PRICE */
.price-box {
  display: flex;
  justify-content: center;
  gap: 6px;
}

.price-final {
  font-weight: 700;
  color: #000;
}

.old-price {
  text-decoration: line-through;
  color: #999;
  font-size: 13px;
}

/* TEXT */
.card-text {
  font-size: 14px;
  line-height: 1.3;
  min-height: 38px;
}

/* COUPON */
.coupon-text {
  font-size: 12px;
  color: #555;
}

/* ADD TO CART */
.add-cart-btn {
  width: 100%;
  border: none;
  padding: 8px;
  background: #000;
  color: #fff;
  border-radius: 6px;
  font-size: 14px;
}
/* IMAGE BOX */
.product-img-box {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
}

/* IMAGE */
.main-img {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
}

/* ❤️ WISHLIST ON IMAGE ONLY */
.wishlist-btn-img {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 5;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.wishlist-btn-img i {
  font-size: 16px;
  color: #000;
}

/* Optional hover / active */
.wishlist-btn-img:hover i {
  color: red;
}
