/* Reeq Alnahl — mobile sliding menu */

.reeq-sliding-menu.slide-menu {
    position: fixed;
    top: 0;
    width: 100%;
    max-width: 100%;
    height: 100vh;
    height: 100dvh;
    background: #ffffff;
    color: #000;
    z-index: 1001;
    display: none;
    overflow: hidden;
    box-sizing: border-box;
    transition: transform 0.3s ease-in-out;
    will-change: transform;
}

.reeq-sliding-menu.slide-menu a {
    padding: 8px 15px;
}

.reeq-sliding-menu.slide-menu a.reeq-sliding-menu__link {
    font-size: 18px;
    font-weight: 400;
    color: #001529;
    display: flex;
}

.reeq-sliding-menu__panel {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 100dvh;
    background: #ffffff;
    overflow-y: auto;
}

.reeq-sliding-menu__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-direction: row-reverse;
    gap: 8px;
    flex-shrink: 0;
    padding: 14px 16px;
    background: white;
    position: sticky;
    top: 0;
    z-index: 100;
}

.reeq-sliding-menu__header a {
    padding: 0 !important;
}

.reeq-sliding-menu__header-side {
    display: flex;
    align-items: center;
    gap: 4px;
}

.reeq-sliding-menu__header-side:has(.sm-search-icon) {
    flex-direction: row-reverse;
}

.reeq-sliding-menu__header-side--actions {
    justify-content: flex-start;
}

.reeq-sliding-menu__logo {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    padding: 0 8px;
    text-decoration: none;
}

.reeq-sliding-menu__logo-img {
    display: block;
    width: auto;
    max-width: 140px;
    max-height: 48px;
    height: auto;
    object-fit: contain;
}

.reeq-sliding-menu__header-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px !important;
    height: 40px !important;
    padding: 0;
    border: none;
    background: transparent;
    color: #001529;
    text-decoration: none;
    cursor: pointer;
    position: relative;
}

.reeq-sliding-menu__header-btn .cart-badge {
    position: absolute;
    top: 4px;
    inset-inline-end: 2px;
}

.reeq-sliding-menu__menu-body {
    position: relative;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 40%;
    background: #fafafa;
    overflow: hidden;
}

.reeq-sliding-menu__track {
    display: flex;
    flex: 1;
    min-height: 0;
    align-items: stretch;
    transform: translate3d(0, 0, 0);
    transition: transform 0.3s ease-in-out;
    will-change: transform;
}

.reeq-sliding-menu__stage {
    flex: 0 0 100%;
    width: 100%;
    min-width: 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #fafafa;
    box-sizing: border-box;
}

.reeq-sliding-menu__list {
    margin: 0;
    padding: 8px 0 0;
    list-style: none;
    flex: 1;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.reeq-sliding-menu .slide-menu-ul-li,
.reeq-sliding-menu__item {
    border-top: none;
}

.reeq-sliding-menu__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    padding: 14px 20px;
    text-decoration: none;
    color: #001529;
    background: transparent;
    border: none;
    box-sizing: border-box;
}

.reeq-sliding-menu__link:hover,
.reeq-sliding-menu__link:focus {
    color: #001529;
    background: #fafafa;
    text-decoration: none;
}

.reeq-sliding-menu__link-text {
    flex: 1;
    text-align: start;
    line-height: 1.4;
}

.reeq-sliding-menu__chevron {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    line-height: 0;
}

/* Hide nested lists in place — panels open via JS track only */
.reeq-sliding-menu__item--has-children>ul {
    display: none !important;
}

.reeq-sliding-menu.slide-menu ul ul {
    position: static !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
}

.reeq-sliding-menu__stage>.reeq-sliding-menu__submenu {
    display: flex !important;
    flex-direction: column;
}

/* Back: return to parent — LTR chevron points left, RTL points right */
html[dir="ltr"] .reeq-sliding-menu__chevron--back svg {
    transform: scaleX(-1);
}

.reeq-sliding-menu__submenu {
    margin: 0;
    padding: 0;
    list-style: none;
    flex: 1;
    min-height: 0;
    width: 100%;
    background: #ffffff;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.reeq-sliding-menu__back-item {
    list-style: none;
}

.reeq-sliding-menu__back {
    border: none;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    font-weight: 500;
}

.reeq-sliding-menu__back:hover,
.reeq-sliding-menu__back:focus {
    background: #fafafa;
    outline: none;
}

.reeq-sliding-menu__menu-body--submenu-open .reeq-sliding-menu__locale {
    display: none;
}

.reeq-sliding-menu__item--has-children>.reeq-sliding-menu__link {
    cursor: pointer;
}

.reeq-sliding-menu__submenu>.reeq-sliding-menu__item>.reeq-sliding-menu__link {
    font-size: 18px;
    padding-inline-start: 20px;
}

.reeq-sliding-menu__submenu .reeq-sliding-menu__submenu>.reeq-sliding-menu__item>.reeq-sliding-menu__link {
    padding-inline-start: 32px;
    font-size: 15px;
}

.reeq-sliding-menu__locale {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-direction: row-reverse;
    gap: 10px;
    width: 100%;
    flex-shrink: 0;
    margin: 8px 0 16px;
    padding: 14px 15px;
    border: none;
    background: transparent;
    color: #000;
    font-size: 18px;
    font-weight: 400;
    text-align: start;
    cursor: pointer;
}

.reeq-sliding-menu__locale:hover,
.reeq-sliding-menu__locale:focus {
    background: #fafafa;
    outline: none;
}

.reeq-sliding-menu__locale-icon {
    display: inline-flex;
    flex-shrink: 0;
    line-height: 0;
}

.reeq-sliding-menu__promo {
    flex: 1;
    width: 100%;
    line-height: 0;
}

.reeq-sliding-menu__promo-link {
    display: block;
    width: 100%;
    line-height: 0;
}

.reeq-sliding-menu__promo-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.reeq-sliding-menu-overlay,
#sidenav-overlay.reeq-sliding-menu-overlay {
    z-index: 1000;
}

body.sidenav-open .reeq-sliding-menu-overlay,
body.sidenav-open #sidenav-overlay {
    width: 100%;
}

@media (min-width: 992px) {
    .reeq-sliding-menu.slide-menu {
        max-width: 420px;
    }
}