.site-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: all 0.3s ease;
}

.loader-spinner {
    width: 60px;
    height: 60px;
    position: relative;
}

.loader-spinner:before,
.loader-spinner:after {
    content: '';
    position: absolute;
    border-radius: 50%;
    animation-duration: 1.5s;
    animation-iteration-count: infinite;
    animation-timing-function: ease-in-out;
}

.loader-spinner:before {
    width: 100%;
    height: 100%;
    background-image: linear-gradient(to right, #5F4ECB 0%, #93003C 100%);
    animation-name: pulse-shadow;
    box-shadow: 0 0 20px 0 rgba(95, 78, 203, 0.4);
}

.loader-spinner:after {
    width: 82%;
    height: 82%;
    background-color: white;
    top: 9%;
    left: 9%;
    animation-name: pulse-core;
}

.loader-text {
    margin-top: 20px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: #5F4ECB;
    letter-spacing: 1px;
    font-size: 16px;
}

@keyframes pulse-shadow {
    0%, 100% { transform: scale(0.8); opacity: 0.8; }
    50% { transform: scale(1.2); opacity: 1; }
}

@keyframes pulse-core {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(0.9); }
}

.add_to_cart_button {
    position: relative;
}

.add_to_cart_button::after {
    content: '';
    position: absolute;
    width: 28px;
    height: 28px;
    border: 4px solid rgba(255, 255, 255, 0.2);
    border-top: 4px solid currentColor;
    border-radius: 50%;
    right: 12px;
    top: calc(50% - 14px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.add_to_cart_button.loading::after {
    opacity: 1;
    animation: spin 0.6s linear infinite;
}

.add_to_cart_button.loading {
    padding-right: 55px !important;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}