/* Universal Add to Cart Button Styles */
.add-to-cart,
.add-to-cart-btn {
    background-color: transparent;
    color: #e91e63;
    border: 2px solid #e91e63;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    min-width: 120px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
}

/* Hover effect */
.add-to-cart:hover,
.add-to-cart-btn:hover {
    background-color: #e91e63;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(233, 30, 99, 0.3);
}

/* Active/Clicked state - this stays after clicking */
.add-to-cart.added,
.add-to-cart-btn.added {
    background-color: #e91e63;
    color: white;
    border-color: #e91e63;
}

/* Keep the active state even when not hovering */
.add-to-cart.added:hover,
.add-to-cart-btn.added:hover {
    background-color: #d81b60;
    /* Slightly darker pink on hover when active */
    border-color: #d81b60;
    transform: translateY(-1px);
}

/* Focus state for accessibility */
.add-to-cart:focus,
.add-to-cart-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(233, 30, 99, 0.2);
}

/* Animation for the click effect */
.add-to-cart.clicked,
.add-to-cart-btn.clicked {
    animation: buttonPulse 0.3s ease;
}

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

    50% {
        transform: scale(0.95);
    }

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

/* Responsive adjustments */
@media (max-width: 768px) {

    .add-to-cart,
    .add-to-cart-btn {
        padding: 10px 20px;
        font-size: 13px;
        min-width: 100px;
    }
}

@media (max-width: 480px) {

    .add-to-cart,
    .add-to-cart-btn {
        padding: 8px 16px;
        font-size: 12px;
        min-width: 90px;
    }
}