/* ==============================
   Products Catalog Styles
   ============================== */

/* Filter Bar */
.filter-bar {
  background: #fff8e1;
  border-bottom: 2px solid #f5d26b;
  padding: 16px 0;
}

.filter-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 14px;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.filter-group label {
  font-size: 0.78rem;
  font-weight: 600;
  color: #7a5c20;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.filter-group select {
  padding: 8px 12px;
  border: 1px solid #d4aa57;
  border-radius: 6px;
  background: #fff;
  font-size: 0.9rem;
  color: #333;
  min-width: 160px;
  cursor: pointer;
}

/* Results info */
.results-info {
  padding: 12px 0 4px;
  color: #666;
  font-size: 0.88rem;
}

/* ==============================
   Product Cards Grid
   ============================== */
#productGrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
  padding: 24px 0 48px;
}

.product-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 3px 12px rgba(0,0,0,0.09);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid #ede0b8;
  transition: box-shadow 0.2s, transform 0.2s;
  text-decoration: none;
  color: inherit;
}

.product-card:hover {
  box-shadow: 0 6px 20px rgba(191,160,89,0.25);
  transform: translateY(-2px);
}

.product-card-img-wrap {
  width: 100%;
  height: 200px;
  background: #fdf6e3;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.product-card-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-card-img-placeholder {
  font-size: 2.5rem;
  color: #e0d3a0;
}

.product-card-body {
  padding: 14px 16px 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.product-card-category {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #bfa059;
}

.product-card-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: #333;
}

.product-card-desc {
  font-size: 0.85rem;
  color: #666;
  line-height: 1.5;
  flex: 1;
}

.product-card-cta {
  margin-top: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #bfa059;
}

.product-card:hover .product-card-cta { text-decoration: underline; }

/* Misc */
.loading-msg {
  grid-column: 1 / -1;
  text-align: center;
  color: #aaa;
  padding: 40px 0;
  font-size: 1.05rem;
}

.hidden { display: none !important; }

/* Load More */
.load-more-wrap {
  display: flex;
  justify-content: center;
  padding: 28px 0 8px;
}

.btn-load-more {
  background: #bfa059;
  color: white;
  border: none;
  padding: 10px 28px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background 0.2s;
}

.btn-load-more:hover { background: #a08040; }
.btn-load-more:disabled { opacity: 0.6; cursor: default; }

/* Responsive */
@media (max-width: 768px) {
  .filter-controls {
    flex-direction: column;
    align-items: stretch;
  }

  #productGrid {
    grid-template-columns: 1fr;
  }
}
