/* ==========================================================================
   HxH v1.6.2 — 8-tile hero, mobile topbar/toolbar fixes, richer loading.
   Loaded last. Fixes from real device screenshots.
   ========================================================================== */

/* ---------- hero: 8 tiles evenly spaced (45deg) ------------------------- */
.hx-hero .hx-tile{
  transform:rotate(calc(var(--i) * 45deg)) translateY(calc(var(--ring) / -2)) rotate(calc(var(--i) * -45deg))!important;
}
@media(max-width:760px){
  .hx-hero .hero-art{--tile:46px}
  .hx-tile-in{border-radius:15px!important}
}

/* ---------- mobile topbar: nothing clipped (Sign-in cut off tha) -------- */
@media(max-width:860px){
  .topbar{gap:7px!important;padding:0 10px!important}
  .topbar .breadcrumb,.topbar .divider{display:none!important}
  .top-brand{min-width:0!important;gap:6px!important}
  .top-brand img{width:34px!important;height:34px!important}
  .top-brand strong{font-size:19px!important}
  .top-brand small{font-size:12px!important}
  .top-actions{gap:5px!important;margin-left:auto;flex:0 0 auto}
  .top-actions .icon-btn{min-width:38px!important;min-height:38px!important;padding:7px!important}
  .top-actions .btn.small{
    padding:8px 12px!important;font-size:11.5px!important;min-height:38px!important;
    border-radius:11px!important;white-space:nowrap}
  .cart-count{top:-3px!important;right:-3px!important;min-width:16px;height:16px;
    display:grid;place-items:center;font-size:9px!important}
  .mobile-toggle{min-width:38px!important;min-height:38px!important}
}

/* ---------- catalog toolbar: visible pills, no ghost/clipped tabs ------- */
.catalog-toolbar{
  position:sticky;top:62px;z-index:22;display:flex;flex-wrap:wrap;align-items:center;
  gap:10px;padding:10px!important;border-radius:18px!important;margin-bottom:14px}
html[data-theme="white"] .catalog-toolbar{
  background:rgba(255,255,255,.92)!important;border:1px solid #e7defa!important;
  -webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);
  box-shadow:0 14px 30px -20px rgba(9,90,66,.35)}
html[data-theme="black"] .catalog-toolbar{
  background:rgba(13,7,28,.92)!important;border:1px solid #2b1a56!important;
  -webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px)}
.catalog-toolbar .tabs{
  display:flex!important;gap:8px;overflow-x:auto;flex:1 1 auto;min-width:0;
  padding:4px 2px 6px;scrollbar-width:none;-webkit-overflow-scrolling:touch}
.catalog-toolbar .tabs::-webkit-scrollbar{display:none}
.catalog-toolbar .tabs .tab{
  flex:0 0 auto;min-height:38px;padding:8px 15px!important;font-size:12.5px!important;
  line-height:1.25!important;border-radius:999px!important;font-weight:650}
html[data-theme="white"] .catalog-toolbar .tabs .tab{background:#f7f4ff;border:1px solid #e7defa;color:#4c4666}
html[data-theme="black"] .catalog-toolbar .tabs .tab{background:#170d33;border:1px solid #2e1f5c;color:#b3a8d9}
.catalog-toolbar .sort-select{flex:0 0 auto;min-height:38px;border-radius:12px!important;font-size:12.5px!important}
@media(max-width:760px){
  .catalog-toolbar{top:58px;padding:8px!important}
  .catalog-toolbar .sort-select{width:100%}
}

/* ---------- filter pills: one clean scrollable row ---------------------- */
.collection-controls{
  display:flex!important;flex-wrap:nowrap!important;overflow-x:auto;align-items:center;
  gap:8px!important;padding:4px 2px 10px!important;scrollbar-width:none;-webkit-overflow-scrolling:touch}
.collection-controls::-webkit-scrollbar{display:none}
.collection-controls .toggle-pill{flex:0 0 auto;min-height:38px;font-size:12px!important;border-radius:999px!important}
.collection-controls .text-link{flex:0 0 auto;margin-left:2px!important;white-space:nowrap;font-size:12.5px!important}

/* ---------- empty state never hides under the bottom tab bar ------------ */
.empty-catalog{margin:6px 0 30px!important;padding:36px 22px 42px!important;border-radius:22px!important}
html[data-theme="white"] .empty-catalog{background:linear-gradient(180deg,#fff,#faf8ff);border:1px solid #e7defa}
html[data-theme="black"] .empty-catalog{background:linear-gradient(180deg,#140b2a,#100822);border:1px solid #2b1a56}
.empty-catalog h3{margin:6px 0 8px!important;font-size:19px!important}
.empty-catalog p{max-width:420px;margin:0 auto 18px!important}
@media(max-width:860px){.content{padding-bottom:calc(138px + env(safe-area-inset-bottom))!important}}

/* ---------- rocket: always fully inside the screen ---------------------- */
.scroll-to-top-btn{right:max(16px,env(safe-area-inset-right))!important}

/* ---------- loading: dreamy animated boot ------------------------------- */
.boot{position:relative;overflow:hidden}
.boot::before{
  content:'';position:absolute;inset:-12%;z-index:0;pointer-events:none;
  background:url('/assets/generated/bg-lavender-sky.webp') center/cover no-repeat;
  opacity:.55;animation:v6Drift 26s ease-in-out infinite alternate}
html[data-theme="black"] .boot::before{filter:brightness(.45) saturate(1.25);opacity:.7}
.boot>*{position:relative;z-index:1}
.boot small{animation:v7Pulse 1.7s ease-in-out infinite}
@keyframes v7Pulse{0%,100%{opacity:.55}50%{opacity:1}}
.boot-orbit::before{
  content:'';position:absolute;inset:-26px;border-radius:50%;pointer-events:none;
  background:radial-gradient(circle,rgba(95,211,168,.35),transparent 65%);
  animation:v7Pulse 2.2s ease-in-out infinite}
#v6-navprog{height:4px!important;width:44%!important}
html.hx-lowfx .boot::before{animation:none!important}
@media(prefers-reduced-motion:reduce){.boot::before,.boot small,.boot-orbit::before{animation:none!important}}
