:root {
    --hx-gold: #b7894f;
    --hx-burgundy: #64283f;
    --hx-ink: #211916;
    --hx-ivory: #f8f3ec;
    --hx-ease: cubic-bezier(.2, .7, .2, 1);
}

.hera-experience {
    scroll-behavior: smooth;
}

/* —— Icons —— */
.hera-xp-icon {
    display: inline-grid;
    width: 1.15em;
    height: 1.15em;
    place-items: center;
    line-height: 0;
    vertical-align: -0.15em;
}

.hera-xp-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.hera-icon .hera-xp-icon,
.hera-help-hub__icon .hera-xp-icon,
.hera-info-grid article > span .hera-xp-icon,
.hera-guide__notice > .hera-xp-icon,
.hera-security__icon .hera-xp-icon {
    width: 100%;
    height: 100%;
}

.hera-xp-step {
    display: inline-grid;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    place-items: center;
    color: #fff8ef;
    background:
        radial-gradient(circle at 30% 25%, rgba(212, 161, 92, .55), transparent 45%),
        linear-gradient(145deg, #3a221c, #64283f 55%, #291b17);
    border: 1px solid rgba(183, 137, 79, .55);
    box-shadow: 0 10px 24px rgba(33, 25, 22, .18);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 15px;
    letter-spacing: .08em;
    flex-shrink: 0;
}

.hera-xp-step span {
    transform: translateY(1px);
}

.hera-step > .hera-xp-step,
.hera-payment-steps article > .hera-xp-step,
.hera-return-flow article > .hera-xp-step {
    margin-bottom: 0;
}

.hera-step {
    align-items: center;
}

.hera-payment-steps article > .hera-xp-step,
.hera-return-flow article > .hera-xp-step {
    margin-bottom: 22px;
}

/* —— Reveal animations —— */
[data-hera-animate] {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .8s var(--hx-ease), transform .8s var(--hx-ease);
    will-change: opacity, transform;
}

[data-hera-animate].is-inview {
    opacity: 1;
    transform: none;
}

[data-hera-animate="fade"] {
    transform: none;
}

[data-hera-animate="left"] {
    transform: translateX(-28px);
}

[data-hera-animate="right"] {
    transform: translateX(28px);
}

[data-hera-animate="scale"] {
    transform: scale(.94);
}

[data-hera-animate].is-inview[data-hera-animate="left"],
[data-hera-animate].is-inview[data-hera-animate="right"],
[data-hera-animate].is-inview[data-hera-animate="scale"] {
    transform: none;
}

.hera-trust__item,
.hera-category-card,
.hera-product-card,
.hera-step,
.hera-quality__points > div,
.hera-info-grid article,
.hera-payment-method,
.hera-payment-steps article,
.hera-return-flow article,
.hera-help-hub__grid > a,
.hera-faq details {
    transition: transform .35s var(--hx-ease), box-shadow .35s var(--hx-ease), border-color .35s ease;
}

.hera-trust__item:hover,
.hera-info-grid article:hover,
.hera-payment-method:hover,
.hera-payment-steps article:hover,
.hera-help-hub__grid > a:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 36px rgba(33, 25, 22, .1);
}

.hera-category-card:hover,
.hera-product-card:hover {
    transform: translateY(-6px);
}

.hera-icon,
.hera-help-hub__icon,
.hera-info-grid article > span,
.hera-security__icon,
.hera-quality__photo,
.hera-help-photo {
    transition: transform .45s var(--hx-ease), border-color .3s ease, background .3s ease, box-shadow .35s ease;
}

.hera-trust__item:hover .hera-icon,
.hera-help-hub__grid > a:hover .hera-help-hub__icon,
.hera-info-grid article:hover > span,
.hera-quality__points a:hover .hera-quality__photo {
    transform: scale(1.08);
    border-color: rgba(183, 137, 79, .55);
}

.hera-icon,
.hera-help-hub__icon,
.hera-xp-step,
.hera-quality__photo,
.hera-help-photo {
    animation: heraIconSettle .7s var(--hx-ease) both;
}

@keyframes heraIconSettle {
    from { opacity: 0; transform: scale(.82) translateY(8px); }
    to { opacity: 1; transform: none; }
}

.hera-xp-step:hover {
    transform: scale(1.06);
}

.hera-circle-button {
    transition: transform .3s var(--hx-ease), background .3s ease, border-color .3s ease !important;
}

.hera-circle-button:hover {
    transform: scale(1.08);
}

.hera-text-link--arrow .hera-xp-icon,
.hera-button .hera-xp-icon,
.hera-guide__button .hera-xp-icon {
    transition: transform .3s var(--hx-ease);
}

.hera-text-link--arrow:hover .hera-xp-icon,
.hera-button:hover .hera-xp-icon,
.hera-guide__button:hover .hera-xp-icon {
    transform: translateX(4px);
}

/* —— CTA life —— */
.hera-button,
.hera-guide__button,
.hera-xp-btn {
    position: relative;
    overflow: hidden;
}

.hera-button::after,
.hera-guide__button::after,
.hera-xp-btn::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 20%, rgba(255, 255, 255, .28) 45%, transparent 70%);
    transform: translateX(-120%);
    transition: transform .7s var(--hx-ease);
    pointer-events: none;
}

.hera-button:hover::after,
.hera-guide__button:hover::after,
.hera-xp-btn:hover::after {
    transform: translateX(120%);
}

.hera-button,
.hera-guide__button {
    animation: heraCtaBreath 3.8s ease-in-out infinite;
}

.hera-button:hover,
.hera-guide__button:hover,
.hera-xp-btn:hover {
    animation: none;
}

@keyframes heraCtaBreath {
    0%, 100% { box-shadow: 0 0 0 0 rgba(183, 137, 79, 0); }
    50% { box-shadow: 0 0 0 8px rgba(183, 137, 79, .08); }
}

.hera-announcement {
    position: relative;
    overflow: hidden;
}

.hera-announcement::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 -20%;
    width: 30%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .12), transparent);
    animation: heraShimmer 6s linear infinite;
}

@keyframes heraShimmer {
    to { transform: translateX(420%); }
}

.hera-hero__slide.is-active .hera-hero__content {
    animation: heraHeroIn .32s var(--hx-ease) both;
}

@keyframes heraHeroIn {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: none; }
}

.hera-hero__dots button.is-active {
    animation: heraDotPulse 1.8s ease-in-out infinite;
}

@keyframes heraDotPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, .35); }
    50% { box-shadow: 0 0 0 6px rgba(255, 255, 255, 0); }
}

/* —— Popups —— */
.hera-xp-root[hidden] {
    display: none !important;
}

.hera-xp-overlay {
    position: fixed;
    inset: 0;
    z-index: 99980;
    background: rgba(20, 12, 10, .58);
    backdrop-filter: blur(6px);
    opacity: 0;
    transition: opacity .35s ease;
}

.hera-xp-overlay.is-open {
    opacity: 1;
}

.hera-xp-popup {
    position: fixed;
    z-index: 99990;
    top: 50%;
    left: 50%;
    width: min(460px, calc(100vw - 28px));
    padding: 34px 28px 28px;
    border: 1px solid rgba(183, 137, 79, .35);
    color: var(--hx-ink);
    background:
        radial-gradient(circle at 85% 0%, rgba(183, 137, 79, .18), transparent 40%),
        linear-gradient(180deg, #fffdf9, #f4ebe1);
    box-shadow: 0 30px 80px rgba(20, 12, 10, .35);
    transform: translate(-50%, -46%) scale(.94);
    opacity: 0;
    transition: opacity .35s var(--hx-ease), transform .4s var(--hx-ease);
}

.hera-xp-popup.is-open {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.hera-xp-popup__glow {
    position: absolute;
    inset: auto -20% -30% -20%;
    height: 50%;
    background: radial-gradient(circle, rgba(183, 137, 79, .2), transparent 65%);
    pointer-events: none;
}

.hera-xp-popup__close {
    position: absolute;
    top: 12px;
    right: 12px;
    display: grid;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(33, 25, 22, .14);
    border-radius: 50%;
    background: transparent;
    color: var(--hx-ink);
    cursor: pointer;
    place-items: center;
}

.hera-xp-popup__close .hera-xp-icon {
    width: 16px;
    height: 16px;
}

.hera-xp-popup__icon {
    display: grid;
    width: 64px;
    height: 64px;
    margin-bottom: 18px;
    border-radius: 18px;
    background: rgba(100, 40, 63, .08);
    place-items: center;
    animation: heraIconFloat 3.2s ease-in-out infinite;
}

.hera-xp-popup__icon .hera-xp-icon {
    width: 38px;
    height: 38px;
}

@keyframes heraIconFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

.hera-xp-popup__kicker {
    margin: 0 0 10px;
    color: var(--hx-burgundy);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.hera-xp-popup h2 {
    margin: 0 0 12px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(30px, 5vw, 40px);
    font-weight: 400;
    letter-spacing: -.03em;
    line-height: 1.1;
}

.hera-xp-popup > p {
    margin: 0 0 24px;
    color: #716760;
    font-size: 14px;
    line-height: 1.7;
}

.hera-xp-popup__actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.hera-xp-btn {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 18px;
    border: 1px solid transparent;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .1em;
    text-decoration: none !important;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform .25s ease, background .25s ease;
}

.hera-xp-btn:hover {
    transform: translateY(-2px);
}

.hera-xp-btn--gold {
    color: #fff !important;
    background: linear-gradient(135deg, #c89a57, #8d6430);
}

.hera-xp-btn--ghost {
    color: var(--hx-ink) !important;
    background: transparent;
    border-color: rgba(33, 25, 22, .18);
}

.hera-xp-fab {
    position: fixed;
    z-index: 99970;
    right: 18px;
    bottom: 18px;
    display: inline-flex;
    min-height: 52px;
    align-items: center;
    gap: 10px;
    padding: 10px 16px 10px 10px;
    border: 0;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(135deg, #64283f, #291b17);
    box-shadow: 0 14px 34px rgba(33, 25, 22, .28);
    cursor: pointer;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    animation: heraFabIn .6s var(--hx-ease) both, heraCtaBreath 3.8s ease-in-out 1s infinite;
}

.hera-xp-fab .hera-xp-icon {
    width: 34px;
    height: 34px;
    padding: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .1);
}

@keyframes heraFabIn {
    from { opacity: 0; transform: translateY(20px) scale(.9); }
    to { opacity: 1; transform: none; }
}

body.hera-xp-locked {
    overflow: hidden;
}

@media (max-width: 680px) {
    .hera-xp-popup {
        padding: 28px 20px 22px;
    }

    .hera-xp-fab span {
        display: none;
    }

    .hera-xp-fab {
        width: 56px;
        height: 56px;
        padding: 0;
        justify-content: center;
        border-radius: 50%;
    }
}

@media (prefers-reduced-motion: reduce) {
    [data-hera-animate],
    .hera-button,
    .hera-guide__button,
    .hera-announcement::before,
    .hera-hero__slide.is-active .hera-hero__content,
    .hera-xp-popup__icon,
    .hera-xp-fab {
        animation: none !important;
        transition: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}
