/* Mobile First */
@media (min-width: 768px) {
    .product-list-card .product-list-image {
        height: 240px !important;
    }

    .product-list-image a img {
        height: 100% !important;
        width: auto !important;
    }

    .main-navbar .navbar-nav.ms-auto .nav-item:first-child {
        margin-right: clamp(0.0625rem, -6.2459rem + 7.7049vw, 3rem) !important;
    }
}

@media (min-width: 940px) {
    .category-box-wrapper {
        width: calc(100% / 8) !important;
    }
}

@media (min-width: 992px) {
    .desktop-impressline-valories .col:last-child {
        display: none !important;
    }
}

@media (min-width: 1024px) {

    .main-navbar .nav-link,
    .main-navbar .dropdown-item,
    .tab-links,
    a.dropdown-megamenu-list-link {
        font-size: clamp(12px, calc(11px + (20 - 12) * ((100vw - 400px) / (2500 - 400))), 14px) !important;
    }
}

@media (min-width: 1201px) {
    .categories-grid-container {
        grid-auto-rows: calc((100% - 0.5rem) / 2);
    }
}

@media (min-width: 1440px) {
    /**------------------------------------------**/
}

/* Desktop First */
@media (max-width: 1324px) {
    .main-navbar .navbar-nav.ms-auto {
        display: none;
    }

    /*.main-navbar .navbar-nav:first-child .nav-item:nth-last-of-type(-n+2) {
        display: flex !important;
    }*/

}

@media (max-width: 1200px) {
    .categories-grid-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1023px) {

    .main-navbar .nav-link,
    .main-navbar .dropdown-item,
    .tab-links,
    a.dropdown-megamenu-list-link {
        font-size: 12px !important;
    }
}


@media (max-width: 991px) {
    .sticky-header {
        position: sticky;
        top: 0;
        z-index: 1020;
        border: 1px solid rgba(var(--bs-light-rgb), 1);
    }

    .navbar-logo {
        max-width: 180px;
        max-height: auto;
    }

}

@media (max-width: 940px) {
    .main-navbar .navbar-nav:first-child {
        flex-wrap: nowrap;
    }
}

@media (max-width: 768px) {
    .categories-grid-container {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(4, auto);
    }

    .redes a,
    .btn-mas label {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 767px) {
    .whatsappme {
        bottom: 50px;
        left: 0px;
    }

    .navbar-logo img {
        max-height: 40px;
        width: auto;
    }

    .scroll-xs {
        overflow-x: auto;
    }

    .list-item {
        display: table-cell;
    }

    .category-box-wrapper {
        width: calc(100% / 6) !important;
    }
}

@media (max-width: 575.98px) {
    .modal-fullscreen-sm-down {
        width: 100%;
        max-width: none;
        height: 100%;
        margin: 0;
    }

    .category-box-wrapper {
        width: calc(100% / 4) !important;
    }
}