
.category-filter {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-btn {
  background: #ffffff;
  color: #000000;
  border: 1px solid #e5e7eb;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.25s ease;
}

.filter-btn:hover {
  background: #000000;
  color: #ffffff;
}

.filter-btn.active {
  background: #000000;
  color: #ffffff;
  border-color: #000000;
}
#products, .container {
  position: relative;
}

.cart-indicator-top {
  position: absolute;
  top: 12px;
  right: 16px;
  z-index: 50;
}




/* ===== QTY + ADD (SAME AS HOME PAGE) ===== */

.qty-cart-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* QTY BOX */
.qty-box {
  display: flex;
  align-items: center;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
  height: 34px;
}

.qty-box button {
  width: 28px;
  height: 34px;
  border: none;
  background: #f9fafb;
  font-size: 18px;
  font-weight: 500;
  cursor: pointer;
  line-height: 1;
}

.qty-box button:hover {
  background: #e5e7eb;
}

.qty-box input {
  width: 36px;
  height: 34px;
  border: none;
  text-align: center;
  font-weight: 600;
  background: #ffffff;
  font-size: 14px;
}

/* ADD BUTTON */
.add-cart-btn {
  background: #000000;
  color: #ffffff;
  border: none;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  height: 34px;
}

.add-cart-btn:hover {
  background: #111111;
}

/* MOBILE FIX */
@media (max-width: 576px) {
  .qty-box {
    height: 32px;
  }

  .qty-box button,
  .qty-box input,
  .add-cart-btn {
    height: 32px;
    font-size: 12px;
  }

  .add-cart-btn {
    padding: 6px 10px;
  }
}
/* PRODUCT CARD */
.product-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 18px 40px rgba(0,0,0,0.15);
}

/* FULL CARD CLICK */
.card-link-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
}

/* KEEP BUTTONS CLICKABLE */
.interactive,
.interactive * {
  position: relative;
  z-index: 2;
}

/* AMAZON STYLE IMAGE CANVAS */
/* AMAZON SQUARE IMAGE CANVAS */
.img-wrap {
  aspect-ratio: 1 / 1;        /* 🔥 KEY */
  background: #f7f7f7;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}



.product-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: transparent;
  filter: none;          /* safety */
}

/* CONTENT */
.product-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ROW 1 */
.row-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.product-name {
  font-size: 14px;
  font-weight: 700;
  margin: 0;
}

/* ROW 2 */
.row-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* PRICE */
.price-box {
  display: flex;
  align-items: center;
  gap: 8px;
}

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

.price {
  font-size: 15px;
  font-weight: 800;
  color: #d52027;
}

/* REMOVE HOVER */
.product-card:hover img {
  transform: none;
}
.card-link-overlay {
  position: absolute;
  top: 180px;   /* same as img height */
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
}
/* PRODUCT CARD */
.product-card {
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.12);
  overflow: hidden;
}

/* AMAZON STYLE IMAGE CANVAS */
/* AMAZON SQUARE IMAGE CANVAS */
.img-wrap {
  aspect-ratio: 1 / 1;        /* 🔥 KEY */
  background: #f7f7f7;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* AMAZON IMAGE BEHAVIOR */
/* AMAZON IMAGE SCALING */
.img-wrap img {
  width: auto;
  height: 88%;               /* 🔥 magic number */
  max-width: 88%;
  object-fit: contain;
  display: block;
}


/* REMOVE ALL HOVER / EFFECTS */
.product-card img,
.product-card:hover img {
  transform: none !important;
  filter: none !important;
}
.product-content {
  padding: 10px 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.row-top,
.row-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.product-name {
  font-size: 14px;
  font-weight: 600;
  color: #0f1111;   /* Amazon text color */
  margin: 0;
  line-height: 1.3;
}

.price {
  font-size: 16px;
  font-weight: 700;
  color: #b12704;   /* Amazon red */
}

.old-price {
  font-size: 13px;
  color: #565959;
  text-decoration: line-through;
}
/* =========================
   MOBILE PREMIUM POLISH
   ========================= */
@media (max-width: 576px) {

  /* CARD */
  .product-card {
    border-radius: 14px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.14);
  }

  /* IMAGE – HERO FEEL */
  .img-wrap {
    aspect-ratio: 1 / 1;
    background: #f7f7f7;
  }

  .img-wrap img {
    height: 94%;          /* 🔥 slightly bigger on mobile */
    max-width: 94%;
  }

  /* CONTENT */
  .product-content {
    padding: 10px 10px 12px;
    gap: 8px;
  }

  /* NAME */
  .product-name {
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.25;
  }

  /* PRICE */
  .price {
    font-size: 15px;
    font-weight: 700;
  }

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

  /* ROW ALIGNMENT */
  .row-top,
  .row-bottom {
    align-items: center;
  }

  /* QTY BOX – COMPACT & PREMIUM */
  .qty-box {
    height: 30px;
    border-radius: 6px;
  }

  .qty-box button {
    width: 24px;
    height: 30px;
    font-size: 15px;
  }

  .qty-box input {
    width: 30px;
    height: 30px;
    font-size: 12px;
  }

  /* ADD BUTTON */
  .add-cart-btn {
    height: 30px;
    padding: 0 10px;
    font-size: 12px;
    border-radius: 6px;
  }
}
.price {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #B12704;
  letter-spacing: -0.2px;
}

.old-price {
  font-family: 'Inter', system-ui, Arial, sans-serif;
  font-size: 13px;
  color: #565959;
  text-decoration: line-through;
}

/* DESCRIPTION */
.product-desc {
  font-size: 12.5px;
  color: #565959;
  margin: 0;
  line-height: 1.3;
}

/* STACKED LAYOUT */
.product-content {
  padding: 10px 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* PRICE LIKE AMAZON */
.price-box {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* QTY + ADD STACK */
.qty-cart-wrap {
  display: flex;
  gap: 8px;
  margin-top: 6px;
}

/* ADD BUTTON FULL WIDTH */
.add-cart-btn {
  width: 100%;
  height: 34px;
  background: #ffd814;
  border: 1px solid #fcd200;
  color: #111;
  font-weight: 700;
  border-radius: 8px;
}

.add-cart-btn:hover {
  background: #f7ca00;
}
.product-desc {
  font-size: 12.5px;
  color: #565959;
  line-height: 1.35;

  display: -webkit-box;
  -webkit-line-clamp: 2;   /* 🔥 only 2 lines */
  -webkit-box-orient: vertical;
  overflow: hidden;

  text-overflow: ellipsis;
}
@media (min-width: 768px) {
  .product-desc {
    font-size: 13px;
  }
}
/* PRICE + QTY SAME ROW */
.price-qty-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

/* KEEP QTY COMPACT */
.qty-box {
  display: flex;
  align-items: center;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  overflow: hidden;
  height: 30px;
}

.qty-box button {
  width: 24px;
  height: 30px;
  border: none;
  background: #f9fafb;
  font-size: 16px;
}

.qty-box input {
  width: 30px;
  height: 30px;
  text-align: center;
  border: none;
  font-size: 12px;
  font-weight: 600;
}

/* ADD BUTTON BELOW */
.add-cart-btn {
  margin-top: 6px;
  height: 34px;
  background: #ffd814;
  border: 1px solid #fcd200;
  color: #111;
  font-weight: 700;
  border-radius: 8px;
}

.add-cart-btn:hover {
  background: #f7ca00;
}
