/*-----------------------------------------------------------------------------------

    Project : Fitness Fuel - Health & Fitness Supplement Store
    File    : Hero product showcase + product details modal
    Loads   : after fitness-fuel.css (reuses its tokens and .eg-btn styles)

    01. Tokens + section
    02. Layout grid
    03. Product information
    04. Stage: background word, glow, floor ring
    05. Products on the arc
    06. Controls: arrows, dots, autoplay toggle
    07. Product details modal
    08. Tablet (768-1199) - stacked
    09. Mobile (<768)
    10. Reduced motion

-----------------------------------------------------------------------------------*/

/*----------------------------------------*/
/*  01. Tokens + section
/*----------------------------------------*/
.ff-showcase,
.ff-pd {
  --ffs-neon: #39D353;
  /* CTA / highlight accent - follows the site token (currently British Yellow #EDC001) */
  --ffs-accent: var(--ff-green, #EDC001);
  --ffs-ink: #F4F7F5;
  --ffs-muted: rgba(244, 247, 245, 0.66);
  --ffs-faint: rgba(244, 247, 245, 0.45);
  --ffs-line: rgba(255, 255, 255, 0.1);
  --ffs-surface: #0D1411;
  --ffs-bg: #08100D;
  --ffs-ease: cubic-bezier(0.22, 0.8, 0.22, 1);
}

.ff-showcase.eg-banner__bg {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 780px;
  min-height: clamp(780px, 100vh, 1000px);
  min-height: clamp(780px, 100svh, 1000px);
  padding: 138px 0 112px;
  text-align: left;
  overflow: hidden;
  background-color: var(--ffs-bg);
  background-image:
    radial-gradient(60% 55% at 64% 58%, rgba(57, 211, 83, 0.1) 0%, rgba(57, 211, 83, 0) 70%),
    radial-gradient(90% 70% at 50% 0%, #13201a 0%, rgba(8, 16, 13, 0) 60%);
}

/* the template's torn white edge stays above everything */
.ff-showcase.eg-banner__bg::after {
  z-index: 6;
}

.ff-showcase__container {
  position: relative;
  z-index: 2;
  width: 100%;
}

.ff-showcase__decor {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.ff-visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/*----------------------------------------*/
/*  02. Layout grid
/*----------------------------------------*/
.ff-showcase__grid {
  display: grid;
  grid-template-columns: minmax(380px, 0.8fr) minmax(0, 1.2fr);
  align-items: center;
  gap: clamp(20px, 3vw, 56px);
}

.ff-showcase__stage-wrap {
  position: relative;
  min-width: 0;
}

/*----------------------------------------*/
/*  03. Product information
/*----------------------------------------*/
.ff-showcase__info {
  position: relative;
  z-index: 4;
  max-width: 560px;
  color: var(--ffs-ink);
}

.ff-showcase__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 26px;
  color: var(--ffs-neon);
  font-family: var(--eg-body-font-family);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}

.ff-showcase__eyebrow::before {
  content: "";
  width: 30px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

.ff-showcase__swap {
  transition: opacity 0.22s ease, transform 0.22s var(--ffs-ease);
}

.ff-showcase__swap.is-leaving {
  opacity: 0;
  transform: translateY(-8px);
}

.ff-showcase__swap.is-entering {
  opacity: 0;
  transform: translateY(12px);
  transition: none;
}

.ff-showcase__labels {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
}

.ff-showcase__category {
  color: var(--ffs-ink);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.8;
}

.ff-showcase__badge,
.ff-pd__badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 50px;
  border: 1px solid var(--ffs-accent);
  color: var(--ffs-accent);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ff-showcase__badge[hidden] {
  display: none;
}

.theme-bg .ff-showcase__name,
.ff-showcase__name {
  margin: 14px 0 16px;
  color: #fff;
  font-family: var(--eg-heading-font-family);
  font-size: clamp(44px, 4.2vw, 76px);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.005em;
  text-transform: uppercase;
  text-wrap: balance;
}

.ff-showcase__rating,
.ff-pd__rating {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  color: var(--ffs-muted);
  font-size: 14px;
}

.ff-stars {
  display: inline-flex;
  gap: 3px;
  color: var(--ffs-neon);
  font-size: 13px;
}

.ff-showcase__rating strong,
.ff-pd__rating strong {
  color: var(--ffs-ink);
  font-weight: 700;
}

.theme-bg .ff-showcase__desc,
.ff-showcase__desc {
  max-width: 46ch;
  margin: 18px 0 26px;
  color: var(--ffs-muted);
  font-size: 17px;
  line-height: 1.65;
}

.ff-showcase__price,
.ff-pd__price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 14px;
}

.ff-showcase__price strong,
.ff-pd__price strong {
  color: #fff;
  font-family: var(--eg-heading-font-family);
  font-size: 46px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.01em;
}

.ff-showcase__price s,
.ff-pd__price s {
  color: var(--ffs-faint);
  font-size: 18px;
}

.ff-showcase__save,
.ff-pd__save {
  align-self: center;
  padding: 5px 10px;
  border-radius: 6px;
  background: rgba(57, 211, 83, 0.12);
  color: var(--ffs-neon);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ff-showcase__price [hidden],
.ff-pd__price [hidden] {
  display: none;
}

.ff-showcase__specs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.ff-showcase__specs li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 50px;
  border: 1px solid var(--ffs-line);
  color: var(--ffs-muted);
  font-size: 13px;
  line-height: 1;
}

.ff-showcase__specs li[hidden] {
  display: none;
}

.ff-showcase__specs i {
  color: var(--ffs-neon);
  font-size: 12px;
}

/* CTAs reuse .eg-btn; the template pads every inner span for its arrow icon */
.ff-showcase__actions,
.ff-pd__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.ff-showcase__actions .eg-btn,
.ff-pd__actions .eg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 58px;
  padding: 0 32px;
  font-size: 14px;
}

.ff-showcase__actions .eg-btn span,
.ff-pd__actions .eg-btn span {
  padding-left: 0;
}

/* on a near-black hero the template's dark hover fill would make the CTA vanish */
.ff-showcase .eg-btn::after,
.ff-pd .eg-btn::after {
  background-color: #fff;
}

.ff-showcase .eg-btn:hover,
.ff-pd .eg-btn:hover {
  color: #0A0D0C;
  border-color: #fff;
}

.ff-showcase .eg-btn.is-added,
.ff-pd .eg-btn.is-added {
  background-color: var(--ffs-neon);
  border-color: var(--ffs-neon);
  color: #0A0D0C;
}

.ff-showcase .eg-btn:focus-visible,
.ff-pd .eg-btn:focus-visible {
  outline: 2px solid var(--ffs-neon);
  outline-offset: 3px;
}

.ff-showcase__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 34px 0 0;
  padding: 22px 0 0;
  border-top: 1px solid var(--ffs-line);
  list-style: none;
  color: var(--ffs-faint);
  font-size: 13px;
}

.ff-showcase__trust li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.ff-showcase__trust i {
  color: var(--ffs-neon);
}

/*----------------------------------------*/
/*  04. Stage
/*----------------------------------------*/
.ff-showcase__stage {
  --ff-baseline: 13%;
  position: relative;
  height: clamp(520px, calc(100vh - 320px), 680px);
  height: clamp(520px, calc(100svh - 320px), 680px);
  touch-action: pan-y;
  -webkit-user-select: none;
  user-select: none;
  outline: none;
  border-radius: 28px;
}

.ff-showcase__stage:focus-visible {
  box-shadow: 0 0 0 2px rgba(57, 211, 83, 0.6);
}

.ff-showcase__stage.is-dragging {
  cursor: grabbing;
}

.ff-showcase__bgword {
  position: absolute;
  left: 50%;
  top: 40%;
  z-index: 0;
  transform: translate(-50%, -50%);
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.07);
  font-family: var(--eg-heading-font-family);
  font-size: clamp(96px, 11.5vw, 220px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
  pointer-events: none;
}

/* coloured light behind the front product; tint follows the product */
.ff-showcase__glow {
  --ff-glow: 57, 211, 83;
  position: absolute;
  left: 50%;
  bottom: calc(var(--ff-baseline) + var(--ff-item-h, 420px) * 0.18);
  z-index: 0;
  width: calc(var(--ff-item-h, 420px) * 0.95);
  height: calc(var(--ff-item-h, 420px) * 0.85);
  border-radius: 50%;
  background-color: rgb(var(--ff-glow));
  opacity: 0.2;
  filter: blur(72px);
  transform: translateX(-50%);
  transition: background-color 0.8s ease;
  pointer-events: none;
}

/* the ellipse the products stand on - its front edge is the baseline */
.ff-showcase__floor {
  position: absolute;
  left: 50%;
  bottom: var(--ff-baseline);
  z-index: 0;
  width: calc(var(--ff-radius, 360px) * 2.3);
  height: calc(var(--ff-lift, 70px) * 2 + 36px);
  transform: translate(-50%, 18px);
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(57, 211, 83, 0.12), rgba(57, 211, 83, 0.035) 60%, rgba(57, 211, 83, 0) 100%);
  pointer-events: none;
}

.ff-showcase__floor::before {
  content: "";
  position: absolute;
  inset: 18px 7%;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-bottom-color: rgba(57, 211, 83, 0.35);
}

/*----------------------------------------*/
/*  05. Products on the arc
/*----------------------------------------*/
.ff-showcase__track {
  position: absolute;
  left: 50%;
  bottom: var(--ff-baseline);
  z-index: 1;
  width: 0;
  height: 0;
}

.ff-showcase__item {
  position: absolute;
  left: 0;
  bottom: 0;
  width: var(--ff-item-w, 300px);
  height: var(--ff-item-h, 400px);
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 18px;
  background: none;
  transform-origin: 50% 100%;
  will-change: transform, opacity;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  /* main.css transitions every <button>; motion here is driven frame-by-frame in JS */
  transition: none;
}

/* before JS positions them, keep products from stacking visibly at the origin */
.ff-showcase:not(.is-ready) .ff-showcase__item {
  opacity: 0;
}

.ff-showcase__img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: 50% 100%;
  filter: brightness(var(--ff-bright, 1));
  pointer-events: none;
  -webkit-user-drag: none;
  user-select: none;
}

.ff-showcase__shadow {
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: -4%;
  z-index: 0;
  height: 10%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0));
  opacity: var(--ff-shadow, 1);
}

.ff-showcase__item.is-front .ff-showcase__shadow {
  background: radial-gradient(closest-side, rgba(0, 0, 0, 0.9), rgba(57, 211, 83, 0.1) 70%, rgba(0, 0, 0, 0));
}

.ff-showcase__item:focus-visible {
  outline: 2px dashed var(--ffs-neon);
  outline-offset: 8px;
}

/* static fallback (no JS): the first product, centred */
.ff-showcase__fallback {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: auto;
  height: min(420px, 60vh);
  transform: translateX(-50%);
}

.ff-showcase.is-ready .ff-showcase__fallback {
  display: none;
}

/*----------------------------------------*/
/*  06. Controls
/*----------------------------------------*/
.ff-showcase__controls {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 4px;
}

.ff-showcase__arrow,
.ff-showcase__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--ffs-line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--ffs-ink);
  transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease, transform 0.25s var(--ffs-ease);
}

.ff-showcase__arrow:hover {
  background: var(--ffs-accent);
  border-color: var(--ffs-accent);
  color: #0A0D0C;
}

.ff-showcase__arrow:active {
  transform: scale(0.94);
}

.ff-showcase__toggle {
  width: 40px;
  height: 40px;
  margin-left: 4px;
  color: var(--ffs-faint);
  font-size: 12px;
}

.ff-showcase__toggle:hover {
  border-color: rgba(255, 255, 255, 0.3);
  color: var(--ffs-ink);
}

.ff-showcase__toggle .fa-play,
.ff-showcase__toggle.is-paused .fa-pause {
  display: none;
}

.ff-showcase__toggle.is-paused .fa-play {
  display: inline-block;
}

.ff-showcase__toggle[hidden] {
  display: none;
}

.ff-showcase__arrow:focus-visible,
.ff-showcase__toggle:focus-visible,
.ff-showcase__dot:focus-visible {
  outline: 2px solid var(--ffs-neon);
  outline-offset: 3px;
}

.ff-showcase__dots {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* 24px-tall hit area around a thin bar */
.ff-showcase__dot {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 4px;
  border: 0;
  border-radius: 8px;
  background: none;
  cursor: pointer;
}

.ff-showcase__dot-bar {
  position: relative;
  display: block;
  width: 10px;
  height: 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.22);
  overflow: hidden;
  transition: width 0.4s var(--ffs-ease), background-color 0.3s ease;
}

.ff-showcase__dot:hover .ff-showcase__dot-bar {
  background: rgba(255, 255, 255, 0.4);
}

.ff-showcase__dot.is-active .ff-showcase__dot-bar {
  width: 38px;
  background: rgba(255, 255, 255, 0.16);
}

.ff-showcase__dot-fill {
  position: absolute;
  inset: 0;
  background: var(--ffs-neon);
  transform: scaleX(0);
  transform-origin: 0 50%;
}

.ff-showcase__dot.is-active .ff-showcase__dot-fill {
  transform: scaleX(1);
}

/* while auto-rotating the active bar fills up as a countdown */
.ff-showcase.is-autoplay .ff-showcase__dot.is-active .ff-showcase__dot-fill {
  transform: scaleX(var(--ff-progress, 0));
}

/*----------------------------------------*/
/*  07. Product details modal
/*----------------------------------------*/
body.ff-pd-open,
body.ff-cart-open {
  overflow: hidden;
}

.ff-pd {
  position: fixed;
  inset: 0;
  z-index: 1080;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

.ff-pd.is-open {
  opacity: 1;
  visibility: visible;
}

.ff-pd__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 6, 5, 0.78);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.ff-pd__dialog {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  width: min(1000px, 100%);
  max-height: calc(100vh - 48px);
  overflow: hidden;
  border: 1px solid var(--ffs-line);
  border-radius: 28px;
  background: var(--ffs-surface);
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.6);
  color: var(--ffs-ink);
  transform: translateY(24px) scale(0.97);
  transition: transform 0.4s var(--ffs-ease);
}

.ff-pd.is-open .ff-pd__dialog {
  transform: none;
}

.ff-pd__close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--ffs-line);
  background: rgba(8, 16, 13, 0.6);
  color: var(--ffs-ink);
  font-size: 16px;
  transition: all 0.25s ease;
}

.ff-pd__close:hover {
  background: var(--ffs-accent);
  border-color: var(--ffs-accent);
  color: #0A0D0C;
}

.ff-pd__close:focus-visible {
  outline: 2px solid var(--ffs-neon);
  outline-offset: 3px;
}

.ff-pd__media {
  --ff-glow: 57, 211, 83;
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: 460px;
  padding: 56px 36px 44px;
  overflow: hidden;
  background:
    radial-gradient(80% 50% at 50% 100%, rgba(57, 211, 83, 0.14), rgba(57, 211, 83, 0) 70%),
    linear-gradient(180deg, #111a16 0%, #0a110e 100%);
}

.ff-pd__glow {
  position: absolute;
  top: 16%;
  left: 50%;
  width: 72%;
  aspect-ratio: 1;
  border-radius: 50%;
  background-color: rgb(var(--ff-glow));
  opacity: 0.2;
  filter: blur(64px);
  transform: translateX(-50%);
}

.ff-pd__img {
  position: relative;
  width: 80%;
  max-width: 340px;
  height: auto;
  filter: drop-shadow(0 34px 28px rgba(0, 0, 0, 0.55));
}

.ff-pd__body {
  min-height: 0;
  overflow-y: auto;
  padding: 48px 48px 38px 44px;
}

.ff-pd__labels {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding-right: 48px;
}

.ff-pd__category {
  color: var(--ffs-neon);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.ff-pd .ff-pd__title {
  margin: 14px 0 4px;
  color: #fff;
  font-family: var(--eg-heading-font-family);
  font-size: clamp(32px, 3.2vw, 44px);
  font-weight: 700;
  line-height: 1.02;
  text-transform: uppercase;
}

.ff-pd__variant {
  margin: 0 0 14px;
  color: var(--ffs-faint);
  font-size: 14px;
}

.ff-pd__price {
  margin: 20px 0 18px;
}

.ff-pd__price strong {
  font-size: 40px;
}

.ff-pd .ff-pd__desc {
  margin: 0 0 20px;
  color: var(--ffs-muted);
  font-size: 15px;
  line-height: 1.7;
}

.ff-pd__highlights {
  display: grid;
  gap: 10px;
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
}

.ff-pd__highlights li {
  display: flex;
  align-items: baseline;
  gap: 10px;
  color: var(--ffs-ink);
  font-size: 15px;
}

.ff-pd__highlights i {
  color: var(--ffs-neon);
  font-size: 12px;
}

.ff-pd__specs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  border: 1px solid var(--ffs-line);
  border-radius: 16px;
  overflow: hidden;
}

.ff-pd__specs div {
  padding: 14px 16px;
  border-right: 1px solid var(--ffs-line);
}

.ff-pd__specs div:last-child {
  border-right: 0;
}

.ff-pd__specs dt {
  margin-bottom: 4px;
  color: var(--ffs-faint);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ff-pd__specs dd {
  margin: 0;
  color: var(--ffs-ink);
  font-size: 15px;
  font-weight: 600;
}

.ff-pd__actions {
  margin-top: 26px;
}

.ff-pd__actions .eg-btn {
  flex: 1 1 auto;
}

.ff-pd .ff-pd__note {
  margin: 18px 0 0;
  color: var(--ffs-faint);
  font-size: 12px;
  line-height: 1.6;
}

/*----------------------------------------*/
/*  08. Tablet (768-1199) - stacked
/*----------------------------------------*/
@media (max-width: 1199.98px) {
  .ff-showcase.eg-banner__bg {
    min-height: 0;
    padding: 150px 0 120px;
  }

  .ff-showcase__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  .ff-showcase__stage-wrap {
    order: -1;
  }

  .ff-showcase__stage {
    height: clamp(420px, 56vw, 540px);
  }

  .ff-showcase__info {
    max-width: 660px;
    margin: 0 auto;
    text-align: center;
  }

  .ff-showcase__eyebrow {
    margin-bottom: 18px;
  }

  .ff-showcase__labels,
  .ff-showcase__rating,
  .ff-showcase__price,
  .ff-showcase__specs,
  .ff-showcase__actions,
  .ff-showcase__trust {
    justify-content: center;
  }

  .ff-showcase__desc {
    margin-left: auto;
    margin-right: auto;
  }

  .ff-showcase__bgword {
    top: 36%;
  }
}

/*----------------------------------------*/
/*  09. Mobile (<768)
/*----------------------------------------*/
@media (max-width: 767.98px) {
  .ff-showcase.eg-banner__bg {
    padding: 108px 0 96px;
  }

  /* the leaf props land on the peeking products at phone width */
  .ff-showcase__decor {
    display: none;
  }

  .ff-showcase__stage {
    --ff-baseline: 9%;
    height: clamp(310px, 92vw, 430px);
    border-radius: 20px;
  }

  .ff-showcase__glow {
    filter: blur(52px);
  }

  .ff-showcase__bgword {
    top: 30%;
    font-size: clamp(64px, 19vw, 120px);
  }

  .ff-showcase__controls {
    gap: 10px;
    margin-top: 0;
  }

  .ff-showcase__arrow {
    width: 46px;
    height: 46px;
  }

  .ff-showcase__eyebrow {
    display: none;
  }

  .theme-bg .ff-showcase__name,
  .ff-showcase__name {
    margin: 12px 0 12px;
    font-size: clamp(34px, 10.5vw, 46px);
  }

  .theme-bg .ff-showcase__desc,
  .ff-showcase__desc {
    margin: 14px auto 20px;
    font-size: 15px;
  }

  .ff-showcase__price strong {
    font-size: 38px;
  }

  .ff-showcase__actions {
    flex-direction: column;
    gap: 12px;
    margin-top: 26px;
  }

  .ff-showcase__actions .eg-btn {
    width: 100%;
    min-height: 56px;
  }

  .ff-showcase__trust {
    gap: 8px 16px;
    margin-top: 26px;
    padding-top: 18px;
    font-size: 12px;
  }

  /* product details become a bottom sheet */
  .ff-pd {
    align-items: flex-end;
    padding: 0;
  }

  .ff-pd__dialog {
    grid-template-columns: minmax(0, 1fr);
    max-height: 92vh;
    max-height: 92svh;
    overflow-y: auto;
    border-radius: 24px 24px 0 0;
    border-bottom: 0;
    transform: translateY(40px);
  }

  .ff-pd__media {
    min-height: 0;
    padding: 40px 24px 14px;
  }

  .ff-pd__img {
    width: 46%;
    max-width: 200px;
  }

  .ff-pd__body {
    overflow: visible;
    padding: 18px 22px 30px;
  }

  .ff-pd__labels {
    padding-right: 0;
  }

  .ff-pd__price strong {
    font-size: 34px;
  }

  .ff-pd__specs div {
    padding: 12px;
  }

  /* keep Add to Cart reachable while the sheet scrolls */
  .ff-pd__actions {
    position: sticky;
    bottom: 0;
    z-index: 2;
    flex-direction: column;
    gap: 10px;
    margin: 22px -22px 0;
    padding: 14px 22px;
    padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid var(--ffs-line);
    background: var(--ffs-surface);
    box-shadow: 0 -18px 30px rgba(13, 20, 17, 0.9);
  }

  .ff-pd__actions .eg-btn {
    width: 100%;
  }
}

@media (max-width: 374.98px) {
  .ff-showcase__dot {
    padding: 0 3px;
  }

  .ff-showcase__dot.is-active .ff-showcase__dot-bar {
    width: 26px;
  }

  .ff-pd__specs {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .ff-pd__specs div:nth-child(2) {
    border-right: 0;
  }

  .ff-pd__specs div:nth-child(3) {
    grid-column: 1 / -1;
    border-top: 1px solid var(--ffs-line);
  }
}

/*----------------------------------------*/
/*  10. Reduced motion
/*----------------------------------------*/
@media (prefers-reduced-motion: reduce) {
  .ff-showcase__swap,
  .ff-showcase__glow,
  .ff-showcase__dot-bar,
  .ff-pd,
  .ff-pd__dialog {
    transition: none;
  }

  .ff-showcase__swap.is-leaving {
    transform: none;
  }
}
