/* ========================================
   COMBAT ARENA MAROC - PRODUCTS PAGE STYLES
   Black / Red / Gold Combat Sports E-commerce
   ======================================== */

/* ========================================
   PRODUCTS HERO
   ======================================== */
.products-hero {
  position: relative;
  min-height: 40vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-top: 0;
}

.products-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.products-hero-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(232, 62, 62, 0.15) 0%, transparent 70%),
    radial-gradient(ellipse 60% 40% at 50% 100%, rgba(212, 168, 67, 0.1) 0%, transparent 60%),
    var(--ufc-black);
}

.products-hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: var(--space-3xl) 0;
}

.products-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 8px 16px;
  background: rgba(232, 62, 62, 0.15);
  border: 1px solid var(--ufc-red);
  border-radius: var(--radius-none);
  font-family: var(--font-latin);
  font-weight: 700;
  font-size: 0.7rem;
  color: var(--ufc-red);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: var(--space-lg);
  animation: badgePulse 2s ease-in-out infinite;
}

.products-hero-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 0.02em;
}

.products-hero-title .title-line {
  display: block;
  overflow: hidden;
}

.products-hero-title .title-line.title-accent {
  color: var(--ufc-red);
  -webkit-text-stroke: 1px var(--ufc-red);
  text-shadow: 0 0 30px var(--ufc-red-glow);
}

.products-hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--ufc-white-muted);
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  max-width: 700px;
  margin: var(--space-md) auto 0;
}

/* ========================================
   PRODUCTS MAIN LAYOUT
   ======================================== */
.products-main {
  padding: var(--space-3xl) 0;
  background: var(--ufc-black);
}

.products-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: var(--space-2xl);
  align-items: start;
}

/* ========================================
   PRODUCTS SIDEBAR
   ======================================== */
.products-sidebar {
  position: sticky;
  top: 100px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  background: var(--ufc-black-card);
  border: 1px solid var(--ufc-gray-border);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
}

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--ufc-gray-border);
}

.sidebar-title {
  font-family: var(--font-arabic);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--ufc-white);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

body.lang-fr .sidebar-title {
  font-family: var(--font-latin);
}

.sidebar-toggle {
  display: none;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  background: var(--ufc-black);
  border: 1px solid var(--ufc-gray-border);
  border-radius: var(--radius-sm);
  color: var(--ufc-white);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.sidebar-toggle:hover {
  border-color: var(--ufc-red);
  color: var(--ufc-red);
}

.sidebar-toggle svg {
  width: 18px;
  height: 18px;
}

/* Filter Groups */
.filter-group {
  margin-bottom: var(--space-xl);
}

.filter-group:last-of-type {
  margin-bottom: 0;
}

.filter-label {
  display: block;
  font-family: var(--font-arabic);
  font-weight: 600;
  font-size: 0.75rem;
  color: var(--ufc-gold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-md);
}

body.lang-fr .filter-label {
  font-family: var(--font-latin);
}

.price-range-display {
  font-family: var(--font-latin);
  font-weight: 400;
  font-size: 0.7rem;
  color: var(--ufc-gray);
  text-transform: none;
  letter-spacing: 0;
  margin-right: var(--space-sm);
}

/* Filter Options */
.filter-options {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.filter-checkbox {
  font-size: 0.85rem;
  color: var(--ufc-white-muted);
}

.filter-checkbox:hover {
  color: var(--ufc-white);
}

.filter-checkbox input:checked + .checkmark {
  background: var(--ufc-red);
  border-color: var(--ufc-red);
}

/* Discipline Pill Bar - Horizontal style like search bar */
.discipline-pill-bar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  align-items: center;
  padding: var(--space-xs);
}

.discipline-pill {
  position: relative;
}

.discipline-pill input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.discipline-pill label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-sm) var(--space-md);
  min-height: 40px;
  background: var(--ufc-black-card);
  border: 1px solid var(--ufc-gray-border);
  border-radius: var(--radius-md);
  font-family: var(--font-arabic);
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--ufc-gold) !important;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

body.lang-fr .discipline-pill label {
  font-family: var(--font-latin);
}

.discipline-pill input:checked + label {
  background: linear-gradient(135deg, var(--ufc-red), var(--ufc-red-dark));
  border-color: var(--ufc-red);
  color: var(--ufc-white);
  box-shadow: var(--shadow-red);
}

.discipline-pill label:hover {
  border-color: var(--ufc-red);
  color: var(--ufc-red);
  background: rgba(232, 62, 62, 0.1);
}

.discipline-pill input:focus-visible + label {
  outline: 2px solid var(--ufc-red);
  outline-offset: 2px;
}

/* Responsive adjustments for discipline pill bar */
@media (max-width: 768px) {
  .discipline-pill-bar {
    gap: var(--space-xs);
    overflow-x: auto;
    flex-wrap: nowrap;
    padding: var(--space-xs) var(--space-sm);
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .discipline-pill-bar::-webkit-scrollbar {
    display: none;
  }

  .discipline-pill label {
    padding: var(--space-xs) var(--space-sm);
    font-size: 0.7rem;
    min-height: 36px;
  }
}

@media (max-width: 480px) {
  .discipline-pill label {
    padding: var(--space-xs) var(--space-xs);
    font-size: 0.65rem;
  }
}

/* Search Input Wrapper */
.search-input-wrapper {
  position: relative;
}

.search-input-wrapper .filter-input {
  padding-left: 40px;
}

.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--ufc-gray);
  pointer-events: none;
}

/* Filter Inputs */
.filter-input {
  width: 100%;
  padding: 10px 12px;
  background: var(--ufc-black);
  border: 1px solid var(--ufc-gray-border);
  border-radius: var(--radius-md);
  font-family: var(--font-arabic);
  font-size: 0.85rem;
  color: var(--ufc-white);
  transition: all var(--transition-fast);
}

body.lang-fr .filter-input {
  font-family: var(--font-latin);
}

.filter-input::placeholder {
  color: var(--ufc-gray-dark);
}

.filter-input:focus {
  outline: none;
  border-color: var(--ufc-red);
  box-shadow: 0 0 0 3px var(--ufc-red-glow);
}

/* Price Range Inputs */
.price-range-inputs {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.price-input {
  flex: 1;
  padding: 8px 10px;
  font-size: 0.8rem;
}

.price-separator {
  font-family: var(--font-latin);
  font-size: 0.75rem;
  color: var(--ufc-gray);
  white-space: nowrap;
}

/* Price Slider */
.price-slider-container {
  position: relative;
  height: 24px;
}

.price-slider {
  position: absolute;
  width: 100%;
  height: 4px;
  top: 50%;
  transform: translateY(-50%);
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  pointer-events: none;
  z-index: 2;
}

.price-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  background: var(--ufc-red);
  border: 2px solid var(--ufc-white);
  border-radius: 50%;
  cursor: pointer;
  pointer-events: auto;
  box-shadow: var(--shadow-red);
  transition: all var(--transition-fast);
}

.price-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
  box-shadow: var(--shadow-red-lg);
}

.price-slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  background: var(--ufc-red);
  border: 2px solid var(--ufc-white);
  border-radius: 50%;
  cursor: pointer;
  pointer-events: auto;
  box-shadow: var(--shadow-red);
}

.price-slider-container::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--ufc-gray-border);
  border-radius: var(--radius-none);
  transform: translateY(-50%);
  z-index: 1;
}

.price-slider-container::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--ufc-red), var(--ufc-red-bright));
  border-radius: var(--radius-none);
  transform: translateY(-50%);
  z-index: 1;
  width: 100%;
  pointer-events: none;
}

/* Filter Actions */
.filter-actions {
  margin-top: var(--space-lg);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--ufc-gray-border);
}

/* Mobile Filter Toggle */
.mobile-filter-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  width: 100%;
  padding: var(--space-md);
  background: var(--ufc-black-card);
  border: 1px solid var(--ufc-gray-border);
  border-radius: var(--radius-md);
  font-family: var(--font-arabic);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ufc-white);
  cursor: pointer;
  margin-bottom: var(--space-lg);
  transition: all var(--transition-fast);
}

body.lang-fr .mobile-filter-toggle {
  font-family: var(--font-latin);
}

.mobile-filter-toggle:hover {
  border-color: var(--ufc-red);
  color: var(--ufc-red);
}

.filter-badge {
  min-width: 20px;
  height: 20px;
  background: var(--ufc-red);
  color: var(--ufc-white);
  font-family: var(--font-latin);
  font-weight: 700;
  font-size: 0.65rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
}

/* ========================================
   PRODUCTS CONTENT
   ======================================== */
.products-content {
  min-width: 0;
}

/* Results Toolbar */
.results-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  flex-wrap: wrap;
  margin-bottom: var(--space-lg);
  padding: var(--space-md);
  background: var(--ufc-black-card);
  border: 1px solid var(--ufc-gray-border);
  border-radius: var(--radius-md);
}

.results-info {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.results-count {
  font-family: var(--font-arabic);
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--ufc-white);
}

body.lang-fr .results-count {
  font-family: var(--font-latin);
}

.results-time {
  font-family: var(--font-latin);
  font-size: 0.75rem;
  color: var(--ufc-gray);
}

.results-controls {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

/* View Toggle */
.view-toggle {
  display: inline-flex;
  border: 1px solid var(--ufc-gray-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.view-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ufc-black);
  border: none;
  color: var(--ufc-gray);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.view-btn:hover {
  background: rgba(232, 62, 62, 0.1);
  color: var(--ufc-red);
}

.view-btn.active {
  background: var(--ufc-red);
  color: var(--ufc-white);
}

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

.view-btn:first-child {
  border-right: 1px solid var(--ufc-gray-border);
}

.view-btn.active:first-child {
  border-right-color: rgba(255,255,255,0.2);
}

/* Sort Select */
.sort-select {
  min-width: 180px;
  padding-right: 40px;
}

/* Active Filters Tags */
.active-filters {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
  margin-bottom: var(--space-lg);
  padding: var(--space-md);
  background: rgba(232, 62, 62, 0.1);
  border: 1px solid var(--ufc-red);
  border-radius: var(--radius-md);
}

.active-filters-label {
  font-family: var(--font-latin);
  font-weight: 700;
  font-size: 0.7rem;
  color: var(--ufc-red);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.active-filters-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.active-filter-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 4px 10px 4px 8px;
  background: var(--ufc-red);
  color: var(--ufc-white);
  font-family: var(--font-arabic);
  font-weight: 500;
  font-size: 0.75rem;
  border-radius: var(--radius-sm);
}

body.lang-fr .active-filter-tag {
  font-family: var(--font-latin);
}

.active-filter-tag button {
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.2);
  border: none;
  border-radius: 50%;
  color: var(--ufc-white);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.active-filter-tag button:hover {
  background: var(--ufc-white);
  color: var(--ufc-red);
}

.active-filter-tag button svg {
  width: 12px;
  height: 12px;
}

.clear-all-filters {
  margin-right: auto;
  padding: 4px 10px;
  background: transparent;
  border: 1px solid var(--ufc-red);
  border-radius: var(--radius-sm);
  font-family: var(--font-latin);
  font-weight: 600;
  font-size: 0.7rem;
  color: var(--ufc-red);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.clear-all-filters:hover {
  background: var(--ufc-red);
  color: var(--ufc-white);
}

/* ========================================
   PRODUCTS CONTAINER (Grid/List)
   ======================================== */
.products-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--space-lg);
}

.products-container.list-view {
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

/* Product Card - Grid View */
.product-card {
  background: var(--ufc-black-card);
  border: 1px solid var(--ufc-gray-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: var(--ufc-red);
  box-shadow: var(--shadow-lg), var(--shadow-red);
}

.product-image-wrapper {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
}

.product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

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

.product-badge {
  position: absolute;
  top: var(--space-sm);
  left: var(--space-sm);
  padding: 4px 10px;
  font-family: var(--font-latin);
  font-weight: 700;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: var(--radius-none);
  z-index: 2;
}

.badge-sale {
  background: var(--ufc-red);
  color: var(--ufc-white);
}

.badge-new {
  background: var(--ufc-gold);
  color: var(--ufc-black);
}

.badge-bestseller {
  background: var(--ufc-white);
  color: var(--ufc-black);
}

.product-quick-view {
  position: absolute;
  bottom: var(--space-sm);
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  padding: 10px 20px;
  background: var(--ufc-red);
  color: var(--ufc-white);
  font-family: var(--font-latin);
  font-weight: 700;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border: none;
  border-radius: var(--radius-none);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
  cursor: pointer;
  z-index: 2;
}

.product-card:hover .product-quick-view {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.product-wishlist-btn {
  position: absolute;
  top: var(--space-sm);
  right: var(--space-sm);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 10, 10, 0.9);
  border: 1px solid var(--ufc-gray-border);
  border-radius: 50%;
  color: var(--ufc-white);
  cursor: pointer;
  opacity: 0;
  transform: translateY(-10px);
  transition: all var(--transition-base);
  z-index: 2;
}

.product-card:hover .product-wishlist-btn {
  opacity: 1;
  transform: translateY(0);
}

.product-wishlist-btn:hover,
.product-wishlist-btn.active {
  background: var(--ufc-red);
  border-color: var(--ufc-red);
  color: var(--ufc-white);
}

.product-wishlist-btn svg {
  width: 18px;
  height: 18px;
}

.product-wishlist-btn.active svg {
  fill: currentColor;
  stroke: none;
}

.product-info {
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-discipline {
  font-family: var(--font-latin);
  font-weight: 600;
  font-size: 0.65rem;
  color: var(--ufc-gold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-xs);
}

.product-name {
  font-family: var(--font-arabic);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--ufc-white);
  margin-bottom: var(--space-sm);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

body.lang-fr .product-name {
  font-family: var(--font-latin);
}

.product-rating {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: 0.8rem;
  color: var(--ufc-gold);
  margin-bottom: var(--space-sm);
}

.product-rating svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.rating-count {
  color: var(--ufc-gray);
  font-family: var(--font-latin);
}

.product-price {
  display: flex;
  align-items: baseline;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.price-current {
  font-family: var(--font-latin);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--ufc-red);
}

.price-original {
  font-family: var(--font-latin);
  font-weight: 400;
  font-size: 0.85rem;
  color: var(--ufc-gray);
  text-decoration: line-through;
}

.product-add-cart {
  width: 100%;
  justify-content: center;
}

/* Product Card - List View */
.products-container.list-view .product-card {
  flex-direction: row;
  align-items: stretch;
}

.products-container.list-view .product-image-wrapper {
  width: 200px;
  aspect-ratio: auto;
  flex-shrink: 0;
}

.products-container.list-view .product-info {
  padding: var(--space-lg);
  justify-content: center;
}

.products-container.list-view .product-name {
  font-size: 1.1rem;
  -webkit-line-clamp: 3;
  margin-bottom: var(--space-md);
}

.products-container.list-view .product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
  font-size: 0.85rem;
  color: var(--ufc-gray);
}

.products-container.list-view .product-meta span {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.products-container.list-view .product-meta svg {
  width: 16px;
  height: 16px;
}

.products-container.list-view .product-price {
  margin-bottom: var(--space-lg);
}

.products-container.list-view .price-current {
  font-size: 1.4rem;
}

.products-container.list-view .product-add-cart {
  width: auto;
  min-width: 180px;
}

/* ========================================
   LOADING STATE
   ======================================== */
.loading-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-4xl);
  gap: var(--space-md);
}

.loading-spinner {
  width: 48px;
  height: 48px;
  border: 3px solid var(--ufc-gray-border);
  border-top-color: var(--ufc-red);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.loading-state p {
  color: var(--ufc-gray);
}

/* ========================================
   EMPTY STATE
   ======================================== */
.empty-state {
  text-align: center;
  padding: var(--space-4xl) var(--space-xl);
  background: var(--ufc-black-card);
  border: 1px solid var(--ufc-gray-border);
  border-radius: var(--radius-md);
}

.empty-state svg {
  color: var(--ufc-gray-dark);
  margin-bottom: var(--space-lg);
}

.empty-state h3 {
  font-family: var(--font-arabic);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--ufc-white);
  margin-bottom: var(--space-sm);
}

body.lang-fr .empty-state h3 {
  font-family: var(--font-latin);
}

.empty-state p {
  color: var(--ufc-gray);
  margin-bottom: var(--space-xl);
}

/* ========================================
   PAGINATION
   ======================================== */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  margin-top: var(--space-2xl);
  flex-wrap: wrap;
}

.pagination-btn {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ufc-black-card);
  border: 1px solid var(--ufc-gray-border);
  border-radius: var(--radius-sm);
  color: var(--ufc-white);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.pagination-btn:hover:not(:disabled) {
  border-color: var(--ufc-red);
  color: var(--ufc-red);
  background: rgba(232, 62, 62, 0.1);
}

.pagination-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.pagination-btn svg {
  width: 20px;
  height: 20px;
}

.pagination-pages {
  display: flex;
  gap: var(--space-xs);
}

.pagination-page {
  min-width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ufc-black-card);
  border: 1px solid var(--ufc-gray-border);
  border-radius: var(--radius-sm);
  font-family: var(--font-latin);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--ufc-white);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.pagination-page:hover {
  border-color: var(--ufc-red);
  color: var(--ufc-red);
  background: rgba(232, 62, 62, 0.1);
}

.pagination-page.active {
  background: var(--ufc-red);
  border-color: var(--ufc-red);
  color: var(--ufc-white);
}

.pagination-ellipsis {
  display: flex;
  align-items: center;
  padding: 0 var(--space-sm);
  color: var(--ufc-gray);
}

/* Load More Button */
.load-more-btn {
  display: none;
  width: 100%;
  justify-content: center;
  margin-top: var(--space-xl);
}

/* ========================================
   QUICK VIEW MODAL
   ======================================== */
.quick-view-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
}

.quick-view-image {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.quick-view-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.quick-view-image .product-badge {
  top: var(--space-md);
  left: var(--space-md);
}

.quick-view-info {
  display: flex;
  flex-direction: column;
}

.quick-view-info .product-discipline {
  margin-bottom: var(--space-xs);
}

.quick-view-info .product-name {
  font-size: 1.25rem;
  -webkit-line-clamp: 3;
  margin-bottom: var(--space-md);
}

.quick-view-info .product-rating {
  margin-bottom: var(--space-md);
}

.quick-view-info .product-price {
  margin-bottom: var(--space-md);
}

.quick-view-info .price-current {
  font-size: 1.5rem;
}

.quick-view-desc {
  font-size: 0.9rem;
  color: var(--ufc-white-muted);
  line-height: 1.7;
  margin-bottom: var(--space-lg);
  flex: 1;
}

.quick-view-actions {
  margin-top: auto;
}

.quantity-selector {
  margin-bottom: var(--space-md);
}

.quantity-selector label {
  display: block;
  font-family: var(--font-arabic);
  font-weight: 500;
  font-size: 0.8rem;
  color: var(--ufc-white);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-sm);
}

body.lang-fr .quantity-selector label {
  font-family: var(--font-latin);
}

.qty-controls {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  max-width: 140px;
}

.qty-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ufc-black-card);
  border: 1px solid var(--ufc-gray-border);
  border-radius: var(--radius-sm);
  font-family: var(--font-latin);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--ufc-white);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.qty-btn:hover {
  border-color: var(--ufc-red);
  color: var(--ufc-red);
  background: rgba(232, 62, 62, 0.1);
}

.qty-input {
  flex: 1;
  height: 40px;
  text-align: center;
  background: var(--ufc-black);
  border: 1px solid var(--ufc-gray-border);
  border-radius: var(--radius-sm);
  font-family: var(--font-latin);
  font-weight: 600;
  font-size: 1rem;
  color: var(--ufc-white);
  -moz-appearance: textfield;
}

.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.quick-view-actions .btn {
  width: 100%;
  justify-content: center;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1024px) {
  .products-layout {
    grid-template-columns: 1fr;
  }

  .products-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: 340px;
    max-height: 100vh;
    border-radius: 0;
    border-left: 1px solid var(--ufc-gray-border);
    z-index: var(--z-modal);
    transform: translateX(100%);
    transition: transform var(--transition-slow);
    padding-bottom: var(--space-3xl);
  }

  .products-sidebar.open {
    transform: translateX(0);
  }

  .sidebar-toggle {
    display: flex;
  }

  .mobile-filter-toggle {
    display: flex;
  }

  .sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: calc(var(--z-modal) - 1);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
  }

  .sidebar-overlay.open {
    opacity: 1;
    visibility: visible;
  }
}

@media (max-width: 768px) {
  .products-hero {
    min-height: 35vh;
  }

  .products-main {
    padding: var(--space-2xl) 0;
  }

  .results-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .results-controls {
    justify-content: space-between;
  }

  .sort-select {
    flex: 1;
    min-width: 0;
  }

  .products-container {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
  }

  .products-container.list-view {
    grid-template-columns: 1fr;
  }

  .products-container.list-view .product-card {
    flex-direction: column;
  }

  .products-container.list-view .product-image-wrapper {
    width: 100%;
    aspect-ratio: 1;
  }

  .pagination {
    gap: var(--space-xs);
  }

  .pagination-btn,
  .pagination-page {
    min-width: 36px;
    height: 36px;
    font-size: 0.75rem;
  }

  .load-more-btn {
    display: flex;
  }

  .quick-view-grid {
    grid-template-columns: 1fr;
  }

  .quick-view-image {
    aspect-ratio: 4/3;
  }
}

@media (max-width: 480px) {
  .products-container {
    grid-template-columns: 1fr;
  }

  .active-filters {
    flex-direction: column;
    align-items: flex-start;
  }

  .active-filters-label {
    margin-bottom: var(--space-xs);
  }

  .clear-all-filters {
    margin-right: 0;
    margin-top: var(--space-sm);
    width: 100%;
  }
}

/* ========================================
   SKELETON LOADERS
   ======================================== */
.product-skeleton {
  background: var(--ufc-black-card);
  border: 1px solid var(--ufc-gray-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.product-skeleton .skeleton-image {
  aspect-ratio: 1;
  background: linear-gradient(90deg, var(--ufc-black-card) 25%, var(--ufc-gray-border) 50%, var(--ufc-black-card) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

.product-skeleton .skeleton-content {
  padding: var(--space-md);
}

.product-skeleton .skeleton-line {
  height: 16px;
  background: linear-gradient(90deg, var(--ufc-black-card) 25%, var(--ufc-gray-border) 50%, var(--ufc-black-card) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-sm);
}

.product-skeleton .skeleton-line.short {
  width: 60%;
}

.product-skeleton .skeleton-line.medium {
  width: 80%;
}

.product-skeleton .skeleton-price {
  height: 24px;
  width: 100px;
  background: linear-gradient(90deg, var(--ufc-black-card) 25%, var(--ufc-red) 50%, var(--ufc-black-card) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
  margin-top: var(--space-md);
}