/* Estilo inspirado en Aruma.pe */
.container-fluid {
  padding: 0 20px;
}

/* Sidebar de Filtros - Diseño Unificado */
.sidebar-filters {
  padding: 0;
  background: #fcf5f5;
  border-right: 1px solid #e0e0e0;
  border-radius: 0 12px 12px 0;
}

.filters-container {
  padding: 0;
  background: #fcf5f5;
  border-radius: 0 12px 12px 0;
}

.filter-section {
  margin-bottom: 0;
  background: transparent;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  border-bottom: 1px solid #e0e0e0;
  position: relative;
}

.filter-section:last-child {
  border-bottom: none;
  border-radius: 0 0 12px 0;
}

.filter-title {
  font-size: 15px;
  font-weight: 600;
  color: #333333;
  margin: 0;
  padding: 20px 24px;
  border: none;
  border-bottom: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  width: 100%;
  background: transparent;
  text-align: left;
  font-family: inherit;
  appearance: none;
}

.filter-title:hover {
  background: rgba(198, 32, 118, 0.05);
  color: #c62076;
}

.filter-title i {
  font-size: 14px;
  color: #666666;
  transition: transform 0.3s ease;
}

.filter-title:hover i {
  color: #c62076;
}

.filter-section.is-open > .filter-title i {
  transform: rotate(180deg);
}

.toggle-subcategories.is-rotated i {
  display: inline-block;
  transform: rotate(180deg);
}

.filters-mobile-bar,
.filters-panel-header {
  display: none;
}

/* Contenido de Filtros */
.filter-content {
  padding: 0 24px 20px 24px;
  background: transparent;
}

/* Filtro de Categorías */
.category-group {
  margin-bottom: 12px;
}

.category-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.category-checkbox, .subcategory-checkbox {
  display: flex;
  align-items: center;
  cursor: pointer;
  padding: 8px 0;
  transition: all 0.3s ease;
}

.category-checkbox:hover, .subcategory-checkbox:hover {
  background-color: rgba(198, 32, 118, 0.05);
  border-radius: 6px;
  padding-left: 8px;
  padding-right: 8px;
}

.category-checkbox input[type="radio"], .subcategory-checkbox input[type="radio"] {
  margin-right: 8px;
  accent-color: #c62076;
}

.category-name, .subcategory-name {
  color: #333333;
  font-weight: 500;
  font-size: 14px;
  transition: color 0.3s ease;
}

.category-checkbox:hover .category-name, .subcategory-checkbox:hover .subcategory-name {
  color: #c62076;
}

.toggle-subcategories {
  background: none;
  border: none;
  color: #666666;
  font-size: 12px;
  cursor: pointer;
  transition: color 0.3s ease;
}

.toggle-subcategories:hover {
  color: #c62076;
}

.subcategories {
  display: none;
  padding-left: 15px;
}

.subcategories.show {
  display: block;
}

.subcategory-link {
  display: block;
  color: #666666;
  text-decoration: none;
  font-size: 13px;
  padding: 5px 0;
  transition: color 0.3s ease;
}

.subcategory-link:hover {
  color: #c62076;
}


/* Filtro de Marcas */
.brand-search {
  margin-bottom: 15px;
}

.brand-search .form-control {
  font-size: 14px;
  padding: 10px 12px;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  background: white;
}

.brand-list {
  max-height: 200px;
  overflow-y: auto;
  margin-bottom: 15px;
}

.brand-item {
  margin-bottom: 8px;
}

.brand-checkbox {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-size: 14px;
  padding: 8px 0;
}

.brand-checkbox input[type="radio"] {
  margin-right: 8px;
}

.brand-name {
  color: #333333;
  margin-right: 5px;
  font-weight: 500;
}

.brand-count {
  color: #666666;
  font-size: 12px;
}

.filter-actions {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

.btn-apply {
  flex: 1;
  background: #c62076;
  color: white;
  border: none;
  padding: 12px;
  border-radius: 6px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.3s ease;
}

.btn-apply:hover {
  background: #c2185b;
}

.btn-clear {
  flex: 1;
  background: transparent;
  color: #666666;
  border: 1px solid #e0e0e0;
  padding: 12px;
  border-radius: 6px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  text-align: center;
}

.btn-clear:hover {
  background: #f5f5f5;
  color: #333333;
  border-color: #ccc;
}

/* Contenido Principal */
.main-content {
  padding: 20px;
}

.results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e9ecef;
}

.results-info h2 {
  font-size: 24px;
  font-weight: 600;
  color: #2c3e50;
  margin: 0;
}

.results-count {
  color: #6c757d;
  font-size: 14px;
}

.controls-bar {
  display: flex;
  gap: 20px;
  align-items: center;
}

/* Override main.css con mayor especificidad */
.controls-bar .search-form {
  flex: 1;
}

.controls-bar .search-form .input-group {
  position: relative !important;
  background-color: #ffffff !important;
  border-radius: 8px !important;
  overflow: hidden !important;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08) !important;
  transition: all 0.3s ease !important;
}

.controls-bar .search-form .input-group:focus-within {
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.12) !important;
}

.controls-bar .search-form .input-group .form-control {
  border: 2px solid rgba(0, 0, 0, 0.15) !important;
  border-right: none !important;
  padding: 14px 20px !important;
  font-size: 15px !important;
  background-color: transparent !important;
  color: #2c3e50 !important;
  border-radius: 8px 0 0 8px !important;
  height: auto !important;
}

.controls-bar .search-form .input-group .form-control::placeholder {
  color: rgba(0, 0, 0, 0.5) !important;
  font-size: 15px !important;
}

.controls-bar .search-form .input-group .form-control:focus {
  box-shadow: none !important;
  border-color: #c62076 !important;
}

.controls-bar .search-form .input-group .search-btn {
  background-color: #c62076 !important;
  color: white !important;
  padding: 0 25px !important;
  border: 2px solid #c62076 !important;
  transition: all 0.3s ease !important;
  border-radius: 0 8px 8px 0 !important;
  position: relative !important;
  overflow: hidden !important;
  z-index: 1 !important;
}

.controls-bar .search-form .input-group .search-btn::before {
  content: "" !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 0 !important;
  height: 100% !important;
  background-color: rgba(198, 32, 118, 0.8) !important;
  transition: width 0.3s ease !important;
  z-index: -1 !important;
}

.controls-bar .search-form .input-group .search-btn:hover::before {
  width: 100% !important;
}

.controls-bar .search-form .input-group .search-btn i {
  font-size: 18px !important;
  position: relative !important;
}

.sort-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sort-controls label {
  font-size: 14px;
  color: #2c3e50;
  font-weight: 500;
}

.sort-controls select {
  padding: 8px 12px;
  border: 1px solid #e9ecef;
  border-radius: 6px;
  font-size: 14px;
  background: white;
}

/* Grid de Productos - Diseño Profesional */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 25px;
  margin-bottom: 40px;
}

.product-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  border-color: rgba(198, 32, 118, 0.2);
}

.product-image {
  position: relative;
  padding-bottom: 100%;
  overflow: hidden;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.product-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  opacity: 1 !important; /* Asegurar que las imágenes sean visibles */
}

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

/* Badges Mejorados */
.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.product-badge.sale {
  background: linear-gradient(135deg, #e53e3e, #c53030);
  color: white;
}

.product-badge.new {
  background: linear-gradient(135deg, #38a169, #2f855a);
  color: white;
}

.product-badge.sold {
  background: linear-gradient(135deg, #718096, #4a5568);
  color: white;
}

/* Overlay de Acciones */
.product-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.4));
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.4s ease;
}

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

.overlay-actions {
  display: flex;
  gap: 16px;
  transform: translateY(20px);
  transition: transform 0.4s ease;
  justify-content: center;
}

.product-card:hover .overlay-actions {
  transform: translateY(0);
}

.action-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #2c3e50;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.action-btn:hover {
  background: #c62076;
  color: white;
  transform: scale(1.1);
}

.action-btn.wishlist-btn:hover {
  background: #e53e3e;
}


/* Información del Producto */
.product-info {
  padding: 20px;
}

.product-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.product-brand {
  font-size: 11px;
  color: #6c757d;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

.product-category {
  font-size: 11px;
  color: #c62076;
  background: rgba(198, 32, 118, 0.1);
  padding: 2px 8px;
  border-radius: 12px;
  font-weight: 500;
}

.product-title {
  font-size: 15px;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 12px;
  line-height: 1.4;
  height: 2.8em;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.product-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

.product-title a:hover {
  color: #c62076;
}

/* ════════════════════════════════════════════════════════════════════
   PRECIOS - DISEÑO MODERNO Y PROFESIONAL
   ════════════════════════════════════════════════════════════════════ */

.product-price {
  margin-bottom: 14px;
}

/* ────────────────────────────────────────────────────────────────────
   Contenedor con descuento (Diseño Premium)
   ──────────────────────────────────────────────────────────────────── */

.price-container-discount {
  background: linear-gradient(135deg, rgba(198, 32, 118, 0.05) 0%, rgba(16, 185, 129, 0.03) 100%);
  border: 1px solid rgba(198, 32, 118, 0.15);
  border-radius: 12px;
  padding: 12px 14px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.price-container-discount::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s ease;
}

.product-card:hover .price-container-discount::before {
  left: 100%;
}

.price-container-discount:hover {
  border-color: rgba(198, 32, 118, 0.3);
  box-shadow: 0 4px 12px rgba(198, 32, 118, 0.1);
}

/* Precio original (Antes) */
.price-original-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  gap: 8px;
}

.price-label {
  font-size: 11px;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.price-label-now {
  color: #c62076 !important;
}

.price-original {
  font-size: 14px;
  font-weight: 500;
  color: #9ca3af;
  text-decoration: line-through;
  position: relative;
  padding: 0 6px;
}

.price-original::after {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, #ef4444 0%, #dc2626 100%);
  transform: translateY(-50%);
  opacity: 0.6;
  border-radius: 1px;
}

/* Precio actual (Ahora) */
.price-current-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  gap: 8px;
}

.price-label[style*="Ahora"] {
  color: #c62076;
}

.price-current-highlight {
  font-size: 26px;
  font-weight: 800;
  color: #c62076;
  line-height: 1;
  position: relative;
  background: linear-gradient(135deg, #c62076 0%, #b01d69 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Badge de ahorro */
.price-discount-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 6px 12px;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
  animation: pulse 2s ease-in-out infinite;
  position: relative;
  overflow: hidden;
}

.price-discount-badge::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s ease;
}

.product-card:hover .price-discount-badge::before {
  left: 100%;
}

.price-discount-badge i {
  font-size: 12px;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.02);
  }
}

/* ────────────────────────────────────────────────────────────────────
   Contenedor normal sin descuento
   ──────────────────────────────────────────────────────────────────── */

.price-container-normal {
  padding: 8px 0;
}

.price-simple {
  font-size: 22px;
  font-weight: 700;
  color: #2c3e50;
  line-height: 1.3;
}

/* ────────────────────────────────────────────────────────────────────
   Efectos hover avanzados
   ──────────────────────────────────────────────────────────────────── */

.product-card:hover .price-current-highlight {
  transform: scale(1.05);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover .price-discount-badge {
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.4);
  transform: translateY(-1px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Rating Mejorado */
.product-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 16px;
}

.stars {
  color: #f59e0b;
  font-size: 13px;
}

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

.rating-count {
  font-size: 12px;
  color: #6c757d;
}

/* Botones de Acción */
.product-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

.buy-form {
  width: 100%;
}

.btn-buy {
  width: 100%;
  background: linear-gradient(135deg, #c62076, #b01d69);
  color: white;
  border: none;
  padding: 12px 16px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(198, 32, 118, 0.3);
}

.btn-buy:hover {
  background: linear-gradient(135deg, #b01d69, #981958);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(198, 32, 118, 0.4);
}

.btn-buy:active {
  transform: translateY(0);
}

.btn-details {
  width: 100%;
  background: transparent;
  color: #c62076;
  border: 2px solid #c62076;
  padding: 10px 16px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-details:hover {
  background: #c62076;
  color: white;
  transform: translateY(-2px);
}

.btn-sold-out {
  width: 100%;
  background: #e2e8f0;
  color: #718096;
  border: none;
  padding: 12px 16px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 14px;
  cursor: not-allowed;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* Advertencia de Stock */
.stock-warning {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: 8px;
  font-size: 12px;
  color: #d69e2e;
  font-weight: 500;
}

.stock-warning i {
  color: #f59e0b;
}

/* Estado Sin Productos */
.no-products {
  text-align: center;
  padding: 80px 20px;
  color: #6c757d;
  grid-column: 1 / -1;
}

.no-products-icon {
  font-size: 64px;
  color: #e2e8f0;
  margin-bottom: 20px;
}

.no-products h3 {
  font-size: 24px;
  margin-bottom: 12px;
  color: #2c3e50;
}

.no-products p {
  font-size: 16px;
  margin-bottom: 24px;
}

.btn-clear-filters {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #c62076;
  color: white;
  padding: 12px 24px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-clear-filters:hover {
  background: #b01d69;
  transform: translateY(-2px);
}

/* Paginación */
.pagination-container {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

.pagination {
  display: flex;
  gap: 5px;
}

.page-btn {
  padding: 8px 12px;
  border: 1px solid #e9ecef;
  background: white;
  color: #2c3e50;
  text-decoration: none;
  border-radius: 4px;
  font-size: 14px;
  transition: all 0.3s ease;
}

.page-btn:hover {
  background: #c62076;
  color: white;
  border-color: #c62076;
}

.page-btn.current {
  background: #c62076;
  color: white;
  border-color: #c62076;
}

/* No Products */
.no-products {
  text-align: center;
  padding: 60px 20px;
  color: #6c757d;
}

.no-products h3 {
  font-size: 20px;
  margin-bottom: 10px;
}

/* Responsive */
@media (max-width: 991.98px) {
  .category-page .page-title {
    padding: 12px 0 10px;
  }

  .category-page .page-title h1 {
    font-size: 1.25rem;
    margin: 0;
  }

  .category-page .page-title .breadcrumbs {
    margin-bottom: 4px;
    font-size: 0.8rem;
  }

  .catalog-layout.container-fluid,
  .catalog-layout {
    padding: 0 12px 16px;
  }

  .sidebar-filters {
    position: sticky;
    top: 0;
    z-index: 30;
    border-right: none;
    border-bottom: none;
    border-radius: 0;
    background: transparent;
    margin-bottom: 8px;
    padding: 0;
  }

  .filters-mobile-bar {
    display: block;
    background: #fff;
    border: 1px solid #eadde3;
    border-radius: 12px;
    padding: 6px;
    box-shadow: 0 4px 14px rgba(62, 9, 37, 0.06);
  }

  .filters-toggle-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border: 0;
    background: #fcf5f5;
    border-radius: 9px;
    padding: 10px 12px;
    color: #3e0925;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
  }

  .filters-toggle-left,
  .filters-toggle-right {
    display: inline-flex;
    align-items: center;
    gap: 8px;
  }

  .filters-toggle-hint {
    font-size: 0.75rem;
    font-weight: 500;
    color: #8a6b7a;
  }

  .filters-toggle-chevron {
    transition: transform 0.25s ease;
    color: #c62076;
  }

  .sidebar-filters.filters-open .filters-toggle-chevron {
    transform: rotate(180deg);
  }

  .filters-active-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #c62076;
    display: inline-block;
  }

  .filters-active-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 8px 4px 2px;
  }

  .filter-chip {
    display: inline-flex;
    align-items: center;
    padding: 4px 9px;
    border-radius: 999px;
    background: rgba(198, 32, 118, 0.08);
    color: #9b185c;
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1.2;
  }

  .filter-chip-clear {
    text-decoration: none;
    background: transparent;
    border: 1px solid #e2c9d5;
    color: #6b4a5a;
  }

  .filters-container {
    display: none;
    margin-top: 8px;
    border: 1px solid #eadde3;
    border-radius: 12px;
    background: #fcf5f5;
    overflow: hidden;
    max-height: min(62vh, 520px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .sidebar-filters.filters-open .filters-container {
    display: block;
  }

  .filters-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border-bottom: 1px solid #eadde3;
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 1;
  }

  .filters-panel-title {
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #3e0925;
  }

  .filters-panel-close {
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 8px;
    background: #fcf5f5;
    color: #3e0925;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
  }

  .filter-section {
    border-bottom: 1px solid #eadde3;
  }

  .filter-section:last-child {
    border-bottom: none;
    border-radius: 0;
  }

  .filter-title {
    padding: 11px 14px;
    font-size: 0.86rem;
    background: #fff;
  }

  .filter-section.is-active-filter > .filter-title {
    color: #c62076;
  }

  .filter-content {
    display: none;
    padding: 4px 12px 12px;
    background: #fcf5f5;
  }

  .filter-section.is-open > .filter-content {
    display: block;
  }

  .category-group { margin-bottom: 4px; }
  .category-main { margin-bottom: 2px; }

  .category-checkbox,
  .subcategory-checkbox,
  .brand-checkbox {
    padding: 5px 0;
  }

  .category-name,
  .subcategory-name,
  .brand-name {
    font-size: 0.82rem;
  }

  .brand-search { margin-bottom: 8px; }

  .brand-search .form-control {
    font-size: 0.82rem;
    padding: 8px 10px;
  }

  .brand-list {
    max-height: 140px;
    margin-bottom: 8px;
  }

  .filter-actions {
    margin-top: 10px;
    gap: 6px;
  }

  .btn-apply,
  .btn-clear {
    padding: 8px 10px;
    font-size: 0.8rem;
  }

  .main-content {
    padding: 8px 0 20px;
  }

  .results-header {
    flex-direction: column;
    gap: 10px;
    align-items: stretch;
    margin-bottom: 14px;
    padding-bottom: 12px;
  }

  .results-info h2 {
    font-size: 1.05rem;
    margin-bottom: 2px;
  }

  .results-count { font-size: 0.8rem; }

  .controls-bar {
    width: 100%;
    flex-direction: column;
    gap: 8px;
  }

  .controls-bar .search-form { width: 100%; }

  .sort-controls {
    width: 100%;
    justify-content: space-between;
  }

  .sort-controls label { font-size: 0.78rem; }

  .sort-controls select {
    font-size: 0.82rem;
    padding: 6px 8px;
  }

  .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
}

@media (max-width: 767.98px) {
  .container-fluid,
  .catalog-layout {
    padding-left: 10px;
    padding-right: 10px;
  }

  .filters-container {
    max-height: min(55vh, 420px);
  }

  .main-content {
    padding: 6px 0 16px;
  }

  .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .product-info { padding: 10px; }

  .product-title {
    font-size: 12px;
    height: 2.5em;
  }

  .price-simple { font-size: 15px; }
  .price-current-highlight { font-size: 16px; }
  .price-original { font-size: 11px; }
  .price-label { font-size: 9px; }

  .price-discount-badge {
    font-size: 9px;
    padding: 3px 6px;
  }

  .price-container-discount { padding: 6px 8px; }

  .btn-buy,
  .btn-details {
    padding: 8px 10px;
    font-size: 11px;
  }

  .btn-buy span,
  .btn-details span {
    display: none;
  }

  .action-btn {
    width: 34px;
    height: 34px;
  }

  .product-badge {
    padding: 3px 6px;
    font-size: 9px;
  }
}

/* Desktop: panel siempre visible */
@media (min-width: 992px) {
  .filters-mobile-bar,
  .filters-panel-header {
    display: none !important;
  }

  .filters-container,
  .filter-content {
    display: block !important;
  }
}
