/* ---------- RESET ---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #222;
  background: #fff;
}

/* ---------- PAGE HEADING ---------- */
h1 {
  text-align: center;
  font-size: 2rem;
  margin: 2rem 1rem 1.5rem;
  color: #b8860b;
  font-weight: bold;
}

/* ---------- FILTER BUTTONS ---------- */
.filter-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
  padding: 0 1rem;
}
.filter-btn {
  padding: 0.7rem 1.5rem;
  border: 2px solid #b8860b;
  background: transparent;
  color: #b8860b;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: 0.3s ease;
}
.filter-btn:hover,
.filter-btn.active {
  background: #b8860b;
  color: #fff;
}

/* ---------- CATEGORY GROUP ---------- */
.category-group {
  margin-bottom: 2rem;
}
.category-group h2 {
  color: #444;
  margin-bottom: 1rem;
  border-bottom: 2px solid #b8860b;
  display: inline-block;
  padding-bottom: 0.2rem;
}

/* ---------- PRODUCT GRID ---------- */
#filtered-products {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  padding: 0 1rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* ---------- PRODUCT CARD ---------- */
.product-card {
  background: #fafafa;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  overflow: hidden;
  text-align: center;
  padding: 1rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}
.product-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 1rem;
}
.product-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: #333;
}
.product-card p {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 0.3rem;
}
.product-card .price {
  font-size: 1.1rem;
  font-weight: bold;
  color: #b8860b;
  margin-top: 0.5rem;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 768px) {
  h1 { font-size: 1.7rem; }
  .filter-btn {
    font-size: 0.95rem;
    padding: 0.6rem 1.2rem;
  }
  .product-card img { height: 160px; }
}
@media (max-width: 480px) {
  h1 { font-size: 1.4rem; }
  .filter-buttons { gap: 0.6rem; }
  .filter-btn {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
  }
  .product-card img { height: 140px; }
}