/**
 * PriceCompare Modern Design
 * Matches reference image with clean sidebar filters and card-based product grid
 * Uses consistent flat design system with rose/primary theme from modern-frontend.css
 */

/* =====================================================
   Layout Container
   ===================================================== */
.search-page-chawkbazar {
  background: #f7f7f7;
  min-height: 100vh;
  padding: 24px 0 48px;
}

.search-page-chawkbazar .container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 16px;
}

/* =====================================================
   Sidebar Filters - PriceCompare Style
   ===================================================== */
.search-sidebar-filters,
.search-sidebar-pricecompare {
  background: #ffffff;
  border-radius: 8px;
  padding: 24px;
  box-shadow: none;
  border: 1px solid #e2e8f0;
  overflow-y: auto;
  transition: all 0.2s ease;
}

/* Filters Header */
.sidebar-filters-header,
.filters-header-pricecompare {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid #f0f0f0;
}

.sidebar-filters-header h3,
.filters-title-pricecompare {
  font-size: 20px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sidebar-filters-header h3 i {
  color: #7C4A85;
}

.btn-clear-filters,
.btn-reset-filters {
  background: transparent;
  border: none;
  color: #7C4A85;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: 4px;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-clear-filters:hover,
.btn-reset-filters:hover {
  background: #F4E7F3;
}

/* Filter Sections */
.filter-section,
.filter-section-pricecompare {
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid #e8e8e8;
}

.filter-section:last-child,
.filter-section-pricecompare:last-child {
  border-bottom: none;
}

.filter-section.collapsed .filter-options,
.filter-section-pricecompare.collapsed .filter-options-pricecompare {
  display: none;
}

.filter-section-title,
.filter-section-header-pricecompare {
  font-size: 16px;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0 0 16px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
  background: transparent;
  border: none;
  width: 100%;
  padding: 0;
  text-align: left;
}

.filter-section-title-text {
  font-size: 16px;
  font-weight: 600;
  color: #1a1a1a;
}

.filter-toggle-icon {
  font-size: 12px;
  color: #999;
  transition: transform 0.2s;
}

.filter-section.collapsed .filter-toggle-icon,
.filter-section-pricecompare.collapsed .filter-toggle-icon {
  transform: rotate(-180deg);
}

.filter-options,
.filter-options-pricecompare {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Checkbox & Radio Styles */
.filter-checkbox-label,
.filter-radio-label,
.filter-checkbox-label-pricecompare,
.filter-radio-label-pricecompare {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
}

.filter-checkbox-label:hover,
.filter-radio-label:hover,
.filter-checkbox-label-pricecompare:hover,
.filter-radio-label-pricecompare:hover {
  color: #7C4A85;
}

/* Hide native inputs */
.filter-checkbox-label input[type="checkbox"],
.filter-radio-label input[type="radio"],
.filter-checkbox-label-pricecompare input[type="checkbox"],
.filter-radio-label-pricecompare input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

/* Custom Checkbox */
.checkbox-custom,
.checkbox-custom-pricecompare {
  position: relative;
  width: 20px;
  height: 20px;
  border: 2px solid #d0d0d0;
  border-radius: 4px;
  background: #fff;
  flex-shrink: 0;
  transition: all 0.2s;
}

.filter-checkbox-label input[type="checkbox"]:checked + .checkbox-custom,
.filter-checkbox-label-pricecompare input[type="checkbox"]:checked + .checkbox-custom-pricecompare {
  background: #7C4A85;
  border-color: #7C4A85;
}

.filter-checkbox-label input[type="checkbox"]:checked + .checkbox-custom::after,
.filter-checkbox-label-pricecompare input[type="checkbox"]:checked + .checkbox-custom-pricecompare::after {
  content: '';
  position: absolute;
  left: 6px;
  top: 3px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.filter-checkbox-label:hover .checkbox-custom,
.filter-checkbox-label-pricecompare:hover .checkbox-custom-pricecompare {
  border-color: #7C4A85;
}

/* Custom Radio */
.radio-custom,
.radio-custom-pricecompare {
  position: relative;
  width: 20px;
  height: 20px;
  border: 2px solid #d0d0d0;
  border-radius: 50%;
  background: #fff;
  flex-shrink: 0;
  transition: all 0.2s;
}

.filter-radio-label input[type="radio"]:checked + .radio-custom,
.filter-radio-label-pricecompare input[type="radio"]:checked + .radio-custom-pricecompare {
  border-color: #7C4A85;
}

.filter-radio-label input[type="radio"]:checked + .radio-custom::after,
.filter-radio-label-pricecompare input[type="radio"]:checked + .radio-custom-pricecompare::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 10px;
  height: 10px;
  background: #7C4A85;
  border-radius: 50%;
}

.filter-radio-label:hover .radio-custom,
.filter-radio-label-pricecompare:hover .radio-custom-pricecompare {
  border-color: #7C4A85;
}

.filter-label-text,
.filter-label-text-pricecompare {
  font-size: 14px;
  color: #333;
  flex: 1;
}

.filter-checkbox-label input[type="checkbox"]:checked ~ .filter-label-text,
.filter-radio-label input[type="radio"]:checked ~ .filter-label-text,
.filter-checkbox-label-pricecompare input[type="checkbox"]:checked ~ .filter-label-text-pricecompare,
.filter-radio-label-pricecompare input[type="radio"]:checked ~ .filter-label-text-pricecompare {
  color: #1a1a1a;
  font-weight: 500;
}

/* Filter Count Badge */
.filter-count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 20px;
  padding: 0 6px;
  background: #f0f0f0;
  color: #666;
  font-size: 12px;
  font-weight: 600;
  border-radius: 10px;
  margin-left: auto;
  flex-shrink: 0;
}

.filter-checkbox-label.active .filter-count-badge,
.filter-radio-label.active .filter-count-badge,
.filter-checkbox-label-pricecompare.active .filter-count-badge,
.filter-radio-label-pricecompare.active .filter-count-badge {
  background: #7C4A85;
  color: white;
}

.filter-checkbox-label:hover .filter-count-badge,
.filter-radio-label:hover .filter-count-badge,
.filter-checkbox-label-pricecompare:hover .filter-count-badge,
.filter-radio-label-pricecompare:hover .filter-count-badge {
  background: #e8e8e8;
  color: #333;
}

.filter-checkbox-label.active:hover .filter-count-badge,
.filter-radio-label.active:hover .filter-count-badge,
.filter-checkbox-label-pricecompare.active:hover .filter-count-badge,
.filter-radio-label-pricecompare.active:hover .filter-count-badge {
  background: #357abd;
  color: white;
}

.filter-option-disabled {
  opacity: 0.45;
  pointer-events: none;
  cursor: not-allowed;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
}

.filter-facet-search {
  width: 100%;
  margin: 0 0 10px;
  padding: 8px 10px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  font-size: 13px;
  background: #f8fafc;
}

.filter-color-swatch {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.15);
  margin-right: 6px;
  flex-shrink: 0;
  vertical-align: middle;
}

.filter-range-form .filter-range-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 10px;
}

.filter-range-form .filter-range-label {
  font-size: 12px;
  color: #64748b;
  font-weight: 600;
}

.filter-range-form .filter-range-label input {
  margin-top: 4px;
  width: 100%;
}

/* Show More Button */
.btn-show-more-filters {
  width: 100%;
  padding: 10px 16px;
  margin-top: 12px;
  background: transparent;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  color: #7C4A85;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-show-more-filters:hover {
  background: #f0f7ff;
  border-color: #7C4A85;
}

.btn-show-more-filters i {
  font-size: 12px;
}

.btn-show-more-filters.expanded {
  color: #666;
}

.btn-show-more-filters.expanded:hover {
  background: #f5f5f5;
  border-color: #999;
  color: #333;
}

/* Hidden filter items */
.filter-item-hidden {
  display: none;
}

/* Price Range Slider */
.price-range-slider,
.price-range-form-pricecompare {
  margin: 20px 0;
}

.price-slider-container {
  padding: 16px 0;
}

.price-values-display {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
  font-size: 14px;
  font-weight: 600;
  color: #2563eb;
}

.price-slider-wrapper {
  position: relative;
  height: 40px;
  margin-bottom: 20px;
}

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

.price-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  background: #2563eb;
  border: 3px solid white;
  border-radius: 50%;
  cursor: pointer;
  pointer-events: auto;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  transition: all 0.2s;
}

.price-slider::-webkit-slider-thumb:hover {
  background: #1d4ed8;
  transform: scale(1.1);
}

.price-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  background: #2563eb;
  border: 3px solid white;
  border-radius: 50%;
  cursor: pointer;
  pointer-events: auto;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  transition: all 0.2s;
}

.price-slider::-moz-range-thumb:hover {
  background: #1d4ed8;
  transform: scale(1.1);
}

#minPriceSlider {
  z-index: 2;
  background: linear-gradient(to right, #ddd 0%, #2563eb 0%, #2563eb 100%, #ddd 100%);
}

#maxPriceSlider {
  z-index: 1;
  background: transparent;
}

.price-range-inputs,
.price-range-inputs-pricecompare {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
}

.price-range-inputs input,
.price-range-inputs-pricecompare input,
.price-input-pricecompare {
  flex: 1;
  padding: 10px 12px;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  font-size: 14px;
  text-align: center;
  color: #333;
}

.price-range-inputs input:focus,
.price-range-inputs-pricecompare input:focus,
.price-input-pricecompare:focus {
  outline: none;
  border-color: #7C4A85;
  box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

.price-range-inputs span,
.price-separator {
  color: #999;
  font-weight: 600;
}

.btn-apply-price,
.btn-apply-price-pricecompare {
  width: 100%;
  padding: 12px;
  background: #7C4A85;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 12px;
  transition: all 0.2s;
}

.btn-apply-price:hover,
.btn-apply-price-pricecompare:hover {
  background: #357abd;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
}

/* =====================================================
   Results Header
   ===================================================== */
.search-results-header,
.search-results-header-pricecompare {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding: 16px 24px;
  background: white;
  border-radius: 8px;
  box-shadow: none;
  border: 1px solid #e2e8f0;
  transition: all 0.2s ease;
}

.results-info,
.results-info-pricecompare {
  flex: 1;
}

.results-count-text {
  font-size: 15px;
  color: #666;
}

.results-count-heading {
  font-size: 18px;
  color: #1a1a1a;
  margin: 0;
  font-weight: 400;
}

.results-count-heading strong {
  font-weight: 700;
}

.results-sorting,
.results-controls-pricecompare {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sort-wrapper-pricecompare {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sort-label,
.sort-label-pricecompare {
  font-size: 14px;
  color: #666;
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  font-weight: 500;
}

.sort-select,
.sort-select-pricecompare {
  padding: 8px 36px 8px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  font-size: 14px;
  color: #333;
  background: white 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") no-repeat right 12px center;
  background-size: 12px;
  cursor: pointer;
  appearance: none;
  transition: all 0.2s;
  min-width: 180px;
}

.sort-select:hover,
.sort-select-pricecompare:hover {
  border-color: #7C4A85;
}

.sort-select:focus,
.sort-select-pricecompare:focus {
  outline: none;
  border-color: #7C4A85;
  box-shadow: 0 0 0 3px rgba(124, 74, 133, 0.1);
}

/* View Toggle Buttons */
.view-toggle-pricecompare {
  display: flex;
  gap: 8px;
  margin-left: 16px;
  border-left: 1px solid #e8e8e8;
  padding-left: 16px;
}

.view-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e0e0e0;
  background: white;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  color: #666;
}

.view-btn:hover {
  border-color: #7C4A85;
  color: #7C4A85;
}

.view-btn.active {
  background: #7C4A85;
  border-color: #7C4A85;
  color: white;
}

/* =====================================================
   Product Cards Grid
   ===================================================== */
.products-grid-pricecompare {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.product-card-modern,
.product-card-pricecompare {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.2s ease;
  box-shadow: none;
  border: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.product-card-modern:hover,
.product-card-pricecompare:hover {
  border-color: #7C4A85;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(124, 74, 133, 0.1);
}

.product-card-link,
.product-link-pricecompare {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* Product Image */
.product-card-image-wrapper,
.product-image-wrapper-pricecompare {
  position: relative;
  width: 100%;
  padding-top: 70%; /* 1:1 Aspect Ratio */
  background: #ffffff;
  overflow: hidden;
}

.product-img-modern,
.product-image-pricecompare {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 16px;
  transition: transform 0.3s;
}

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

.product-img-placeholder-modern,
.product-image-placeholder-pricecompare {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ccc;
  font-size: 48px;
}

/* Discount Badge */
.discount-badge-pricecompare {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #ff4757;
  color: white;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 700;
  z-index: 1;
  box-shadow: 0 2px 8px rgba(255, 71, 87, 0.3);
}

/* Product Info */
.product-card-info-modern,
.product-info-pricecompare {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

/* Category Badge */
.product-category-badge {
  display: inline-block;
  padding: 4px 10px;
  background: #f0f0f0;
  color: #666;
  font-size: 12px;
  font-weight: 500;
  border-radius: 4px;
  width: fit-content;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Product Name */
.product-card-title-modern,
.product-name-pricecompare {
  font-size: 15px;
  font-weight: 600;
  color: #1a1a1a;
  line-height: 1.4;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Rating */
.product-rating-modern,
.product-rating-pricecompare {
  display: flex;
  align-items: center;
  gap: 6px;
}

.rating-star-filled {
  color: #fbbf24;
  font-size: 14px;
}

.rating-star-empty {
  color: #e5e7eb;
  font-size: 14px;
}

.product-rating-value,
.rating-value-pricecompare {
  font-size: 13px;
  color: #666;
  font-weight: 500;
  margin-left: 4px;
}

/* Price */
.product-card-price-modern,
.product-price-wrapper-pricecompare {
  margin-top: auto;
}

.price-modern,
.product-price-pricecompare {
  font-size: 20px;
  font-weight: 700;
  color: #1a1a1a;
  display: block;
}

.product-original-price {
  font-size: 14px;
  color: #999;
  text-decoration: line-through;
  margin-top: 4px;
}

/* Retailer */
.product-retailer-pricecompare {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #666;
  margin-top: 8px;
}

.product-retailer-pricecompare i {
  color: #7C4A85;
}

/* Stock Status */
.product-stock-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  margin-top: 8px;
}

.product-stock-status.in-stock {
  color: #10b981;
}

.product-stock-status.in-stock i {
  color: #10b981;
}

.product-stock-status.out-of-stock {
  color: #ef4444;
}

.product-stock-status.out-of-stock i {
  color: #ef4444;
}

.product-stock-status i {
  font-size: 8px;
}

/* View Offers Button */
.view-offers-btn-pricecompare {
  display: block;
  width: calc(100% - 32px);
  margin: 0 16px 16px 16px;
  padding: 12px;
  background: linear-gradient(135deg, #7C4A85 0%, #4A2E4D 100%);
  color: white;
  text-align: center;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  border-radius: 6px;
  border: none;
  transition: all 0.2s ease;
}

.view-offers-btn-pricecompare:hover {
  background: linear-gradient(135deg, #4A2E4D 0%, #3A243D 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(124, 74, 133, 0.2);
  color: white;
}

.product-img-placeholder-modern {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ccc;
  font-size: 48px;
}

/* Product Info */
.product-card-info-modern {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.product-card-brand {
  font-size: 12px;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.product-card-title-modern {
  font-size: 15px;
  color: #1a1a1a;
  font-weight: 500;
  line-height: 1.4;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 42px;
}

/* Product Price */
.product-card-price-modern {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid #f0f0f0;
}

.price-modern {
  font-size: 22px;
  color: #1a1a1a;
  font-weight: 700;
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.price-currency {
  font-size: 14px;
  color: #666;
  font-weight: 500;
}

.product-merchants-modern {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: #7C4A85;
  margin-top: 8px;
  font-weight: 500;
}

.product-merchants-modern i {
  font-size: 11px;
}

/* Product Rating */
.product-rating-modern {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
}

.product-rating-modern i {
  font-size: 12px;
}

.product-rating-value {
  font-size: 13px;
  color: #666;
  font-weight: 600;
}

/* =====================================================
   View Toggle Buttons (Grid/List)
   ===================================================== */
.view-toggle-buttons {
  display: flex;
  gap: 8px;
  margin-left: 16px;
}

.view-toggle-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e0e0e0;
  background: white;
  border-radius: 6px;
  cursor: pointer;
  color: #666;
  transition: all 0.2s;
}

.view-toggle-btn:hover {
  border-color: #7C4A85;
  color: #7C4A85;
}

.view-toggle-btn.active {
  background: #7C4A85;
  border-color: #7C4A85;
  color: white;
}

/* =====================================================
   Responsive Design
   ===================================================== */
@media (max-width: 1200px) {
  .products-grid-pricecompare {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
  }
}

@media (max-width: 992px) {
  .search-sidebar-filters {
    position: static;
    margin-bottom: 24px;
    max-height: none;
  }
  
  .products-grid-pricecompare {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  }
  
  .search-results-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  
  .results-sorting {
    width: 100%;
  }
  
  .sort-select {
    flex: 1;
  }
}

@media (max-width: 768px) {
  .search-page-chawkbazar {
    padding: 16px 0 32px;
  }
  
  .search-sidebar-filters {
    padding: 16px;
  }
  
  .sidebar-filters-header h3 {
    font-size: 18px;
  }
  
  .btn-clear-filters span {
    display: none;
  }
  
  .products-grid-pricecompare {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  
  .product-card-title-modern {
    font-size: 14px;
  }
  
  .price-modern {
    font-size: 18px;
  }
}

@media (max-width: 480px) {
  .products-grid-pricecompare {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }
  
  .search-results-header {
    padding: 12px 16px;
  }
  
  .sort-label {
    display: none;
  }

  .product-card-title-modern {
    font-size: 0.8125rem;
    -webkit-line-clamp: 2;
  }

  .price-modern {
    font-size: 1rem;
  }

  .product-image-wrapper-pricecompare {
    height: 140px;
  }
}

/* =====================================================
   No Results Message
   ===================================================== */
.no-results-message,
.no-results-pricecompare {
  text-align: center;
  padding: 60px 24px;
  background: white;
  border-radius: 8px;
  box-shadow: none;
  border: 1px solid #e2e8f0;
}

.no-results-icon {
  font-size: 64px;
  color: #ddd;
  margin-bottom: 24px;
}

.no-results-message i,
.no-results-pricecompare .no-results-icon i {
  font-size: 64px;
  color: #ddd;
  margin-bottom: 24px;
}

.no-results-message h3,
.no-results-title {
  font-size: 24px;
  color: #1a1a1a;
  margin: 0 0 12px 0;
}

.no-results-message p,
.no-results-text {
  font-size: 16px;
  color: #666;
  margin: 0 0 24px 0;
}

.no-results-suggestions {
  list-style: none;
  padding: 0;
  margin: 0;
  display: inline-block;
  text-align: left;
}

.no-results-suggestions li {
  font-size: 14px;
  color: #666;
  margin-bottom: 8px;
  padding-left: 24px;
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}

.no-results-suggestions li::before {
  content: '•';
  position: absolute;
  left: 8px;
  color: #7C4A85;
  font-weight: bold;
}

.no-results-suggestions li i {
  color: #7C4A85;
  font-size: 16px;
  margin-right: 8px;
}

/* =====================================================
   Enhanced No Results Page
   ===================================================== */
.no-results-enhanced {
  max-width: 960px;
  margin: 0 auto;
}

.search-no-results-section {
  padding-top: 24px;
}

.search-no-results-suggestions {
  padding-bottom: 48px;
}

/* Hero Section */
.no-results-hero {
  text-align: center;
  padding: 40px 20px;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  margin-bottom: 40px;
}

.no-results-illustration {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100px;
  height: 100px;
  margin-bottom: 24px;
}

.no-results-illustration i {
  font-size: 40px;
  color: #64748b;
  position: relative;
  z-index: 2;
}

.no-results-illustration-bg {
  position: absolute;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #F4E7F3 0%, #E8DDEE 100%);
  border-radius: 50%;
  opacity: 0.6;
  animation: pulse-bg 2s ease-in-out infinite;
}

@keyframes pulse-bg {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.05); opacity: 0.4; }
}

.no-results-title {
  font-size: 28px;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 12px 0;
}

.no-results-subtitle {
  font-size: 16px;
  color: #64748b;
  margin: 0 0 32px 0;
  line-height: 1.6;
}

.search-query {
  color: #A69BC1;
  font-weight: 600;
  background: #f0f9ff;
  padding: 2px 10px;
  border-radius: 20px;
  border: 1px solid #E8B4BC;
}

/* Tips Cards */
.no-results-tips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 32px;
}

.tip-card {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 13px;
  color: #475569;
  transition: all 0.2s ease;
}

.tip-card:hover {
  border-color: #A69BC1;
  box-shadow: 0 2px 8px rgba(14, 165, 233, 0.1);
}

.tip-card i {
  color: #A69BC1;
  font-size: 14px;
}

/* Popular search terms */
.no-results-popular-terms {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 28px;
}

.no-results-popular-label {
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
}

/* Browse links row */
.no-results-browse-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 8px;
}

.no-results-browse-links .btn-secondary-pricecompare {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* Author chips section */
.no-results-authors {
  margin-top: 40px;
}

.no-results-author-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.no-results-author-grid .book-browse-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Search Again */
.no-results-search-again {
  max-width: 500px;
  margin: 0 auto 24px;
}

.no-results-search-form {
  width: 100%;
}

.search-input-wrapper {
  display: flex;
  align-items: center;
  background: #ffffff;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  padding: 4px;
  transition: border-color 0.2s ease;
}

.search-input-wrapper:focus-within {
  border-color: #A69BC1;
}

.search-input-wrapper > i {
  padding: 0 12px;
  color: #94a3b8;
  font-size: 16px;
}

.no-results-search-input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 12px 8px;
  font-size: 15px;
  color: #1e293b;
  outline: none;
}

.no-results-search-input::placeholder {
  color: #94a3b8;
}

.no-results-search-btn {
  padding: 12px 24px;
  background: linear-gradient(135deg, #A69BC1 0%, #4A2E4D 100%);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.no-results-search-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
}

/* Home Link */
.no-results-home-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #64748b;
  font-size: 14px;
  text-decoration: none;
  transition: color 0.2s ease;
}

.no-results-home-link:hover {
  color: #A69BC1;
}

/* Categories Section */
.no-results-categories {
  margin-top: 40px;
}

.section-subtitle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 600;
  color: #1e293b;
  margin: 0 0 24px 0;
}

.section-subtitle i {
  color: #A69BC1;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 16px;
}

.category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 20px 12px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.category-card:hover {
  border-color: #A69BC1;
  box-shadow: 0 4px 16px rgba(14, 165, 233, 0.12);
  transform: translateY(-2px);
}

.category-icon-wrapper {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #FAF7F8 0%, #F4E7F3 100%);
  border-radius: 12px;
  margin-bottom: 12px;
}

.category-icon-wrapper i {
  font-size: 20px;
  color: #A69BC1;
}

.category-icon-wrapper img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.category-name {
  font-size: 14px;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 4px;
  line-height: 1.3;
}

.category-count {
  font-size: 12px;
  color: #64748b;
}

/* Section Header Centered */
.section-header-centered {
  text-align: center;
  margin-bottom: 32px;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  color: #92400e;
  font-size: 12px;
  font-weight: 600;
  border-radius: 20px;
  margin-bottom: 12px;
}

.section-badge i {
  font-size: 11px;
}

.section-header-centered h2 {
  font-size: 24px;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 8px 0;
}

.section-header-centered p {
  font-size: 15px;
  color: #64748b;
  margin: 0;
}

/* Product Grid Compact */
.product-grid-compact {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
}

.product-card-compact {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.2s ease;
}

.product-card-compact:hover {
  border-color: #A69BC1;
  box-shadow: 0 4px 16px rgba(14, 165, 233, 0.12);
  transform: translateY(-2px);
}

.product-card-compact a {
  text-decoration: none;
  color: inherit;
  display: block;
}

.product-image-compact {
  position: relative;
  aspect-ratio: 1;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.product-image-compact img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 16px;
  transition: transform 0.3s ease;
}

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

.product-image-placeholder-compact {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #cbd5e1;
  font-size: 32px;
}

.discount-badge-compact {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 4px 8px;
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  border-radius: 6px;
}

.offers-badge-compact {
  position: absolute;
  bottom: 8px;
  right: 8px;
  padding: 4px 10px;
  background: rgba(14, 165, 233, 0.95);
  color: #ffffff;
  font-size: 11px;
  font-weight: 600;
  border-radius: 6px;
}

.product-info-compact {
  padding: 16px;
}

.product-info-compact h3 {
  font-size: 14px;
  font-weight: 500;
  color: #1e293b;
  margin: 0 0 12px 0;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 40px;
}

.product-price-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.price-main {
  font-size: 18px;
  font-weight: 700;
  color: #A69BC1;
}

.price-original {
  font-size: 13px;
  color: #94a3b8;
  text-decoration: line-through;
}

.compare-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid #f1f5f9;
  font-size: 13px;
  font-weight: 600;
  color: #A69BC1;
}

.compare-link i {
  font-size: 11px;
  transition: transform 0.2s ease;
}

.product-card-compact:hover .compare-link i {
  transform: translateX(4px);
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .no-results-hero {
    padding: 32px 16px;
  }
  
  .no-results-title {
    font-size: 22px;
  }
  
  .no-results-tips {
    flex-direction: column;
    align-items: stretch;
  }
  
  .tip-card {
    justify-content: center;
  }
  
  .search-input-wrapper {
    flex-wrap: wrap;
    gap: 8px;
  }
  
  .no-results-search-btn {
    width: 100%;
  }

  .no-results-browse-links {
    flex-direction: column;
    align-items: stretch;
  }

  .no-results-browse-links .btn-secondary-pricecompare {
    justify-content: center;
  }
  
  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  
  .category-card {
    padding: 16px 8px;
  }
  
  .product-grid-compact {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}

/* =====================================================
   Empty Category State - Flat Design
   ===================================================== */
.empty-category-state {
  width: 100%;
}

/* Hero empty state block */
.empty-category-hero {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 56px 32px 48px;
  text-align: center;
  margin-bottom: 32px;
}

/* Icon with background ring */
.empty-category-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 88px;
  height: 88px;
  margin: 0 auto 24px;
}

.empty-category-icon i {
  font-size: 2.5rem;
  color: #7f8c8d;
  position: relative;
  z-index: 1;
}

.empty-category-icon-bg {
  position: absolute;
  inset: 0;
  background: #f8f9fa;
  border: 2px solid #e2e8f0;
  border-radius: 50%;
  z-index: 0;
}

.empty-category-title {
  font-size: 1.625rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}

.empty-category-subtitle {
  font-size: 1rem;
  color: #7f8c8d;
  margin: 0 auto 32px;
  max-width: 520px;
  line-height: 1.65;
}

/* Action buttons */
.empty-category-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 32px;
}

.btn-primary-pricecompare {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  background: #1a1a1a;
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.2s;
}

.btn-primary-pricecompare:hover {
  background: #333333;
  color: #ffffff;
}

.btn-secondary-pricecompare {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  background: #ffffff;
  color: #1a1a1a;
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
}

.btn-secondary-pricecompare:hover {
  background: #f8f9fa;
  border-color: #95a5a6;
  color: #1a1a1a;
}

/* Subcategory quick links */
.empty-category-subcategories {
  margin: 28px auto 0;
  max-width: 640px;
}

.empty-category-subcategories h3 {
  font-size: 0.875rem;
  font-weight: 600;
  color: #95a5a6;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 16px;
}

.subcategories-quick-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.subcategory-quick-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: #f8f9fa;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  color: #1a1a1a;
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
}

.subcategory-quick-link:hover {
  background: #ffffff;
  border-color: #95a5a6;
  color: #1a1a1a;
}

.subcategory-quick-link i {
  font-size: 0.8rem;
  color: #7f8c8d;
}

.subcategory-count {
  display: inline-block;
  padding: 2px 8px;
  background: #e2e8f0;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #7f8c8d;
  margin-left: 2px;
}

/* Section subtitle centered */
.section-subtitle-centered {
  font-size: 1rem;
  font-weight: 700;
  color: #1a1a1a;
  text-align: center;
  margin: 0 0 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.section-subtitle-centered i {
  color: #7f8c8d;
  font-size: 0.95rem;
}

/* Related categories grid */
.empty-category-related {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 32px;
  margin-bottom: 32px;
}

.related-categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 16px;
}

.related-category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 20px 12px;
  background: #f8f9fa;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s, transform 0.15s;
  text-align: center;
}

.related-category-card:hover {
  background: #ffffff;
  border-color: #95a5a6;
  transform: translateY(-2px);
}

.related-category-icon {
  width: 48px;
  height: 48px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.related-category-icon i {
  font-size: 1.25rem;
  color: #7f8c8d;
}

.related-category-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 6px;
}

.related-category-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: #1a1a1a;
  line-height: 1.3;
}

.related-category-count {
  font-size: 0.75rem;
  color: #95a5a6;
  font-weight: 500;
}

/* Popular products section below categories */
.empty-category-popular {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 32px;
  margin-bottom: 32px;
}

/* Responsive for empty category */
@media (max-width: 768px) {
  .empty-category-hero {
    padding: 40px 20px 36px;
  }

  .empty-category-title {
    font-size: 1.375rem;
  }

  .related-categories-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .empty-category-related,
  .empty-category-popular {
    padding: 20px;
  }

  .empty-category-actions {
    flex-direction: column;
    align-items: center;
  }

  .btn-primary-pricecompare,
  .btn-secondary-pricecompare {
    width: 100%;
    justify-content: center;
  }
}
