
.rv {
    opacity: 0;
    transform: translateY(22px);
    transition:
        opacity 0.6s ease,
        transform 0.6s cubic-bezier(0.2, 0.9, 0.2, 1);
    will-change: opacity, transform;
}
.rv.rv-in {
    opacity: 1;
    transform: none;
}

.promo-reveal {
    animation: pop-in 0.55s cubic-bezier(0.2, 0.9, 0.2, 1) both;
}
@keyframes pop-in {
    0% {
        opacity: 0;
        transform: scale(0.92) translateY(8px);
    }
    60% {
        transform: scale(1.03);
    }
    100% {
        opacity: 1;
        transform: none;
    }
}

.num-bump {
    animation: num-bump 0.7s cubic-bezier(0.2, 0.9, 0.2, 1);
    display: inline-block;
}
@keyframes num-bump {
    0% {
        transform: scale(1);
    }
    35% {
        transform: scale(1.28);
        color: var(--brand);
    }
    100% {
        transform: scale(1);
    }
}

.cta-primary.nudge,
.sticky-btn.nudge {
    animation: nudge 1.1s cubic-bezier(0.2, 0.9, 0.2, 1);
}
@keyframes nudge {
    0%,
    100% {
        transform: none;
    }
    18% {
        transform: scale(1.045);
    }
    36% {
        transform: scale(0.99);
    }
    54% {
        transform: scale(1.02);
    }
}
.cta-primary.glow {
    animation: glow-ring 2.8s ease-out infinite;
}
@keyframes glow-ring {
    0% {
        box-shadow: 0 4px 16px rgba(232, 89, 12, 0.3), 0 0 0 0 rgba(232, 89, 12, 0.42);
    }
    70%,
    100% {
        box-shadow: 0 4px 16px rgba(232, 89, 12, 0.3), 0 0 0 15px rgba(232, 89, 12, 0);
    }
}

.gift-banner {
    position: relative;
    overflow: hidden;
}
.gift-banner::after {
    content: "";
    position: absolute;
    top: 0;
    inset-inline-start: -45%;
    width: 35%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.62), transparent);
    transform: skewX(-18deg);
    animation: sweep 4.5s ease-in-out infinite;
    pointer-events: none;
}
@keyframes sweep {
    0%,
    62% {
        inset-inline-start: -45%;
    }
    100% {
        inset-inline-start: 120%;
    }
}

.rating-stars i {
    display: inline-block;
    animation: star-pop 0.45s cubic-bezier(0.2, 1.5, 0.4, 1) both;
}
.rating-stars i:nth-child(1) {
    animation-delay: 0.05s;
}
.rating-stars i:nth-child(2) {
    animation-delay: 0.13s;
}
.rating-stars i:nth-child(3) {
    animation-delay: 0.21s;
}
.rating-stars i:nth-child(4) {
    animation-delay: 0.29s;
}
.rating-stars i:nth-child(5) {
    animation-delay: 0.37s;
}
@keyframes star-pop {
    from {
        opacity: 0;
        transform: scale(0.4) rotate(-25deg);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

.field .tip {
    max-height: 0;
    overflow: hidden;
    font-size: 12px;
    font-weight: 700;
    color: var(--muted, #6a6055);
    transition:
        max-height 0.32s cubic-bezier(0.2, 0.9, 0.2, 1),
        opacity 0.25s ease;
    opacity: 0;
}
.field .tip > span {
    display: flex;
    align-items: center;
    gap: 6px;
    padding-top: 6px;
    transform: translateY(-5px);
    transition: transform 0.3s cubic-bezier(0.2, 0.9, 0.2, 1);
}
.field.tip-on .tip {
    max-height: 64px;
    opacity: 1;
}
.field.tip-on .tip > span {
    transform: none;
}
.field.has-error .tip {
    max-height: 0;
    opacity: 0;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    box-shadow: 0 0 0 4px var(--brand-soft, #fff1e3);
}

.field.shake input,
.field.shake select {
    animation: shake 0.4s ease;
}
@keyframes shake {
    0%,
    100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-5px);
    }
    50% {
        transform: translateX(5px);
    }
    75% {
        transform: translateX(-3px);
    }
}

.field.next-up input {
    border-color: var(--brand-3, #fb8c3c);
    animation: next-ring 1.9s ease-out infinite;
}
@keyframes next-ring {
    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(232, 89, 12, 0);
    }
    45% {
        box-shadow: 0 0 0 5px rgba(232, 89, 12, 0.16);
    }
}

.collar-swatch.just-picked {
    animation: pick 0.5s cubic-bezier(0.2, 1.5, 0.4, 1);
}
@keyframes pick {
    0% {
        transform: scale(1);
    }
    45% {
        transform: scale(1.22);
    }
    100% {
        transform: scale(1);
    }
}
.collar-select.needs-pick .collar-label::after {
    content: " — الطوق مجاني";
    color: var(--brand);
    animation: fade-pulse 1.8s ease-in-out infinite;
}
@keyframes fade-pulse {
    0%,
    100% {
        opacity: 0.45;
    }
    50% {
        opacity: 1;
    }
}

.cat-entry.entry-new {
    animation: pop-in 0.5s cubic-bezier(0.2, 0.9, 0.2, 1) both;
}

@media (prefers-reduced-motion: reduce) {
    .rv,
    .rv.rv-in {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
    .gift-banner::after,
    .cta-primary.glow::before,
    .rating-stars i,
    .field.next-up input,
    .collar-select.needs-pick .collar-label::after {
        animation: none !important;
    }
    .num-bump,
    .cta-primary.nudge,
    .sticky-btn.nudge,
    .field.shake input,
    .promo-reveal,
    .cat-entry.entry-new {
        animation: none !important;
    }
}
