/* ==========================================================================
   PRODUCT CARD — Holi-Color edition
   Same class hooks as before; restyled for the bold Holi theme.
   ========================================================================== */

.products {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
  max-width: 1240px;
  margin: 20px auto;
  gap: 6px;
}

.product-card {
  display: flex;
  flex-direction: column;
  position: relative;
  width: 100%;
  margin: 15px;
  min-width: 300px;
  max-width: 340px;
  border: 1px solid var(--holi-border);
  border-radius: var(--holi-radius);
  overflow: hidden;
  box-shadow: var(--holi-card-shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  background: var(--holi-surface);
  scroll-margin-top: 110px;
}

.product-card-simple {
  display: flex;
  flex-direction: column;
  position: relative;
  width: 100%;
  margin: 15px;
  min-width: 200px;
  max-width: 250px;
  border: 1px solid var(--holi-border);
  border-radius: var(--holi-radius);
  overflow: hidden;
  box-shadow: var(--holi-card-shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  background: var(--holi-surface);
  scroll-margin-top: 110px;
}

/* Rainbow top accent that appears on hover */
.product-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: var(--holi-gradient);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 2;
}

.product-card:hover::before {
  opacity: 1;
}

.small-card {
  margin: 12px;
  min-width: 200px;
  max-width: 250px;
}

.small-image-container {
  width: 100%;
  height: 200px;
  max-height: 250px;
  overflow: hidden;
  background: var(--holi-surface-2);
}

.mini-card {
  margin: 12px;
  min-width: 160px;
  max-width: 180px;
  text-align: center;
}



.mini-image-container {
  width: 100%;
  height: 100px;
  max-height: 120px;
  overflow: hidden;
  background: var(--holi-surface-2);
}


.product-card:hover,
.product-card-simple:hover {
  transform: translateY(-6px);
  box-shadow: var(--holi-card-shadow-hover);
  border-color: transparent;
}

.product-image-container {
  width: 100%;
  height: 300px;
  max-height: 350px;
  overflow: hidden;
  background: var(--holi-surface-2);
}




.product-image-container img,
.small-image-container img,
.mini-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}


.product-card-simple .product-image-container {
  width: 100%;
  height: 200px;
}

.product-card-simple .product-image-container img {
  width: 100%;
  height: 200px;
}

.product-card:hover .product-image-container img,
.product-card:hover .small-image-container img,
.product-card-simple:hover .mini-image-container img {
  transform: scale(1.06);
}

/* Promo ribbon — gradient pill, top left */
.product-promo {
  position: absolute;
  top: 12px;
  left: 12px;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  background: var(--brand-cta);
  border-radius: 999px;
  margin: 0;
  padding: 6px 12px;
  z-index: 3;
  color: #fff;
  box-shadow: 0 4px 12px rgba(255, 61, 119, 0.4);
}

/* Stock chip — top right, frosted */
.product-quantity,
.small-card-quantity {
  position: absolute;
  top: 12px;
  right: 12px;
  height: auto;
  text-align: center;
  font-weight: 700;
  font-size: 13px;
  background: rgba(10, 11, 18, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 999px;
  margin: 0;
  padding: 6px 10px;
  z-index: 3;
  color: #fff;
}

.small-card-quantity {
  top: 12px;
  right: 12px;
}

.product-info {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-grow: 1;
}


.product-info.mini-product-info h3 {
  font-size: 1rem;
}

.product-add-to-cart {
  margin-top: auto;
  padding: 16px;
  text-align: center;
}

.product-card-name {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  color: var(--holi-text);
  line-height: 1.4;
  transition: color 0.2s ease;
}

.product-card:hover .product-card-name {
  color: var(--holi-violet);
}

.product-card-price {
  display: flex;
  flex-direction: column;
  margin-top: auto;
  gap: 4px;
}

/* Category tags — outlined pills */
.product-category {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.category-tag {
  background: transparent;
  color: var(--holi-text-muted);
  border: 1px solid var(--holi-border);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.category-tag:hover {
  border-color: var(--holi-violet);
  color: var(--holi-violet);
}

.product-stock {
  font-size: 14px;
  font-weight: 500;
}

.product-size {
  font-size: 14px;
  color: var(--holi-text-muted);
  font-weight: 500;
}

/* Stock status colors */
.in-stock {
  color: #22c55e;
}

.low-stock {
  color: var(--holi-orange);
}

.out-of-stock {
  color: #ef4444;
}

/* Responsive */
@media (max-width: 768px) {
  .products {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .product-card {
    margin: 0 auto;
    max-width: 92%;
  }

  .product-info {
    padding: 14px;
  }

  .product-card-simple {
    min-width: 250px;
    max-width: 350px;
  }

}