/* ============================================================
   AQUA CARE RO — PRODUCTS PAGE (products.css)
   assets/css/products.css
   ============================================================ */

/* ── FILTER / SORT BAR ── */
.products-bar {
  background: white;
  border-bottom: 1px solid var(--border);
  padding: 18px 5%;
  position: sticky;
  top: 72px;
  z-index: 90;
  box-shadow: 0 2px 8px rgba(0,100,200,0.05);
}
.products-bar-inner {
  max-width: 1280px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.products-bar-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.filter-pill {
  padding: 7px 18px;
  border-radius: 100px;
  border: 1.5px solid var(--border);
  background: white;
  font-family: 'Sora', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: all .2s;
  white-space: nowrap;
}
.filter-pill:hover,
.filter-pill.active {
  background: var(--navy);
  color: white;
  border-color: var(--navy);
}
.products-count {
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
  white-space: nowrap;
}
.products-count strong { color: var(--navy); }

/* ── PRODUCTS GRID ── */
.products-section {
  padding: 48px 5% 80px;
  background: var(--off);
}
.products-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

/* ── PRODUCT CARD ── */
.product-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  transition: transform .25s, box-shadow .25s;
  position: relative;
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0,100,200,0.11);
}

/* Badge */
.product-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 100px;
  letter-spacing: .4px;
  text-transform: uppercase;
}
.badge-bestseller { background: #fff3e0; color: #e65100; }
.badge-new        { background: rgba(0,184,217,0.1); color: #0077a3; }
.badge-popular    { background: rgba(0,200,83,0.1);  color: #007c38; }
.badge-premium    { background: rgba(124,77,255,0.1);color: #4527a0; }
.badge-commercial { background: rgba(229,57,53,0.1); color: #c62828; }

/* Image */
.product-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, #e8f4fd, #d0eaf7);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.product-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 16px;
  transition: transform .4s ease;
}
.product-card:hover .product-img img {
  transform: scale(1.06);
}
.product-img-placeholder {
  font-size: 56px;
  opacity: .25;
}

/* Body */
.product-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.product-category {
  font-size: 11px;
  font-weight: 700;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: .8px;
  margin-bottom: 6px;
}
.product-name {
  font-family: 'Sora', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
  line-height: 1.4;
}
.product-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 14px;
  flex: 1;
}

/* Specs tags */
.product-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}
.spec-tag {
  background: var(--off);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
}

/* Price row */
.product-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
.product-price {
  font-family: 'Sora', sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: var(--blue);
  line-height: 1;
}
.product-price small {
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
  display: block;
  margin-top: 2px;
}
.product-price-old {
  font-size: 13px;
  color: var(--muted);
  text-decoration: line-through;
}

/* CTA buttons */
.product-actions {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}
.btn-enquire {
  flex: 1;
  padding: 10px 14px;
  border-radius: 9px;
  background: linear-gradient(135deg, #00b8d9, #1565c0);
  color: white;
  border: none;
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: transform .2s, box-shadow .2s;
  box-shadow: 0 4px 14px rgba(0,184,217,0.25);
}
.btn-enquire:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,184,217,0.35);
}
.btn-call-card {
  padding: 10px 14px;
  border-radius: 9px;
  background: var(--off);
  border: 1.5px solid var(--border);
  color: var(--navy);
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: background .2s, border-color .2s;
  white-space: nowrap;
}
.btn-call-card:hover {
  background: var(--cyan);
  border-color: var(--cyan);
  color: white;
}

/* ── CTA BANNER ── */
.products-cta {
  background: var(--navy);
  padding: 70px 5%;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.products-cta::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, rgba(0,184,217,0.1) 0%, transparent 65%);
}
.products-cta-inner { position: relative; z-index: 2; max-width: 680px; margin: auto; }
.products-cta h2 {
  font-size: clamp(26px, 3.5vw, 40px);
  font-weight: 800; color: white; margin-bottom: 14px;
}
.products-cta h2 em { font-style: normal; color: var(--cyan); }
.products-cta p {
  font-size: 16px; color: rgba(255,255,255,0.65);
  line-height: 1.7; margin-bottom: 32px;
}
.products-cta-btns {
  display: flex; gap: 14px; justify-content: center; flex-wrap: wrap;
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .products-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
  .product-body  { padding: 14px; }
  .product-name  { font-size: 14px; }
  .product-price { font-size: 18px; }
  .products-bar  { top: 68px; }
}
@media (max-width: 480px) {
  .products-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
}