/* =============================================================
   Fitlys hero — split editorial layout (fresh green theme)
   Same template as the Cloffy hero banner.
   ============================================================= */

.page-fitlys {
  --fitlys-banner-mint: #eef7ec;
  --fitlys-banner-accent: #396d1b;
  --fitlys-banner-accent-2: #4caf50;
  --fitlys-banner-deep: #1f3d12;
  --fitlys-banner-ink: #244d12;
  --fitlys-banner-soft: #4a5c48;
  --fitlys-banner-h: clamp(540px, 72vh, 660px);
}

.page-fitlys .fitlys-hero--editorial {
  background: var(--fitlys-banner-mint);
}

/* Carousel sizing — equal-height slides for clean fades */
.page-fitlys .fitlys-hero--editorial .carousel,
.page-fitlys .fitlys-hero--editorial .carousel-inner,
.page-fitlys .fitlys-hero--editorial .carousel-item,
.page-fitlys .fitlys-hero--editorial .fitlys-banner {
  height: var(--fitlys-banner-h);
}

/* Hide legacy decorative layers */
.page-fitlys .fitlys-hero--editorial .fitlys-banner__leaf,
.page-fitlys .fitlys-hero--editorial .fitlys-banner__diagonal,
.page-fitlys .fitlys-hero--editorial .fitlys-banner__arch,
.page-fitlys .fitlys-hero--editorial .fitlys-banner__tag {
  display: none !important;
}

.page-fitlys .fitlys-hero--editorial .fitlys-banner {
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--fitlys-banner-ink);
}

/* Per-slide green tints */
.page-fitlys .fitlys-banner--frozen  { background: linear-gradient(135deg, #f6fbf3 0%, #ecf6e6 55%, #d8edcd 100%); }
.page-fitlys .fitlys-banner--dairy   { background: linear-gradient(135deg, #f7fcf6 0%, #eef7ea 55%, #dcefd6 100%); }
.page-fitlys .fitlys-banner--spreads { background: linear-gradient(135deg, #f5faf2 0%, #eaf5e3 55%, #d3ebc6 100%); }
.page-fitlys .fitlys-banner--chutney { background: linear-gradient(135deg, #f6fbf3 0%, #edf6e7 55%, #d7ebcb 100%); }

/* ---- Ambient background ---- */
.page-fitlys .fitlys-banner__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.page-fitlys .fitlys-banner__bg::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg width='52' height='52' viewBox='0 0 52 52' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23396D1B' fill-opacity='0.045'%3E%3Ccircle cx='26' cy='26' r='1.6'/%3E%3C/g%3E%3C/svg%3E");
}

.page-fitlys .fitlys-banner__glow {
  position: absolute;
  right: -6%;
  top: 50%;
  transform: translateY(-50%);
  width: min(56vw, 600px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(76, 175, 80, 0.32) 0%, transparent 68%);
  filter: blur(2px);
}

/* ---- Main grid ---- */
.page-fitlys .fitlys-hero--editorial .fitlys-banner__layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  align-items: center;
  gap: clamp(24px, 4vw, 56px);
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(32px, 4vw, 48px) clamp(20px, 4vw, 48px) clamp(44px, 5vw, 60px);
  width: 100%;
}

/* Large screens — copy + product vertically centred; top padding clears fixed header */
@media screen and (min-width: 992px) {
  .page-fitlys .fitlys-hero--editorial .fitlys-banner__layout {
    align-items: center;
    height: 100%;
    box-sizing: border-box;
    padding-top: calc(var(--announcement-bar-height, 0px) + var(--site-header-height, 72px) + 16px);
    padding-bottom: clamp(36px, 4.5vw, 52px);
  }

  .page-fitlys .fitlys-hero--editorial .fitlys-banner__panel,
  .page-fitlys .fitlys-hero--editorial .fitlys-banner__visual {
    align-self: center;
  }
}

/* ---- Left copy ---- */
.page-fitlys .fitlys-hero--editorial .fitlys-banner__panel {
  position: relative;
  padding: 0;
  background: none;
  border: none;
  box-shadow: none;
  border-radius: 0;
}

.page-fitlys .fitlys-hero--editorial .fitlys-banner__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  height: auto;
  text-align: left;
}

.page-fitlys .fitlys-banner__title {
  margin: 0 0 8px;
  font-family: var(--font-primary);
  font-size: clamp(1.9rem, 3.6vw, 2.8rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--fitlys-banner-deep);
  max-width: 17ch;
  display: block;
  min-height: 0;
  overflow: visible;
  -webkit-line-clamp: unset;
  -webkit-box-orient: unset;
}

.page-fitlys .fitlys-banner__title em {
  font-style: normal;
  color: inherit;
}

.page-fitlys .fitlys-banner__lead {
  margin: 0 0 16px;
  font-size: clamp(1rem, 1.5vw, 1.1rem);
  line-height: 1.55;
  color: var(--fitlys-banner-soft);
  max-width: 44ch;
  display: block;
  min-height: 0;
  overflow: visible;
  -webkit-line-clamp: unset;
  -webkit-box-orient: unset;
}

/* perks as a wrapping row of pills */
.page-fitlys .fitlys-banner__perks {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  flex-direction: row;
  align-items: center;
  gap: 8px 10px;
  margin: 0 0 28px;
  padding: 0;
  max-width: 100%;
  list-style: none;
}

.page-fitlys .fitlys-banner__perks li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--fitlys-banner-accent);
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(57, 109, 27, 0.16);
  border-radius: 999px;
  box-shadow: 0 6px 16px -12px rgba(57, 109, 27, 0.4);
}

.page-fitlys .fitlys-banner__perks i {
  flex-shrink: 0;
  font-size: 14px;
  color: var(--fitlys-banner-accent-2);
}

.page-fitlys .fitlys-banner__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  background: linear-gradient(135deg, var(--fitlys-banner-accent) 0%, var(--fitlys-banner-deep) 100%);
  border: none;
  border-radius: 999px;
  box-shadow: 0 14px 30px -10px rgba(57, 109, 27, 0.45);
  transition: transform 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease;
}

.page-fitlys .fitlys-banner__cta:hover {
  color: var(--white);
  transform: translateY(-3px);
  filter: brightness(1.06);
  box-shadow: 0 20px 40px -12px rgba(57, 109, 27, 0.55);
}

.page-fitlys .fitlys-banner__cta i {
  font-size: 15px;
  transition: transform 0.3s ease;
}

.page-fitlys .fitlys-banner__cta:hover i {
  transform: translateX(4px);
}

/* ---- Right product showcase ---- */
.page-fitlys .fitlys-hero--editorial .fitlys-banner__visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: clamp(280px, 36vw, 400px);
}

.page-fitlys .fitlys-banner__stage {
  position: relative;
  width: min(100%, 340px);
  aspect-ratio: 1;
  overflow: visible;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-fitlys .fitlys-banner__stage-layer {
  position: absolute;
  inset: 0;
  border: none;
  border-radius: 50%;
}

/* light green disc backdrop */
.page-fitlys .fitlys-banner__stage-layer--back {
  inset: 4%;
  background:
    radial-gradient(circle at 50% 38%, #ffffff 0%, #eaf6e3 60%, #d2ebc6 100%);
  box-shadow:
    0 40px 70px -28px rgba(57, 109, 27, 0.45),
    inset 0 2px 0 rgba(255, 255, 255, 0.8),
    inset 0 -16px 40px -22px rgba(57, 109, 27, 0.28);
}

/* rotating dashed ring removed — keep the static disc only */
.page-fitlys .fitlys-banner__stage-layer--mid {
  display: none;
}

.page-fitlys .fitlys-banner__product {
  position: relative;
  z-index: 2;
  max-width: 64%;
  max-height: 62%;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 26px 32px rgba(57, 109, 27, 0.3));
  transition: none;
}

.page-fitlys .fitlys-banner:hover .fitlys-banner__product {
  transform: none;
}

/* spec badge — pinned to the lower-right edge of the circle */
.page-fitlys .fitlys-banner__ribbon {
  position: absolute;
  z-index: 4;
  top: auto;
  left: auto;
  right: 5%;
  bottom: -2%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 92px;
  padding: 13px 16px;
  text-align: center;
  color: var(--white);
  background: linear-gradient(145deg, var(--fitlys-banner-accent) 0%, var(--fitlys-banner-deep) 100%);
  border-radius: 16px;
  box-shadow: 0 16px 32px -12px rgba(57, 109, 27, 0.5);
  transform: rotate(4deg);
  transition: transform 0.35s ease;
}

.page-fitlys .fitlys-banner__ribbon strong {
  display: block;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.05em;
  line-height: 1.15;
  text-transform: uppercase;
}

.page-fitlys .fitlys-banner__ribbon span {
  display: block;
  margin-top: 3px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
}

.page-fitlys .fitlys-banner:hover .fitlys-banner__ribbon {
  transform: rotate(2deg) scale(1.05);
}

/* ---- Indicators ---- */
.page-fitlys .fitlys-hero--editorial .fitlys-hero__indicators {
  margin: 0;
  bottom: 22px;
  gap: 8px;
  z-index: 3;
}

.page-fitlys .fitlys-hero--editorial .fitlys-hero__indicators [data-bs-target] {
  width: 28px;
  height: 4px;
  border: none;
  border-radius: 999px;
  background: rgba(57, 109, 27, 0.22);
  opacity: 1;
  transition: width 0.3s ease, background 0.3s ease;
}

.page-fitlys .fitlys-hero--editorial .fitlys-hero__indicators [data-bs-target].active {
  width: 46px;
  background: var(--fitlys-banner-accent);
}

/* ---- Clean cross-fade between slides ----
   The whole slide fades as one piece. The outgoing slide is held fully
   opaque until the incoming slide finishes fading in, so the mint
   background never flashes between slides. */
.page-fitlys .fitlys-hero--editorial .carousel-fade .carousel-item {
  opacity: 0;
  transition: opacity 0.7s ease-in-out;
}

.page-fitlys .fitlys-hero--editorial .carousel-fade .carousel-item.active,
.page-fitlys .fitlys-hero--editorial .carousel-fade .carousel-item-next.carousel-item-start,
.page-fitlys .fitlys-hero--editorial .carousel-fade .carousel-item-prev.carousel-item-end {
  opacity: 1;
}

.page-fitlys .fitlys-hero--editorial .carousel-fade .active.carousel-item-start,
.page-fitlys .fitlys-hero--editorial .carousel-fade .active.carousel-item-end {
  opacity: 0;
  transition: opacity 0s 0.7s;
}

/* ---- Tablet ---- */
@media screen and (min-width: 768px) and (max-width: 991px) {
  .page-fitlys {
    --fitlys-banner-h: auto;
  }

  /* the shared dhatri-banners.css forces a fixed 440px slide height here
     (!important), which crops the stacked CTA — let the banner grow to
     fit its content instead */
  .page-fitlys .fitlys-hero {
    --dhatri-slide-h: auto;
  }

  .page-fitlys .fitlys-hero--editorial .carousel,
  .page-fitlys .fitlys-hero--editorial .carousel-inner,
  .page-fitlys .fitlys-hero--editorial .carousel-item,
  .page-fitlys .fitlys-hero--editorial .fitlys-banner {
    height: auto !important;
    min-height: 0 !important;
  }

  .page-fitlys .fitlys-hero--editorial .fitlys-banner__layout {
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: clamp(28px, 5vw, 40px);
    padding: clamp(16px, 2.5vw, 24px) clamp(16px, 2.5vw, 24px) clamp(36px, 4.5vw, 44px);
  }

  .page-fitlys .fitlys-hero--editorial .fitlys-banner__panel {
    margin-top: auto;
  }

  .page-fitlys .fitlys-hero--editorial .fitlys-banner__copy {
    margin-top: clamp(20px, 4vw, 36px);
    padding-top: clamp(10px, 2.5vw, 18px);
  }

  .page-fitlys .fitlys-banner__title { max-width: none; }

  .page-fitlys .fitlys-hero--editorial .fitlys-banner__visual {
    order: -1;
    height: auto;
    min-height: 0;
    max-height: none;
    padding-top: calc(var(--site-header-height, 72px) + 8px);
  }

  .page-fitlys .fitlys-banner__stage {
    width: 100%;
    aspect-ratio: auto;
  }

  .page-fitlys .fitlys-banner__product {
    max-width: 86%;
    max-height: 300px;
    margin-bottom: clamp(24px, 4vw, 36px);
  }

  /* remove the circular disc backdrop and the spec/tag badge */
  .page-fitlys .fitlys-banner__stage-layer--back,
  .page-fitlys .fitlys-banner__ribbon {
    display: none;
  }

  /* perks as pills */
  .page-fitlys .fitlys-banner__perks {
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: 0 auto 16px;
  }

  .page-fitlys .fitlys-banner__perks li {
    padding: 8px 14px;
    font-weight: 600;
    color: var(--dhatri-brown);
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(57, 109, 27, 0.12);
    border-radius: 100px;
    box-shadow: 0 4px 14px rgba(57, 109, 27, 0.07);
    white-space: nowrap;
  }

  .page-fitlys .fitlys-banner__perks li + li::before {
    content: none;
  }

  .page-fitlys .fitlys-banner__perks i {
    display: inline-block;
  }
}

/* ---- Mobile ---- */
@media screen and (max-width: 767px) {
  .page-fitlys {
    --fitlys-banner-h: auto;
  }

  .page-fitlys .fitlys-hero--editorial .fitlys-banner {
    display: block;
  }

  .page-fitlys .fitlys-hero--editorial .fitlys-banner__layout {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 24px 18px 32px;
    text-align: center;
  }

  .page-fitlys .fitlys-hero--editorial .fitlys-banner__copy {
    align-items: center;
    text-align: center;
    margin-top: clamp(4px, 1.5vw, 10px);
    padding-top: 20px;
  }

  .page-fitlys .fitlys-banner__title,
  .page-fitlys .fitlys-banner__lead {
    max-width: 100%;
  }

  .page-fitlys .fitlys-banner__perks {
    justify-content: center;
  }

  /* top padding clears the fixed transparent header so the product
     isn't tucked behind the logo on phones */
  .page-fitlys .fitlys-hero--editorial .fitlys-banner__visual {
    order: -1;
    height: auto;
    min-height: 0;
    max-height: none;
    padding-top: calc(var(--site-header-height, 72px) + 8px);
  }

  .page-fitlys .fitlys-banner__stage {
    width: 100%;
    aspect-ratio: auto;
  }

  .page-fitlys .fitlys-banner__product {
    max-width: 86%;
    max-height: 220px;
    margin-bottom: 20px;
  }

  /* remove the circular disc backdrop and the spec/tag badge */
  .page-fitlys .fitlys-banner__stage-layer--back,
  .page-fitlys .fitlys-banner__ribbon {
    display: none;
  }

  /* perks as pills */
  .page-fitlys .fitlys-banner__perks {
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: 0 auto 12px;
  }

  .page-fitlys .fitlys-banner__perks li {
    padding: 7px 13px;
    font-weight: 600;
    color: var(--dhatri-brown);
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(57, 109, 27, 0.12);
    border-radius: 100px;
    box-shadow: 0 4px 14px rgba(57, 109, 27, 0.07);
    white-space: nowrap;
  }

  .page-fitlys .fitlys-banner__perks li + li::before {
    content: none;
  }

  .page-fitlys .fitlys-banner__perks i {
    display: inline-block;
  }

  .page-fitlys .fitlys-banner__cta {
    width: 100%;
    justify-content: center;
  }

  .page-fitlys .fitlys-hero--editorial .fitlys-hero__indicators {
    bottom: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-fitlys .fitlys-banner__stage-layer--mid {
    animation: none;
  }

  .page-fitlys .fitlys-banner__ribbon,
  .page-fitlys .fitlys-banner__cta {
    transition: none;
  }

  .page-fitlys .fitlys-banner:hover .fitlys-banner__ribbon,
  .page-fitlys .fitlys-banner__cta:hover {
    transform: none;
  }
}
