: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 16022026
   ======================================== */

   
/* 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-search .input-group-text {
  border: none;
  border-left: 1px solid #e9ecef;
  border-radius: 0;
  cursor: pointer;
}

.dl-search .form-check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.dl-search .form-check-input {
  width: 1.15em;
  height: 1.15em;
  margin-top: 0;
  cursor: pointer;
}

.dl-search .form-check-input:checked {
  background-color: var(--dl-blue-600);
  border-color: var(--dl-blue-600);
}

.dl-search .form-check-label {
  font-size: 0.9rem;
  color: #495057;
  cursor: pointer;
  user-select: none;
}

.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;
}

/* ========================================
   LOGIN - Control de visibilidad
   ======================================== */
/* Por defecto (Desktop): Ocultar login de Fila 1, mostrar login de Fila 2 */
.dl-login-mobile {
  display: none !important;
}

.dl-login-desktop {
  display: flex !important;
}

/* ========================================
   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) {
  /* ========================================
     FILA 1: Contacto + Login (Compacta)
     ======================================== */
  .dl-header-top {
    padding: 0.5rem 0;
  }
  
  .dl-header-top .container {
    padding: 0 1rem;
  }
  
  .dl-header-top .d-flex.justify-content-between {
    gap: 0.5rem;
  }
  
  /* Contacto - Solo iconos en mobile */
  .dl-contact-link {
    padding: 0.3rem 0.4rem;
    font-size: 0.8rem;
  }
  
  .dl-contact-link i {
    font-size: 1rem;
  }
  
  .dl-contact-link span {
    display: none !important;
  }
  
  /* Redes sociales - Ocultas en mobile */
  .dl-social-link {
    display: none !important;
  }
  
  /* Login - Invertir visibilidad para mobile */
  .dl-login-mobile {
    display: flex !important;
  }
  
  .dl-login-desktop {
    display: none !important;
  }
  
  /* Estilos del login en mobile */
  .dl-login-btn {
    padding: 0.4rem 0.75rem;
    font-size: 0.8rem;
    white-space: nowrap;
  }
  
  .dl-login-btn i {
    font-size: 1rem;
  }
  

  /* Dropdown del usuario 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-header-main {
    padding: 0.75rem 0;
  }
  
  .dl-header-main > .container > .d-flex {
    flex-wrap: wrap;
    justify-content: center !important;
    gap: 0.75rem;
  }
  
  .dl-logo {
    flex: 0 0 100%;
    order: 1;
    justify-content: center;
    margin-bottom: 0.5rem;
  }
  
  .dl-logo img {
    height: 45px;
    max-width: 160px;
  }
  
  .dl-search {
    flex: 0 0 100%;
    order: 2;
    margin: 0;
    max-width: 100%;
  }
  
  .dl-search .input-group {
    margin-bottom: 0.5rem;
  }
  
  .dl-search .form-control {
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
  }
  
  .dl-search .btn-primary {
    padding: 0.75rem 1.25rem;
  }
  
  .dl-search .input-group-text {
    padding: 0.5rem 0.75rem;
  }
  
  /* Checkbox DEBAJO del input */
  .dl-search .form-check {
    padding-left: 0.5rem;
    margin-top: 0.25rem;
  }
  
  .dl-search .form-check-label {
    font-size: 0.875rem;
  }
  
  /* Ocultar carrito en mobile para dar mÃ¡s espacio */
  .dl-cart-btn {
    display: none;
  }
  
  .dl-navbar {
    padding: 0.75rem 0;
  }
  
  .dl-mobile-toggle {
    position: relative;
    z-index: 1002;
  }
  
  .dl-header-sticky.scrolled .dl-header-main {
    padding: 0.5rem 0;
  }
  
  .dl-header-sticky.scrolled .dl-logo {
    margin-bottom: 0.35rem;
  }
  
  .dl-header-sticky.scrolled .dl-logo img {
    height: 38px;
    max-width: 140px;
  }
  
  .dl-header-sticky.scrolled .dl-search .input-group {
    margin-bottom: 0.35rem;
  }
  
  .dl-header-sticky.scrolled .dl-search .form-control {
    padding: 0.65rem 0.9rem;
    font-size: 0.9rem;
  }
  
  .dl-header-sticky.scrolled .dl-search .btn-primary {
    padding: 0.65rem 1rem;
  }
  
  .dl-header-sticky.scrolled .dl-navbar {
    padding: 0.6rem 0;
  }
  
  .dl-sidebar {
    top: 140px;
  }
  
  .dl-header-sticky.scrolled + .dl-wrapper .dl-sidebar {
    top: 120px;
  }
}

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

.dl-wrapper .container {
  max-width: 1600px;
}

.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 - mismo ancho que botÃ³n de filtros */
@media (max-width: 767px) {
  .dl-panel-title {
    width: 100%;
    margin: 0 0 1rem 0;
    border-radius: .6rem;
  }
}

/* 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;
  }
}

/* =============================================
   VIEW TOGGLE BUTTONS (Grid/List)
   ============================================= */
.view-toggle-buttons {
  display: flex;
  gap: 4px;
  background: #f3f4f6;
  padding: 4px;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.btn-view {
  padding: 8px 12px;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.3s ease;
  color: #64748b;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
}

.btn-view:hover {
  background: rgba(255, 255, 255, 0.5);
  color: #334155;
}

.btn-view.active {
  background: white;
  color: #103a77;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-view i {
  pointer-events: none;
}

/* =============================================
   LIST VIEW MODE - Estilo B (Ficha Horizontal)
   ============================================= */

/* Producto ocupa todo el ancho */
[data-view-mode="list"] .product-item {
  flex: 0 0 100%;
  max-width: 100%;
}

/* Card en modo lista */
[data-view-mode="list"] .product-card {
  height: auto !important;
  min-height: auto;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  transition: box-shadow 0.2s ease;
}

[data-view-mode="list"] .product-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Ocultar badges absolutos en lista */
[data-view-mode="list"] .product-card > .position-absolute {
  display: none !important;
}

/* Body: layout horizontal con 3 columnas */
[data-view-mode="list"] .product-body {
  display: grid !important;
  grid-template-columns: 100px 1fr 180px;
  gap: 20px;
  padding: 16px;
  align-items: center;
}

/* COLUMNA 1: Imagen */
[data-view-mode="list"] .product-media {
  width: 100px;
  height: 100px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f9fafb;
  border-radius: 6px;
  padding: 8px;
  grid-column: 1;
  grid-row: 1;
}

[data-view-mode="list"] .product-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

[data-view-mode="list"] .product-media .mobile-badges {
  display: none !important;
}

/* COLUMNA 2: Info central (contenedor product-details) */
[data-view-mode="list"] .product-details {
  grid-column: 2;
  grid-row: 1;
  display: flex !important;
  flex-direction: column !important;
  gap: 4px;
  min-width: 0;
}

/* Reordenar: Info primero, Header segundo, Pricing oculto aquÃ­ */
[data-view-mode="list"] .product-info {
  order: 1;
  margin-bottom: 0 !important;
}

[data-view-mode="list"] .product-header {
  order: 2;
  margin-bottom: 0 !important;
}

/* Ocultar marca */
[data-view-mode="list"] .product-brand {
  display: none;
}

/* SKU y Stock en lÃ­nea */
[data-view-mode="list"] .product-info > div:first-child {
  display: inline-flex !important;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 4px !important;
}

[data-view-mode="list"] .chip-primary {
  background: var(--dl-blue-600) !important;
  color: #fff !important;
  padding: 0.25rem 0.6rem !important;
  font-size: 0.8rem !important;
  font-weight: 600 !important;
  border-radius: 4px !important;
  flex: none !important;
}

/* Stock junto al SKU */
[data-view-mode="list"] .chip-stock,
[data-view-mode="list"] .chip-stock-empty {
  position: static !important;
  background: #dcfce7 !important;
  color: #16a34a !important;
  padding: 0.25rem 0.6rem !important;
  font-size: 0.8rem !important;
  font-weight: 600 !important;
  border-radius: 4px !important;
  border: none !important;
  flex: none !important;
}

[data-view-mode="list"] .chip-stock-empty {
  background: #fee2e2 !important;
  color: #dc2626 !important;
}

/* Part Number y Mini CÃ³digo en lÃ­nea */
[data-view-mode="list"] .product-info > div:last-child {
  display: inline-flex !important;
  gap: 16px;
  margin-bottom: 0 !important;
}

[data-view-mode="list"] .chip-secondary,
[data-view-mode="list"] .chip-muted {
  background: transparent !important;
  color: #6b7280 !important;
  padding: 0 !important;
  font-size: 0.8rem !important;
  border: none !important;
  flex: none !important;
}

/* TÃ­tulo del producto */
[data-view-mode="list"] .product-title {
  -webkit-line-clamp: 2;
  line-clamp: 2;
  height: auto;
  max-height: none;
  font-size: 0.95rem;
  line-height: 1.4;
  margin-bottom: 0 !important;
  color: #1f2937;
  font-weight: 500;
}

/* COLUMNA 3: Precio (posicionado con grid) */
[data-view-mode="list"] .product-pricing {
  grid-column: 3;
  grid-row: 1;
  display: flex !important;
  flex-direction: column;
  gap: 4px;
  align-items: flex-end;
  justify-content: center;
  margin-top: 0 !important;
  padding: 0;
  border: none;
  order: unset;
}

[data-view-mode="list"] .product-pricing::before {
  display: none;
}

[data-view-mode="list"] .product-price {
  font-size: 1.25rem !important;
  font-weight: 700 !important;
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
  color: #b45309 !important;
  text-align: right !important;
  line-height: 1.2 !important;
  white-space: nowrap;
}

[data-view-mode="list"] .product-pricing .btn-outline-primary {
  font-size: 0.75rem;
  padding: 0.35rem 0.75rem;
  margin-top: 4px;
}

/* Responsive: En tablet, ajustar grid */
@media (max-width: 991px) {
  [data-view-mode="list"] .product-body {
    grid-template-columns: 80px 1fr 140px;
    gap: 12px;
  }
  
  [data-view-mode="list"] .product-media {
    width: 80px;
    height: 80px;
  }
  
  [data-view-mode="list"] .product-price {
    font-size: 1.1rem !important;
  }
}

/* Responsive: En mobile, ocultar toggle y mantener grid */
@media (max-width: 767px) {
  .view-toggle-buttons {
    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: "\1F3F7\FE0F ";
  margin-right: 0.5rem;
}

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

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

.filter-section.filter-stock .section-title::before {
  content: "\1F4CA ";
  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: 203px;
  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;
  }
}

/* ========================================
   PROMOCIONES - Badges y Tooltips
   ======================================== */

/* Badge de promociÃ³n en esquina superior izquierda */
.promo-badge-container {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 10;
}

.promo-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 3px 10px rgba(255, 107, 53, 0.4);
  cursor: pointer;
  transition: all 0.3s ease;
  animation: promo-pulse 2s ease-in-out infinite;
}

.promo-badge:hover {
  transform: scale(1.05);
  box-shadow: 0 5px 15px rgba(255, 107, 53, 0.6);
  animation: none;
}

.promo-badge i {
  font-size: 0.85rem;
  animation: promo-sparkle 1.5s ease-in-out infinite;
}

/* AnimaciÃ³n de pulso sutil */
@keyframes promo-pulse {
  0%, 100% {
    box-shadow: 0 3px 10px rgba(255, 107, 53, 0.4);
  }
  50% {
    box-shadow: 0 3px 15px rgba(255, 107, 53, 0.6);
  }
}

/* AnimaciÃ³n de brillo para el icono */
@keyframes promo-sparkle {
  0%, 100% {
    opacity: 1;
    transform: rotate(0deg);
  }
  50% {
    opacity: 0.7;
    transform: rotate(15deg);
  }
}

/* Tooltip de promociÃ³n */
.promo-tooltip {
  position: absolute;
  top: 45px;
  left: 8px;
  background: white;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  min-width: 280px;
  max-width: 320px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid #ff6b35;
}

.promo-badge-container:hover .promo-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Flecha del tooltip */
.promo-tooltip::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 20px;
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 8px solid #ff6b35;
}

.promo-tooltip::after {
  content: '';
  position: absolute;
  top: -6px;
  left: 21px;
  width: 0;
  height: 0;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-bottom: 7px solid white;
}

/* CÃ³digo de promociÃ³n destacado */
.promo-tooltip-code-highlight {
  background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
  color: white;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-align: center;
  margin-bottom: 12px;
  box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3);
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: all;
}

.promo-tooltip-code-highlight:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.4);
}

/* DescripciÃ³n de la promociÃ³n */
.promo-tooltip-desc {
  font-size: 0.85rem;
  font-weight: 600;
  color: #212529;
  line-height: 1.4;
  margin-bottom: 12px;
  padding: 0 4px;
}

/* Fecha de vencimiento */
.promo-tooltip-expiry {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: #dc3545;
  margin-bottom: 12px;
  padding: 6px 10px;
  background: #fff5f5;
  border-radius: 8px;
  border-left: 3px solid #dc3545;
}

.promo-tooltip-expiry i {
  font-size: 0.85rem;
}

/* Items de la promociÃ³n */
.promo-tooltip-items {
  margin-top: 12px;
}

.promo-tooltip-items-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: #495057;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.promo-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  background: #f8f9fa;
  border-radius: 8px;
  margin-bottom: 6px;
  transition: all 0.2s ease;
  padding-right: 0px;
}

.promo-item:hover {
  background: #e9ecef;
  transform: translateX(3px);
}

.promo-item-qty {
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}

.promo-item-details {
  flex: 1;
  min-width: 0;
}

.promo-item-sku {
  font-size: 0.7rem;
  color: #6c757d;
  font-weight: 600;
}

.promo-item-desc {
  font-size: 0.75rem;
  color: #212529;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Responsive - Mobile usa modal, Desktop usa tooltip hover */
@media (max-width: 767px) {
  /* Badge mÃ¡s pequeÃ±o en mobile */
  .promo-badge {
    font-size: 0.7rem;
    padding: 4px 8px;
    gap: 4px;
    cursor: pointer;
  }
  
  .promo-badge i {
    font-size: 0.75rem;
  }
  
  /* Ocultar tooltip en mobile - se usa modal de Bootstrap */
  .promo-tooltip {
    display: none !important;
  }
  
  /* Estilos para el contenido dentro del modal */
  #promoModal .promo-tooltip-code-highlight {
    font-size: 0.95rem;
    padding: 10px 14px;
    margin-bottom: 12px;
  }
  
  #promoModal .promo-tooltip-desc {
    font-size: 0.85rem;
    margin-bottom: 12px;
  }
  
  #promoModal .promo-tooltip-expiry {
    font-size: 0.75rem;
    padding: 6px 10px;
    margin-bottom: 12px;
  }
  
  #promoModal .promo-tooltip-items-title {
    font-size: 0.75rem;
    margin-bottom: 8px;
  }
  
  #promoModal .promo-item {
    padding: 8px;
    margin-bottom: 6px;
    gap: 8px;
  }
  
  #promoModal .promo-item-qty {
    width: 26px;
    height: 26px;
    font-size: 0.7rem;
  }
  
  #promoModal .promo-item-sku {
    font-size: 0.7rem;
  }
  
  #promoModal .promo-item-desc {
    font-size: 0.75rem;
    white-space: normal;
    line-height: 1.3;
  }
}

/* Desktop: Mantener tooltip hover */
@media (min-width: 768px) {
  .promo-badge {
    cursor: pointer;
  }
  
  /* Tooltip visible solo en hover en desktop */
  .promo-badge-container:hover .promo-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
}