/* Products Page Specific Styles */

/* Products Header */
.products-header {
  background: linear-gradient(135deg, #526CAC, #3f5889);
  padding: 80px 20px;
  text-align: center;
  color: #fff;
}

.products-header-content {
  max-width: 800px;
  margin: 0 auto;
  animation: fadeInUp 0.8s ease;
}

.products-title {
  font-size: 48px;
  font-weight: 700;
  margin: 0 0 20px 0;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.2);
}

.products-subtitle {
  font-size: 20px;
  font-weight: 400;
  margin: 0;
  opacity: 0.95;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Category Filter */
.category-filter {
  background: #fff;
  padding: 30px 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 70px;
  z-index: 100;
}

.filter-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
}

.filter-btn {
  background: #f8f9fa;
  border: 2px solid #e0e0e0;
  color: #555;
  padding: 12px 28px;
  border-radius: 30px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  outline: none;
}

.filter-btn:hover {
  background: #e8f4f8;
  border-color: #526CAC;
  color: #526CAC;
  transform: translateY(-2px);
}

.filter-btn.active {
  background: linear-gradient(135deg, #526CAC, #3f5889);
  border-color: #3f5889;
  color: #fff;
  box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

/* Products Section */
.products-section {
  padding: 60px 20px;
  background: #f8f9fa;
  min-height: 500px;
}

.products-container {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

/* Product Card */
.product-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  cursor: pointer;
  animation: fadeIn 0.5s ease;
  text-decoration: none;
  color: inherit;
  display: block;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.product-card.hidden {
  display: none;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.product-image {
  width: 100%;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  padding: 20px;
  overflow: hidden;
}

.product-image img {
  width: 80%;
  height: 80%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
  transform: scale(1.1);
}

.product-info {
  padding: 20px;
  text-align: center;
  border-top: 1px solid #f0f0f0;
}

.product-name {
  font-size: 15px;
  font-weight: 600;
  color: #2c3e50;
  margin: 0 0 10px 0;
  line-height: 1.4;
  min-height: 42px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-category {
  font-size: 13px;
  color: #526CAC;
  font-weight: 500;
  margin: 0;
  text-transform: capitalize;
}

.product-category::before {
  content: '• ';
  margin-right: 4px;
}

/* Empty State */
.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px 20px;
}

.empty-state h3 {
  font-size: 24px;
  color: #7f8c8d;
  margin: 0 0 10px 0;
}

.empty-state p {
  font-size: 16px;
  color: #95a5a6;
  margin: 0;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .products-container {
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
  }
}

@media (max-width: 992px) {
  .products-header {
    padding: 60px 20px;
  }

  .products-title {
    font-size: 40px;
  }

  .products-subtitle {
    font-size: 18px;
  }

  .products-container {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }

  .product-name {
    font-size: 14px;
    min-height: 40px;
  }

  .product-category {
    font-size: 12px;
  }
}

@media (max-width: 768px) {
  .products-header {
    padding: 50px 20px;
  }

  .products-title {
    font-size: 36px;
  }

  .products-subtitle {
    font-size: 16px;
  }

  .category-filter {
    padding: 20px 15px;
    top: 60px;
  }

  .filter-container {
    gap: 10px;
  }

  .filter-btn {
    padding: 10px 20px;
    font-size: 14px;
  }

  .products-section {
    padding: 40px 15px;
  }

  .products-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .product-image {
    padding: 15px;
  }

  .product-info {
    padding: 15px;
  }

  .product-name {
    font-size: 13px;
    min-height: 38px;
  }
}

@media (max-width: 480px) {
  .products-header {
    padding: 40px 15px;
  }

  .products-title {
    font-size: 28px;
  }

  .products-subtitle {
    font-size: 15px;
  }

  .category-filter {
    padding: 15px 10px;
  }

  .filter-btn {
    padding: 8px 16px;
    font-size: 13px;
  }

  .products-section {
    padding: 30px 10px;
  }

  .products-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .product-image {
    padding: 12px;
  }

  .product-info {
    padding: 12px;
  }

  .product-name {
    font-size: 12px;
    min-height: 36px;
  }

  .product-category {
    font-size: 11px;
  }
}

/* Product Count Display */
.product-count {
  text-align: center;
  padding: 20px;
  font-size: 16px;
  color: #7f8c8d;
  background: #fff;
  border-radius: 8px;
  margin: 0 auto 30px;
  max-width: 300px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.product-count strong {
  color: #526CAC;
  font-weight: 700;
}

