/* ============================================================
   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;
  }
  
  /* 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 al final de la card - WHATSAPP Y CARRITO */
  .waeg-columns-4 .waeg-grid .product .waeg-mobile-button-row {
    display: flex !important;
    flex-direction: column !important;
    gap: 3px !important; /* Reducido de 4px a 3px */
    width: calc(100% - 8px) !important; /* REDUCIR ancho para dejar margen (4px cada lado) */
    max-width: 172px !important; /* Máximo ancho para cards de 180px (180-8=172) */
    margin-top: auto !important; /* AUTO para empujar al fondo de la card */
    margin-bottom: 0 !important;
    margin-left: 4px !important; /* Margen izquierdo 4px */
    margin-right: 4px !important; /* Margen derecho 4px */
    padding: 0 0 6px 0 !important; /* Padding bottom reducido de 8px a 6px */
    box-sizing: border-box !important;
    align-items: stretch !important;
    justify-content: flex-end !important; /* Alinear al final */
    flex-shrink: 0 !important;
    background: transparent !important;
    border-top: none !important;
    order: 999 !important; /* Forzar al final con order */
  }
  
  /* Botón de WhatsApp - ARRIBA */
  .waeg-columns-4 .waeg-grid .product .waeg-mobile-button-row .waeg-btn-whatsapp {
    padding: 6px 8px !important; /* Reducido de 10px a 6px vertical, 8px horizontal */
    margin: 0 !important;
    width: 100% !important;
    flex: 0 0 auto !important; /* No crecer ni reducir */
    min-width: 0 !important;
    min-height: 28px !important; /* Reducido de 40px a 28px */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important; /* Reducido de 6px a 4px */
    box-sizing: border-box !important;
    border-radius: 6px !important; /* Reducido de 8px a 6px */
    background: #25D366 !important;
    border: none !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    text-decoration: none !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 - ABAJO */
  .waeg-columns-4 .waeg-grid .product .waeg-mobile-button-row .waeg-btn-cart {
    padding: 6px 8px !important; /* Reducido de 10px a 6px vertical, 8px horizontal */
    margin: 0 !important;
    width: 100% !important;
    flex: 0 0 auto !important; /* No crecer ni reducir */
    min-width: 0 !important;
    min-height: 28px !important; /* Reducido de 40px a 28px */
    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 - WHATSAPP Y CARRITO */
  .waeg-grid .product .waeg-mobile-button-row {
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
    width: 100% !important;
    margin-top: auto !important; /* Empujar al fondo */
    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;
  }
  
  /* Botón de WhatsApp - ARRIBA */
  .waeg-grid .product .waeg-mobile-button-row .waeg-btn-whatsapp {
    padding: 10px !important;
    margin: 0 !important;
    width: 100% !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;
  }
  
  /* 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 - ABAJO */
  .waeg-grid .product .waeg-mobile-button-row .waeg-btn-cart {
    padding: 10px !important;
    margin: 0 !important;
    width: 100% !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: 0 0 10px 10px !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: column !important;
    gap: 3px !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;
  }
}

/* ── 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: none !important;
    height: auto !important;
    max-height: none !important;
    overflow-y: visible !important;
    box-shadow: none !important;
    background: transparent !important;
    padding: 0 !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;
  }
  
  /* Ocultar sidebar de filtros en mobile */
  .waeg-shop-wrapper .waeg-filters-sidebar {
    position: fixed !important;
    top: 0 !important;
    left: -100% !important;
    width: 85% !important;
    max-width: 320px !important;
    height: 100vh !important;
    max-height: 100vh !important;
    z-index: 9999 !important;
    transition: left 0.3s ease !important;
    overflow-y: auto !important;
    background: #f8f9fa !important;
    box-shadow: 2px 0 10px rgba(0,0,0,0.2) !important;
    padding: 20px 15px !important;
  }
  
  /* Estilos mejorados para secciones de filtros en mobile */
  @media (max-width: 767px) {
    .waeg-filters-sidebar .waeg-sidebar-section {
      margin-bottom: 20px;
      padding-bottom: 15px;
      border-bottom: 1px solid #e0e0e0;
    }
    
    .waeg-filters-sidebar .waeg-sidebar-section:last-child {
      border-bottom: none;
    }
    
    .waeg-filters-sidebar .waeg-sidebar-title {
      font-size: 16px;
      font-weight: 600;
      margin-bottom: 12px;
      color: #333;
    }
    
    .waeg-filters-sidebar select,
    .waeg-filters-sidebar input {
      width: 100%;
      padding: 10px;
      font-size: 14px;
      border: 1px solid #ddd;
      border-radius: 4px;
    }
    
    .waeg-filters-sidebar label {
      display: block;
      padding: 8px 0;
      cursor: pointer;
    }
  }
  
  /* Mostrar filtros cuando está activo */
  .waeg-shop-wrapper .waeg-filters-sidebar.active {
    left: 0 !important;
  }
  
  /* Overlay oscuro */
  body.filters-open::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 9998;
  }
  
  /* Grid 1 columna en mobile */
  #waeg-grid.waeg-grid,
  #waeg-grid.waeg-grid .products,
  #waeg-grid.waeg-grid ul.products {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 6px !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: 400px !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; /* Firefox */
  }
  
  .waeg-shop-wrapper .waeg-categories-list::-webkit-scrollbar {
    display: none; /* Chrome, Safari */
  }
  
  .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 */
  .waeg-search-input,
  .waeg-sort-select,
  .waeg-items-select {
    font-size: 16px !important; /* Evitar zoom en iOS */
    padding: 12px 16px !important;
    min-height: 44px !important; /* Touch target */
  }
  
  /* Botones más grandes */
  .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;
  }
}
