/* Products Grid Component Styles */

.products-grid-section {
  padding: 4rem 0;
}

.products-grid-header {
  text-align: center;
  margin-bottom: 3rem;
}

.products-grid-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--ltf-blue, #1a355e);
  margin-bottom: 1rem;
}

.products-grid-subtitle {
  font-size: 1.2rem;
  color: #666;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Filters Section */
.products-filters {
  background: #f8f9fa;
  border-radius: 16px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

.filters-row {
  display: flex;
  gap: 1.5rem;
  align-items: flex-end;
  flex-wrap: wrap;
}

.search-filter {
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  flex: 1;
  min-width: 250px;
}

.search-input {
  flex: 1;
  border: none;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  outline: none;
  background: transparent;
}

.search-input::placeholder {
  color: #999;
}

.search-btn {
  background: var(--ltf-gradient, linear-gradient(90deg, #b800b8 0%, #2f4fff 100%));
  color: #fff;
  border: none;
  padding: 0.75rem 1rem;
  cursor: pointer;
  transition: opacity 0.2s;
}

.search-btn:hover {
  opacity: 0.9;
}

.category-filter {
  min-width: 200px;
}

.category-select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  font-size: 1rem;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.2s;
}

.category-select:focus {
  outline: none;
  border-color: var(--ltf-blue, #1a355e);
}

.filter-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.filter-btn {
  background: var(--ltf-blue, #1a355e);
  color: #fff;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.filter-btn:hover {
  background: var(--ltf-black, #000);
}

.clear-filters {
  color: #666;
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem;
  transition: color 0.2s;
}

.clear-filters:hover {
  color: var(--ltf-blue, #1a355e);
}

/* Results Info */
.products-results-info {
  margin-bottom: 1.5rem;
  color: #666;
  font-size: 0.95rem;
}

/* Products Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.product-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.product-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
  transform: scale(1.05);
}

.product-info {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-categories-tags {
  margin-bottom: 0.75rem;
}

.product-category-tag {
  display: inline-block;
  background: linear-gradient(90deg, #b800b8 0%, #2f4fff 100%);
  color: #fff;
  padding: 0.25rem 0.6rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-right: 0.5rem;
  margin-bottom: 0.25rem;
}

.product-title {
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.3;
}

.product-title a {
  color: var(--ltf-blue, #1a355e);
  text-decoration: none;
  transition: color 0.2s;
}

.product-title a:hover {
  color: var(--ltf-black, #000);
}

.product-price {
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ltf-blue, #1a355e);
}

.product-excerpt {
  color: #666;
  line-height: 1.5;
  margin-bottom: 1.5rem;
  flex: 1;
}

.product-actions {
  margin-top: auto;
}

.product-actions .button {
  width: 100%;
  background: var(--ltf-gradient, linear-gradient(90deg, #b800b8 0%, #2f4fff 100%));
  color: #fff;
  border: none;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  display: block;
  transition: opacity 0.2s;
}

.product-actions .button:hover {
  opacity: 0.9;
  color: #fff;
}

/* No Products Found */
.no-products-found {
  text-align: center;
  padding: 4rem 2rem;
  color: #666;
}

.no-products-icon {
  font-size: 3rem;
  color: #ccc;
  margin-bottom: 1rem;
}

.no-products-found h3 {
  font-size: 1.5rem;
  color: var(--ltf-blue, #1a355e);
  margin-bottom: 0.5rem;
}

.btn-reset {
  display: inline-block;
  background: var(--ltf-blue, #1a355e);
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  margin-top: 1rem;
  transition: background 0.2s;
}

.btn-reset:hover {
  background: var(--ltf-black, #000);
  color: #fff;
}

/* Pagination */
.products-pagination {
  display: flex;
  justify-content: center;
  margin-top: 3rem;
}

.products-pagination .page-numbers {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 0.5rem;
}

.products-pagination .page-numbers li {
  list-style: none;
}

.products-pagination .page-numbers a,
.products-pagination .page-numbers span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  text-decoration: none;
  color: var(--ltf-blue, #1a355e);
  border: 2px solid #e9ecef;
  transition: all 0.2s;
  font-weight: 500;
}

.products-pagination .page-numbers a:hover {
  background: var(--ltf-blue, #1a355e);
  color: #fff;
  border-color: var(--ltf-blue, #1a355e);
}

.products-pagination .page-numbers .current {
  background: var(--ltf-gradient, linear-gradient(90deg, #b800b8 0%, #2f4fff 100%));
  color: #fff;
  border-color: transparent;
}

/* Responsive Design */
@media (max-width: 768px) {
  .products-grid-section {
    padding: 2rem 0;
  }
  
  .products-grid-title {
    font-size: 2rem;
  }
  
  .filters-row {
    flex-direction: column;
    align-items: stretch;
  }
  
  .search-filter,
  .category-filter {
    min-width: auto;
  }
  
  .filter-actions {
    justify-content: space-between;
  }
  
  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
  }
  
  .products-filters {
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  .products-grid {
    grid-template-columns: 1fr;
  }
  
  .filter-actions {
    flex-direction: column;
    gap: 1rem;
  }
  
  .filter-btn,
  .clear-filters {
    width: 100%;
    text-align: center;
  }
}
