/* Products Page Specific Styles */

/* Page Header */
.page-header {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: var(--white);
  text-align: center;
  padding: 6rem 0 3rem 0;
  margin-top: 80px;
}

.page-header h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-header p {
  font-size: 1.2rem;
  opacity: 0.9;
}

/* Filters Section */
.filters-section {
  background: var(--gray-light);
  padding: 2rem 0;
  border-bottom: 1px solid var(--gray-medium);
}

.filters-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  align-items: end;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.filter-group label {
  font-weight: 600;
  color: var(--text-dark);
  font-size: 0.9rem;
}

.filter-select,
.search-input {
  padding: 0.75rem 1rem;
  border: 2px solid var(--gray-medium);
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: var(--white);
}

.filter-select:focus,
.search-input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.search-group {
  display: flex;
  gap: 0.5rem;
}

.search-input {
  flex: 1;
}

.search-btn {
  background: var(--primary-color);
  color: var(--white);
  border: none;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1rem;
}

.search-btn:hover {
  background: var(--secondary-color);
  transform: translateY(-2px);
}

/* Products Grid Section */
.products-grid-section {
  padding: 3rem 0;
}

.products-count {
  margin-bottom: 2rem;
  color: var(--text-light);
  font-size: 0.9rem;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

/* Enhanced Product Card */
.product-card-full {
  background: var(--white);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  cursor: pointer;
}

.product-card-full:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}

.product-image-full {
  width: 100%;
  height: 280px;
  background: var(--gray-medium);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 1rem;
  position: relative;
  overflow: hidden;
}

.product-image-full img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.product-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--primary-color);
  color: var(--white);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
}

.product-info-full {
  padding: 1.5rem;
}

.product-name-full {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.product-price-full {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.product-description-full {
  color: var(--text-light);
  margin-bottom: 1rem;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.product-category {
  background: var(--accent-color);
  color: var(--text-dark);
  padding: 0.25rem 0.75rem;
  border-radius: 15px;
  font-weight: 500;
}

.product-stock {
  color: var(--text-light);
}

.product-stock.low-stock {
  color: #e74c3c;
  font-weight: 600;
}

.product-actions {
  display: flex;
  gap: 0.75rem;
}

.product-btn {
  flex: 1;
  padding: 0.75rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.product-btn-primary {
  background: var(--primary-color);
  color: var(--white);
}

.product-btn-primary:hover {
  background: var(--secondary-color);
  transform: translateY(-2px);
}

.product-btn-secondary {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.product-btn-secondary:hover {
  background: var(--primary-color);
  color: var(--white);
}

/* Loading and Empty States */
.loading-indicator {
  text-align: center;
  padding: 3rem;
  color: var(--text-light);
}

.loading-indicator i {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.no-products {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-light);
}

.no-products i {
  font-size: 4rem;
  margin-bottom: 2rem;
  color: var(--gray-medium);
}

.no-products h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

/* Modal Styles */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.modal-content {
  background: var(--white);
  border-radius: 15px;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-50px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 2rem;
  cursor: pointer;
  color: var(--text-light);
  z-index: 1;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  transition: all 0.3s ease;
}

.modal-close:hover {
  background: var(--primary-color);
  color: var(--white);
}

.modal-product-content {
  padding: 2rem;
}

/* Active navigation link */
.nav-links a.active {
  color: var(--primary-color);
  font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
  .page-header {
    padding: 4rem 0 2rem 0;
  }
  
  .page-header h1 {
    font-size: 2rem;
  }
  
  .filters-container {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .search-group {
    flex-direction: column;
  }
  
  .products-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
  }
  
  .product-actions {
    flex-direction: column;
  }
  
  .modal {
    padding: 1rem;
  }
  
  .modal-product-content {
    padding: 1rem;
  }
}

@media (max-width: 480px) {
  .products-grid {
    grid-template-columns: 1fr;
  }
  
  .product-info-full {
    padding: 1rem;
  }
}