/**
 * Storefront Configurable "Order Now / অর্ডার করুন" Button Styles & Animations
 */

.btn-order-now {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.25;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    border: none;
    border-radius: var(--order-btn-radius, 8px);
    background: var(--order-btn-bg, #4f46e5);
    color: var(--order-btn-color, #ffffff);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
    transition: all 0.25s ease;
    user-select: none;
    box-sizing: border-box;
}

/* Hover Animations */
.btn-order-now--hover-lift:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.btn-order-now--hover-scale:hover {
    transform: scale(1.04);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}

.btn-order-now--hover-glow:hover {
    box-shadow: 0 0 16px var(--order-btn-bg, #4f46e5);
}

.btn-order-now--hover-pulse:hover {
    animation: orderBtnPulse 0.8s infinite alternate ease-in-out;
}

.btn-order-now--hover-shake:hover {
    animation: orderBtnShake 0.4s ease-in-out;
}

/* Idle Animations */
.btn-order-now--idle-pulse {
    animation: orderBtnPulse 1.8s infinite alternate ease-in-out;
}

.btn-order-now--idle-shake {
    animation: orderBtnIntermittentShake 4s infinite ease-in-out;
}

.btn-order-now--idle-glow {
    animation: orderBtnGlow 2s infinite alternate ease-in-out;
}

/* Keyframes */
@keyframes orderBtnPulse {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.035);
        box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
    }
}

@keyframes orderBtnShake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-3px); }
    40%, 80% { transform: translateX(3px); }
}

@keyframes orderBtnIntermittentShake {
    0%, 85%, 100% { transform: translateX(0); }
    88%, 94% { transform: translateX(-3px) rotate(-1deg); }
    91%, 97% { transform: translateX(3px) rotate(1deg); }
}

@keyframes orderBtnGlow {
    0% {
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
    }
    100% {
        box-shadow: 0 0 14px var(--order-btn-bg, #4f46e5);
    }
}
