/* Products Page Specific Styles */

.page-header {
  background: linear-gradient(135deg, hsl(var(--secondary)) 0%, hsl(var(--card)) 100%);
  padding: 4rem 0 3rem;
  border-bottom: 1px solid hsl(var(--border));
  margin-bottom: 0;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 50%, hsl(var(--accent) / 0.05) 0%, transparent 50%);
  pointer-events: none;
}

.page-header .container-custom {
  position: relative;
  z-index: 1;
}

.page-header h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2.25rem;
  font-weight: 700;
  color: hsl(var(--foreground));
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

@media (min-width: 768px) {
  .page-header h1 {
    font-size: 3rem;
  }
}

.page-header p {
  color: hsl(var(--muted-foreground));
  font-size: 1rem;
  line-height: 1.6;
  max-width: 600px;
}

.products-layout {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: flex-start;
}

@media (min-width: 1024px) {
  .products-layout {
    flex-direction: row;
    gap: 2rem;
    align-items: flex-start;
  }
}

.filters-sidebar {
  width: 100%;
  background-color: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: 0.75rem;
  padding: 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  position: relative;
  /* overflow: visible; */
}

.filters-sidebar form {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 0 1.5rem;
  padding-bottom: 0;
  min-height: 0;
  overflow-y: auto;
}

@media (min-width: 1024px) {
  .filters-sidebar {
    width: 21rem;
    flex-shrink: 0;
    position: sticky;
    top: 6rem;
    max-height: calc(100vh - 8rem);
  }
  
  .filters-sidebar form {
    max-height: calc(88vh - 8rem);
    overflow-y: auto;
    padding-bottom: 0;
  }
}

@media (max-width: 1023px) {
  .filters-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    max-width: 20rem;
    height: 100vh;
    background: hsl(var(--background));
    z-index: 100;
    padding: 0;
    overflow: hidden;
    transform: translateX(-100%);
    transition: transform 0.3s;
    box-shadow: var(--shadow-lg);
    border: none;
  }
  
  .filters-sidebar.active {
    transform: translateX(0);
  }
  
  .filters-sidebar form {
    height: 100%;
    overflow-y: auto;
    padding-bottom: 5.5rem;
  }
}

@media (min-width: 1024px) {
  .filters-sidebar {
    display: block !important;
    transform: none !important;
  }
}

.filters-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding: 1.5rem 1.5rem 1rem;
  border-bottom: 2px solid hsl(var(--accent));
  flex-shrink: 0;
}

.filters-header h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: hsl(var(--foreground));
}

.filters-header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.clear-filters-header-btn {
  background: transparent;
  border: 1.5px solid hsl(var(--border));
  color: hsl(var(--foreground));
  padding: 0.375rem 0.75rem;
  border-radius: 0.375rem;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.clear-filters-header-btn:hover {
  background: hsl(var(--secondary));
  border-color: hsl(var(--accent));
  color: hsl(var(--accent));
}

.close-filters {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: hsl(var(--muted-foreground));
  cursor: pointer;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.375rem;
  transition: all 0.3s ease;
}

.close-filters:hover {
  background: hsl(var(--secondary));
  color: hsl(var(--foreground));
}

@media (min-width: 1024px) {
  .close-filters {
    display: none;
  }
}

@media (max-width: 1023px) {
  .close-filters {
    display: flex;
  }
}

.filter-section {
  margin-bottom: 1rem;
  border-bottom: 1px solid hsl(var(--border));
  padding-bottom: 1rem;
}

.filter-section:last-of-type {
  border-bottom: none;
  margin-bottom: 1.5rem;
  padding-bottom: 0;
}

.filter-title-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  padding: 0.75rem 0;
  transition: all 0.3s ease;
  user-select: none;
}

.filter-title-toggle:hover {
  color: hsl(var(--accent));
}

.filter-title-toggle h3 {
  font-family: 'Playfair Display', serif;
  font-size: 0.9375rem;
  font-weight: 600;
  color: hsl(var(--foreground));
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.filter-icon {
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
  transition: transform 0.3s ease;
}

.filter-title-toggle.collapsed .filter-icon {
  transform: rotate(0deg);
}

.filter-title-toggle:not(.collapsed) .filter-icon {
  transform: rotate(180deg);
}

.filter-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0;
}

.filter-content.show {
  max-height: 1000px;
  padding-top: 1rem;
}

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

.filter-option {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.625rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  border: none;
  background: transparent;
  color: hsl(var(--muted-foreground));
  cursor: pointer;
  transition: all 0.3s;
  font-family: inherit;
  text-decoration: none;
}

.filter-option:hover {
  background-color: hsl(var(--secondary));
  color: hsl(var(--foreground));
}

.filter-option.active {
  background-color: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
  font-weight: 600;
}

.products-main {
  flex: 1;
  min-width: 0;
  width: 100%;
}

@media (min-width: 1024px) {
  .products-main {
    width: auto;
    flex: 1 1 0%;
  }
}

.products-toolbar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
  align-items: stretch;
}

@media (min-width: 640px) {
  .products-toolbar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.search-box {
  position: relative;
  flex: 1;
}

.search-box svg {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1rem;
  height: 1rem;
  color: hsl(var(--muted-foreground));
}

.search-box input {
  width: 100%;
  padding: 0.5rem 0.75rem 0.5rem 2.5rem;
  border: 1px solid hsl(var(--border));
  border-radius: 0.5rem;
  font-size: 0.875rem;
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  transition: border-color 0.3s;
}

.search-box input:focus {
  outline: none;
  border-color: hsl(var(--accent));
}

.toolbar-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

@media (max-width: 1023px) {
  .toolbar-actions .btn-icon:first-child {
    display: flex;
  }
}

@media (min-width: 1024px) {
  .toolbar-actions .btn-icon:first-child {
    display: none;
  }
}

.view-btn.active {
  background-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}

.results-count {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  margin-bottom: 1.5rem;
  margin-top: 0.5rem;
}

.products-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  width: 100%;
}

.products-grid.grid-view {
  grid-template-columns: repeat(1, 1fr);
}

@media (min-width: 640px) {
  .products-grid.grid-view {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .products-grid.grid-view {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}

.products-grid.list-view {
  grid-template-columns: 1fr;
  gap: 1rem;
  grid-template-columns: auto auto;
}

.products-grid.list-view .product-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1.5rem;
  padding: 1rem;
  border: 1px solid hsl(var(--border));
  border-radius: 0.5rem;
  background-color: hsl(var(--card));
  transition: all 0.3s ease;
}

.products-grid.list-view .product-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: hsl(var(--accent) / 0.3);
}

.products-grid.list-view .product-image {
  width: 120px;
  height: 120px;
  flex-shrink: 0;
  aspect-ratio: 1;
  border-radius: 0.5rem;
  overflow: hidden;
  background-color: hsl(var(--secondary));
  position: initial;
}
.products-grid.list-view .product-image .badge {
    font-size: 0.55rem;
}
.products-grid.list-view .product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.products-grid.list-view .product-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0;
}

.products-grid.list-view .product-name {
  font-size: 1.125rem;
  font-weight: 500;
  margin: 0;
  color: hsl(var(--foreground));
  text-decoration: none;
  transition: color 0.3s;
}

.products-grid.list-view .product-name:hover {
  color: hsl(var(--accent));
}

.products-grid.list-view .product-price {
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.products-grid.list-view .product-rating {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.products-grid.list-view .product-category {
  display: none;
}

.products-grid.list-view .product-badges,
.products-grid.list-view .product-actions,
.products-grid.list-view .product-add-cart {
  display: none;
}

/* Show out-of-stock badge in list view */
.products-grid.list-view .product-badges.product-badges-right {
  display: flex;
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  left: auto;
  z-index: 2;
}

/* Product card styles (reuse from home.css or define here) */
.product-card {
  background-color: hsl(var(--card));
  border-radius: 0.5rem;
  overflow: hidden;
  border: 1px solid hsl(var(--border));
  transition: all 0.3s ease-out;
}

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

.product-image {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background-color: hsl(var(--secondary));
}

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

.product-badges {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  z-index: 2;
}

.badge {
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: 0.25rem;
  position: relative;
}

.badge-new {
  background-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}

.badge-sale {
  background-color: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
}

.product-badges-right {
  left: auto;
  right: 0.75rem;
}

.badge-out-of-stock {
  background-color: #dc3545;
  color: #ffffff;
}

.product-actions {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  opacity: 0;
  transition: opacity 0.3s;
}

.product-card:hover .product-actions {
  opacity: 1;
}

.btn-icon-small {
  width: 2.25rem;
  height: 2.25rem;
  border: none;
  background-color: hsl(var(--secondary));
  color: hsl(var(--foreground));
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s;
}

.btn-icon-small:hover {
  background-color: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
}

.product-add-cart {
  position: absolute;
  inset-x: 0;
  bottom: 0;
  padding: 1rem;
  background: linear-gradient(to top, hsl(220 15% 15% / 0.8), transparent);
  opacity: 0;
  transition: opacity 0.3s;
  width: 100%;
}

.product-card:hover .product-add-cart {
  opacity: 1;
}

.product-info {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.product-category {
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.product-name {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 1.125rem;
  font-weight: 500;
  color: hsl(var(--foreground));
  margin-top: 0.25rem;
  margin-bottom: 0.25rem;
  text-decoration: none;
  transition: color 0.3s;
  line-height: 1.4;
}

.product-name:hover {
  color: hsl(var(--accent));
}

.product-rating {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: 0.5rem;
}

.stars {
  display: flex;
  gap: 0.125rem;
}

.star {
  font-size: 0.875rem;
  color: hsl(var(--border));
}

.star.filled {
  color: hsl(var(--accent));
}

.rating-text {
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
  margin-left: 0.25rem;
}

.product-price {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.price-current {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: hsl(var(--foreground));
}

.price-original {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  text-decoration: line-through;
}

/* Ensure proper spacing and alignment */
.container-custom.py-8 {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

@media (min-width: 1024px) {
  .container-custom.py-8 {
    padding-top: 2rem;
    padding-bottom: 2rem;
  }
}

/* Fix filter sidebar visibility on desktop */
@media (min-width: 1024px) {
  .filters-sidebar {
    display: block !important;
  }
}

/* Improve product card alignment */
.product-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.product-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Filter Checkbox Styles */
.filter-checkbox {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 0.5rem;
  cursor: pointer;
  border-radius: 0.375rem;
  transition: background-color 0.2s ease;
  position: relative;
  max-height: 40px;
}

.filter-checkbox:hover {
  background-color: hsl(var(--secondary));
}

.filter-checkbox input[type="checkbox"] {
  width: 1.25rem;
  height: 1.25rem;
  cursor: pointer;
  margin: 0;
  position: relative;
  appearance: none;
  -webkit-appearance: none;
  border: 2px solid hsl(var(--border));
  border-radius: 0.25rem;
  background-color: hsl(var(--background));
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.filter-checkbox input[type="checkbox"]:checked {
  background-color: hsl(var(--accent));
  border-color: hsl(var(--accent));
}

.filter-checkbox input[type="checkbox"]:checked::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: hsl(var(--accent-foreground));
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1;
}

.filter-checkbox input[type="checkbox"]:focus {
  outline: 2px solid hsl(var(--accent) / 0.3);
  outline-offset: 2px;
}

.filter-checkbox label {
  font-size: 0.875rem;
  color: hsl(var(--foreground));
  cursor: pointer;
  flex: 1;
  font-weight: 400;
  transition: color 0.2s ease;
}

.filter-checkbox:hover label {
  color: hsl(var(--accent));
}

/* Price Range Styles */
.price-range-wrapper {
  padding: 0.5rem 0;
}

.price-inputs {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.price-inputs input {
  flex: 1;
  padding: 0.625rem 0.875rem;
  border: 1.5px solid hsl(var(--border));
  border-radius: 0.5rem;
  font-size: 0.875rem;
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  font-weight: 500;
  transition: all 0.2s ease;
}

.price-inputs input:focus {
  outline: none;
  border-color: hsl(var(--accent));
  box-shadow: 0 0 0 3px hsl(var(--accent) / 0.1);
}

.price-separator {
  color: hsl(var(--muted-foreground));
  font-weight: 600;
  font-size: 1rem;
}

.price-slider-container {
  margin-top: 1rem;
}

.price-slider-wrapper {
  position: relative;
  height: 6px;
  background: hsl(var(--secondary));
  border-radius: 3px;
  margin-bottom: 0.75rem;
}

.price-slider {
  position: absolute;
  width: 100%;
  height: 6px;
  background: transparent;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  pointer-events: none;
  z-index: 2;
}

.price-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  background: hsl(var(--accent));
  border: 2px solid hsl(var(--background));
  border-radius: 50%;
  cursor: pointer;
  pointer-events: all;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  transition: all 0.2s ease;
}

.price-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
}

.price-slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  background: hsl(var(--accent));
  border: 2px solid hsl(var(--background));
  border-radius: 50%;
  cursor: pointer;
  pointer-events: all;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  transition: all 0.2s ease;
}

.price-slider::-moz-range-thumb:hover {
  transform: scale(1.15);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
}

.price-slider::-moz-range-track {
  background: transparent;
}

.price-display {
  display: flex;
  justify-content: space-between;
  font-size: 0.8125rem;
  color: hsl(var(--muted-foreground));
  font-weight: 500;
}

.price-min-display,
.price-max-display {
  background: hsl(var(--secondary));
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  color: hsl(var(--foreground));
  font-weight: 600;
}

/* No Products */
.no-products {
  text-align: center;
  padding: 3rem 2rem;
  background-color: hsl(var(--card));
  border-radius: 0.75rem;
  border: 1px solid hsl(var(--border));
  grid-column: 1 / -1;
}

.no-products h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: hsl(var(--foreground));
  margin-bottom: 0.75rem;
}

.no-products p {
  color: hsl(var(--muted-foreground));
  margin-bottom: 1.5rem;
}

/* Pagination */
.pagination-wrapper {
  margin-top: 3rem;
  display: flex;
  justify-content: center;
  padding-top: 2rem;
  border-top: 1px solid hsl(var(--border));
}

.pagination {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 0.5rem;
  align-items: center;
}

.page-item {
  display: flex;
  align-items: center;
}

.page-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  height: 2.5rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid hsl(var(--border));
  border-radius: 0.5rem;
  background-color: hsl(var(--card));
  color: hsl(var(--foreground));
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.3s ease;
  cursor: pointer;
}

.page-link:hover {
  background-color: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
  border-color: hsl(var(--accent));
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.page-item.active .page-link {
  background-color: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
  border-color: hsl(var(--accent));
  font-weight: 600;
}

.page-item.disabled .page-link {
  background-color: hsl(var(--secondary));
  color: hsl(var(--muted-foreground));
  border-color: hsl(var(--border));
  cursor: not-allowed;
  opacity: 0.6;
}

.page-item.disabled .page-link:hover {
  transform: none;
  box-shadow: none;
}

.page-link svg {
  width: 16px;
  height: 16px;
}

@media (max-width: 640px) {
  .pagination {
    gap: 0.25rem;
  }
  
  .page-link {
    min-width: 2rem;
    height: 2rem;
    padding: 0.375rem 0.5rem;
    font-size: 0.8125rem;
  }
}

/* Filter Action Buttons */
.filter-actions {
  position: sticky;
  bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: auto;
  padding: 1rem 1.5rem 1.5rem;
  background: hsl(var(--card));
  border-top: 1px solid hsl(var(--border));
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.05);
  z-index: 10;
}

.btn-filter-apply {
  width: 100%;
  padding: 0.875rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: none;
  cursor: pointer;
  background: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-filter-apply:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  background: hsl(var(--accent) / 0.9);
}

@media (min-width: 1024px) {
  .filter-actions {
    position: sticky;
    bottom: 0;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
  }
}

@media (max-width: 1023px) {
  .filter-actions {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 20rem;
    margin: 0;
    padding: 1rem 1.5rem;
    border-top: 2px solid hsl(var(--border));
  }
}

/* Enhanced Toolbar */
.products-toolbar {
  background: hsl(var(--card));
  padding: 1rem 1.25rem;
  border-radius: 0.75rem;
  border: 1px solid hsl(var(--border));
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.search-box {
  position: relative;
  flex: 1;
  max-width: 400px;
}

.search-box svg {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.125rem;
  height: 1.125rem;
  color: hsl(var(--muted-foreground));
  z-index: 1;
}

.search-box input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.75rem;
  border: 1.5px solid hsl(var(--border));
  border-radius: 0.5rem;
  font-size: 0.875rem;
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  transition: all 0.3s ease;
}

.search-box input:focus {
  outline: none;
  border-color: hsl(var(--accent));
  box-shadow: 0 0 0 3px hsl(var(--accent) / 0.1);
}

.sort-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: hsl(var(--foreground));
  white-space: nowrap;
}

.sort-select {
  padding: 0.625rem 2.5rem 0.625rem 0.875rem;
  border: 1.5px solid hsl(var(--border));
  border-radius: 0.5rem;
  font-size: 0.875rem;
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  cursor: pointer;
  transition: all 0.3s ease;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 12px;
}

.sort-select:focus {
  outline: none;
  border-color: hsl(var(--accent));
  box-shadow: 0 0 0 3px hsl(var(--accent) / 0.1);
}

.sort-select:hover {
  border-color: hsl(var(--accent) / 0.5);
}

/* Enhanced Results Count */
.results-count {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  margin-bottom: 1.5rem;
  margin-top: 0.75rem;
  padding: 0.5rem 0;
  font-weight: 500;
}

.results-count span {
  color: hsl(var(--foreground));
  font-weight: 600;
}

/* Enhanced Product Cards */
.product-card {
  background-color: hsl(var(--card));
  border-radius: 0.75rem;
  overflow: hidden;
  border: 1px solid hsl(var(--border));
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  border-color: hsl(var(--accent) / 0.3);
}
.product-image a {
  display: flex;
  height: 100%;
  width: 100%;
  position: relative;
}
.product-image {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: #fff;
}

.product-image img {
  width: auto;
  height: 100%;
  margin: auto;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.product-badges {
  position: absolute;
  top: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  z-index: 2;
}

.badge {
  padding: 0.375rem 0.625rem;
  font-size: 0.55rem;
  font-weight: 700;
  border-radius: 0.375rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.badge-sale {
  background: linear-gradient(135deg, hsl(var(--accent)) 0%, hsl(var(--accent) / 0.9) 100%);
  color: hsl(var(--accent-foreground));
}

.product-actions {
  position: absolute;
  top: 0.875rem;
  right: 0.875rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  opacity: 0;
  transform: translateX(10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 2;
}

.product-card:hover .product-actions {
  opacity: 1;
  transform: translateX(0);
}

.btn-icon-small {
  width: 2.5rem;
  height: 2.5rem;
  border: none;
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.btn-icon-small:hover {
  background-color: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.product-add-cart {
  position: absolute;
  inset-x: 0;
  bottom: 0;
  padding: 1.25rem;
  background: linear-gradient(to top, hsl(220 15% 15% / 0.95), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
  width: 100%;
  z-index: 2;
}

.product-card:hover .product-add-cart {
  opacity: 1;
}

.product-info {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  background: hsl(var(--card));
}

.product-category {
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 500;
}

.product-name {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 1.125rem;
  font-weight: 600;
  color: hsl(var(--foreground));
  margin-top: 0.25rem;
  margin-bottom: 0.25rem;
  text-decoration: none;
  transition: color 0.3s ease;
  line-height: 1.4;
}

.product-name:hover {
  color: hsl(var(--accent));
}

.product-price {
  display: flex;
  align-items: baseline;
  gap: 0.625rem;
  margin-top: 0.5rem;
}

.price-current {
  font-family: 'Playfair Display', serif;
  font-size: 1.375rem;
  font-weight: 700;
  color: hsl(var(--foreground));
}

.price-original {
  font-size: 0.9375rem;
  color: hsl(var(--muted-foreground));
  text-decoration: line-through;
  font-weight: 400;
}

/* View Toggle Buttons */
.view-btn {
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid hsl(var(--border));
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.view-btn:hover {
  border-color: hsl(var(--accent));
  background: hsl(var(--accent) / 0.1);
  color: hsl(var(--accent));
}

.view-btn.active {
  background: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
  border-color: hsl(var(--accent));
}

/* Responsive Improvements */
@media (max-width: 1023px) {
  .filters-sidebar {
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
  }
  
  .filter-actions {
    position: sticky;
    bottom: 0;
    background: hsl(var(--card));
    margin-bottom: 0;
    padding-bottom: 1rem;
  }
}

@media (max-width: 640px) {
  .products-toolbar {
    padding: 0.875rem 1rem;
  }
  
  .search-box {
    max-width: 100%;
  }
  
  .toolbar-actions {
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  
  .sort-label {
    width: 100%;
    margin-bottom: 0.25rem;
  }
  
  .sort-select {
    width: 100%;
    margin-right: 0;
  }
}

.color-box {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  border: 1px solid hsl(var(--border));
  margin-left: 0.5rem;
  margin-right: 0.5rem;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
  padding: 0.5rem;
  display: inline-block;
  vertical-align: middle;
  box-sizing: border-box;
  cursor: pointer;
  transition: all 0.3s ease;
}
.text-right {
  text-align: right;
}