.alh-header {
  --alh-header-line: #dce5f3;
  --alh-header-ink: #1d2c49;
  --alh-header-blue: #244eb8;
  --alh-header-soft: #edf3ff;
}

.alh-header .alh-main .alh-header-card {
  background: #fff;
  border: 1px solid var(--alh-header-line);
  border-radius: 20px;
  box-shadow: 0 10px 28px #1c365316;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.alh-header .alh-header-main {
  isolation: isolate;
  min-height: 76px;
  grid-template-columns: minmax(0,1fr) auto;
  padding: 10px 18px;
  border-radius: 19px 19px 0 0;
  background: linear-gradient(110deg,#fff 40%,#f0f5ff);
}
.alh-header .alh-header-main::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset-block: 0;
  inset-inline-start: 0;
  width: min(45%,420px);
  border-radius: inherit;
  background: url("../images/dashboard-persian-texture.png?v=3") center / cover;
  mask-image: linear-gradient(to left,#000,transparent);
  opacity: .46;
  pointer-events: none;
}
.alh-header .alh-brand-link { border-radius: 8px; }
.alh-header .alh-actions { gap: 7px; }
.alh-header .alh-action-btn,
.alh-header .alh-account,
.alh-header .alh-mobile-trigger {
  min-height: 42px;
  border: 1px solid var(--alh-header-line);
  border-radius: 11px;
  background: #fff;
  color: var(--alh-header-ink) !important;
  box-shadow: 0 2px 6px #17314c08;
}
.alh-header .alh-account { padding: 4px 7px; }
.alh-header .alh-account-avatar {
  width: 34px;
  height: 34px;
  flex-basis: 34px;
  border-radius: 9px;
  box-shadow: none;
}
.alh-header .alh-account-name { color: var(--alh-header-ink); font-weight: 750; }
.alh-header .alh-notification-badge { top: -4px; left: -4px; background: #b83453; }
.alh-header :is(.alh-account,.alh-action-btn)[aria-expanded="true"],
.alh-header .alh-cart-btn[aria-current="page"] {
  border-color: #bfcef0;
  background: var(--alh-header-soft);
  color: var(--alh-header-blue) !important;
}

.alh-header .alh-nav-shell {
  min-height: 54px;
  gap: 10px;
  padding: 6px 12px;
  border-color: var(--alh-header-line);
  border-radius: 0 0 19px 19px;
  background: #f7f9fd;
}
.alh-header .alh-nav-list { gap: 4px; }
.alh-header .alh-nav-link {
  min-height: 39px;
  gap: 6px;
  padding-inline: 8px;
  border-radius: 9px;
  color: var(--alh-header-ink) !important;
}
.alh-header .alh-nav-link::before {
  height: 2px;
  inset-inline: 10px;
  inset-block-end: 2px;
  background: #5275dc;
  transform: scaleX(.35);
}
.alh-header .alh-nav-icon {
  width: 23px;
  height: 23px;
  flex-basis: 23px;
  border-radius: 6px;
}
.alh-header .alh-nav-item:is(.is-current,.alh-hover-open) > .alh-nav-link {
  border-color: #d7e3fc;
  background: var(--alh-header-soft);
  color: var(--alh-header-blue) !important;
}
.alh-header .alh-nav-item.is-current > .alh-nav-link::before { transform: scaleX(1); }
.alh-header .alh-nav-item:not(.alh-hover-open) > .alh-nav-link .alh-nav-chevron { transform: none; }
.alh-header .alh-has-dropdown.alh-hover-open .alh-nav-chevron { transform: rotate(180deg); }

.alh-header .alh-nav-extra .alh-nav-cta {
  min-height: 38px;
  border-radius: 9px;
  font-weight: 750;
}
.alh-header :is(.alh-nav-extra-link.alh-nav-cta-primary,.alh-drawer .alh-drawer-cta-primary) {
  background: linear-gradient(115deg,#315cc9,#524bc9) !important;
  background-size: 145% 100% !important;
  box-shadow: 0 4px 11px #3758bf30;
}
.alh-header :is(.alh-nav-extra-link.alh-nav-cta-warning,.alh-drawer .alh-drawer-cta-warning) {
  border-color: #f2d9a8 !important;
  background: #fff5e3 !important;
  color: #854b11 !important;
  box-shadow: none;
}
.alh-header .alh-nav-extra .alh-nav-cta-warning > i { color: inherit !important; }
.alh-header .alh-mega { border-radius: 14px; }
.alh-header .alh-nav-extra .alh-nav-cta:is(:hover,:focus) { transform: none; }

.alh-header :is(.alh-brand-link,.alh-nav-link,.alh-nav-extra-link,.alh-action-btn,.alh-account,.alh-login-btn,.alh-mobile-trigger,.alh-mega-link,.alh-drawer a,.alh-drawer button):focus-visible {
  outline: 2px solid #4566cf;
  outline-offset: 3px;
}

@media (hover: hover) and (pointer: fine) {
  .alh-header :is(.alh-action-btn,.alh-account,.alh-mobile-trigger):hover {
    border-color: #bfcff0;
    background: var(--alh-header-soft);
    color: var(--alh-header-blue) !important;
  }
  .alh-header .alh-nav-item:hover > .alh-nav-link::before { transform: scaleX(1); }
  .alh-header .alh-nav-extra .alh-nav-cta-primary:hover {
    background-position: 100% 0 !important;
    box-shadow: 0 7px 15px #3758bf45;
  }
  .alh-header .alh-nav-extra .alh-nav-cta-warning:hover { background: #ffebc4 !important; }
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .alh-header :is(.alh-action-btn,.alh-account,.alh-nav-extra-link) {
    transition: background-color .22s ease, border-color .22s ease, box-shadow .22s ease, background-position .36s ease;
  }
  .alh-header :is(.alh-action-btn > i,.alh-account-avatar > i,.alh-nav-extra-link > i) {
    transition: transform .22s ease;
  }
  .alh-header :is(.alh-action-btn:hover > i,.alh-account:hover .alh-account-avatar > i,.alh-nav-extra-link:hover > i) {
    transform: translateY(-2px);
  }
}
@media (max-width: 1199.98px) {
  .alh-header .alh-account-arrow { display: none !important; }
}
@media (min-width: 992px) and (max-width: 1199.98px) {
  .alh-header .alh-nav-extra .alh-nav-cta { padding-inline: 0; }
}
@media (max-width: 991.98px) {
  .alh-header .alh-main .alh-header-card { border-radius: 15px; }
  .alh-header .alh-header-main {
    min-height: 60px;
    grid-template-columns: auto minmax(0,1fr) auto;
    gap: 7px;
    padding: 8px;
    border-radius: 14px;
  }
  .alh-header .alh-header-main::before { width: 70%; }
  .alh-header .alh-actions { gap: 5px; }
  .alh-header :is(.alh-mobile-trigger,.alh-action-btn,.alh-account,.alh-login-btn) {
    width: 38px;
    min-width: 38px;
    height: 38px;
    min-height: 38px;
    flex-basis: 38px;
  }
  .alh-header .alh-cart-btn { display: inline-flex; }
  .alh-header .alh-account { padding: 3px; justify-content: center; }
  .alh-header .alh-account-avatar { width: 29px; height: 29px; flex-basis: 29px; }
  .alh-header .alh-notification-menu { width: min(350px,calc(100vw - 24px)); }
  .alh-header .alh-drawer-head {
    min-height: 65px;
    background: linear-gradient(110deg,#fff,#edf3ff);
    border-color: var(--alh-header-line);
  }
  .alh-header .alh-drawer .alh-mobile-nav-item.is-current > .alh-mobile-nav-row {
    border-radius: 9px;
    background: var(--alh-header-soft);
    color: var(--alh-header-blue);
  }
}

.alh-header .alh-account {
  border-radius: 12px;
  background: linear-gradient(140deg,#f3f6ff,#fff 68%);
}
.alh-header .alh-account-avatar { background: linear-gradient(145deg,#234ab4,#4d56cf); }
.alh-header .alh-account-label { color: #536687; }
.alh-header .alh-account-arrow {
  padding: 5px;
  border-radius: 6px;
  background: #eef3fb;
  color: #50648a;
}
.alh-header .alh-actions .alh-dropdown-head {
  background: linear-gradient(110deg,#f1f5ff,#fbfcff);
}
@media (prefers-reduced-motion: no-preference) {
  .alh-header .alh-actions > .dropdown.alh-hover-open > .dropdown-menu,
  .alh-header .alh-actions .dropdown-menu.show {
    animation: alh-action-menu-enter .24s cubic-bezier(.2,.7,.25,1) both;
  }
}
@keyframes alh-action-menu-enter {
  from { opacity: 0; translate: 0 -7px; }
  to { opacity: 1; translate: 0 0; }
}

.alh-header .alh-actions .alh-user-menu {
  width: 290px;
  max-height: calc(100dvh - 132px);
  overflow: auto;
  overscroll-behavior: contain;
  border-color: #dce5f3 !important;
  scrollbar-width: thin;
}
.alh-header .alh-user-hero {
  min-height: 60px;
  padding: 10px 12px;
  border-bottom: 1px solid #dfe7f7;
  background: linear-gradient(125deg,#f7faff,#edf2ff);
}
.alh-header .alh-user-hero::before { content: none; }
.alh-header .alh-user-avatar-large {
  width: 36px;
  height: 36px;
  flex-basis: 36px;
  color: #3558bd;
  background: #e4ecff;
  border-color: #d4e0fa;
}
.alh-header .alh-user-profile-copy strong { color: #182b4b; font-weight: 750; }
.alh-header .alh-user-links { padding: 7px; }
.alh-header .alh-user-links .dropdown-item {
  min-height: 36px;
  padding: 3px 6px !important;
  gap: 8px !important;
  font-weight: 650 !important;
  white-space: normal;
  transition: background-color .18s ease, color .18s ease;
}
.alh-header .alh-user-links .dropdown-item i {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  border-radius: 7px;
  background: #f0f4fc;
  color: #46629a;
}
.alh-header .alh-user-links .dropdown-item:focus-visible {
  outline: 2px solid #4d71d1;
  outline-offset: -2px;
  background: #edf3ff;
}
.alh-header .alh-user-links .dropdown-item.text-danger,
.alh-header .alh-user-links .dropdown-item.text-danger i {
  background: #fff1f3;
  color: #a42543 !important;
}
.alh-header .alh-user-links .dropdown-item.text-danger:hover { background: #ffe4e9 !important; }
@media (max-width: 991.98px) {
  .alh-header .alh-actions .alh-user-menu { max-height: calc(100dvh - 88px); }
}
