/* =====================================================================
   HOMESTAR · Halloween "O Outro Lado"
   Âmbito: só a home (body.home) — header + hero (#home01 / 391723b).
   Tudo o que está abaixo do hero mantém o aspeto normal.
   Decorações (teias, aranha, abóboras, faúlhas) são injetadas pelo halloween.js.
   ===================================================================== */

body.home {
  --hw-orange: #E85808;
  --hw-amber:  #F08A00;
  --hw-ink:    #0B0D0E;
  --hw-line:   #1C2122;
  --hw-line-3: #3A4041;
  --hw-white:  #F6F2EF;
  --hw-text:   #E8E3DF;
  --hw-text-2: #D6D0CC;
  --hw-text-3: #B7B1AD;
  --hw-muted:  #8A8F8F;
  --hw-serif: 'Cormorant Garamond', 'Cormorant', Georgia, serif;
  --hw-sans:  'Montserrat', 'Inter', system-ui, sans-serif;
}

/* ---------- animações ---------- */
@keyframes hs-flicker {
  0%,18%,20%,50%,52%,100% { opacity:1; text-shadow:0 0 18px rgba(232,88,8,.85),0 0 52px rgba(232,88,8,.45); }
  19% { opacity:.35; text-shadow:none; }
  51% { opacity:.6; text-shadow:0 0 8px rgba(232,88,8,.5); }
  78% { opacity:.42; text-shadow:0 0 10px rgba(232,88,8,.4); }
}
@keyframes hs-drift {
  0%   { transform:translate3d(0,0,0); opacity:0; }
  12%  { opacity:.7; }
  100% { transform:translate3d(38px,-240px,0); opacity:0; }
}
@keyframes hs-breathe { 0%,100% { opacity:.20; } 50% { opacity:.38; } }
@keyframes hs-sway    { 0%,100% { transform:rotate(-4deg); } 50% { transform:rotate(4deg); } }
@keyframes hs-drop    { 0%,100% { transform:translateY(0); } 50% { transform:translateY(14px); } }
@keyframes hs-twinkle { 0%,100% { opacity:.25; transform:scale(.85); } 50% { opacity:1; transform:scale(1); } }

/* =====================================================================
   CENAS
   ===================================================================== */
   
body .elementor-24 .elementor-element.elementor-element-391723b{ background-color: var(--hw-ink) !important;}



/* =====================================================================
   HEADER
   ===================================================================== */

/* fundos escuros */
body.home .elementor-location-header .elementor-element.elementor-element-78c97f12,
body.home .elementor-location-header .elementor-element.elementor-element-401817f5,
body.home .elementor-location-header .elementor-element.elementor-element-2031c3de,
body.home .elementor-location-header .elementor-element.elementor-element-6a58777c {
  background-color: var(--hw-ink) !important;
}
body.home .elementor-location-header .elementor-element.elementor-element-401817f5,
body.home .elementor-location-header .elementor-element.elementor-element-2031c3de {
  border-bottom: 1px solid var(--hw-line) !important;
}

/* barra de topo (mobile 71448a0e · desktop 18f8991b) */
body.home .elementor-location-header .elementor-element.elementor-element-71448a0e,
body.home .elementor-location-header .elementor-element.elementor-element-18f8991b {
  background-color: var(--hw-orange) !important;
}
body.home .elementor-location-header .elementor-element-134811a0 .elementor-heading-title,
body.home .elementor-location-header .elementor-element-71e4ee1c .elementor-heading-title {
  color: var(--hw-ink) !important;
  font-weight: 700 !important;
  letter-spacing: .14em !important;
  text-transform: uppercase;
}
body.home .elementor-location-header .elementor-element-134811a0 .elementor-heading-title a,
body.home .elementor-location-header .elementor-element-71e4ee1c .elementor-heading-title a { color: inherit !important; }

/* links institucionais (Folheto, Amostras, Inspire, Contactar) */
body.home .elementor-location-header .elementor-element-75efb2d6 .elementor-icon-list-text { color: var(--hw-text-3) !important; }
body.home .elementor-location-header .elementor-element-75efb2d6 .elementor-icon-list-item:hover .elementor-icon-list-text { color: var(--hw-white) !important; }
body.home .elementor-location-header .elementor-element-75efb2d6 .elementor-icon-list-icon svg { fill: var(--hw-text-3) !important; }

/* menu de categorias (desktop) */
body.home .elementor-location-header .elementor-element-3c46d085 {
  --n-menu-title-color-normal: var(--hw-text-2) !important;
  --n-menu-title-color-hover:  var(--hw-white) !important;
  --n-menu-title-color-active: var(--hw-orange) !important;
}
body.home .elementor-location-header .elementor-element-3c46d085 .e-n-menu-title-text { color: var(--hw-text-2) !important; }
body.home .elementor-location-header .elementor-element-3c46d085 .e-n-menu-title:hover .e-n-menu-title-text { color: var(--hw-white) !important; }
body.home .elementor-location-header .elementor-element-3c46d085 .e-n-menu-title-container svg,
body.home .elementor-location-header .elementor-element-3c46d085 .e-n-menu-dropdown-icon svg { fill: var(--hw-text-2) !important; }
/* item OUTLET (o JS marca-o com .hw-outlet se existir no menu) */
body.home .elementor-location-header .hw-outlet .e-n-menu-title-text,
body.home .elementor-location-header .hw-outlet > a { color: var(--hw-orange) !important; font-weight: 700 !important; letter-spacing: .08em; }

/* menu mobile (burger + dropdown) */
body.home .elementor-location-header .elementor-element-4171fe15 .elementor-menu-toggle { color: var(--hw-text-2) !important; }
body.home .elementor-location-header .elementor-element-4171fe15 .elementor-menu-toggle svg { fill: var(--hw-text-2) !important; }
body.home .elementor-location-header .elementor-element-4171fe15 .elementor-nav-menu--dropdown { background-color: var(--hw-ink) !important; }
body.home .elementor-location-header .elementor-element-4171fe15 .elementor-nav-menu--dropdown a { color: var(--hw-text-2) !important; background-color: transparent !important; }
body.home .elementor-location-header .elementor-element-4171fe15 .elementor-nav-menu--dropdown a:hover,
body.home .elementor-location-header .elementor-element-4171fe15 .elementor-nav-menu--dropdown a.elementor-item-active { color: var(--hw-orange) !important; }
body.home .elementor-location-header .elementor-element-4171fe15 .elementor-nav-menu--dropdown li:not(:last-child) { border-color: var(--hw-line) !important; }

/* ícones soltos (pesquisa, conta, favoritos) */
body.home .elementor-location-header .elementor-widget-icon .elementor-icon { color: var(--hw-text-2) !important; }
body.home .elementor-location-header .elementor-widget-icon .elementor-icon svg { fill: var(--hw-text-2) !important; }
body.home .elementor-location-header .elementor-widget-icon .elementor-icon:hover svg { fill: var(--hw-white) !important; }

/* carrinho: só o botão do header (o side-cart aberto mantém-se normal) */
body.home .elementor-location-header .elementor-menu-cart__toggle .elementor-button {
  color: var(--hw-text-2) !important;
  background: transparent !important;
}
body.home .elementor-location-header .elementor-menu-cart__toggle .elementor-button svg,
body.home .elementor-location-header .elementor-menu-cart__toggle .elementor-button i { fill: var(--hw-text-2) !important; color: var(--hw-text-2) !important; }
body.home .elementor-location-header .elementor-menu-cart__toggle .elementor-button-icon-qty {
  background-color: var(--hw-orange) !important;
  color: var(--hw-ink) !important;
  font-weight: 700;
}

/* menu de categorias (nav.topo-menu fixo, gerado pelo tema filho — fora do Elementor) */
body.home nav.topo-menu { background-color: var(--hw-ink) !important; border-bottom: 1px solid var(--hw-line) !important; }
body.home nav.topo-menu .topo-menu-list,
body.home nav.topo-menu li { border-color: var(--hw-line) !important; background: transparent !important; }
body.home nav.topo-menu a { color: var(--hw-text-2) !important; }
body.home nav.topo-menu a:hover { color: var(--hw-white) !important; }
body.home nav.topo-menu .hw-outlet > a { color: var(--hw-orange) !important; font-weight: 700 !important; letter-spacing: .08em; }

/* fundo escuro por trás do header fixo e à volta do hero (sem moldura branca) */
body.home { background: linear-gradient(var(--hw-ink), var(--hw-ink)) top / 100% 320px no-repeat; }
body.home .elementor-element-391723b { background-color: var(--hw-ink); }

/* logótipo: versão clara.
   Se no halloween.js preencheres HW.logoBranco, a imagem é trocada e o filtro deixa de se aplicar. */
body.home .elementor-location-header .elementor-widget-theme-site-logo img:not(.hw-logo-swapped) {
  filter: brightness(0) invert(.95);
}

/* =====================================================================
   HERO  (#home01 · container 391723b · slides 5ea2b1f)
   ===================================================================== */
   
    body.home .elementor-element-5ea2b1f .swiper-slide-bg {
     background-image: none !important;
     background-color: #0B0D0E !important;
   }

body.home .elementor-element-5ea2b1f .swiper-slide { background-color: var(--hw-ink); }

/* escurecer a imagem de fundo + brilho laranja a "respirar" */
body.home .elementor-element-5ea2b1f .swiper-slide-bg::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(11,13,14,.86) 0%, rgba(11,13,14,.55) 38%, rgba(11,13,14,.95) 100%);
}
body.home .elementor-element-5ea2b1f .swiper-slide-bg::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(120% 70% at 50% 58%, rgba(232,88,8,.30) 0%, rgba(232,88,8,0) 62%);
  animation: hs-breathe 7s ease-in-out infinite;
}

/* textos do slide */
body.home .elementor-element-5ea2b1f .elementor-slide-heading {
  font-family: var(--hw-serif) !important;
  font-style: italic !important;
  font-weight: 400 !important;
  font-size: clamp(46px, 6.4vw, 92px) !important;
  line-height: 1.02 !important;
  letter-spacing: -.01em;
  color: var(--hw-white) !important;
}
body.home .elementor-element-5ea2b1f .elementor-slide-description {
  font-family: var(--hw-sans) !important;
  font-weight: 300 !important;
  font-size: 30px !important;
  letter-spacing: .01em;
  color: var(--hw-text) !important;
  animation: hs-flicker 5.5s steps(1,end) infinite;
}
body.home .elementor-element-5ea2b1f .swiper-slide-inner .elementor-slide-description:not(:last-child) { margin-bottom: 40px !important; }

/* botão principal */
body.home .elementor-element-5ea2b1f .elementor-slide-button {
  font-family: var(--hw-sans) !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  letter-spacing: .22em !important;
  text-transform: uppercase;
  color: var(--hw-ink) !important;
  background: var(--hw-orange) !important;
  border: 0 !important;
  border-radius: 0 !important;
  padding: 19px 46px !important;
  box-shadow: 0 0 34px rgba(232,88,8,.55);
  transition: box-shadow .2s, background-color .2s;
}
body.home .elementor-slide-button:hover {
  background: var(--hw-amber) !important;
  color: var(--hw-ink) !important;
  box-shadow: 0 0 46px rgba(232,88,8,.75);
}

/* extras opcionais injetados pelo JS (rótulo da data e 2.º botão) */
body.home .hw-kicker {
  display: block;
  margin-bottom: 22px;
  font-family: var(--hw-sans);
  font-size: 13px; font-weight: 700; letter-spacing: .38em; text-transform: uppercase;
  color: var(--hw-orange);
}
body.home .hw-ctas { display: inline-flex; align-items: center; gap: 20px; flex-wrap: wrap; justify-content: center; }
body.home .hw-ghost {
  display: inline-block; cursor: pointer;
  font-family: var(--hw-sans);
  font-size: 13px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--hw-text-2) !important;
  border: 1px solid var(--hw-line-3);
  padding: 18px 26px;
  transition: color .2s, border-color .2s;
}
body.home .hw-ghost:hover,
body.home .hw-ghost:focus-visible { color: var(--hw-white) !important; border-color: var(--hw-orange); outline: none; }

/* ---------- camada decorativa (criada pelo JS dentro de cada slide) ---------- */
body.home .hw-deco { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
body.home .elementor-element-5ea2b1f .swiper-slide-inner { z-index: 2; }
body.home .hw-deco > * { position: absolute; pointer-events: none; }

body.home .hw-ic {
  display: block; width: 100%; height: 100%; overflow: visible;
  fill: none; stroke: currentColor; stroke-width: var(--sw, 1.4);
  filter: drop-shadow(0 0 7px rgba(232,88,8,.7));
}

body.home .hw-web-l { top: 0; left: 0;  width: 300px; height: 300px; color: var(--hw-orange); opacity: .5;  --sw: 1; }
body.home .hw-web-r { top: 0; right: 0; width: 220px; height: 220px; color: var(--hw-orange); opacity: .36; --sw: 1; transform: scaleX(-1); }

body.home .hw-spider {
  top: 0; left: 25%;
  display: flex; flex-direction: column; align-items: center;
  transform-origin: top center; animation: hs-drop 6s ease-in-out infinite;
  --thread: 170px; --size: 54px; --sw: 1;
}
body.home .hw-spider__thread { width: 1px; height: var(--thread); background: linear-gradient(180deg, rgba(232,88,8,.15), rgba(232,88,8,.75)); }
body.home .hw-spider__body { width: var(--size); height: var(--size); color: var(--hw-orange); transform-origin: top center; animation: hs-sway 5s ease-in-out infinite; }

body.home .hw-star-1 { top: 96px;  right: 20%; width: 26px; height: 26px; color: var(--hw-amber);  animation: hs-twinkle 4s ease-in-out infinite;        --sw: 1.2; }
body.home .hw-star-2 { top: 210px; right: 12%; width: 16px; height: 16px; color: var(--hw-orange); animation: hs-twinkle 5.5s ease-in-out infinite 1.2s; --sw: 1.2; }
body.home .hw-star-3 { top: 172px; left: 16%;  width: 14px; height: 14px; color: var(--hw-amber);  animation: hs-twinkle 6.5s ease-in-out infinite .6s;  --sw: 1.2; }

body.home .hw-pk-1 { left: 66px;  bottom: 52px; width: 88px; height: 88px; color: var(--hw-orange); opacity: .85; --sw: 1.1; }
body.home .hw-pk-2 { left: 150px; bottom: 52px; width: 56px; height: 56px; color: var(--hw-amber);  opacity: .6;  --sw: 1.1; }
body.home .hw-pk-3 { right: 72px; bottom: 56px; width: 70px; height: 70px; color: var(--hw-orange); opacity: .7;  --sw: 1.1; }

body.home .hw-embers { left: 0; right: 0; bottom: 120px; height: 420px; }
body.home .hw-embers span { position: absolute; border-radius: 50%; animation: hs-drift linear infinite; }

body.home .hw-mirror { left: 0; right: 0; bottom: 0; height: 150px; overflow: hidden; opacity: .30; }
body.home .hw-mirror div {
  transform: scaleY(-1); padding-top: 14px; filter: blur(1.4px); text-align: center; white-space: nowrap;
  font-family: var(--hw-serif); font-style: italic; font-weight: 400;
  font-size: clamp(46px, 6.4vw, 92px); line-height: 1.02; color: var(--hw-orange);
}

/* linha laranja no fundo do hero */
body.home .hw-edge {
  left: 0; right: 0; bottom: 0; height: 5px; opacity: .9;
  background: linear-gradient(90deg, transparent, var(--hw-orange) 22%, var(--hw-amber) 50%, var(--hw-orange) 78%, transparent);
}

/* Caixa "Compre online…" (8741150): laranja com glow, como o botão do hero */
body.home .elementor-element.elementor-element-8741150 {
  background-color: var(--hw-orange) !important;
  box-shadow: 0 0 34px rgba(232,88,8,.55) !important;
}

/* =====================================================================
   Responsivo (breakpoints Elementor: 1024 / 767)
   ===================================================================== */
@media (max-width: 1024px) {
  body.home .elementor-element-5ea2b1f .elementor-slide-description { font-size: 26px !important; }
  body.home .hw-star-1, body.home .hw-star-2 { right: 120px; }
}

@media (max-width: 767px) {
  body.home .elementor-location-header .elementor-element-134811a0 .elementor-heading-title { font-size: 10px !important; letter-spacing: .12em !important; }

  body.home .elementor-element-5ea2b1f .swiper-slide-bg::after {
    background: linear-gradient(180deg, rgba(11,13,14,.8) 0%, rgba(11,13,14,.5) 40%, rgba(11,13,14,.96) 100%);
  }
  body.home .elementor-element-5ea2b1f .swiper-slide-bg::before {
    background: radial-gradient(110% 60% at 50% 60%, rgba(232,88,8,.32) 0%, rgba(232,88,8,0) 62%);
  }
  body.home .elementor-element-5ea2b1f .elementor-slide-heading { font-size: 46px !important; letter-spacing: 0; }
  body.home .elementor-element-5ea2b1f .elementor-slide-description { font-size: 19px !important; letter-spacing: 0; }
  body.home .elementor-element-5ea2b1f .swiper-slide-inner .elementor-slide-description:not(:last-child) { margin-bottom: 24px !important; }
  body.home .elementor-element-5ea2b1f .elementor-slide-button { font-size: 13px !important; letter-spacing: .2em !important; padding: 16px 38px !important; box-shadow: 0 0 28px rgba(232,88,8,.55); }

  body.home .hw-kicker { font-size: 10px; letter-spacing: .32em; margin-bottom: 14px; }
  body.home .hw-ctas { flex-direction: column; gap: 18px; }
  body.home .hw-ghost { border: 0; padding: 0; font-size: 11px; letter-spacing: .14em; color: var(--hw-muted) !important; }

  body.home .hw-edge { height: 4px; opacity: 1; background: linear-gradient(90deg, transparent, var(--hw-orange) 30%, var(--hw-amber) 50%, var(--hw-orange) 70%, transparent); }
  body.home .hw-web-l { width: 150px; height: 150px; --sw: 1.4; }
  body.home .hw-web-r { width: 104px; height: 104px; opacity: .34; --sw: 1.4; }
  body.home .hw-spider { left: auto; right: 86px; --thread: 104px; --size: 34px; --sw: 1.5; }
  body.home .hw-star-1 { top: 120px; left: 40px; right: auto; width: 16px; height: 16px; animation-duration: 4.5s; }
  body.home .hw-star-2, body.home .hw-star-3, body.home .hw-pk-3, body.home .hw-embers, body.home .hw-mirror { display: none; }
  body.home .hw-pk-1 { left: 22px; bottom: 26px; width: 56px; height: 56px; --sw: 1.5; }
  body.home .hw-pk-2 { left: 78px; bottom: 26px; width: 38px; height: 38px; --sw: 1.5; }
}

@media (prefers-reduced-motion: reduce) {
  body.home .hw-deco *,
  body.home .elementor-element-5ea2b1f .swiper-slide-bg::before,
  body.home .elementor-element-5ea2b1f .elementor-slide-description { animation: none !important; }
}

/* =====================================================================
   TRANSIÇÃO hero → resto da página: degradê do preto para branco
   A margem branca por baixo do hero passa a padding da secção seguinte
   (b8478f9 · #home02), que recebe o degradê. A caixa "Compre online" fica igual.
   ===================================================================== */
body.home .elementor-element.elementor-element-391723b { --margin-bottom: 0px !important; }
body.home .elementor-element.elementor-element-b8478f9 {
  --margin-bottom: 0px !important;
  padding-top: 5.5vh !important;
  padding-bottom: 6vh !important;
  background: linear-gradient(180deg, #0B0D0E 0%, #0B0D0E 35%, #FFFFFF 100%) !important;
}
@media (max-width: 1024px) {
  body.home .elementor-element.elementor-element-b8478f9 { padding-top: 60px !important; padding-bottom: 60px !important; }
}
@media (max-width: 767px) {
  body.home .elementor-element.elementor-element-b8478f9 { padding-top: 45px !important; padding-bottom: 45px !important; }
}


/* =====================================================================
   Subtítulo do hero: interferência estilo Stranger Things
   Ciclo de 5s com 3 crises: A (15–27%), B (55–68%), C (86–90%).
   Cada passo dura 70–100 ms para ser visível.
   ===================================================================== */
@keyframes hs-st-luz {
  0%, 14.9%  { opacity:1;   text-shadow:0 0 18px rgba(232,88,8,.85), 0 0 52px rgba(232,88,8,.45); }
  15%        { opacity:.1;  text-shadow:none; }
  16.6%      { opacity:1;   text-shadow:-4px 0 rgba(255,30,0,.85), 4px 0 rgba(240,138,0,.7), 0 0 24px rgba(232,88,8,.95); }
  18.4%      { opacity:.25; text-shadow:none; }
  20%        { opacity:1;   text-shadow:-6px 0 rgba(255,30,0,.85), 6px 0 rgba(240,138,0,.7), 0 0 22px rgba(232,88,8,.9); }
  21.8%      { opacity:.55; text-shadow:-2px 0 rgba(255,30,0,.6), 2px 0 rgba(240,138,0,.5); }
  23.4%      { opacity:.15; text-shadow:none; }
  25%        { opacity:1;   text-shadow:-3px 0 rgba(255,30,0,.8), 3px 0 rgba(240,138,0,.6), 0 0 18px rgba(232,88,8,.85); }
  27%, 54.9% { opacity:1;   text-shadow:0 0 18px rgba(232,88,8,.85), 0 0 52px rgba(232,88,8,.45); }
  55%        { opacity:.05; text-shadow:none; }
  56.8%      { opacity:.9;  text-shadow:-8px 0 rgba(255,30,0,.9), 8px 0 rgba(240,138,0,.75), 0 0 28px rgba(232,88,8,1); }
  58.6%      { opacity:.2;  text-shadow:none; }
  60.2%      { opacity:1;   text-shadow:-5px 0 rgba(255,30,0,.85), 5px 0 rgba(240,138,0,.65), 0 0 22px rgba(232,88,8,.9); }
  62%        { opacity:.4;  text-shadow:none; }
  63.6%      { opacity:1;   text-shadow:-3px 0 rgba(255,30,0,.8), 3px 0 rgba(240,138,0,.6), 0 0 18px rgba(232,88,8,.85); }
  65.4%      { opacity:.1;  text-shadow:none; }
  66.8%, 85.9%{ opacity:1;  text-shadow:0 0 18px rgba(232,88,8,.85), 0 0 52px rgba(232,88,8,.45); }
  86%        { opacity:.35; text-shadow:-3px 0 rgba(255,30,0,.7), 3px 0 rgba(240,138,0,.5); }
  88%        { opacity:.8;  text-shadow:-1px 0 rgba(255,30,0,.6), 1px 0 rgba(240,138,0,.4); }
  90%, 100%  { opacity:1;   text-shadow:0 0 18px rgba(232,88,8,.85), 0 0 52px rgba(232,88,8,.45); }
}
@keyframes hs-st-tremor {
  0%, 14.9%   { transform:none; }
  15%         { transform:translate(-4px, 1px) skewX(-6deg); }
  16.6%       { transform:translate(5px, -1px); }
  18.4%       { transform:translate(-3px, 0) skewX(7deg); }
  20%         { transform:translate(3px, 1px) scaleY(1.08); }
  21.8%       { transform:translate(-2px, -1px) skewX(-3deg); }
  23.4%       { transform:translate(2px, 0); }
  25%         { transform:translate(-1px, 0); }
  27%, 54.9%  { transform:none; }
  55%         { transform:translate(-7px, 0) skewX(-9deg); }
  56.8%       { transform:translate(6px, -2px) scaleY(1.1); }
  58.6%       { transform:translate(-4px, 1px) skewX(5deg); }
  60.2%       { transform:translate(4px, 0); }
  62%         { transform:translate(-3px, 1px) skewX(-4deg); }
  63.6%       { transform:translate(2px, 0); }
  65.4%       { transform:translate(-1px, 0); }
  66.8%, 85.9%{ transform:none; }
  86%         { transform:translate(3px, 0) skewX(-3deg); }
  88%         { transform:translate(-2px, 0); }
  90%, 100%   { transform:none; }
}
/* fatias: cópias do texto, cortadas em faixas, a deslizar para os lados */
@keyframes hs-st-fatia-a {
  0%, 14.9%   { opacity:0; }
  15%         { opacity:.9;  clip-path:inset(10% 0 62% 0); transform:translateX(-12px); }
  16.6%       { clip-path:inset(58% 0 16% 0); transform:translateX(9px); }
  18.4%       { clip-path:inset(30% 0 44% 0); transform:translateX(-6px); }
  20%         { clip-path:inset(72% 0 4% 0);  transform:translateX(11px); }
  21.8%       { clip-path:inset(0 0 78% 0);   transform:translateX(-8px); }
  23.4%, 54.9%{ opacity:0; }
  55%         { opacity:.95; clip-path:inset(68% 0 8% 0);  transform:translateX(16px); }
  56.8%       { clip-path:inset(4% 0 72% 0);  transform:translateX(-12px); }
  58.6%       { clip-path:inset(38% 0 36% 0); transform:translateX(8px); }
  60.2%       { clip-path:inset(18% 0 58% 0); transform:translateX(-14px); }
  62%         { clip-path:inset(50% 0 26% 0); transform:translateX(6px); }
  63.6%, 100% { opacity:0; }
}
@keyframes hs-st-fatia-b {
  0%, 15.7%   { opacity:0; }
  15.8%       { opacity:.85; clip-path:inset(46% 0 30% 0); transform:translateX(10px); }
  17.5%       { clip-path:inset(6% 0 70% 0);  transform:translateX(-8px); }
  19.2%       { clip-path:inset(62% 0 12% 0); transform:translateX(5px); }
  21%, 55.8%  { opacity:0; }
  55.9%       { opacity:.9;  clip-path:inset(22% 0 52% 0); transform:translateX(-14px); }
  57.7%       { clip-path:inset(60% 0 14% 0); transform:translateX(10px); }
  59.4%       { clip-path:inset(8% 0 66% 0);  transform:translateX(-6px); }
  61.1%       { clip-path:inset(40% 0 34% 0); transform:translateX(12px); }
  62.8%, 85.9%{ opacity:0; }
  86%         { opacity:.7;  clip-path:inset(34% 0 44% 0); transform:translateX(6px); }
  88%, 100%   { opacity:0; }
}
body.home .elementor-element-5ea2b1f .elementor-slide-description {
  position: relative;
  animation: hs-st-luz 5s steps(1, end) infinite, hs-st-tremor 5s steps(1, end) infinite;
  will-change: transform, opacity;
}
body.home .elementor-element-5ea2b1f .elementor-slide-description[data-text]::before,
body.home .elementor-element-5ea2b1f .elementor-slide-description[data-text]::after {
  content: attr(data-text);
  position: absolute; inset: 0;
  pointer-events: none;
  opacity: 0;
  text-shadow: none;
}
body.home .elementor-element-5ea2b1f .elementor-slide-description[data-text]::before {
  color: #FF2A1F;
  animation: hs-st-fatia-a 5s steps(1, end) infinite;
}
body.home .elementor-element-5ea2b1f .elementor-slide-description[data-text]::after {
  color: #F08A00;
  animation: hs-st-fatia-b 5s steps(1, end) infinite;
}
@media (prefers-reduced-motion: reduce) {
  body.home .elementor-element-5ea2b1f .elementor-slide-description,
  body.home .elementor-element-5ea2b1f .elementor-slide-description::before,
  body.home .elementor-element-5ea2b1f .elementor-slide-description::after { animation: none !important; }
}

/* =====================================================================
   PRODUTO(S) COM AMBIENTE HALLOWEEN  (body.hw-produto)
   A classe é adicionada pelo functions-halloween.php aos IDs em HW_HALLOWEEN_PRODUTOS.
   Header igual ao da home + "palco" escuro no produto + degradê para os relacionados.
   ===================================================================== */

body.hw-produto {
  --hw-orange: #E85808;
  --hw-amber:  #F08A00;
  --hw-ink:    #0B0D0E;
  --hw-line:   #1C2122;
  --hw-line-3: #3A4041;
  --hw-white:  #F6F2EF;
  --hw-text:   #E8E3DF;
  --hw-text-2: #D6D0CC;
  --hw-text-3: #B7B1AD;
  --hw-muted:  #8A8F8F;
  --hw-serif: 'Cormorant Garamond', 'Cormorant', Georgia, serif;
  --hw-sans:  'Montserrat', 'Inter', system-ui, sans-serif;
}

/* ---------- header (igual à home) ---------- */
/* fundos escuros */
body.hw-produto .elementor-location-header .elementor-element.elementor-element-78c97f12,
body.hw-produto .elementor-location-header .elementor-element.elementor-element-401817f5,
body.hw-produto .elementor-location-header .elementor-element.elementor-element-2031c3de,
body.hw-produto .elementor-location-header .elementor-element.elementor-element-6a58777c {
  background-color: var(--hw-ink) !important;
}
body.hw-produto .elementor-location-header .elementor-element.elementor-element-401817f5,
body.hw-produto .elementor-location-header .elementor-element.elementor-element-2031c3de {
  border-bottom: 1px solid var(--hw-line) !important;
}

/* barra de topo (mobile 71448a0e · desktop 18f8991b) */
body.hw-produto .elementor-location-header .elementor-element.elementor-element-71448a0e,
body.hw-produto .elementor-location-header .elementor-element.elementor-element-18f8991b {
  background-color: var(--hw-orange) !important;
}
body.hw-produto .elementor-location-header .elementor-element-134811a0 .elementor-heading-title,
body.hw-produto .elementor-location-header .elementor-element-71e4ee1c .elementor-heading-title {
  color: var(--hw-ink) !important;
  font-weight: 700 !important;
  letter-spacing: .14em !important;
  text-transform: uppercase;
}
body.hw-produto .elementor-location-header .elementor-element-134811a0 .elementor-heading-title a,
body.hw-produto .elementor-location-header .elementor-element-71e4ee1c .elementor-heading-title a { color: inherit !important; }

/* links institucionais (Folheto, Amostras, Inspire, Contactar) */
body.hw-produto .elementor-location-header .elementor-element-75efb2d6 .elementor-icon-list-text { color: var(--hw-text-3) !important; }
body.hw-produto .elementor-location-header .elementor-element-75efb2d6 .elementor-icon-list-item:hover .elementor-icon-list-text { color: var(--hw-white) !important; }
body.hw-produto .elementor-location-header .elementor-element-75efb2d6 .elementor-icon-list-icon svg { fill: var(--hw-text-3) !important; }

/* menu de categorias (desktop) */
body.hw-produto .elementor-location-header .elementor-element-3c46d085 {
  --n-menu-title-color-normal: var(--hw-text-2) !important;
  --n-menu-title-color-hover:  var(--hw-white) !important;
  --n-menu-title-color-active: var(--hw-orange) !important;
}
body.hw-produto .elementor-location-header .elementor-element-3c46d085 .e-n-menu-title-text { color: var(--hw-text-2) !important; }
body.hw-produto .elementor-location-header .elementor-element-3c46d085 .e-n-menu-title:hover .e-n-menu-title-text { color: var(--hw-white) !important; }
body.hw-produto .elementor-location-header .elementor-element-3c46d085 .e-n-menu-title-container svg,
body.hw-produto .elementor-location-header .elementor-element-3c46d085 .e-n-menu-dropdown-icon svg { fill: var(--hw-text-2) !important; }
/* item OUTLET (o JS marca-o com .hw-outlet se existir no menu) */
body.hw-produto .elementor-location-header .hw-outlet .e-n-menu-title-text,
body.hw-produto .elementor-location-header .hw-outlet > a { color: var(--hw-orange) !important; font-weight: 700 !important; letter-spacing: .08em; }

/* menu mobile (burger + dropdown) */
body.hw-produto .elementor-location-header .elementor-element-4171fe15 .elementor-menu-toggle { color: var(--hw-text-2) !important; }
body.hw-produto .elementor-location-header .elementor-element-4171fe15 .elementor-menu-toggle svg { fill: var(--hw-text-2) !important; }
body.hw-produto .elementor-location-header .elementor-element-4171fe15 .elementor-nav-menu--dropdown { background-color: var(--hw-ink) !important; }
body.hw-produto .elementor-location-header .elementor-element-4171fe15 .elementor-nav-menu--dropdown a { color: var(--hw-text-2) !important; background-color: transparent !important; }
body.hw-produto .elementor-location-header .elementor-element-4171fe15 .elementor-nav-menu--dropdown a:hover,
body.hw-produto .elementor-location-header .elementor-element-4171fe15 .elementor-nav-menu--dropdown a.elementor-item-active { color: var(--hw-orange) !important; }
body.hw-produto .elementor-location-header .elementor-element-4171fe15 .elementor-nav-menu--dropdown li:not(:last-child) { border-color: var(--hw-line) !important; }

/* ícones soltos (pesquisa, conta, favoritos) */
body.hw-produto .elementor-location-header .elementor-widget-icon .elementor-icon { color: var(--hw-text-2) !important; }
body.hw-produto .elementor-location-header .elementor-widget-icon .elementor-icon svg { fill: var(--hw-text-2) !important; }
body.hw-produto .elementor-location-header .elementor-widget-icon .elementor-icon:hover svg { fill: var(--hw-white) !important; }

/* carrinho: só o botão do header (o side-cart aberto mantém-se normal) */
body.hw-produto .elementor-location-header .elementor-menu-cart__toggle .elementor-button {
  color: var(--hw-text-2) !important;
  background: transparent !important;
}
body.hw-produto .elementor-location-header .elementor-menu-cart__toggle .elementor-button svg,
body.hw-produto .elementor-location-header .elementor-menu-cart__toggle .elementor-button i { fill: var(--hw-text-2) !important; color: var(--hw-text-2) !important; }
body.hw-produto .elementor-location-header .elementor-menu-cart__toggle .elementor-button-icon-qty {
  background-color: var(--hw-orange) !important;
  color: var(--hw-ink) !important;
  font-weight: 700;
}

/* menu de categorias (nav.topo-menu fixo, gerado pelo tema filho — fora do Elementor) */
body.hw-produto nav.topo-menu { background-color: var(--hw-ink) !important; border-bottom: 1px solid var(--hw-line) !important; }
body.hw-produto nav.topo-menu .topo-menu-list,
body.hw-produto nav.topo-menu li { border-color: var(--hw-line) !important; background: transparent !important; }
body.hw-produto nav.topo-menu a { color: var(--hw-text-2) !important; }
body.hw-produto nav.topo-menu a:hover { color: var(--hw-white) !important; }
body.hw-produto nav.topo-menu .hw-outlet > a { color: var(--hw-orange) !important; font-weight: 700 !important; letter-spacing: .08em; }

/* fundo escuro por trás do header fixo e (produto) */
body.hw-produto { background: linear-gradient(var(--hw-ink), var(--hw-ink)) top / 100% 320px no-repeat; }

/* logótipo: versão clara.
   Se no halloween.js preencheres HW.logoBranco, a imagem é trocada e o filtro deixa de se aplicar. */
body.hw-produto .elementor-location-header .elementor-widget-theme-site-logo img:not(.hw-logo-swapped) {
  filter: brightness(0) invert(.95);
}

/* ---------- palco escuro: do topo até ao fim do produto, depois degradê para branco ----------
   --hw-fim é medido pelo halloween.js (fundo do bloco do produto, em px dentro de .page-content) */
body.hw-produto .page-content {
  position: relative;
  background: linear-gradient(180deg,
    var(--hw-ink) 0,
    var(--hw-ink) calc(var(--hw-fim, 1100px) + 40px),
    #FFFFFF calc(var(--hw-fim, 1100px) + 260px)) no-repeat;
}
body.hw-produto nav.woocommerce-breadcrumb { position: relative; z-index: 1; color: var(--hw-muted) !important; }
body.hw-produto nav.woocommerce-breadcrumb a { color: var(--hw-text-3) !important; }
body.hw-produto nav.woocommerce-breadcrumb a:hover { color: var(--hw-orange) !important; }
body.hw-produto div.product.type-product { z-index: 1; padding-bottom: 40px; }
body.hw-produto section.related { position: relative; z-index: 1; padding-top: 180px; }

/* ---------- resumo do produto ---------- */
body.hw-produto .summary,
body.hw-produto .summary p,
body.hw-produto .summary li { color: var(--hw-text-2); }
body.hw-produto .summary strong { color: var(--hw-white); }
body.hw-produto .summary a:not(.prodfastlinks) { color: var(--hw-orange) !important; }

body.hw-produto h1.product_title {
  font-family: var(--hw-serif) !important;
  font-style: italic;
  font-weight: 400 !important;
  font-size: clamp(38px, 3.6vw, 60px) !important;
  line-height: 1.05 !important;
  color: var(--hw-white) !important;
  text-shadow: 0 0 24px rgba(232,88,8,.35);
}
body.hw-produto .summary .price,
body.hw-produto .summary .price del { color: var(--hw-muted) !important; }
body.hw-produto .summary .price ins,
body.hw-produto .summary .price ins * {
  color: var(--hw-orange) !important;
  text-shadow: 0 0 18px rgba(232,88,8,.55);
}

/* quantidade */
body.hw-produto form.cart .quantity,
body.hw-produto form.cart .quantity input { background: transparent !important; color: var(--hw-white) !important; border-color: var(--hw-line-3) !important; }
body.hw-produto form.cart .quantity button,
body.hw-produto form.cart .quantity .minus,
body.hw-produto form.cart .quantity .plus { color: var(--hw-text-2) !important; background: transparent !important; }

/* botão adicionar ao carrinho: laranja com glow, como o EXPLORAR */
body.hw-produto .summary .single_add_to_cart_button {
  background: var(--hw-orange) !important;
  color: var(--hw-ink) !important;
  font-weight: 700 !important;
  letter-spacing: .14em;
  border-radius: 0 !important;
  box-shadow: 0 0 34px rgba(232,88,8,.55);
  transition: box-shadow .2s, background-color .2s;
}
body.hw-produto .summary .single_add_to_cart_button:hover {
  background: var(--hw-amber) !important;
  box-shadow: 0 0 46px rgba(232,88,8,.75);
}

/* favoritos (coração) */
body.hw-produto .summary .woosw-btn,
body.hw-produto .summary .woosw-btn .woosw-btn-icon { color: var(--hw-text-2) !important; }

/* Solicitar amostras / Documento técnico / Descubra… → botões "fantasma" */
body.hw-produto .summary .prodfastlinks {
  background: transparent !important;
  color: var(--hw-text-2) !important;
  border: 1px solid var(--hw-line-3) !important;
  transition: color .2s, border-color .2s;
}
body.hw-produto .summary .prodfastlinks:hover { color: var(--hw-white) !important; border-color: var(--hw-orange) !important; }
body.hw-produto .summary .prodfastlinks * { color: inherit !important; }

/* caixa da promoção: laranja + interferência Stranger Things (as fatias usam data-text, criado pelo JS) */
body.hw-produto .summary .prodalert {
  position: relative;
  background: transparent !important;
  color: var(--hw-orange) !important;
  border-color: var(--hw-orange) !important;
  box-shadow: 0 0 22px rgba(232,88,8,.35), inset 0 0 18px rgba(232,88,8,.15);
  font-weight: 700;
  letter-spacing: .08em;
  animation: hs-st-luz 5s steps(1, end) infinite, hs-st-tremor 5s steps(1, end) infinite;
}
body.hw-produto .summary .prodalert[data-text]::before,
body.hw-produto .summary .prodalert[data-text]::after {
  content: attr(data-text);
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none; opacity: 0; text-shadow: none;
}
body.hw-produto .summary .prodalert[data-text]::before { color: #FF2A1F; animation: hs-st-fatia-a 5s steps(1, end) infinite; }
body.hw-produto .summary .prodalert[data-text]::after  { color: var(--hw-amber); animation: hs-st-fatia-b 5s steps(1, end) infinite; }

/* entregas, acordeões, meta */
body.hw-produto .summary .acc-delivery { color: var(--hw-text-2) !important; }
body.hw-produto .summary .acc-delivery svg,
body.hw-produto .summary .acc-delivery img { filter: brightness(0) invert(.85); }
body.hw-produto .summary .acc-item { border-color: var(--hw-line) !important; }
body.hw-produto .summary .acc-title { color: var(--hw-white) !important; border-color: var(--hw-line) !important; }
body.hw-produto .summary .acc-title::after { color: var(--hw-orange) !important; }
body.hw-produto .summary .acc-content,
body.hw-produto .summary .acc-content * { color: var(--hw-text-3) !important; }
body.hw-produto .summary .product-meta-custom,
body.hw-produto .summary .product-meta-custom * { color: var(--hw-muted) !important; }

/* galeria */
body.hw-produto .woocommerce-product-gallery .onsale { background: var(--hw-orange) !important; color: var(--hw-ink) !important; }
body.hw-produto .flex-control-thumbs img,
body.hw-produto .woocommerce-product-gallery ol img { border-color: var(--hw-line-3) !important; opacity: .75; }
body.hw-produto .flex-control-thumbs img.flex-active,
body.hw-produto .woocommerce-product-gallery ol img.flex-active { opacity: 1; outline: 1px solid var(--hw-orange); }

/* ---------- decorações (criadas pelo JS em .page-content) ---------- */
body.hw-produto .hw-deco { position: absolute; left: 0; right: 0; top: 0; height: calc(var(--hw-fim, 1100px) + 40px); z-index: 0; pointer-events: none; overflow: hidden; }
body.hw-produto .hw-deco > * { position: absolute; pointer-events: none; }
body.hw-produto .hw-ic {
  display: block; width: 100%; height: 100%; overflow: visible;
  fill: none; stroke: currentColor; stroke-width: var(--sw, 1.4);
  filter: drop-shadow(0 0 7px rgba(232,88,8,.7));
}
body.hw-produto .hw-web-l { display: none; } /* sem teia do lado esquerdo no produto */
body.hw-produto .hw-web-r { top: 0; right: 0; width: 260px; height: 260px; color: var(--hw-orange); opacity: .4;  --sw: 1; transform: scaleX(-1); }
body.hw-produto .hw-spider {
  top: 0; right: 9%;
  display: flex; flex-direction: column; align-items: center;
  animation: hs-drop 6s ease-in-out infinite;
  --thread: 300px; --size: 54px; --sw: 1;
}
body.hw-produto .hw-spider__thread { width: 1px; height: var(--thread); background: linear-gradient(180deg, rgba(232,88,8,.15), rgba(232,88,8,.75)); }
body.hw-produto .hw-spider__body { width: var(--size); height: var(--size); color: var(--hw-orange); transform-origin: top center; animation: hs-sway 5s ease-in-out infinite; }
body.hw-produto .hw-star-1 { top: 140px; right: 4%;  width: 24px; height: 24px; color: var(--hw-amber);  animation: hs-twinkle 4s ease-in-out infinite;        --sw: 1.2; }
body.hw-produto .hw-star-2 { top: 470px; right: 13%; width: 16px; height: 16px; color: var(--hw-orange); animation: hs-twinkle 5.5s ease-in-out infinite 1.2s; --sw: 1.2; }
body.hw-produto .hw-star-3 { top: 620px; right: 3%;  width: 14px; height: 14px; color: var(--hw-amber);  animation: hs-twinkle 6.5s ease-in-out infinite .6s;  --sw: 1.2; }
body.hw-produto .hw-pk-1 { right: 150px; bottom: 30px; width: 80px; height: 80px; color: var(--hw-orange); opacity: .85; --sw: 1.1; }
body.hw-produto .hw-pk-2 { right: 90px;  bottom: 30px; width: 52px; height: 52px; color: var(--hw-amber);  opacity: .6;  --sw: 1.1; }
body.hw-produto .hw-pk-3 { right: 32px;  bottom: 34px; width: 64px; height: 64px; color: var(--hw-orange); opacity: .7;  --sw: 1.1; }
body.hw-produto .hw-embers { left: 0; right: 0; bottom: 60px; height: 520px; }
body.hw-produto .hw-embers span { position: absolute; border-radius: 50%; animation: hs-drift linear infinite; }
body.hw-produto .hw-edge {
  left: 0; right: 0; bottom: 0; height: 4px; opacity: .9;
  background: linear-gradient(90deg, transparent, var(--hw-orange) 22%, var(--hw-amber) 50%, var(--hw-orange) 78%, transparent);
}

@media (max-width: 1024px) {
  body.hw-produto .hw-spider, body.hw-produto .hw-star-2, body.hw-produto .hw-star-3 { display: none; }
  body.hw-produto .hw-web-l { width: 140px; height: 140px; }
  body.hw-produto .hw-web-r { width: 150px; height: 150px; }
}
@media (max-width: 767px) {
  body.hw-produto .hw-embers, body.hw-produto .hw-pk-3 { display: none; }
  body.hw-produto .hw-web-l { width: 100px; height: 100px; --sw: 1.4; }
  body.hw-produto .hw-web-r { width: 110px; height: 110px; --sw: 1.4; }
  body.hw-produto .hw-pk-1 { right: 70px; bottom: 16px; width: 48px; height: 48px; --sw: 1.5; }
  body.hw-produto .hw-pk-2 { right: 24px; bottom: 16px; width: 34px; height: 34px; --sw: 1.5; }
  body.hw-produto section.related { padding-top: 120px; }
}
@media (prefers-reduced-motion: reduce) {
  body.hw-produto .hw-deco *,
  body.hw-produto .summary .prodalert,
  body.hw-produto .summary .prodalert::before,
  body.hw-produto .summary .prodalert::after { animation: none !important; }
}

/* botão destacado na descrição (ex.: "MOLDURAS À SUA MEDIDA") — mesmo aspeto da caixa de promoção */
body.hw-produto .summary a.prodfastbtns {
  background: transparent !important;
  color: var(--hw-orange) !important;
  border-color: var(--hw-orange) !important;
  box-shadow: 0 0 22px rgba(232,88,8,.35), inset 0 0 18px rgba(232,88,8,.15);
  transition: box-shadow .2s, color .2s;
}
body.hw-produto .summary a.prodfastbtns:hover { color: var(--hw-amber) !important; box-shadow: 0 0 34px rgba(232,88,8,.55), inset 0 0 18px rgba(232,88,8,.2); }
body.hw-produto .summary a.prodfastbtns * { color: inherit !important; }

/* preço antigo (riscado): cinzento claro */
body.hw-produto .summary .price del,
body.hw-produto .summary .price del * {
  color: #727272 !important;
  opacity: 1 !important;
  text-decoration-color: #727272 !important;
}

/* =====================================================================
   ARANHA CLICÁVEL → abre o popup Elementor (ID em HW.popupAranha no halloween.js)
   O JS tira a aranha da camada decorativa e marca-a com .hw-spider--click
   ===================================================================== */
body.home .hw-spider--click,
body.hw-produto .hw-spider--click { position: absolute; z-index: 3; pointer-events: none; }
body.hw-produto .hw-spider--click { z-index: 2; }
body.home .hw-spider--click .hw-spider__body,
body.hw-produto .hw-spider--click .hw-spider__body {
  position: relative;
  pointer-events: auto;
  cursor: pointer;
  transition: filter .2s;
}
/* área de clique maior que o desenho (ajuda no telemóvel) */
body.home .hw-spider--click .hw-spider__body::before,
body.hw-produto .hw-spider--click .hw-spider__body::before { content: ""; position: absolute; inset: -22px; }
body.home .hw-spider--click .hw-spider__body:hover,
body.home .hw-spider--click .hw-spider__body:focus-visible,
body.hw-produto .hw-spider--click .hw-spider__body:hover,
body.hw-produto .hw-spider--click .hw-spider__body:focus-visible {
  filter: drop-shadow(0 0 12px rgba(232,88,8,.95)) brightness(1.3);
  outline: none;
}

/* =====================================================================
   POPUP "COM MEDO" (shortcode [hw_halloween_popup])
   Funciona em qualquer popup Elementor que contenha .hw-popup
   ===================================================================== */
.elementor-popup-modal:has(.hw-popup) {
  --hw-orange: #E85808; --hw-amber: #F08A00; --hw-ink: #0B0D0E; --hw-line: #1C2122; --hw-line-3: #3A4041;
  --hw-white: #F6F2EF; --hw-text-2: #D6D0CC; --hw-text-3: #B7B1AD; --hw-muted: #8A8F8F;
  --hw-serif: 'Cormorant Garamond', 'Cormorant', Georgia, serif;
  --hw-sans: 'Montserrat', 'Inter', system-ui, sans-serif;
  background-color: rgba(5, 6, 7, .84) !important;
}
.elementor-popup-modal:has(.hw-popup) .dialog-widget-content {
  width: min(940px, 94vw) !important;
  max-width: none !important;
  background: var(--hw-ink) !important;
  border: 1px solid rgba(232,88,8,.55);
  border-radius: 0 !important;
  box-shadow: 0 0 46px rgba(232,88,8,.35), inset 0 0 60px rgba(232,88,8,.06);
  overflow: hidden;
}
.elementor-popup-modal:has(.hw-popup) .dialog-message { padding: 0 !important; max-height: 92vh; overflow-y: auto;
  scrollbar-width: thin; scrollbar-color: var(--hw-line-3) var(--hw-ink); }
.elementor-popup-modal:has(.hw-popup) .dialog-message::-webkit-scrollbar { width: 8px; background: var(--hw-ink); }
.elementor-popup-modal:has(.hw-popup) .dialog-message::-webkit-scrollbar-thumb { background: var(--hw-line-3); }
.elementor-popup-modal:has(.hw-popup) .dialog-message .e-con,
.elementor-popup-modal:has(.hw-popup) .dialog-message .elementor-element { background: transparent !important; --padding-top: 0px; --padding-bottom: 0px; --padding-left: 0px; --padding-right: 0px; }
.elementor-popup-modal:has(.hw-popup) .dialog-close-button { z-index: 5; }
.elementor-popup-modal:has(.hw-popup) .dialog-close-button i { color: var(--hw-text-2) !important; }
.elementor-popup-modal:has(.hw-popup) .dialog-close-button svg { fill: var(--hw-text-2) !important; }
.elementor-popup-modal:has(.hw-popup) .dialog-close-button:hover i { color: var(--hw-orange) !important; }
.elementor-popup-modal:has(.hw-popup) .dialog-close-button:hover svg { fill: var(--hw-orange) !important; }

.hw-popup { position: relative; padding: 40px 32px 32px; color: var(--hw-text-2); font-family: var(--hw-sans); text-align: center; }
.hw-popup__teia { position: absolute; top: 0; width: 170px; height: 170px; color: var(--hw-orange); opacity: .4; pointer-events: none;
  fill: none; stroke: currentColor; stroke-width: 1; filter: drop-shadow(0 0 6px rgba(232,88,8,.7)); overflow: visible; }
.hw-popup__teia--l { left: 0; }
.hw-popup__teia--r { right: 0; transform: scaleX(-1); }

.hw-popup__topo { position: relative; margin-bottom: 24px; }
.hw-popup__etiqueta { display: block; margin-bottom: 14px; font-size: 12px; font-weight: 700; letter-spacing: .36em; text-transform: uppercase; color: var(--hw-orange); }
.hw-popup__titulo { margin: 0 0 10px !important; font-family: var(--hw-serif) !important; font-style: italic; font-weight: 400 !important;
  font-size: clamp(32px, 4.4vw, 52px) !important; line-height: 1.05 !important; color: var(--hw-white) !important;
  text-shadow: 0 0 26px rgba(232,88,8,.4); }
.hw-popup__sub { margin: 0 auto !important; max-width: 560px; font-size: 15px; font-weight: 300; line-height: 1.5; color: var(--hw-text-3) !important; }

.hw-popup__lista { list-style: none !important; margin: 0 !important; padding: 0 !important; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.hw-popup__item { margin: 0 !important; padding: 0 !important; }
.hw-popup__link { display: flex; flex-direction: column; height: 100%; padding: 12px 12px 14px; text-decoration: none !important;
  background: #111416; border: 1px solid var(--hw-line); transition: border-color .2s, box-shadow .2s, transform .2s; }
.hw-popup__link:hover { border-color: var(--hw-orange); box-shadow: 0 0 24px rgba(232,88,8,.35); transform: translateY(-2px); }

.hw-popup__img { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: #1C2122; margin-bottom: 12px; }
.hw-popup__img img { width: 100% !important; height: 100% !important; object-fit: cover; display: block;
  animation: hw-medo 4.5s ease-in-out infinite; animation-delay: calc(var(--i, 0) * .7s); }
.hw-popup__pct { position: absolute; top: 8px; left: 8px; padding: 4px 8px; font-size: 12px; font-weight: 700; letter-spacing: .04em;
  background: var(--hw-orange); color: var(--hw-ink); box-shadow: 0 0 14px rgba(232,88,8,.6); }

.hw-popup__nome { display: block; min-height: 2.5em; margin-bottom: 6px; font-size: 14px; font-weight: 600; line-height: 1.25; color: var(--hw-white); }

.hw-popup__precos { display: flex; align-items: baseline; justify-content: center; gap: 10px; min-height: 34px; margin-bottom: 10px; }
.hw-popup__antes { display: inline-block; font-size: 14px; color: #C9C9C9 !important; text-decoration-color: #C9C9C9;
  transform-origin: 50% 0; animation: hw-preco-cai 1.4s cubic-bezier(.5,0,.6,1) both; animation-delay: calc(.35s + var(--i, 0) * .18s); }
.hw-popup__antes * { color: inherit !important; }
.hw-popup__agora { display: inline-block; text-decoration: none !important; background: none !important; font-size: 24px; font-weight: 700;
  color: var(--hw-orange) !important; text-shadow: 0 0 16px rgba(232,88,8,.55);
  animation: hw-preco-entra .5s cubic-bezier(.3,1.6,.6,1) both; animation-delay: calc(1.25s + var(--i, 0) * .18s); }
.hw-popup__agora * { color: inherit !important; }

.hw-popup__btn { display: block; margin-top: auto; padding: 12px 10px; font-size: 13px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
  background: var(--hw-orange); color: var(--hw-ink); box-shadow: 0 0 22px rgba(232,88,8,.45); transition: background-color .2s, box-shadow .2s; }
.hw-popup__link:hover .hw-popup__btn { background: var(--hw-amber); box-shadow: 0 0 32px rgba(232,88,8,.7); }

.hw-popup__edge { position: absolute; left: 0; right: 0; bottom: 0; height: 4px;
  background: linear-gradient(90deg, transparent, var(--hw-orange) 22%, var(--hw-amber) 50%, var(--hw-orange) 78%, transparent); }

/* o preço antigo treme de medo e cai; o novo aparece com um salto */
@keyframes hw-preco-cai {
  0%   { transform: none; opacity: 1; }
  12%  { transform: translateX(-2px) rotate(-3deg); }
  20%  { transform: translateX(2px) rotate(3deg); }
  28%  { transform: translateX(-2px) rotate(-2deg); }
  36%  { transform: translateX(1px) rotate(1deg); }
  70%  { transform: translateY(14px) rotate(-10deg); opacity: .5; }
  84%  { transform: translateY(9px) rotate(-7deg); }
  100% { transform: translateY(10px) rotate(-8deg); opacity: .6; }
}
@keyframes hw-preco-entra {
  0%   { transform: scale(.4); opacity: 0; }
  70%  { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}
/* produto "com medo": arrepio de vez em quando */
@keyframes hw-medo {
  0%, 86%, 100% { transform: none; }
  88% { transform: translateX(-2px) rotate(-.6deg); }
  90% { transform: translateX(2px) rotate(.6deg); }
  92% { transform: translateX(-1.5px); }
  94% { transform: translateX(1px); }
}

@media (max-width: 767px) {
  .hw-popup { padding: 40px 16px 24px; }
  .hw-popup__teia { width: 100px; height: 100px; }
  .hw-popup__lista { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .hw-popup__nome { font-size: 13px; }
  .hw-popup__agora { font-size: 20px; }
  .hw-popup__btn { font-size: 11px; letter-spacing: .14em; padding: 10px 6px; }
}
@media (prefers-reduced-motion: reduce) {
  .hw-popup * { animation: none !important; }
}

/* popup: largura definida aqui (o Elementor fixa 760px no .dialog-message) */
.elementor-popup-modal:has(.hw-popup) .dialog-message { width: 100% !important; max-width: none !important; }

/* lista: 1 a 6 produtos; linhas incompletas (4 ou 5) ficam centradas */
.hw-popup__lista { display: flex !important; flex-wrap: wrap; justify-content: center; }
.hw-popup__item { flex: 0 0 calc((100% - 28px) / 3); }

/* =====================================================================
   PRODUTO "QUASE A ACABAR" (classe .is-quase, posta pelo shortcode)
   ===================================================================== */
.hw-popup__item.is-quase .hw-popup__link { border-color: #FF2A1F; animation: hw-quase-pulsa 1.6s ease-in-out infinite; }
@keyframes hw-quase-pulsa {
  0%, 100% { box-shadow: 0 0 14px rgba(255,42,31,.35); }
  50%      { box-shadow: 0 0 30px rgba(255,42,31,.75); }
}
.hw-popup__quase {
  position: absolute; top: 8px; right: 8px; padding: 4px 8px;
  font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  background: #FF2A1F; color: #fff; box-shadow: 0 0 14px rgba(255,42,31,.7);
  animation: hs-st-luz 5s steps(1, end) infinite;
}
.hw-popup__item.is-quase .hw-popup__img img { animation-duration: 1.4s; }      /* treme muito mais */
.hw-popup__medo { position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: rgba(0,0,0,.55); }
.hw-popup__medo span {
  display: block; height: 100%; width: 94%; transform-origin: left;
  background: linear-gradient(90deg, #F08A00, #FF2A1F); box-shadow: 0 0 10px #FF2A1F;
  animation: hw-medo-enche 1.6s cubic-bezier(.3,.8,.4,1) both; animation-delay: calc(.4s + var(--i, 0) * .18s);
}
@keyframes hw-medo-enche { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.hw-popup__item.is-quase .hw-popup__btn { background: #FF2A1F; color: #fff; box-shadow: 0 0 22px rgba(255,42,31,.55); }
.hw-popup__item.is-quase .hw-popup__link:hover .hw-popup__btn { background: #FF4A3A; }

@media (max-width: 767px) {
  .hw-popup__item { flex-basis: calc((100% - 10px) / 2); }
  .hw-popup__quase { top: auto; right: auto; left: 8px; bottom: 11px; font-size: 10px; }
}

/* =====================================================================
   POPUP NO TELEMÓVEL: lista compacta (imagem pequena + preço + botão na mesma linha)
   6 produtos cabem sem scroll num ecrã 390x844; em ecrãs mais baixos faz scroll
   ===================================================================== */
@media (max-width: 767px) {
  .hw-popup { padding: 34px 14px 20px; }
  .hw-popup__topo { margin-bottom: 16px; }
  .hw-popup__etiqueta { margin-bottom: 10px; font-size: 10px; }
  .hw-popup__sub { font-size: 13px; }
  .hw-popup__lista { gap: 8px; }
  .hw-popup__item { flex-basis: 100% !important; }
  .hw-popup__link { display: grid; grid-template-columns: 84px 1fr auto; grid-template-rows: auto auto; column-gap: 12px; row-gap: 2px;
    align-items: center; padding: 8px; text-align: left; }
  .hw-popup__img { grid-row: 1 / span 2; width: 84px; aspect-ratio: 1 / 1; margin: 0; }
  .hw-popup__nome { grid-column: 2; min-height: 0; margin: 0; font-size: 13px; }
  .hw-popup__precos { grid-column: 2; justify-content: flex-start; min-height: 0; margin: 0; gap: 8px; }
  .hw-popup__antes { font-size: 12px; animation-name: hw-preco-cai-m; }
  .hw-popup__agora { font-size: 19px; }
  .hw-popup__btn { grid-column: 3; grid-row: 1 / span 2; margin: 0; padding: 10px 12px; font-size: 10px; letter-spacing: .12em; }
  .hw-popup__pct { top: 4px; left: 4px; padding: 2px 5px; font-size: 10px; }
  .hw-popup__quase { top: auto; left: 0; right: 0; bottom: 5px; padding: 2px 0; font-size: 8px; text-align: center; letter-spacing: .04em; }
}
@keyframes hw-preco-cai-m {
  0% { transform: none; opacity: 1; } 12% { transform: translateX(-2px) rotate(-3deg); } 20% { transform: translateX(2px) rotate(3deg); }
  28% { transform: translateX(-2px) rotate(-2deg); } 70% { transform: translateY(6px) rotate(-8deg); opacity: .5; } 100% { transform: translateY(4px) rotate(-6deg); opacity: .6; }
}
@media (max-width: 767px) {
  .hw-popup__link { grid-template-columns: 66px 1fr auto; padding: 7px; column-gap: 10px; }
  .hw-popup__img { width: 66px; }
  .hw-popup__titulo { font-size: 30px !important; }
}

/* =====================================================================
   POPUP: cruz de fechar sempre visível (computador e telemóvel)
   ===================================================================== */
.elementor-popup-modal:has(.hw-popup) .dialog-close-button {
  display: flex !important; align-items: center; justify-content: center;
  position: absolute !important; top: 10px !important; right: 10px !important; left: auto !important; bottom: auto !important;
  width: 38px !important; height: 38px !important; margin: 0 !important; padding: 0 !important;
  border-radius: 50%; background: rgba(11,13,14,.9) !important; border: 1px solid #3A4041;
  font-size: 18px !important; opacity: 1 !important; visibility: visible !important; z-index: 20 !important;
  transition: border-color .2s, box-shadow .2s;
}
.elementor-popup-modal:has(.hw-popup) .dialog-close-button:hover { border-color: #E85808; box-shadow: 0 0 14px rgba(232,88,8,.6); }
.elementor-popup-modal:has(.hw-popup) .dialog-close-button svg { width: 16px !important; height: 16px !important; }

/* =====================================================================
   PRODUTO A SAIR DA PROMOÇÃO (.is-quase): muito medo + aviso
   ===================================================================== */
.hw-popup__item.is-quase .hw-popup__link {
  animation: hw-quase-pulsa 1.6s ease-in-out infinite, hw-quase-treme 3.2s steps(1, end) infinite;
  background: linear-gradient(180deg, rgba(255,42,31,.10), #111416 55%);
}
@keyframes hw-quase-treme {
  0%, 78%, 100% { transform: none; }
  80% { transform: translate(-3px, 1px) rotate(-.8deg); }
  82% { transform: translate(3px, -1px) rotate(.8deg); }
  84% { transform: translate(-2px, 0) rotate(-.5deg); }
  86% { transform: translate(2px, 1px); }
  88% { transform: translate(-1px, 0); }
}
.hw-popup__aviso {
  display: block; margin: -2px 0 10px; font-size: 12px; font-weight: 700; line-height: 1.3;
  color: #FF4A3A; text-shadow: 0 0 10px rgba(255,42,31,.6);
  animation: hs-st-luz 5s steps(1, end) infinite;
}
@media (max-width: 767px) {
  .hw-popup__item.is-quase .hw-popup__img,
  .hw-popup__item.is-quase .hw-popup__btn { grid-row: 1 / span 3; }
  .hw-popup__aviso { grid-column: 2; margin: 2px 0 0; font-size: 10px; }
  .elementor-popup-modal:has(.hw-popup) .dialog-close-button { top: 6px !important; right: 6px !important; width: 34px !important; height: 34px !important; }
}

@media (max-width: 767px) {
  .hw-popup__quase { white-space: nowrap; font-size: 8px; padding: 2px 0; }
  .hw-popup__quase-data { display: none; }   /* no telemóvel só "VAI ACABAR" */
}

/* =====================================================================
   BICHO A ANDAR PELA PÁGINA (produtos Halloween) — criado pelo halloween.js
   ===================================================================== */
.hw-bicho {
  position: fixed; left: 0; top: 0; z-index: 9990;
  width: 30px; height: 30px;
  color: #E85808; pointer-events: none; will-change: transform;
  transform: translate(-200px, -200px);
}
.hw-bicho svg {
  display: block; width: 100%; height: 100%; overflow: visible;
  fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round;
  filter: drop-shadow(0 0 6px rgba(232,88,8,.8));
}
.hw-bicho.is-clicavel { pointer-events: auto; cursor: pointer; }
.hw-bicho.is-clicavel::before { content: ""; position: absolute; inset: -12px; }   /* área de clique maior */
.hw-bicho.is-clicavel:hover { color: #F08A00; }
.hw-bicho.anda .hw-bicho__a { animation: hw-perna .16s steps(2, end) infinite; }
.hw-bicho.anda .hw-bicho__b { animation: hw-perna .16s steps(2, end) infinite reverse; }
@keyframes hw-perna { 0% { transform: translateY(-.9px); } 100% { transform: translateY(.9px); } }
@media (max-width: 767px) {
  .hw-bicho { width: 22px; height: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .hw-bicho { display: none; }
}

/* =====================================================================
   ARANHA NO PRODUTO EM TABLET/TELEMÓVEL (antes estava escondida)
   Pendurada da teia da direita, por cima do canto da galeria, sem tapar a lupa
   ===================================================================== */
@media (max-width: 1024px) {
  body.hw-produto .hw-spider { display: flex; right: 64px; --thread: 160px; --size: 40px; --sw: 1.3; }
}
@media (max-width: 767px) {
  body.hw-produto .hw-spider { right: 25px; --thread: 130px; --size: 32px; --sw: 1.5; }
}

/* =====================================================================
   CALCULADORA M² (#calcm2_tab) nos produtos Halloween
   ===================================================================== */
body.hw-produto #calcm2_tab { background: #111416 !important; border: 1px solid var(--hw-line); color: var(--hw-text-2) !important; box-shadow: inset 0 0 30px rgba(232,88,8,.05); }
body.hw-produto #calcm2_tab strong { color: var(--hw-orange) !important; letter-spacing: .08em; }
body.hw-produto #calcm2_tab #calcm2 { background: var(--hw-ink) !important; border: 1px solid var(--hw-line); }
body.hw-produto #calcm2_tab input.form-control { background: transparent !important; color: var(--hw-white) !important; border-color: var(--hw-line-3) !important; box-shadow: none !important; }
body.hw-produto #calcm2_tab input.form-control:focus { border-color: var(--hw-orange) !important; }
body.hw-produto #calcm2_tab .calcm2_m2_append,
body.hw-produto #calcm2_tab .unit_append,
body.hw-produto #calcm2_tab .calcm2_equal { color: var(--hw-text-3) !important; }
body.hw-produto #calcm2_tab #calc-painel { color: var(--hw-white) !important; font-weight: 700; }
body.hw-produto #calcm2_tab #calc-price,
body.hw-produto #calcm2_tab #calc-price * { color: var(--hw-orange) !important; }
body.hw-produto #calcm2_tab .form-control-quantity-selection__button {
  background: transparent !important; color: var(--hw-text-2) !important; border-color: var(--hw-line-3) !important;
  transition: color .2s, border-color .2s;
}
body.hw-produto #calcm2_tab .form-control-quantity-selection__button:hover { color: var(--hw-white) !important; border-color: var(--hw-orange) !important; }

/* =====================================================================
   CALCULADORA M² — versão "elegante" (sobrepõe o bloco anterior)
   ===================================================================== */
body.hw-produto .summary #calcm2_tab {
  position: relative; margin: 18px 0 24px; padding: 28px 28px 16px !important;
  background: linear-gradient(180deg, rgba(232,88,8,.08), rgba(14,17,19,0) 45%), #0E1113 !important;
  border: 1px solid rgba(232,88,8,.35) !important; border-radius: 0 !important;
  box-shadow: 0 0 30px rgba(232,88,8,.16) !important;
}
body.hw-produto .summary #calcm2_tab::before {
  content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 2px;
  background: linear-gradient(90deg, transparent, #E85808 25%, #F08A00 50%, #E85808 75%, transparent);
}
body.hw-produto .summary #calcm2_tab > strong {
  display: block; margin: 0 0 16px; text-align: center;
  font-size: 11px !important; font-weight: 700; letter-spacing: .32em !important; text-transform: uppercase;
  color: var(--hw-orange) !important;
}
body.hw-produto .summary #calcm2_tab #calcm2 + strong { margin-top: 4px; padding-top: 24px; border-top: 1px solid var(--hw-line); }
body.hw-produto .summary #calcm2_tab #calcm2,
body.hw-produto .summary #calcm2_tab #calcm2_altcomp {
  background: transparent !important; border: 0 !important; border-radius: 0 !important; padding: 0 !important; margin: 0 0 22px !important;
}
/* campos numéricos: caixas escuras, número grande */
body.hw-produto .summary #calcm2_tab input.form-control {
  width: 76px !important; height: 46px !important; padding: 0 !important;
  background: var(--hw-ink) !important; border: 1px solid #2A3031 !important; border-radius: 0 !important;
  font-size: 20px !important; font-weight: 600; text-align: center; color: var(--hw-white) !important;
  transition: border-color .2s, box-shadow .2s;
}
body.hw-produto .summary #calcm2_tab input.form-control:focus { border-color: var(--hw-orange) !important; box-shadow: 0 0 12px rgba(232,88,8,.35) !important; outline: none; }
body.hw-produto .summary #calcm2_tab .calcm2_m2_append {
  margin-top: 6px; font-size: 10px !important; letter-spacing: .2em; text-transform: uppercase; color: var(--hw-muted) !important;
}
/* - / + colados ao campo */
body.hw-produto .summary #calcm2_tab .calcm2_unit { gap: 0; align-items: center; }
body.hw-produto .summary #calcm2_tab .form-control-quantity-selection__button {
  width: 46px !important; height: 46px !important; padding: 0 !important; display: flex; align-items: center; justify-content: center;
  background: var(--hw-ink) !important; border: 1px solid #2A3031 !important; border-radius: 0 !important;
  font-size: 18px !important; color: var(--hw-text-2) !important;
}
body.hw-produto .summary #calcm2_tab #form-control-quantity-selection-minus { border-right: 0 !important; }
body.hw-produto .summary #calcm2_tab #form-control-quantity-selection-plus { border-left: 0 !important; }
body.hw-produto .summary #calcm2_tab .form-control-quantity-selection__button:hover { color: var(--hw-orange) !important; background: #14181A !important; }
body.hw-produto .summary #calcm2_tab .unit_append { margin-left: 10px; font-size: 13px; color: var(--hw-text-3) !important; }
body.hw-produto .summary #calcm2_tab .calcm2_equal { margin: 0 10px; font-size: 16px; color: var(--hw-muted) !important; }
body.hw-produto .summary #calcm2_tab #calc-painel { font-size: 20px !important; color: var(--hw-orange) !important; text-shadow: 0 0 12px rgba(232,88,8,.5); margin-right: 4px; }
/* AÑADIR: discreto, enche a laranja ao passar o rato */
body.hw-produto .summary #calcm2_tab a.prodfastbtns {
  padding: 14px 10px !important; border: 1px solid rgba(232,88,8,.7) !important; border-radius: 0 !important;
  background: rgba(232,88,8,.06) !important; color: var(--hw-orange) !important; box-shadow: none !important;
  font-size: 12px !important; font-weight: 700; letter-spacing: .26em; text-transform: uppercase;
  transition: background-color .2s, color .2s, box-shadow .2s;
}
body.hw-produto .summary #calcm2_tab a.prodfastbtns:hover {
  background: var(--hw-orange) !important; color: var(--hw-ink) !important; box-shadow: 0 0 26px rgba(232,88,8,.55) !important;
}
@media (max-width: 767px) {
  body.hw-produto .summary #calcm2_tab { padding: 22px 14px 10px !important; }
  body.hw-produto .summary #calcm2_tab input.form-control { width: 62px !important; height: 42px !important; font-size: 18px !important; }
  body.hw-produto .summary #calcm2_tab .form-control-quantity-selection__button { width: 40px !important; height: 42px !important; }
  body.hw-produto .summary #calcm2_tab .calcm2_equal { margin: 0 6px; }
}
