/* ==========================================================================
   HxH v1.6.10 — final layout fixes (loaded last)
   1. loading screen bottom glow had a hard edge
   2. auth / reset stickers sit fully inside the card corner
   3. hero logo ring + tiles always fit inside the hero (no clipping)
   4. header: nav never runs under the search box
   ========================================================================== */

/* 1. Loading screen ------------------------------------------------------- */
#app>.boot::after{
  inset:auto 0 0 0!important;height:55%!important;border:0!important;border-radius:0!important;
  background:radial-gradient(ellipse 70% 80% at 50% 100%,rgba(14,124,90,.14),transparent 70%)!important;
  animation:none!important}
.boot-orbit{position:relative}
.boot-orbit::after{inset:-12px!important}
@keyframes v13Rise{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}

/* 2. Auth stickers: small, inside the card, never over the title ---------- */
.auth-panel::after{
  top:14px!important;right:14px!important;bottom:auto!important;
  width:68px!important;height:58px!important;z-index:1;pointer-events:none}
.modal:has(#password-reset-form)::after,.modal:has(#password-reset-start-form)::after{
  top:14px;right:14px;width:62px;height:54px;z-index:1}
@media(max-width:760px){
  .auth-panel::after{display:block!important;top:10px!important;right:10px!important;width:46px!important;height:40px!important}
  .modal:has(#password-reset-form)::after,.modal:has(#password-reset-start-form)::after{top:10px;right:10px;width:44px;height:38px}
}
.auth-panel{overflow:visible}

/* 3. Hero art: ring + tiles always fit the box ---------------------------- */
html[data-theme] .hx-hero .hero-art{
  --ring:clamp(240px,25vw,380px);--tile:clamp(52px,6vw,80px);
  min-height:calc(var(--ring) + var(--tile) + 44px)!important;max-height:none!important;overflow:visible}
@media(max-width:760px){
  html[data-theme] .hx-hero .hero-art{--ring:min(250px,calc(100vw - 150px));--tile:clamp(44px,12vw,56px)}
}
.hx-hero{overflow:hidden}

/* 4. Header: nav yields to the search box --------------------------------- */
.topbar .top-nav{min-width:0;overflow:hidden;flex:0 1 auto}
.topbar .top-nav a{flex:0 0 auto;white-space:nowrap}
.topbar .header-search{flex:0 1 250px;min-width:160px}
@media(max-width:1280px){.topbar .top-nav a:nth-last-child(-n+2){display:none}}
@media(max-width:1100px){.topbar .top-nav a:nth-last-child(-n+3){display:none}}

@media(prefers-reduced-motion:reduce){.boot-orbit::after{animation:none!important}}

/* 5. Simple, cheap animations (opacity/transform only) -------------------- */
.auth-panel{animation:v13Rise .45s cubic-bezier(.22,.9,.3,1) both}
.product,.category-card{animation:v13Rise .4s cubic-bezier(.22,.9,.3,1) both}
.btn,.hx-tile-in{transition:transform .18s ease,box-shadow .18s ease}
.btn:active{transform:scale(.97)}
@media(hover:hover){.product:hover,.category-card:hover{transform:translateY(-3px)}}
.product,.category-card{transition:transform .22s ease,box-shadow .22s ease}
html.hx-lowfx .auth-panel,html.hx-lowfx .product,html.hx-lowfx .category-card{animation:none!important}
@media(prefers-reduced-motion:reduce){.auth-panel,.product,.category-card{animation:none!important;transition:none!important}.btn:active{transform:none}}
