/** Shopify CDN: Minification failed

Line 1477:0 Unexpected "}"
Line 2673:0 Expected "}" to go with "{"

**/
/* Enhanced Product Grid Styles with Blue Theme for Camping Australia */
/* COMPLETE CSS FILE WITH IMPROVED PRODUCT CARDS */

/* CSS Variables for Blue Theme Consistency */
:root {
  --primary-color: #0066CC;
  --primary-dark: #0052A3;
  --primary-light: #1A7EDD;
  --secondary-color: #E6F3FF;
  --accent-color: #FF4444;
  --spacing-unit: 1rem;
  --spacing-half: 0.5rem;
  --spacing-quarter: 0.25rem;
  --border-color: #e5e5e5;
  --shadow-light: 0 1px 3px rgba(0,0,0,0.1);
  --shadow-hover: 0 2px 8px rgba(0,0,0,0.1);
  --transition-fast: 0.2s ease;
  --transition-medium: 0.3s ease;
}

/* Base Layout */
.collection-layout {
  display: block;
  max-width: 100%;
  padding: var(--spacing-unit);
  overflow: hidden;
}

/* Collection Header */
.collection-header {
  position: relative;
  width: 100%;
  margin-bottom: var(--spacing-unit);
  overflow: hidden;
  border-radius: 8px;
}

.collection-header__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.collection-header__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.5));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: calc(var(--spacing-unit) * 2);
}

.collection-header__title {
  color: white;
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 600;
  text-align: center;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
  margin: 0 0 var(--spacing-unit);
}

.collection-header__description {
  color: white;
  font-size: 1rem;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.collection-header-simple {
  padding: var(--spacing-unit) 0 calc(var(--spacing-unit) * 2);
  text-align: center;
}

.collection-header-simple .collection-header__title {
  color: #333;
  margin-bottom: var(--spacing-half);
  text-shadow: none;
}

/* NEW: Inline Collection Title in Controls */
.collection-title-inline {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary-color);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
  margin-left: var(--spacing-unit);
  padding-left: var(--spacing-unit);
  border-left: 1px solid var(--border-color);
}

/* NEW: Collection Footer (when title is moved to bottom) */
.collection-footer {
  margin-top: calc(var(--spacing-unit) * 3);
  padding: calc(var(--spacing-unit) * 2) var(--spacing-unit);
  background: #f8f9fa;
  border-radius: 8px;
  border: 1px solid var(--border-color);
}

.collection-footer-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.collection-footer-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: var(--spacing-unit);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.collection-footer-description {
  color: #6b7280;
  font-size: 1rem;
  line-height: 1.6;
  margin: 0;
}

.collection-footer-description p {
  margin-bottom: var(--spacing-half);
}

.collection-footer-description p:last-child {
  margin-bottom: 0;
}

/* NEW: Adjust collection layout spacing when header is disabled */
.collection-layout:not(:has(.collection-header)):not(:has(.collection-header-simple)) {
  padding-top: 0;
}

.collection-layout:not(:has(.collection-header)):not(:has(.collection-header-simple)) .collection-controls {
  margin-top: 0;
  border-top: 3px solid var(--primary-color);
}

/* Collection Controls */
.collection-controls {
  background: white;
  margin-bottom: var(--spacing-unit);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: var(--spacing-unit);
  border-radius: 8px;
  box-shadow: var(--shadow-light);
  flex-wrap: wrap;
  gap: var(--spacing-unit);
  position: sticky;
  top: 0;
  z-index: 10;
}

.controls-left {
  display: flex;
  align-items: center;
  gap: var(--spacing-unit);
  flex: 1;
  min-width: 0;
}

/* NEW: Enhanced controls when title is inline */
.controls-left:has(.collection-title-inline) {
  flex-wrap: wrap;
  align-items: center;
}

.filter-button {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: var(--spacing-half);
  padding: 12px 16px;
  background: #f8f9fa;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all var(--transition-fast);
  white-space: nowrap;
  min-height: 44px;
  color: #495057;
}

.filter-button:hover, 
.filter-button:focus {
  background: var(--secondary-color);
  border-color: var(--primary-color);
  color: var(--primary-color);
  outline: none;
  box-shadow: 0 0 0 2px rgba(0, 102, 204, 0.1);
}

.filter-button svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.product-count {
  font-size: 0.875rem;
  color: #6b7280;
  white-space: nowrap;
}

.controls-right {
  display: flex;
  align-items: center;
  gap: var(--spacing-unit);
  flex-shrink: 0;
}

/* View Mode Toggle */
.view-mode-toggle {
  display: flex;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  overflow: hidden;
  background: white;
}

.view-mode-btn {
  border: none;
  background: white;
  padding: 10px 12px;
  cursor: pointer;
  color: #6b7280;
  transition: all var(--transition-fast);
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.view-mode-btn:hover {
  background: var(--secondary-color);
  color: var(--primary-color);
}

.view-mode-btn.active {
  background: var(--primary-color);
  color: white;
}

.view-mode-btn svg {
  width: 18px;
  height: 18px;
}

/* COMPLETE EXPANDABLE WISHLIST SECTION CSS */

/* Wishlist Icon States */
.wishlist-icon.active svg path {
  fill: #FF4444 !important;
  stroke: #FF4444 !important;
}

.wishlist-icon.active {
  background: rgba(255, 68, 68, 0.1) !important;
}

.wishlist-icon.active svg {
  color: #FF4444;
}

/* Enhanced Wishlist Count Button */
.wishlist-count {
  color: #FF4444;
  text-decoration: none;
  margin-left: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  background: rgba(255, 68, 68, 0.1);
  border: 1px solid rgba(255, 68, 68, 0.2);
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s ease;
  white-space: nowrap;
  cursor: pointer;
}

.wishlist-count:hover {
  background: rgba(255, 68, 68, 0.15);
  transform: translateY(-1px);
}

/* Wishlist Section Container */
.wishlist-section {
  position: relative;
  z-index: 10;
}

/* Wishlist Arrow Rotation */
.wishlist-arrow {
  transition: transform 0.3s ease;
  margin-left: 0.25rem;
}

.wishlist-section.expanded .wishlist-arrow {
  transform: rotate(180deg);
}

/* EXPANDABLE WISHLIST SECTION */
.wishlist-expanded-section {
  background: white;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  margin: 1rem 0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  overflow: hidden;
  opacity: 0;
  max-height: 0;
  transition: all 0.3s ease;
}

.wishlist-expanded-section.active {
  opacity: 1;
  max-height: 600px;
}

.wishlist-expanded-container {
  padding: 1.5rem;
}

/* Wishlist Header */
.wishlist-expanded-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #f0f0f0;
}

.wishlist-expanded-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.wishlist-expanded-title h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: #1f2937;
}

.wishlist-expanded-count {
  color: #6b7280;
  font-size: 0.875rem;
}

.wishlist-expanded-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.wishlist-clear-all {
  background: none;
  border: 1px solid #FF4444;
  color: #FF4444;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.wishlist-clear-all:hover {
  background: #FF4444;
  color: white;
}

.wishlist-close {
  background: none;
  border: none;
  color: #6b7280;
  padding: 0.5rem;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wishlist-close:hover {
  background: #f3f4f6;
  color: #374151;
}

/* UPDATED: Wishlist Grid with Horizontal Scroll */
.wishlist-expanded-grid {
  display: flex !important;
  gap: 1rem;
  margin-bottom: 1rem;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 0.5rem;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

/* Override any inline grid styling */
#wishlist-expanded-grid {
  display: flex !important;
  grid-template-columns: none !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  scroll-behavior: smooth !important;
  -webkit-overflow-scrolling: touch !important;
}

/* Wishlist Product Cards in Expanded View - UPDATED for horizontal scroll */
.wishlist-expanded-card {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 1rem;
  position: relative;
  transition: all 0.2s ease;
  text-align: center;
  min-width: 200px;
  max-width: 200px;
  flex-shrink: 0;
}

/* Force fixed width for all cards in the grid */
#wishlist-expanded-grid > div {
  min-width: 200px !important;
  max-width: 200px !important;
  flex-shrink: 0 !important;
}

.wishlist-expanded-card:hover {
  border-color: #0066CC;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Custom Scrollbar Styling */
.wishlist-expanded-grid::-webkit-scrollbar,
#wishlist-expanded-grid::-webkit-scrollbar {
  height: 6px;
}

.wishlist-expanded-grid::-webkit-scrollbar-track,
#wishlist-expanded-grid::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.wishlist-expanded-grid::-webkit-scrollbar-thumb,
#wishlist-expanded-grid::-webkit-scrollbar-thumb {
  background: #0066CC;
  border-radius: 3px;
}

.wishlist-expanded-grid::-webkit-scrollbar-thumb:hover,
#wishlist-expanded-grid::-webkit-scrollbar-thumb:hover {
  background: #0052A3;
}

/* Firefox scrollbar */
.wishlist-expanded-grid,
#wishlist-expanded-grid {
  scrollbar-width: thin;
  scrollbar-color: #0066CC #f1f1f1;
}

.wishlist-expanded-card img {
  width: 100%;
  height: 150px;
  object-fit: contain;
  border-radius: 6px;
  background: white;
  margin-bottom: 0.75rem;
}

.wishlist-expanded-card .product-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: #1f2937;
  margin: 0 0 0.5rem 0;
  line-height: 1.3;
  height: 2.275rem; /* Fixed height for exactly 2 lines (0.875rem * 1.3 * 2) */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wishlist-expanded-card h4 {
  font-size: 0.875rem;
  font-weight: 600;
  color: #1f2937;
  margin: 0 0 0.5rem 0;
  line-height: 1.3;
  height: 2.275rem; /* Fixed height for exactly 2 lines */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wishlist-expanded-card .product-price {
  color: #0066CC;
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
}

.wishlist-expanded-card .product-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.wishlist-expanded-card .btn-primary {
  flex: 1;
  background: #0066CC;
  color: white;
  border: none;
  padding: 0.5rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.wishlist-expanded-card .btn-primary:hover {
  background: #0052a3;
}

.wishlist-expanded-card .btn-secondary {
  background: #f3f4f6;
  color: #374151;
  border: 1px solid #d1d5db;
  padding: 0.5rem;
  border-radius: 6px;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 32px;
}

.wishlist-expanded-card .btn-secondary:hover {
  background: #e5e7eb;
}

/* UPDATED: Remove Button with Mobile Fix */
.wishlist-expanded-remove {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 28px;
  height: 28px;
  background: rgba(255,255,255,0.95);
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 50%;
  color: #666;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.wishlist-expanded-remove:hover {
  background: #FF4444;
  color: white;
  transform: scale(1.1);
  border-color: #FF4444;
}

/* Empty State */
.wishlist-expanded-empty {
  text-align: center;
  padding: 3rem 1rem;
  color: #6b7280;
}

.wishlist-empty-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.7;
}

.wishlist-expanded-empty h4 {
  font-size: 1.125rem;
  font-weight: 600;
  color: #374151;
  margin: 0 0 0.5rem 0;
}

.wishlist-expanded-empty p {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.5;
}

/* Pulse Animation for Heart Clicks */
@keyframes heartPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

.wishlist-icon.pulse {
  animation: heartPulse 0.3s ease;
}

/* Sort Select */
.sort-by {
  padding: 10px 16px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  background: white;
  font-size: 0.875rem;
  min-height: 44px;
  min-width: 180px;
  cursor: pointer;
  transition: border-color var(--transition-fast);
}

.sort-by:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(0, 102, 204, 0.1);
}

/* Applied Filters Mobile */
.applied-filters-mobile {
  width: 100%;
  margin-top: var(--spacing-half);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 5px;
  display: none;
}

.applied-filters-mobile::-webkit-scrollbar {
  display: none;
}

.applied-filters-scroll {
  display: flex;
  gap: 8px;
  padding-bottom: 4px;
  min-width: max-content;
}

.applied-filter-tag-mobile {
  white-space: nowrap;
  background: var(--secondary-color);
  border: 1px solid var(--primary-light);
  color: var(--primary-color);
  padding: 6px 10px;
  border-radius: 20px;
  font-size: 12px;
  text-decoration: none;
  display: flex;
  align-items: center;
  transition: all var(--transition-fast);
}

.applied-filter-tag-mobile:hover {
  background: var(--primary-light);
  color: white;
}

.applied-filter-tag-mobile .remove-filter {
  margin-left: 6px;
  font-size: 16px;
  line-height: 1;
}

/* Collection Content Structure */
.collection-content {
  display: flex;
  gap: 24px;
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
  align-items: flex-start;
}

/* Sidebar Container */
.sidebar-container {
  width: 280px;
  flex-shrink: 0;
  position: sticky;
  top: 120px;
  max-height: calc(100vh - 140px);
  overflow-y: auto;
}

/* Filters Sidebar */
.filters-sidebar {
  background: white;
  border-radius: 8px;
  box-shadow: var(--shadow-light);
  overflow: hidden;
  border: 1px solid #f0f0f0;
}

.filters-sidebar::-webkit-scrollbar {
  width: 6px;
}

.filters-sidebar::-webkit-scrollbar-track {
  background: #f1f5f9;
}

.filters-sidebar::-webkit-scrollbar-thumb {
  background-color: var(--primary-light);
  border-radius: 3px;
}

/* Filters Overlay */
.filters-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  display: none;
  opacity: 0;
  transition: opacity var(--transition-medium);
}

.filters-overlay {
  pointer-events: none;
}

@media (min-width: 769px) {
  .filters-overlay {
    display: none !important;
    opacity: 0 !important;
    background: transparent !important;
  }
}

.filters-overlay.is-visible {
  display: block;
  opacity: 1;
  pointer-events: auto;
}

/* Real iPhone Safari Fix */
/* iPhone Safari - Target actual filter system */
@media screen and (max-width: 768px) {
  @supports (-webkit-touch-callout: none) {
    /* Override all conflicting transitions */
    .filters-sidebar {
      transition: none !important;
      -webkit-transition: none !important;
    }
    
    /* Force simple visibility toggle */
    .filters-sidebar:not(.is-open):not(.open):not(.active) {
      display: none !important;
      visibility: hidden !important;
    }
    
    .filters-sidebar.is-open,
    .filters-sidebar.open, 
    .filters-sidebar.active {
      display: block !important;
      visibility: visible !important;
      position: fixed !important;
      top: 0 !important;
      left: 0 !important;
      right: 0 !important;
      bottom: 0 !important;
      width: 100vw !important;
      height: 100vh !important;
      z-index: 999999 !important;
      background: white !important;
      transform: none !important;
      -webkit-transform: none !important;
    }
    
    /* Force button responsiveness */
    .filter-button {
      -webkit-tap-highlight-color: rgba(0, 102, 204, 0.3) !important;
      -webkit-user-select: none !important;
      pointer-events: auto !important;
      touch-action: manipulation !important;
    }
    
    /* Better filter content scrolling */
    .filters-sidebar.is-open,
    .filters-sidebar.open,
    .filters-sidebar.active {
      overflow-y: scroll !important;
      -webkit-overflow-scrolling: touch !important;
      overscroll-behavior: contain !important;
    }
  }
}

  /* iPhone Safari - Complete filter overlay fix */
  @media screen and (max-width: 768px) {
    @supports (-webkit-touch-callout: none) {
      /* Full screen filter overlay */
      .filters-sidebar.is-open,
      .filters-sidebar.open,
      .filters-sidebar.active {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        z-index: 999999 !important;
        background: white !important;
        transform: none !important;
        -webkit-transform: none !important;
        margin: 0 !important;
        padding: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        
        /* Better scrolling */
        overflow: hidden !important;
        -webkit-overflow-scrolling: touch !important;
      }
      
      /* Match cart header styling - blue theme */
      .filters-header {
        background: #0066CC !important; /* Your brand blue */
        color: white !important;
        padding: 1.5rem 1rem !important;
        flex-shrink: 0 !important;
        border-bottom: none !important;
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
      }
      
      .filters-title {
        color: white !important;
        font-size: 18px !important;
        font-weight: 600 !important;
        text-transform: uppercase !important;
        letter-spacing: 0.5px !important;
        margin: 0 !important;
      }
      
      /* Enhanced close button */
      .close-button {
        background: rgba(255,255,255,0.2) !important;
        color: white !important;
        border: 2px solid rgba(255,255,255,0.3) !important;
        border-radius: 50% !important;
        width: 40px !important;
        height: 40px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        font-size: 24px !important;
        font-weight: bold !important;
        cursor: pointer !important;
        transition: all 0.2s ease !important;
      }
      
      .close-button:hover,
      .close-button:active {
        background: rgba(255,255,255,0.3) !important;
        transform: scale(1.1) !important;
      }
      
      /* Scrollable content area */
      .filters-sidebar.is-open > *:not(.filters-header),
      .filters-sidebar.open > *:not(.filters-header),
      .filters-sidebar.active > *:not(.filters-header) {
        flex: 1 !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        padding: 1rem !important;
      }
      
      /* Better touch targets for filter options */
      .checkbox-label {
        min-height: 48px !important;
        padding: 12px 16px !important;
        display: flex !important;
        align-items: center !important;
        border-bottom: 1px solid #f0f0f0 !important;
        -webkit-tap-highlight-color: rgba(0, 102, 204, 0.1) !important;
      }
      
      .checkbox-label:active {
        background: rgba(0, 102, 204, 0.05) !important;
      }
      
      /* Larger checkboxes for better touch */
      .checkbox-label input[type="checkbox"] {
        width: 20px !important;
        height: 20px !important;
        margin-right: 16px !important;
      }
      
      /* Filter group headers */
      .filter-header {
        min-height: 56px !important;
        padding: 16px !important;
        background: #f8f9fa !important;
        border-bottom: 1px solid #e9ecef !important;
        -webkit-tap-highlight-color: rgba(0, 102, 204, 0.1) !important;
      }
      
      .filter-header:active {
        background: #e9ecef !important;
      }
      
      /* Enhanced filter button */
      .filter-button {
        -webkit-tap-highlight-color: rgba(0, 102, 204, 0.2) !important;
        touch-action: manipulation !important;
        pointer-events: auto !important;
        min-height: 48px !important;
      }
      
      .filter-button:active {
        background: rgba(0, 102, 204, 0.1) !important;
        transform: scale(0.98) !important;
      }
    }
  }

/* Product Content */
.product-content {
  flex: 1;
  min-width: 0;
}

/* Filters Header */
.filters-header {
  padding: var(--spacing-unit);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--secondary-color);
}

.filters-title {
  font-size: 16px;
  font-weight: 600;
  margin: 0;
  color: var(--primary-color);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.close-button {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #6b7280;
  padding: 4px;
  border-radius: 4px;
  transition: all var(--transition-fast);
  line-height: 1;
}

.close-button:hover {
  background: #e5e7eb;
  color: var(--primary-color);
}

/* Active Filters */
.active-filters {
  margin: var(--spacing-unit);
  background-color: #f8f9fa;
  border-radius: 6px;
  padding: var(--spacing-unit);
  border: 1px solid #e5e7eb;
}

.active-filters:empty {
  display: none;
}

.active-filters-header h3 {
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 var(--spacing-half) 0;
  color: #374151;
}

.active-filters-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: var(--spacing-half);
}

.active-filter-tag {
  display: inline-flex;
  align-items: center;
  background: var(--primary-color);
  color: white;
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 12px;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.active-filter-tag:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.active-filter-tag .remove-filter {
  margin-left: 4px;
  font-size: 14px;
  line-height: 1;
}

.clear-all-filters {
  font-size: 12px;
  color: var(--primary-color);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
  font-weight: 500;
}

.clear-all-filters:hover {
  color: var(--primary-dark);
}

/* Filter Groups */
.filter-group {
  border-bottom: 1px solid #e5e7eb;
  margin: 0;
}

.filter-group:last-child {
  border-bottom: none;
}

.filter-header,
.filter-group-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--spacing-unit);
  cursor: pointer;
  user-select: none;
  transition: all var(--transition-fast);
  background: white;
}

.filter-header:hover,
.filter-group-summary:hover {
  background: #f8f9fa;
}

.filter-header h3,
.filter-group-summary h3,
.filter-group-summary .filter-group-summary__title {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: #374151;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

.filter-group.has-active-filters,
.filter-group--active {
  background-color: rgba(0, 102, 204, 0.02);
  border-left: 3px solid var(--primary-color);
}

.filter-group.has-active-filters .filter-header h3,
.filter-group--active .filter-header h3 {
  color: var(--primary-color);
}

.filter-header svg,
.filter-group-summary svg {
  width: 12px;
  height: 12px;
  transition: transform var(--transition-fast);
  color: #9ca3af;
}

.filter-group.expanded .filter-header svg,
.filter-group--open .filter-header svg {
  transform: rotate(180deg);
  color: var(--primary-color);
}

/* Filter Content */
.filter-content,
.filter-group-content {
  display: none;
  padding: 0 var(--spacing-unit) var(--spacing-unit);
  background: white;
}

.filter-group.expanded .filter-content,
.filter-group--open .filter-content {
  display: block;
}

/* Filter Lists */
.filter-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Checkbox Labels */
.checkbox-label {
  display: flex;
  align-items: center;
  gap: var(--spacing-half);
  padding: 8px 0;
  color: #374151;
  font-size: 14px;
  cursor: pointer;
  width: 100%;
  transition: all var(--transition-fast);
  border-radius: 4px;
}

.checkbox-label:hover {
  background: #f8f9fa;
  padding-left: var(--spacing-half);
  padding-right: var(--spacing-half);
}

.checkbox-label.is-active {
  background-color: var(--secondary-color);
  padding-left: var(--spacing-half);
  padding-right: var(--spacing-half);
  font-weight: 500;
  color: var(--primary-color);
}

.checkbox-label input[type="checkbox"] {
  margin: 0;
  width: 16px;
  height: 16px;
  border: 2px solid #d1d5db;
  border-radius: 3px;
  cursor: pointer;
  position: relative;
  appearance: none;
  background: white;
  transition: all var(--transition-fast);
}

.checkbox-label input[type="checkbox"]:checked {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
}

.pagination .disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* No Products Message */
.no-products {
  text-align: center;
  padding: 3rem 2rem;
  background: #f9fafb;
  border-radius: 12px;
  margin: 2rem 0;
}

.no-products h2 {
  font-size: 1.5rem;
  color: #1f2937;
  margin-bottom: 1rem;
}

.no-products p {
  color: #6b7280;
  margin-bottom: 2rem;
}

.no-products .btn {
  display: inline-block;
  padding: 12px 24px;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 6px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.no-products .btn:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

/* Error Message */
.error-message {
  padding: var(--spacing-unit);
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
  border-radius: 6px;
  margin-bottom: var(--spacing-unit);
  font-size: 0.875rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.error-content {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.error-close {
  background: none;
  border: none;
  color: #dc2626;
  font-size: 1.25rem;
  cursor: pointer;
  padding: 0 var(--spacing-half);
}

/* Recently Viewed Sidebar */
.recently-viewed-sidebar {
  margin-top: var(--spacing-unit);
  padding: var(--spacing-unit);
  background: white;
  border-radius: 10px;
  box-shadow: var(--shadow-light);
  border: 1px solid #eef0f4;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-half);
}

.recently-viewed-heading {
  font-size: 0.9rem;
  font-weight: 600;
  margin: 0;
  color: var(--primary-color);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.recently-viewed-grid {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-height: 420px;
  overflow-y: auto;
  padding-right: 4px;
}

.recently-viewed-grid::-webkit-scrollbar {
  width: 4px;
}

.recently-viewed-grid::-webkit-scrollbar-thumb {
  background: rgba(0, 102, 204, 0.35);
  border-radius: 999px;
}

.recently-viewed-card {
  display: flex;
  gap: 0.85rem;
  align-items: center;
  border: 1px solid rgba(31, 41, 55, 0.08);
  border-radius: 10px;
  padding: 0.5rem;
  background: #fff;
  transition: box-shadow var(--transition-fast), transform var(--transition-fast);
}

.recently-viewed-card:hover {
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.recently-viewed-thumb {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  overflow: hidden;
  background: #f7f7f7;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.recently-viewed-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.recently-viewed-thumb-placeholder {
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(
    45deg,
    rgba(0, 0, 0, 0.04),
    rgba(0, 0, 0, 0.04) 10px,
    rgba(0, 0, 0, 0.08) 10px,
    rgba(0, 0, 0, 0.08) 20px
  );
  border-radius: 8px;
}

.recently-viewed-meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.recently-viewed-title-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: #1f2937;
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.recently-viewed-title-link:hover {
  color: var(--primary-color);
}

.recently-viewed-price {
  font-size: 0.8rem;
  color: var(--primary-color);
  font-weight: 600;
}

.recently-viewed-empty {
  font-size: 0.85rem;
  color: #6b7280;
  text-align: center;
  padding: 0.5rem 0;
}

.recently-viewed-mobile-anchor {
  display: none;
}

/* Loading Indicators */
.loading-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  color: var(--primary-color);
}

.loading-indicator svg {
  margin-bottom: 1rem;
}

.loading-indicator span {
  font-size: 0.875rem;
  color: #6b7280;
}

.infinite-scroll-sentinel {
  height: 1px;
  margin: 2rem 0;
}

/* Print styles */
@media print {
  .collection-controls,
  .filters-sidebar,
  .mobile-filter-footer,
  .wishlist-icon,
  .product-card__form,
  .collection-footer {
    display: none !important;
  }
  
  .product-grid {
    display: block !important;
  }
  
  .product-card {
    break-inside: avoid;
    margin-bottom: 1rem;
    border: 1px solid #ccc;
  }
}

/* High contrast mode */
@media (prefers-contrast: high) {
  :root {
    --primary-color: #0056b3;
    --border-color: #333;
  }
  
  .product-card {
    border-width: 2px;
  }
  
  .checkbox-label input[type="checkbox"] {
    border-width: 2px;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
}

.checkbox-label input[type="checkbox"]:checked::after {
  content: '✓';
  position: absolute;
  top: -2px;
  left: 2px;
  color: white;
  font-size: 12px;
  font-weight: bold;
}

.checkbox-label input[type="checkbox"]:focus {
  outline: 2px solid rgba(0, 102, 204, 0.2);
  outline-offset: 1px;
}

.checkbox-label .count {
  margin-left: auto;
  color: #9ca3af;
  font-size: 12px;
  font-weight: normal;
}

.checkbox-label.is-active .count {
  color: var(--primary-color);
  font-weight: 500;
}

/* Product Grid */
.product-grid {
  display: grid;
  gap: var(--spacing-unit);
  padding: var(--spacing-unit) 0;
  transition: opacity var(--transition-medium);
  min-height: 400px;
}

.product-grid.loading {
  opacity: 0.6;
  pointer-events: none;
}

/* Grid View */
.product-grid.view-grid {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  display: grid !important;
}

/* List View - Fixed Implementation */
.product-grid.view-list {
  display: block !important;
  grid-template-columns: none !important;
}

.product-grid.view-list .product-card {
  display: flex !important;
  flex-direction: row !important;
  margin-bottom: 1.5rem;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1.5rem;
  width: 100%;
  box-sizing: border-box;
  background: white;
  transition: all var(--transition-fast);
}

.product-grid.view-list .product-card:hover {
  border-color: var(--primary-color);
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.product-grid.view-list .product-card__link {
  display: flex !important;
  flex-direction: row !important;
  align-items: flex-start;
  flex: 1;
  text-decoration: none;
  color: inherit;
}

.product-grid.view-list .product-card__image-wrapper {
  width: 200px !important;
  min-width: 200px !important;
  height: 200px !important;
  position: relative;
  padding-bottom: 0 !important;
  margin-right: 2rem;
  margin-bottom: 0 !important;
  border-radius: 8px;
  overflow: hidden;
}

.product-grid.view-list .product-card__image,
.product-grid.view-list .product-card__image-hover {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity var(--transition-medium);
}

.product-grid.view-list .product-card__image-hover {
  opacity: 0;
}

.product-grid.view-list .product-card:has(.product-card__image-hover[src]):hover .product-card__image {
  opacity: 0;
}

.product-grid.view-list .product-card:has(.product-card__image-hover[src]):hover .product-card__image-hover {
  opacity: 1;
}

.product-card__image-wrapper:has(img:only-child) .product-card__image {
  transition: none !important;
}

.product-card__image-wrapper:not(:has(.product-card__image-hover)) .product-card__image {
  opacity: 1 !important;
  transition: none !important;
}

.product-grid.view-list .product-card__info {
  flex: 1;
  padding-right: 2rem;
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
}

.product-grid.view-list .product-card__title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  line-height: 1.4;
  color: #1f2937;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-grid.view-list .product-card__vendor {
  font-size: 0.875rem;
  color: #6b7280;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

/* IMPROVED: List view description - smaller and more subtle */
.product-grid.view-list .product-card__description {
  display: block !important;
  margin: 0.5rem 0;
  color: #8b8b8b; /* Lighter gray for less prominence */
  font-size: 0.8rem; /* Smaller font size */
  line-height: 1.4;
  flex: 1;
  opacity: 0.9; /* Slightly transparent for subtlety */
}

/* ENHANCED: List view pricing - larger and more prominent */
.product-grid.view-list .product-card__price {
  margin: 1rem 0;
  font-size: 1.375rem; /* Increased from 1.125rem */
}

.product-grid.view-list .product-card__form {
  width: 180px;
  min-width: 180px;
  margin-top: 0;
  margin-left: 0;
  align-self: flex-start;
}

/* Product Card Base Styles */
.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: white;
  border: 1px solid var(--border-color);
  padding: 1rem;
  height: 100%;
  transition: all var(--transition-fast);
  border-radius: 8px;
  overflow: hidden;
}

.product-card:hover,
.product-card:focus-within {
  border-color: var(--primary-color);
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}

.product-card__link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-card__image-wrapper {
  position: relative;
  padding-bottom: 100%; /* Change from 75% to 100% for square containers */
  margin-bottom: var(--spacing-unit);
  overflow: hidden;
  border-radius: 6px;
  background: #f8f9fa;
  width: 100%;
  height: 0;
}

.product-card__brand-bar {
  margin: 6px 0 var(--spacing-unit);
  padding: 10px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #f8fbff;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  box-sizing: border-box;
}

.product-card__brand-logo {
  max-height: 26px;
  width: auto;
  object-fit: contain;
  display: block;
}

.product-card__image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transition: opacity var(--transition-medium);
}

.product-card__image-hover {
  opacity: 0;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transition: opacity var(--transition-medium);
}

.product-card:has(.product-card__image-hover[src]):hover .product-card__image {
  opacity: 0;
}

.product-card:has(.product-card__image-hover[src]):hover .product-card__image-hover {
  opacity: 1;
}

.product-card__info {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  margin-bottom: var(--spacing-unit);
}

.product-card__vendor {
  font-size: 0.75rem;
  color: #6b7280;
  margin-bottom: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

.product-card__title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #1f2937;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* IMPROVED: Product description - smaller and more subtle */
.product-card__description {
  display: none; /* Keep hidden in grid view */
  color: #8b8b8b; /* Lighter gray for less prominence */
  font-size: 0.8rem; /* Smaller font size */
  line-height: 1.4;
  margin-bottom: 0.75rem;
  opacity: 0.9; /* Slightly transparent for subtlety */
}

/* ENHANCED: Product pricing - larger and more prominent */
.product-card__price {
  display: flex !important;
  align-items: center;
  gap: var(--spacing-half);
  margin-bottom: 1rem; /* More space around pricing */
  visibility: visible !important;
  opacity: 1 !important;
}

.product-card__info > *:empty {
  display: none !important;
}

.product-card__color-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0.5rem 0 0.25rem;
  min-height: 0;
}

.product-card__color-options .color-swatch,
.product-card__color-options .color-swatch-more {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
}

.product-card__color-options:not(:has(.color-swatch)):not(:has(span)):not(:has(div)) {
  display: none !important;
}

.product-card__color-options .color-swatch {
  position: relative;
  overflow: hidden;
  background-color: #f2f2f2;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

.product-card__color-options .color-swatch--image::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.product-card__color-options .color-swatch-more {
  border: 2px dashed var(--border-color);
  color: var(--heading-color, #1f2933);
  background-color: #fff;
}

/* ENHANCED: Price styling - larger and more prominent */
.price,
.price__regular,
.product-card .price {
  color: var(--primary-color) !important;
  font-size: 1.5rem !important; /* Increased from 1.125rem */
  font-weight: 700 !important; /* Bolder weight */
  display: inline-block !important;
  visibility: visible !important;
  text-shadow: 0 1px 2px rgba(0, 102, 204, 0.1); /* Subtle shadow for depth */
}

/* Sale price - even more prominent */
.price__sale,
.product-card .price--sale {
  color: #e74c3c !important; /* Red for sale prices to draw attention */
  font-size: 1.6rem !important; /* Slightly larger for sale prices */
  font-weight: 700 !important;
  text-shadow: 0 1px 2px rgba(231, 76, 60, 0.15);
}

/* Compare at price - keep readable but secondary */
.price__compare,
.price--compare-at,
.product-card .price--compare {
  color: #999 !important;
  font-size: 1rem !important; /* Increased from 0.875rem but still smaller than main price */
  text-decoration: line-through;
  margin-left: 8px;
  opacity: 0.8;
}

/* Money elements */
.money,
.product-card .money {
  color: inherit !important;
  font-weight: inherit !important;
  font-size: inherit !important;
}

/* Ensure all price-related elements are visible */
[class*="price"],
.money,
.product-price,
.price-item {
  display: inline-block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.product-card__form {
  margin-top: auto;
}

/* SOFTER BUT BOLDER BUTTON STYLING */
.product-card__add-to-cart {
  width: 100%;
  padding: 14px 16px; /* Slightly more padding for better touch targets */
  background: #f8f9fa; /* Light gray background instead of bold blue */
  color: var(--primary-color); /* Blue text on light background */
  border: 2px solid var(--primary-color); /* Blue border */
  border-radius: 8px; /* Slightly more rounded */
  font-weight: 600; /* Bolder weight for better prominence */
  font-size: 0.875rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
  min-height: 48px; /* Better accessibility */
  letter-spacing: 0.025em; /* Slight letter spacing for readability */
  text-transform: uppercase; /* Makes button text more prominent */
}

/* Softer hover state */
.product-card__add-to-cart:hover {
  background: var(--primary-color); /* Blue background on hover */
  color: white; /* White text on hover */
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 102, 204, 0.2); /* Subtle shadow */
}

/* Disabled state */
.product-card__add-to-cart:disabled {
  background: #f1f1f1;
  color: #999;
  border-color: #ddd;
  cursor: not-allowed;
  transform: none;
}

/* SOFTER "ADDED" STATE - Blue theme version */
.product-card__add-to-cart.added,
.product-card__add-to-cart[data-added="true"],
.product-card__add-to-cart:has(.added-text) {
  background: #e6f3ff !important; /* Very light blue background */
  color: #0066CC !important; /* Your brand blue text */
  border: 2px solid #0066CC !important; /* Blue border */
  transform: none;
}

.product-card__add-to-cart.added:hover,
.product-card__add-to-cart[data-added="true"]:hover {
  background: #0066CC !important; /* Blue background on hover */
  color: white !important; /* White text on hover */
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 102, 204, 0.2);
}

/* Sale Badge */
.product-badge {
  position: absolute;
  top: var(--spacing-half);
  left: var(--spacing-half);
  padding: 4px 8px;
  background: var(--accent-color);
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  z-index: 2;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

.product-badge--free-shipping {
  background: #1d4ed8;
  top: var(--spacing-half);
  left: var(--spacing-half);
}

.product-badge--sale-right {
  background: #ff4f4f;
  top: var(--spacing-half);
  right: var(--spacing-half);
  left: auto;
}

/* Wishlist Icon */
.wishlist-icon {
  position: absolute;
  top: var(--spacing-half);
  right: var(--spacing-half);
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  opacity: 0;
  transition: all var(--transition-fast);
  backdrop-filter: blur(4px);
}

.product-card:hover .wishlist-icon {
  opacity: 1;
}

.wishlist-icon:hover {
  background: white;
  transform: scale(1.1);
}

.wishlist-icon.active {
  background: var(--primary-color);
  color: white;
  opacity: 1;
}

/* Mobile Filter Footer */
.mobile-filter-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px;
  background: white;
  box-shadow: 0 -4px 12px rgba(0,0,0,0.1);
  display: none;
  gap: 12px;
  z-index: 1001;
  border-top: 1px solid var(--border-color);
}

.mobile-filter-footer button {
  flex: 1;
  padding: 14px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: none;
  min-height: 48px;
}

.mobile-filter-footer button[data-action="reset-filters"] {
  background: #f3f4f6;
  color: #374151;
  border: 1px solid #d1d5db;
}

.mobile-filter-footer button[data-action="reset-filters"]:hover {
  background: #e5e7eb;
}

.mobile-filter-footer button[data-action="apply-filters"] {
  background: var(--primary-color);
  color: white;
}

.mobile-filter-footer button[data-action="apply-filters"]:hover {
  background: var(--primary-dark);
}

/* Price Range Styles */
.price-ranges {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 5px;
  padding: 5px 0;
}

.price-ranges .checkbox-label {
  display: flex;
  align-items: center;
  margin-bottom: 3px;
  padding: 8px 6px;
  transition: background-color var(--transition-fast);
  border-radius: 4px;
  cursor: pointer;
}

.price-ranges .checkbox-label:hover {
  background-color: var(--secondary-color);
}

.price-ranges .checkbox-label input[type="checkbox"] {
  margin-right: 8px;
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.price-ranges .checkbox-label .count {
  margin-left: auto;
  color: #9ca3af;
  font-size: 12px;
}

.price-ranges .checkbox-label.is-active {
  background-color: var(--secondary-color);
  font-weight: 500;
  color: var(--primary-color);
}

/* Responsive Design */
@media (min-width: 1200px) {
  .collection-controls {
    padding: 1.5rem 2rem;
  }
  
  .product-grid.view-grid {
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  }
}

/* Desktop specific styles */
@media (min-width: 769px) {
  .mobile-filter-footer {
    display: none !important;
  }
  
  .applied-filters-mobile {
    display: none;
  }
  
  .collection-layout {
    padding: 1.5rem 2rem;
  }
}

/* Tablet styles */
@media screen and (max-width: 1024px) and (min-width: 769px) {
  .sidebar-container {
    width: 240px;
  }
  
  .collection-content {
    gap: 20px;
  }
  
  .product-grid.view-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  }
}

/* Mobile styles */
@media screen and (max-width: 768px) {
  .collection-layout {
    padding: 0;
  }
  
  .collection-header {
    margin-bottom: var(--spacing-half);
    border-radius: 0;
  }
  
  .collection-controls {
    flex-direction: column;
    align-items: stretch;
    gap: var(--spacing-half);
    padding: var(--spacing-unit);
    position: sticky;
    top: 0;
    z-index: 10;
    border-radius: 0;
    margin-bottom: 0;
  }
  
  .controls-left, 
  .controls-right {
    width: 100%;
    justify-content: space-between;
  }
  
  .controls-right {
    flex-direction: row-reverse;
  }
  
  .sort-by {
    flex: 1;
    min-width: 0;
    margin-right: var(--spacing-unit);
  }
  
  .applied-filters-mobile {
    display: block;
    width: 100%;
    margin-top: var(--spacing-half);
  }
  
  .collection-content {
    flex-direction: column;
    gap: 0;
  }

  .recently-viewed-sidebar {
    width: 100%;
    order: 3;
    margin-top: 0;
    border-radius: 0;
    box-shadow: none;
    border-left: none;
    border-right: none;
  }
  
  .recently-viewed-grid {
    flex-direction: row;
    overflow-x: auto;
    overflow-y: hidden;
    max-height: none;
  }
  
  .recently-viewed-card {
    min-width: 220px;
    flex: 0 0 auto;
  }
  
  .recently-viewed-mobile-anchor {
    display: block;
    width: 100%;
    padding: 0 var(--spacing-half);
  }

  .sidebar-container {
    width: 100%;
    position: static;
    max-height: none;
  }
  
  .filters-sidebar {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: white;
    padding: 0;
    overflow-y: auto;
    width: 100%;
    height: 100vh;
    max-height: 100vh;
    transition: transform var(--transition-medium);
    transform: translateX(-100%);
    border-radius: 0;
  }

  .filters-sidebar.is-open {
    display: block;
    transform: translateX(0);
  }
  
  .filters-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: var(--secondary-color);
    border-bottom: 2px solid var(--primary-color);
    padding: 1.5rem var(--spacing-unit);
  }
  
  .filters-title {
    font-size: 18px;
    text-align: center;
    flex: 1;
  }
  
  .close-button {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
  }
  
  .product-content {
    width: 100%;
  }

  .product-grid.view-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.75rem;
    padding: 0.75rem;
  }
  
  .product-grid.view-list .product-card {
    flex-direction: column;
    padding: var(--spacing-unit);
  }
  
  .product-grid.view-list .product-card__link {
    flex-direction: column !important;
  }
  
  .product-grid.view-list .product-card__image-wrapper {
    width: 100% !important;
    height: 200px !important;
    margin-right: 0;
    margin-bottom: var(--spacing-unit) !important;
  }
  
  .product-grid.view-list .product-card__info {
    padding-right: 0;
    width: 100%;
  }
  
  .product-grid.view-list .product-card__form {
    width: 100%;
    margin-top: var(--spacing-unit);
  }
  
  .product-card {
    padding: 0.75rem;
  }
  
  .product-card__add-to-cart,
  .filter-button,
  button[data-action] {
    min-height: 48px;
    font-size: 0.875rem;
  }
  
  .filters-sidebar.is-open + .mobile-filter-footer,
  .filters-sidebar.is-open ~ .mobile-filter-footer {
    display: flex;
  }

  /* NEW: Mobile responsive adjustments for conditional title features */
  .collection-title-inline {
    display: none; /* Hide inline title on mobile to save space */
  }
  
  .collection-footer {
    margin-top: var(--spacing-unit);
    padding: var(--spacing-unit);
    border-radius: 0;
  }
  
  .collection-footer-title {
    font-size: 1.25rem;
  }
  
  .collection-footer-description {
    font-size: 0.875rem;
  }

  /* Mobile responsiveness for improved styles */
  .product-card__price {
    margin-bottom: 0.75rem;
  }
  
  .price,
  .price__regular,
  .price__sale,
  .product-card .price {
    font-size: 1.3rem !important; /* Slightly smaller on mobile but still prominent */
  }
  
  .price__compare,
  .price--compare-at {
    font-size: 0.9rem !important;
  }
  
  .product-card__add-to-cart {
    padding: 12px 14px;
    font-size: 0.8rem;
  }

  /* Mobile Responsive - UPDATED for horizontal scroll */
  .wishlist-expanded-grid,
  #wishlist-expanded-grid {
    gap: 0.75rem !important;
  }
  
  .wishlist-expanded-card,
  #wishlist-expanded-grid > div {
    min-width: 160px !important;
    max-width: 160px !important;
  }
  
  .wishlist-expanded-container {
    padding: 1rem;
  }
  
  .wishlist-expanded-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  
  .wishlist-expanded-actions {
    width: 100%;
    justify-content: space-between;
  }
  
  .wishlist-count {
    margin-left: 0.5rem;
    padding: 0.4rem 0.6rem;
    font-size: 0.8rem;
  }
  
  .wishlist-expanded-card img {
    height: 120px;
  }
  
  .wishlist-expanded-card .product-actions {
    flex-direction: column;
  }
  
  /* Mobile Remove Button Enhancement */
  .wishlist-expanded-remove {
    width: 32px !important;
    height: 32px !important;
    top: 0.5rem !important;
    right: 0.5rem !important;
    font-size: 20px !important;
    background: rgba(255,255,255,0.98) !important;
    border: 2px solid rgba(0,0,0,0.15) !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15) !important;
  }
  
  /* Ensure card positioning for remove button */
  .wishlist-expanded-card {
    position: relative !important;
  }

  .wishlist-expanded-card .product-title,
  .wishlist-expanded-card h4 {
    font-size: 0.75rem;
    height: 1.95rem; /* Fixed height for 2 lines at smaller font size (0.75rem * 1.3 * 2) */
  }
}

/* Small mobile styles */
@media screen and (max-width: 480px) {
  .product-grid.view-grid {
    gap: 0.5rem;
    padding: 0.5rem;
  }
  
  .collection-controls {
    padding: 0.75rem;
  }
  
  .filter-button {
    padding: 8px 12px;
    font-size: 0.8rem;
  }
  
  .sort-by {
    font-size: 0.8rem;
    padding: 8px 12px;
  }
  
  .product-card {
    padding: 0.5rem;
  }
  
  .product-card__title {
    font-size: 0.875rem;
  }
  
  .product-card__price {
    font-size: 1rem;
  }

  /* NEW: Small mobile adjustments for conditional features */
  .collection-footer-title {
    font-size: 1.125rem;
  }

  .price,
  .price__regular,
  .price__sale,
  .product-card .price {
    font-size: 1.2rem !important;
  }
  
  .price__compare,
  .price--compare-at {
    font-size: 0.85rem !important;
  }

  /* Small Mobile Adjustments - UPDATED for horizontal scroll */
  .wishlist-expanded-grid,
  #wishlist-expanded-grid {
    gap: 0.5rem !important;
  }
  
  .wishlist-expanded-card,
  #wishlist-expanded-grid > div {
    min-width: 140px !important;
    max-width: 140px !important;
  }
  
  .wishlist-expanded-card {
    padding: 0.75rem !important;
    min-height: 200px !important;
  }
  
  .wishlist-expanded-card img {
    height: 100px;
  }
  
  .wishlist-expanded-card .product-title {
    font-size: 0.75rem;
  }
  
  .wishlist-expanded-card .product-price {
    font-size: 0.75rem;
  }
  
  /* Small Mobile Remove Button */
  .wishlist-expanded-remove {
    width: 30px !important;
    height: 30px !important;
    top: 0.4rem !important;
    right: 0.4rem !important;
    font-size: 18px !important;
    background: rgba(255,255,255,1) !important;
    border: 2px solid rgba(0,0,0,0.2) !important;
    font-weight: bold !important;
  }

  .wishlist-expanded-card .product-title,
  .wishlist-expanded-card h4 {
    font-size: 0.7rem;
    height: 1.82rem; /* Fixed height for 2 lines at smallest font size (0.7rem * 1.3 * 2) */
  }
}

/* Custom Blue Theme Additions */
.product-card__rating .star.filled {
  color: #FFD700;
}

.product-card__color-options .color-swatch {
  border: 2px solid var(--border-color);
  transition: border-color var(--transition-fast);
}

.product-card__color-options .color-swatch:hover {
  border-color: var(--primary-color);
}

/* Loading States */
.product-card__add-to-cart.loading {
  background-color: #f5f5f5;
  color: #666;
  cursor: not-allowed;
}

.product-card__add-to-cart.loading::after {
  content: "";
  position: absolute;
  top: 50%;
  right: var(--spacing-unit);
  transform: translateY(-50%);
  width: 1rem;
  height: 1rem;
  border: 2px solid rgba(0, 0, 0, 0.1);
  border-top-color: var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.product-card__add-to-cart.success {
  background-color: #10B981;
  color: white;
  border-color: #10B981;
}

.product-card__add-to-cart.error {
  background-color: var(--accent-color);
  color: white;
  border-color: var(--accent-color);
}

@keyframes spin {
  0% { transform: translateY(-50%) rotate(0deg); }
  100% { transform: translateY(-50%) rotate(360deg); }
}

/* Enhanced Focus States for Accessibility */
.filter-button:focus,
.view-mode-btn:focus,
.sort-by:focus,
.checkbox-label input:focus,
.product-card__add-to-cart:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* Search Input Styles (if needed) */
.search-input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border-color);
  border-radius: 6px;
  font-size: 16px;
  background: white;
  transition: all var(--transition-fast);
}

.search-input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}
/* Mobile Filter Button - Prevent Grey State */
@media (max-width: 768px) {
  .filter-button {
    pointer-events: auto !important;
    opacity: 1 !important;
  }
  
  .filter-button:active {
    background: #e6f3ff !important;
    transform: scale(0.98) !important;
  }
  
  .filter-button.loading {
    background: #f8f9fa !important;
    color: #6c757d !important;
  }
  
  /* Ensure filters show properly on mobile */
  .filters-sidebar.is-open,
  .filters-sidebar.open,
  .filters-sidebar.active {
    display: block !important;
    transform: translateX(0) !important;
    left: 0 !important;
  }
}
/* Pagination Styles */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: 2rem 0;
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  text-decoration: none;
  color: #374151;
  font-weight: 500;
  transition: all var(--transition-fast);
}

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

.pagination .current {
  background: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  font-weight: 600;
