/* Shopping Cart Styles */

/* Cart icon styles */
#cartButton {
    position: relative;
    transition: all 0.2s ease;
}

#cartButton:hover {
    background-color: #dbeafe;
}

#cartCount {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: #ef4444;
    color: white;
    font-size: 0.75rem;
    font-weight: bold;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: white;
    border-radius: 0.5rem;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: modal-appear 0.3s ease-out;
}

@keyframes modal-appear {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Cart item styles */
.cart-item {
    transition: all 0.3s ease;
    padding: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.cart-item:hover {
    background-color: #f8fafc;
}

.remove-from-cart {
    cursor: pointer;
    transition: color 0.2s ease;
    background: none;
    border: none;
    padding: 0.5rem;
}

.remove-from-cart:hover {
    color: #dc2626;
}

/* Checkout button styles */
#checkoutBtn {
    transition: all 0.2s ease;
}

#checkoutBtn:disabled {
    background-color: #9ca3af;
    cursor: not-allowed;
}

/* Payment form styles */
#card-element {
    padding: 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    background-color: white;
}

#payment-message {
    padding: 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
}

#payment-message.success {
    background-color: #dcfce7;
    color: #166534;
}

#payment-message.error {
    background-color: #fee2e2;
    color: #991b1b;
}

/* Animation for loading spinner */
.loading-spinner {
    animation: spin 1s linear infinite;
}

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

/* Notification styling */
.notification {
    position: fixed;
    top: 1rem;
    right: 1rem;
    padding: 1rem;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    transition: opacity 0.3s ease;
}

/* Watermark styles */
.watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-30deg);
    opacity: 0.4;
    pointer-events: none;
    max-width: 80%;
    max-height: 80%;
    z-index: 5;
}