/* ==========================================================
   BUBUBU – TEMPORARY BIG SAVINGS HOMEPAGE HERO
   Remove the matching CSS and JavaScript references after the campaign.
   ========================================================== */

body.type-index .bb-big-savings-hero,
body.type-index .bb-big-savings-hero * {
  box-sizing: border-box;
}

body.type-index .bb-big-savings-hero {
  position: relative;
  z-index: 0;
  display: grid;
  grid-template-columns: minmax(360px, .82fr) minmax(0, 1.18fr);
  grid-template-areas: "content media";
  width: 100%;
  height: clamp(450px, 34vw, 540px);
  min-height: 0;
  margin: 0;
  overflow: hidden;
  background: #f3efea;
  color: #211f1d;
  isolation: isolate;
}

body.type-index .bb-big-savings-hero__media {
  position: relative;
  grid-area: media;
  display: block;
  min-width: 0;
  min-height: 100%;
  overflow: hidden;
  background: #e8ecec;
}

body.type-index .bb-big-savings-hero__image {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  margin: 0;
  object-fit: cover;
  object-position: 50% 63%;
  transform: scale(1.001);
  transition: transform .8s cubic-bezier(.2, .7, .2, 1);
}

body.type-index .bb-big-savings-hero__media::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, rgba(33, 31, 29, .09), rgba(33, 31, 29, 0) 20%);
  pointer-events: none;
}

body.type-index .bb-big-savings-hero__content {
  position: relative;
  z-index: 1;
  grid-area: content;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  min-width: 0;
  padding: clamp(42px, 5vw, 76px);
  background:
    radial-gradient(circle at 12% 8%, rgba(220, 45, 27, .07), transparent 32%),
    #f3efea;
}

body.type-index .bb-big-savings-hero__eyebrow {
  margin: 0 0 17px;
  color: #d93622;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: .13em;
  text-transform: uppercase;
}

body.type-index .bb-big-savings-hero__title {
  max-width: 10.5ch;
  margin: 0 0 20px;
  color: #211f1d;
  font-family: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
  font-size: clamp(48px, 4.4vw, 70px);
  font-weight: 700;
  line-height: .96;
  letter-spacing: -.018em;
  text-wrap: balance;
}

body.type-index .bb-big-savings-hero__text {
  max-width: 34rem;
  margin: 0 0 28px;
  color: #5d5751;
  font-size: 17px;
  line-height: 1.55;
}

body.type-index .bb-big-savings-hero__button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  min-height: 50px;
  padding: 13px 52px 13px 22px;
  border: 1px solid #d93622;
  border-radius: 4px;
  background: #d93622;
  color: #fff !important;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none !important;
  transition: background-color .2s ease, color .2s ease, transform .2s ease;
}

body.type-index .bb-big-savings-hero__button::after {
  position: absolute;
  top: 50%;
  right: 20px;
  content: "\2192";
  font-size: 19px;
  font-weight: 400;
  line-height: 1;
  transform: translateY(-52%);
  transition: transform .2s ease;
}

/* The long-term winter hero becomes the supporting campaign block. */
body.type-index.bb-savings-campaign-active .bb-main-hero.bb-main-hero--secondary {
  height: clamp(430px, 34vw, 560px) !important;
}

body.type-index.bb-savings-campaign-active .bb-main-hero--secondary .bb-main-hero__title {
  max-width: 560px !important;
  font-size: clamp(42px, 3.7vw, 60px) !important;
}

/* Avoid repeating the same winter campaign immediately beside the moved hero. */
body.type-index.bb-savings-campaign-active .bb-seasonal {
  display: none !important;
}

@media (hover: hover) and (pointer: fine) {
  body.type-index .bb-big-savings-hero:hover .bb-big-savings-hero__image {
    transform: scale(1.025);
  }

  body.type-index .bb-big-savings-hero__button:hover {
    background: #211f1d;
    border-color: #211f1d;
    color: #fff !important;
    transform: translateY(-2px);
  }

  body.type-index .bb-big-savings-hero__button:hover::after {
    transform: translate(4px, -52%);
  }
}

@media (max-width: 991px) {
  body.type-index .bb-big-savings-hero {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-areas:
      "media"
      "content";
    height: auto;
  }

  body.type-index .bb-big-savings-hero__media {
    min-height: 0;
    aspect-ratio: 4 / 3;
  }

  body.type-index .bb-big-savings-hero__image {
    object-position: 50% 65%;
  }

  body.type-index .bb-big-savings-hero__media::after {
    background: linear-gradient(180deg, rgba(33, 31, 29, 0) 76%, rgba(33, 31, 29, .08) 100%);
  }

  body.type-index .bb-big-savings-hero__content {
    padding: 36px 22px 40px;
  }

  body.type-index .bb-big-savings-hero__eyebrow {
    margin-bottom: 13px;
    font-size: 12px;
  }

  body.type-index .bb-big-savings-hero__title {
    max-width: 11ch;
    margin-bottom: 16px;
    font-size: clamp(40px, 12vw, 54px);
    line-height: .97;
  }

  body.type-index .bb-big-savings-hero__text {
    margin-bottom: 24px;
    font-size: 16px;
    line-height: 1.5;
  }

  body.type-index .bb-big-savings-hero__button {
    align-self: stretch;
    width: 100%;
  }

  body.type-index.bb-savings-campaign-active .bb-main-hero.bb-main-hero--secondary {
    min-height: 520px !important;
    height: auto !important;
  }

  body.type-index.bb-savings-campaign-active .bb-main-hero--secondary .bb-main-hero__title {
    font-size: clamp(34px, 9.8vw, 44px) !important;
  }
}

@media (max-width: 420px) {
  body.type-index .bb-big-savings-hero__content {
    padding-right: 18px;
    padding-left: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.type-index .bb-big-savings-hero__image,
  body.type-index .bb-big-savings-hero__button,
  body.type-index .bb-big-savings-hero__button::after {
    transition: none !important;
  }
}
