/* Licencia Digital Halloween 2026: visual-only, scoped and removable. */
body.ld-halloween-2026 {
  --ld-h-orange: #e9772a;
  --ld-h-orange-deep: #b85319;
  --ld-h-plum: #714c83;
  --ld-h-cream: #fff8ef;
  --ld-h-border: #f3d2ae;
}

/* Keep the recognisable blue header and add a small seasonal accent. */
body.ld-halloween-2026 .whb-main-header {
  border-top: 3px solid var(--ld-h-orange);
}

body.ld-halloween-2026 .whb-header-bottom {
  background-image: linear-gradient(90deg, rgba(255, 246, 235, .72), rgba(239, 237, 255, .44));
}

body.ld-halloween-2026 .whb-header-bottom .wd-nav > li > a:hover,
body.ld-halloween-2026 .whb-header-bottom .wd-nav > li.current-menu-item > a {
  color: var(--ld-h-orange-deep);
}

/* Home: ghosts and bats stay behind real content and never capture a tap. */
body.ld-halloween-2026 .ld-home-hero {
  background: radial-gradient(circle at 78% 15%, rgba(255, 169, 85, .22), transparent 25%),
    radial-gradient(circle at 98% 90%, rgba(159, 111, 176, .25), transparent 26%),
    linear-gradient(110deg, #123665 0%, #174b91 58%, #286aba 100%);
}

body.ld-halloween-2026 .ld-home-hero::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: 16%;
  left: 4%;
  width: clamp(96px, 8vw, 142px);
  height: clamp(112px, 9.3vw, 165px);
  background: url("ghost.svg") center / contain no-repeat;
  opacity: .88;
  filter: drop-shadow(0 10px 16px rgba(10, 23, 57, .22));
  pointer-events: none;
  animation: ld-h-ghost-float 5.5s ease-in-out infinite;
}

body.ld-halloween-2026 .ld-home-hero::after {
  content: "";
  position: absolute;
  z-index: 0;
  top: 7%;
  right: 3.5%;
  bottom: auto;
  width: clamp(190px, 17vw, 290px);
  height: 145px;
  border: 0;
  border-radius: 0;
  background: url("bats.svg") center / contain no-repeat;
  opacity: .78;
  pointer-events: none;
  animation: ld-h-bats-glide 9s ease-in-out infinite;
}

body.ld-halloween-2026 .ld-home-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #713c17;
  background: #fff2dc;
}

body.ld-halloween-2026 .ld-home-kicker::before {
  content: "";
  display: inline-block;
  flex: 0 0 19px;
  width: 19px;
  height: 19px;
  background: url("pumpkin.svg") center / contain no-repeat;
}

body.ld-halloween-2026 .ld-home-quick {
  border-color: rgba(255, 226, 190, .48);
  box-shadow: 0 16px 45px rgba(14, 34, 75, .15), inset 0 1px 0 rgba(255, 255, 255, .18);
  animation: ld-h-soft-glow 6s ease-in-out infinite;
}

body.ld-halloween-2026 .ld-home-btn:not(.is-outline) {
  animation: ld-h-button-glow 5s ease-in-out infinite;
}

body.ld-halloween-2026 .ld-home-quick a:hover,
body.ld-halloween-2026 .ld-home-btn:not(.is-outline):hover {
  color: #813e15;
  background: #fff0da;
}

body.ld-halloween-2026 .ld-home-section .ld-home-kicker,
body.ld-halloween-2026 .ld-home-section-head .ld-home-kicker {
  color: #8d491c;
}

body.ld-halloween-2026 .ld-home-section a:focus-visible,
body.ld-halloween-2026 .wd-product a:focus-visible,
body.ld-halloween-2026 .ld-footer a:focus-visible {
  outline: 3px solid var(--ld-h-orange);
  outline-offset: 3px;
}

/* Product cards retain their current layout and prices. */
body.ld-halloween-2026 .ld-shop-archive-title::after {
  content: "";
  display: inline-block;
  width: 40px;
  height: 44px;
  margin-left: 12px;
  vertical-align: -.24em;
  background: url("ghost.svg") center / contain no-repeat,
    radial-gradient(circle, rgba(232, 211, 247, .85), transparent 72%);
  filter: drop-shadow(0 2px 4px rgba(75, 57, 115, .18));
  animation: ld-h-ghost-float 5.5s ease-in-out infinite;
}

body.ld-halloween-2026 .wd-product.product-grid-item {
  border-top: 3px solid transparent;
  border-image: linear-gradient(90deg, #e98032, #9a72a8) 1;
  transition: box-shadow .2s ease, transform .2s ease;
}

body.ld-halloween-2026 .wd-product.product-grid-item:hover {
  box-shadow: 0 14px 32px rgba(68, 49, 91, .10);
  transform: translateY(-2px);
}

/* Customer account and checkout get small framing cues. The product's
   full-width wrapper must stay borderless to avoid a detached stripe. */
body.ld-halloween-2026.woocommerce-account .woocommerce-MyAccount-content,
body.ld-halloween-2026.woocommerce-checkout .ld-checkout-left,
body.ld-halloween-2026.woocommerce-checkout .ld-checkout-right {
  border-top: 3px solid var(--ld-h-border);
}

body.ld-halloween-2026.woocommerce-account .ld-account-hero {
  background-image: radial-gradient(circle at 92% 20%, rgba(246, 151, 78, .23), transparent 29%),
    linear-gradient(110deg, #123a68, #2167bc);
}

/* Footer remains light and readable, with a removable seasonal edge. */
body.ld-halloween-2026 .ld-footer-card {
  position: relative;
  border-top: 3px solid var(--ld-h-orange);
  background-image: linear-gradient(105deg, #fff, #fffaf3 70%, #f8f5ff);
}

body.ld-halloween-2026 .ld-footer-card::before {
  content: "";
  position: absolute;
  top: -51px;
  right: -22px;
  width: 74px;
  height: 86px;
  background: url("ghost.svg") center / contain no-repeat;
  pointer-events: none;
  animation: ld-h-ghost-float 6.5s ease-in-out infinite reverse;
}

body.ld-halloween-2026 .ld-footer-benefit {
  border-color: rgba(233, 119, 42, .22);
}

@keyframes ld-h-ghost-float {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50% { transform: translateY(-12px) rotate(4deg); }
}

@keyframes ld-h-bats-glide {
  0%, 100% { transform: translate(0, 0) rotate(-2deg); }
  50% { transform: translate(-18px, 9px) rotate(2deg); }
}

@keyframes ld-h-soft-glow {
  0%, 100% { box-shadow: 0 16px 45px rgba(14, 34, 75, .15), inset 0 1px 0 rgba(255, 255, 255, .18); }
  50% { box-shadow: 0 18px 50px rgba(235, 142, 59, .25), inset 0 1px 0 rgba(255, 255, 255, .24); }
}

@keyframes ld-h-button-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 185, 110, 0); }
  50% { box-shadow: 0 0 0 5px rgba(255, 185, 110, .16); }
}

@media (max-width: 768px) {
  body.ld-halloween-2026 .ld-home-hero {
    background: radial-gradient(circle at 90% 9%, rgba(255, 169, 85, .18), transparent 28%),
      linear-gradient(145deg, #123665, #2059a4);
  }

  body.ld-halloween-2026 .ld-home-hero::before {
    top: 11px;
    right: 5px;
    left: auto;
    width: 62px;
    height: 74px;
    opacity: .78;
  }

  body.ld-halloween-2026 .ld-home-hero::after {
    top: auto;
    right: 4px;
    bottom: 5px;
    width: 110px;
    height: 60px;
    opacity: .6;
  }

  body.ld-halloween-2026 .ld-footer-card::before {
    top: -37px;
    right: 7px;
    width: 48px;
    height: 56px;
  }

  body.ld-halloween-2026 .wd-product.product-grid-item:hover {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.ld-halloween-2026 .wd-product.product-grid-item,
  body.ld-halloween-2026 .ld-home-hero::before,
  body.ld-halloween-2026 .ld-home-hero::after,
  body.ld-halloween-2026 .ld-home-quick,
  body.ld-halloween-2026 .ld-home-btn,
  body.ld-halloween-2026 .ld-shop-archive-title::after,
  body.ld-halloween-2026 .ld-footer-card::before {
    animation: none;
    transition: none;
  }
}
