/* Haco Core: side offer zones as small 3D sign panels (stand, frame, lamp, light sweep, gentle sway, tilt with the mouse). */
.hpz{position:fixed;z-index:20;top:140px;display:none;flex-direction:column;align-items:stretch;gap:8px;box-sizing:border-box;font-family:'Cairo',system-ui,sans-serif;line-height:1.6;--hpz-ry:0deg}
.hpz *,.hpz *::before,.hpz *::after{box-sizing:border-box}
.hpz:hover{z-index:60}
.hpz-right{right:14px;--hpz-ry:-16deg}.hpz-left{left:14px;--hpz-ry:16deg}
.hpz-tag{align-self:center;font-size:calc(11px * var(--hpz-k,1));font-weight:800;color:#bdbdbd;background:#16181b;border:1px solid #2a2d31;border-radius:999px;padding:0 10px;line-height:1.8}
.hpz-list{position:relative;display:flex;flex-direction:column;gap:18px;min-height:0}

/* one sign: the link holds the perspective and the slow sway, the panel turns in 3D */
.hpz-c{position:relative;flex:none;display:block;color:#fff;text-decoration:none;perspective:700px;padding-bottom:12px;animation:hpzSway 7s ease-in-out infinite;outline:0}
/* neutralise the flat card styles of theme 2.20.0 / 2.20.1, in case the theme is not updated yet */
.hpz .hpz-c,.hpz .hpz-c:hover,.hpz .hpz-c:focus-visible{overflow:visible;background:none;border:0;border-radius:0;box-shadow:none;transform:none}
.hpz .hpz-c.in{animation:hpzSway 7s ease-in-out infinite}
.hpz-c:nth-child(2n){animation-delay:-2.3s}.hpz-c:nth-child(3n){animation-delay:-4.6s}
.hpz-c:visited,.hpz-c:hover,.hpz-c:focus{color:#fff;text-decoration:none}
.hpz-c.off{display:none}
.hpz-p{position:relative;display:block;transform-style:preserve-3d;transform:rotateY(calc(var(--hpz-ry) + var(--ty,0deg))) rotateX(var(--tx,0deg)) scale(var(--ts,1));transition:transform .45s cubic-bezier(.2,.7,.2,1)}
.hpz-right .hpz-p{transform-origin:100% 50%}.hpz-left .hpz-p{transform-origin:0 50%}
.hpz-c:hover,.hpz-c:focus-visible{--hpz-ry:0deg}
.hpz-c:hover .hpz-p,.hpz-c:focus-visible .hpz-p{--ts:1.1}
.hpz-c.tilt .hpz-p{transition:transform .12s linear}
/* thickness: a dark back plate a little behind the face */
.hpz-p::before{content:"";position:absolute;inset:0;border-radius:14px;background:linear-gradient(180deg,#2a2c31,#0a0b0d);transform:translateZ(-10px);box-shadow:0 18px 30px rgba(0,0,0,.55)}
/* the stand under the sign */
.hpz-p::after{content:"";position:absolute;left:50%;bottom:-12px;width:46%;height:12px;transform:translateX(-50%) translateZ(-6px);background:linear-gradient(90deg,transparent 0 12%,#2c2e33 12% 18%,transparent 18% 82%,#2c2e33 82% 88%,transparent 88%),linear-gradient(0deg,#1d1f23 0 3px,transparent 3px);border-radius:0 0 3px 3px}
/* the face: metal frame, picture, name, button */
.hpz-face{position:relative;display:flex;flex-direction:column;border-radius:14px;overflow:hidden;background:#16181b;border:2px solid #34373d;box-shadow:inset 0 1px 0 rgba(255,255,255,.08);transition:border-color .3s ease,box-shadow .3s ease}
.hpz-c:hover .hpz-face,.hpz-c:focus-visible .hpz-face{border-color:var(--haco-accent,#F26A1B);box-shadow:0 0 0 1px var(--haco-accent,#F26A1B),0 0 26px rgba(242,106,27,.45)}
/* lamp on top of the sign */
.hpz-face::before{content:"";position:absolute;z-index:3;top:0;left:22%;right:22%;height:3px;border-radius:0 0 3px 3px;background:var(--haco-accent,#F26A1B);box-shadow:0 0 10px var(--haco-accent,#F26A1B),0 6px 22px rgba(242,106,27,.5);opacity:.85;animation:hpzLamp 4.5s ease-in-out infinite}
/* light sweeping across the sign */
.hpz-face::after{content:"";position:absolute;z-index:2;top:-20%;bottom:-20%;width:45%;left:-60%;background:linear-gradient(105deg,transparent 0,rgba(255,255,255,.16) 45%,rgba(255,255,255,.04) 60%,transparent 100%);transform:skewX(-12deg);pointer-events:none;animation:hpzShine 6.5s ease-in-out infinite}
.hpz-c:nth-child(2n) .hpz-face::after{animation-delay:-2.2s}.hpz-c:nth-child(3n) .hpz-face::after{animation-delay:-4.4s}
.hpz-c:hover .hpz-face::after{animation-duration:1.6s}
.hpz-im{position:relative;display:flex;align-items:center;justify-content:center;aspect-ratio:16/9;background:#0d0e10;overflow:hidden}
.hpz-bl{position:absolute;inset:-12px;background-size:cover;background-position:center;filter:blur(12px) brightness(.55);transform:scale(1.1)}
.hpz-im img{position:relative;display:block;width:100%;height:100%;object-fit:contain;transition:transform .5s ease}
.hpz-c:hover .hpz-im img{transform:scale(1.05)}
.hpz-tx{display:block;padding:6px 10px 0;text-align:center}
.hpz-tx b{display:block;font-size:calc(13.5px * var(--hpz-k,1));line-height:1.45;font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hpz-tx small{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;max-height:0;opacity:0;font-size:calc(11.5px * var(--hpz-k,1));line-height:1.5;color:#a9a9a9;transition:max-height .35s ease,opacity .35s ease}
.hpz-c:hover .hpz-tx small,.hpz-c:focus-visible .hpz-tx small{max-height:calc(54px * var(--hpz-k,1));opacity:1}
.hpz-more{align-self:center;display:inline-flex;align-items:center;gap:4px;margin:6px 0 8px;padding:3px 12px;border-radius:999px;font-size:calc(12px * var(--hpz-k,1));font-weight:800;line-height:1.7;color:#0d0e10;background:var(--haco-accent,#F26A1B);transition:gap .2s ease,box-shadow .2s ease}
.hpz-more svg{display:block;flex:none}
.hpz-c:hover .hpz-more{gap:8px;box-shadow:0 0 14px rgba(242,106,27,.6)}
.hpz-nolink .hpz-tx{padding-bottom:8px}
/* a new group of signs turns in like a flap */
.hpz-c.in .hpz-p{animation:hpzFlip var(--hpz-speed,700ms) cubic-bezier(.2,.8,.25,1) var(--hpz-d,0ms) backwards}
.hpz[data-effect=slide] .hpz-c.in .hpz-p{animation-name:hpzRise}
.hpz[data-effect=none] .hpz-c.in .hpz-p{animation:none}
.hpz-dots{display:flex;justify-content:center;gap:5px}
.hpz-dots i{width:6px;height:6px;border-radius:50%;background:#3a3d42;transition:background .2s,width .2s}
.hpz-dots i.on{width:14px;border-radius:4px;background:var(--haco-accent,#F26A1B)}
@keyframes hpzSway{0%,100%{transform:translateY(0)}50%{transform:translateY(-5px)}}
@keyframes hpzShine{0%,62%{left:-60%}100%{left:130%}}
@keyframes hpzLamp{0%,100%{opacity:.85}50%{opacity:.45}}
@keyframes hpzFlip{from{opacity:0;transform:rotateY(var(--hpz-ry)) rotateX(-85deg)}to{opacity:1}}
@keyframes hpzRise{from{opacity:0;transform:rotateY(calc(var(--hpz-ry) * 2.5)) translateY(24px)}to{opacity:1}}
@media (prefers-reduced-motion:reduce){.hpz-c,.hpz-face::before,.hpz-face::after,.hpz-c.in .hpz-p{animation:none!important}.hpz-p,.hpz-im img,.hpz-more{transition:none!important}.hpz-c:hover .hpz-p{--ts:1}}

/* ads page: the card opened from an offer zone or a link */
.ptc{scroll-margin-top:90px}
.ptc:target{animation:ptcTarget 2.6s ease 1}
@keyframes ptcTarget{0%,60%{box-shadow:0 0 0 3px var(--haco-accent,#F26A1B),0 0 32px rgba(242,106,27,.55)}100%{box-shadow:none}}
