/* AJ Fashion Mart — mobile menu drawer (replaces Astra's mobile dropdown). */

/* Hide Astra's own mobile dropdown; its toggle button now opens the drawer. */
.ast-header-break-point .ast-mobile-header-content,
.ast-header-break-point .ast-mobile-header-wrap .main-header-bar-navigation { display: none !important; }
#ast-mobile-header .menu-toggle { border: 0 !important; outline-offset: 2px; background: transparent !important; }
/* Show only the hamburger icon; the drawer has its own close button. */
#ast-mobile-header .menu-toggle .ahfb-svg-iconset:has(.ast-close-svg),
#ast-mobile-header .menu-toggle svg.ast-close-svg { display: none !important; }
#ast-mobile-header .menu-toggle .ahfb-svg-iconset:has(.ast-menu-svg),
#ast-mobile-header .menu-toggle svg.ast-menu-svg { display: inline-flex !important; }

.aj-drawer { position: fixed; inset: 0; z-index: 99999; visibility: hidden; pointer-events: none; }
.aj-drawer.is-open { visibility: visible; pointer-events: auto; }
.aj-drawer__backdrop { position: absolute; inset: 0; background: rgb(42 21 48 / .45); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); opacity: 0; transition: opacity .35s ease; }
.aj-drawer.is-open .aj-drawer__backdrop { opacity: 1; }
.aj-drawer__panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(88vw, 400px); background: #f8f6f2; display: flex; flex-direction: column; transform: translateX(100%); transition: transform .42s cubic-bezier(.22, 1, .36, 1); box-shadow: -30px 0 60px -30px rgb(42 21 48 / .5); outline: none; }
.aj-drawer.is-open .aj-drawer__panel { transform: none; }

.aj-drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px 14px 20px; border-bottom: 1px solid var(--aj-stone); background: #fff; }
.aj-drawer__logo img { height: 34px; width: auto; display: block; }
.aj-drawer__close { width: 42px; height: 42px; border-radius: 50% !important; border: 1px solid var(--aj-stone) !important; background: #fff !important; color: var(--aj-ink) !important; display: grid; place-items: center; padding: 0 !important; cursor: pointer; }
.aj-drawer__close:hover { background: var(--aj-ink) !important; color: #fff !important; }

.aj-drawer__body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 18px 20px 24px; -webkit-overflow-scrolling: touch; }

.aj-drawer__search { position: relative; margin: 0 0 14px; }
.aj-drawer__search .aj-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--aj-muted); pointer-events: none; }
.aj-drawer__search input[type="search"] { width: 100%; height: 46px; padding: 0 14px 0 42px !important; border: 1px solid var(--aj-stone) !important; border-radius: 999px !important; background: #fff !important; font: 400 14px var(--aj-sans); color: var(--aj-ink); box-shadow: none !important; }
.aj-drawer__search input[type="search"]:focus { border-color: var(--aj-gold) !important; outline: none; }

.aj-drawer__quick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 0 22px; }
.aj-drawer__quick a { display: flex; align-items: center; gap: 9px; padding: 12px 14px; border-radius: 12px; background: #fff; border: 1px solid var(--aj-stone); color: var(--aj-ink) !important; text-decoration: none !important; font: 500 13px/1.2 var(--aj-sans); min-width: 0; }
.aj-drawer__quick a span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.aj-drawer__quick .aj-icon { width: 19px; height: 19px; color: var(--aj-gold-deep); flex: none; }

.aj-drawer__label { font: 500 11px/1 var(--aj-sans); letter-spacing: .22em; text-transform: uppercase; color: var(--aj-muted); margin: 0 0 8px; }
.aj-drawer__groups { list-style: none; margin: 0 0 22px; padding: 0; }
.aj-drawer__group { border-bottom: 1px solid var(--aj-stone); }
.aj-drawer__row { width: 100%; display: flex; align-items: center; gap: 14px; padding: 11px 2px !important; background: transparent !important; border: 0 !important; border-radius: 0 !important; color: var(--aj-ink) !important; text-align: left; cursor: pointer; text-decoration: none !important; font: inherit; box-shadow: none !important; }
.aj-drawer__thumb { width: 44px; height: 44px; border-radius: 50%; overflow: hidden; flex: none; background: var(--aj-gold-soft); display: grid; place-items: center; color: var(--aj-gold-deep); }
.aj-drawer__thumb img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.aj-drawer__thumb .aj-icon { width: 20px; height: 20px; }
.aj-drawer__name { flex: 1; font: 500 16px/1.2 var(--aj-sans); letter-spacing: .01em; }
.aj-drawer__chev { color: var(--aj-muted); transition: transform .3s ease; flex: none; }
.aj-drawer__row[aria-expanded="true"] .aj-drawer__chev { transform: rotate(180deg); color: var(--aj-gold-deep); }
.aj-drawer__row[aria-expanded="true"] .aj-drawer__name { color: var(--aj-gold-deep); }
.aj-drawer__sub { display: flex; flex-wrap: wrap; gap: 8px; padding: 2px 0 16px 58px; }
.aj-drawer__sub[hidden] { display: none; }
.aj-drawer__sub a { font: 400 13px/1 var(--aj-sans); color: var(--aj-ink) !important; text-decoration: none !important; padding: 9px 13px; border-radius: 999px; background: #fff; border: 1px solid var(--aj-stone); }
.aj-drawer__sub a:hover, .aj-drawer__sub a:focus { border-color: var(--aj-gold); color: var(--aj-gold-deep) !important; }
.aj-drawer__sub .aj-drawer__all { flex-basis: 100%; background: transparent; border: 0; padding: 4px 0 6px; font-weight: 500; color: var(--aj-gold-deep) !important; letter-spacing: .02em; }

.aj-drawer__promo { padding: 16px 18px; border-radius: 14px; background: var(--aj-ink); color: #f6dbe4; margin: 0 0 18px; display: grid; gap: 4px; }
.aj-drawer__promo strong { color: #fff; font: 500 15px/1.3 var(--aj-sans); }
.aj-drawer__promo span { font-size: 12.5px; opacity: .85; }

.aj-drawer__help { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 12px; }
.aj-drawer__help a { padding: 9px 0; font: 400 14px var(--aj-sans); color: var(--aj-body) !important; text-decoration: none !important; }
.aj-drawer__help a:hover { color: var(--aj-gold-deep) !important; }

.aj-drawer__foot { border-top: 1px solid var(--aj-stone); padding: 14px 20px calc(14px + env(safe-area-inset-bottom)); background: #fff; display: grid; gap: 8px; }
.aj-drawer__foot a { display: flex; align-items: center; gap: 10px; font: 400 13px var(--aj-sans); color: var(--aj-ink) !important; text-decoration: none !important; }
.aj-drawer__foot .aj-icon { width: 17px; height: 17px; color: var(--aj-gold-deep); }

html.aj-drawer-lock, html.aj-drawer-lock body { overflow: hidden !important; }
@media (prefers-reduced-motion: reduce) { .aj-drawer__panel, .aj-drawer__backdrop { transition: none; } }
@media (min-width: 922px) { .aj-drawer { display: none; } }
