/* Custom styles to complement Tailwind */
.transition {
    transition: all 0.3s ease;
}

/* Product image gallery */
.product-image-thumb {
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.product-image-thumb:hover,
.product-image-thumb.active {
    opacity: 1;
}

/* Cart item animations */
.cart-item {
    transition: transform 0.3s ease;
}

.cart-item:hover {
    transform: translateX(5px);
}

/* Form focus styles */
input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

/* Loading spinner */
.spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #4f46e5;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Toast notifications */
.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: white;
    padding: 1rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}