/* Collection Banner */
.collection-banner {
  background-color: var(--primary-color);
  color: var(--secondary-color);
  padding: 2rem 5%;
  text-align: center;
  font-family: "Poppins", sans-serif;
}

.collection-banner h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.breadcrumb {
  font-size: 0.9rem;
}

.breadcrumb a {
  color: var(--secondary-color);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: white;
  text-decoration: underline;
}

/* Collection Container */
.collection-container {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 2rem;
  padding: 2rem 5%;
  max-width: 1400px;
  margin: 0 auto;
}

/* Filters Sidebar */
.filters {
  background-color: #fff;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.filter-section {
  margin-bottom: 2rem;
}

.filter-section h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-size: 1.1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #eee;
}

.filter-section ul {
  list-style: none;
}

.filter-section li {
  margin: 0.5rem 0;
  display: flex;
  align-items: center;
}

.filter-section input[type="checkbox"] {
  margin-right: 0.5rem;
}

.price-range {
  padding: 0.5rem 0;
}

.price-range input[type="range"] {
  width: 100%;
  margin-bottom: 1rem;
}

.price-inputs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.price-inputs input {
  width: 70px;
  padding: 0.3rem;
  border: 1px solid #ddd;
  border-radius: 4px;
}

/* Products Section */
.products-section {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  padding: 1.5rem;
}

.products-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #eee;
}

.products-sort {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.products-sort select {
  padding: 0.5rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  background-color: white;
}

/* Products Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.product-card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.product-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.product-info {
  padding: 1rem;
  text-align: center;
}

.product-info h3 {
  margin: 0.5rem 0;
  color: var(--text-color);
  font-size: 1rem;
}

.product-info .price {
  color: var(--primary-color);
  font-weight: bold;
  font-size: 1.1rem;
  margin: 0.5rem 0;
}

/* Color Variations */
.variations {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin: 0.5rem 0;
}

.color-variant {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px #ddd;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.color-variant:hover {
  transform: scale(1.2);
}

/* Color variant specific styles */
.color-variant[style*="white"] {
  background-color: #ffffff;
}

.color-variant[style*="black"] {
  background-color: #000000;
}

.color-variant[style*="blue"] {
  background-color: #3498db;
}

.color-variant[style*="brown"] {
  background-color: #8b4513;
}

.color-variant[style*="nude"] {
  background-color: #e8c39e;
}

.color-variant[style*="pink"] {
  background-color: #ff69b4;
}

.color-variant[style*="purple"] {
  background-color: #9b59b6;
}

.color-variant[style*="gray"] {
  background-color: #7f8c8d;
}

.color-variant[style*="cream"] {
  background-color: #f5f5dc;
}

.add-to-cart-btn {
  width: 100%;
  padding: 0.8rem;
  background-color: var(--secondary-color);
  color: var(--text-primary);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.add-to-cart-btn:hover {
  background-color: white;
}

.add-to-cart-btn:disabled {
  background-color: #bdc3c7;
  cursor: not-allowed;
}

/* Pagination Styles */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
  padding: 1rem 0;
}

.pagination button {
  background: none;
  border: 2px solid var(--secondary-color);
  color: var(--secondary-color);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.pagination button:hover {
  background: var(--secondary-color);
  color: var(--primary-color);
}

.pagination button:disabled {
  border-color: #ccc;
  color: #ccc;
  cursor: not-allowed;
}

.page-numbers {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.page-numbers span {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
}

.page-numbers span:not(.active):hover {
  background: var(--secondary-color);
  color: var(--primary-color);
}

.page-numbers span.active {
  background: var(--secondary-color);
  color: var(--primary-color);
}

/* Products Count Styles */
.products-count {
  font-size: 0.9rem;
  color: #666;
}

.products-count span {
  font-weight: 600;
  color: var(--primary-color);
}

/* No Results Styles */
.no-results {
  text-align: center;
  padding: 4rem 2rem;
  grid-column: 1 / -1;
}

.no-results i {
  font-size: 3rem;
  color: var(--secondary-color);
  margin-bottom: 1rem;
}

.no-results h3 {
  font-size: 1.8rem;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.no-results p {
  color: #666;
  margin-bottom: 1.5rem;
}

.view-all-btn {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  background-color: var(--secondary-color);
  color: var(--primary-color);
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.view-all-btn:hover {
  background-color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Search Results Styles */
.search-results {
  margin: 1rem 0;
  color: var(--text-color);
  font-size: 1.1rem;
}

/* Search Highlight */
.search-highlight {
  background-color: var(--secondary-color);
  padding: 0.2rem 0.4rem;
  border-radius: 2px;
}

/* Responsive Design */
@media (max-width: 968px) {
  .collection-container {
    grid-template-columns: 1fr;
  }

  .filters {
    position: fixed;
    top: 0;
    left: -300px;
    height: 100vh;
    width: 280px;
    z-index: 1000;
    transition: left 0.3s ease;
  }

  .filters.active {
    left: 0;
  }

  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  }
}

@media (max-width: 480px) {
  .products-top-bar {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }

  .pagination {
    flex-wrap: wrap;
  }

  .page-numbers span {
    width: 30px;
    height: 30px;
    font-size: 0.9rem;
  }

  .prev-page,
  .next-page {
    padding: 0.4rem 0.8rem;
    min-width: 80px;
    font-size: 0.9rem;
  }
}

/* Category Filters */
.category-filters {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.category-option {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 5px 0;
  transition: color 0.3s ease;
}

.category-option:hover {
  color: #007bff;
}

.category-option input[type="radio"] {
  margin: 0;
  cursor: pointer;
}

.category-option span {
  font-size: 14px;
}
