/* Home 2026 overrides — auth UI uses auth.css (.au-*). Only hide demo modal + style loader. */

/* Mega menu: finishes strip removed (redesign nh-2j) */
body.page-shell-2026 [data-mega] .nh-2j {
  display: none !important;
}

/* Hide redesign demo auth modal; keep #mateAuth */
body.page-shell-2026 .au-root:not(#mateAuth) {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* Ensure Laravel auth modal sits above page chrome / debugbar */
body.page-shell-2026 #mateAuth.au-root {
  z-index: 2147482900 !important;
}
body.page-shell-2026 #mateAuth.au-root.is-open {
  visibility: visible !important;
  pointer-events: auto !important;
}

body.page-shell-2026.home2026-auth-open {
  overflow: hidden;
}

/*
 * Shell overlay loader — MUST stay off #lds-roller / .lds-roller
 * so the legacy storefront spinner keeps working.
 */
body.page-shell-2026 #mate-shell-loader.mate-shell-loader {
  position: fixed !important;
  inset: 0 !important;
  z-index: 2147483000 !important;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(2, 2, 2, 0.45);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
body.page-shell-2026 #mate-shell-loader.mate-shell-loader.is-on,
body.page-shell-2026 #mate-shell-loader.mate-shell-loader[aria-hidden="false"] {
  display: flex !important;
}
body.page-shell-2026 #mate-shell-loader .mate-shell-loader__spin {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid rgba(201, 166, 107, 0.22);
  border-top-color: #c9a66b;
  animation: mateShellSpin 0.8s linear infinite;
  box-shadow: 0 0 0 8px rgba(201, 166, 107, 0.08);
}
@keyframes mateShellSpin {
  to { transform: rotate(360deg); }
}

/* Keep au-err / steps / panels / icon swaps truly hidden
   (auth.css .au-step{display:flex} and .au-btn-ico svg{display:block} win otherwise) */
body.page-shell-2026 #mateAuth .au-err:not([hidden]) {
  display: flex;
}
body.page-shell-2026 #mateAuth .au-err[hidden],
body.page-shell-2026 #mateAuth [data-au-step][hidden],
body.page-shell-2026 #mateAuth [data-au-panel][hidden],
body.page-shell-2026 #mateAuth #mateAuProfileEmailField[hidden],
body.page-shell-2026 #mateAuth .au-btn-ico svg[hidden],
body.page-shell-2026 #mateAuth .au-btn-ico [data-au-ico-spin][hidden],
body.page-shell-2026 #mateAuth .au-eye svg[hidden],
body.page-shell-2026 #mateAuth #mateAuResend[hidden],
body.page-shell-2026 #mateAuth #mateAuResendWait[hidden] {
  display: none !important;
}

/* Button spinner — match redesign au-spin inside white icon circle.
   Prefer .is-busy (auth.css svg{display:block} can beat bare [hidden]). */
body.page-shell-2026 #mateAuth .au-btn.is-busy {
  cursor: wait;
  opacity: 0.65;
  pointer-events: none;
}
body.page-shell-2026 #mateAuth .au-btn.is-busy .au-btn-ico [data-au-ico-arrow],
body.page-shell-2026 #mateAuth .au-btn:not(.is-busy) .au-btn-ico [data-au-ico-spin] {
  display: none !important;
}
body.page-shell-2026 #mateAuth .au-btn.is-busy .au-btn-ico [data-au-ico-spin] {
  display: block !important;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
}

/* Password eye — single icon swap via .is-on (SVG [hidden] is unreliable here) */
body.page-shell-2026 #mateAuth .au-eye {
  position: relative;
  z-index: 2;
  flex: none;
  width: 36px;
  height: 36px;
  margin-right: -8px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #8c877e;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease;
}
body.page-shell-2026 #mateAuth .au-eye:hover {
  color: #f3f0ea !important;
  background: rgba(255, 255, 255, 0.06);
}
body.page-shell-2026 #mateAuth .au-eye svg {
  grid-area: 1 / 1;
  width: 18px;
  height: 18px;
  pointer-events: none;
}
body.page-shell-2026 #mateAuth .au-eye:not(.is-on) svg[data-eye-show],
body.page-shell-2026 #mateAuth .au-eye.is-on svg[data-eye-hide] {
  display: block !important;
}
body.page-shell-2026 #mateAuth .au-eye:not(.is-on) svg[data-eye-hide],
body.page-shell-2026 #mateAuth .au-eye.is-on svg[data-eye-show] {
  display: none !important;
}

/* Google anchor as button */
body.page-shell-2026 #mateAuth a.au-google {
  text-decoration: none !important;
}

/* Logged-in user menu — anchored under the user icon */
body.page-shell-2026 .home2026-user-wrap {
  position: relative;
  display: inline-grid;
  place-items: center;
  flex: none;
}
body.page-shell-2026 .home2026-user-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  right: auto;
  z-index: 90;
  width: 12rem;
  margin: 0;
  padding: 0;
  background: rgba(0, 0, 0, 0.55);
  color: #f3f0ea;
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  border-radius: 0.875rem;
  border: 0.1rem solid rgba(255, 255, 255, 0.2);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -0.75rem);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
  pointer-events: none;
}
body.page-shell-2026 .home2026-user-menu.is-open,
body.page-shell-2026 .home2026-user-menu.open {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
  pointer-events: auto;
}
body.page-shell-2026 .home2026-user-menu[hidden] {
  display: none !important;
}
body.page-shell-2026 .home2026-user-menu.is-open[hidden],
body.page-shell-2026 .home2026-user-menu.open[hidden] {
  display: block !important;
}
body.page-shell-2026 .home2026-user-menu ul {
  list-style: none;
  margin: 0;
  padding: 0.5rem;
  font-size: 14px;
}
body.page-shell-2026 .home2026-user-menu ul li {
  margin: 0.25rem 0;
  padding: 0;
  border-radius: 0.5rem;
  cursor: pointer;
  user-select: none;
  transition: 0.2s all ease-in-out;
}
body.page-shell-2026 .home2026-user-menu ul li a {
  display: block;
  width: 100%;
  padding: 0.5rem 0.875rem;
  color: inherit;
  text-decoration: none !important;
  border-radius: 0.5rem;
}
body.page-shell-2026 .home2026-user-menu ul li:hover,
body.page-shell-2026 .home2026-user-menu ul li:focus-within {
  background: #fff;
  color: #000;
  font-weight: 700;
}
body.page-shell-2026 .home2026-user-menu ul li:active {
  filter: brightness(1.08);
  transform: translateY(1px);
}
