/* =========================================
   PRODUCTS PAGE
   Aligned with Home Featured Cards
========================================= */

/* ------------------------------
   SEARCH + FILTER ROW
------------------------------ */
.search-row {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  margin: 20px 0;
  flex-wrap: wrap;
}

.search-row input,
.search-row select {
  padding: 10px;
  border-radius: 10px;
  border: 1px solid #e6e9ef;
  min-width: 220px;
}

/* ------------------------------
   PRODUCT GRID
------------------------------ */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

/* ------------------------------
   PRODUCT CARD
   (Explicit visual base)
------------------------------ */
.product-card {
  background: #fff;
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);

  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  text-align: center;

  transition: transform .2s ease, box-shadow .2s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.1);
}

/* ------------------------------
   PRODUCT IMAGE
------------------------------ */
.product-image {
  width: 100%;
  height: 220px;
  object-fit: contain;
  margin-bottom: 12px;
  border-radius: 10px;
}

/* ------------------------------
   PRODUCT TITLE + PRICE
------------------------------ */
.product-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.product-price {
  font-weight: 700;
  margin-bottom: 14px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
}

.old-price {
  text-decoration: line-through;
  color: #888;
}

/* ------------------------------
   DISCOUNT BADGE
------------------------------ */
.discount-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 0.8rem;
}

/* ------------------------------
   ADD TO CART BUTTON
------------------------------ */
.add-btn {
  margin-top: auto;
  background: #000;
  color: #fff;
  padding: 10px;
  border-radius: 8px;
  width: 100%;
  border: none;
  font-weight: 600;
  cursor: pointer;

  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;

  transition: background .18s ease, transform .18s ease;
}

.add-btn:hover {
  background: #222;
  transform: translateY(-1px);
}

/* Icon inside button */
.add-btn i {
  background: rgba(255,255,255,0.09);
  padding: 6px;
  border-radius: 6px;
}

/* ------------------------------
   OUT OF STOCK BADGE
------------------------------ */
.out-of-stock {
  background: #fff3f2;
  color: #7f1d1d;
  padding: 6px 8px;
  border-radius: 8px;
  font-weight: 700;
  display: inline-block;
  margin-top: 10px;
}
