/* AS Header Nav — desktop cascade + mobile drawer + bottom dock
   Tokens from the prod ast-global palette (Ali-approved cream/brown). */

/* Scope box-sizing so Astra resets can't break our widths/scrollbars. */
.ashn, .ashn *, .ashn-drawer, .ashn-drawer *, .ashn-dock, .ashn-dock *{box-sizing:border-box}

:root{
  --ashn-cream:#F7F2EA;
  --ashn-white:#FFFFFF;
  --ashn-brown:#A77661;
  --ashn-brass:#C5A46D;
  --ashn-ink:#2E2B28;
  --ashn-muted:#6E665C;
  --ashn-line:#E7DCCE;
  --ashn-navy:#0D1B2E;
}

/* ============ DESKTOP CASCADE ============ */
.ashn{position:relative;font-family:inherit}
.ashn-trigger{
  display:inline-flex;align-items:center;gap:9px;border:none;cursor:pointer;
  background:var(--ashn-navy);color:#fff;border-radius:999px;padding:11px 18px;
  font-size:11.5px;letter-spacing:.1em;text-transform:uppercase;font-weight:600;
}
.ashn-trigger:hover{background:#16243E}
.ashn-trigger[aria-expanded="true"]{background:var(--ashn-brown)}

.ashn-panel{
  position:absolute;top:calc(100% + 8px);left:0;z-index:90;
  background:var(--ashn-white);border:1px solid var(--ashn-line);
  border-radius:16px;box-shadow:0 24px 46px rgba(13,27,46,.16);overflow:hidden;
  width:max-content;max-width:min(94vw,1180px);
}
.ashn-grid{display:flex;max-height:62vh}
.ashn-col{
  border-right:1px solid var(--ashn-line);display:flex;flex-direction:column;
  flex:0 0 auto;width:clamp(280px,22vw,360px);min-width:0;
}
.ashn-col:last-child{border-right:none}
.ashn-colhead{
  padding:14px 18px 9px;font-size:10.5px;letter-spacing:.15em;text-transform:uppercase;
  color:var(--ashn-muted);font-weight:600;border-bottom:1px solid #F4EEE5;
}
.ashn-coldata{flex:1;overflow:auto;padding:8px 10px 10px;min-height:120px}
.ashn-foot{flex:0 0 auto;padding:10px 14px;border-top:1px solid var(--ashn-line);background:#FCFAF6}
.ashn-foot a{
  display:flex;align-items:center;justify-content:space-between;gap:8px;
  background:var(--ashn-brown);color:#fff;border-radius:999px;padding:10px 16px;
  font-size:11px;letter-spacing:.08em;text-transform:uppercase;text-decoration:none;font-weight:700;
}
.ashn-foot a:hover{background:#96684e}
/* Bigger, clearly visible arrow in View All (desktop + mobile drawer band). */
.ashn-foot a .ashn-ar,
.ashn-dvall a .ashn-ar{
  font-size:22px;line-height:1;font-weight:400;transform:translateY(-1px);
  opacity:.95;flex:0 0 auto;
}
.ashn-row{
  display:flex;align-items:center;gap:8px;width:100%;text-align:left;border:none;background:none;
  cursor:pointer;padding:8px 11px;border-radius:9px;font-size:13.5px;color:var(--ashn-ink);text-decoration:none;
}
.ashn-row:hover{background:#F4EDE3;color:var(--ashn-navy)}
.ashn-row.is-active{background:var(--ashn-brown);color:#fff}
.ashn-row .ashn-txt{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis}
.ashn-row .ashn-chev{flex:0 0 auto;opacity:.55}
.ashn-row.is-active .ashn-chev{opacity:.95}
.ashn-row.is-leaf{color:var(--ashn-muted);font-size:13px}
.ashn-row.is-leaf:hover{color:var(--ashn-navy)}

/* ============ HEADER WISHLIST ICON (HTML widget shortcode) ============ */
.ashn-wishlist-icon{
  display:inline-flex;align-items:center;justify-content:center;
  color:var(--ashn-ink);text-decoration:none;
}
.ashn-wishlist-icon:hover{color:var(--ashn-brown)}
.ast-header-html .ashn-wishlist-icon{ /* match Astra account/cart icon sizing in the top bar */ }
.ashn-wishlist-icon svg{display:block}

/* ============ MOBILE DRAWER (content inside Astra popup) ============ */
/* Astra's own off-canvas popup is no longer used for the drawer (full-page overlay instead). */
#ast-mobile-popup, .ast-mobile-popup-wrapper, .ast-mobile-popup-drawer{display:none !important}

/* Full-page overlay host */
.ashn-overlay{
  position:fixed;top:0;left:0;right:0;bottom:0;z-index:2147483000;
  background:#FFFFFF;
}
.ashn-overlay[hidden]{display:none}
.ashn-overlay-inner{display:flex;flex-direction:column;height:100%}

.ashn-drawer{display:flex;flex-direction:column;height:100%;font-family:inherit}
.ashn-dtop{
  display:flex;align-items:center;justify-content:space-between;gap:10px;
  padding:14px 18px 0;flex:0 0 auto;
}
.ashn-dlogo{display:inline-flex;align-items:center;max-width:65%}
.ashn-dlogo img{max-height:34px;width:auto}
.ashn-dlogo-text{font-weight:700;color:var(--ashn-navy);text-decoration:none;font-size:17px}
.ashn-dclose{
  display:inline-flex;align-items:center;justify-content:center;
  width:44px;height:44px;flex:0 0 auto;border:none;background:none;
  color:var(--ashn-ink);cursor:pointer;padding:0;
}
.ashn-dclose svg{width:26px;height:26px}
.ashn-dclose:hover{color:var(--ashn-brown)}
.ashn-dsearch{
  display:flex;align-items:center;gap:7px;margin:10px 12px;background:var(--ashn-cream);
  border:1px solid var(--ashn-line);border-radius:999px;padding:10px 15px;font-size:12.5px;color:var(--ashn-muted);
}
.ashn-dback{
  display:none;align-items:center;gap:7px;margin:0 12px 4px;padding:9px 12px;border:none;background:none;
  cursor:pointer;color:var(--ashn-navy);font-size:14px;font-weight:600;border-radius:10px;text-align:left;
}
.ashn-dback[hidden]{display:none}
.ashn-dback:not([hidden]){display:flex}
.ashn-dback:hover{background:#F4EDE3}
.ashn-dlist{flex:1;overflow:auto;padding:2px 8px 14px}
.ashn-drow{
  display:flex;align-items:center;gap:8px;width:100%;border:none;background:none;cursor:pointer;
  padding:12px 10px;border-bottom:1px solid #F3EDE3;font-size:14.5px;color:var(--ashn-ink);text-align:left;
}
.ashn-drow .ashn-txt{flex:1;text-align:left}
.ashn-drow .ashn-chev{opacity:.5}
.ashn-drow:active{background:#F4EDE3}
.ashn-dvall{flex:0 0 auto;padding:10px 14px 14px;border-top:1px solid var(--ashn-line)}
.ashn-dvall[hidden]{display:none}
.ashn-dvall:not([hidden]){display:block}
.ashn-dvall a{
  display:flex;align-items:center;justify-content:space-between;background:var(--ashn-brown);color:#fff;
  border-radius:999px;padding:11px 18px;font-size:11px;letter-spacing:.1em;text-transform:uppercase;
  text-decoration:none;font-weight:700;
}
.ashn-drawer ul,.ashn-drawer li{list-style:none;margin:0;padding:0}

/* ============ BOTTOM DOCK (mobile) ============ */
.ashn-dock{
  position:fixed;left:0;right:0;bottom:0;z-index:99990;
  display:flex;background:var(--ashn-white);border-top:1px solid var(--ashn-line);
  box-shadow:0 -4px 14px rgba(13,27,46,.05);padding-bottom:env(safe-area-inset-bottom,0);
}
.ashn-dock-tab{
  flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;
  padding:8px 2px 9px;border:none;background:none;cursor:pointer;color:var(--ashn-muted);
  text-decoration:none;font-size:9.5px;letter-spacing:.02em;font-family:inherit;min-width:0;
}
.ashn-dock-tab svg{width:22px;height:22px}
.ashn-dock-tab span{line-height:1;overflow:hidden;text-overflow:ellipsis;max-width:100%;white-space:nowrap}
.ashn-dock-tab.is-active,.ashn-dock-tab.is-active svg{color:var(--ashn-brown)}
.ashn-dock-tab:active{background:#FBF6EF}

/* keep page bottom clear for the dock */
@media (max-width: 782px){
  .ashn-dock{display:flex}
  .ast-container:not(.ast-no-pad), .site-footer{ /* dock overlays; add safe spacing via body rule below */ }
  body.ashn-dock-live{padding-bottom:62px}
}
@media (min-width: 783px){
  .ashn-dock{display:none}
}
