/* ============================================================
   WAEG - Estilos Responsivos / Móvil
   Contiene todos los @media (max-width) extraídos de shop-ajax.css
   NO editar manualmente — editar shop-ajax.css y re-generar
   ============================================================ */


/* ── Bloque responsive 1 ── */
@media (max-width: 991px) {
  .waeg-controls-top {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  
  .waeg-sort-wrapper,
  .waeg-perpage-wrapper {
    width: 100%;
  }
  
  .waeg-sort-select,
  .waeg-items-select {
    width: 100%;
    min-width: auto;
  }
  
  .waeg-clear-btn {
    width: 100% !important;
  }
}

/* ── Bloque responsive 2 ── */
@media (max-width: 767px) {
  .waeg-sidebar {
    padding: 0 !important; /* ✅ Sin padding */
    background: transparent; /* Sin fondo */
    margin: 0 !important; /* ✅ Sin margin */
  }
  
  .waeg-controls-section {
    margin-top: 12px !important; /* ✅ Reducido de 16px */
    padding-top: 12px !important; /* ✅ Reducido de 16px */
  }
  
  /* ✅ REDUCIR ESPACIOS DEL WRAPPER PRINCIPAL */
  .waeg-shop-wrapper {
    padding: 0 10px !important; /* ✅ Reducido de 20px */
    gap: 12px !important; /* ✅ Reducido de 24px */
    margin: 0 auto !important;
  }
  
  /* ✅ REDUCIR ESPACIOS DEL CONTENEDOR DE CONTENIDO */
  .waeg-content-wrapper {
    padding: 0 !important;
    margin: 0 !important;
    gap: 0 !important;
  }
  
  /* ✅ SECCIONES MÁS COMPACTAS */
  .waeg-sidebar-section {
    margin-bottom: 12px !important; /* ✅ Reducido de 16px */
    padding: 0 !important;
  }
  
  .waeg-categories-container {
    padding: 0 !important;
    margin: 0 0 12px 0 !important; /* ✅ Reducido */
  }
  
  /* ✅ OCULTAR BUSCADOR EN MÓVIL */
  .waeg-search-wrapper,
  #waeg-search {
    display: none !important;
  }
  
  /* ✅ OCULTAR SUB-SUBCATEGORÍAS (NIVEL 3) EN MÓVIL */
  #waeg-subsubcategories-section {
    display: none !important;
  }
  
  /* ✅ OCULTAR BOTÓN DE LIMPIAR FILTROS DEL SIDEBAR EN MÓVIL */
  #waeg-clear-filters.waeg-clear-btn {
    display: none !important;
  }
  
  /* ✅ CATEGORÍAS Y SUBCATEGORÍAS MÁS COMPACTAS */
  
  /* ✅ OCULTAR LISTA DE CATEGORÍAS EN MÓVIL (solo mostrar título) */
  .waeg-categories-list {
    display: none !important; /* ✅ Ocultar pills de categorías */
  }
  
  /* ✅ TÍTULO DE CATEGORÍA SELECCIONADA */
  .waeg-categories-title {
    display: block !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    margin: 0 0 12px 0 !important;
    padding: 0 !important;
    color: #333 !important;
    text-transform: none !important;
  }
  
  /* ✅ MOSTRAR SECCIÓN DE SUBCATEGORÍAS */
  #waeg-subcategories-section {
    display: block !important; /* Siempre visible cuando hay subcategorías */
  }
  
  /* ✅ TÍTULO DE CATEGORÍA SELECCIONADA (antes era "SUBCATEGORÍAS") */
  #waeg-subcategories-section .waeg-sidebar-title {
    font-size: 18px !important;
    font-weight: 700 !important;
    margin: 0 0 12px 0 !important;
    padding-bottom: 8px !important;
    color: #fff !important;
    text-transform: uppercase !important;
    letter-spacing: 0.8px !important;
    border-bottom: 2px solid #c41e3a !important;
  }
  
  /* ✅ SUBCATEGORÍAS COMO PILLS */
  .waeg-subcategories-list {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  
  .waeg-subcategory-item {
    padding: 8px 14px !important;
    font-size: 13px !important;
    margin: 0 !important;
    border-radius: 8px !important;
    background: #f0f0f0 !important;
    border: 1px solid #ddd !important;
    transition: all 0.2s ease !important;
  }
  
  .waeg-subcategory-item:hover {
    background: #e0e0e0 !important;
    border-color: #ccc !important;
  }
  
  .waeg-subcategory-item.active {
    background: #e74c3c !important;
    color: white !important;
    border-color: #e74c3c !important;
  }
  
  .waeg-sidebar-title {
    font-size: 14px !important;
    margin-bottom: 6px !important; /* ✅ Reducido de 8px */
    padding-bottom: 4px !important;
  }
  
  .waeg-categories-header {
    margin-bottom: 8px !important; /* ✅ Reducir espacio del header */
    padding: 0 !important;
    position: relative;
  }
  
  /* Botón para mostrar/ocultar categorías */
  .waeg-toggle-categories-btn {
    position: absolute;
    top: 0;
    right: 0;
    background: #e74c3c !important;
    color: white !important;
    border: none !important;
    border-radius: 6px !important;
    padding: 6px 12px !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    z-index: 10;
  }
  
  .waeg-toggle-categories-btn:hover {
    background: #c0392b !important;
  }
  
  /* Ocultar categorías cuando está colapsado */
  .waeg-categories-container.collapsed .waeg-categories-list {
    display: none !important;
  }
  
  .waeg-categories-title {
    margin: 0 0 6px 0 !important; /* ✅ Reducir espacio del título */
  }
  
  /* ✅ MOVER BOTONES A LA LÍNEA DEL ORDENAMIENTO (NO FLOTANTES) */
  .waeg-categories-header {
    position: relative;
  }
  
  /* ✅ BOTONES EN LA MISMA LÍNEA QUE EL SELECTOR */
  .waeg-sort-section {
    display: flex !important;
    flex-direction: row !important;
    align-items: stretch !important; /* ✅ Estirar para misma altura */
    gap: 8px !important;
    margin-top: 12px !important;
    margin-bottom: 16px !important;
    padding: 0 !important;
    border: none !important;
    flex-wrap: wrap !important; /* ✅ Permitir wrap si no cabe */
  }
  
  .waeg-mobile-filters-btn {
    position: relative !important; /* ✅ NO flotante */
    bottom: auto !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    z-index: 1 !important;
    width: auto !important;
    max-width: none !important;
    display: flex !important;
    padding: 10px 14px !important; /* ✅ Padding vertical y horizontal */
    font-size: 13px !important;
    border-radius: 10px !important;
    min-height: 40px !important; /* ✅ Altura mínima para visibilidad */
    height: auto !important;
    justify-content: center !important;
    align-items: center !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    order: 1 !important; /* ✅ Primero */
    background: #e74c3c !important;
    color: #ffffff !important;
    border: none !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    gap: 6px !important;
  }
  
  .waeg-mobile-filters-btn svg {
    width: 16px !important;
    height: 16px !important;
  }
  
  .waeg-mobile-filters-btn:hover {
    background: #c0392b !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 3px 8px rgba(231, 76, 60, 0.3) !important;
  }
  
  .waeg-mobile-clear-filters-btn {
    position: relative !important; /* ✅ NO flotante */
    bottom: auto !important;
    right: auto !important;
    left: auto !important;
    top: auto !important;
    z-index: 1 !important;
    width: auto !important;
    max-width: none !important;
    display: flex !important;
    padding: 10px 14px !important; /* ✅ Padding vertical y horizontal */
    font-size: 13px !important;
    border-radius: 10px !important;
    min-height: 40px !important; /* ✅ Altura mínima para visibilidad */
    height: auto !important;
    justify-content: center !important;
    align-items: center !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    order: 2 !important; /* ✅ Segundo */
    background: #dc3545 !important;
    color: #ffffff !important;
    border: none !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    gap: 6px !important;
  }
  
  .waeg-mobile-clear-filters-btn svg {
    width: 16px !important;
    height: 16px !important;
  }
  
  .waeg-mobile-clear-filters-btn:hover {
    background: #c82333 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 3px 8px rgba(220, 53, 69, 0.3) !important;
  }
  
  /* ✅ SELECTOR DE ORDENAMIENTO EN MÓVIL */
  .waeg-sort-wrapper {
    width: auto !important; /* ✅ Ancho automático para compartir espacio */
    flex: 1 !important; /* ✅ Crecer para ocupar espacio disponible */
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
    margin: 0 !important;
    min-width: 140px !important; /* ✅ Ancho mínimo */
    order: 3 !important; /* ✅ Tercero (al final) */
  }
  
  .waeg-sort-wrapper label {
    display: none !important; /* ✅ Ocultar label "Ordenar por:" en móvil */
  }
  
  .waeg-sort-select {
    width: 100% !important;
    font-size: 13px !important;
    padding: 10px 28px 10px 12px !important;
    border-radius: 10px !important;
    border: 2px solid #e0e0e0 !important;
    background-color: #ffffff !important;
    font-weight: 500 !important;
    margin: 0 !important;
    min-height: 40px !important; /* ✅ Altura mínima igual a los botones */
    height: auto !important;
    line-height: normal !important;
  }
  
  /* ✅ GRID DE PRODUCTOS MÁS PEGADO */
  .waeg-main-content {
    padding: 0 !important;
    margin: 0 !important;
  }
  
  #waeg-grid {
    padding: 0 !important;
    margin: 0 !important;
    gap: 12px !important; /* ✅ Reducido */
  }
  
  #waeg-search {
    font-size: 13px;
    padding: 8px 12px;
  }
  
  .waeg-categories-list,
  .waeg-subcategories-list {
    gap: 8px;
    padding: 6px 0;
  }
  
  .waeg-category-item,
  .waeg-subcategory-item {
    padding: 8px 16px !important;
    font-size: 14px !important;
  }
  
  .waeg-sidebar-title {
    font-size: 14px;
    margin-bottom: 10px;
    padding-bottom: 6px;
  }
  
  .waeg-category-count,
  .waeg-subcategory-count {
    font-size: 11px;
  }
}

/* ── Bloque responsive 3 ── */
@media (max-width: 480px) {
  .waeg-suggestions-section-title {
    padding: 8px 12px;
    font-size: 11px;
  }
  
  .waeg-suggestion-item {
    padding: 10px 12px;
  }
  
  .waeg-suggestion-image {
    width: 40px;
    height: 40px;
    margin-right: 10px;
  }
  
  .waeg-suggestion-title {
    font-size: 13px;
  }
  
  .waeg-category-badge,
  .waeg-suggestion-badge {
    font-size: 9px;
    padding: 3px 6px;
    top: 8px;
    right: 10px;
  }
}

/* ── Bloque responsive 4 ── */
@media (max-width: 767px) {
  .waeg-global-search-input {
    font-size: 14px;
    padding: 10px 16px;
  }
  
  .waeg-global-search-button {
    padding: 10px 20px;
    font-size: 14px;
  }
  
  .waeg-suggestion-item {
    padding: 10px 12px;
  }
  
  .waeg-suggestion-image {
    width: 40px;
    height: 40px;
    margin-right: 10px;
  }
  
  .waeg-suggestion-title {
    font-size: 13px;
  }
  
  .waeg-suggestion-price {
    font-size: 12px;
  }
}

/* ── Bloque responsive 5 ── */
@media (max-width: 720px) {
  .waeg-search-input-wrapper {
    flex-direction: column;
    gap: 8px;
  }
  
  .waeg-global-search-button {
    width: 100%;
    border-radius: 25px;
  }
  
  .waeg-style-minimal .waeg-global-search-button,
  .waeg-style-modern .waeg-global-search-button {
    width: 100%;
  }
  
  .waeg-search-live-results {
    max-height: 300px;
  }
  
  .waeg-suggestion-badge {
    position: static;
    margin-left: 8px;
    font-size: 10px;
    padding: 2px 6px;
  }
}

/* ── Bloque responsive 6 ── */
@media (max-width: 720px) {
  /* Asegurar overflow visible en todos los contenedores móviles */
  .waeg-shop-wrapper,
  .waeg-main-content {
    overflow: visible !important;
  }
  
  /* IMPORTANTE: Grid con 2 columnas en móvil */
  .waeg-grid:not(.waeg-columns-4 .waeg-grid) {
    grid-template-columns: repeat(2, 1fr);
    justify-content: center;
    overflow: visible !important;
    gap: 5px; /* Reducido a 5px */
    padding: 0 5px; /* Padding mínimo */
    margin: 0 auto;
  }
  
  .waeg-grid:not(.waeg-columns-4 .waeg-grid) .product,
  .waeg-grid:not(.waeg-columns-4 .waeg-grid) li.product {
    width: 100% !important; /* Usar todo el ancho disponible */
    max-width: 180px !important; /* Límite máximo para evitar descontrol */
    min-width: 120px !important; /* Mínimo de 120px */
    margin: 0 auto !important; /* Centrar en su columna */
    padding: 0 !important;
    height: auto !important;
    min-height: 298px !important; /* Alto 298px (248px + 20% = 297.6px ≈ 298px) */
    max-height: none !important;
    display: flex !important;
    flex-direction: column !important;
    box-sizing: border-box !important;
    border-radius: 10px !important; /* Bordes redondeados en la card */
    overflow: visible !important; /* Cambiar a visible para los botones */
  }
  
  /* ===================================================================
     CONFIGURACIÓN ESPECIAL PARA 4 COLUMNAS EN MÓVIL - 2 COLUMNAS 
     =================================================================== */
  
  /* Asegurar que el wrapper no corte las cards en móvil */
  .waeg-columns-4.waeg-shop-wrapper {
    overflow: visible !important;
    padding: 8px !important;
    margin: 0 auto !important;
  }

  /* 5 columnas en móvil — mismo tratamiento que 4 col */
  .waeg-columns-5.waeg-shop-wrapper {
    overflow: visible !important;
    padding: 8px !important;
    margin: 0 auto !important;
  }

  .waeg-columns-5 .waeg-grid,
  .waeg-shop-wrapper.waeg-columns-5 .waeg-grid,
  .waeg-shop-wrapper.waeg-columns-5 .waeg-main-content .waeg-grid,
  div.waeg-shop-wrapper.waeg-columns-5 div.waeg-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 5px !important;
    justify-content: center !important;
    justify-items: center !important;
    padding: 0 5px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: visible !important;
    margin: 0 auto !important;
  }

  .waeg-columns-5 .waeg-grid .product,
  .waeg-columns-5 .waeg-grid li.product,
  .waeg-columns-5 .waeg-grid .type-product,
  .waeg-shop-wrapper.waeg-columns-5 .waeg-grid .product,
  div.waeg-shop-wrapper.waeg-columns-5 div.waeg-grid li.product {
    width: 100% !important;
    max-width: 180px !important;
    min-width: 120px !important;
    margin: 0 auto !important;
    padding: 0 !important;
    height: auto !important;
    min-height: 358px !important;
    max-height: none !important;
    box-sizing: border-box !important;
    overflow: visible !important;
    display: flex !important;
    flex-direction: column !important;
    border-radius: 10px !important;
  }

  
  /* Usar 2 columnas en móvil para .waeg-columns-4 */
  .waeg-columns-4 .waeg-grid,
  .waeg-shop-wrapper.waeg-columns-4 .waeg-grid,
  .waeg-shop-wrapper.waeg-columns-4 .waeg-main-content .waeg-grid,
  div.waeg-shop-wrapper.waeg-columns-4 div.waeg-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 5px !important; /* Reducido a 5px */
    justify-content: center !important;
    justify-items: center !important;
    padding: 0 5px !important; /* Padding mínimo */
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: visible !important;
    margin: 0 auto !important;
  }

  .waeg-columns-4 .waeg-grid .product,
  .waeg-columns-4 .waeg-grid li.product,
  .waeg-columns-4 .waeg-grid .type-product,
  .waeg-shop-wrapper.waeg-columns-4 .waeg-grid .product,
  div.waeg-shop-wrapper.waeg-columns-4 div.waeg-grid li.product {
    width: 100% !important; /* Usar todo el ancho disponible */
    max-width: 180px !important; /* Límite máximo para evitar descontrol */
    min-width: 120px !important; /* Mínimo de 120px */
    margin: 0 auto !important; /* Centrar en su columna */
    padding: 0 !important;
    height: auto !important;
    min-height: 358px !important; /* Alto 358px (298px + 20% = 357.6px ≈ 358px) - AUMENTADO 20% */
    max-height: none !important;
    font-size: 13.22px !important; /* 11.5px + 15% = 13.225px ≈ 13.22px */
    box-sizing: border-box !important;
    overflow: visible !important; /* Cambiar a visible para los botones */
    display: flex !important;
    flex-direction: column !important;
    border-radius: 10px !important; /* Bordes redondeados en la card */
  }
  
  /* Asegurar que imagen mantenga altura fija - 150px */
  .waeg-grid .product img,
  .waeg-grid .product .attachment-woocommerce_thumbnail {
    height: 150px !important; /* Alto 150px */
    min-height: 150px !important;
    max-height: 150px !important;
    flex-shrink: 0 !important;
    object-fit: cover !important;
    width: 100% !important;
    border-radius: 8px !important; /* Bordes redondeados */
    overflow: hidden !important;
  }
  
  /* Imagen para 4 columnas en móvil - 150px */
  .waeg-columns-4 .waeg-grid .product img,
  .waeg-columns-4 .waeg-grid .product .attachment-woocommerce_thumbnail {
    height: 150px !important; /* Alto 150px */
    min-height: 150px !important;
    max-height: 150px !important;
    padding: 1px !important;
    object-fit: cover !important;
    width: 100% !important;
    box-sizing: border-box !important;
    border-radius: 8px !important; /* Bordes redondeados */
    overflow: hidden !important;
  }
  
  /* Títulos más pequeños en móvil para 4 columnas */
  .waeg-columns-4 .waeg-grid .product h2,
  .waeg-columns-4 .waeg-grid .product h3,
  .waeg-columns-4 .waeg-grid .product .woocommerce-loop-product__title {
    font-size: 13.22px !important; /* 11.5px + 15% = 13.225px ≈ 13.22px */
    line-height: 1.1 !important;
    padding: 1px 2px !important;
    margin: 0 !important;
    text-align: center !important;
  }
  
  /* PRECIO CENTRADO - Máxima especificidad para móvil 4 columnas */
  .waeg-columns-4 .waeg-grid .product .price,
  .waeg-columns-4 .waeg-grid .product span.price,
  .waeg-columns-4 .waeg-grid .product .woocommerce-Price-amount,
  .waeg-columns-4 .waeg-grid .product .woocommerce-Price-amount.amount,
  .waeg-columns-4 .waeg-grid .product .price ins,
  .waeg-columns-4 .waeg-grid .product .price del {
    font-size: 15.87px !important; /* 13.8px + 15% = 15.87px */
    font-weight: 700 !important;
    padding: 1px 0 !important;
    margin: 1px auto !important;
    text-align: center !important;
    display: block !important;
    width: 100% !important;
    height: auto !important;
    min-height: auto !important;
    max-width: 100% !important;
  }
  
  /* ===================================================================
     NUEVO LAYOUT DE BOTONES MÓVIL - FILA HORIZONTAL AL FINAL
     =================================================================== */
  
  /* Contenedor de botones - fila horizontal */
  .waeg-columns-4 .waeg-grid .product .waeg-mobile-button-row {
    display: flex !important;
    flex-direction: row !important;
    gap: 4px !important;
    width: calc(100% - 8px) !important;
    max-width: 172px !important;
    margin-top: auto !important;
    margin-bottom: 0 !important;
    margin-left: 4px !important;
    margin-right: 4px !important;
    padding: 0 0 6px 0 !important;
    box-sizing: border-box !important;
    align-items: stretch !important;
    justify-content: flex-end !important;
    flex-shrink: 0 !important;
    background: transparent !important;
    border-top: none !important;
    order: 999 !important;
  }
  
  /* Botón de WhatsApp - mismo diseño que Agregar */
  .waeg-columns-4 .waeg-grid .product .waeg-mobile-button-row .waeg-btn-whatsapp {
    padding: 6px 4px !important;
    margin: 0 !important;
    flex: 1 !important;
    min-width: 0 !important;
    min-height: 28px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    box-sizing: border-box !important;
    border-radius: 6px !important;
    background: #25D366 !important;
    border: none !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }
  
  /* SVG del botón de WhatsApp */
  .waeg-columns-4 .waeg-grid .product .waeg-mobile-button-row .waeg-btn-whatsapp svg {
    width: 14px !important; /* Reducido de 16px a 14px */
    height: 14px !important; /* Reducido de 16px a 14px */
    fill: white !important;
    flex-shrink: 0 !important;
  }
  
  /* Texto del botón de WhatsApp - 12px */
  .waeg-columns-4 .waeg-grid .product .waeg-mobile-button-row .waeg-btn-whatsapp .waeg-btn-text {
    font-size: 11px !important; /* Reducido de 12px a 11px */
    line-height: 1 !important;
    color: white !important;
    font-weight: 600 !important;
  }
  
  /* Botón de carrito - MISMAS DIMENSIONES QUE WHATSAPP */
  .waeg-columns-4 .waeg-grid .product .waeg-mobile-button-row .waeg-btn-cart {
    padding: 6px 8px !important;
    margin: 0 !important;
    width: auto !important;
    flex: 1 !important;
    min-width: 0 !important;
    min-height: 28px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    box-sizing: border-box !important;
    border-radius: 6px !important; /* CAMBIAR de "0 0 10px 10px" a "6px" - REDONDEAR TODAS LAS ESQUINAS */
    background: #7B0303 !important;
    border: none !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
  }
  
  /* OCULTAR icono del carrito (emoji) */
  .waeg-columns-4 .waeg-grid .product .waeg-mobile-button-row .waeg-btn-cart .waeg-cart-icon {
    display: none !important; /* OCULTAR EMOJI */
  }
  
  /* Texto del botón de carrito - 11px */
  .waeg-columns-4 .waeg-grid .product .waeg-mobile-button-row .waeg-btn-cart .waeg-btn-text {
    font-size: 11px !important; /* Reducido de 12px a 11px */
    line-height: 1 !important;
    color: white !important;
    font-weight: 600 !important;
  }
  
  /* OCULTAR botón de Comparar */
  .waeg-columns-4 .waeg-grid .product .waeg-mobile-button-row .waeg-btn-compare {
    display: none !important;
  }
  
  /* Hover en botón de WhatsApp */
  .waeg-columns-4 .waeg-grid .product .waeg-mobile-button-row .waeg-btn-whatsapp:hover {
    background: #1eae57 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4) !important;
  }
  
  /* Hover en botón de carrito */
  .waeg-columns-4 .waeg-grid .product .waeg-mobile-button-row .waeg-btn-cart:hover {
    background: #5a0202 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(123, 3, 3, 0.4) !important;
  }
  
  /* Active state */
  .waeg-columns-4 .waeg-grid .product .waeg-mobile-button-row .waeg-btn-whatsapp:active,
  .waeg-columns-4 .waeg-grid .product .waeg-mobile-button-row .waeg-btn-cart:active {
    transform: translateY(0) !important;
  }
  
  /* Empujar botón al fondo */
  .waeg-grid .product .button,
  .waeg-grid .product .add_to_cart_button {
    margin-top: auto !important;
  }
  
  /* ====================================================================
     ESTILOS GENERALES PARA CARDS MÓVIL - Escala 1/6
     ==================================================================== */
  
  /* Reducir espaciado de contenido en cards móviles - 1/6 escala */
  .waeg-grid .product .product-content {
    padding: 2px 3px !important; /* 1/6 del padding normal */
    gap: 0px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
    flex: 1 !important; /* Ocupar espacio disponible */
  }
  
  /* Asegurar que todos los elementos internos respeten el ancho */
  .waeg-grid .product .woocommerce-loop-product__link,
  .waeg-grid .product a {
    width: 100% !important;
    display: block !important;
    box-sizing: border-box !important;
  }
  
  /* Títulos de producto en móvil - 13.22px */
  .waeg-grid:not(.waeg-columns-4 .waeg-grid) .product h2,
  .waeg-grid:not(.waeg-columns-4 .waeg-grid) .product h3,
  .waeg-grid:not(.waeg-columns-4 .waeg-grid) .product .woocommerce-loop-product__title {
    font-size: 13.22px !important; /* 11.5px + 15% = 13.225px ≈ 13.22px */
    line-height: 1.2 !important;
    margin: 0px !important;
    padding: 0 !important;
    width: 100% !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    flex-shrink: 0 !important; /* No reducir */
  }
  
  /* Precio en móvil - 15.87px */
  .waeg-grid:not(.waeg-columns-4 .waeg-grid) .product .price {
    font-size: 15.87px !important; /* 13.8px + 15% = 15.87px */
    margin: 0px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    flex-shrink: 0 !important; /* No reducir */
  }
  
  /* ====================================================================
     NUEVO LAYOUT DE BOTONES MÓVIL - FILA HORIZONTAL AL FINAL
     ==================================================================== */
  
  /* Contenedor de botones móvil - fila horizontal */
  .waeg-grid .product .waeg-mobile-button-row {
    display: flex !important;
    flex-direction: row !important;
    gap: 4px !important;
    width: 100% !important;
    margin-top: auto !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    align-items: stretch !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    background: transparent !important;
    border-top: none !important;
  }

  /* Contenedor del cart — flex:1 para igualar WhatsApp */
  .waeg-grid .product .waeg-mobile-button-row .waeg-add-to-cart-container {
    display: flex !important;
    flex: 1 !important;
    min-width: 0 !important;
    align-items: stretch !important;
  }
  
  /* Botón de WhatsApp - mismo diseño que Agregar */
  .waeg-grid .product .waeg-mobile-button-row .waeg-btn-whatsapp {
    padding: 10px !important;
    margin: 0 !important;
    flex: 1 !important;
    min-width: 0 !important;
    min-height: 40px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    box-sizing: border-box !important;
    border-radius: 8px !important;
    background: #25D366 !important;
    border: none !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }
  
  /* SVG del botón de WhatsApp */
  .waeg-grid .product .waeg-mobile-button-row .waeg-btn-whatsapp svg {
    width: 16px !important;
    height: 16px !important;
    fill: white !important;
    flex-shrink: 0 !important;
  }
  
  /* Texto del botón de WhatsApp */
  .waeg-grid .product .waeg-mobile-button-row .waeg-btn-whatsapp .waeg-btn-text {
    font-size: 14px !important;
    line-height: 1 !important;
    color: white !important;
    font-weight: 600 !important;
  }
  
  /* Botón de carrito en móvil */
  .waeg-grid .product .waeg-mobile-button-row .waeg-btn-cart {
    padding: 10px !important;
    margin: 0 !important;
    width: auto !important;
    flex: 1 !important;
    min-width: 0 !important;
    min-height: 40px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    box-sizing: border-box !important;
    border-radius: 8px !important;
    background: #7B0303 !important;
    border: none !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
  }
  
  /* Icono del carrito (emoji) */
  .waeg-grid .product .waeg-mobile-button-row .waeg-btn-cart .waeg-cart-icon {
    font-size: 12px !important;
    line-height: 1 !important;
    flex-shrink: 0 !important;
  }
  
  /* Texto del botón de carrito - FUENTE REDUCIDA 50% */
  .waeg-grid .product .waeg-mobile-button-row .waeg-btn-cart .waeg-btn-text {
    font-size: 8px !important; /* REDUCIDO AL 50% */
    line-height: 1 !important;
    color: white !important;
    font-weight: 600 !important;
  }
  
  /* OCULTAR Botón Comparar */
  .waeg-grid .product .waeg-mobile-button-row .waeg-btn-compare {
    display: none !important;
  }
  
  /* Hover en botón de WhatsApp */
  .waeg-grid .product .waeg-mobile-button-row .waeg-btn-whatsapp:hover {
    background: #1eae57 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4) !important;
  }
  
  /* Hover en botón de carrito */
  .waeg-grid .product .waeg-mobile-button-row .waeg-btn-cart:hover {
    background: #5a0202 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(123, 3, 3, 0.4) !important;
  }
  
  /* Active state */
  .waeg-grid .product .waeg-mobile-button-row .waeg-btn-whatsapp:active,
  .waeg-grid .product .waeg-mobile-button-row .waeg-btn-cart:active {
    transform: translateY(0) !important;
  }

  /* =================================================================
     OVERRIDES ALTA ESPECIFICIDAD - ANULAR RESTRICCIONES DESKTOP
     Las reglas de #waeg-grid.waeg-grid en shop-ajax.css tienen
     especificidad de ID (1,3,0) y están fuera de media queries.
     Este bloque usa los mismos selectores y viene DESPUÉS en el
     cascade (shop-mobile.css carga después de shop-ajax.css), por lo
     que gana cuando la especificidad es igual e importan ambas reglas.
     ================================================================= */

  /* Anular tamaño fijo (321px/492px) y overflow:hidden de las cards */
  #waeg-grid.waeg-grid .product,
  #waeg-grid.waeg-grid li.product,
  #waeg-grid.waeg-grid .type-product {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 260px !important;
    max-height: none !important;
    overflow: visible !important;
  }

  /* Anular imagen fija 235px → 150px en móvil */
  #waeg-grid.waeg-grid .product a img,
  #waeg-grid.waeg-grid .product img,
  #waeg-grid.waeg-grid .product .attachment-woocommerce_thumbnail {
    height: 150px !important;
    min-height: 150px !important;
    max-height: 150px !important;
    padding: 4px !important;
  }

  /* Anular título con altura fija de desktop */
  #waeg-grid.waeg-grid .product .woocommerce-loop-product__title,
  #waeg-grid.waeg-grid .product h2.woocommerce-loop-product__title,
  #waeg-grid.waeg-grid .product h3.woocommerce-loop-product__title,
  #waeg-grid.waeg-grid .product h2,
  #waeg-grid.waeg-grid .product h3 {
    font-size: 12px !important;
    height: auto !important;
    min-height: auto !important;
    max-height: 2.6em !important;
    margin: 3px 5px 3px 5px !important;
    line-height: 1.3 !important;
  }

  /* Anular precio con márgenes de desktop */
  #waeg-grid.waeg-grid .product .price,
  #waeg-grid.waeg-grid .product span.price {
    font-size: 14px !important;
    margin: 0 5px 3px 5px !important;
    min-height: auto !important;
  }

  /* MOSTRAR la fila de botones en móvil (anula display:none de desktop) */
  #waeg-grid.waeg-grid .product .waeg-mobile-button-row {
    display: flex !important;
    flex-direction: row !important;
    gap: 4px !important;
    width: 100% !important;
    margin-top: auto !important;
    padding: 3px 4px 5px 4px !important;
    box-sizing: border-box !important;
    align-items: stretch !important;
    flex-shrink: 0 !important;
  }

  /* Contenedor del botón de carrito — mismo flex que WhatsApp */
  #waeg-grid.waeg-grid .product .waeg-mobile-button-row .waeg-add-to-cart-container {
    display: flex !important;
    flex: 1 !important;
    min-width: 0 !important;
    align-items: stretch !important;
  }

  /* Botón de carrito — mismo tamaño que WhatsApp */
  #waeg-grid.waeg-grid .product .waeg-mobile-button-row .waeg-btn-cart {
    flex: 1 !important;
    width: 100% !important;
    border-radius: 8px !important;
  }
}

/* ── Bloque responsive 7 ── */
@media (max-width: 640px) {
  .waeg-toast-notification {
    top: 10px;
    right: 10px;
    left: 10px;
    max-width: none;
    font-size: 14px;
  }
}

/* ── Bloque responsive 8 ── */
@media (max-width: 991px) {
  .waeg-cart-float {
    width: 58px;
    height: 58px;
    bottom: 20px;
    right: 20px;
    font-size: 23px;
    box-shadow: 0 3px 10px rgba(0, 115, 170, 0.35);
  }
  
  .waeg-cart-offcanvas-panel {
    max-width: 420px;
  }
}

/* ── Bloque responsive 9 ── */
@media (max-width: 991px) {
  .waeg-cart-offcanvas-panel {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: auto;
    transform: translateX(100%);
    max-width: 90%;
    width: 420px;
    height: 100vh;
    max-height: 100vh;
    border-radius: 8px 0 0 8px;
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.15);
    opacity: 1;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  .waeg-cart-offcanvas.active .waeg-cart-offcanvas-panel {
    transform: translateX(0);
    opacity: 1;
  }
}

/* ── Bloque responsive 10 ── */
@media (max-width: 767px) {
  .waeg-cart-float {
    width: 54px;
    height: 54px;
    bottom: 16px;
    right: 16px;
    font-size: 21px;
  }
  
  #waeg-cart-count {
    width: 22px;
    height: 22px;
    font-size: 11px;
    top: -3px;
    right: -3px;
  }
  
  .waeg-cart-offcanvas-panel {
    max-width: 90%;
    width: 100%;
    height: 100vh;
    max-height: 100vh;
    padding: 20px;
  }
}

/* ── Bloque responsive 11 ── */
@media (max-width: 720px) {
  .waeg-cart-float {
    width: 50px;
    height: 50px;
    bottom: 12px;
    right: 12px;
    font-size: 20px;
  }
  
  #waeg-cart-count {
    width: 20px;
    height: 20px;
    font-size: 10px;
  }
}

/* ── Bloque responsive 12 ── */
@media (max-width: 991px) {
  .waeg-featured-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  
  .waeg-featured-slice-title {
    font-size: 28px;
    margin-bottom: 28px;
  }
  
  /* En tablet (2 cols): Anclas ocupan toda la fila */
  .waeg-featured-pattern-1 .waeg-featured-product:nth-child(1),
  .waeg-featured-pattern-1 .waeg-featured-product:nth-child(6) {
    grid-column: 1 / 3;
  }
  
  .waeg-featured-pattern-2 .waeg-featured-product:nth-child(3),
  .waeg-featured-pattern-2 .waeg-featured-product:nth-child(4) {
    grid-column: 1 / 3;
  }
  
  /* Fill products ocupan 1 columna automáticamente */
  .waeg-featured-pattern-1 .waeg-featured-product:nth-child(2),
  .waeg-featured-pattern-1 .waeg-featured-product:nth-child(3),
  .waeg-featured-pattern-1 .waeg-featured-product:nth-child(4),
  .waeg-featured-pattern-1 .waeg-featured-product:nth-child(5) {
    grid-column: auto;
  }
  
  .waeg-featured-pattern-2 .waeg-featured-product:nth-child(1),
  .waeg-featured-pattern-2 .waeg-featured-product:nth-child(2),
  .waeg-featured-pattern-2 .waeg-featured-product:nth-child(5),
  .waeg-featured-pattern-2 .waeg-featured-product:nth-child(6) {
    grid-column: auto;
  }
  
  .waeg-featured-product-title {
    font-size: 16px;
  }
  
  .waeg-featured-anchor .waeg-featured-product-title {
    font-size: 20px;
  }
  
  .waeg-featured-product-price {
    font-size: 18px;
  }
  
  .waeg-featured-anchor .waeg-featured-product-price {
    font-size: 22px;
  }
}

/* ── Bloque responsive 13 ── */
@media (max-width: 767px) {
  .waeg-featured-grid-wrapper {
    padding: 30px 16px;
  }
  
  .waeg-featured-slice {
    margin-bottom: 60px;
  }
  
  .waeg-featured-slice-title {
    font-size: 24px;
    margin-bottom: 24px;
  }
  
  .waeg-featured-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  /* En mobile (1 col): Todos los productos ocupan 1 columna */
  .waeg-featured-pattern-1 .waeg-featured-product:nth-child(1),
  .waeg-featured-pattern-1 .waeg-featured-product:nth-child(2),
  .waeg-featured-pattern-1 .waeg-featured-product:nth-child(3),
  .waeg-featured-pattern-1 .waeg-featured-product:nth-child(4),
  .waeg-featured-pattern-1 .waeg-featured-product:nth-child(5),
  .waeg-featured-pattern-1 .waeg-featured-product:nth-child(6) {
    grid-column: 1;
  }
  
  .waeg-featured-pattern-2 .waeg-featured-product:nth-child(1),
  .waeg-featured-pattern-2 .waeg-featured-product:nth-child(2),
  .waeg-featured-pattern-2 .waeg-featured-product:nth-child(3),
  .waeg-featured-pattern-2 .waeg-featured-product:nth-child(4),
  .waeg-featured-pattern-2 .waeg-featured-product:nth-child(5),
  .waeg-featured-pattern-2 .waeg-featured-product:nth-child(6) {
    grid-column: 1;
  }
  
  .waeg-featured-product-info {
    padding: 16px;
  }
  
  .waeg-featured-anchor .waeg-featured-product-info {
    padding: 20px;
  }
  
  .waeg-featured-product-title {
    font-size: 16px;
  }
  
  .waeg-featured-anchor .waeg-featured-product-title {
    font-size: 18px;
  }
  
  .waeg-featured-product-price {
    font-size: 18px;
  }
  
  .waeg-featured-anchor .waeg-featured-product-price {
    font-size: 20px;
  }
  
  .waeg-featured-product-actions {
    padding: 0 16px 16px 16px;
  }
  
  .waeg-featured-anchor .waeg-featured-product-actions {
    padding: 0 20px 20px 20px;
  }
  
  .waeg-featured-add-to-cart,
  .waeg-featured-view-product {
    padding: 12px 20px;
    font-size: 15px;
  }
  
  .waeg-featured-anchor .waeg-featured-add-to-cart,
  .waeg-featured-anchor .waeg-featured-view-product {
    padding: 14px 24px;
    font-size: 16px;
  }
}

/* ── Bloque responsive 14 ── */
@media (max-width: 991px) {
  .waeg-tab-navigation {
    margin: 24px 0;
  }

  .waeg-tab-link {
    padding: 12px 20px;
    font-size: 14px;
  }

  .waeg-tab-nav-pills .waeg-tab-link {
    padding: 10px 24px;
  }

  .waeg-tab-nav-modern .waeg-tab-link {
    padding: 12px 20px;
  }
}

/* ── Bloque responsive 15 ── */
@media (max-width: 767px) {
  .waeg-tab-navigation {
    margin: 20px 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .waeg-tab-list {
    flex-wrap: nowrap;
    gap: 4px;
    min-width: min-content;
  }

  .waeg-tab-link {
    padding: 10px 16px;
    font-size: 13px;
  }

  .waeg-tab-nav-pills .waeg-tab-link {
    padding: 8px 20px;
  }

  .waeg-tab-nav-modern .waeg-tab-link {
    padding: 10px 16px;
  }

  /* Scroll horizontal en móvil */
  .waeg-tab-navigation[data-align="center"] .waeg-tab-list,
  .waeg-tab-navigation[data-align="right"] .waeg-tab-list {
    justify-content: flex-start;
  }
}

/* ── Bloque responsive 16 ── */
@media (max-width: 720px) {
  .waeg-tab-navigation {
    margin: 16px 0;
  }

  .waeg-tab-link {
    padding: 8px 12px;
    font-size: 12px;
  }

  .waeg-tab-nav-pills .waeg-tab-link {
    padding: 6px 16px;
  }
}

/* ── Bloque responsive 17 ── */
@media (max-width: 767px) {
  body.wolf-theme .waeg-sidebar,
  .wolf-theme .waeg-sidebar {
    padding: 0; /* Sin padding */
    border-radius: 0; /* Sin bordes */
    background: transparent; /* Sin fondo */
  }
  
  body.wolf-theme .waeg-category-item,
  body.wolf-theme .waeg-subcategory-item,
  .wolf-theme .waeg-category-item,
  .wolf-theme .waeg-subcategory-item {
    padding: 5px 2px; /* Más compacto */
    font-size: 13px;
    margin-bottom: 0; /* Sin margen */
  }
}

/* ── Bloque responsive 18 ── */
@media (max-width: 767px) {
  .waeg-shop-share-whatsapp {
    display: none !important; /* OCULTO también en móvil */
  }
  
  /* FORZAR LAYOUT VERTICAL EN CARDS DE PRODUCTO (MÓVIL) */
  .waeg-grid .product,
  .waeg-grid li.product,
  .waeg-grid .type-product {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    max-width: 321px !important;
    height: auto !important;
    min-height: 350px !important; /* ✅ Reducida porque el botón WhatsApp es flotante */
    max-height: none !important;
    margin: 0 auto !important;
    position: relative !important;
  }
  
  .waeg-grid .product a.woocommerce-loop-product__link,
  .waeg-grid .product a.woocommerce-LoopProduct-link,
  .waeg-grid .product > a:first-child {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 auto !important;
    min-height: 0 !important;
    order: 1 !important; /* ✅ Link de imagen primero */
  }
  
  .waeg-grid .product img,
  .waeg-grid .product .attachment-woocommerce_thumbnail {
    width: 100% !important;
    height: 165px !important; /* ✅ Reducido de 280px a 150px */
    max-height: 165px !important;
    min-height: 165px !important;
    object-fit: contain !important;
    padding: 0 !important;
    background: #ffffff !important; /* ✅ Fondo blanco */
    flex-shrink: 0 !important;
    border-radius: 8px 8px 0 0 !important;
  }
  
  /* Asegurar que título y precio mantengan sus alturas */
  .waeg-grid .product .woocommerce-loop-product__title,
  .waeg-grid .product h2,
  .waeg-grid .product h3 {
    height: 40px !important; /* ✅ Reducido de 48px a 40px */
    min-height: 40px !important;
    max-height: 40px !important;
    margin: 4px 8px 8px 8px !important;
    flex-shrink: 0 !important;
    order: 2 !important; /* ✅ Título segundo */
  }
  
  .waeg-grid .product .price,
  .waeg-grid .product span.price {
    height: 20px !important; /* ✅ Reducido de 28px a 20px */
    min-height: 20px !important;
    margin: 0 16px 16px 16px !important;
    flex-shrink: 0 !important;
    order: 3 !important; /* ✅ Precio tercero */
    text-align: center !important;
  }
  
  /* Botón añadir al carrito siempre al fondo */
  .waeg-grid .product .button,
  .waeg-grid .product .add_to_cart_button {
    margin-top: auto !important;
    margin-bottom: 16px !important;
    flex-shrink: 0 !important;
    height: 48px !important;
    line-height: 24px !important;
    order: 100 !important; /* ✅ Botón añadir último */
  }
}

/* ── Bloque responsive 19 ── */
@media (max-width: 720px) {
  .waeg-columns-4 .waeg-grid .product .price,
  .waeg-columns-4 .waeg-grid .product span.price,
  .waeg-columns-4 .waeg-grid .product .price ins,
  .waeg-columns-4 .waeg-grid .product .price del,
  .waeg-columns-4 .waeg-grid .product .woocommerce-Price-amount,
  .waeg-columns-4 .waeg-grid .product .woocommerce-Price-amount.amount,
  .waeg-columns-4 .waeg-grid li.product .price,
  .waeg-columns-4 .waeg-grid li.product span.price {
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}

/* ── Bloque responsive 20 ── */
@media (max-width: 720px) {
  .waeg-mobile-search-panel {
    padding: 12px;
  }
  
  .waeg-mobile-search-input {
    font-size: 15px;
  }
}

/* ── Bloque responsive 21 ── */
@media (max-width: 720px) {
  .waeg-active-filters {
    padding: 10px !important;
    margin-bottom: 12px !important;
  }
  
  .waeg-active-filters-header {
    flex-wrap: wrap !important;
  }
  
  .waeg-active-filter-item {
    padding: 4px 8px !important;
    font-size: 11px !important;
  }
  
  .waeg-active-filter-item .waeg-filter-value {
    max-width: 80px !important;
  }
  
  .waeg-clear-all-filters-btn {
    font-size: 10px !important;
    padding: 3px 8px !important;
  }
}

/* ── Bloque responsive 22 ── */
@media (max-width: 1024px) {
  .waeg-shop-wrapper {
    flex-direction: column; /* Stack vertical */
  }
  
  .waeg-filters-sidebar {
    flex: 0 0 auto;
    width: 100%;
    position: relative;
    top: auto;
    max-height: none;
    order: -1; /* Mostrar primero */
  }
  
  .waeg-content-wrapper {
    width: 100%;
  }
  
  .waeg-categories-container,
  .waeg-filters-sidebar .waeg-attributes-container {
    padding: 0; /* Sin padding */
    margin-bottom: 12px; /* Reducido */
    background: transparent; /* Sin fondo */
    border: none; /* Sin borde */
    box-shadow: none; /* Sin sombra */
  }
  
  .waeg-categories-title {
    font-size: 14px !important; /* Reducido de 15px */
    margin-bottom: 10px !important; /* Reducido */
  }
  
  .waeg-attributes-title {
    font-size: 13px !important; /* Reducido de 14px */
  }
  
  .waeg-attribute-name {
    font-size: 12px; /* Reducido de 13px */
    padding: 4px 6px; /* Reducido de 5px 8px */
  }
  
  .waeg-attribute-term-label {
    font-size: 11px; /* Reducido de 12px */
  }
  
  /* Categorías más compactas en tablet */
  .waeg-categories-list {
    grid-template-columns: repeat(auto-fit, minmax(65px, 80px)); /* Más compacto */
    gap: 6px; /* Reducido de 8px */
  }
  
  .waeg-category-item {
    min-width: 65px; /* Reducido */
    padding: 6px 3px; /* Reducido */
  }
  
  .waeg-category-item .waeg-category-icon {
    width: 50px; /* Reducido de 60px */
    height: 50px;
    font-size: 28px; /* Reducido de 32px */
  }
}

/* ── Bloque responsive 23 ── */
@media (max-width: 767px) {
  .waeg-categories-container,
  .waeg-filters-sidebar .waeg-attributes-container {
    padding: 0; /* Sin padding */
    margin-bottom: 10px; /* Reducido */
    border-radius: 0; /* Sin bordes */
    background: transparent; /* Sin fondo */
    border: none; /* Sin borde */
    box-shadow: none; /* Sin sombra */
  }
  
  .waeg-filters-sidebar {
    padding: 10px; /* Reducido de 12px */
  }
  
  .waeg-categories-title {
    font-size: 13px !important; /* Reducido de 14px */
    margin-bottom: 8px !important; /* Reducido de 10px */
    padding-bottom: 6px !important; /* Reducido */
  }
  
  /* Categorías más compactas en mobile */
  .waeg-categories-list {
    grid-template-columns: repeat(auto-fit, minmax(60px, 75px)); /* Más compacto */
    gap: 5px; /* Reducido */
  }
  
  .waeg-category-item {
    min-width: 60px; /* Reducido */
    padding: 5px 2px; /* Más compacto */
    gap: 4px; /* Reducido de 6px */
  }
  
  .waeg-category-item .waeg-category-icon {
    width: 45px; /* Reducido de 50px */
    height: 45px;
    font-size: 24px; /* Reducido de 28px */
  }
  
  .waeg-category-item span:not(.waeg-category-icon):not(.waeg-category-count) {
    font-size: 8px; /* Reducido de 9px */
  }
  
  .waeg-attributes-title {
    font-size: 15px !important;
    margin-bottom: 12px !important;
  }
  
  .waeg-attribute-filter {
    margin-bottom: 8px; /* Reducido de 16px a 8px (50%) */
    padding-bottom: 6px; /* Reducido de 12px a 6px (50%) */
  }
  
  .waeg-attribute-name {
    font-size: 13px;
    padding: 6px 8px;
  }
  
  .waeg-attribute-term-item {
    padding: 5px 8px;
  }
  
  .waeg-attribute-term-label {
    font-size: 12px;
  }
  
  .waeg-attribute-count {
    font-size: 11px;
  }
  
  .waeg-attribute-checkbox {
    width: 16px;
    height: 16px;
  }
  
  .waeg-attribute-terms {
    max-height: 200px;
  }
}

/* ── Bloque responsive 24 ── */
@media (max-width: 767px) {
  .waeg-mobile-filters-btn {
    display: flex;
  }
  
  /* Ocultar sidebar de filtros original en móvil (solo el del wrapper, no el del modal) */
  .waeg-shop-wrapper .waeg-filters-sidebar {
    display: none !important;
  }
  
  /* Asegurar que el sidebar clonado dentro del modal sea siempre visible */
  .waeg-mobile-filters-content .waeg-filters-sidebar {
    display: block !important;
    position: static !important;
    left: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: none !important;
    overflow: hidden !important; /* evita scroll/desborde horizontal */
    box-shadow: none !important;
    background: transparent !important;
    padding: 0 !important;
    box-sizing: border-box !important;
  }

  /* Todos los hijos del sidebar en el modal respetan el ancho */
  .waeg-mobile-filters-content .waeg-filters-sidebar * {
    max-width: 100% !important;
    box-sizing: border-box !important;
    word-break: break-word !important;
  }
}

/* ── Bloque responsive 25 ── */
@media (max-width: 767px) {
  .waeg-float-filters-btn {
    display: flex;
  }
}

/* ── Bloque responsive 26 ── */
@media (max-width: 480px) {
  .waeg-float-filters-btn {
    bottom: 16px;
    left: 16px;
    padding: 12px 16px;
    font-size: 14px;
  }
  
  .waeg-float-filters-btn svg {
    width: 20px;
    height: 20px;
  }
  
  .waeg-float-filters-text {
    font-size: 14px;
  }
}

/* ── Bloque responsive 27 ── */
@media (max-width: 720px) {
  .waeg-compare-content {
    width: 95%;
    padding: 20px 16px;
  }
  
  .waeg-compare-products {
    gap: 12px;
  }
  
  .waeg-compare-product img {
    height: 100px;
  }
  
  .waeg-compare-product h4 {
    font-size: 12px;
  }
}

/* ── Bloque responsive 28 ── */
@media (max-width: 767px) {
  .waeg-product-modal-content {
    width: 95%;
    max-height: 90vh;
  }
  
  .waeg-product-modal-body {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 20px;
  }
  
  .waeg-product-modal-image {
    min-height: 250px;
  }
  
  .waeg-product-modal-info h2 {
    font-size: 22px;
  }
  
  .waeg-modal-price {
    font-size: 26px;
  }
  
  .waeg-modal-view-button {
    width: 100%;
  }
  
  .waeg-product-modal-prev,
  .waeg-product-modal-next {
    width: 40px;
    height: 40px;
  }
  
  .waeg-product-modal-prev {
    left: 8px;
  }
  
  .waeg-product-modal-next {
    right: 8px;
  }
  
  .waeg-product-modal-prev svg,
  .waeg-product-modal-next svg {
    width: 20px;
    height: 20px;
  }
}

/* ── Bloque responsive 29 ── */
@media (max-width: 767px) {
  .waeg-pagination {
    margin: 30px 0 20px;
    padding: 15px 0;
  }
  
  .waeg-pagination-wrapper {
    gap: 6px;
  }
  
  .waeg-pagination-btn {
    padding: 8px 12px;
    font-size: 13px;
  }
  
  /* Ocultar texto en móvil, solo mostrar flechas */
  .waeg-pagination-text {
    display: none;
  }
  
  .waeg-pagination-number {
    min-width: 36px;
    height: 36px;
    padding: 6px 10px;
    font-size: 13px;
  }
  
  .waeg-pagination-ellipsis {
    padding: 6px 3px;
    font-size: 13px;
  }
}

/* ── Bloque responsive 30 ── */
@media (max-width: 480px) {
  .waeg-pagination-wrapper {
    gap: 4px;
  }
  
  .waeg-pagination-btn {
    padding: 6px 10px;
    font-size: 12px;
  }
  
  .waeg-pagination-number {
    min-width: 32px;
    height: 32px;
    padding: 4px 8px;
    font-size: 12px;
  }
}

/* ── Bloque responsive 31 ── */
@media (max-width: 767px) {
  .waeg-shop-wrapper {
    flex-direction: column !important;
    padding: 0 12px !important;
    gap: 16px !important;
  }

  /* Sidebar de filtros: oculto en mobile — el modal #waeg-mobile-filters-modal
     es el canal de filtros en esta resolución (ver bloque 24 arriba).
     El patrón antiguo position:fixed/left:-100% se elimina para evitar
     conflictos con el sistema de modal y con display:none del bloque 24. */
  .waeg-shop-wrapper .waeg-filters-sidebar {
    display: none !important;
  }

  /* Grid 2 columnas en mobile */
  #waeg-grid.waeg-grid,
  #waeg-grid.waeg-grid .products,
  #waeg-grid.waeg-grid ul.products {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
    justify-content: center !important;
    align-items: stretch !important;
  }

  /* Cards adaptables en móvil */
  #waeg-grid.waeg-grid .product,
  #waeg-grid.waeg-grid li.product,
  #waeg-grid.waeg-grid .type-product {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 260px !important;
    max-height: none !important;
  }

  /* Categorías en scroll horizontal móvil */
  .waeg-shop-wrapper .waeg-categories-list {
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    padding: 8px 0 !important;
    margin: 0 -12px !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .waeg-shop-wrapper .waeg-categories-list::-webkit-scrollbar {
    display: none;
  }

  .waeg-shop-wrapper .waeg-category-pill {
    font-size: 12px !important;
    padding: 6px 14px !important;
    flex-shrink: 0 !important;
    white-space: nowrap !important;
  }

  /* Controles en columna */
  .waeg-controls-top {
    flex-direction: column !important;
    gap: 12px !important;
  }

  .waeg-search-wrapper,
  .waeg-sort-wrapper,
  .waeg-perpage-wrapper {
    width: 100% !important;
  }

  /* Inputs más grandes para mobile — font-size 16px evita zoom en iOS */
  .waeg-search-input,
  .waeg-sort-select,
  .waeg-items-select {
    font-size: 16px !important;
    padding: 12px 16px !important;
    min-height: 44px !important;
  }

  /* Botones más grandes (touch target mínimo 44px) */
  .waeg-shop-wrapper .waeg-category-pill,
  .waeg-attribute-term,
  .waeg-pagination-btn {
    min-height: 44px !important;
  }

  /* Paginación compacta */
  .waeg-pagination-wrapper {
    gap: 6px;
    justify-content: center;
  }

  .waeg-pagination-number {
    min-width: 38px;
    height: 38px;
    font-size: 14px;
  }
}

/* ── Bloque responsive 32 ── */
@media (max-width: 479px) {
  .waeg-shop-wrapper {
    padding: 0 8px !important;
    gap: 12px !important;
  }
  
  .waeg-filters-sidebar {
    width: 90% !important;
    max-width: 280px !important;
  }
  
  .waeg-category-pill {
    font-size: 12px !important;
    padding: 6px 14px !important;
  }
  
  .waeg-pagination-number {
    min-width: 34px;
    height: 34px;
    font-size: 13px;
  }
  
  .waeg-pagination-btn {
    padding: 6px 10px;
    font-size: 12px;
  }
}

/* ── Bloque responsive 33 ── */
@media (max-width: 767px) and (orientation: landscape) {
  .waeg-filters-sidebar {
    max-width: 50% !important;
  }
  
  #waeg-grid,
  .waeg-grid,
  .waeg-grid .products,
  .waeg-grid ul.products {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  
  .waeg-grid .product,
  .waeg-grid li.product,
  .waeg-grid .type-product {
    width: 100% !important;
    max-width: 100% !important;
  }
}

/* ── Bloque responsive 34 ── */
@media (max-width: 767px) {
  .waeg-cart-float {
    bottom: 20px;
    right: 20px;
  }
}

/* ── Bloque responsive 35 ── */
@media (max-width: 640px) {
  .waeg-inactivity-content {
    padding: 32px 24px;
    border-radius: 16px;
  }
  
  .waeg-inactivity-icon svg {
    width: 48px;
    height: 48px;
  }
  
  .waeg-inactivity-title {
    font-size: 22px;
  }
  
  .waeg-inactivity-message {
    font-size: 14px;
  }
  
  .waeg-inactivity-btn {
    padding: 14px 24px;
    font-size: 14px;
  }
}

/* ── Bloque responsive 36 ── */
@media (max-width: 767px) {
  #waeg-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* ============================================================
   WAEG - Grid Principal: 2 columnas forzadas en móvil
   Iguala la especificidad del rule de desktop (#waeg-grid.waeg-grid)
   para garantizar 2 columnas en todos los dispositivos ≤ 767px
   ============================================================ */
@media (max-width: 767px) {
  #waeg-grid.waeg-grid,
  #waeg-grid.waeg-grid .products,
  #waeg-grid.waeg-grid ul.products {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }

  #waeg-grid.waeg-grid .product,
  #waeg-grid.waeg-grid li.product {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
  }
}

/* Mismo fix para pantallas aún más pequeñas (≤ 480px): mantener 2 columnas */
@media (max-width: 480px) {
  #waeg-grid.waeg-grid,
  #waeg-grid.waeg-grid .products,
  #waeg-grid.waeg-grid ul.products {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
  }
}

/* ============================================================
   WAEG - FILTROS MÓVIL: Barra inline + Panel modal
   ============================================================ */

/* ─── 1. Mostrar la barra inline (especificidad igual a la regla que la oculta) ─── */
@media (max-width: 767px) {
  .waeg-sidebar .waeg-sort-section {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    padding: 10px 12px !important;
    margin: 0 0 10px 0 !important;
    background: #2c3e50 !important;
    border-radius: 12px !important;
    border: none !important;
  }

  /* Botón "Filtros" */
  .waeg-sidebar .waeg-sort-section .waeg-mobile-filters-btn {
    flex: 0 0 auto !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 10px 16px !important;
    min-height: 44px !important;
    background: #e74c3c !important;
    color: #fff !important;
    border: none !important;
    border-radius: 10px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    white-space: nowrap !important;
    box-shadow: 0 2px 6px rgba(231,76,60,0.35) !important;
  }

  .waeg-sidebar .waeg-sort-section .waeg-mobile-filters-btn svg {
    width: 18px !important;
    height: 18px !important;
    flex-shrink: 0 !important;
  }

  /* Botón "Limpiar" */
  .waeg-sidebar .waeg-sort-section .waeg-mobile-clear-filters-btn {
    flex: 0 0 auto !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 10px 14px !important;
    min-height: 44px !important;
    background: rgba(255,255,255,0.12) !important;
    color: #fff !important;
    border: 1.5px solid rgba(255,255,255,0.25) !important;
    border-radius: 10px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    white-space: nowrap !important;
  }

  .waeg-sidebar .waeg-sort-section .waeg-mobile-clear-filters-btn svg {
    width: 16px !important;
    height: 16px !important;
    flex-shrink: 0 !important;
  }

  /* Selector de ordenamiento */
  .waeg-sidebar .waeg-sort-section .waeg-sort-wrapper {
    flex: 1 1 auto !important;
    min-width: 130px !important;
    display: flex !important;
    align-items: center !important;
    order: 3 !important;
    width: 100% !important;
  }

  .waeg-sidebar .waeg-sort-section .waeg-sort-select {
    width: 100% !important;
    font-size: 15px !important;  /* evita zoom en iOS */
    min-height: 44px !important;
    padding: 10px 36px 10px 14px !important;
    border-radius: 10px !important;
    border: 2px solid rgba(255,255,255,0.2) !important;
    background-color: rgba(255,255,255,0.1) !important;
    color: #fff !important;
    font-weight: 600 !important;
  }

  .waeg-sidebar .waeg-sort-section .waeg-sort-wrapper label {
    display: none !important;
  }
}

/* ─── 2. Panel modal — diseño completo ─── */
@media (max-width: 767px) {

  /* Panel más ancho en pantallas pequeñas */
  .waeg-mobile-filters-panel {
    width: 92% !important;
    max-width: 440px !important;
  }

  /* HEADER oscuro */
  .waeg-mobile-filters-header {
    padding: 14px 18px !important;
    background: #2c3e50 !important;
    border-bottom: 3px solid #e74c3c !important;
    border-radius: 0 !important;
  }

  .waeg-mobile-filters-header h2 {
    font-size: 17px !important;
    color: #ffffff !important;
    letter-spacing: 0.5px !important;
  }

  .waeg-mobile-filters-close {
    color: #ffffff !important;
    font-size: 26px !important;
    min-width: 44px !important;
    min-height: 44px !important;
    width: 44px !important;
    height: 44px !important;
    background: rgba(255,255,255,0.15) !important;
    border-radius: 8px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .waeg-mobile-filters-close:hover,
  .waeg-mobile-filters-close:active {
    background: rgba(255,255,255,0.3) !important;
  }

  /* ÁREA DE CONTENIDO scrolleable */
  .waeg-mobile-filters-content {
    padding: 14px !important;
    background: #f0f2f5 !important;
    overflow-y: auto !important;
  }

  /* Sidebar clonado: sin estilos de posición */
  .waeg-mobile-filters-content .waeg-filters-sidebar {
    background: transparent !important;
    padding: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    position: static !important;
    width: 100% !important;
    max-width: none !important;
    max-height: none !important;
    overflow-y: visible !important;
  }

  /* Cada sección del sidebar: tarjeta blanca */
  .waeg-mobile-filters-content .waeg-sidebar-section {
    background: #ffffff !important;
    border-radius: 12px !important;
    padding: 14px 16px !important;
    margin-bottom: 10px !important;
    box-shadow: 0 1px 5px rgba(0,0,0,0.07) !important;
    border: 1px solid #e4e8ed !important;
  }

  .waeg-mobile-filters-content .waeg-sidebar-section:last-child {
    margin-bottom: 0 !important;
  }

  /* Títulos de cada sección */
  .waeg-mobile-filters-content .waeg-sidebar-title,
  .waeg-mobile-filters-content .waeg-attributes-title {
    font-size: 12px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.7px !important;
    color: #2c3e50 !important;
    margin-bottom: 12px !important;
    padding-bottom: 8px !important;
    border-bottom: 2px solid #e74c3c !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
  }

  /* Ocultar ícono toggle del título principal de atributos en modal */
  .waeg-mobile-filters-content .waeg-toggle-icon {
    display: none !important;
  }

  /* SELECT de categorías / subcategorías */
  .waeg-mobile-filters-content .waeg-filter-select {
    font-size: 16px !important;
    padding: 13px 40px 13px 14px !important;
    min-height: 50px !important;
    border-radius: 10px !important;
    border: 2px solid #dde1e7 !important;
    width: 100% !important;
    background-color: #f8f9fa !important;
    color: #333 !important;
    font-weight: 500 !important;
  }

  .waeg-mobile-filters-content .waeg-filter-select:focus {
    border-color: #e74c3c !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(231,76,60,0.15) !important;
    background: #fff !important;
  }

  .waeg-mobile-filters-content .waeg-subcategories-label {
    font-size: 11px !important;
    font-weight: 700 !important;
    color: #6c757d !important;
    margin-bottom: 6px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    display: block !important;
    margin-top: 10px !important;
  }

  /* SELECT de ordenamiento en el modal */
  .waeg-mobile-filters-content .waeg-sort-select-filter {
    font-size: 16px !important;
    padding: 13px 40px 13px 14px !important;
    min-height: 50px !important;
    border-radius: 10px !important;
    border: 2px solid #dde1e7 !important;
    width: 100% !important;
    background-color: #f8f9fa !important;
    color: #333 !important;
    font-weight: 500 !important;
  }

  .waeg-mobile-filters-content .waeg-sort-select-filter:focus {
    border-color: #e74c3c !important;
    box-shadow: 0 0 0 3px rgba(231,76,60,0.15) !important;
  }

  /* FILTRO DE PRECIO: badges */
  .waeg-mobile-filters-content .waeg-price-display {
    margin-bottom: 20px !important;
    gap: 10px !important;
  }

  .waeg-mobile-filters-content .waeg-price-badge {
    padding: 10px 14px !important;
    border-radius: 10px !important;
    background: #f8f9fa !important;
  }

  .waeg-mobile-filters-content .waeg-price-badge-label {
    font-size: 10px !important;
  }

  .waeg-mobile-filters-content .waeg-price-badge-value {
    font-size: 15px !important;
    font-weight: 700 !important;
  }

  /* FILTRO DE PRECIO: slider con mayor área táctil */
  .waeg-mobile-filters-content .waeg-price-slider-wrapper {
    height: 56px !important;
    padding: 0 10px !important;
    margin-top: 0 !important;
  }

  .waeg-mobile-filters-content .waeg-price-slider {
    top: 26px !important;
  }

  .waeg-mobile-filters-content .waeg-price-track {
    top: 26px !important;
    height: 6px !important;
  }

  /* Thumbs más grandes para dedo */
  .waeg-mobile-filters-content #waeg-price-min::-webkit-slider-thumb,
  .waeg-mobile-filters-content #waeg-price-max::-webkit-slider-thumb {
    width: 28px !important;
    height: 28px !important;
  }

  .waeg-mobile-filters-content #waeg-price-min::-moz-range-thumb,
  .waeg-mobile-filters-content #waeg-price-max::-moz-range-thumb {
    width: 28px !important;
    height: 28px !important;
  }

  /* ATRIBUTOS: forzar visible, términos como pills */
  .waeg-mobile-filters-content .waeg-attributes-section {
    padding: 14px 16px !important;
    background: #ffffff !important;
    border-radius: 12px !important;
    border: 1px solid #e4e8ed !important;
    box-shadow: 0 1px 5px rgba(0,0,0,0.07) !important;
    margin-bottom: 10px !important;
  }

  /* Cada grupo de atributo */
  .waeg-mobile-filters-content .waeg-attribute-filter {
    max-height: none !important;
    overflow: visible !important;
    border-bottom: 1px solid #f0f2f5 !important;
    padding-bottom: 12px !important;
    margin-bottom: 12px !important;
  }

  .waeg-mobile-filters-content .waeg-attribute-filter:last-of-type {
    border-bottom: none !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
  }

  /* Cabecera del atributo (Name) */
  .waeg-mobile-filters-content .waeg-attribute-name {
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #34495e !important;
    padding: 10px 12px !important;
    min-height: 44px !important;
    border-radius: 8px !important;
    background: #f0f2f5 !important;
    border: none !important;
    margin-bottom: 10px !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    cursor: pointer !important;
  }

  /* Ocultar el ícono toggle de la sección principal en el modal */
  .waeg-mobile-filters-content .waeg-toggle-icon {
    display: none !important;
  }

  /* Mostrar toggle por cada atributo individual */
  .waeg-mobile-filters-content .waeg-attribute-toggle {
    display: inline-block !important;
  }

  /* Cabecera del atributo clickable */
  .waeg-mobile-filters-content .waeg-attribute-name {
    cursor: pointer !important;
  }

  /* Contenedor de términos: respetar collapse */
  .waeg-mobile-filters-content .waeg-attribute-filter:not(.collapsed) .waeg-attribute-terms {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    max-height: none !important;
    overflow: visible !important;
    opacity: 1 !important;
    padding: 4px 0 !important;
  }

  .waeg-mobile-filters-content .waeg-attribute-filter.collapsed .waeg-attribute-terms {
    max-height: 0 !important;
    overflow: hidden !important;
    opacity: 0 !important;
    padding: 0 !important;
  }

  /* Cada término: pill horizontal */
  .waeg-mobile-filters-content .waeg-attribute-term-item {
    display: flex !important;
    align-items: center !important;
    gap: 5px !important;
    padding: 7px 12px !important;
    min-height: 36px !important;
    border-radius: 20px !important;
    background: #f0f2f5 !important;
    border: 1.5px solid #dde1e7 !important;
    flex: 0 0 auto !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    margin: 0 !important;
    transform: none !important;
  }

  .waeg-mobile-filters-content .waeg-attribute-term-item:hover,
  .waeg-mobile-filters-content .waeg-attribute-term-item:active {
    background: #e3e6ea !important;
    border-color: #b0b7c3 !important;
  }

  /* Pill seleccionado */
  .waeg-mobile-filters-content .waeg-attribute-term-item:has(.waeg-attribute-checkbox:checked) {
    background: #e74c3c !important;
    border-color: #c0392b !important;
    box-shadow: 0 2px 8px rgba(231,76,60,0.3) !important;
    transform: none !important;
  }

  .waeg-mobile-filters-content .waeg-attribute-term-item:has(.waeg-attribute-checkbox:checked) .waeg-attribute-term-label {
    color: #ffffff !important;
    font-weight: 700 !important;
  }

  .waeg-mobile-filters-content .waeg-attribute-term-item:has(.waeg-attribute-checkbox:checked) .waeg-attribute-count {
    background: rgba(255,255,255,0.25) !important;
    color: #ffffff !important;
  }

  /* Checkbox dentro del pill */
  .waeg-mobile-filters-content .waeg-attribute-checkbox {
    width: 14px !important;
    height: 14px !important;
    min-width: 14px !important;
    flex-shrink: 0 !important;
    accent-color: #fff !important;
  }

  /* Label del término */
  .waeg-mobile-filters-content .waeg-attribute-term-label {
    font-size: 13px !important;
    color: #495057 !important;
    font-weight: 500 !important;
    white-space: nowrap !important;
    width: auto !important;
    justify-content: flex-start !important;
    gap: 3px !important;
  }

  /* Contador */
  .waeg-mobile-filters-content .waeg-attribute-count {
    font-size: 10px !important;
    padding: 1px 5px !important;
    border-radius: 8px !important;
    background: rgba(0,0,0,0.08) !important;
    color: #6c757d !important;
    margin-left: 2px !important;
  }

  /* Botón limpiar atributos */
  .waeg-mobile-filters-content .waeg-clear-attributes-btn {
    width: 100% !important;
    min-height: 44px !important;
    font-size: 13px !important;
    border-radius: 10px !important;
    margin-top: 14px !important;
  }

  /* FOOTER de acción */
  .waeg-mobile-filters-footer {
    padding: 12px 16px !important;
    gap: 10px !important;
    background: #ffffff !important;
    border-top: 2px solid #e4e8ed !important;
  }

  .waeg-mobile-filters-footer .waeg-filter-btn {
    min-height: 50px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    border-radius: 12px !important;
    letter-spacing: 0.4px !important;
  }

  .waeg-mobile-filters-footer .waeg-clear-btn {
    background: #f0f2f5 !important;
    color: #495057 !important;
    border: 2px solid #dde1e7 !important;
    flex: 0 0 auto !important;
    min-width: 100px !important;
  }

  .waeg-mobile-filters-footer .waeg-clear-btn:hover,
  .waeg-mobile-filters-footer .waeg-clear-btn:active {
    background: #e3e6ea !important;
    border-color: #b0b7c3 !important;
  }

  .waeg-mobile-filters-footer .waeg-apply-btn {
    flex: 1 !important;
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%) !important;
    color: #ffffff !important;
    border: none !important;
    box-shadow: 0 3px 10px rgba(231,76,60,0.35) !important;
  }

  .waeg-mobile-filters-footer .waeg-apply-btn:hover,
  .waeg-mobile-filters-footer .waeg-apply-btn:active {
    background: linear-gradient(135deg, #c0392b 0%, #a93226 100%) !important;
  }

  /* BOTÓN FLOTANTE: no solapar el carrito */
  .waeg-float-filters-btn {
    bottom: 20px !important;
    left: 16px !important;
    right: auto !important;
    z-index: 9990 !important;
    padding: 12px 18px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    box-shadow: 0 4px 14px rgba(231,76,60,0.45) !important;
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%) !important;
  }
}

/* ============================================================
   WAEG — MEJORAS RESPONSIVAS GLOBALES (añadidas 2026-04)
   Estos bloques consolidan fixes de alto impacto:
   1. Base mobile — overflow-x, text-size, box-sizing
   2. Tablet (768-1023) — modal de filtros en vez de sidebar abierto
   3. Modal de producto — botones full-width en mobile
   4. iOS zoom — font-size 16px en todos los selects
   ============================================================ */

/* ── 1. Base mobile reset ──────────────────────────────────── */
html {
  -webkit-text-size-adjust: 100%; /* evita zoom de texto en iOS/Safari al rotar */
  text-size-adjust: 100%;
}

/* overflow-x solo en mobile — limitado a <html> para no romper position:fixed
   (aplicar a <body> también puede causar bugs en iOS Safari con position:fixed) */
@media (max-width: 1023px) {
  html {
    overflow-x: hidden;
  }
}

/* box-sizing unificado en todos los componentes WAEG */
.waeg-shop-wrapper *,
.waeg-filters-sidebar *,
.waeg-mobile-filters-modal *,
.waeg-product-modal *,
.waeg-cart-offcanvas * {
  box-sizing: border-box;
}

/* Flex-children: min-width:0 evita que un hijo desborde su contenedor flex */
.waeg-shop-wrapper,
.waeg-content-wrapper,
.waeg-main-content,
.waeg-filters-sidebar,
.waeg-modal-actions {
  min-width: 0;
}

/* ── 2. Tablet (768-1023px): usar modal de filtros ─────────── */
/*
 * En tablet el sidebar ocupa 100% de ancho arriba, consumiendo
 * mucho espacio vertical. Se oculta y se activa el botón flotante/modal
 * de la misma forma que en mobile.
 */
@media (min-width: 768px) and (max-width: 1023px) {

  /* Ocultar sidebar inline — se usa el modal */
  .waeg-shop-wrapper .waeg-filters-sidebar {
    display: none !important;
  }

  /* Mostrar el botón flotante de filtros */
  .waeg-float-filters-btn {
    display: flex !important;
  }

  /* Mostrar el botón inline de filtros (barra de ordenamiento) */
  .waeg-mobile-filters-btn {
    display: flex !important;
  }

  /* Wrapper en columna (productos debajo del area de controles) */
  .waeg-shop-wrapper {
    flex-direction: column !important;
    padding: 0 16px !important;
    gap: 16px !important;
  }

  /* Contenido a ancho completo */
  .waeg-content-wrapper {
    width: 100% !important;
    padding: 0 !important;
  }

  /* Panel modal más ancho en tablet */
  .waeg-mobile-filters-panel {
    width: 60% !important;
    max-width: 480px !important;
  }

  /* Grid 2 columnas en tablet estrecho / 3 en tablet amplio */
  #waeg-grid.waeg-grid,
  #waeg-grid.waeg-grid .products,
  #waeg-grid.waeg-grid ul.products {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)) !important;
    gap: 12px !important;
  }

  #waeg-grid.waeg-grid .product,
  #waeg-grid.waeg-grid li.product,
  #waeg-grid.waeg-grid .type-product {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 380px !important;
    max-height: none !important;
  }

  /* Botón flotante: izquierda (el carrito flota a la derecha) */
  .waeg-float-filters-btn {
    bottom: 20px !important;
    left: 16px !important;
    right: auto !important;
    z-index: 9990 !important;
  }
}

/* ── 3. Modal de producto: botones full-width en mobile ────── */
@media (max-width: 767px) {

  /* Actions en columna */
  .waeg-modal-actions {
    flex-direction: column !important;
    gap: 10px !important;
  }

  .waeg-modal-cart-button,
  .waeg-modal-whatsapp-button,
  .waeg-modal-view-button {
    width: 100% !important;
    justify-content: center !important;
    padding: 14px 20px !important;
    font-size: 15px !important;
  }

  /* Precio más compacto */
  .waeg-modal-price {
    font-size: 24px !important;
  }

  /* Imagen: altura razonable en teléfonos */
  .waeg-product-modal-image {
    min-height: 200px !important;
    max-height: 260px !important;
  }

  .waeg-product-modal-image img {
    max-height: 260px !important;
    object-fit: contain !important;
  }
}

/* ── 4. iOS font-size 16px en todos los selects/inputs ──────── */
/*
 * iOS hace zoom automático en cualquier input/select con font-size < 16px.
 * Aplicamos 16px a TODOS los controles de formulario del plugin.
 */
@media (max-width: 1023px) {
  .waeg-shop-wrapper select,
  .waeg-shop-wrapper input[type="text"],
  .waeg-shop-wrapper input[type="search"],
  .waeg-shop-wrapper input[type="number"],
  .waeg-mobile-filters-modal select,
  .waeg-mobile-filters-modal input[type="text"],
  .waeg-mobile-filters-modal input[type="number"],
  .waeg-product-modal input,
  .waeg-product-modal select {
    font-size: 16px !important;
  }
}

/* ── 5. Landscape en mobile: ajustes especiales ─────────────── */
@media (max-width: 767px) and (orientation: landscape) {

  /* Modal de producto: scroll interno para que quepa en pantalla corta */
  .waeg-product-modal-content {
    max-height: 95vh !important;
    overflow-y: auto !important;
  }

  /* Grid: 3 columnas en landscape para aprovechar el ancho extra */
  #waeg-grid.waeg-grid,
  #waeg-grid.waeg-grid .products,
  #waeg-grid.waeg-grid ul.products {
    grid-template-columns: repeat(3, 1fr) !important;
  }

  /* Panel de filtros no tan alto en landscape */
  .waeg-mobile-filters-panel {
    width: 75% !important;
    max-width: 400px !important;
  }
}

/* ── 6. Ultra-pequeño ≤ 360px (teléfonos compactos) ─────────── */
@media (max-width: 360px) {
  .waeg-shop-wrapper {
    padding: 0 8px !important;
  }

  #waeg-grid.waeg-grid,
  #waeg-grid.waeg-grid .products,
  #waeg-grid.waeg-grid ul.products {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 6px !important;
  }

  .waeg-mobile-filters-panel {
    width: 97% !important;
  }

  .waeg-product-modal-content {
    width: 98% !important;
  }

  /* Pagination: solo números, sin texto prev/next */
  .waeg-pagination-btn .waeg-pagination-text {
    display: none !important;
  }
}
