/* below large screens */
@media screen and (max-width: 1024px) {
    nav .right .search {
        display: none;
    }

    header .search-mobile.show {
        display: block;
        margin: 0 1rem;
    }

    .search-mobile .close-search {
        text-align: end;
        margin-bottom: .5rem;
    }

    .search-mobile .close-search button {
        display: inline-flex;
        align-items: center;
        gap: .5rem;
    }

    .search-mobile .close-search button svg {
        width: 1.25rem;
    }

    nav .right .show-search-btn {
        display: block;
    }

    /* HERO */
    #hero .carousel-content .left h1 {
        font-size: 2.5rem;
    }

    #hero .carousel-content .right .hero-helmet {
        max-width: 270px;
    }

    /* BEST SELLERES */
    .best-sellers img {
        transform: scale(0.8);
    }
}

/* below medium screens */
@media screen and (max-width: 768px) {
    nav .logo {
        height: 1.2rem;
    }

    nav .menu {
        background-color: white;
        display: none;
    }

    nav .menu.is-active {
        position: absolute;
        display: block;
        top: 100%;
        left: 0;
        right: 0;
    }
    
    nav .menu.is-active > li:not(:last-child) {
        border-bottom: 1px solid #cacaca;
    }
    
    nav .menu.is-active > li:not(:last-child) > a {
        border-right: none;
    }
    
    nav .menu ul {
        position: static;
    }

    nav .menu ul li {
        padding: .25rem 0;
        transition: background-color 0.3s;
    }
    
    nav .menu ul li img {
        width: 1.25rem;
    }

    .hamburger {
        display: block;
    }

    /* HERO */
    #hero .carousel-item .carousel-content .row {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }

    #hero .carousel-item .carousel-content .row .left,
    #hero .carousel-item .carousel-content .row .right {
        text-align: center;
    }

    /* PRODUCTS */
    #products .card-container{
        flex: 1 !important;
        transition: flex 0.3s ease-in-out;
        margin-bottom: .75rem;
    }
    
    #products .card-container:hover {
        flex: 1 0 0 !important;
    }
}

/* below small screens */
@media screen and (max-width: 576px) {
    .carousel-content .bottom-dropdown {
        display: inline-flex;
    }

    .carousel-content .buttons {
        display: none !important;
    }

    #products .container > .row {
        flex-direction: column;
    }

    .best-sellers {
        flex-direction: column;
    }

    .best-sellers .content {
        justify-content: center;
        align-items: center;
        text-align: center;
    }
}