/* ═══════════════════════════════════════════════════════════════════════════
   TBII Store — Flagship Festive Theme v2 (Christmas & New Year)
   Loaded ONLY while festiveTheme.active (Dec 1 – Jan 1 auto, or Admin override)
   and on /christmas-deals. Automatically absent Jan 2 – Nov 30.
   Animation architecture: 100% GPU-composited CSS (transform + opacity only)
   + lightweight inline SVG garland, zero third-party animation libraries,
   fully paused under prefers-reduced-motion.
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
  --festive-evergreen-deep: #06281d;
  --festive-evergreen: #0d4a36;
  --festive-evergreen-bright: #146348;
  --festive-crimson-deep: #6b111d;
  --festive-crimson: #961b2a;
  --festive-gold: #e8c77b;
  --festive-gold-bright: #f7dfa0;
  --festive-gold-soft: rgba(232, 199, 123, 0.28);
  --festive-navy-deep: #07162b;
  --festive-navy: #122b4d;
  --festive-sapphire: #1e4273;
  --festive-cta-start: #ea580c;
  --festive-cta-end: #f59e0b;
}

/* ── 0. GPU-COMPOSITED FESTIVE ANIMATION KEYFRAMES ────────────────────── */
@keyframes tbiiSnowFallSlow {
  0% {
    transform: translate3d(0, -18%, 0);
  }
  50% {
    transform: translate3d(14px, 0%, 0);
  }
  100% {
    transform: translate3d(-6px, 18%, 0);
  }
}

@keyframes tbiiSnowFallFast {
  0% {
    transform: translate3d(10px, -22%, 0);
  }
  50% {
    transform: translate3d(-12px, 0%, 0);
  }
  100% {
    transform: translate3d(8px, 22%, 0);
  }
}

@keyframes tbiiBulbTwinkle {
  0%,
  100% {
    opacity: 0.48;
  }
  50% {
    opacity: 1;
  }
}

@keyframes tbiiGoldSheen {
  0%,
  72% {
    transform: translateX(-140%) skewX(-22deg);
    opacity: 0;
  }
  78% {
    opacity: 0.65;
  }
  100% {
    transform: translateX(260%) skewX(-22deg);
    opacity: 0;
  }
}

/* Shared 2-layer parallax snow overlay (strictly pointer-events: none) */
.tbii-snow-layer {
  position: absolute;
  inset: -24% -4%;
  pointer-events: none;
  overflow: hidden;
  z-index: 2;
}

.tbii-snow-layer::before,
.tbii-snow-layer::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  will-change: transform;
}

.tbii-snow-layer::before {
  background-image:
    radial-gradient(2.2px 2.2px at 8% 18%, rgba(255, 255, 255, 0.72), transparent),
    radial-gradient(1.8px 1.8px at 22% 62%, rgba(255, 252, 240, 0.62), transparent),
    radial-gradient(2.6px 2.6px at 36% 28%, rgba(255, 255, 255, 0.76), transparent),
    radial-gradient(1.6px 1.6px at 51% 74%, rgba(247, 223, 160, 0.62), transparent),
    radial-gradient(2.4px 2.4px at 66% 22%, rgba(255, 255, 255, 0.7), transparent),
    radial-gradient(1.8px 1.8px at 78% 58%, rgba(255, 255, 255, 0.64), transparent),
    radial-gradient(2.2px 2.2px at 91% 34%, rgba(247, 223, 160, 0.66), transparent);
  background-size: 360px 180px;
  animation: tbiiSnowFallSlow 16s linear infinite;
}

.tbii-snow-layer::after {
  background-image:
    radial-gradient(1.5px 1.5px at 14% 44%, rgba(255, 255, 255, 0.55), transparent),
    radial-gradient(2px 2px at 31% 82%, rgba(247, 223, 160, 0.52), transparent),
    radial-gradient(1.5px 1.5px at 47% 16%, rgba(255, 255, 255, 0.56), transparent),
    radial-gradient(2.3px 2.3px at 63% 68%, rgba(255, 255, 255, 0.6), transparent),
    radial-gradient(1.6px 1.6px at 84% 26%, rgba(255, 255, 255, 0.54), transparent),
    radial-gradient(2px 2px at 95% 78%, rgba(247, 223, 160, 0.55), transparent);
  background-size: 280px 160px;
  animation: tbiiSnowFallFast 11s linear infinite;
}

.tbii-snow-layer--subtle {
  opacity: 0.55;
}

.tbii-snow-layer--hero {
  z-index: 4;
  opacity: 0.72;
}

/* ── 1. TOP FESTIVE RIBBON + TWINKLING FAIRY-LIGHT GARLAND ────────────── */
.tbii-festive-bar {
  position: relative;
  overflow: hidden;
  width: 100%;
  background: linear-gradient(
    90deg,
    var(--festive-evergreen-deep) 0%,
    var(--festive-evergreen) 46%,
    var(--festive-crimson-deep) 100%
  );
  color: #fffdf7;
  border-bottom: 1px solid rgba(232, 199, 123, 0.34);
  z-index: 60;
}

.tbii-festive-bar--new_year {
  background: linear-gradient(
    90deg,
    var(--festive-navy-deep) 0%,
    var(--festive-navy) 52%,
    var(--festive-sapphire) 100%
  );
}

.tbii-festive-bar::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 50%, rgba(232, 199, 123, 0.18), transparent 32%),
    radial-gradient(circle at 86% 50%, rgba(232, 199, 123, 0.16), transparent 28%);
}

.tbii-festive-bar__inner {
  position: relative;
  z-index: 3;
  max-width: var(--store-max-width, 1400px);
  margin: 0 auto;
  padding: 8px var(--store-gutter, 20px) 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px 12px;
  flex-wrap: wrap;
  font-size: 0.79rem;
  line-height: 1.3;
}

.tbii-festive-bar__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(232, 199, 123, 0.16);
  border: 1px solid rgba(232, 199, 123, 0.5);
  color: var(--festive-gold-bright);
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  white-space: nowrap;
}

.tbii-festive-bar__copy {
  color: rgba(255, 253, 247, 0.94);
  font-weight: 500;
  text-align: center;
}

/* Inline real calendar countdown in top bar */
.tbii-festive-cd {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 9px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.24);
  border: 1px solid rgba(232, 199, 123, 0.34);
  font-size: 0.72rem;
  font-weight: 600;
  color: #fffdf7;
  white-space: nowrap;
}

.tbii-festive-cd__lbl {
  color: var(--festive-gold-bright);
  font-weight: 700;
  margin-right: 2px;
}

.tbii-festive-cd__unit {
  display: inline-flex;
  align-items: baseline;
  gap: 1px;
  padding: 1px 5px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.11);
  font-variant-numeric: tabular-nums;
  font-size: 0.71rem;
}

.tbii-festive-cd__unit b {
  color: #fff;
  font-weight: 800;
}

.tbii-festive-cd.is-complete {
  color: var(--festive-gold-bright);
  font-weight: 800;
  letter-spacing: 0.02em;
}

.tbii-festive-bar__cta {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 13px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--festive-cta-start), var(--festive-cta-end));
  color: #fff !important;
  font-size: 0.73rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.24);
  transition:
    transform 0.18s ease,
    filter 0.18s ease;
}

.tbii-festive-bar__cta::after,
.jb-link--festive::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 38%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 250, 232, 0.45) 50%,
    transparent 100%
  );
  pointer-events: none;
  animation: tbiiGoldSheen 6.5s ease-in-out infinite;
}

.tbii-festive-bar__cta:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
}

/* Delicate SVG fairy-light garland along the bottom edge */
.tbii-garland {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  width: 100%;
  height: 13px;
  pointer-events: none;
  z-index: 3;
  display: block;
}

.tbii-bulb {
  animation: tbiiBulbTwinkle 2.8s ease-in-out infinite;
  will-change: opacity;
}

.tbii-bulb--gold {
  fill: #fde68a;
  filter: drop-shadow(0 0 3px rgba(253, 230, 138, 0.9));
}

.tbii-bulb--ruby {
  fill: #fca5a5;
  filter: drop-shadow(0 0 3px rgba(248, 113, 113, 0.85));
  animation-delay: 0.9s;
}

.tbii-bulb--emerald {
  fill: #6ee7b7;
  filter: drop-shadow(0 0 3px rgba(110, 231, 183, 0.85));
  animation-delay: 1.7s;
}

.tbii-festive-bar--new_year .tbii-bulb--ruby {
  fill: #93c5fd;
  filter: drop-shadow(0 0 3px rgba(147, 197, 253, 0.9));
}

.tbii-festive-bar--new_year .tbii-bulb--emerald {
  fill: #e0e7ff;
  filter: drop-shadow(0 0 3px rgba(224, 231, 255, 0.9));
}

/* ── 2. HEADER RIBBON ACCENT, NAV PILL & LAPTOP SEARCH-BAR PROTECTION ─── */
body[data-festive='christmas'] .jumia-bar {
  border-bottom: 2.5px solid transparent;
  border-image: linear-gradient(
      90deg,
      var(--festive-evergreen) 0%,
      var(--festive-gold) 50%,
      var(--festive-crimson) 100%
    )
    1;
}

body[data-festive='new_year'] .jumia-bar {
  border-bottom: 2.5px solid transparent;
  border-image: linear-gradient(
      90deg,
      var(--festive-navy) 0%,
      var(--festive-gold) 50%,
      var(--festive-sapphire) 100%
    )
    1;
}

.jb-link--festive {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px !important;
  border-radius: 999px;
  background: linear-gradient(135deg, #0b4a35 0%, #8a1927 100%);
  color: #fffdf7 !important;
  font-weight: 700 !important;
  font-size: 0.77rem !important;
  letter-spacing: 0.01em;
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: 0 3px 10px rgba(11, 74, 53, 0.22);
  transition:
    transform 0.16s ease,
    filter 0.16s ease;
}

body[data-festive='new_year'] .jb-link--festive {
  background: linear-gradient(135deg, #0b1f3a 0%, #1d4375 100%);
  border: 1px solid rgba(232, 199, 123, 0.45);
}

.jb-link--festive .ni,
.jb-link--festive i {
  color: var(--festive-gold-bright) !important;
}

.jb-link--festive:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
}

/* Protect the search bar from clipping on mid-width laptops (1100–1360px) */
@media (min-width: 769px) {
  body[data-festive] .jb-search-wrap {
    min-width: 170px;
  }
}

@media (max-width: 1360px) {
  body[data-festive] .jumia-bar-inner {
    gap: 10px;
  }
  body[data-festive] .jb-left .jb-link:not(.jb-link--festive):not(.cat-dropdown-wrap *) {
    display: none;
  }
}

@media (max-width: 1180px) {
  body[data-festive] .jb-left .jb-link--festive {
    display: none;
  }
}

/* ── 3. HOMEPAGE FULL-WIDTH HERO BAND HARMONY (DESKTOP >= 1024px) ─────── */
@media (min-width: 1024px) {
  body[data-festive='christmas'] .store-container:has(> .hero-carousel) {
    background: linear-gradient(95deg, #06281d 0%, #0d4a36 48%, #59111c 100%) !important;
    border-bottom: 1px solid rgba(232, 199, 123, 0.28);
  }
  body[data-festive='new_year'] .store-container:has(> .hero-carousel) {
    background: linear-gradient(95deg, #061326 0%, #10294b 52%, #1f4273 100%) !important;
    border-bottom: 1px solid rgba(232, 199, 123, 0.28);
  }
}

/* ── 4. HOMEPAGE PHOTO-BACKED EDITORIAL HOLIDAY GIFT-DISCOVERY STRIP ──── */
.tbii-holiday-strip {
  margin: 18px 0 24px;
}

.tbii-holiday-strip__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.tbii-holiday-strip__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #8f1d2c;
  margin-bottom: 3px;
}

body[data-festive='new_year'] .tbii-holiday-strip__eyebrow {
  color: #163763;
}

.tbii-holiday-strip__title {
  margin: 0;
  font-size: clamp(1.12rem, 2vw, 1.38rem);
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
}

.tbii-holiday-strip__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.tbii-holiday-strip__seasonal {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #fffdf7 !important;
  text-decoration: none;
  padding: 6px 13px;
  border-radius: 999px;
  background: linear-gradient(135deg, #0b4a35 0%, #156d50 100%);
  border: 1px solid rgba(232, 199, 123, 0.4);
  box-shadow: 0 4px 12px -6px rgba(11, 74, 53, 0.55);
  transition:
    transform 0.16s ease,
    filter 0.16s ease;
}

.tbii-holiday-strip__seasonal i {
  color: var(--festive-gold-bright);
}

.tbii-holiday-strip__seasonal:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
}

.tbii-holiday-strip__more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #0d4a36;
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(13, 74, 54, 0.08);
  transition:
    background 0.16s ease,
    transform 0.16s ease;
}

.tbii-holiday-strip__more:hover {
  background: rgba(13, 74, 54, 0.15);
  transform: translateX(2px);
}

.tbii-holiday-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.tbii-gift-tile {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 158px;
  padding: 13px 14px 14px;
  border-radius: 16px;
  text-decoration: none;
  color: #fffdf8 !important;
  border: 1px solid rgba(232, 199, 123, 0.34);
  box-shadow: 0 10px 26px -14px rgba(15, 23, 42, 0.55);
  transition:
    transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.22s ease;
}

.tbii-gift-tile__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
  transform: scale(1.01);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  filter: saturate(1.06) brightness(0.86);
}

.tbii-gift-tile:hover .tbii-gift-tile__bg {
  transform: scale(1.08);
}

.tbii-gift-tile::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.tbii-gift-tile:hover {
  transform: translateY(-4px);
  border-color: rgba(247, 223, 160, 0.85);
  box-shadow: 0 18px 34px -14px rgba(15, 23, 42, 0.65);
}

/* Rich tone-matched editorial scrims so white text always reads with high contrast */
.tbii-gift-tile--evergreen {
  background: linear-gradient(145deg, #062f22 0%, #125d44 100%);
}
.tbii-gift-tile--evergreen::before {
  background: linear-gradient(
    180deg,
    rgba(6, 40, 29, 0.36) 0%,
    rgba(6, 40, 29, 0.66) 52%,
    rgba(6, 36, 26, 0.94) 100%
  );
}

.tbii-gift-tile--crimson {
  background: linear-gradient(145deg, #7f1422 0%, #a61e2e 100%);
}
.tbii-gift-tile--crimson::before {
  background: linear-gradient(
    180deg,
    rgba(96, 14, 26, 0.34) 0%,
    rgba(96, 14, 26, 0.68) 54%,
    rgba(82, 11, 22, 0.94) 100%
  );
}

.tbii-gift-tile--burgundy {
  background: linear-gradient(145deg, #5c1916 0%, #8e321f 100%);
}
.tbii-gift-tile--burgundy::before {
  background: linear-gradient(
    180deg,
    rgba(72, 20, 16, 0.34) 0%,
    rgba(72, 20, 16, 0.68) 54%,
    rgba(58, 15, 12, 0.94) 100%
  );
}

.tbii-gift-tile--plum {
  background: linear-gradient(145deg, #4b123f 0%, #7a2161 100%);
}
.tbii-gift-tile--plum::before {
  background: linear-gradient(
    180deg,
    rgba(56, 14, 48, 0.34) 0%,
    rgba(56, 14, 48, 0.68) 54%,
    rgba(46, 10, 40, 0.94) 100%
  );
}

.tbii-gift-tile--sapphire {
  background: linear-gradient(145deg, #0b2244 0%, #1b4378 100%);
}
.tbii-gift-tile--sapphire::before {
  background: linear-gradient(
    180deg,
    rgba(9, 28, 56, 0.34) 0%,
    rgba(9, 28, 56, 0.68) 54%,
    rgba(8, 22, 46, 0.94) 100%
  );
}

.tbii-gift-tile--emerald {
  background: linear-gradient(145deg, #0e3838 0%, #195f5b 100%);
}
.tbii-gift-tile--emerald::before {
  background: linear-gradient(
    180deg,
    rgba(12, 46, 46, 0.34) 0%,
    rgba(12, 46, 46, 0.68) 54%,
    rgba(10, 38, 38, 0.94) 100%
  );
}

.tbii-gift-tile__top {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.tbii-gift-tile__icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 18, 16, 0.45);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(232, 199, 123, 0.48);
  color: var(--festive-gold-bright);
  font-size: 0.86rem;
  flex-shrink: 0;
}

.tbii-gift-tile__badge {
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(10, 18, 16, 0.52);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(232, 199, 123, 0.4);
  color: var(--festive-gold-bright);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}

.tbii-gift-tile__body {
  position: relative;
  z-index: 2;
  margin-top: 26px;
}

.tbii-gift-tile__name {
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.2;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.38);
}

.tbii-gift-tile__sub {
  margin-top: 3px;
  font-size: 0.72rem;
  font-weight: 500;
  color: rgba(255, 253, 245, 0.88);
}

/* ── 5. HOMEPAGE SECTION HEADER FESTIVE HARMONY ───────────────────────── */
body[data-festive='christmas'] .home-section-head--flash {
  background: linear-gradient(95deg, #062f22 0%, #11533d 42%, #861726 100%) !important;
  border: 1px solid rgba(232, 199, 123, 0.42);
}

body[data-festive='christmas'] .home-section-head--discover {
  background: linear-gradient(95deg, #06281d 0%, #0e4a36 58%, #18644a 100%) !important;
  border: 1px solid rgba(232, 199, 123, 0.3);
}

body[data-festive='christmas'] .home-section-head--catalog {
  background: linear-gradient(125deg, #520d18 0%, #7d1525 42%, #0d4a36 100%) !important;
  border: 1px solid rgba(232, 199, 123, 0.35);
}

body[data-festive='new_year'] .home-section-head--flash {
  background: linear-gradient(95deg, #07172d 0%, #132f57 52%, #24487a 100%) !important;
  border: 1px solid rgba(232, 199, 123, 0.42);
}

body[data-festive='new_year'] .home-section-head--discover {
  background: linear-gradient(95deg, #08182e 0%, #17345f 100%) !important;
  border: 1px solid rgba(232, 199, 123, 0.3);
}

body[data-festive] .home-section-head--flash .home-section-head-icon {
  color: var(--festive-gold-bright) !important;
}

/* ── 6. /christmas-deals FLAGSHIP COLLECTION PAGE ─────────────────────── */
.festive-page {
  max-width: var(--store-max-width, 1400px);
  margin: 0 auto;
  padding: 18px var(--store-gutter, 20px) 48px;
}

.festive-hero {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  padding: clamp(24px, 3.6vw, 42px) clamp(22px, 3.6vw, 44px);
  margin-bottom: 22px;
  color: #fffdf8;
  background: linear-gradient(125deg, #062b1f 0%, #0d4a36 44%, #7c1422 100%);
  border: 1px solid rgba(232, 199, 123, 0.42);
  box-shadow: 0 18px 42px -18px rgba(7, 47, 34, 0.6);
}

.festive-hero--new_year {
  background: linear-gradient(125deg, #07162b 0%, #112b4f 52%, #204578 100%);
}

.festive-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 82% 24%, rgba(232, 199, 123, 0.26), transparent 36%),
    radial-gradient(circle at 18% 85%, rgba(232, 199, 123, 0.16), transparent 32%),
    radial-gradient(circle at 66% 74%, rgba(255, 255, 255, 0.08), transparent 28%);
}

.festive-hero__layout {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.festive-hero__content {
  flex: 1 1 420px;
  max-width: 680px;
}

.festive-hero__crumb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.76rem;
  color: rgba(255, 253, 245, 0.78);
  margin-bottom: 12px;
}

.festive-hero__crumb a {
  color: rgba(255, 253, 245, 0.88);
  text-decoration: none;
}

.festive-hero__crumb a:hover {
  text-decoration: underline;
}

.festive-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(232, 199, 123, 0.16);
  border: 1px solid rgba(232, 199, 123, 0.5);
  color: var(--festive-gold-bright);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.festive-hero__title {
  margin: 0 0 8px;
  font-size: clamp(1.65rem, 3.2vw, 2.5rem);
  font-weight: 900;
  letter-spacing: -0.025em;
  line-height: 1.12;
  color: #fff;
}

.festive-hero__sub {
  margin: 0;
  font-size: clamp(0.9rem, 1.3vw, 1.02rem);
  color: rgba(255, 253, 245, 0.9);
  line-height: 1.5;
}

.festive-hero__quicklinks {
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.festive-hero__quickbtn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--festive-cta-start), var(--festive-cta-end));
  color: #fff !important;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.26);
  transition: transform 0.16s ease;
}

.festive-hero__quickbtn:hover {
  transform: translateY(-1px);
}

.festive-hero__quicklink {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--festive-gold-bright) !important;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
}

.festive-hero__quicklink:hover {
  text-decoration: underline;
}

/* Hero real calendar countdown card */
.festive-hero__clock {
  flex: 0 0 auto;
  padding: 16px 20px;
  border-radius: 18px;
  background: rgba(6, 22, 16, 0.44);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(232, 199, 123, 0.42);
  box-shadow: 0 12px 28px -12px rgba(0, 0, 0, 0.45);
}

.festive-hero__clock-lbl {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--festive-gold-bright);
  margin-bottom: 10px;
}

.festive-hero__clock-grid {
  display: flex;
  align-items: center;
  gap: 8px;
}

.festive-hero__clock-box {
  min-width: 54px;
  padding: 8px 6px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(232, 199, 123, 0.28);
  text-align: center;
}

.festive-hero__clock-box strong {
  display: block;
  font-size: 1.3rem;
  font-weight: 900;
  line-height: 1.1;
  color: #fff;
  font-variant-numeric: tabular-nums;
}

.festive-hero__clock-box span {
  display: block;
  margin-top: 2px;
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 253, 245, 0.78);
}

.festive-hero__clock-done {
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--festive-gold-bright);
  padding: 6px 10px;
}

/* Seasonal > Christmas > Decorations Spotlight shelf on /christmas-deals */
.festive-spotlight {
  padding: 18px 18px 20px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(13, 74, 54, 0.055) 0%, rgba(150, 27, 42, 0.035) 100%);
  border: 1.5px solid rgba(13, 74, 54, 0.18);
  margin: 4px 0 10px;
}

.festive-spotlight__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.festive-spotlight__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #0d4a36;
  margin-bottom: 2px;
}

.festive-spotlight__title {
  margin: 0;
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  font-weight: 800;
  color: #0f172a;
}

.festive-spotlight__count {
  font-weight: 600;
  font-size: 0.88rem;
  color: #64748b;
}

.festive-spotlight__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, #0b4a35 0%, #8a1927 100%);
  color: #fffdf7 !important;
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.16s ease;
}

.festive-spotlight__cta:hover {
  transform: translateY(-1px);
}

.festive-controls {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 20px;
}

.festive-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.festive-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 15px;
  border-radius: 999px;
  border: 1.5px solid #e2e8f0;
  background: #fff;
  color: #1e293b;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  transition:
    border-color 0.16s ease,
    background 0.16s ease,
    color 0.16s ease,
    transform 0.16s ease;
}

.festive-pill--featured:not(.is-active) {
  border-color: rgba(13, 74, 54, 0.42);
  background: rgba(13, 74, 54, 0.06);
  color: #0b4a35;
}

.festive-pill:hover {
  border-color: #0d4a36;
  color: #0d4a36;
  transform: translateY(-1px);
}

.festive-pill.is-active {
  background: linear-gradient(135deg, #083829 0%, #115840 100%);
  border-color: #083829;
  color: #fffdf7;
  box-shadow: 0 6px 16px -8px rgba(8, 56, 41, 0.6);
}

.festive-pill.is-active i {
  color: var(--festive-gold-bright);
}

.festive-meta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.festive-count {
  font-size: 0.85rem;
  color: #475569;
  font-weight: 600;
}

.festive-sort-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.festive-sort-btn {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #334155;
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
}

.festive-sort-btn.is-active {
  background: #0f172a;
  border-color: #0f172a;
  color: #fff;
}

.festive-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

/* Subtle luxury Holiday Deal corner accent on /christmas-deals cards */
.festive-grid .product-card {
  border-color: rgba(13, 74, 54, 0.14);
}

.festive-grid .product-card:hover {
  border-color: rgba(232, 199, 123, 0.72);
  box-shadow: 0 12px 26px -14px rgba(13, 74, 54, 0.38);
}

.festive-empty {
  text-align: center;
  padding: 54px 20px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
}

.festive-pager {
  margin-top: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.festive-pager a,
.festive-pager span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none;
}

.festive-pager a {
  background: #fff;
  border: 1.5px solid #e2e8f0;
  color: #0f172a;
}

.festive-pager a:hover {
  border-color: #0d4a36;
  color: #0d4a36;
}

.festive-pager__status {
  color: #64748b;
  font-size: 0.82rem;
}

/* ── 7. WINTER EVERGREEN & GOLD FOOTER TOPPER ─────────────────────────── */
.tbii-footer-festive {
  position: relative;
  background: linear-gradient(
    90deg,
    var(--festive-evergreen-deep) 0%,
    var(--festive-evergreen) 50%,
    var(--festive-crimson-deep) 100%
  );
  color: #fffdf7;
  border-bottom: 1.5px solid rgba(232, 199, 123, 0.35);
}

body[data-festive='new_year'] .tbii-footer-festive {
  background: linear-gradient(
    90deg,
    var(--festive-navy-deep) 0%,
    var(--festive-navy) 52%,
    var(--festive-sapphire) 100%
  );
}

.tbii-footer-festive__wave {
  position: absolute;
  top: -20px;
  left: 0;
  width: 100%;
  height: 21px;
  color: var(--festive-evergreen);
  pointer-events: none;
  display: block;
}

body[data-festive='new_year'] .tbii-footer-festive__wave {
  color: var(--festive-navy);
}

.tbii-footer-festive__inner {
  padding: 13px var(--store-gutter, 20px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.tbii-footer-festive__msg {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  font-weight: 600;
  color: rgba(255, 253, 245, 0.94);
}

.tbii-footer-festive__msg i {
  color: var(--festive-gold-bright);
}

.tbii-footer-festive__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(232, 199, 123, 0.16);
  border: 1px solid rgba(232, 199, 123, 0.5);
  color: var(--festive-gold-bright) !important;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background 0.16s ease,
    transform 0.16s ease;
}

.tbii-footer-festive__link:hover {
  background: rgba(232, 199, 123, 0.26);
  transform: translateY(-1px);
}

.footer-link--festive {
  color: var(--festive-gold-bright) !important;
  font-weight: 700 !important;
}

/* ── 8. DARK MODE HARMONY ─────────────────────────────────────────────── */
[data-theme='dark'] .tbii-holiday-strip__title,
[data-theme='dark'] .festive-spotlight__title {
  color: #f8fafc;
}
[data-theme='dark'] .tbii-holiday-strip__eyebrow,
[data-theme='dark'] .festive-spotlight__eyebrow {
  color: var(--festive-gold-bright);
}
[data-theme='dark'] .tbii-holiday-strip__more {
  color: var(--festive-gold-bright);
  background: rgba(232, 199, 123, 0.12);
}
[data-theme='dark'] .festive-spotlight {
  background: linear-gradient(180deg, rgba(13, 74, 54, 0.2) 0%, rgba(150, 27, 42, 0.12) 100%);
  border-color: rgba(232, 199, 123, 0.25);
}
[data-theme='dark'] .festive-pill {
  background: #18181b;
  border-color: #27272a;
  color: #e2e8f0;
}
[data-theme='dark'] .festive-pill--featured:not(.is-active) {
  background: rgba(13, 74, 54, 0.26);
  border-color: rgba(232, 199, 123, 0.42);
  color: var(--festive-gold-bright);
}
[data-theme='dark'] .festive-pill:hover {
  border-color: var(--festive-gold);
  color: var(--festive-gold);
}
[data-theme='dark'] .festive-pill.is-active {
  background: linear-gradient(135deg, #0b4a35 0%, #156d50 100%);
  border-color: rgba(232, 199, 123, 0.55);
  color: #fff;
}
[data-theme='dark'] .festive-sort-btn {
  background: #18181b;
  border-color: #27272a;
  color: #e2e8f0;
}
[data-theme='dark'] .festive-sort-btn.is-active {
  background: #f8fafc;
  border-color: #f8fafc;
  color: #0f172a;
}
[data-theme='dark'] .festive-count,
[data-theme='dark'] .festive-spotlight__count,
[data-theme='dark'] .festive-pager__status {
  color: #94a3b8;
}
[data-theme='dark'] .festive-empty,
[data-theme='dark'] .festive-pager a {
  background: #18181b;
  border-color: #27272a;
  color: #f8fafc;
}

/* ── 9. RESPONSIVE BREAKPOINTS & REDUCED MOTION ───────────────────────── */
@media (max-width: 1200px) {
  .tbii-holiday-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .festive-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .festive-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .festive-hero__clock {
    width: 100%;
  }
  .festive-hero__clock-grid {
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .tbii-festive-bar__inner {
    padding: 7px 12px 11px;
    gap: 6px 8px;
    font-size: 0.73rem;
  }
  .tbii-festive-cd__lbl {
    display: none;
  }
  .tbii-holiday-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 10px;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
  }
  .tbii-gift-tile {
    flex: 0 0 164px;
    scroll-snap-align: start;
    min-height: 138px;
    padding: 12px;
  }
  .festive-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .festive-spotlight {
    padding: 14px 12px 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tbii-snow-layer::before,
  .tbii-snow-layer::after,
  .tbii-bulb,
  .tbii-festive-bar__cta::after,
  .jb-link--festive::after {
    animation: none !important;
  }
  .tbii-festive-bar__cta,
  .tbii-gift-tile,
  .tbii-gift-tile__bg,
  .festive-pill,
  .jb-link--festive {
    transition: none !important;
    transform: none !important;
  }
}
