
:root{
  --bg:#0e1116;
  --panel:#151922;
  --text:#e7ecf3;
  --muted:#aab4c3;
  --accentA:#cc5500;
  --accentB:#d46a1f;
  --card:#10141c;
  --shadow: 0 16px 48px rgba(0,0,0,.35);
}
*{box-sizing:border-box}
html,body{margin:0;background:var(--bg);color:var(--text);font:16px/1.45 system-ui,Segoe UI,Roboto,Helvetica,Arial,sans-serif}
a{color:#9fd1ff;text-decoration:none}
a:hover{text-decoration:underline}

/* Top bar */
.bar{position:sticky;top:0;z-index:5;background:#0c1016bd;backdrop-filter:saturate(1.2) blur(8px);border-bottom:1px solid rgba(255,255,255,.06)}
.bar .inner{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:14px 20px;max-width:1200px;margin:0 auto}
.brand{display:flex;align-items:center;gap:12px;font-weight:800}
.brand img.logo{height:54px;display:block}

/* nav */
.nav{display:flex;gap:18px;align-items:center}
.nav a{color:#d9e3f0;opacity:.92}
.cart-link{display:inline-flex;align-items:center;gap:6px;background:rgba(255,255,255,.06);padding:6px 10px;border-radius:9px}


#cart-count{font-weight:800}

/* layout */
.container{max-width:1200px;margin:0 auto;padding:0 20px}
.section{padding:28px 0}
.section-head{display:flex;justify-content:space-between;align-items:center;margin:12px 0 18px}

/* cards */
.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:16px}
.card{background:var(--card);border:1px solid rgba(255,255,255,.06);border-radius:16px;box-shadow:var(--shadow);padding:14px}
.card.hover{transition:transform .2s ease, box-shadow .2s ease}
.card.hover:hover{transform:translateY(-3px);box-shadow:0 24px 64px rgba(0,0,0,.45)}
.card img{width:100%;height:180px;object-fit:cover;border-radius:12px}

/* hero split */
.hero{padding:22px 0 10px}
.hero-grid{display:grid;grid-template-columns:1.1fr 0.9fr;gap:28px;align-items:center}
.logo-hero{height:90px}
.hero-title{font-size:clamp(28px,4.2vw,42px);line-height:1.05;margin:10px 0 6px;font-weight:900}
.hero-title .accent{display:block;background:linear-gradient(90deg,var(--accentA),var(--accentB));-webkit-background-clip:text;background-clip:text;color:transparent}
.hero-sub{color:var(--muted);max-width:52ch}
.btn{display:inline-block;border:none;cursor:pointer;color:white;background:linear-gradient(90deg,var(--accentA),var(--accentB));font-weight:800;padding:12px 18px;border-radius:14px;box-shadow:var(--shadow)}
.btn.secondary{background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.18)}
.btn + .btn{margin-left:10px}

/* table-ish rows */
.title-row{display:flex;justify-content:space-between;align-items:center;margin-top:10px}

.muted{color:var(--muted)}

/* BEFORE & AFTER cards */
.ba-card{position:relative;overflow:hidden;height:280px;border-radius:16px}
.ba-card img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transition:opacity .35s ease, transform .35s ease}
.ba-card img.after{opacity:0}
.ba-card:hover img.after,
.ba-card:focus-within img.after{opacity:1;transform:scale(1.03)}
.ba-card:hover img.before,
.ba-card:focus-within img.before{opacity:.05;transform:scale(1.03)}
.ba-caption{position:absolute;left:10px;bottom:10px;padding:6px 10px;border-radius:10px;background:rgba(0,0,0,.45);backdrop-filter:blur(4px);font-weight:600;border:1px solid rgba(255,255,255,.1)}

/* shop & cart bits */
.product{display:flex;align-items:center;gap:12px}
.product img{width:72px;height:72px;border-radius:10px;object-fit:cover}
.product .title{font-weight:800}
.badge{display:inline-flex;align-items:center;gap:6px;padding:6px 10px;border-radius:10px;background:rgba(255,255,255,.06)}
.action{margin-top:10px}
button.small{padding:8px 10px;border-radius:10px}
.site-footer {
  margin-top: 56px;
  background: #0c1016;
  color: #cfd6e6;
  border-top: 1px solid #1b212c;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 36px 20px;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1.2fr;
  gap: 28px;
}
.logo--footer { height: 28px; }
.footer-blurb { margin-top: 10px; color:#aeb7c9; }

.footer-title {
  font-size: 14px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #8ea0c0;
  margin: 4px 0 10px;
}

.footer-links ul,
.contact-list { list-style:none; padding:0; margin:0; }
.footer-links a { color:#d7deec; text-decoration:none; }
.footer-links a:hover { color:#fff; }

.contact-list li { margin: 6px 0; }
.footer-social { display:flex; gap:12px; margin-top:10px; }
.social {
  display:inline-flex; align-items:center; justify-content:center;
  width:36px; height:36px; border-radius:10px;
  background:#111722; color:#cfd6e6; text-decoration:none;
  border:1px solid #1c2533;
}
.social:hover { color:#fff; background:#172033; }

.footer-news .muted { color:#aeb7c9; margin:0 0 8px; }
.newsletter-wrap { display:flex; gap:8px; }
.newsletter-wrap input {
  flex:1; min-width: 180px;
  background:#0f141d; border:1px solid #223046; color:#e9eefb;
  border-radius:10px; padding:10px 12px;
}
.newsletter-wrap button {
  background: linear-gradient(90deg, var(--accentA, #cc5500), var(--accentB, #d46a1f));
  color:#fff; font-weight:800; border:none; border-radius:10px; padding:10px 14px;
}
.newsletter-wrap button:hover { filter: brightness(1.1); }

.footer-legal {
  border-top: 1px solid #1b212c;
  background: #0a0e13;
}
.legal-inner {
  max-width: 1200px; margin: 0 auto; padding: 14px 20px;
  display:flex; justify-content:space-between; align-items:center; gap:12px;
}
.legal-inner .mini { color:#aeb7c9; text-decoration:none; }
.legal-inner .mini:hover { color:#fff; }

/* Responsive */
@media (max-width: 960px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .footer-inner { grid-template-columns: 1fr; }
  .newsletter-wrap { flex-direction: column; }
  .newsletter-wrap button { width: 100%; }
}
/* === Before/After base === */
.ba {
  position: relative;
  width: 100%;
  max-width: 900px;            /* adjust for your layout */
  aspect-ratio: 16 / 9;        /* keeps a nice shape; remove if you prefer natural height */
  border-radius: 18px;
  overflow: hidden;
  background: #0f1620;         /* fallback bg */
  box-shadow: 0 12px 40px rgba(0,0,0,.45);
  user-select: none;
  -webkit-user-select: none;
}

/* Images fill the frame */
.ba img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Top (before) is clipped by width (%) */
.ba-clip {
  position: absolute;
  inset: 0;
  width: 50%;                  /* default split */
  overflow: hidden;
  pointer-events: none;
}

/* Divider line */
.ba-divider {
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  width: 2px;
  background: rgba(255,255,255,.75);
  box-shadow: 0 0 0 1px rgba(0,0,0,.25);
  pointer-events: none;
}

/* Handle button */
.ba-handle {
  position: absolute;
  left: calc(50% - 16px);
  top: 50%;
  transform: translateY(-50%);
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.9);
  background: rgba(20,26,34,.7);
  box-shadow: 0 3px 10px rgba(0,0,0,.35);
  cursor: ew-resize;
}

/* Hidden native range but still accessible */
.ba-slider {
  position: absolute;
  inset: 0;
  opacity: 0;
  width: 100%; height: 100%;
  cursor: ew-resize;
}

/* Optional: label badge in the top-left */
.ba::before {
  content: "Before  ⟷  After";
  position: absolute;
  left: 10px; top: 10px;
  font: 600 12px/1.2 system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #fff;
  background: rgba(0,0,0,.45);
  padding: 6px 8px;
  border-radius: 8px;
  letter-spacing: .2px;
}

/* Touch improvements */

.ba {
  width: 100%;
  max-width: 2500px;
  height: 300px;       /* override height */
  aspect-ratio: auto;  /* disable ratio lock */
}

/* Responsive before/after using clip-path (percent-based) */
.ba2{
  --split: 50%;                /* % of width to show from the left */
  position: relative;
  width: 100%;
  max-width: 1200px;           /* adjust as you like */
  aspect-ratio: 16 / 9;        /* keeps shape; remove + set a fixed height if preferred */
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0,0,0,.45);
}

/* Both images are *identically* positioned and sized */
.ba2 img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;           /* both fill the box the same way */
}

/* BEFORE sits on top and is revealed by clip-path (percent = fully responsive) */
.ba2-before{
  z-index: 1;
  clip-path: inset(0 calc(100% - var(--split)) 0 0);  /* top right bottom left */
}

/* Divider line (optional) */
.ba2::before{
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  left: var(--split);
  width: 2px;
  transform: translateX(-50%);
  background: rgba(255,255,255,.7);
  box-shadow: 0 0 0 1px rgba(0,0,0,.25);
  z-index: 2;
}

/* Range overlays the whole slider; native drag works on touch + mouse */
.ba2-range{
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  opacity: 0;                  /* hidden but interactive */
  cursor: ew-resize;
  z-index: 3;
}
/* Make the range thumb visible as a knob */
.ba2-range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  background: transparent;
  -webkit-appearance: none;
  appearance: none;
  cursor: ew-resize;
  opacity: 1;  /* <-- show it instead of hiding */
}

/* Chrome / Safari */
.ba2-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #333;
  box-shadow: 0 2px 6px rgba(0,0,0,.4);
  cursor: ew-resize;
}

/* Firefox */
.ba2-range::-moz-range-thumb {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #333;
  box-shadow: 0 2px 6px rgba(0,0,0,.4);
  cursor: ew-resize;
}

/* ===== Footer tidy (force colors + spacing) ===== */
footer { color:#c9c9cc; font-size:15px; line-height:1.6; }
footer .footer-inner { max-width:1200px; margin:0 auto; padding:40px 16px; }
footer .footer-grid { display:grid; grid-template-columns:1.2fr 1fr 1fr; gap:24px; }
@media (max-width: 900px){ footer .footer-grid{ grid-template-columns:1fr; } }
footer a:link, footer a:visited { color:#a887ff; text-decoration:none; }
footer a:hover, footer a:focus { text-decoration:underline; }
footer ul { margin:0; padding-left:20px; }
footer li { margin:4px 0; }

/* ===== Before/After slider (robust) ===== */
.before-after { position:relative; width:100%; }
.before-after img { position:absolute; inset:0; width:100%; height:auto; display:block; }
.before-after input[type="range"] { position:absolute; left:10%; right:10%; bottom:12px; width:80%; z-index:3; }
/* If height collapses, uncomment one:
   .before-after { padding-top:56%; }   16:9
   .before-after { padding-top:75%; }   4:3
*/

/* ---------- General image safety ---------- */
img{max-width:100%; height:auto}

/* Hero/logo cap so it doesn't blow up on subpages */
.logo-hero{max-width:260px; width:100%; height:auto}

/* ---------- Mobile menu using .hamburger + #mainnav ---------- */
.hamburger{
  display:none; border:0; background:#182130; color:#e9f1ff;
  padding:10px 14px; border-radius:10px; cursor:pointer;
}

/* desktop keeps nav inline; mobile collapses */
@media (max-width:900px){
  .hamburger{display:inline-block}

  /* hide the panel by default on mobile */
  #mainnav{
    position:fixed; left:0; right:0; top:56px;
    background:#101720; border-top:1px solid #1e2a38;
    display:none !important;    /* important beats any older rules */
    flex-direction:column; gap:0; z-index:1000;
  }

  #mainnav a{
    padding:14px 18px;
    border-bottom:1px solid #0f1620;
    text-decoration:none; color:#e9f1ff;
  }
  #mainnav a:last-child{border-bottom:none}

  /* when JS toggles .open we show it */
  #mainnav.open{display:flex !important}

  /* lock scroll when menu is open */
  body.menu-open{overflow:hidden}
}
/* === FINAL MOBILE MENU FIX === */
@media (max-width: 900px) {
  /* hide nav and add transition */
  #mainnav {
    display: none !important;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(16,23,32,0.96);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding-top: 70px;
    z-index: 2000;
    transition: opacity .3s ease;
  }

  /* links */
  #mainnav a {
    display: block;
    width: 100%;
    padding: 16px 24px;
    font-size: 1.1rem;
    color: #e9f1ff;
    text-decoration: none;
    border-bottom: 1px solid #1e2a38;
  }
  #mainnav a:hover { background:#ff7a1a; color:#101720; }

  /* when opened */
  #mainnav.open {
    display: flex !important;
    opacity: 1;
  }

  .hamburger {
    position: fixed;
    top: 14px;
    right: 16px;
    z-index: 2100;
    background: #182130;
    color: #ff7a1a;
    border: 2px solid #ff7a1a;
    border-radius: 8px;
    padding: 10px 12px;
    cursor: pointer;
  }

  body.menu-open { overflow: hidden; }
}
/* Mobile menu */
@media (max-width:900px){
  .hamburger{display:inline-flex;align-items:center;justify-content:center;padding:10px}
  #mainnav{
    position:fixed; left:0; right:0; top:56px;
    background:#101720; border-top:1px solid #1e2a38;
    display:none !important; flex-direction:column; gap:0; z-index:1000;
  }
  #mainnav a{padding:14px 18px; border-bottom:1px solid #0f1620; text-decoration:none; color:#e9f1ff}
  #mainnav.open{display:flex !important}
  body.menu-open{overflow:hidden}
}
/* ---- Mobile nav + header fixes (safe, additive) ---- */

/* Make all logos/images respect their container (prevents huge renders) */
img { max-width: 100%; height: auto; }

/* Consistent logo size everywhere */
.logo,
.logo-xl { max-width: 260px; width: 100%; height: auto; }

/* Burger is hidden on desktop */
.hamburger {
  display: none;
  position: absolute;
  right: 16px;
  top: 18px;
  background: #182130;
  color: #e9f1ff;
  border: 1px solid #2a3a50;
  border-radius: 12px;
  padding: 8px 12px;
  font-weight: 700;
  cursor: pointer;
  z-index: 2001;
}

/* Container gets a bit of right padding so the button doesn't overlap */
.bar--gallery .inner { position: relative; padding-right: 72px; }

/* Mobile layout */
@media (max-width: 900px) {
  /* Hide the full nav by default on mobile */
  #mainnav { display: none; }

  /* Show hamburger */
  .hamburger { display: inline-flex; align-items: center; gap: 8px; }

  /* When menu is open, show the nav */
  body.menu-open #mainnav { display: block; }

  /* Turn the nav into a full-screen overlay sheet */
  #mainnav {
    position: fixed;
    inset: 0;
    background: rgba(16, 22, 28, 0.96);
    z-index: 2000;
    padding-top: 72px;
    overflow: auto;
  }

  /* Vertical list links */
  #mainnav a {
    display: block;
    width: 100%;
    padding: 14px 24px;
    border-bottom: 1px solid #1e2a38;
    color: #e9f1ff;
    text-decoration: none;
    font-weight: 600;
  }
  #mainnav a:last-child { border-bottom: 0; }

  /* Prevent the page behind from scrolling while menu is open */
  body.menu-open { overflow: hidden !important; }
}
/* Cart link styling */
.nav .cart-link{
  position:relative;
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:6px 8px;
  text-decoration:none;
  color:var(--text, #e9f1ff);
}

/* SVG icon (or emoji) */
.cart-icon{ width:22px; height:22px; color:var(--text, #e9f1ff); opacity:.95; }
.cart-emoji{ font-size:20px; line-height:1; }

/* Badge number */
.cart-badge{
  position:absolute;
  top:-6px;
  right:-8px;
  min-width:18px;
  height:18px;
  padding:0 4px;
  border-radius:999px;
  background:var(--accent, #ff7a1a);
  color:#000;
  font:700 12px/18px system-ui,-apple-system,Segoe UI,Roboto,sans-serif;
  text-align:center;
}

/* Optional: push cart to end on mobile if desired */
@media (max-width:900px){
  .nav .cart-link{ margin-left:auto; }
}
/* sticky header, sane z-index */
.bar{position:sticky; top:0; z-index:1000}

/* cart link alignment */
.cart-link{display:inline-flex; align-items:center; gap:.35rem}
.icon-cart{width:18px; height:18px; vertical-align:-2px}

/* mobile menu animation */
@media (max-width:900px){
  #mam-mainnav{
    position:fixed; inset:64px 0 0; /* below header */
    background:rgba(16,23,31,.96);
    display:block; padding:16px;
    transform:translateY(-100%);
    transition:transform .2s ease;
  }
  #mam-mainnav.open{ transform:none; }
  body.menu-open{ overflow:hidden; }
}
/* --- Global image safety net --- */
img { max-width: 100%; height: auto; }

/* Hero/logo sizing everywhere (desktop + mobile) */
.logo,
.logo-xl,
.logo-hero,
img.logo,
img.logo--xl {
  max-width: 260px;      /* cap size so it never explodes */
  width: 100%;
  height: auto;
}

/* Header bar & mobile menu consistency */
.bar { position: sticky; top: 0; z-index: 1000; }
body.menu-open { overflow: hidden; }
#mam-mainnav.open { display: block; }
@media (max-width: 900px){
  #mam-mainnav { display: none; }
}
/* --- Mobile: make the hero before/after slider nice and big --- */
@media (max-width: 700px) {
  /* Put the slider on its own row and let it span full width */
  .hero .card {
    width: 100%;
    max-width: none;       /* remove any desktop cap */
    margin: 16px 0 28px;   /* space around it */
  }

  /* The slider wrapper (yours is #ba-wrap) */
  #ba-wrap {
    width: 100%;
    /* keep a good shape; choose the one you prefer: */
    aspect-ratio: 16 / 10;        /* most modern browsers */
    /* fallback if aspect-ratio is ignored: */
    height: min(62vw, 360px);
  }

  /* Images inside the slider */
  #ba-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;     /* crop gracefully if needed */
    display: block;
  }

  /* Make the drag handle easier to hit with a thumb */
  #ba-handle {
    width: 4px;
  }
  #ba-handle > div {
    width: 32px;
    height: 32px;
    left: -16px;           /* keep it centered on the bar */
  }
}
/* --- Enhanced mobile slider sizing (fuller and taller) --- */
@media (max-width: 700px) {
  /* Full-width hero area */
  .hero .card,
  #ba-wrap {
    width: 100vw;
    max-width: 100%;
    margin-left: 50%;
    transform: translateX(-50%);
    aspect-ratio: 4/3;          /* Taller than 16:10 */
    height: auto;
    min-height: 300px;            /* Ensures visibility */
  }

  /* Make sure slider images scale up nicely */
  #ba-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  /* Center handle + better touch area */
  #ba-handle {
    width: 5px;
  }
  #ba-handle > div {
    width: 36px;
    height: 36px;
    left: -18px;
  }
}
/* --- Mobile: make the hero before/after slider nice and big --- */
@media (max-width: 700px) {
  /* Put the slider on its own row and let it span full width */
  .hero .card {
    width: 100%;
    max-width: none;       /* remove any desktop cap */
    margin: 16px 0 28px;   /* space around it */
  }

  /* The slider wrapper (yours is #ba-wrap) */
  #ba-wrap {
    width: 100%;
    /* keep a good shape; choose the one you prefer: */
    aspect-ratio: 16 / 10;        /* most modern browsers */
    /* fallback if aspect-ratio is ignored: */
    height: min(62vw, 360px);
  }

  /* Images inside the slider */
  #ba-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;     /* crop gracefully if needed */
    display: block;
  }

  /* Make the drag handle easier to hit with a thumb */
  #ba-handle {
    width: 4px;
  }
  #ba-handle > div {
    width: 32px;
    height: 32px;
    left: -16px;           /* keep it centered on the bar */
  }
}
/* --- Mobile: larger hero slider, menu-safe --- */
@media (max-width: 700px) {
  /* Edge-to-edge card, centered in the viewport */
  .hero .card {
    margin: 16px calc(-50vw + 50%);   /* full-bleed without affecting layout */
    width: 100vw;
    max-width: 100%;
    border-radius: 14px;
  }

  /* Slider box itself (the element that wraps the 2 images + handle) */
  #ba-wrap {
    width: 100%;
    height: 60vh;             /* <-- Taller hero feel; change to 70vh if you want */
    min-height: 320px;        /* keeps it big on small phones */
    aspect-ratio: auto;       /* let the explicit height win */
    overflow: hidden;
    border-radius: 14px;
  }

  /* Make the images fill that bigger box cleanly */
  #ba-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  /* Slightly larger touch target for the handle */
  #ba-handle { width: 5px; }
  #ba-handle > div {
    width: 36px;
    height: 36px;
    left: -18px;
  }
}
/* --- Full-hero before/after slider on mobile (menu-safe) --- */
@media (max-width: 700px) {
  /* Keep hero layout consistent but allow the slider to dominate */
  .hero {
    padding-top: 0;              /* remove excess spacing */
  }

  .hero .card {
    margin: 0;
    width: 100vw;
    max-width: 100%;
    border-radius: 0;
  }

  /* Slider area: fills most of the viewport height */
  #ba-wrap {
    width: 100%;
    height: 82vh;                /* takes 82% of screen height */
    min-height: 400px;           /* ensures visibility on small phones */
    overflow: hidden;
  }

  /* Images inside the slider */
  #ba-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  /* Keep the handle big for touch */
  #ba-handle {
    width: 6px;
  }

  #ba-handle > div {
    width: 40px;
    height: 40px;
    left: -20px;
  }

  /* Ensure text (below the slider) doesn't overlap */
  .hero .container {
    margin-top: 2vh;
  }
}
/* --- Full-hero before/after slider on mobile (fixed scaling) --- */
@media (max-width: 700px) {

  .hero {
    padding-top: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  /* The card (slider container) should fill most of the viewport */
  .hero .card {
    width: 100%;
    max-width: 100%;
    height: auto;
    margin: 0;
    border-radius: 0;
  }

  /* Slider wrapper — now full width, tall, and proportional */
  #ba-wrap {
    position: relative;
    width: 90vw;
    max-width: 500px;
    aspect-ratio: 4 / 3;       /* keep natural proportions */
    height: auto;
    border-radius: 16px;
    overflow: hidden;
    margin: 1rem auto;
  }

  #ba-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  /* Handle adjustments for touch usability */
  #ba-handle {
    width: 4px;
  }

  #ba-handle > div {
    width: 36px;
    height: 36px;
    left: -18px;
  }
}
/* ------- Mobile hero + menu fixes ------- */
@media (max-width: 700px) {
  /* Keep the header/menu above the page */
  .bar,
  .site-header {
    position: sticky;     /* you already had this behavior */
    top: 0;
    z-index: 2000;        /* higher than the slider */
  }

  /* Make the hero a simple stacked layout on mobile */
  .hero {
    padding-top: 12px;    /* breathing room under the sticky header */
  }

  /* If your hero uses a grid, turn it into a single column on phones */
  .hero-grid,
  .hero .container,
  .container.hero-grid {
    display: grid;
    grid-template-columns: 1fr !important;
    gap: 16px;
    align-items: start;
  }

  /* The card/slider lives in normal flow and adds space below itself */
  .hero .card {
    width: 100%;
    max-width: 100%;
    height: auto;
    margin: 0 auto 16px;  /* ensures text never sits under it */
    border-radius: 0;
  }

  /* Slider wrapper: wide, centered, and *in* the flow */
  #ba-wrap {
    position: relative;   /* in flow */
    width: 92vw;
    max-width: 600px;
    aspect-ratio: 4 / 3;  /* natural landscape proportion */
    height: auto;
    margin: 0 auto;       /* center */
    border-radius: 16px;
    overflow: hidden;
    z-index: 0;           /* below the header/menu overlay */
  }

  /* Make sure the images fill the wrapper */
  #ba-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  /* Handle size for touch */
  #ba-handle { width: 4px; }
  #ba-handle > div { width: 36px; height: 36px; left: -18px; }
}

/* When the mobile menu is open, keep it on top and prevent background overlap */
body.menu-open .bar,
body.menu-open .site-header {
  z-index: 3000;
}
/* ------------------------------
   Mobile menu + slider refinements
   ------------------------------ */
@media (max-width: 700px) {

  /* Header spacing so the hamburger + brand have room */
  .bar .inner,
  .site-header .inner {
    padding: 10px 16px;
  }

  /* Position the dropdown menu full-width under the bar */
  #mam-mainnav,
  .nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 60px;                        /* sits below the header bar */
    background: #0f151f;              /* same dark as site */
    border-top: 1px solid rgba(215,227,255,.08);
    display: none;                    /* hidden by default */
    z-index: 2500;
  }
  .nav.open { display: block; }

  /* Comfortable, non-squashed link rows */
  .nav a,
  .nav .cart-link {
    display: block;
    padding: 14px 18px;
    border-bottom: 1px solid rgba(215,227,255,.06);
    text-align: left;
  }
  .nav a:last-child,
  .nav .cart-link:last-child { border-bottom: 0; }

  /* Keep the hamburger on the right in the header */
  .hamburger {
    position: absolute;
    right: 16px;
    top: 10px;
  }

  /* --- Hero / slider centering --- */

  /* Make the hero card breathe and stay centered */
  .hero .card {
    margin: 8px auto 20px;
    padding-inline: 16px;             /* keeps it off the hard left edge */
    max-width: calc(100vw - 32px);    /* respects the side padding */
  }

  /* Center the sliding wrapper itself */
  #ba-wrap {
    margin: 0 auto;
    width: 100%;
    max-width: 600px;
    aspect-ratio: 4 / 3;
    border-radius: 16px;
    overflow: hidden;
  }

  #ba-wrap img { width: 100%; height: 100%; object-fit: cover; }

  /* Handle remains easy to grab */
  #ba-handle { width: 4px; }
  #ba-handle > div { width: 36px; height: 36px; left: -18px; }
}

/* Keep the header above everything, especially when menu is open */
.bar, .site-header { z-index: 2600; }
body.menu-open .bar, body.menu-open .site-header { z-index: 3000; }
/* --- Mobile: center the before/after slider --- */
@media (max-width: 700px) {
  /* Add side padding to the hero so nothing touches the edges */
  .hero,
  .hero .container,
  .hero .hero-grid { padding-left: 16px; padding-right: 16px; }

  /* Make the card itself center and respect the viewport */
  .hero .card {
    margin-left: auto;
    margin-right: auto;
    max-width: calc(100vw - 32px); /* 16px padding on both sides */
  }

  /* Center the slider wrapper by ID/class (cover all variants) */
  #ba-wrap,
  #heroBA,
  .ba-wrap {
    width: min(600px, 100%);        /* don’t exceed the viewport */
    max-width: calc(100vw - 32px);  /* same side padding as hero */
    margin-left: auto !important;
    margin-right: auto !important;
    display: block;                 /* ensure it can be centered */
  }

  /* Images fill the wrapper cleanly */
  #ba-wrap img,
  #heroBA img,
  .ba-wrap img {
    width: 100%;
    height: auto;
    object-fit: cover;
  }
}
/* --- MOBILE: center the hero slider inside its card --- */
@media (max-width: 700px) {
  /* Center the contents of the hero card */
  .hero .card {
    display: flex;                 /* let us center children */
    justify-content: center;       /* horizontally center */
    align-items: center;           /* nice vertical alignment */
    padding: 12px;                 /* small breathing room */
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    max-width: calc(100vw - 32px); /* keep 16px gutters */
  }

  /* The actual slider wrapper (cover common IDs/classes) */
  #ba-wrap,
  #heroBA,
  .ba-wrap {
    width: 100%;
    max-width: 600px;              /* cap actual slider width */
    margin-inline: auto !important;
    display: block;
  }

  /* Make sure the images fully fill the slider wrapper */
  #ba-wrap img,
  #heroBA img,
  .ba-wrap img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
  }
}
/* === Mobile: center the hero slider card & its contents === */
@media (max-width: 700px) {
  /* Make the hero card a centered flex box */
  .hero .card {
    display: flex;                 /* let us center the slider */
    justify-content: center;
    align-items: center;
    width: min(100%, 92vw);        /* keep nice side gutters */
    max-width: 600px;              /* don't get too wide */
    margin: 16px auto !important;  /* truly center the card */
    padding: 12px;
    float: none !important;        /* kill any old float */
    clear: both;                   /* avoid wrapping weirdness */
  }

  /* Ensure the slider wrapper fills the card and is centered */
  #ba-wrap,
  #heroBA,
  .ba-wrap {
    width: 100%;
    max-width: 600px;
    margin-inline: auto !important;
    display: block;
    aspect-ratio: 16 / 9;          /* keeps a solid height */
  }

  /* Images should fully cover the wrapper */
  #ba-wrap img,
  #heroBA img,
  .ba-wrap img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
  }

  /* In case the grid was keeping a two-column memory */
  .hero-grid {
    display: grid;
    grid-template-columns: 1fr !important;
  }
}
/* === Mobile: force the hero slider itself to center === */
@media (max-width: 700px) {

  /* 1) Make the hero grid center its children */
  .hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    justify-items: center;           /* center the card */
  }

  /* 2) Center the dark card and make it a centering flex box */
  .hero .card {
    margin: 16px auto !important;    /* truly center the card */
    width: min(92vw, 600px);
    display: flex;                   /* so we can center its child */
    justify-content: center !important;
    align-items: center;
    float: none !important;
    clear: both;
    position: relative;
  }

  /* 3) Center the SLIDER WRAPPER inside the card,
        no matter which id/class is present */
  #ba-wrap,
  #heroBA,
  .ba-wrap {
    display: block;
    width: 100%;
    max-width: 560px;                /* the slider’s own max width */
    margin-left: auto !important;    /* <-- key: center the wrapper */
    margin-right: auto !important;
    aspect-ratio: 16 / 9;            /* stable height on mobile */
  }

  /* 4) Make sure its images fill that wrapper nicely */
  #ba-wrap img,
  #heroBA img,
  .ba-wrap img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
  }
}
/* === Mobile: hard-center the hero slider, guaranteed === */
@media (max-width: 700px) {

  /* 1) One column and center children */
  .hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    justify-items: center !important;
  }

  /* 2) The dark card becomes a centering flex box */
  .hero .card {
    width: 100% !important;
    margin: 16px auto !important;      /* center the card block */
    padding: 16px;
    display: flex !important;          /* center its child */
    justify-content: center !important;
    align-items: center !important;
    float: none !important;             /* kill any float */
    position: relative !important;
    box-sizing: border-box;
  }

  /* 3) Center the actual slider wrapper (whatever id/class it has) */
  #ba-wrap,
  #heroBA,
  .ba-wrap {
    width: 92vw !important;             /* responsive width */
    max-width: 560px !important;        /* don’t grow too big */
    margin-left: auto !important;       /* center horizontally */
    margin-right: auto !important;
    float: none !important;
    position: relative !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;
    display: block !important;
    aspect-ratio: 16 / 9;               /* stable height */
  }

  /* 4) Make its images fill that space cleanly */
  #ba-wrap img,
  #heroBA img,
  .ba-wrap img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    display: block;
  }
}
