.hero {
  position: relative;
  min-height: 95vh;
  padding: 140px 0 180px;
  display: flex;
  align-items: center;

  background-image:url('{{ bgImageUrl }}');
  background-repeat: no-repeat;

  /* KEY FIX */
  background-size: 90%;
  background-position: 100% bottom;
}

/* Ultra large screens */
@media (min-width:1400px) {
  .hero {
    min-height: 100vh;
    background-size: 85%;
    background-position: 72% bottom;
  }
}

/* Mobile */
@media (max-width:900px) {
  .hero {
    min-height: 85vh;
    padding: 100px 0 140px;
    background-size: cover;
    background-position: center;
  }
}

/* Cinematic overlay */
.hero .bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
      rgba(0, 0, 0, .9) 0%,
      rgba(0, 0, 0, .7) 45%,
      rgba(0, 0, 0, .35) 70%,
      rgba(0, 0, 0, 0) 100%);
  z-index: 1;
}

/* Content layer */
.hero .container {
  position: relative;
  z-index: 2;
}

.hero .content {
  max-width: 640px;
}

/* Typography */
.hero h1 {
  font-size: clamp(3rem, 5vw, 4.8rem);
  line-height: 1.05;
  font-weight: 800;
  margin-bottom: 24px;
}

.hero p {
  font-size: 1.15rem;
  opacity: .85;
  margin-bottom: 32px;
}

/* Searchbar */
.hero .fake-searchbar {
  background: #0c0c0c;
  border-radius: 16px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06);
}

/* Stats */
.stats-wrapper {
  margin-top: 40px
}

.stats {
  display: flex;
  gap: 40px
}

.stats .value {
  font-size: 1.4rem;
  font-weight: 700
}

.stats .label {
  font-size: .85rem;
  opacity: .6
}

.modal-content {
  background:
    radial-gradient(900px 420px at 12% 12%, rgba(248, 0, 0, .14), transparent 60%),
    radial-gradient(700px 360px at 88% 18%, rgba(248, 0, 0, .08), transparent 62%),
    linear-gradient(180deg, #101214, #0a0c0e 70%, #070809);
  border: 1px solid rgba(255, 255, 255, .10);
  border-radius: 22px;
  box-shadow:
    0 40px 120px rgba(0, 0, 0, .85),
    inset 0 1px 0 rgba(255, 255, 255, .04);
  overflow: hidden;
}

.modal-header {
  background: linear-gradient(180deg, rgba(255, 255, 255, .04), transparent);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  padding: 18px 22px;
}

.modal-title {
  font-weight: 950;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  font-size: 1.05rem;
}

.modal-header .btn-close {
  filter: invert(1);
  opacity: .6;
}

.modal-header .btn-close:hover {
  opacity: 1;
}

.modal-body .nx-grid {
  grid-template-columns: repeat(auto-fill, minmax(260px, 260px));
  justify-content: center;
  gap: 20px;
}

.modal-body .nxv-card {
  background: rgba(12, 12, 12, .75);
  box-shadow:
    0 18px 50px rgba(0, 0, 0, .55);
}

.modal-body .nxv-card:hover {
  transform: translateY(-4px) scale(1.01);
}

@media (max-width: 768px) {
  .modal-dialog {
    margin: 10px;
  }

  .modal-content {
    border-radius: 18px;
  }

  .modal-body {
    padding: 14px;
  }

  .modal-body .nx-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .modal-header {
    padding: 14px 16px;
  }

  .modal-title {
    font-size: .95rem;
    letter-spacing: .8px;
  }
}

.modal-backdrop {
  background:
    radial-gradient(900px 600px at 50% 20%, rgba(248, 0, 0, .12), transparent 65%),
    rgba(0, 0, 0, .78);
}

.modal-dialog {
  position: fixed;
  right: 0;
  top: 0;
  margin: 0;
  height: 100vh;
  width: min(640px, 94vw);
  transform: translateX(100%);
}

.modal.show .modal-dialog {
  transform: translateX(0);
}

.modal.fade .modal-dialog {
  transition: transform .35s cubic-bezier(.22, 1, .2, 1);
}

.modal-content {
  height: 100%;
  border-radius: 0;
  border-left: 1px solid rgba(255, 255, 255, .10);
  background:
    radial-gradient(800px 420px at 20% 10%, rgba(248, 0, 0, .18), transparent 60%),
    linear-gradient(180deg, #0f1113, #090a0c 80%);
}

.modal-header {
  padding: 18px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  background: linear-gradient(180deg, rgba(255, 255, 255, .04), transparent);
}

.modal-title {
  font-size: 1.1rem;
  font-weight: 980;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.modal-body {
  padding: 18px;
  overflow-y: auto;
  height: calc(100% - 64px);
}

.modal-body {
  padding: 18px;
  overflow-y: auto;
  height: calc(100% - 64px);
}

@media (max-width: 768px) {
  .modal-dialog {
    width: 100%;
    height: 92vh;
    bottom: 0;
    top: auto;
    transform: translateY(100%);
  }

  .modal.show .modal-dialog {
    transform: translateY(0);
  }

  .modal-content {
    border-radius: 18px 18px 0 0;
    border-left: none;
  }
}

.modal-backdrop {
  background:
    radial-gradient(900px 600px at 60% 20%, rgba(248, 0, 0, .14), transparent 65%),
    rgba(0, 0, 0, .78);
}

/* SIDE MODAL */
.ix-side-dialog {
  position: fixed;
  right: 0;
  top: 0;
  margin: 0;
  width: min(520px, 100vw);
  height: 100vh;
  transform: translateX(100%);
}

.modal.show .ix-side-dialog {
  transform: translateX(0);
}

.ix-side-content {
  height: 100%;
  background: rgba(10, 10, 10, .96);
  backdrop-filter: blur(18px);
  border-left: 1px solid rgba(255, 255, 255, .12);
  display: flex;
  flex-direction: column;
}

/* HEADER */
.ix-side-header {
  padding: 18px 20px;
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}

/* BODY */
.ix-side-body {
  padding: 20px;
  overflow-y: auto;
}

/* GRID */
.ix-side-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

/* MOBILE */
@media(max-width:640px) {
  .ix-side-grid {
    grid-template-columns: 1fr;
  }
}

/* ================= MODAL CARD GRID FIX ================= */

.ix-modal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  align-items: start;
}

/* card bleibt exakt gleich groß */
.ix-modal-grid .ix-card {
  width: 100%;
  height: 440px;
}

/* mobile */
@media (max-width:640px) {
  .ix-modal-grid {
    grid-template-columns: 1fr;
  }
}


.ix-card-media::after {
  background:
    linear-gradient(180deg,
      rgba(0, 0, 0, .05),
      rgba(0, 0, 0, .55) 65%,
      rgba(0, 0, 0, .85));
}

html,
body {
  height: 100%;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
  display: block;
}

/* === GLOBAL CINEMATIC BACKGROUND LAYER (prevents cut lines) === */
html, body { height: 100%; }

body{
  position: relative;
  min-height: 100%;
  background: #050505; /* fallback */
}

body::before{
  content:"";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events:none;

  /* dein nexus vibe: dunkel + orange glows */
  background:
    radial-gradient(circle at 18% 22%, rgba(44, 41, 38, 0.12) 0%, transparent 55%),
    radial-gradient(circle at 82% 28%, rgba(248,0,0,.08) 0%, transparent 60%),
    radial-gradient(circle at 55% 85%, rgba(255,255,255,.04) 0%, transparent 55%),
    linear-gradient(180deg, #050505 0%, #06060a 40%, #050505 100%);
}


/* =========================
   MOBILE: BIG BUY BUTTONS
========================= */
@media (max-width: 900px){
  /* mehr breathing room unten damit nix vom bottom-nav überdeckt wird */
  .product-wrapper,
  .cp-product-page{
    padding-bottom: 120px !important; /* wichtig wegen navbar unten */
  }

  /* Button row */
  .buy-buttons,
  .cp-buy-row{
    gap: 12px !important;
    margin-top: 16px !important;
  }

  /* Buttons selbst */
  .buy-buttons .btn,
  .cp-btn{
    height: 56px !important;
    border-radius: 18px !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    letter-spacing: .10em !important;
  }

  /* primary (orange) */
  .buy-buttons .btn.btn-primary,
  .cp-btn--primary{
    background: linear-gradient(135deg, #f80000 0%, #8a0000 100%) !important;
    box-shadow: 0 12px 26px rgba(248,0,0,.22) !important;
  }

  /* ghost/outline */
  .buy-buttons .btn.btn-outline-primary,
  .cp-btn--ghost{
    border: 1px solid rgba(255,255,255,.14) !important;
    background: rgba(0,0,0,.22) !important;
  }
}

/* =========================
   MOBILE NAVBAR: smaller + clickable
========================= */
@media (max-width:900px){

  .ultra-nav{
    left: 50% !important;
    bottom: calc(10px + env(safe-area-inset-bottom)) !important;
    top: auto !important;

    padding: 10px 12px !important;
    gap: 10px !important;
    border-radius: 26px !important;

    /* wichtig: NICHT zu hoch */
    max-height: 64px !important;

    /* fixed bottom bar */
    transform: translateX(-50%) translateY(0) !important;
  }

  .nav-logo{
    width: 42px !important;
    height: 42px !important;
    border-radius: 14px !important;
  }

  .nav-btn{
    width: 44px !important;
    height: 44px !important;
    border-radius: 16px !important;
  }

  .nav-icon{
    width: 18px !important;
    height: 18px !important;
  }

  .cart-count{
    bottom: 4px !important;
    right: 4px !important;
    font-size: 10px !important;
    padding: 1px 5px !important;
  }

  /* Tooltips off auf Mobile (sonst overflows + touch issues) */
  .nav-btn::before{
    display:none !important;
    content:none !important;
  }
}

/* =========================
   MOBILE NAVBAR: smaller + clickable
========================= */
@media (max-width:900px){

  .ultra-nav{
    left: 50% !important;
    bottom: calc(10px + env(safe-area-inset-bottom)) !important;
    top: auto !important;

    padding: 10px 12px !important;
    gap: 10px !important;
    border-radius: 26px !important;

    /* wichtig: NICHT zu hoch */
    max-height: 64px !important;

    /* fixed bottom bar */
    transform: translateX(-50%) translateY(0) !important;
  }

  .nav-logo{
    width: 42px !important;
    height: 42px !important;
    border-radius: 14px !important;
  }

  .nav-btn{
    width: 44px !important;
    height: 44px !important;
    border-radius: 16px !important;
  }

  .nav-icon{
    width: 18px !important;
    height: 18px !important;
  }

  .cart-count{
    bottom: 4px !important;
    right: 4px !important;
    font-size: 10px !important;
    padding: 1px 5px !important;
  }

  /* Tooltips off auf Mobile (sonst overflows + touch issues) */
  .nav-btn::before{
    display:none !important;
    content:none !important;
  }
}

.products.layout-scrollbar{
  display:flex !important;
  gap:18px;
  overflow-x:auto !important;
  white-space:nowrap !important;
  scroll-snap-type:x mandatory;
  padding-bottom: 6px;
}
.products.layout-scrollbar > *{
  flex: 0 0 280px;
  scroll-snap-align:start;
}

.products.layout-grid{
  display:grid !important;
  overflow: visible !important;
  white-space: normal !important;
  scroll-snap-type:none !important;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap:22px;
}
@media (max-width:900px){
  .products.layout-grid{ grid-template-columns: repeat(2, minmax(0,1fr)); }
}

/* ============================================================
   neXus FOOTER — NEW CSS (WORKS 1:1 WITH YOUR HTML)
   Target: <footer class="footer"> ... bootstrap grid inside
   No mix-blend-mode, no mask-image, no text-loss. Mobile clean.
============================================================ */

/* ---------- Tokens ---------- */
:root{
  --nx-bg0:#050505;
  --nx-bg1:#070707;
  --nx-card: rgba(255,255,255,.04);
  --nx-card2: rgba(255,255,255,.02);
  --nx-border: rgba(255,255,255,.08);
  --nx-border2: rgba(255,255,255,.06);
  --nx-text: rgba(255,255,255,.92);
  --nx-muted: rgba(255,255,255,.62);
  --nx-orange:#f80000;
  --nx-orange2:#ff5a5a;
  --nx-radius: 22px;
}

/* ---------- Footer base ---------- */
footer.footer{
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1200px 520px at 50% 0%, rgba(248,0,0,.10), transparent 60%),
    radial-gradient(900px 420px at 12% 40%, rgba(248,0,0,.08), transparent 62%),
    radial-gradient(900px 420px at 88% 45%, rgba(248,0,0,.06), transparent 62%),
    linear-gradient(180deg, rgba(12,12,12,.92), rgba(6,6,6,.98) 65%, rgba(0,0,0,1));
  border-top: 1px solid var(--nx-border2);
  box-shadow: 0 -30px 110px rgba(0,0,0,.85), inset 0 1px 0 rgba(255,255,255,.03);
  color: var(--nx-text);
  isolation: isolate; /* prevents weird stacking from outside components */
}

/* subtle top laser line */
footer.footer::after{
  content:"";
  position:absolute;
  top:0;
  left:50%;
  transform:translateX(-50%);
  width:min(980px,82%);
  height:2px;
  background: linear-gradient(90deg,
    rgba(248,0,0,0) 0%,
    rgba(248,0,0,.55) 22%,
    rgba(255,120,120,.95) 50%,
    rgba(248,0,0,.55) 78%,
    rgba(248,0,0,0) 100%);
  box-shadow: 0 0 18px rgba(248,0,0,.55), 0 0 44px rgba(248,0,0,.18);
  z-index: 0;
}

/* dot grid overlay (safe) */
footer.footer::before{
  content:"";
  position:absolute;
  inset:-2px;
  background:
    radial-gradient(rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: .14;
  pointer-events:none;
  z-index: 0;
}

/* keep your content above overlays */
footer.footer .container,
footer.footer .row,
footer.footer [class*="col-"]{
  position: relative;
  z-index: 2;
}

/* spacing */
footer.footer .row.py-5{
  padding-top: 64px !important;
  padding-bottom: 54px !important;
  row-gap: 28px;
}

/* ---------- Logo block ---------- */
footer.footer .logo{
  display:flex;
  flex-direction:column;
  gap: 12px;
  padding: 18px 18px;
  border-radius: var(--nx-radius);
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.015));
  border: 1px solid var(--nx-border2);
  box-shadow: 0 18px 60px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.04);
  max-width: 520px;
}

footer.footer .logo img{
  display:block;
  max-height: 44px !important;
  width: auto;
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(0,0,0,.70), 0 0 26px rgba(248,0,0,.14);
}

footer.footer .logo p{
  margin: 0 !important;
  font-weight: 900;
  font-size: 1.25rem;
  letter-spacing: .02em;
  color: var(--nx-text) !important;
  -webkit-text-fill-color: var(--nx-text) !important;
}

/* ---------- Column blocks ---------- */
footer.footer h5{
  margin: 0 0 14px 0;
  font-size: .95rem;
  font-weight: 900;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255,255,255,.88) !important;
  -webkit-text-fill-color: rgba(255,255,255,.88) !important;
  position: relative;
  padding-left: 14px;
}

footer.footer h5::before{
  content:"";
  position:absolute;
  left:0;
  top:1px;
  width: 3px;
  height: 18px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--nx-orange), rgba(255,138,0,.2));
  box-shadow: 0 0 14px rgba(248,0,0,.45);
}

/* list reset */
footer.footer ul.nav{
  margin: 0;
  padding: 0;
}
footer.footer .nav-item{
  list-style: none;
  margin: 0 0 8px 0;
}

/* ---------- Links (always visible) ---------- */
footer.footer a,
footer.footer .nav-link{
  opacity: 1 !important;
  visibility: visible !important;
  filter: none !important;
  color: rgba(255,255,255,.72) !important;
  -webkit-text-fill-color: rgba(255,255,255,.72) !important;
  text-decoration: none !important;
}

footer.footer .nav-link{
  display: inline-flex !important;
  align-items: center;
  gap: 10px;
  padding: 6px 10px !important;
  border-radius: 14px;
  background: transparent;
  border: 1px solid transparent;
  transition: transform .2s ease, background .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease;
  position: relative;
}

/* little orange dot */
footer.footer .nav-link::before{
  content:"";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(248,0,0,.18);
  box-shadow: 0 0 0 rgba(248,0,0,0);
  transition: .2s ease;
}

/* hover */
footer.footer .nav-link:hover{
  color: rgba(255,255,255,.95) !important;
  -webkit-text-fill-color: rgba(255,255,255,.95) !important;
  transform: translateX(6px);
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
  border-color: rgba(248,0,0,.22);
  box-shadow: 0 14px 30px rgba(0,0,0,.50), 0 0 18px rgba(248,0,0,.08);
}
footer.footer .nav-link:hover::before{
  background: rgba(248,0,0,.95);
  box-shadow: 0 0 18px rgba(248,0,0,.45);
}

/* ---------- Socials special look (no HTML change) ---------- */
/* This targets the socials column automatically because it's the last column often,
   but also works if not. It makes socials feel like buttons. */
footer.footer .col-6 .nav-link[target="_blank"]{
  padding: 8px 12px !important;
}
footer.footer .col-6 .nav-link[target="_blank"]::after{
  content:"↗";
  margin-left: 8px;
  font-size: .9em;
  opacity: .65;
}

/* ---------- Mobile ---------- */
@media (max-width: 992px){
  footer.footer .row.py-5{
    padding-top: 54px !important;
    padding-bottom: 44px !important;
  }
}

@media (max-width: 576px){
  footer.footer .row.py-5{
    padding-top: 44px !important;
    padding-bottom: 40px !important;
  }

  footer.footer .logo{
    margin-inline: auto;
    text-align: center;
    align-items: center;
  }

  footer.footer h5{
    text-align: center;
    padding-left: 0;
  }
  footer.footer h5::before{ display:none; }

  footer.footer .nav-link{
    width: 100%;
    justify-content: center;
    transform: none !important;
  }
  footer.footer .nav-link:hover{
    transform: none !important;
  }
}

/* ---------- Safety hard-fix (prevents “text missing” from theme bugs) ---------- */
footer.footer *{
  mix-blend-mode: normal !important;
  text-shadow: none;
}

/* =====================================================
   GLOBAL "FOOTER TO BOTTOM" FIX (works on non-home pages)
   Paste at END of global css
===================================================== */

/* make the page a flex column so footer can stick to bottom */
html, body { height: 100% !important; }

body{
  min-height: 100vh !important;
  display: flex !important;
  flex-direction: column !important;
}

/* your main content wrappers should expand */
main,
#app,
#page,
.page,
.site,
.site-wrapper,
.shop-wrapper,
.product-wrapper,
.container-fluid,
.body,
.content,
.content-wrapper{
  flex: 1 0 auto !important;
}

/* footer stays at bottom */
footer.footer{
  flex: 0 0 auto !important;
  margin-top: auto !important;
  display: block !important;
}

/* IMPORTANT: fixed navbar must not push/crop layout on inner pages */
.ultra-nav{ pointer-events: auto; }
body{ padding-bottom: 0 !important; } /* keep footer in flow */



/* ===============================
   SAFE ENTERPRISE CART STYLE
   DOES NOT BREAK YOUR LOGIC
================================ */

.cart .border.rounded-3,
.cart .border.rounded,
.cart .cart-item-bg {

  background: rgba(255,255,255,0.02) !important;

  border: 1px solid rgba(255,255,255,0.08) !important;

  border-radius: 16px !important;

  transition: all 0.25s ease;

}

.cart .cart-item-bg:hover {

  border-color: #f80000 !important;

  box-shadow: 0 0 20px rgba(248,0,0,0.15);

}

.cart img.object-product-image {

  border-radius: 12px !important;

}

.cart .btn-outline-primary {

  background: linear-gradient(90deg,#f80000,#f80000) !important;

  border: none !important;

  color: black !important;

  border-radius: 12px !important;

  font-weight: 700;

}

.cart .btn-outline-primary:hover {

  box-shadow: 0 0 20px rgba(248,0,0,0.4);

  transform: translateY(-1px);

}

.cart input[type="number"] {

  background: rgba(255,255,255,0.03);

  border: 1px solid rgba(255,255,255,0.08);

  color: white;

}

.cart button:hover {

  border-color: #f80000 !important;

}


/* FIX CART IMAGE SIZE */

.cart .aspect-product-card-image {

  width: 90px !important;
  height: 90px !important;

  min-width: 90px !important;
  max-width: 90px !important;

  flex-shrink: 0;

}

.cart img.aspect-product-card-image {

  width: 90px !important;
  height: 90px !important;

  object-fit: cover;

}

.cart .object-product-image {

  width: 90px !important;
  height: 90px !important;

}

/* ===== Optional: cinematic blurred fill behind the contained image ===== */
#productImageCarousel .carousel-item{
  position: relative;
  background: rgba(0,0,0,0.35);
}

#productImageCarousel .carousel-item::before{
  content:"";
  position:absolute;
  inset:-20px;
  background-image: var(--nx-slide-bg);
  background-size: cover;
  background-position:center;
  filter: blur(18px) saturate(1.1);
  opacity: .35;
  transform: scale(1.08);
}

#productImageCarousel .carousel-item img{
  position: relative;
  z-index: 1;
}
/* ===============================
   NEXUS ORANGE GLOW SCROLLBAR
================================ */

/* width */
::-webkit-scrollbar {
  width: 10px;
}

/* track */
::-webkit-scrollbar-track {
  background: rgba(0,0,0,0.6);
}

/* thumb */
::-webkit-scrollbar-thumb {

  background: linear-gradient(
    180deg,
    #f80000,
    #f80000
  );

  border-radius: 10px;

  box-shadow:
    0 0 6px rgba(248,0,0,0.7),
    0 0 12px rgba(248,0,0,0.5),
    0 0 20px rgba(248,0,0,0.3);

}

/* hover */
::-webkit-scrollbar-thumb:hover {

  background: linear-gradient(
    180deg,
    #f80000,
    #ff4d4d
  );

  box-shadow:
    0 0 10px rgba(248,0,0,0.9),
    0 0 20px rgba(248,0,0,0.7),
    0 0 30px rgba(248,0,0,0.5);

}

/* small JS to set --nx-slide-bg per slide */

::-webkit-scrollbar-thumb {

  background: linear-gradient(
    180deg,
    #f80000,
    #f80000
  );

  border-radius: 10px;

  animation: nexusScrollGlow 2s ease-in-out infinite alternate;

}

@keyframes nexusScrollGlow {

  from {
    box-shadow:
      0 0 6px rgba(248,0,0,0.6),
      0 0 12px rgba(255,140,0,0.4);
  }

  to {
    box-shadow:
      0 0 12px rgba(248,0,0,0.9),
      0 0 25px rgba(248,0,0,0.7);
  }

}