/* MOBILE & Tablet */
@media (max-width:1023px) {
    .hide-on-mobile-tablet{
        display: none;
    }

    .header{
        position: fixed;
        z-index: 10;
        top: 0;
        right: 0;
        left: 0;
    }

    .header__cart-list {
        position: fixed;
        top: var(--header-height);
        width: 100%;
        right: 0;
        padding: 0 calc((100% - 644px) / 2);
    }

    .header__cart-list::after{
        display: none;
    }

    .header__sort-bar{
        display: flex;
    }

    .app__container{
        margin-top: calc(var(--header-height) + var(--header-sort-bar-height));
    }

    .app__content {
        padding-top: 8px;
    }

    .mobile-category{
        display: block;
    }


}

/* tablet */
@media (min-width:740px) and (max-width:1023px){

    :root{
        --navbar-height:0px;
        --header-height:68px;
    }

    .hide-on-tablet{
        display: none;
    }

    .header__cart {
        width: 80px;
        text-align: right;
    }

    .header__cart-list {

    }
}

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

    :root{
        --navbar-height:0px;
        --header-height:54px;
    }

    .hide-on-mobile{
        display: none;
    }

    .header-with-search{
        justify-content: space-between;
    }

    .header__logo,
    .header__cart{
        width: unset;
    }

    .header__logo-img{
        width: 120px;
        margin-right: 20px;
    }

    .header__search {
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        height: 46px;
        box-shadow: 1px 1px rgba(0, 0, 0, 0.1);
        z-index: 1;
        padding: 0 16px;
        animation: mobileSearchDropDown linear 0.2s;
        display: none;
    }

    .header__mobile-search{
        display: block;
    }

    .pagination-item__link{
        --height:28px;
        font-size: 1.6rem;
        min-width: 36px;
    }

    .pagination-item{
        margin: 0;
    }

    .app__content{
        margin: 0 4px;
    }

    @keyframes mobileSearchDropDown {
        from {
            opacity: 0;
            /* top: calc(var(--header-height) / 2); */
            height: 0;
        }

        to {
            opacity: 1;
            /* top: var(--header-height); */
            height: 46px;
        }
    }

    @keyframes barSlideIn {
        from{
            right: -300px;
        }

        to{
            right: 0;
        }
    }

    .header__search-option{
        top: calc(120% + 3px);
    }

    .header__search-history{
        position: fixed;
        width: 100%;
        top: calc(var(--header-height) + var(--header-sort-bar-height) );
        left: 0;
        right: 0;
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    }
    
    .footer__content{
        padding: 16px 16px;
    }

    .footer__heading{
        text-align: center;
    }

    .footer-item__link{
        justify-content: center;
    }

    .footer-download{
        justify-content: center;
    }

    .footer-download__apps{
        flex: unset;
    }

    .footer-download__apps-link{
        display: block;
        padding: 6px 8px;
    }
}

