﻿

/* Moblie & Tablet */
@media (max-width: 63.9375em) {
    .hide-on-mobile-tablet {
        display: none;
    }

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

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

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

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

    .header__sort-bar {
        display: flex;
    }

    .app__content {
        padding-top: 8px;
    }

    .mobile-category {
        display: block;
    }
}

/* tablet */
@media (min-width: 46.25em) and (max-width: 63.9375em) {

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

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

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

/* Mobile */
@media (max-width: 46.1875em) {

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

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

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

    .header__cart,
    .header__logo {
        width: unset;
    }

    .header__search {
        position: fixed;
        top: var(--header-heigth);
        left: 0;
        right: 0;
        height: 46px;
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
        z-index: 1;
        padding: 0 16px;
        animation: mobileSearchSideIn linear 0.3s;
    }

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

    .header__molbie-search {
        display: flex;
    }

    .pagination-item {
        margin: 0;
    }

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

    .app__content {
        margin: 0 4px;
    }

    .header__logo-img {
        width: 110px;
    }

    .footer__content {
        padding: 0 16px;
    }

    .footer__heading {
        text-align: center;
    }

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

    .footer__download-apps {
        flex: unset;
    }

    .footer__download-qr {
        border: none;
    }

    .footer__download-apps-link {
        display: block;
        padding: 6px 8px;
    }

    @keyframes mobileSearchSideIn {
        from {
            opacity: 0;
            top: calc(var(--header-heigth) / 2);
        }

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