/* ==========================================================================
   FORMIX3D — Homepage banners strip (Homepage Management → Banners)
   Reuses the site's existing CSS custom properties (see :root in
   css/style.css) so it matches the current light/dark theme automatically.
   Hidden entirely (see js/homepage-settings.js) until at least one enabled
   banner exists — a store that never adds one never sees this in the DOM
   render at all.
   ========================================================================== */
.hp-banners{
  display:flex;
  gap:16px;
  overflow-x:auto;
  padding:16px clamp(16px, 4vw, 48px);
  scroll-snap-type:x mandatory;
}
.hp-banners::-webkit-scrollbar{ height:6px; }
.hp-banners::-webkit-scrollbar-thumb{ background:var(--c-border); border-radius:99px; }

.hp-banner{
  position:relative;
  flex:0 0 auto;
  width:min(420px, 80vw);
  min-height:140px;
  border-radius:16px;
  overflow:hidden;
  background:var(--c-surface);
  border:1px solid var(--c-border);
  scroll-snap-align:start;
  display:block;
  text-decoration:none;
  color:inherit;
  transition:transform .25s ease, border-color .25s ease;
}
.hp-banner:hover{ transform:translateY(-2px); border-color:var(--c-secondary); }

.hp-banner img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  z-index:0;
}
.hp-banner-copy{
  position:relative;
  z-index:1;
  padding:18px;
  background:linear-gradient(0deg, rgba(0,0,0,.55), rgba(0,0,0,0));
  height:100%;
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
}
.hp-banner-copy h3{
  margin:0 0 4px;
  font-size:1.05rem;
  color:#fff;
}
.hp-banner-copy p{
  margin:0;
  font-size:.85rem;
  color:rgba(255,255,255,.85);
}
