/* Turmeric B1G4 Christmas Hero (Combined Version A & Version B) */

/* ---- Anti-Flash Variant Visibility ---- */
.th-hero--christmas-A,
.th-hero--christmas-B {
  display: none;
}

html[data-th-variant="A"] .th-hero--christmas-A {
  display: grid; /* Matches live .hero-section layout */
}

html[data-th-variant="B"] .th-hero--christmas-B {
  display: grid; /* Matches live .hero-section layout */
}

/* ---- Variant-Specific Background Variables ---- */
.th-hero--christmas-A {
  --th-bg-desktop: url("/assets/xmas-turmeric/turmeric-christmas-A-bg-desktop.webp");
  --th-bg-mobile: url("/assets/xmas-turmeric/turmeric-christmas-A-bg-mobile.webp");
}

.th-hero--christmas-B {
  --th-bg-desktop: url("/assets/xmas-turmeric/turmeric-christmas-B-bg-desktop.webp");
  --th-bg-mobile: url("/assets/xmas-turmeric/turmeric-christmas-B-bg-mobile.webp");
}

/* ---- Shared Hero Base & Background ---- */
.th-hero {
  position: relative;
  isolation: isolate;
}

.th-hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 34px;
  bottom: 0;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  background: var(--th-bg-desktop) center top / cover no-repeat;
  pointer-events: none;
}

/* ---- Hanging Lights (Version A Only) ---- */
.th-hero--christmas-A .th-lights {
  position: absolute;
  z-index: 3;
  top: 33px;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  pointer-events: none;
  line-height: 0;
}

.th-hero--christmas-A .th-lights img {
  display: block;
  width: 100%;
  height: auto;
}

/* ---- Cream Wash Behind Copy Column ---- */
.th-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: 34px;
  bottom: 0;
  left: -130px;
  width: 800px;
  background: linear-gradient(90deg,
    rgba(238,232,220,.25) 0, rgba(238,232,220,.30) 40px, rgba(238,232,220,.55) 80px, rgba(238,232,220,.90) 115px, rgba(238,232,220,.97) 145px,
    rgba(238,232,220,.95) 600px, rgba(238,232,220,.80) 720px, rgba(238,232,220,.50) 745px, rgba(238,232,220,.30) 765px, rgba(238,232,220,0) 800px);
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,.8) 0, #000 160px, #000 calc(100% - 260px), rgba(0,0,0,.35) 100%);
          mask-image: linear-gradient(180deg, rgba(0,0,0,.8) 0, #000 160px, #000 calc(100% - 260px), rgba(0,0,0,.35) 100%);
  pointer-events: none;
}

/* Version A art is lighter behind copy; Version B stays at full opacity (1) */
.th-hero--christmas-A::after {
  opacity: .3;
}

/* ---- Typography & Product Frame ---- */
.th-hero .badge-container {
  max-width: 100%;
  white-space: nowrap;
}

.th-hero .hero-title .italic-highlight {
  display: block;
}

.th-hero .th-br-m {
  display: none;
}

.th-hero .product-shot-box {
  background: none;
}

.th-hero .product-shot-box img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 23px;
}

/* ---- Responsive Breakpoints ---- */
@media (max-width: 1000px) {
  .th-hero::before {
    background-image: var(--th-bg-mobile);
  }
  .th-hero::after {
    left: 0;
    width: 100%;
    background: linear-gradient(90deg, rgba(238,232,220,.88) 0, rgba(238,232,220,.58) 100%);
    -webkit-mask-image: linear-gradient(180deg, #000 0, #000 calc(100% - 560px), rgba(0,0,0,.8) calc(100% - 480px), rgba(0,0,0,.38) calc(100% - 420px), rgba(0,0,0,0) calc(100% - 380px));
            mask-image: linear-gradient(180deg, #000 0, #000 calc(100% - 560px), rgba(0,0,0,.8) calc(100% - 480px), rgba(0,0,0,.38) calc(100% - 420px), rgba(0,0,0,0) calc(100% - 380px));
  }
  .th-hero--christmas-A::after {
    opacity: .6;
  }
}

@media (max-width: 691px) {
  .th-hero::before,
  .th-hero::after {
    top: 0;
  }
  .th-hero--christmas-A .th-lights {
    top: 11px;
  }
}

@media (max-width: 575px) {
  .th-hero::before,
  .th-hero::after {
    top: 0;
  }
  .th-hero--christmas-A .th-lights {
    top: -1px;
  }
  .th-hero .th-br-m {
    display: inline;
  }
}

@media (max-width: 389px) {
  .th-hero .hero-title {
    font-size: 44px;
    line-height: 45px;
  }
}