/* Catalog Hero Section */
.catalog-hero {
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
    url("images/brands-hero.jpg");
  background-size: cover;
  background-position: center;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--light-text);
  text-align: center;
  margin-top: 90px;
}

.catalog-hero-content h1 {
  font-size: 3rem;
  margin-bottom: 15px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.catalog-hero-content p {
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto;
}

/* Filter Section */
.filter-section {
  padding: 50px 0 20px;
  background-color: var(--light-bg);
}

.filter-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.filter-container h2 {
  margin-bottom: 25px;
  color: var(--primary-color);
  font-size: 1.8rem;
}

.filter-options {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  margin-bottom: 25px;
}

.filter-btn {
  padding: 10px 20px;
  background-color: #fff;
  border: 2px solid var(--primary-color);
  border-radius: 30px;
  color: var(--primary-color);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
  background-color: var(--primary-color);
  color: #fff;
}

.search-container {
  display: flex;
  width: 100%;
  max-width: 500px;
  margin-bottom: 20px;
}

.search-container input {
  flex: 1;
  padding: 12px 15px;
  border: 1px solid var(--border-color);
  border-radius: 4px 0 0 4px;
  font-family: inherit;
  font-size: 1rem;
}

.search-container button {
  padding: 0 20px;
  background-color: var(--primary-color);
  color: #fff;
  border: none;
  border-radius: 0 4px 4px 0;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.search-container button:hover {
  background-color: var(--dark-bg);
}

/* Products Grid */
.catalog-products {
  padding: 50px 0 100px;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 30px;
  position: relative;
  min-height: 400px;
}

.product-card {
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.product-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.product-image {
  height: 220px;
  overflow: hidden;
  position: relative;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.5s ease;
  background-color: #f9f9f9;
  padding: 20px;
}

.product-card:hover .product-image img {
  transform: scale(1.05);
}

.product-category {
  position: absolute;
  top: 15px;
  right: 15px;
  background-color: var(--primary-color);
  color: #fff;
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  z-index: 1;
}

.product-info {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.product-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 10px;
  text-align: center;
}

.product-code {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 5px;
  text-align: center;
}

.product-quantity {
  color: #666;
  font-size: 0.9rem;
  text-align: center;
}

/* Loading Spinner */
.loading-spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: var(--primary-color);
}

.loading-spinner i {
  font-size: 3rem;
  margin-bottom: 15px;
}

/* No Results Message */
.no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 50px 0;
  color: #666;
}

.no-results i {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.no-results h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

/* Responsive Styles */
@media (max-width: 992px) {
  .catalog-hero-content h1 {
    font-size: 2.5rem;
  }

  .filter-options {
    flex-direction: row;
  }
}

@media (max-width: 768px) {
  .catalog-hero {
    height: 300px;
  }

  .catalog-hero-content h1 {
    font-size: 2rem;
  }

  .filter-options {
    gap: 10px;
  }

  .filter-btn {
    padding: 8px 15px;
    font-size: 0.9rem;
  }
}

@media (max-width: 576px) {
  .catalog-hero-content h1 {
    font-size: 1.8rem;
  }

  .filter-container h2 {
    font-size: 1.5rem;
  }

  .products-grid {
    grid-template-columns: 1fr;
  }
}
