

/* ================= HERO (FULL, UPDATED) ================= */

.hero { position: relative; margin:  sixteen px 0 28px; z-index: 10; }
.hero.container { max-width: 1488px; margin: 40px auto 28px; padding: 0; }

.hero__viewport { position: relative; overflow: visible; }

/* Stage: predictable stacking */
.hero__stage {
  position: relative;
  height: 360px;
  border-radius: 20px;
  overflow: hidden;
  background: #fff;
  isolation: isolate;              /* stable z-index world */
}

/* Slides */
.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease-in-out;
  z-index: 1;
  cursor: pointer;                 /* show hand cursor on the whole slide */
  -webkit-user-select: none; user-select: none;
}
.hero__slide.is-active { opacity: 1; pointer-events: auto; z-index: 2; }

/* Full-bleed link (kept under controls/dots) */
.hero__bg-link {
  position: absolute;
  inset: 0;
  display: block;
  cursor: pointer;
  z-index: 1;                      /* keep under controls/dots */
}
.hero__bg-link picture,
.hero__bg-link img { width: 100%; height: 100%; display: block; }
.hero__bg-link img { object-fit: cover; object-position: center; }

/* Controls */
.hero__controls {
  position: absolute;
  right: 16px;
  bottom: 16px;
  display: flex;
  gap: 8px;
  align-items: center;
  z-index: 10002;                  /* guarantee above everything in stage */
  pointer-events: auto;
  transform: translateZ(0);        /* stabilizes hit-testing */
}
.hero__controls .hero__nav,
.hero__controls .hero__pause {
  width: 36px; height: 36px; border-radius: 50%; border: none; outline: none;
  background: #ffffff5c; color: #333;
  display: inline-flex; align-items: center; justify-content: center;
  line-height: 1; cursor: pointer;
  box-shadow: 0 1px 6px rgba(0,0,0,.10);
  transition: transform .15s, box-shadow .15s, background-color .15s;
  font-size: 0;
  position: relative;
  z-index: 10003;
}
.hero__controls button img{
  width:18px; height:18px; display:block;
  pointer-events:none;             /* clicks hit the BUTTON, not the IMG */
}
.hero__controls .hero__nav:hover,
.hero__controls .hero__pause:hover { box-shadow: 0 2px 10px rgba(0,0,0,.12); background: #fff; }
.hero__controls .hero__nav:active,
.hero__controls .hero__pause:active { transform: scale(.98); }

/* Dots (also OVER the link) */
.hero__dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: -24px;
  position: relative;
  z-index: 10001;                  /* above bg link */
  pointer-events: auto;
}
.hero__dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: transparent !important;
  border: 1.5px solid rgba(0,0,0,.35) !important;
  cursor: pointer; padding: 0;
  border-color: #e50e10 !important;
}
.hero__dot.is-active { background: #e50e10 !important; border-color: #e50e10 !important; }

/* Mobile layout */
@media (max-width: 980px) {
  .hero.container { padding-left: 16px; padding-right: 16px; }
  .hero__stage {
    height: auto; aspect-ratio: 6 / 5;
    border-radius: 20px; background: #fff; overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,.06);
  }
  .hero__bg-link img { object-fit: contain; background: #fff; }
  .hero__controls { display: none !important; }
  .hero__dots { width: 100%; justify-content: center; gap: 8px; margin-top: 12px; }
  .hero__dot { width: 8px; height: 8px; border-width: 1px !important; }
}

/* Gestures: allow vertical scroll (keeps horizontal swipe available) */
[data-hero] { touch-action: pan-y; }

/* Desktop-only: prevent image/link dragging; let slide handle the click */
@media (pointer: fine) {
  [data-hero] img,
  [data-hero] a {
    -webkit-user-drag: none;
    user-drag: none;               /* widely supported non-standard */
    -webkit-user-select: none;
    user-select: none;
  }

  /* The background link won’t intercept—JS handles click on slide */
  [data-hero] .hero__bg-link { pointer-events: none !important; }

  /* Also keep the image from grabbing the cursor “drag” target */
  [data-hero] .hero__bg-link img { pointer-events: none; }
}

/* Mobile keeps native link taps/swipes */
@media (pointer: coarse) {
  [data-hero] .hero__bg-link { pointer-events: auto; }
}

/* Controls must always receive clicks (even if an ancestor had pointer-events:none) */
[data-hero] .hero__controls,
[data-hero] .hero__controls * { pointer-events: auto !important; }

/* Keep vertical scroll smooth on iOS; ensure swipe works even when finger starts on the image/link */
.hero__stage,
.hero__bg-link,
[data-hero] {
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
}





/* ========== EMEGA CTA SECTION ========== */

/* === eMega CTA — compact width/height === */
.emega-cta{
  margin: 50px 0;           /* a bit tighter gap */
  padding: 0 45px;
}

.emega-cta__inner{
  max-width: 1488px;        /* 👈 narrower (try 980–1080 if you want) */
  margin: 0 auto;
  background: #e50e10;
  color: #FFFAFA;
  border-radius: 16px;
  padding: 28px;       /* shorter */
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.emega-cta__title{
  font-weight: 700;
  font-size: 1.5rem;
  height: auto;
  line-height: 2rem;
}

.emega-cta__sub{ 
    
    font-size: .875rem;
    line-height: 1.25rem;
    margin-top: 4px;
    
}

/* button */
.emega-cta__button{
  display: inline-block;
  align-items: center;
  justify-content: center;
  line-height: 1.25;
  padding: 10px 20px;        /* smaller */
  border-radius: 999px;
  background: #FFFAFA;
  color: #000000;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  text-align: center;
}

/* keep desktop as-is; only change small screens */
@media (max-width: 768px){
  .emega-cta{ margin: 20px 0; padding: 0 16px; }

  .emega-cta__inner{
    display: flex;
    flex-direction: column;       /* stack text above button */
    align-items: flex-start;      /* left-align content */
    padding: 16px;
    gap: 12px;
  }

  .emega-cta__copy{ max-width: 28ch; }       /* match compact card feel */
  .emega-cta__title{
    font-size: 1.25rem;                       /* ~20px */
    line-height: 1.3;
    margin: 0;
  }
  .emega-cta__sub{
    margin: 2px 0 0 0;
    font-size: .9rem;
    line-height: 1.3;
  }

  .emega-cta__button{
    margin-top: 6px;
    padding: 10px 16px;
    width: auto;                 /* keep pill size */
    align-self: flex-end;        /* sit on the right edge, like the ref */
  }
}

/* tiny phones */
@media (max-width: 380px){
  .emega-cta__copy{ max-width: 24ch; }
  .emega-cta__button{ align-self: stretch; text-align: center; } /* full-width if too tight */
}

/* link appearance in the title (keeps white) */
.emega-cta__title-link{ color: inherit; text-decoration: none; }
.emega-cta__title-link:hover{ text-decoration: underline; }
.emega-cta__title-link:focus-visible{ outline: 2px solid #FFFAFA; outline-offset: 2px; border-radius: 6px; }





/* Recently Viewed — pointer-events safe + desktop drag */

/* 0) Global hard reset for RV tree: everything interactive by default */
.emega-rv, .emega-rv *{
  pointer-events:auto; /* reset any inherited 'none' */
}

/* Container */
.emega-rv{
  max-width:1488px;
  margin:0 auto 100px;
  position:relative;
  isolation: auto;                  /* own stacking context */
  contain:layout paint;               /* safer first-paint hit-testing */
  z-index: 0 !important;           /* lift above stray overlays */
  transform: none;            /* its own GPU layer for hit-test */
}

.emega-rv__a{ z-index:1; }

.emega-rv__hd{
  margin:0 8px 10px;
  font-size:clamp(18px,2vw,22px);
  font-weight:600;
  line-height:1.2;
}

/* Viewport */
.emega-rv__viewport{
  position:relative;
  z-index:1;                          /* above any zero-z sibling layers */
  overflow:hidden;
  overscroll-behavior-x:contain;
}

/* Track */
.emega-rv__track{
  position:relative;
  z-index:1;                          /* keep below links, above base */
  display:flex;
  gap:0;
  overflow-x:auto;                    /* native swipe */
  -webkit-overflow-scrolling:touch;
  scroll-behavior:auto;               /* don’t smooth user drag */
  touch-action:pan-x;
  -webkit-tap-highlight-color:transparent;
  cursor:grab;
  will-change:scroll-position;
}
.emega-rv__track:active,
.emega-rv__track.is-dragging{ cursor:grabbing; }
.emega-rv__track::-webkit-scrollbar{ display:none; }

@media (pointer:fine){
  .emega-rv__track{ touch-action:pan-x; }
}

/* Mobile hardening */
@media (pointer:coarse){
  .emega-rv,
  .emega-rv__viewport,
  .emega-rv__track{ touch-action:pan-x !important; }
  .emega-rv__track{
    overflow-x:scroll !important;
    -webkit-overflow-scrolling:touch !important;
  }
  .emega-rv__a,
  .emega-rv__imgwrap,
  .emega-rv__imgwrap img{
    touch-action:pan-x !important;
    -webkit-user-select:none; user-select:none;
    -webkit-touch-callout:none;
  }
}

/* Cards */
.emega-rv__card{
  flex:0 0 20%;
  margin:0;
  min-width:0;
}
@media (max-width:768px){
  .emega-rv__card{ flex:0 0 50%; }
}
.emega-rv__card.is-hidden{ display:none !important; }

/* Anchor (card) — the click target */
.emega-rv__a{
  position:relative;
  z-index:1 !important;               /* sit above track */
  display:flex;
  flex-direction:column;
  gap:12px;
  height:100%;
  padding:10px 6px;
  background:transparent;
  border:none;
  border-radius:14px;
  text-decoration:none;
  color:inherit;
  -webkit-tap-highlight-color:transparent;
  -webkit-user-select:none; user-select:none;
  transition: box-shadow .15s ease, transform .06s ease;
  pointer-events:auto !important;     /* belt-and-suspenders */
}
.emega-rv__a:focus-visible{
  outline:2px solid #111;
  outline-offset:2px;
}

/* Image area — ONLY things with pointer-events:none (so click hits <a>) */
.emega-rv__imgwrap{
  display:flex;
  align-items:center;
  justify-content:center;
  height:180px;
  background:transparent;
  border-radius:12px;
  overflow:hidden;
  pointer-events:none;
}
.emega-rv__imgwrap img{
  max-width:100%; max-height:100%;
  width:auto; height:auto; display:block;
  object-fit:contain;
  -webkit-user-drag:none; user-drag:none;
  -webkit-user-select:none; user-select:none;
  pointer-events:none;
}

/* Title + hover */
.emega-rv__t{
  margin:0;
  font-weight:600;
  font-size:14px;
  line-height:1.32;
  color:#111;
  min-height:calc(1.32em * 3);
  display:-webkit-box;
  -webkit-line-clamp:3;
  -webkit-box-orient:vertical;
  overflow:hidden;
  transition: color .18s ease;
}
.emega-rv__a:hover .emega-rv__t,
.emega-rv__a:focus-visible .emega-rv__t{
  color:#e50e10;
  text-decoration:underline;
}

/* Price */
.emega-rv__p{
  margin-top:auto;
  margin-bottom:2px;
  font-weight:700;
  font-size:15px;
  color:#111;
  letter-spacing:.1px;
}

/* Arrows */
.emega-rv__arrow{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  width:36px; height:36px;
  border:none; border-radius:18px;
  background:#000; color:#fff;
  opacity:.85; cursor:pointer;
  z-index: 10 !important;                          /* above links */
  pointer-events:auto !important;                /* remain clickable */
}
.emega-rv__arrow[disabled]{ opacity:.35; cursor:default; }
.emega-rv__arrow--prev{ left:4px; }
.emega-rv__arrow--next{ right:4px; }
@media (max-width:768px){
  .emega-rv__arrow{ width:32px; height:32px; border-radius:16px; }
}
.emega-rv__arrow:focus-visible{
  outline:2px solid #000;
  outline-offset:2px;
}




/* =========================================
   CIRCLE CAROUSEL — CONTAINER / LAYOUT
========================================= */
.emega-circle-carousel {
  max-width: 1488px;
  margin: 40px auto;
  padding: 25px 30px 35px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

/* Header: Title + Link (Amazon style) */
.ecc-header {
  display: flex;
  align-items: baseline;
  gap: 14px; /* Amazon spacing */
  padding-bottom: 20px;
}

.ecc-title {
  font-size: 22px;
  font-weight: 700;
  margin: 0;
  white-space: nowrap;
}

.ecc-link {
  font-size: 14px;
  font-weight: 500;
  color: #0073e6;
  white-space: nowrap;
  text-decoration: none;
  margin-top: 2px;
  transition: color .2s ease;
}

@media (max-width: 768px) {

  .ecc-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;               /* tighter spacing */
    padding-bottom: 25px;
  }

  .ecc-title {
    font-size: 18px;        /* smaller title */
    white-space: normal;    /* allow wrap */
  }

  .ecc-link {
    font-size: 13px;
    margin-top: 0;
  }
}

.ecc-link:hover {
  text-decoration: underline;
  color: #004a99;
}

/* =========================================
   CAROUSEL TRACK
========================================= */
.ecc-carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.ecc-carousel {
    display: flex;
    gap: 22px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: auto !important;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 10px;
}

/* Hide scrollbar (visual only) */
.ecc-carousel::-webkit-scrollbar {
  display: none;
}

/* =========================================
   ITEMS
========================================= */
.ecc-item {
  min-width: 200px;
  flex: 0 0 auto;
  text-align: center;
  pointer-events: auto !important;  /* ensure clickable */
}

.ecc-img-wrap {
  width: 200px;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ecc-img-wrap img {
  width: 100%;
  height: auto;
  object-fit: contain;
  pointer-events: none !important; /* image won't steal drag */
  user-drag: none;
  -webkit-user-drag: none;
  user-selec: none;
}

.ecc-item,
.ecc-item * {
    pointer-events: auto !important;
}
/* =========================================
   ARROWS
========================================= */
.ecc-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
  display: none; /* auto-shown by JS */
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  pointer-events: auto !important;
}

.ecc-prev { left: -18px; }
.ecc-next { right: -18px; }









/* ========== FEATURE CARDS SECTION ========== */



.featurecards.container{
  max-width:1488px;
  margin:24px auto 40px;
  padding:0 16px;
}

.featurecards__grid{
  display:flex;
  flex-wrap:wrap;
  margin:-10px;
}

/* Card frame */
.featurecard{
  flex:0 0 calc(25% - 20px);           /* 4-up desktop */
  margin:10px;
  background:#fff;
  border:1px solid #e6e7ea;
  border-radius:8px;
  box-shadow:0 1px 0 rgba(0,0,0,.04);
  padding:16px;
  display:flex;
  flex-direction:column;
  gap:12px;
}


/* Card heading (wrap allowed) */
.featurecard__title{
  margin:0;
  font:700 20px/1.25 system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  color:#111;
  word-break:break-word;
  white-space:normal;
}

/* ---------- Single (big square) ---------- */
.featurecard__canvas{ position:relative; width:100%; overflow:hidden; }
.featurecard__canvas::before{ content:""; display:block; padding-top:100%; } /* 1:1 */

.featurecard__media--single{ position:absolute; inset:0; display:block; }
.featurecard__media--single img{
  position:absolute; inset:0; width:100%; height:100%;
  display:block; object-fit:cover;
}

/* ================== Quad (2×2 tiles) ================== */

/* Let the quad card grow; remove square-canvas constraint */
.featurecard--quad .featurecard__canvas::before{ display:none !important; }
.featurecard--quad .featurecard__canvas{ height:auto !important; overflow:visible; }

/* Tiles grid */
.featurecard--quad .featurecard__tiles{
  position:static !important;
  display:grid !important;
  grid-template-columns:repeat(2,1fr) !important;
  gap:16px !important;                  /* Amazon-ish air */
  align-content:start !important;
  margin-top:6px;                       /* space under (wrapped) heading */
}

/* Each tile */
.featurecard--quad .featurecard__tile{
  display:flex !important;
  flex-direction:column !important;
  align-items:stretch !important;       /* left-align square with caption */
  min-width:0 !important;
  text-decoration:none; color:#111;
}

/* Square product box (image carries its own cyan bg) */
.featurecard--quad .featurecard__tile .featurecard__media{
  aspect-ratio:4 / 3 !important;       /* perfect square */
  width:94% !important;                /* a little smaller than column */
  height:auto !important;
  margin:0 !important;                 /* flush to left edge */
  border:1px solid #eceef2 !important; /* subtle frame like Amazon */
  border-radius:0 !important;
  overflow:hidden !important;
}
.featurecard--quad .featurecard__tile .featurecard__media img{
  width:100% !important; height:100% !important;
  display:block !important;
  object-fit:cover !important;       /* full product visible */
}

/* Quad captions — WRAP to two lines @ 18px line-height (Amazon match) */
.featurecard--quad{
  --quad-cap-fs: 12px;        /* size */
  --quad-cap-lh: 18px;        /* line height */
  --quad-cap-lines: 2;        /* wrap to two lines */
  --quad-cap-h: calc(var(--quad-cap-lines) * var(--quad-cap-lh));
}
.featurecard--quad .featurecard__caption{
  margin-top: 2px !important;                 /* <- tighter than before */
  font-size: var(--quad-cap-fs) !important;
  line-height: var(--quad-cap-lh) !important;
  height: var(--quad-cap-h) !important;       /* equal heights */
  font-weight: 700 !important;                /* bold like Amazon */
  white-space: normal !important;             /* allow wrap */
  overflow: hidden !important;
  display: -webkit-box !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: var(--quad-cap-lines) !important;
  word-break: break-word !important;
}

/* Footer CTA */
.featurecard__footer{ margin-top:auto; }
.featurecard__cta{ font-size:14px; color:#007185; text-decoration:none; }
.featurecard__cta:hover{ text-decoration:underline; }

/* ---------------- Breakpoints ---------------- */
@media (max-width:1200px){
  .featurecard{ flex-basis:calc(33.333% - 20px); }   /* 3-up */
}
@media (max-width:980px){
  .featurecards.container{ padding:0 12px; }
  .featurecard{ flex-basis:calc(50% - 20px); }       /* 2-up */
  .featurecard__title{ font-size:18px; }

  .featurecard--quad .featurecard__tiles{ gap:12px !important; }
  .featurecard--quad .featurecard__tile .featurecard__media{
    width:90% !important;              /* slightly larger for tap targets */
  }
  .featurecard--quad{
    --quad-cap-fs: 13px;
    --quad-cap-lh: 18px;               /* keep 18px rhythm */
    --quad-cap-lines: 2;
  }
}
@media (max-width:560px){
  .featurecards.container{ padding:0 10px; }
  .featurecards__grid{ justify-content:center; margin:-6px; }

  .featurecard{
    flex:0 0 auto;
    width:clamp(230px, 86vw, 300px);
    margin:6px; padding:10px; gap:8px;
    border-radius:6px; box-shadow:0 1px 0 rgba(0,0,0,.03);
  }

  .featurecard__title{ font-size:16px; }
  .featurecard__cta{ font-size:13px; }
}


/* ===== Related from Recently — IMAGE ONLY (FINAL w/ mobile fixes) ===== */

/* Related — click-safe, image-only, with kinetic drag */

/* Hard reset: everything inside is interactive by default */
.emega-rel, .emega-rel *{
  pointer-events:auto !important;
}

.emega-rel{ --tile: 200px; }

.emega-rel{
  max-width:1488px;
  margin:0 auto 100px;
  position:relative;
  isolation:isolate;   /* own stacking context */
  contain:paint;
  z-index:3;
}
.emega-rel__hd{
  margin:0 8px 10px;
  font-size:clamp(18px,2vw,22px);
  font-weight:600;
  line-height:1.2;
}

/* Viewport */
.emega-rel__viewport{
  position:relative;
  z-index:0;
  overflow:hidden;
  overscroll-behavior-x:contain;
}

/* Track */
.emega-rel__track{
  position:relative; z-index:0;
  display:flex; gap:0;
  overflow-x:auto;
  -webkit-overflow-scrolling:touch;
  scroll-behavior:auto;           /* don't smooth user drag */
  touch-action:pan-x;              /* allow horizontal swipes */
  -webkit-tap-highlight-color:transparent;
  will-change:scroll-position;
  cursor:grab;
}
.emega-rel__track:active,
.emega-rel__track.is-dragging{ cursor:grabbing; }
.emega-rel__track::-webkit-scrollbar{ display:none; }

@media (pointer:fine){
  .emega-rel__track{ touch-action:pan-x; }
}

/* Mobile hardening */
@media (pointer:coarse){
  .emega-rel,
  .emega-rel__viewport,
  .emega-rel__track{ touch-action:pan-x !important; }
  .emega-rel__track{
    overflow-x:scroll !important;
    -webkit-overflow-scrolling:touch !important;
  }
  .emega-rel__a,
  .emega-rel__imgwrap,
  .emega-rel__imgwrap img{
    touch-action:pan-x !important;
    -webkit-user-select:none; user-select:none;
    -webkit-touch-callout:none;
  }
}

/* Cards */
.emega-rel__card{
  flex:0 0 var(--tile);
  margin:0;
  display:flex;
  min-width:0;
}
.emega-rel__card.is-hidden{ display:none !important; }

/* Clickable card (image-only) */
.emega-rel__a{
  display:block;
  width:100%;
  text-decoration:none;
  color:inherit;
  position:relative;
  z-index:1; /* above track */
}

/* Image area — ONLY place with pointer-events:none so <a> receives clicks */
.emega-rel__imgwrap{
  width:100%;
  height:var(--tile);
  background:#fff;
  border:1px solid #eee;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
  pointer-events:none !important;
}
.emega-rel__imgwrap img{
  max-width:100%; max-height:100%;
  width:auto; height:auto;
  object-fit:contain;
  display:block;
  -webkit-user-drag:none; user-drag:none;
  -webkit-user-select:none; user-select:none;
  pointer-events:none !important;
}

/* Arrows */
.emega-rel__arrow{
  position:absolute;
  top:50%; transform:translateY(-50%);
  width:36px; height:36px;
  border:none; border-radius:18px;
  background:#000; color:#fff;
  opacity:.85; cursor:pointer; z-index:2;
  pointer-events:auto !important;
}
.emega-rel__arrow[disabled]{ opacity:.35; cursor:default; }
.emega-rel__arrow--prev{ left:4px; }
.emega-rel__arrow--next{ right:4px; }
@media (max-width:768px){
  .emega-rel__arrow{ width:32px; height:32px; border-radius:16px; }
}

/* Focus a11y */
.emega-rel__a:focus-visible,
.emega-rel__arrow:focus-visible{
  outline:2px solid #000;
  outline-offset:2px;
}












/* ========== EMEGA BANNER SECTION ========== */

/* === Pure Image Banner (emega_banner) === */
.emega-banner {
  margin: 16px 0 100px;
  padding: 0 12px;            /* page gutter to align with other sections */
}
.emega-banner__inner {
  max-width: 1488px;          /* match hero width */
  margin: 0 auto;
}
.emega-banner__media {
  margin: 0;
  border-radius: 20px;        /* required radius */
  overflow: hidden;           /* clip corners */
}
.emega-banner__img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 62 / 15;      /* 1488 x 360 */
  object-fit: cover;          /* fill the frame neatly */
}

/* Mobile: use your 1200 x 1000 image ratio */
@media (max-width: 768px){
  .emega-banner {
    margin: 16px 0 100px;
    padding: 0 10px;
  }
  .emega-banner__inner {
    max-width: 100%;
  }
  .emega-banner__img {
    aspect-ratio: 6 / 5;      /* 1200 x 1000 */
  }
}



/* ========== INSPIRED BROWSER SECTION ========== */

/* ===============================
   Inspired — desktop 9-up / mobile 1-row carousel
   =============================== */

.emega-inspired{ margin:0 0 56px; padding:0 12px; }
.emega-inspired__inner{ max-width:1488px; margin:0 auto; }

/* Title on row 1, nav on row 2 */
.emega-inspired__head{
  display:flex;
  flex-direction:column;     /* stack title then nav under it */
  align-items:stretch;
  gap:8px;
  margin:8px 0 14px;
}

.emega-inspired__title{
  margin:0;
  font-weight:800;
  font-size:clamp(18px,2.2vw,22px);
}

/* Nav (row 2) */
.emega-inspired__nav{
  display:flex;
  justify-content:flex-end;  /* right-align under the title */
  align-items:center;
  gap:10px;
}

.emega-inspired__pager{ font-size:13px; color:#555; }

/* Arrow buttons — perfectly centered chevrons */
.emega-inspired__arrow{
  display:inline-flex;              /* center glyph */
  align-items:center;
  justify-content:center;

  width:36px;
  aspect-ratio:1 / 1;               /* perfect circle */
  padding:0;

  border:1px solid #e6e6e6;
  border-radius:999px;
  background:#fff;

  font-size:18px;                   /* chevron size */
  line-height:1;                    /* remove baseline slack */
  vertical-align:middle;
  cursor:pointer;
}
.emega-inspired__arrow:disabled{ opacity:.45; cursor:default; }

/* Desktop grid: 9 across */
.emega-insp-grid{
  --gap:16px;
  list-style:none; margin:0; padding:0;
  display:grid;
  grid-template-columns:repeat(9, minmax(0, 1fr));
  gap:var(--gap);
  align-items:stretch;
}

/* Card (borderless) */
.emega-insp-card{ min-width:0; }
/* JS pagination uses this class */
.emega-insp-card.is-hidden{ display:none !important; }

.emega-insp-link{
  display:flex; flex-direction:column; gap:12px; height:100%;
  padding:10px 6px; background:transparent; border:none; border-radius:14px;
  text-decoration:none; transition:box-shadow .15s ease, transform .06s ease;
}

.emega-insp-link:focus-visible{ outline:2px solid #111; outline-offset:3px; }

.emega-insp-img{
  display:flex; align-items:center; justify-content:center;
  height:180px; background:transparent; border-radius:12px; overflow:hidden;
}
.emega-insp-img img{ max-width:100%; max-height:100%; width:auto; height:auto; display:block; }

.emega-insp-title{
  margin:0; font-weight:600; font-size:14px; line-height:1.32; color:#111;
  min-height:calc(1.32em * 3);
  display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden;
}
.emega-insp-price{ margin-top:auto; font-weight:700; font-size:15px; color:#111; letter-spacing:.1px; }

/* ===== Mobile: single horizontal row (scroll-snap “carousel”) ===== */
@media (max-width: 768px){
  .emega-inspired{ margin-bottom:38px; padding:0 10px; }

  /* center the nav under the title on mobile */
  .emega-inspired__nav{ justify-content:center; }

  .emega-insp-grid{
    display:flex;
    gap:12px;
    overflow-x:auto;
    overflow-y:hidden;
    -webkit-overflow-scrolling:touch;
    scroll-snap-type:x proximity;
    padding-bottom:6px;
  }

  .emega-insp-card{
    flex:0 0 calc(50% - 6px);   /* ~2 visible */
    scroll-snap-align:start;
  }

  .emega-insp-img{ height:150px; }
  .emega-insp-title{ font-size:13.5px; }

  .emega-inspired__arrow{ width:40px; font-size:20px; } /* larger target on mobile */

  .emega-insp-grid::-webkit-scrollbar{ height:8px; }
  .emega-insp-grid::-webkit-scrollbar-thumb{ background:#e0e0e0; border-radius:4px; }
}

/* ===============================
   CSS-only fallback (before JS is ready)
   Disable once JS runs and adds: document.body.classList.add('js-ready')
   =============================== */
@media (min-width: 769px){
  body:not(.js-ready) .emega-insp-grid > .emega-insp-card:nth-child(n+10){ display:none; }
}
@media (max-width: 768px){
  body:not(.js-ready) .emega-insp-grid > .emega-insp-card:nth-child(n+3){ display:none; }
}












/* -------------------------------------------------
   LOSS HEAD SECTION WRAPPER
   Limits the WHOLE block to 1488px
-------------------------------------------------- */
.loss-head {
    max-width: 1488px !important;
    margin: 0 auto !important;
    padding: 0 10px;
}


/* Title + link inline next to each other */
.loss-head__top {
     display: flex;
  align-items: baseline;
  gap: 14px; /* Amazon spacing */
  padding-bottom: 20px;
}

/* Title style */
.loss-head__title {
    font-size: 22px;
  font-weight: 700;
  margin: 0;
  white-space: nowrap;
}

/* Link style similar to Apple's gift shop links */
.loss-link {
    font-size: 14px;
  font-weight: 500;
  color: #0073e6;
  white-space: nowrap;
  text-decoration: none;
  margin-top: 2px;
  transition: color .2s ease;
}

.loss-link:hover {
    text-decoration: underline;
    color: #004a99;
}

/* Mobile → stack vertically */
@media (max-width: 768px) {
    .loss-head__top {
        flex-direction: column;
    align-items: flex-start;
    gap: 6px;               /* tighter spacing */
    padding-bottom: 25px;
    }
    .loss-head__title {
    font-size: 18px;        /* smaller title */
    white-space: normal;    /* allow wrap */
  }

  .loss-link {
    font-size: 13px;
    margin-top: 0;
  }
}



/* -------------------------------------------------
   PRODUCT TITLE — CLEAN, ALIGNED, 2-LINE MAX
-------------------------------------------------- */


/* -------------------------------------------------
   GRID CONTAINER
   <div class="c-product-grid__list">
-------------------------------------------------- */
.c-product-grid__list {
    display: grid !important;
    grid-template-columns: repeat(5, 1fr) !important;
    width: 100%;
    margin: 0 !important;
    padding: 0 !important;
}



/* -------------------------------------------------
   FORCE PRODUCT CARDS TO FIT GRID CELLS
-------------------------------------------------- */
.c-product-grid__item {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    /*padding: 0 !important;*/
    box-sizing: border-box !important;
}



/* -------------------------------------------------
   MOBILE LAYOUT (2 CARDS PER ROW)
-------------------------------------------------- */
@media (max-width: 768px) {
    .c-product-grid__list {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 14px !important;
    }
}
