:root {
  --dl-blue-900: #103a77;
  --dl-blue-800: #154a8f;
  --dl-blue-700: #1d5fb4;
  --dl-blue-600: #2b76d2;
  --dl-gray-100: #f4f6f8;
  --dl-gray-200: #e9ecef;
  --dl-gray-300: #dee2e6;
  --dl-gray-600: #6c757d;
  --dl-success: #15b36b;
  --dl-danger: #e64b43;
}

body {
  font-family: 'Mulish', system-ui, -apple-system, Segoe UI, Roboto, 'Helvetica Neue', Arial, 'Noto Sans', 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', sans-serif;
  background: #f3f5f7;
  overflow-anchor: none; /* Desactiva scroll anchor para evitar conflictos con sticky */
}

/* ========================================
   HEADER UNIFICADO - version 14102025
   ======================================== */

/* Fila Superior: Contacto + Redes (NO sticky) */
.dl-header-top {
  background: linear-gradient(160deg, var(--dl-blue-900), var(--dl-blue-700));
  color: #fff;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.85rem;
}

.dl-contact-link {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  transition: all 0.2s;
  font-size: 0.85rem;
}

.dl-contact-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.dl-contact-link i {
  font-size: 0.95rem;
}

.dl-social-link {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.75);
  background: transparent;
  border-radius: 50%;
  transition: all 0.3s;
  text-decoration: none;
  font-size: 0.85rem;
}

.dl-social-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.15);
  transform: scale(1.1);
}

.dl-login-btn {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 1rem;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  border-radius: 0.4rem;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s;
  font-size: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.dl-login-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-1px);
}

.dl-login-btn i {
  font-size: 1.1rem;
}

/* Dropdown de usuario logueado 1 */
.dl-header-top .dropdown {
  position: relative;
  z-index: 1050;
}

.dl-header-top .dropdown-menu {
  min-width: 220px;
  border: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  border-radius: 0.5rem;
  padding: 0.5rem 0;
  margin-top: 0.5rem;
  z-index: 1060;
}

.dl-header-top .dropdown-header {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--dl-blue-900);
  padding: 0.5rem 1rem;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}

.dl-header-top .dropdown-item {
  padding: 0.6rem 1rem;
  font-size: 0.875rem;
  color: #334155;
  transition: all 0.2s ease;
}

.dl-header-top .dropdown-item:hover {
  background: var(--dl-blue-600);
  color: #fff;
}

.dl-header-top .dropdown-item i {
  width: 18px;
  text-align: center;
}

.dl-header-top .dropdown-item.text-danger:hover {
  background: #dc3545;
  color: #fff !important;
}

.dl-header-top .dropdown-divider {
  margin: 0.5rem 0;
}

/* Fila Principal: Logo + Búsqueda */
.dl-header-main {
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: padding 0.3s ease, box-shadow 0.3s ease;
}

.dl-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #fff;
  transition: opacity 0.3s;
  flex-shrink: 0;
}

.dl-logo:hover {
  opacity: 0.9;
}

.dl-logo img {
  height: 55px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  transition: height 0.3s ease, max-width 0.3s ease;
}

.dl-search {
  flex: 1;
  max-width: 700px;
  margin: 0 2rem;
}

.dl-search .form-control {
  border: none;
  padding: 0.85rem 1.25rem;
  font-size: 0.95rem;
}

.dl-search .form-control:focus {
  box-shadow: none;
  border-color: #ced4da;
}

.dl-search .input-group {
  box-shadow: 0 6px 20px rgba(0, 0, 0, .15);
  border-radius: .75rem;
  overflow: hidden;
}

.dl-search .btn-primary {
  padding: 0.85rem 1.75rem;
  font-weight: 600;
}

.dl-cart-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border-radius: 0.5rem;
  text-decoration: none;
  transition: all 0.3s;
  font-size: 0.95rem;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}

.dl-cart-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.dl-cart-btn i {
  font-size: 1.4rem;
}

.dl-cart-btn .badge {
  padding: 0.35rem 0.6rem;
  font-size: 0.75rem;
  border-radius: 50%;
  min-width: 24px;
  font-weight: 700;
}

/* ========================================
   STICKY HEADER - Filas 2 y 3
   ======================================== */
.dl-header-sticky {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(160deg, var(--dl-blue-900), var(--dl-blue-700));
  color: #fff;
  width: 100%;
  transition: box-shadow 0.3s ease;
  will-change: transform;
}

/* Estado compactado al hacer scroll */
.dl-header-sticky.scrolled {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.dl-header-sticky.scrolled .dl-header-main {
  padding: 0.35rem 0;
}

.dl-header-sticky.scrolled .dl-logo img {
  height: 42px;
  max-width: 180px;
}

.dl-header-sticky.scrolled .dl-search {
  margin: 0 1.5rem;
}

.dl-header-sticky.scrolled .dl-search .form-control {
  padding: 0.7rem 1rem;
  font-size: 0.9rem;
}

.dl-header-sticky.scrolled .dl-search .btn-primary {
  padding: 0.7rem 1.25rem;
}

.dl-header-sticky.scrolled .dl-cart-btn {
  padding: 0.6rem 1rem;
  font-size: 0.9rem;
}

.dl-header-sticky.scrolled .dl-cart-btn i {
  font-size: 1.2rem;
}

/* ========================================
   NAVEGACIÓN PRINCIPAL
   ======================================== */
.dl-navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0;
  background: inherit; /* Hereda el gradiente del padre */
}

.dl-nav-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0.5rem;
}

.dl-nav-item {
  position: relative;
}

.dl-nav-link {
  display: flex;
  align-items: center;
  padding: 0.9rem 1.1rem;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s;
  border-radius: 0.5rem 0.5rem 0 0;
}

.dl-nav-link:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.dl-nav-link i {
  font-size: 0.9rem;
}

.dl-nav-item .dropdown-menu {
  border: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  border-radius: 0.5rem;
  padding: 0.5rem;
  margin-top: 0;
}

.dl-nav-item .dropdown-item {
  padding: 0.75rem 1rem;
  border-radius: 0.375rem;
  transition: all 0.2s;
}

.dl-nav-item .dropdown-item:hover {
  background: var(--dl-blue-600);
  color: #fff;
}

.dl-mobile-toggle {
  display: none;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #fff;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.3s;
}

.dl-mobile-toggle:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (min-width: 1400px) {
  .dl-search {
    max-width: 800px;
  }
  
  .dl-logo img {
    height: 100px;
    max-width: 275px;
  }
}

@media (max-width: 1199px) {
  .dl-contact-link span {
    font-size: 0.8rem;
  }
  
  .dl-search {
    margin: 0 1.5rem;
  }
}

@media (max-width: 991px) {
  .dl-nav-menu {
    display: none;
  }
  
  .dl-mobile-toggle {
    display: block;
  }
  
  .dl-search {
    max-width: 100%;
    flex: 1;
    margin: 0 1rem;
  }
  
  .dl-logo img {
    height: 48px;
    max-width: 180px;
  }
  
  .dl-header-top {
    padding: 0.45rem 0;
  }
  
  .dl-header-main {
    padding: 1rem 0;
  }
  
  .dl-header-sticky.scrolled .dl-logo img {
    height: 38px;
    max-width: 160px;
  }
  
  .dl-header-sticky.scrolled .dl-header-main {
    padding: 0.4rem 0;
  }
  
  .dl-sidebar {
    top: 105px;
  }
}

@media (max-width: 767px) {
  .dl-header-top {
    padding: 0.4rem 0;
    font-size: 0.75rem;
  }
  
  .dl-contact-link {
    padding: 0.2rem 0.3rem;
    font-size: 0.75rem;
  }
  
  .dl-contact-link i {
    font-size: 0.85rem;
  }
  
  .dl-social-link {
    width: 26px;
    height: 26px;
    font-size: 0.75rem;
  }
  
  .dl-login-btn {
    padding: 0.35rem 0.65rem;
    font-size: 0.75rem;
  }

  .dl-login-btn i {
    font-size: 0.95rem;
  }

  /* Dropdown en mobile */
  .dl-header-top .dropdown-menu {
    min-width: 200px;
    font-size: 0.8rem;
  }

  .dl-header-top .dropdown-header {
    font-size: 0.75rem;
    max-width: 180px;
  }

  .dl-header-top .dropdown-item {
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
  }
  
  .dl-search {
    margin: 0 0.75rem;
  }
  
  .dl-search .btn-primary {
    padding: 0.85rem 1rem;
  }
  
  .dl-logo img {
    height: 40px;
    max-width: 150px;
  }
  
  .dl-cart-btn {
    padding: 0.6rem 0.9rem;
  }
  
  .dl-cart-btn i {
    font-size: 1.3rem;
  }
  
  .dl-header-main {
    padding: 0.85rem 0;
  }
  
  .dl-header-sticky.scrolled .dl-logo img {
    height: 35px;
    max-width: 140px;
  }
  
  .dl-header-sticky.scrolled .dl-header-main {
    padding: 0.35rem 0;
  }
  
  .dl-header-sticky.scrolled .dl-search {
    margin: 0 0.5rem;
  }
  
  .dl-sidebar {
    top: 95px;
  }
}

/* Layout */
.dl-wrapper {
  margin-top: 1rem;
}

.dl-sidebar {
  /*position: sticky;*/
  top: 120px; /* Altura aprox del header sticky (solo filas 2 y 3) */
}

/* Panel título resultados */
.dl-panel-title {
  background: #2c6fcb;
  color: #fff;
  font-weight: 700;
  border-radius: .6rem;
  font-size: .95rem;
  padding: .65rem 1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
  margin: 0 0 1rem 0;
}

/* Ajuste para mobile */
@media (max-width: 767px) {
  .dl-panel-title {
    margin: 0 -15px 1rem -15px;
    border-radius: 0;
  }
}

/* Card producto */
.product-card {
  border: 1px solid var(--dl-gray-300);
  border-radius: .75rem;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(16, 58, 119, 0.06);
}

.product-card:hover {
  box-shadow: 0 6px 20px rgba(16, 58, 119, 0.12);
}

.product-body {
  display: flex;
  gap: 14px;
  padding: 14px;
}

.product-media {
  border-radius: .5rem;
  background: var(--dl-gray-100);
  display: grid;
  place-items: center;
  color: var(--dl-gray-600);
  font-size: .78rem;
}

.product-title {
  font-weight: 600;
  margin-bottom: .25rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;/* máximo 2 líneas */
  line-clamp: 2; /* propiedad estándar para compatibilidad */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis; /* agrega "..." */
  line-height: 1.3em; /* controla altura de línea */
  height: 2.6em;/* 2 * line-height */
}

.product-brand {
  font-size: .75rem;
  letter-spacing: .4px;
  color: #6b7280;
  font-weight: 700;
  text-transform: uppercase;
}

/* Links del producto */
.product-img-link {
  display: block;
  text-decoration: none;
  transition: opacity 0.2s ease;
  cursor: pointer;
}

.product-img-link:hover {
  opacity: 0.85;
}

.product-title-link {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
  cursor: pointer;
}

.product-title-link:hover {
  color: var(--dl-blue-600);
  text-decoration: none;
}

.product-meta {
  font-size: .8rem;
  color: #6b7280;
}

.product-price {
  font-weight: 700;
  color: #d32f2f;
  font-size: 1.1rem;
}

.price-old {
  text-decoration: line-through;
  color: #9aa3af;
  font-weight: 500;
  font-size: .9rem;
}

/* Botón para ver precios (usuarios no logueados) */
.product-pricing .btn-outline-primary {
  font-size: 0.8rem;
  padding: 0.5rem 0.8rem;
  border-radius: 0.4rem;
  font-weight: 600;
  transition: all 0.3s ease;
  white-space: nowrap;
  text-decoration: none;
}

.product-pricing .btn-outline-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(43, 118, 210, 0.2);
}

.stock-ok {
  color: var(--dl-success);
  font-weight: 600;
}

.stock-low {
  color: #e0a800;
  font-weight: 600;
}

.chip {
  display: inline-block;
  padding: .25rem .5rem;
  border-radius: .4rem;
  background: #f7f7f7;
  border: 1px solid var(--dl-gray-300);
  color: #6b7280;
  font-size: .75rem;
}

.badge-discount {
  position: absolute;
  top: .5rem;
  left: .5rem;
  background: var(--dl-danger);
}

/* Mobile optimizations */
@media (max-width: 767px) {
  .product-body {
    flex-direction: row !important;
    gap: 12px !important;
    padding: 12px !important;
  }

  .product-media {
    width: 120px !important;
    height: 120px !important;
    flex-shrink: 0;
    position: relative !important;
  }

  .product-card {
    position: relative !important;
  }

  .product-info .d-flex {
    flex-direction: column !important;
    gap: 8px !important;
  }

  .chip-primary,
  .chip-stock,
  .chip-stock-empty,
  .chip-secondary,
  .chip-muted {
    font-size: 0.7rem !important;
    padding: 0.25rem 0.5rem !important;
    text-align: center !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .product-title {
    font-size: 0.85rem !important;
    line-height: 1.2 !important;
    margin-bottom: 0.5rem !important;
  }

  .product-brand {
    font-size: 0.7rem !important;
  }

  .product-price {
    font-size: 1rem !important;
  }

  .price-old {
    font-size: 0.8rem !important;
  }

  .product-pricing .btn-outline-primary {
    font-size: 0.7rem !important;
    padding: 0.4rem 0.6rem !important;
  }

  /* Ocultar badges originales en mobile */
  .product-card .position-absolute.top-0.end-0 {
    display: none !important;
  }

  /* Nuevos badges para mobile - debajo de la imagen */
  .mobile-badges {
    display: flex !important;
    gap: 4px;
    margin-top: 6px;
    justify-content: center;
  }

  .mobile-badges .badge {
    font-size: 0.6rem !important;
    padding: 0.2rem 0.4rem !important;
    border-radius: 0.25rem !important;
    font-weight: 600 !important;
  }
}

/* Desktop grid */
@media (min-width: 768px) {
  .product-body {
    flex-direction: column;
  }

  .product-media {
    width: 100%;
  }

  /* Ocultar badges móviles en desktop */
  .mobile-badges {
    display: none !important;
  }
}

/* Offcanvas button */
.btn-filter {
  background: #f0f4ff;
  border: 1px solid #cfe0ff;
  color: #194e9c;
  font-weight: 600;
}

.filter-section .form-check {
  margin-bottom: .4rem;
}

.filter-section .section-title {
  font-weight: 700;
  color: #334155;
  font-size: .9rem;
  margin: .8rem 0 .5rem;
}

.filter-section {
  margin-bottom: 25px;
}

.section-title {
  font-size: 16px;
  font-weight: bold;
  color: #333;
  margin-bottom: 15px;
  padding-bottom: 8px;
  border-bottom: 2px solid #e0e0e0;
}

label.form-check-label {
  font-size: 0.9rem;
  color: #555;
}

.small-muted {
  color: #6b7280;
  font-size: .85rem;
}

.stock-ok {
  color: #27ae60;
  font-weight: 600;
}

.stock-low {
  color: #e0a800;
  font-weight: 600;
}

/* Jerarquía de chips - Basado en imagen de referencia */
.chip-primary {
  display: inline-block;
  padding: .4rem .8rem;
  border-radius: .5rem;
  background: #1976d2;
  color: white;
  font-size: .8rem;
  font-weight: 600;
  box-shadow: none;
  border: none;
}

.chip-stock {
  display: inline-block;
  padding: .4rem .8rem;
  border-radius: .5rem;
  background: #4caf50;
  color: white;
  font-size: .8rem;
  font-weight: 600;
  box-shadow: none;
  border: none;
}

.chip-stock-empty {
  display: inline-block;
  padding: .4rem .8rem;
  border-radius: .5rem;
  background: linear-gradient(135deg, #e64b43 0%, #d32f2f 100%);
  color: white;
  font-size: .8rem;
  font-weight: 600;
  box-shadow: 0 2px 4px rgba(211, 47, 47, 0.25);
  border: 1px solid rgba(211, 47, 47, 0.3);
  transition: all 0.2s ease;
  opacity: 0.95;
}


.chip-secondary {
  display: inline-block;
  padding: .4rem .8rem;
  border-radius: .5rem;
  background: #e9ecef;
  color: #495057;
  font-size: .8rem;
  font-weight: 500;
  border: none;
  text-align: center;
}

.chip-muted {
  display: inline-block;
  padding: .4rem .8rem;
  border-radius: .5rem;
  background: #e9ecef;
  color: #495057;
  font-size: .8rem;
  font-weight: 500;
  border: none;
  text-align: center;
}

.imgProduct {
  width: 100%;
  height: 320px;
  object-fit: contain;
  background: #fff;
}

/* ========================================
   FILTROS ACCORDION - CATEGORÍAS
   ======================================== */

/* Contenedor del accordion de filtros */
.filter-accordion .accordion-item {
  background: transparent;
  border: none !important;
  margin-bottom: 0.5rem;
}

/* Botón del accordion personalizado */
.filter-accordion-btn {
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 0.6rem 0.8rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: #334155;
  transition: all 0.2s ease;
  box-shadow: none !important;
}

.filter-accordion-btn:hover {
  background-color: #f1f5f9;
  border-color: #cbd5e1;
}

.filter-accordion-btn:not(.collapsed) {
  background-color: #e0f2fe;
  border-color: #0ea5e9;
  color: #0c4a6e;
}

/* Icono chevron con rotación */
.filter-accordion-btn .accordion-icon {
  font-size: 0.75rem;
  transition: transform 0.2s ease;
  color: #64748b;
}

.filter-accordion-btn:not(.collapsed) .accordion-icon {
  transform: rotate(90deg);
  color: #0ea5e9;
}

/* Cuerpo del accordion */
.filter-accordion .accordion-body {
  padding: 0.5rem 0 0.5rem 0.25rem;
  background: transparent;
}

/* Checkboxes dentro del accordion - con indentación para jerarquía */
.filter-accordion .accordion-body .form-check {
  padding-left: 1rem;
  margin-left: 0.5rem;
  margin-bottom: 0.3rem;
}

.filter-accordion .form-check-label {
  font-size: 0.875rem;
  color: #475569;
  cursor: pointer;
  transition: color 0.15s ease;
}

.filter-accordion .form-check-label:hover {
  color: #0ea5e9;
}

.filter-accordion .form-check-input:checked ~ .form-check-label {
  color: #0c4a6e;
  font-weight: 500;
}

/* Versión mobile/flat de categorías */
.category-group {
  border-left: 2px solid #e2e8f0;
  padding-left: 0.75rem;
}

.category-parent-label {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #64748b !important;
}

/* ========================================
   FILTROS GENERALES - MARCA, ALMACÉN, STOCK
   ======================================== */

/* Mejora de todos los form-check en filtros */
.filter-section .form-check {
  padding: 0.4rem 0.75rem 0.4rem 0.5rem;
  margin-bottom: 0.25rem;
  margin-left: 0;
  border-radius: 6px;
  transition: background-color 0.15s ease;
}
#accordiondesktopCategory  .form-check{
padding-left: 1.4rem;
padding-right: 0.5rem;
}

.filter-section .form-check:hover {
  background-color: #f8fafc;
}

/* Checkboxes personalizados */
.filter-section .form-check-input {
  width: 1.1rem;
  height: 1.1rem;
  border: 2px solid #cbd5e1;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 0.15rem;
}

.filter-section .form-check-input:hover {
  border-color: #0ea5e9;
}

.filter-section .form-check-input:checked {
  background-color: #0ea5e9;
  border-color: #0ea5e9;
}

.filter-section .form-check-input:focus {
  border-color: #0ea5e9;
  box-shadow: 0 0 0 0.2rem rgba(14, 165, 233, 0.25);
}

/* Labels mejorados */
.filter-section .form-check-label {
  font-size: 0.875rem;
  color: #475569;
  cursor: pointer;
  transition: color 0.15s ease;
  user-select: none;
  display: flex;
  align-items: center;
  width: 100%;
}

.filter-section .form-check-label:hover {
  color: #0ea5e9;
}

.filter-section .form-check-input:checked ~ .form-check-label {
  color: #0c4a6e;
  font-weight: 500;
}

/* Iconos para diferentes secciones de filtros (opcional) */
.filter-section.filter-brand .section-title::before {
  content: "🏷️ ";
  margin-right: 0.5rem;
}

.filter-section.filter-price .section-title::before {
  content: "💰 ";
  margin-right: 0.5rem;
}

.filter-section.filter-warehouse .section-title::before {
  content: "📦 ";
  margin-right: 0.5rem;
}

.filter-section.filter-stock .section-title::before {
  content: "📊 ";
  margin-right: 0.5rem;
}

/* Espaciado adicional para secciones planas (no accordion) */
.filter-brand .form-check,
.filter-warehouse .form-check,
.filter-stock .form-check {
  padding-left: 1.4rem;
  padding-right: 0.5rem;
}

/* ========================================
   RANGO DE PRECIO
   ======================================== */

.filter-section input[type="number"].form-control {
  border: 1.5px solid #e2e8f0;
  border-radius: 6px;
  padding: 0.5rem 0.6rem;
  font-size: 0.875rem;
  transition: all 0.2s ease;
}

.filter-section input[type="number"].form-control:hover {
  border-color: #cbd5e1;
}

.filter-section input[type="number"].form-control:focus {
  border-color: #0ea5e9;
  box-shadow: 0 0 0 0.2rem rgba(14, 165, 233, 0.15);
  outline: none;
}

/* Remover flechas de input number (opcional - más limpio) */
.filter-section input[type="number"]::-webkit-inner-spin-button,
.filter-section input[type="number"]::-webkit-outer-spin-button {
  opacity: 1;
}

/* Botón de aplicar filtro de precio */
.btn-apply-price-filter {
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  transition: all 0.2s ease;
  background: var(--dl-blue-600);
  border-color: var(--dl-blue-600);
}

.btn-apply-price-filter:hover {
  background: var(--dl-blue-700);
  border-color: var(--dl-blue-700);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(14, 165, 233, 0.2);
}

.btn-apply-price-filter i {
  font-size: 0.8rem;
}

/* ========================================
   BOTÓN APLICAR FILTROS
   ======================================== */

.btn-apply-filters {
  background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
  border: none;
  color: white;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(14, 165, 233, 0.2);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.875rem;
}

.btn-apply-filters:hover {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(14, 165, 233, 0.3);
  color: white;
}

.btn-apply-filters:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(14, 165, 233, 0.2);
}

/* ========================================
   SECCIÓN DE FILTROS - MEJORAS GENERALES
   ======================================== */

/* Separador visual mejorado */
.filter-section {
  margin-bottom: 1.75rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #f1f5f9;
}

.filter-section:last-of-type {
  border-bottom: none;
}

/* Títulos de sección mejorados */
.filter-section .section-title {
  font-weight: 700;
  color: #1e293b;
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 2px solid #e2e8f0;
  display: flex;
  align-items: center;
}

/* Animación suave para expansión de acordeones */
.accordion-collapse {
  transition: height 0.25s ease;
}

/* Mejora del card contenedor de filtros */
.dl-sidebar .card {
  border-radius: 12px;
  overflow: hidden;
}

.dl-sidebar .card-body {
  padding: 1.25rem;
}

/* Scroll suave si hay muchos filtros */
.dl-sidebar {
  max-height: calc(100vh - 140px);
  /*overflow-y: auto;
  overflow-x: hidden;*/
}

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

.dl-sidebar::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 10px;
}

.dl-sidebar::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 10px;
}

.dl-sidebar::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* ========================================
   FILTROS ACTIVOS (BADGES)
   ======================================== */

#active-filters-container {
  padding: 0.75rem 1rem;
  background: #f8f9fa;
  border-radius: 8px;
  border: 1px solid #e9ecef;
}

#active-filters-container .badge {
  transition: all 0.2s ease;
  cursor: default;
}

#active-filters-container .badge:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

#active-filters-container .btn-close {
  transition: all 0.2s ease;
  cursor: pointer;
}

#active-filters-container .btn-close:hover {
  opacity: 1 !important;
  transform: scale(1.2);
}

#clear-all-filters-btn {
  transition: all 0.2s ease;
  white-space: nowrap;
}

#clear-all-filters-btn:hover {
  text-decoration: underline !important;
  transform: scale(1.05);
}

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

.pagination-container {
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.pagination-info {
  font-size: 0.9rem;
  color: #64748b;
}

.pagination-info strong {
  color: #1e293b;
  font-weight: 600;
}

.pagination {
  margin: 0;
  gap: 0.25rem;
}

.pagination .page-item {
  margin: 0;
}

.pagination .page-link {
  color: #475569;
  background: #fff;
  border: 1px solid #e2e8f0;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 0.375rem;
  transition: all 0.2s ease;
  cursor: pointer;
  min-width: 40px;
  text-align: center;
}

.pagination .page-link:hover:not(:disabled) {
  background: var(--dl-blue-50);
  border-color: var(--dl-blue-600);
  color: var(--dl-blue-600);
  transform: translateY(-1px);
}

.pagination .page-link:focus {
  box-shadow: 0 0 0 0.2rem rgba(14, 165, 233, 0.25);
  z-index: 2;
}

.pagination .page-item.active .page-link {
  background: var(--dl-blue-600);
  border-color: var(--dl-blue-600);
  color: #fff;
  font-weight: 600;
  cursor: default;
}

.pagination .page-item.disabled .page-link {
  color: #cbd5e1;
  background: #f8fafc;
  border-color: #e2e8f0;
  cursor: not-allowed;
  pointer-events: none;
}

.pagination .btn-page-nav i {
  font-size: 0.75rem;
}

/* Responsive */
@media (max-width: 576px) {
  .pagination-container {
    margin-top: 1.5rem;
  }
  
  .pagination .page-link {
    padding: 0.4rem 0.6rem;
    font-size: 0.8rem;
    min-width: 36px;
  }
  
  .pagination-info {
    font-size: 0.85rem;
  }
}

/* ========================================
   BOTÓN DE FILTROS STICKY (SOLO MOBILE)
   ======================================== */

/* Contenedor sticky del botón de filtros */
.mobile-filter-sticky {
  position: sticky;
  top: 119px;
  z-index: 999;
  background: linear-gradient(to bottom, #f3f5f7 0%, #f3f5f7 85%, rgba(243, 245, 247, 0) 100%);
  padding: 0.75rem 0 1rem 0;
  margin-bottom: -0.75rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

/* Efecto al hacer scroll */
.mobile-filter-sticky.scrolled {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  padding: 0.5rem 0 0.75rem 0;
}

/* Mejorar el botón de filtros */
.mobile-filter-sticky .btn-filter {
  background: linear-gradient(135deg, #2c6fcb 0%, #1d5fb4 100%);
  border: none;
  color: white;
  font-weight: 700;
  padding: 0.85rem 1.25rem;
  font-size: 0.95rem;
  box-shadow: 0 4px 12px rgba(44, 111, 203, 0.3);
  transition: all 0.3s ease;
  letter-spacing: 0.3px;
}

.mobile-filter-sticky .btn-filter:hover {
  background: linear-gradient(135deg, #1d5fb4 0%, #154a8f 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(44, 111, 203, 0.4);
  color: white;
}

.mobile-filter-sticky .btn-filter:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(44, 111, 203, 0.3);
}

/* Icono del botón */
.mobile-filter-sticky .btn-filter span:last-child {
  transition: transform 0.3s ease;
  display: inline-block;
}

.mobile-filter-sticky .btn-filter:hover span:last-child {
  transform: translateY(2px);
}

/* Solo aplicar en mobile/tablet */
@media (min-width: 768px) {
  .mobile-filter-sticky {
    display: none !important;
  }
}
