/* ============================================
   SHAIK — ANIMATIONS STYLESHEET
   ============================================ */

/* ===== KEYFRAMES ===== */
@keyframes loaderPulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.8;
        transform: scale(0.98);
    }
}

@keyframes loaderFill {
    0% {
        width: 0;
    }

    100% {
        width: 100%;
    }
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

@keyframes scrollLine {
    0% {
        transform: scaleY(0);
        transform-origin: top;
    }

    50% {
        transform: scaleY(1);
        transform-origin: top;
    }

    50.01% {
        transform: scaleY(1);
        transform-origin: bottom;
    }

    100% {
        transform: scaleY(0);
        transform-origin: bottom;
    }
}

@keyframes badgeSpin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes dragFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

@keyframes avatarPulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.1);
        opacity: 1;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }

    100% {
        background-position: 1000px 0;
    }
}

@keyframes goldGlow {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(201, 168, 76, 0.2);
    }

    50% {
        box-shadow: 0 0 40px rgba(201, 168, 76, 0.5);
    }
}

@keyframes particleFall {
    0% {
        transform: translateY(-10px) rotate(0deg);
        opacity: 1;
    }

    100% {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

@keyframes cartBounce {

    0%,
    100% {
        transform: scale(1);
    }

    30% {
        transform: scale(1.3);
    }

    60% {
        transform: scale(0.9);
    }
}

@keyframes ripple {
    0% {
        transform: scale(0);
        opacity: 1;
    }

    100% {
        transform: scale(4);
        opacity: 0;
    }
}

@keyframes typewriter {
    from {
        opacity: 0;
        transform: translateX(-5px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes heroTextReveal {
    from {
        opacity: 0;
        transform: translateY(100%) skewY(5deg);
    }

    to {
        opacity: 1;
        transform: translateY(0) skewY(0);
    }
}

@keyframes borderDraw {
    from {
        stroke-dashoffset: 1000;
    }

    to {
        stroke-dashoffset: 0;
    }
}

@keyframes float3D {

    0%,
    100% {
        transform: translateY(0) rotateX(0deg);
    }

    50% {
        transform: translateY(-12px) rotateX(3deg);
    }
}

@keyframes hoverLift {
    to {
        transform: translateY(-6px);
    }
}

/* ===== PARTICLE SYSTEM ===== */
.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: radial-gradient(circle, rgba(201, 168, 76, 0.8), transparent);
    border-radius: 50%;
    pointer-events: none;
}

/* ===== PAGE TRANSITION ===== */
.page-transition {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: var(--black);
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.page-transition.active {
    transform: scaleY(1);
    transform-origin: top;
}

/* ===== ADD TO CART ANIMATION ===== */
.cart-fly-item {
    position: fixed;
    z-index: 99990;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gold-gradient);
    pointer-events: none;
    animation: cartFly 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes cartFly {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        opacity: 1;
    }

    100% {
        transform: translate(var(--tx), var(--ty)) scale(0.1);
        opacity: 0;
    }
}

/* ===== LOADING SKELETON ===== */
.skeleton {
    background: linear-gradient(90deg, #111 0%, #1a1a1a 50%, #111 100%);
    background-size: 1000px 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius);
}

/* ===== HOVER EFFECTS ===== */
.hover-gold-border {
    transition: border-color var(--transition), box-shadow var(--transition);
}

.hover-gold-border:hover {
    border-color: var(--gold) !important;
    box-shadow: var(--glow);
}

/* ===== PRODUCT CARD 3D ===== */
.product-card-3d {
    transform-style: preserve-3d;
    perspective: 1000px;
}

.product-card-3d:hover {
    animation: float3D 3s ease-in-out infinite;
}

/* ===== NOTIFICATION TOAST ===== */
.toast {
    position: fixed;
    top: 90px;
    right: 20px;
    background: var(--black-card);
    border: 1px solid rgba(201, 168, 76, 0.3);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 99000;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    animation: slideDown 0.4s ease, fadeOut 0.4s ease 2.6s forwards;
    max-width: 320px;
}

.toast-icon {
    color: var(--gold);
    flex-shrink: 0;
}

.toast-msg {
    font-size: 13px;
    line-height: 1.5;
}

.toast-msg strong {
    display: block;
    font-size: 14px;
    margin-bottom: 2px;
}

@keyframes fadeOut {
    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

/* ===== RIPPLE BUTTON EFFECT ===== */
.ripple-container {
    position: relative;
    overflow: hidden;
}

.ripple-wave {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: scale(0);
    animation: ripple 0.6s linear;
    pointer-events: none;
}

/* ===== GLOW EFFECTS ===== */
.glow-gold {
    animation: goldGlow 3s ease-in-out infinite;
}

.text-glow {
    text-shadow: 0 0 20px rgba(201, 168, 76, 0.4);
}

/* ===== SIZE SWATCH ANIMATION ===== */
.size-btn:active {
    transform: scale(0.95);
}

/* ===== SCROLL PROGRESS ===== */
.scroll-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 2px;
    background: var(--gold-gradient);
    z-index: 99999;
    transform-origin: left;
    transform: scaleX(0);
    transition: transform 0.1s linear;
}

/* ===== 3D CARD HOVER ===== */
.tilt-card {
    transform-style: preserve-3d;
    transform: perspective(800px) rotateX(0deg) rotateY(0deg);
    transition: transform 0.1s ease;
}

/* ===== MODAL ===== */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 8500;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    padding: 20px;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-box {
    background: var(--black-card);
    border: 1px solid var(--black-border);
    border-radius: var(--radius-lg);
    max-width: 700px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9);
    transition: transform var(--transition);
    animation: scaleIn 0.4s ease forwards;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    font-size: 18px;
    cursor: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--gold);
}

/* ===== INPUT STYLES ===== */
.form-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    padding: 14px 16px;
    color: var(--white);
    font-size: 14px;
    outline: none;
    font-family: var(--font-sans);
    transition: border-color var(--transition-fast);
}

.form-input:focus {
    border-color: var(--gold);
    background: rgba(201, 168, 76, 0.03);
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.25);
}

.form-label {
    display: block;
    font-size: 11px;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--white-dim);
    margin-bottom: 8px;
}

.form-group {
    margin-bottom: 24px;
}