/**
 * Shop Listing Styles
 * Styles for product listing add to cart functionality
 */

.info_button {
    margin-top: 1rem;
    display: flex;
    gap: 0.5rem;
}

/* .info_button .add-to-cart-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-width: 120px;
    transition: all 0.3s ease;
} */

.info_button .add-to-cart-btn:disabled, .info_button .add-to-cart-btn.disabled {
    cursor: not-allowed;
    opacity: 0.6;
    pointer-events: none;
}

.info_button .add-to-cart-btn .btn-text {
    font-weight: 500;
}

.info_button .add-to-cart-btn .spinner-border {
    width: 1rem;
    height: 1rem;
    border-width: 0.15em;
}

/* .info_button .btn-light {
    flex: 1;
    text-decoration: none;
    transition: all 0.3s ease;
}

.info_button .btn-light:hover {
    background-color: #f8f9fa;
    transform: translateY(-2px);
} */

/* Shop listing alert styles */
.shop-listing-alert {
    position: sticky;
    top: 1rem;
    z-index: 1000;
    margin-bottom: 1rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.shop-listing-alert .btn-close {
    padding: 0.5rem 0.75rem;
}

/* Responsive styles */
@media (max-width: 767.98px) {
    .info_button {
        flex-direction: column;
    }

    .info_button .add-to-cart-btn,
    .info_button .btn-light {
        width: 100%;
    }
}

/* Check icon animation */
.add-to-cart-btn .btn-check-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.add-to-cart-btn .btn-check-icon svg {
    animation: checkPop 0.3s ease-out forwards;
}

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

    60% {
        transform: scale(1.3);
        opacity: 1;
    }

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