/* AstroAyushRudhra mobile navigation V4 — scoped extension.
   Preserves home-V102/site.min.css, V3 compact header and original JS.
   On desktop, new drawer-only elements have display:none. */
.ar-customer-account-shortcut,
.ar-nav-drawer-heading,
.ar-nav-drawer-foot,
.ar-mobile-menu-backdrop { display: none; }
@media (max-width: 991px) {
  .as_header_wrapper .header-menu-flex {
    display: flex !important;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    min-width: 0;
  }
  .as_header_wrapper .ar-customer-account-shortcut {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-height: 40px;
    padding: 6px 10px;
    border: 1px solid rgba(239, 197, 137, .48);
    border-radius: 11px;
    color: #f5d6a5 !important;
    background: rgba(238,198,151,.075);
    text-decoration: none !important;
    font: 600 12px/1.2 Arial,sans-serif;
    white-space: nowrap;
    flex-shrink: 0;
  }
  .as_header_wrapper .ar-customer-account-shortcut svg { display:block; flex-shrink:0; }
  .as_header_wrapper .ar-customer-account-shortcut:hover,
  .as_header_wrapper .ar-customer-account-shortcut:focus-visible {
    background: rgba(238,198,151,.18); outline: 2px solid #eec697; outline-offset: 2px;
  }
  .as_header_wrapper .header-toggle {
    display: inline-flex !important;
    align-items:center;
    justify-content:center;
    flex: 0 0 43px;
    border: 1px solid rgba(255,255,255,.17);
    border-radius: 11px;
    min-width: 43px; min-height: 42px;
    background: rgba(255,255,255,.055);
  }
  .as_header_wrapper .header-toggle:focus-visible,
  .as_header_wrapper .ar-nav-close:focus-visible,
  .as_header_wrapper .as_menu a:focus-visible {
    outline: 2px solid #f1c88c !important; outline-offset: 2px;
  }
  body.ar-mobile-nav-open { overflow: hidden !important; }
  body.ar-mobile-nav-open .as_header_wrapper { z-index: 10020 !important; }
  body.ar-mobile-nav-open .mobile-footer-icons { visibility: hidden; pointer-events:none; }
  .as_header_wrapper .ar-mobile-menu-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    background: rgba(1,7,15,.75);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
    transition: opacity .22s ease, visibility .22s ease;
  }
  .as_header_wrapper .menu_open .ar-mobile-menu-backdrop {
    opacity: 1; visibility: visible; pointer-events: auto;
  }
  .as_header_wrapper .as_menu {
    position: fixed !important;
    top: 0 !important; bottom: 0 !important; left: 0 !important; right: auto !important;
    width: min(354px, calc(100vw - 34px)) !important;
    max-width: none !important;
    height: 100vh;
    height: 100dvh;
    z-index: 10001 !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    background: linear-gradient(145deg, #111a26 0%, #080b11 54%, #131516 100%) !important;
    border-right: 1px solid rgba(238,198,151,.48) !important;
    box-shadow: 18px 0 55px rgba(0,0,0,.55);
    padding: 0 0 max(24px,env(safe-area-inset-bottom)) !important;
    margin: 0 !important;
    transform: translateX(-104%);
    transition: transform .24s ease, visibility .24s ease, opacity .24s ease;
    opacity: 0; visibility: hidden; pointer-events: none;
    box-sizing: border-box;
    scrollbar-width: thin;
    scrollbar-color: rgba(238,198,151,.35) transparent;
  }
  .as_header_wrapper .menu_open .as_menu {
    left: 0 !important;
    transform: translateX(0);
    opacity: 1; visibility: visible; pointer-events: auto;
  }
  .as_header_wrapper .ar-nav-drawer-heading {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items:center;
    gap: 10px;
    padding: 22px 17px 18px;
    background: rgba(238,198,151,.06);
    border-bottom: 1px solid rgba(238,198,151,.27);
  }
  .as_header_wrapper .ar-nav-drawer-heading-copy { display:flex; flex-direction:column; gap:5px; }
  .as_header_wrapper .ar-nav-drawer-eyebrow {
    display:block; font: 700 10px/1.2 Arial,sans-serif; letter-spacing: .14em; color: #eec697;
  }
  .as_header_wrapper .ar-nav-drawer-heading-copy strong {
    color:#fff; font: 600 19px/1.2 Georgia,serif;
  }
  .as_header_wrapper .ar-nav-close {
    display:inline-flex; flex:0 0 38px; align-items:center; justify-content:center;
    width:38px; height:38px; border-radius:10px; border:1px solid rgba(255,255,255,.19);
    background:#1b2533; color:#fff; cursor:pointer;
  }
  .as_header_wrapper .as_menu > ul {
    margin: 0 !important;
    padding: 9px 14px 11px !important;
    list-style: none !important;
    display:block !important;
  }
  .as_header_wrapper .as_menu > ul > li {
    display:block !important;
    position:relative;
    width:100% !important;
    margin:0 !important;
    border:0 !important;
    border-bottom: 1px solid rgba(255,255,255,.08) !important;
  }
  .as_header_wrapper .as_menu > ul > li > a {
    display:flex !important;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    min-height: 46px;
    width: 100%;
    padding: 11px 12px !important;
    margin:0 !important;
    color:#f4f5f8 !important;
    font: 500 14px/1.45 Arial,sans-serif;
    text-decoration:none !important;
    text-transform: none;
    border-radius:8px;
    box-sizing:border-box;
  }
  .as_header_wrapper .as_menu > ul > li > a.active,
  .as_header_wrapper .as_menu > ul > li > a:hover,
  .as_header_wrapper .as_menu > ul > li > a:focus-visible {
    background: rgba(238,198,151,.09);
    color: #f5d6a5 !important;
  }
  .as_header_wrapper .as_menu > ul > li > a[aria-haspopup="true"]::after {
    content: "⌄";
    display:block;
    font-size:23px; line-height:16px;
    color:#eec697;
    transform:translateY(-3px);
    transition:transform .15s ease;
  }
  .as_header_wrapper .as_menu > ul > li > a[aria-expanded="true"]::after {
    transform:translateY(1px) rotate(180deg);
  }
  .as_header_wrapper .as_menu > ul > li.as_submenu_li::after { display:none!important; }
  .as_header_wrapper .as_menu > ul > li > .as_submenu {
    display:none;
    position:static !important;
    width:100% !important;
    height:auto !important;
    margin: 0 0 10px !important;
    padding:4px 0 4px 10px !important;
    border-left:2px solid rgba(238,198,151,.6);
    background:rgba(6,13,21,.68) !important;
    transform:none !important;
  }
  .as_header_wrapper .as_menu > ul > li > .as_submenu.active { display:block !important; }
  .as_header_wrapper .as_menu .as_submenu > li {
    display:block !important; margin:0 !important; border:0 !important;
  }
  .as_header_wrapper .as_menu .as_submenu > li > a {
    display:block !important; width:100%; padding:10px 10px !important;
    color:#e5e7eb !important; font: 400 12.5px/1.35 Arial,sans-serif;
    text-transform:none;
    white-space:normal !important;
    overflow-wrap: anywhere;
  }
  .as_header_wrapper .as_menu .as_submenu > li > a:hover { color:#f5d6a5 !important; }
  .as_header_wrapper .ar-nav-drawer-foot {
    display:block;
    margin: 6px 14px 0;
    padding: 19px 6px 4px;
    border-top:1px solid rgba(238,198,151,.25);
  }
  .as_header_wrapper .ar-nav-drawer-section-label {
    color:#eec697; font:700 10px/1.2 Arial,sans-serif; letter-spacing:.15em;
    margin:0 0 12px;
  }
  .as_header_wrapper .ar-nav-contact {
    display:flex !important;
    align-items:flex-start;
    gap:11px;
    color:#f0f3f7 !important;
    font: 500 12px/1.4 Arial,sans-serif;
    padding: 8px 4px;
    text-decoration:none !important;
    min-width:0;
  }
  .as_header_wrapper .ar-nav-contact svg { display:block; flex:0 0 19px; color:#eec697; margin-top:3px; }
  .as_header_wrapper .ar-nav-contact--wa svg { color:#25d366; }
  .as_header_wrapper .ar-nav-contact span { display:flex; flex-direction:column; min-width:0; overflow-wrap:anywhere; }
  .as_header_wrapper .ar-nav-contact small { display:block; color:#a7b0c3; font: 400 10px/1.45 Arial,sans-serif; margin-bottom:1px; }
  .as_header_wrapper .ar-nav-brand {
    display:flex !important; justify-content:center; align-items:center;
    margin: 14px 0 0;
    padding: 16px 10px 8px;
    border-top:1px solid rgba(255,255,255,.09);
  }
  .as_header_wrapper .ar-nav-brand img { display:block; width:190px; height:auto; max-width:100%; }
}
@media (max-width: 360px) {
  .as_header_wrapper .ar-customer-account-shortcut { padding:6px 9px; min-width:41px; }
  .as_header_wrapper .ar-customer-account-shortcut span { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
  .as_header_wrapper .header-menu-flex { gap: 5px; }
  .as_header_wrapper .as_menu { width: min(320px, calc(100vw - 26px)) !important; }
  .as_header_wrapper .as_menu > ul > li > a { min-height:43px; padding:10px !important; }
}
@media (prefers-reduced-motion: reduce) {
  .as_header_wrapper .ar-mobile-menu-backdrop,
  .as_header_wrapper .as_menu { transition:none !important; }
}
