:root {
    --amy-mobile-site-header-height: 56px;
    --amy-mobile-site-header-z: 1040;
}

.amy-mobile-site-header,
.amy-mobile-menu-overlay,
.amy-mobile-offcanvas {
    display: none;
}

@media (max-width: 991.98px) {
    :root {
        --amy-mobile-site-header-height: 64px;
    }

    body:not(.editor_enable) #wrapwrap {
        padding-top: var(--amy-mobile-site-header-height);
    }

    body:not(.editor_enable) header#top {
        display: none !important;
    }

    body.amy-mobile-menu-open {
        overflow: hidden;
        touch-action: none;
    }

    .amy-mobile-site-header {
        align-items: center;
        background: #fff;
        border-bottom: 1px solid #e8e8e8;
        box-shadow: 0 1px 8px rgba(0, 0, 0, 0.06);
        display: grid;
        grid-template-columns: 52px minmax(0, 1fr) auto;
        height: var(--amy-mobile-site-header-height);
        left: 0;
        padding: 0 16px;
        position: fixed;
        right: 0;
        top: 0;
        z-index: var(--amy-mobile-site-header-z);
    }

    .amy-mobile-header-brand {
        align-items: center;
        display: inline-flex;
        justify-content: center;
        justify-self: center;
        line-height: 1;
        text-decoration: none;
        white-space: nowrap;
    }

    .amy-mobile-header-brand img {
        display: block;
        height: auto;
        max-height: 34px;
        max-width: 150px;
        object-fit: contain;
        width: auto;
    }

    .amy-mobile-header-actions {
        align-items: center;
        display: flex;
        gap: 6px;
        justify-self: end;
        list-style: none;
        margin: 0;
        padding: 0;
    }

    .amy-mobile-header-actions li {
        list-style: none;
        margin: 0;
        padding: 0;
    }

    .amy-mobile-header-actions .divider {
        display: none !important;
    }

    .amy-mobile-header-icon,
    .amy-mobile-menu-toggle {
        align-items: center;
        background: transparent;
        border: 0;
        color: #161616;
        display: inline-flex;
        height: 40px;
        justify-content: center;
        padding: 0;
        position: relative;
        text-decoration: none;
        width: 40px;
    }

    .amy-mobile-header-icon i,
    .amy-mobile-menu-toggle i {
        font-size: 18px;
        line-height: 1;
    }

    .amy-mobile-menu-toggle {
        justify-self: start;
    }

    .amy-mobile-header-icon-wrap {
        align-items: center;
        display: inline-flex;
        justify-content: center;
        position: relative;
    }

    .amy-mobile-header-badge {
        font-size: 0.62rem;
        line-height: 1;
        min-width: 16px;
        padding: 2px 4px;
        position: absolute;
        right: -7px;
        top: -7px;
    }

    .amy-mobile-menu-overlay {
        background: rgba(0, 0, 0, 0.42);
        bottom: 0;
        display: block;
        left: 0;
        opacity: 0;
        pointer-events: none;
        position: fixed;
        right: 0;
        top: 0;
        transition: opacity 280ms ease;
        z-index: calc(var(--amy-mobile-site-header-z) + 1);
    }

    .amy-mobile-offcanvas {
        background: #fff;
        bottom: 0;
        box-shadow: 8px 0 28px rgba(0, 0, 0, 0.18);
        display: flex;
        flex-direction: column;
        left: 0;
        max-width: 360px;
        position: fixed;
        top: 0;
        transform: translateX(-104%);
        transition: transform 280ms ease;
        width: 360px;
        z-index: calc(var(--amy-mobile-site-header-z) + 2);
    }

    body.amy-mobile-menu-open .amy-mobile-menu-overlay {
        opacity: 1;
        pointer-events: auto;
    }

    body.amy-mobile-menu-open .amy-mobile-offcanvas {
        transform: translateX(0);
    }

    .amy-mobile-offcanvas-header {
        align-items: center;
        border-bottom: 1px solid #ececec;
        display: flex;
        flex: 0 0 auto;
        height: var(--amy-mobile-site-header-height);
        justify-content: space-between;
        padding: 0 18px;
    }

    .amy-mobile-offcanvas-brand {
        align-items: center;
        display: inline-flex;
        text-decoration: none;
    }

    .amy-mobile-offcanvas-brand img {
        display: block;
        height: auto;
        max-height: 34px;
        max-width: 160px;
        object-fit: contain;
        width: auto;
    }

    .amy-mobile-offcanvas-close {
        align-items: center;
        background: transparent;
        border: 0;
        color: #202020;
        display: inline-flex;
        height: 40px;
        justify-content: center;
        padding: 0;
        width: 40px;
    }

    .amy-mobile-offcanvas-nav {
        flex: 1 1 auto;
        overflow-y: auto;
        padding: 8px 0 24px;
    }

    .amy-mobile-offcanvas-nav ul {
        list-style: none;
        margin: 0;
        padding: 0;
    }

    .amy-mobile-menu-item {
        border-bottom: 1px solid #f0f0f0;
        list-style: none;
        margin: 0;
        padding: 0;
    }

    .amy-mobile-menu-link {
        color: #1d1d1d;
        display: block;
        font-size: 0.96rem;
        font-weight: 500;
        padding: 15px 20px;
        text-decoration: none;
    }

    .amy-mobile-submenu {
        background: #f8f8f8;
        border: 0;
        margin: 0;
        padding: 0 0 8px;
        position: static;
        transform: none;
    }

    .amy-mobile-submenu .dropdown-item,
    .amy-mobile-submenu a {
        color: #333;
        display: block;
        padding: 11px 28px;
        text-decoration: none;
    }
}

@media (max-width: 767.98px) {
    :root {
        --amy-mobile-site-header-height: 56px;
    }

    .amy-mobile-site-header {
        grid-template-columns: 46px minmax(0, 1fr) auto;
        padding-left: 12px;
        padding-right: 12px;
    }

    .amy-mobile-header-brand img {
        max-height: 30px;
        max-width: 132px;
    }

    .amy-mobile-header-wishlist {
        display: none !important;
    }

    .amy-mobile-offcanvas {
        max-width: 320px;
        width: 85vw;
    }
}

@media (min-width: 992px) {
    .amy-mobile-site-header,
    .amy-mobile-menu-overlay,
    .amy-mobile-offcanvas {
        display: none !important;
    }
}
