/**
 * Tienda Styles - Cyber Byte Perú
 * Estilos mejorados para la página de tienda con filtros avanzados
 */

/* ============================================
   LAYOUT PRINCIPAL
   ============================================ */

.shop-section {
  background: transparent;
  min-height: 80vh;
  position: relative;
}

.shop-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: var(--spacing-3xl);
  align-items: start;
}

/* ============================================
   SIDEBAR - FILTROS
   ============================================ */

.shop-sidebar {
  position: sticky;
  top: 100px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  padding-right: var(--spacing-md);
}

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

.shop-sidebar::-webkit-scrollbar-track {
  background: var(--color-bg-gray);
  border-radius: 10px;
}

.shop-sidebar::-webkit-scrollbar-thumb {
  background: var(--color-primary);
  border-radius: 10px;
}

.shop-sidebar::-webkit-scrollbar-thumb:hover {
  background: var(--color-primary-light);
}

.filters-card {
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--radius-xl);
  padding: var(--spacing-2xl);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
}

.filters-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(79, 172, 254, 0.3), transparent);
  opacity: 0.5;
}

.filters-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--spacing-2xl);
  padding-bottom: var(--spacing-lg);
  border-bottom: 2px solid var(--color-bg-gray);
}

.filters-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-text-dark);
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  margin: 0;
}

.filters-title i {
  color: var(--color-primary);
}

.clear-filters-btn {
  background: transparent;
  border: none;
  color: var(--color-text-light-secondary);
  font-size: 14px;
  cursor: pointer;
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: var(--radius-md);
  transition: var(--transition-base);
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
}

.clear-filters-btn:hover {
  background: var(--color-bg-gray);
  color: var(--color-primary);
}

.clear-filters-btn:active {
  transform: scale(0.95);
}

/* ============================================
   GRUPOS DE FILTROS
   ============================================ */

.filter-group {
  margin-bottom: var(--spacing-2xl);
  padding-bottom: var(--spacing-xl);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
}

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

.filter-label {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  font-size: 15px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: var(--spacing-md);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.filter-label i {
  color: var(--color-primary);
  font-size: 14px;
  width: 18px;
  text-align: center;
}

/* ============================================
   BÚSQUEDA
   ============================================ */

.filter-input {
  width: 100%;
  padding: var(--spacing-md);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  font-size: 14px;
  font-family: var(--font-body);
  transition: var(--transition-base);
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--color-text-light);
  position: relative;
}

.filter-input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.filter-input:focus {
  outline: none;
  border-color: rgba(79, 172, 254, 0.5);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 
    0 0 0 3px rgba(79, 172, 254, 0.1),
    0 4px 12px rgba(79, 172, 254, 0.2);
}

/* ============================================
   BÚSQUEDA CON SUGERENCIAS
   ============================================ */

.search-wrapper {
  position: relative;
}

.search-suggestions {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: rgba(10, 14, 39, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--radius-md);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.3),
    0 0 20px rgba(79, 172, 254, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  max-height: 300px;
  overflow-y: auto;
  z-index: 1000;
  display: none;
  margin-top: var(--spacing-xs);
}

.search-suggestions.active {
  display: block;
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.search-suggestions::-webkit-scrollbar {
  width: 6px;
}

.search-suggestions::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
}

.search-suggestions::-webkit-scrollbar-thumb {
  background: rgba(79, 172, 254, 0.5);
  border-radius: 10px;
}

.search-suggestions::-webkit-scrollbar-thumb:hover {
  background: rgba(79, 172, 254, 0.7);
}

.suggestion-item {
  padding: var(--spacing-md);
  cursor: pointer;
  transition: all 0.2s ease;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  color: var(--color-text-light-secondary);
}

.suggestion-item:last-child {
  border-bottom: none;
}

.suggestion-item:hover,
.suggestion-item.selected {
  background: rgba(79, 172, 254, 0.1);
  color: var(--color-text-light);
  padding-left: var(--spacing-lg);
}

.suggestion-item i {
  color: rgba(79, 172, 254, 0.6);
  font-size: 14px;
  width: 20px;
  text-align: center;
}

.suggestion-item:hover i,
.suggestion-item.selected i {
  color: #4FACFE;
}

.suggestion-name {
  font-weight: 600;
  font-size: 14px;
}

.suggestion-category {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.75);
  margin-left: auto;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.suggestion-item mark {
  background: rgba(79, 172, 254, 0.3);
  color: #4FACFE;
  font-weight: 700;
  padding: 0 2px;
  border-radius: 2px;
}

.no-suggestions {
  padding: var(--spacing-lg);
  text-align: center;
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.filter-input::placeholder {
  color: var(--color-text-light-secondary);
}

/* ============================================
   CHECKBOXES (Categorías, Stock)
   ============================================ */

.filter-checkboxes {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
  max-height: 300px;
  overflow-y: auto;
  padding-right: var(--spacing-xs);
}

.filter-checkboxes::-webkit-scrollbar {
  width: 4px;
}

.filter-checkboxes::-webkit-scrollbar-track {
  background: transparent;
}

.filter-checkboxes::-webkit-scrollbar-thumb {
  background: var(--color-bg-gray);
  border-radius: 10px;
}

.filter-checkbox {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-sm);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition-base);
  user-select: none;
}

.filter-checkbox:hover {
  background: var(--color-bg-gray);
}

.filter-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--color-primary);
  flex-shrink: 0;
}

.filter-checkbox span {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.95);
  flex: 1;
  transition: color 0.3s ease;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.filter-checkbox input[type="checkbox"]:checked + span {
  color: #4FACFE;
  font-weight: 600;
}

.filter-checkbox-count {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.05);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  margin-left: auto;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ============================================
   FILTRO DE PRECIO
   ============================================ */

.price-filter {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.price-inputs {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.price-input {
  flex: 1;
  padding: var(--spacing-sm) var(--spacing-md);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  font-size: 14px;
  font-family: var(--font-body);
  transition: var(--transition-base);
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--color-text-light);
}

.price-input:focus {
  outline: none;
  border-color: rgba(79, 172, 254, 0.5);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 0 3px rgba(79, 172, 254, 0.1);
}

.price-input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.price-inputs span {
  color: rgba(255, 255, 255, 0.95);
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.price-range-slider {
  position: relative;
}

.range-slider {
  width: 100%;
  height: 6px;
  border-radius: var(--radius-full);
  background: var(--color-bg-gray);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}

.range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--color-primary);
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(79, 172, 254, 0.3);
  transition: var(--transition-base);
}

.range-slider::-webkit-slider-thumb:hover {
  transform: scale(1.1);
  box-shadow: 0 3px 8px rgba(79, 172, 254, 0.4);
}

.range-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--color-primary);
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 6px rgba(79, 172, 254, 0.3);
  transition: var(--transition-base);
}

.range-slider::-moz-range-thumb:hover {
  transform: scale(1.1);
  box-shadow: 0 3px 8px rgba(79, 172, 254, 0.4);
}

.price-display {
  margin-top: var(--spacing-sm);
  text-align: center;
}

.price-display span {
  font-size: 14px;
  font-weight: 600;
  color: #4FACFE;
  background: rgba(79, 172, 254, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: var(--spacing-xs) var(--spacing-md);
  border-radius: var(--radius-md);
  display: inline-block;
  border: 1px solid rgba(79, 172, 254, 0.2);
  box-shadow: 0 0 10px rgba(79, 172, 254, 0.2);
}

/* ============================================
   SELECT (Ordenar)
   ============================================ */

.filter-select {
  width: 100%;
  padding: var(--spacing-md);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  font-size: 14px;
  font-family: var(--font-body);
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--color-text-light);
  cursor: pointer;
  transition: var(--transition-base);
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23ffffff' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--spacing-md) center;
  padding-right: var(--spacing-3xl);
}

.filter-select:focus {
  outline: none;
  border-color: rgba(79, 172, 254, 0.5);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 0 3px rgba(79, 172, 254, 0.1);
}

.filter-select option {
  background: #0A0E27;
  color: var(--color-text-light);
}

/* ============================================
   FILTROS ACTIVOS
   ============================================ */

.active-filters {
  margin-top: var(--spacing-xl);
  padding-top: var(--spacing-xl);
  border-top: 2px solid var(--color-bg-gray);
}

.active-filters h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-light);
  margin-bottom: var(--spacing-md);
}

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

.active-filter-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  background: linear-gradient(135deg, #4FACFE 0%, #00F2FE 100%);
  color: white;
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: var(--radius-md);
  font-size: 12px;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(79, 172, 254, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.active-filter-tag button {
  background: transparent;
  border: none;
  color: white;
  cursor: pointer;
  padding: 0;
  margin-left: var(--spacing-xs);
  display: flex;
  align-items: center;
  transition: var(--transition-base);
}

.active-filter-tag button:hover {
  transform: scale(1.2);
}

/* ============================================
   MAIN CONTENT
   ============================================ */

.shop-main {
  min-height: 500px;
}

.shop-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--spacing-2xl);
  padding: var(--spacing-lg);
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--radius-xl);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.results-info {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.95);
  font-weight: 600;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.results-info span {
  color: #4FACFE;
  text-shadow: 0 0 10px rgba(79, 172, 254, 0.5);
}

.view-options {
  display: flex;
  gap: var(--spacing-xs);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 4px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.view-btn {
  background: transparent;
  border: none;
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: var(--radius-md);
  cursor: pointer;
  color: rgba(255, 255, 255, 0.6);
  transition: var(--transition-base);
  display: flex;
  align-items: center;
  justify-content: center;
}

.view-btn:hover {
  color: #4FACFE;
  background: rgba(79, 172, 254, 0.15);
}

.view-btn.active {
  background: linear-gradient(135deg, #4FACFE 0%, #00F2FE 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(79, 172, 254, 0.4);
}

/* ============================================
   PRODUCTOS GRID
   ============================================ */

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--spacing-2xl);
  margin-bottom: var(--spacing-3xl);
}

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

.product-card {
  background: var(--color-bg-white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform 0.3s ease-out, box-shadow 0.3s ease-out;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.product-card:hover {
  transform: translateY(-8px) scale(1.02);
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(79, 172, 254, 0.3);
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.3),
    0 0 30px rgba(79, 172, 254, 0.2);
}

.products-grid.list-view .product-card {
  flex-direction: row;
  min-height: 200px;
  max-height: none;
  align-items: stretch;
  overflow: hidden;
}

.products-grid.list-view .product-image-wrapper {
  overflow: hidden;
}

.products-grid.list-view .product-image {
  border-radius: var(--radius-xl) 0 0 var(--radius-xl);
}

.product-image-wrapper {
  position: relative;
  width: 100%;
  padding-top: 75%;
  overflow: hidden;
  background: var(--color-bg-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  cursor: pointer;
}

.product-image-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.1) 100%);
  opacity: 0;
  transition: opacity 0.3s ease-out;
  z-index: 1;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.product-card:hover .product-image-wrapper::before {
  opacity: 1;
}

.product-card:hover .product-image-wrapper {
  background: var(--color-bg-gray);
}

.products-grid.list-view .product-image-wrapper {
  padding-top: 0;
  width: 250px;
  min-width: 250px;
  height: 200px;
  flex-shrink: 0;
}

.product-image {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
              filter 0.3s ease-out;
  will-change: transform;
}

.product-card:hover .product-image {
  transform: translate(-50%, -50%) scale(1.1);
  filter: brightness(1.05) contrast(1.05);
}

.product-badge {
  position: absolute;
  top: var(--spacing-md);
  right: var(--spacing-md);
  background: var(--color-accent-orange);
  color: white;
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: var(--radius-md);
  font-size: 12px;
  font-weight: 700;
  z-index: 2;
}

.product-info {
  padding: var(--spacing-lg);
  flex: 1;
  display: flex;
  flex-direction: column;
  background: transparent;
}

.products-grid.list-view .product-info {
  padding: var(--spacing-xl);
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  justify-content: space-between;
}

.product-category {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.85);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: var(--spacing-xs);
  flex-shrink: 0;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.product-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-text-light);
  margin-bottom: var(--spacing-sm);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.products-grid.list-view .product-name {
  -webkit-line-clamp: 1;
  margin-bottom: var(--spacing-xs);
  flex-shrink: 0;
}

.product-description {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: var(--spacing-md);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.products-grid.list-view .product-description {
  -webkit-line-clamp: 1;
  margin-bottom: var(--spacing-sm);
  flex: 0 0 auto;
}

.product-price-wrapper {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-md);
  flex-shrink: 0;
}

.products-grid.list-view .product-price-wrapper {
  margin-bottom: var(--spacing-sm);
}

.product-price {
  font-size: 24px;
  font-weight: 700;
  color: #4FACFE;
  text-shadow: 0 0 10px rgba(79, 172, 254, 0.5);
}

.product-price-old {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: line-through;
}

.product-stock {
  font-size: 12px;
  margin-bottom: var(--spacing-md);
  flex-shrink: 0;
}

.products-grid.list-view .product-stock {
  margin-bottom: var(--spacing-sm);
}

.product-stock.in-stock {
  color: #25D366;
  font-weight: 600;
}

.product-stock.out-of-stock {
  color: var(--color-accent-orange);
  font-weight: 600;
}

.product-actions {
  display: flex;
  gap: var(--spacing-sm);
  flex-shrink: 0;
  margin-top: auto;
}

.products-grid.list-view .product-actions {
  margin-top: var(--spacing-md);
  width: 100%;
}

.btn-product {
  flex: 1;
  padding: var(--spacing-md);
  border: none;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-base);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-xs);
  white-space: nowrap;
  min-width: 0;
}

.products-grid.list-view .btn-product {
  flex: 1;
  min-width: 120px;
}

.btn-product-primary {
  background: var(--color-primary);
  color: white;
}

.btn-product-primary:hover {
  background: var(--color-primary-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(79, 172, 254, 0.3);
}

.btn-product-secondary {
  background: transparent;
  border: 2px solid rgba(79, 172, 254, 0.5);
  color: #4FACFE;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.btn-product-secondary:hover {
  background: rgba(79, 172, 254, 0.2);
  border-color: #4FACFE;
  color: white;
  box-shadow: 0 0 15px rgba(79, 172, 254, 0.4);
}

/* ============================================
   ESTADOS
   ============================================ */

.products-loading {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 400px;
}

.loading-spinner {
  text-align: center;
}

.loading-spinner i {
  font-size: 48px;
  color: var(--color-primary);
  margin-bottom: var(--spacing-md);
  animation: spin 1s linear infinite;
}

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

.empty-state {
  text-align: center;
  padding: var(--spacing-5xl) var(--spacing-2xl);
}

.empty-state i {
  font-size: 64px;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: var(--spacing-lg);
}

.empty-state h3 {
  font-size: 24px;
  color: var(--color-text-light);
  margin-bottom: var(--spacing-md);
}

.empty-state p {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: var(--spacing-xl);
}

/* ============================================
   PAGINACIÓN
   ============================================ */

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--spacing-sm);
  margin-top: var(--spacing-3xl);
  padding: var(--spacing-lg);
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--radius-xl);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.pagination-btn {
  padding: var(--spacing-sm) var(--spacing-md);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-light);
  transition: var(--transition-base);
  min-width: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pagination-btn:hover:not(:disabled) {
  border-color: rgba(79, 172, 254, 0.5);
  color: #4FACFE;
  background: rgba(79, 172, 254, 0.15);
  box-shadow: 0 0 10px rgba(79, 172, 254, 0.3);
}

.pagination-btn.active {
  background: linear-gradient(135deg, #4FACFE 0%, #00F2FE 100%);
  color: white;
  border-color: rgba(79, 172, 254, 0.5);
  box-shadow: 0 4px 12px rgba(79, 172, 254, 0.4);
}

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

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1023px) {
  .shop-layout {
    grid-template-columns: 1fr;
    gap: var(--spacing-2xl);
  }
  
  .shop-sidebar {
    position: relative;
    top: 0;
    max-height: none;
  }
  
  .filters-card {
    position: relative;
  }
  
  .mobile-filters-toggle {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: var(--spacing-md) var(--spacing-lg);
    background: linear-gradient(135deg, #4FACFE 0%, #00F2FE 100%);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: var(--spacing-lg);
    transition: var(--transition-base);
    box-shadow: 0 4px 15px rgba(79, 172, 254, 0.4);
  }
  
  .mobile-filters-toggle:hover {
    background: var(--color-primary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
  }
  
  .mobile-filters-toggle i.fa-chevron-down {
    transition: transform 0.3s;
  }
  
  .mobile-filters-toggle.active i.fa-chevron-down {
    transform: rotate(180deg);
  }
  
  .filters-card {
    display: none;
    margin-bottom: var(--spacing-xl);
  }
  
  .filters-card.active {
    display: block;
  }
  
  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: var(--spacing-lg);
  }
}

@media (max-width: 767px) {
  .shop-header {
    flex-direction: column;
    gap: var(--spacing-md);
    align-items: stretch;
  }
  
  .view-options {
    justify-content: center;
  }
  
  .products-grid {
    grid-template-columns: 1fr;
  }
  
  .products-grid.list-view .product-card {
    flex-direction: column;
    max-height: none;
  }
  
  .products-grid.list-view .product-image-wrapper {
    width: 100%;
    height: 200px;
  }
  
  .filter-group {
    margin-bottom: var(--spacing-xl);
  }
  
  .price-inputs {
    flex-direction: column;
  }
  
  .price-inputs span {
    display: none;
  }
}
