.catalog-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.catalog-title {
  margin-bottom: 1.5rem;
  color: var(--header-bg);
}

.catalog-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
  padding: 1rem;
  background: #f8fafc;
  border-radius: 12px;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.filter-group label {
  font-size: 0.85rem;
  color: #64748b;
}

.filter-group select {
  padding: 0.5rem 0.75rem;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  min-width: 180px;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}

.product-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  transition: box-shadow 0.2s;
}

.product-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.product-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.product-card img,
.product-card-noimg {
  width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
  object-fit: cover;
  display: block;
}

.product-card-noimg {
  background: #e2e8f0;
}

.product-card-body {
  padding: 1rem;
}

.product-card-body h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: var(--header-bg);
}

.product-price {
  font-weight: 500;
  color: var(--accent);
}

.product-buy-btn {
  margin-top: 0.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.48rem 0.95rem;
  border-radius: 8px;
  text-decoration: none;
  color: #fff;
  font-size: 0.88rem;
  font-weight: 600;
  background: linear-gradient(135deg, #5f9805 0%, #7ac541 100%);
}

.product-buy-btn:hover {
  filter: brightness(0.95);
}

.catalog-empty {
  text-align: center;
  color: #64748b;
  padding: 3rem;
}

.catalog-subcategories-wrap {
  margin-bottom: 1.5rem;
  padding: 0.75rem;
  background: #f8fafc;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

.catalog-subcategories-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0;
  background: none;
  border: none;
  font-size: 1rem;
  font-weight: 400;
  color: var(--header-bg);
  cursor: pointer;
}

.toggle-icon {
  font-size: 0.75rem;
}

.catalog-subcategories-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid #e2e8f0;
}

.subcategory-link {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  color: var(--accent);
  text-decoration: none;
  font-size: 0.9rem;
}

.subcategory-link:hover {
  background: #eef7e8;
  border-color: var(--accent);
}

@media (max-width: 600px) {
  .catalog-filters {
    flex-direction: column;
  }
  .filter-group select {
    min-width: 100%;
  }
}
