/* QFX Sky Edition v1.7 — behind the entire storefront (not CRM). */
body.qfx-sky-mode {
  background:#031126 url('/assets/assets/cosmic-scene.webp') 50% 50% / cover fixed no-repeat !important;
}
body.qfx-sky-mode::before {
  content:'';position:fixed;inset:0;z-index:0;pointer-events:none;
  background:linear-gradient(180deg,rgba(1,11,30,.50),rgba(1,11,31,.62) 60%,rgba(1,9,25,.78));
}
#qfx-global-sky{position:fixed;inset:0;z-index:0;width:100%;height:100%;pointer-events:none;display:block;contain:strict}
#qfx-global-sky[hidden]{display:none}
body.qfx-sky-mode #root{position:relative;z-index:1;isolation:isolate;min-height:100vh}
/* An airy transparent marketplace; readable labels and solid product cards. */
body.qfx-sky-mode .premium-home {background:transparent!important;color:#eff6ff!important}
body.qfx-sky-mode .premium-catalog .premium-section-head h2,
body.qfx-sky-mode .premium-catalog .premium-section-head p,
body.qfx-sky-mode .premium-catalog .premium-section-label{color:#edf5ff!important}
body.qfx-sky-mode .premium-benefits,
body.qfx-sky-mode .premium-aftermarket>div{
  background:rgba(241,246,255,.94)!important;color:#101d35!important;
  border-color:rgba(199,218,245,.35)!important;
  box-shadow:0 12px 38px rgba(1,6,22,.19)!important;
}
body.qfx-sky-mode .premium-benefits strong,
body.qfx-sky-mode .premium-aftermarket h3{color:#11203c!important}
body.qfx-sky-mode .premium-product-card{
  box-shadow:0 14px 34px rgba(0,7,27,.20)!important;
  /* Individual theme card geometry, fonts and actions are untouched. */
}
body.qfx-sky-mode .premium-products-grid{position:relative;z-index:1}
body.qfx-sky-mode #root>main.container{color:#eff6ff;min-height:55vh}
body.qfx-sky-mode #root>main.container>.page-top h1,
body.qfx-sky-mode #root>main.container>.page-top p{color:#eff6ff!important}
body.qfx-sky-mode #root>main.container .card,
body.qfx-sky-mode #root>main.container .panel{color:#15243b}
body.qfx-sky-mode #root>main.container .empty{background:rgba(241,246,255,.94);color:#273955}
body.qfx-sky-mode .footer{position:relative;z-index:1;background:rgba(3,11,29,.88)!important;color:#cedef5!important}
/* Hero keeps EXACTLY the original rotating globe and dimensions. */
body.qfx-sky-mode .premium-home .premium-hero{
  background:linear-gradient(115deg,rgba(2,11,34,.45),rgba(5,19,48,.05))!important;
  border:1px solid rgba(106,163,234,.15);
}
body.qfx-sky-mode .premium-home .premium-hero::before{display:none!important}
body.qfx-sky-mode .premium-home .premium-hero .qfx-cosmic-stars{display:none!important}
/* Individual theme layouts are preserved unless owner enables size override. */
html.qfx-card-custom .premium-products-grid{gap:var(--qfx-owner-card-gap,18px)!important}
@media(min-width:790px){
  html.qfx-card-custom .premium-products-grid{
    grid-template-columns:repeat(auto-fit,minmax(min(100%,var(--qfx-owner-card-width,295px)),1fr))!important;
  }
  html.qfx-card-custom .premium-product-card{min-height:var(--qfx-owner-card-height,330px)!important}
  html.qfx-card-custom .premium-product-card:not([style]) .premium-product-media{min-height:0;height:clamp(112px,calc(var(--qfx-owner-card-height,330px)*.48),270px)!important}
  /* Keep list and editorial layouts distinctive: their width controls the media column. */
  html.qfx-card-custom[data-qfx-layout="terminal"] .premium-products-grid,
  html.qfx-card-custom[data-qfx-layout="ledger"] .premium-products-grid,
  html.qfx-card-custom[data-qfx-layout="magazine"] .premium-products-grid{grid-template-columns:1fr!important}
  html.qfx-card-custom[data-qfx-layout="terminal"] .premium-product-card,
  html.qfx-card-custom[data-qfx-layout="ledger"] .premium-product-card,
  html.qfx-card-custom[data-qfx-layout="magazine"] .premium-product-card{
    grid-template-columns:clamp(116px,calc(var(--qfx-owner-card-width,295px)*.65),255px) minmax(0,1fr)!important;
  }
  html.qfx-card-custom[data-qfx-layout="terminal"] .premium-product-media,
  html.qfx-card-custom[data-qfx-layout="ledger"] .premium-product-media,
  html.qfx-card-custom[data-qfx-layout="magazine"] .premium-product-media{height:100%!important}
  html.qfx-card-custom[data-qfx-layout="luxury"] .premium-products-grid,
  html.qfx-card-custom[data-qfx-layout="magazine"] .premium-products-grid{gap:var(--qfx-owner-card-gap,18px)!important}
}
@media(max-width:790px){
  /* On mobile keep the existing 24-theme responsive rules; don't force desktop dimensions. */
  html.qfx-card-custom .premium-product-card{min-height:auto!important}
  body.qfx-sky-mode{background-attachment:scroll!important}
}
@media(prefers-reduced-motion:reduce){#qfx-global-sky{display:none!important}}

/* v1.8: owner-sized ORIGINAL globe; the renderer and 24 layouts are untouched. */
.premium-home .premium-hero .qfx-globe-stage{
  transform:scale(var(--qfx-owner-globe-desktop,1))!important;
  transform-origin:80% 50%!important;
  transition:transform .22s ease-out;
}
@media(max-width:650px){
  .premium-home .premium-hero .qfx-globe-stage{
    transform:scale(var(--qfx-owner-globe-mobile,1))!important;
    transform-origin:50% 60%!important;
  }
}
@media(prefers-reduced-motion:reduce){.premium-home .premium-hero .qfx-globe-stage{transition:none!important}}
/* Hero now leads directly to products; no promotional boxes or feature strip. */
.premium-home .premium-catalog{padding-top:clamp(22px,3vw,39px)}
