/* ════════════════════════════════════════════════════════════════════
   Correcciones globales de layout (todas las vistas y campañas).
   Se carga después de main.css; usa "body …" + !important para ganarle a
   los <style> inline de las plantillas de home (page-home-*.php).
   ════════════════════════════════════════════════════════════════════ */

/* 1) Etiqueta de categoría en las cards: nunca se sale de la tarjeta (corta con "…") */
.product-meta-badges { min-width: 0; max-width: 100%; }
body .product-meta-badges .badge {
    display: block !important; max-width: 100%; min-width: 0;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
body .product-meta-badges .badge i { margin-right: .25rem; }

/* 2) Flechas de los carruseles de la home en celular/tablet: juntas ARRIBA a la derecha,
      fuera del área de las tarjetas (antes flotaban sobre el botón "Agregar") */
@media (max-width: 991.98px) {
    body .swiper.ht-swiper-home { padding: 58px .25rem 14px !important; }
    body .swiper.ht-swiper-home .swiper-button-prev,
    body .swiper.ht-swiper-home .swiper-button-next {
        top: 6px !important; bottom: auto !important; left: auto !important;
        width: 42px !important; height: 42px !important; margin: 0 !important;
        transform: none !important;
    }
    body .swiper.ht-swiper-home .swiper-button-prev { right: 60px !important; }
    body .swiper.ht-swiper-home .swiper-button-next { right: 8px !important; }
    body .swiper.ht-swiper-home .swiper-button-prev:hover,
    body .swiper.ht-swiper-home .swiper-button-next:hover { transform: none !important; }
    body .swiper.ht-swiper-home .swiper-button-prev::after,
    body .swiper.ht-swiper-home .swiper-button-next::after { font-size: 1rem !important; }
}

/* 3) "Elegí por edad" en celular: grilla 2×2 (antes carrusel con tarjetas cortadas) */
@media (max-width: 767.98px) {
    body .ht-edades-section .row {
        flex-wrap: wrap !important; overflow: visible !important; scroll-snap-type: none !important;
        margin: 0 -.4rem !important; padding: 1rem 0 0 !important; row-gap: 1.4rem;
        background: none !important;
    }
    body .ht-edades-section .row > [class*="col-"] {
        flex: 0 0 50% !important; max-width: 50% !important; padding: 0 .4rem !important;
    }
    body .ht-edades-section .ht-edad-card h3 { font-size: 1.1rem !important; }
    body .ht-edades-section .ht-edad-card p { font-size: .76rem !important; line-height: 1.3; margin-bottom: .6rem !important; }
    body .ht-edades-section .ht-edad-card .btn { font-size: .78rem !important; padding: .45rem .5rem !important; }
}
