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

    .app__header {
        overflow: hidden;
    }

    .app__header {
        position: fixed;
        top: 0;
        right: 0;
        left: 0;
        z-index: 20;
    }

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

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

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

    .header__sort-bar {
        display: flex;
    }

    .app__content {
        padding-top: 8px;
    }

    .header__cart-wrap {
        -webkit-tap-highlight-color: transparent;
    }

    .mobile-category {
        display: block;
    }
}

/* Tablet */
@media (min-width: 740px) and (max-width: 1023px) {
    :root {
        --header-height: 68px;
        --navbar-height: 0px;
    }

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

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

    .header__cart-listItem {
        max-height: 32vh;
    }

    .pagination-item {
        margin: 0px 6px;
    }
}

/* Mobile */
@media (max-width: 739px) {
    :root {
        --header-height: 54px;
        --navbar-height: 0px;
    }

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

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

    .header__cart,
    .header__logo {
        width: unset;
        margin: 0;
    }

    .header__search {
        display: none;
        position: fixed;
        top: var(--header-height);
        width: 100%;
        z-index: 1;
        height: 46px;
        padding: 0 16px;
        box-shadow: 0 1px 2px rgb(0 0 0 / 5%);
        animation: searchmobileSideIn linear 0.3s;
    }

    .header__search-history {
        position: fixed;
        width: 100%;
        top: calc(var(--header-height) + var(--header-sort-bar-height));
        box-shadow: 0 1px 2px rgb(0 0 0 / 5%);
    }

    .header__logo-img {
        width: 108px;
    }

    .pagination-item {
        margin: 0;
    }

    .pagination-item--link {
        --height: 28px;
        font-size: 1.6rem;
        min-width: 28px;
        height: var(--height);
    }

    .app__content {
        margin: 0 4px;
    }

    .header__mobile-search {
        display: block;
    }

    .footer__heading {
        text-align: center;
    }

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

    .footer__download {
        justify-content: center;
    }

    .footer__download-apps-link {
        padding: 4px 0;
    }

    @keyframes searchmobileSideIn {
        from {
            opacity: 0;
            top: calc(var(--header-height) / 3);
        }

        to {
            opacity: 1;
            top: var(--header-height);
        }
    }
}