/* WooCommerce Category + Product Pages */

.page-title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 20px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.product-card {
  background: #fff;
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
}

.product-card img {
  width: 100%;
  height: 200px;
  object-fit: contain;
}

.add_to_cart_button,
.add-cart {
  background: #1e7a3f;
  color: #fff;
  padding: 10px 14px;
  border-radius: 6px;
  text-align: center;
}

/* BASIC RESET */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #f3f5f7;
}

.container {
  width: 92%;
  max-width: 1200px;
  margin: auto;
}

h2 {
  margin: 25px 0;
}

/* ================= FILTER BAR ================= */
.filter-bar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 25px;
}

.filter-btn {
  padding: 10px 18px;
  border-radius: 30px;
  border: 1px solid #ccc;
  background: #fff;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
}

.filter-btn:hover {
  background: #eee;
}

.filter-btn.active {
  background: #2e7d32;
  color: #fff;
  border-color: #2e7d32;
}

/* ================= PRODUCT GRID ================= */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 22px;
}

/* ================= PRODUCT CARD ================= */
.product-card {
  background: #fff;
  padding: 15px;
  border-radius: 10px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
  transition: transform 0.3s;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-4px);
}

.product-card img {
  width: 100%;
  height: 170px;
  object-fit: contain;
}

/* BRAND LABELS */
.brand {
  display: inline-block;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 12px;
  margin: 8px 0;
  font-weight: 600;
}

.brand-kirloskar { background:#2e7d32; color:#fff; }
.brand-greaves   { background:#02b9d1; color:#000; }
.brand-vst       { background:#c42e23; color:#fff; }
.brand-sukala    { background:#bfe70b; color:#000; }


/* PRODUCT NAME (CLICKABLE) */
.product-name {
  font-size: 16px;
  font-weight: 600;
  color: #070707;
  text-decoration: none;
  margin-bottom: 6px;
}

.product-name:hover {
    color: darkred;
    text-decoration: underline;
}

/* PRICE + CART */
.action-row {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.price {
  font-size: 18px;
  font-weight: bold;
}

.add-cart {
  background: #f9a825;
  border: none;
  padding: 8px 14px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
}