@media (max-width: 1024px) {

    .BannersFull ._banner-text ._contents {
        width: 100%;
    }

    .BannersFull ._banner-text ._contents {
        width: 100%;
        padding-top: 0;
    }

    .banner-texto .block {
        padding: 1.5rem 1rem;
    }

    .banner-texto .block h1 {
        font-size: 1.7rem;
        margin-top: 0;
    }

    .banner-texto h3 {
        font-size: 2rem;
        margin-bottom: 1rem;
        text-align: center;
    }

    .banner-texto {
        text-align: center !important;
    }

    .banner-texto p {
        margin-bottom: 2rem;
    }

    .TopBarRight {
        width: 100%;
    }

}

@media (min-width: 700px) and (max-width: 1024px) {

    .BannersFull .slick-slide {
        min-height: 900px;
    }

    .BannersFull .box-banner {
        height: calc(100% - 500px);
    }
}

@media (max-width: 700px) {

    .BannersFull .slick-slide {
        min-height: 700px;
    }

    .BannersFull .box-banner {
        height: calc(100% - 500px);
    }

}

/* Cotizador Amarillo */
@media (max-width: 1024px) {

    .floating-cart {
        left: 0;
        right: 0;
    }

    .floating-cart .gris h5 {
        line-height: 1.2;
        padding-top: 1rem;
        padding-bottom: 1rem;
    }

}

@media (max-width: 700px) {

    .producto-cart {
        position: relative;
    }

    .producto-cart .col-1 {
        position: absolute;
        right: 1rem;
        top: 0;
    }

}

/* Catalogo Producto */

@media (max-width: 1024px) {

    .product-aside {
        position: fixed;
        top: 0 !important;
        left: 0;
        bottom: 0;
        transform: translateX(-100%);
        z-index: 99 !important;
        -webkit-transition: all 0.2s ease-in-out;
    }

    .product-aside.active {
        transform: translateX(0);

    }

    .panel-productos {
        width: 100%;
    }

    .buttons-mobile {
        display: block;
        position: fixed;
        width: 100%;
        background-color: #fff;
        z-index: 10;
    }

    .panel-productos {
        padding-top: 60px;
    }

    .panel-productos-header .ordenar {
        display: none;
    }

    .precio-warning {
        margin-bottom: 1rem;
    }

    .CatalogCategory {
        margin-top: 0;
    }

}

@media (max-width: 767px) {

    .panel-productos-items .col-6 {
        padding-left: .7rem;
        padding-right: .7rem;
    }

    .product-preview .data .title {
        width: 100%;
        min-height: 35px;
    }

    .product-preview .data .price {
        width: 100%;
    }

}

/* Nosotros */

@media (max-width: 767px) {
    #content-acerca h3 {
        margin-top: 0;
    }

    #content-acerca .ul-wide ul {
        padding-left: 5px;
    }

    #content-acerca .ul-wide ul li::before {
        float: left;
        display: inline-block;
    }

    #content-acerca ul li {
        width: 100%;
    }

    #product-view {
        background: transparent;
    }

    .product-view .PriceSection,
    .product-view .ProdDetails {
        padding-top: 1rem;
        padding-left: 10px;
        padding-right: 10px;
    }

    .container-fluid.mobile-view {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
    }

    .mobile-view .mobile-product {
        background-color: #f4f4f4;

    }
}

@media(max-width: 900px) {
    .gHome {
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        grid-gap: 3rem
    }

    .gHome ._banner-title {
        background-color: #f4f4f4;
    }

    .BannersFull ._bannersbox {
        min-height: 300px;
    }

}

@media(max-width: 700px) {
    .BannersFull {
        margin-bottom: -100px;
    }
}

/* ===== OVERRIDES PANTALLAS GRANDES (≥ 1400px) ===== */
@media (min-width: 1400px) {

    /* Footer — corregir ancho fijo 965px */
    footer ._contents {
        width: 90%;
        max-width: 1400px;
    }

    .FooterLinksFollowUs {
        width: auto;
        flex: 1;
    }

    .FooterLinks {
        width: auto;
        flex: 1;
    }

    .FollowUs {
        width: auto;
        min-width: 192px;
    }

    /* HalfBanners — corregir ancho fijo 1216px */
    .HalfBanners {
        width: 100%;
        max-width: 1400px;
        margin: 0 auto;
    }

    /* Banner home — limitar ancho texto */
    .banner-texto .block {
        padding: 4rem;
    }
}

/* ===== PANTALLAS MUY GRANDES (≥ 1920px) ===== */
@media (min-width: 1920px) {
    footer ._contents {
        max-width: 1600px;
    }

    .HalfBanners {
        max-width: 1600px;
    }

    .banner-texto h3 {
        font-size: 3rem;
    }
}

/* ===== GRID DE PRODUCTOS — BREAKPOINTS TABLET ===== */
/* 2 columnas en tablet pequeño (576–767px) */
@media (min-width: 576px) and (max-width: 767px) {
    #product-list .product-item {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

/* 3 columnas en desktop LG pero dentro de col-md-10 */
@media (min-width: 992px) and (max-width: 1199px) {
    #product-list .product-item {
        flex: 0 0 33.333%;
        max-width: 33.333%;
    }
}

/* ===== SECCIÓN "LO MÁS VENDIDO" - SEPARADAS DESKTOP/MOBILE ===== */

/* DEFAULT: Mostrar desktop, ocultar mobile */
.lo-mas-vendido-desktop {
    display: block !important;
}

.lo-mas-vendido-mobile {
    display: none !important;
}

/* Prevenir scroll horizontal en la página */
body {
    overflow-x: hidden;
}

/* MOBILE VIEWPORT: max-width 768px */
@media (max-width: 768px) {

    /* Ocultar versión desktop completamente */
    .lo-mas-vendido-desktop {
        display: none !important;
        visibility: hidden !important;
        height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* Mostrar versión mobile */
    .lo-mas-vendido-mobile {
        display: block !important;
        visibility: visible !important;
        height: auto !important;
        padding: 40px 0 !important;
        text-align: center !important;
    }

    /* Carrusel mobile - contenedor */
    .mobile-carousel {
        width: 100% !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        gap: 12px !important;
        padding: 15px !important;
        margin: 0 !important;
        scroll-behavior: smooth !important;
        -webkit-overflow-scrolling: touch !important;
        scroll-snap-type: x mandatory !important;
    }

    /* Scrollbar personalizado */
    .mobile-carousel::-webkit-scrollbar {
        height: 6px;
    }

    .mobile-carousel::-webkit-scrollbar-track {
        background: #f1f1f1;
    }

    .mobile-carousel::-webkit-scrollbar-thumb {
        background: #FFD422;
        border-radius: 3px;
    }

    /* Items del carrusel */
    .mobile-carousel-item {
        flex: 0 0 140px !important;
        min-width: 140px !important;
        max-width: 140px !important;
        width: 140px !important;
        padding: 0 !important;
        text-align: center !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        scroll-snap-align: center !important;
    }

    .mobile-carousel-item a {
        display: block !important;
        text-decoration: none !important;
        color: inherit !important;
        text-align: center !important;
        width: 100% !important;
    }

    .mobile-carousel-item img {
        width: 100% !important;
        height: auto !important;
        max-height: 120px !important;
        margin-bottom: 8px !important;
    }

    .mobile-carousel-item p {
        font-size: 0.85rem !important;
        margin: 0 !important;
        word-break: break-word !important;
        line-height: 1.2 !important;
    }
}

/* DESKTOP VIEWPORT: min-width 769px */
@media (min-width: 769px) {

    /* Mostrar versión desktop */
    .lo-mas-vendido-desktop {
        display: block !important;
        visibility: visible !important;
    }

    /* Ocultar versión mobile completamente */
    .lo-mas-vendido-mobile {
        display: none !important;
        visibility: hidden !important;
        height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
    }
}