/* ========================
   PRODUCTS
======================== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
}
.product-card {
  background: #ffffff;
  border: 1px solid #e8e8e8;
  border-radius: 14px;
  overflow: hidden;
  transition: all 0.3s;
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
}
.product-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 12px 35px rgba(192,39,45,.12);
}
.product-img {
  width: 100%; height: 210px;
  background: #f5f5f5;
  display: flex; align-items: center; justify-content: center;
  position: relative;
  overflow: hidden;
}
.product-img::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 50%, rgba(0,0,0,0.08));
}
.product-icon-wrap {
  position: relative; z-index: 1;
  font-size: 3.5rem;
  color: var(--accent);
  opacity: 0.85;
}
.product-icon-wrap i { font-size: 3.5rem; }
.product-badges {
  position: absolute; top: 0.75rem; left: 0.75rem;
  display: flex; gap: 0.35rem; z-index: 1;
}
.tag {
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-size: 0.65rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.5px;
}
.tag-new  { background: #6d6e71; color: white; }
.tag-sale { background: var(--accent); color: white; }
.tag-hot  { background: var(--warning); color: #1a1a1a; }
.tag-best { background: var(--success); color: #1a1a1a; }
.product-wish {
  position: absolute; top: 0.75rem; right: 0.75rem; z-index: 2;
  width: 30px; height: 30px;
  background: rgba(255,255,255,0.9);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  color: #aaa;
  font-size: 0.8rem;
  transition: color 0.2s;
}
.product-wish:hover { color: #ff6b8a; }
.product-body { padding: 1.1rem; }
.product-cat  { font-size: 0.72rem; color: var(--accent); font-weight: 600; margin-bottom: 0.25rem; }
.product-name { font-size: 0.9rem; font-weight: 700; color: #1a1a1a; margin-bottom: 0.5rem; line-height: 1.4; }
.product-rating {
  display: flex; align-items: center; gap: 0.35rem;
  margin-bottom: 0.75rem;
}
.stars        { color: var(--warning); font-size: 0.68rem; }
.rating-count { font-size: 0.72rem; color: #666; }
.product-price {
  display: flex; align-items: center; gap: 0.5rem;
  margin-bottom: 0.75rem; flex-wrap: wrap;
}
.price-current {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.4rem; font-weight: 700; color: var(--accent);
}
.price-old    { font-size: 0.82rem; color: #888; text-decoration: line-through; }
.price-discount {
  font-size: 0.72rem;
  background: rgba(192,39,45,0.12);
  color: var(--accent);
  padding: 0.15rem 0.4rem;
  border-radius: 4px; font-weight: 600;
}
.btn-add {
  width: 100%;
  background: linear-gradient(135deg, var(--accent2), var(--accent));
  border: none;
  border-radius: 8px;
  color: white;
  font-size: 0.82rem; font-weight: 700;
  padding: 0.65rem;
  cursor: pointer;
  transition: all 0.2s;
  display: flex; align-items: center; justify-content: center; gap: 0.4rem;
}
.btn-add:hover { box-shadow: var(--glow); transform: translateY(-1px); }
.btn-add.added { background: linear-gradient(135deg, #00aa55, #00cc66); }

/* ========================
   FILTER BAR
======================== */
.filter-bar {
  display: flex; align-items: center; gap: 0.6rem;
  flex-wrap: wrap; margin-bottom: 1.75rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.filter-bar::-webkit-scrollbar { display: none; }
.filter-btn {
  padding: 0.4rem 1.1rem;
  border-radius: 20px;
  border: none;
  background: linear-gradient(135deg, var(--accent2), var(--accent));
  color: white;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
}
.filter-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(192,39,45,.4);
}
.filter-btn.active {
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(192,39,45,.5);
  transform: translateY(-1px);
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* ========================
   RESPONSIVE PRODUCTS
======================== */
@media (max-width: 1024px) {
  .products-grid { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
  .product-img { height: 190px; }
}
@media (max-width: 768px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 0.875rem; }
  .product-img { height: 170px; }
  .product-icon-wrap i { font-size: 2.8rem; }
  .product-body { padding: 0.875rem; }
  .product-name { font-size: 0.85rem; }
  .price-current { font-size: 1.2rem; }
}
@media (max-width: 480px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
  .product-img { height: 140px; }
  .product-icon-wrap i { font-size: 2.2rem; }
  .product-body { padding: 0.75rem; }
  .product-name { font-size: 0.8rem; }
  .product-cat  { font-size: 0.67rem; }
  .price-current { font-size: 1.1rem; }
  .price-old { font-size: 0.74rem; }
  .btn-add { font-size: 0.74rem; padding: 0.55rem; }
  .product-wish { width: 26px; height: 26px; font-size: 0.68rem; }
}
@media (max-width: 360px) {
  .products-grid { grid-template-columns: 1fr; gap: 0.75rem; }
  .product-img { height: 180px; }
  .product-icon-wrap i { font-size: 3rem; }
  .product-name { font-size: 0.9rem; }
  .price-current { font-size: 1.25rem; }
  .btn-add { font-size: 0.82rem; padding: 0.65rem; }
}