/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    max-width: 400px;
}

.toast {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    margin-bottom: 10px;
    overflow: hidden;
    transform: translateX(100%);
    transition: all 0.3s ease;
    border-left: 4px solid #ddd;
}

.toast.toast-show {
    transform: translateX(0);
}

.toast.toast-hide {
    transform: translateX(100%);
    opacity: 0;
}

.toast-success {
    border-left-color: #28a745;
}

.toast-error {
    border-left-color: #dc3545;
}

.toast-warning {
    border-left-color: #ffc107;
}

.toast-info {
    border-left-color: #17a2b8;
}

.toast-content {
    display: flex;
    align-items: center;
    padding: 15px;
    gap: 10px;
}

.toast-content i {
    font-size: 18px;
    min-width: 20px;
}

.toast-success .toast-content i {
    color: #28a745;
}

.toast-error .toast-content i {
    color: #dc3545;
}

.toast-warning .toast-content i {
    color: #ffc107;
}

.toast-info .toast-content i {
    color: #17a2b8;
}

.toast-content span {
    flex: 1;
    font-size: 14px;
    color: #333;
}

/* Loading states */
.btn-loading {
    position: relative;
    pointer-events: none;
}

.btn-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border: 2px solid transparent;
    border-top: 2px solid #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Cart item animations */
.cart-item-row {
    transition: all 0.3s ease;
}

.cart-item-row.removing {
    opacity: 0;
    transform: translateX(-100%);
}

/* Quantity selector improvements */
.quantity-selector {
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
    display: inline-flex;
}

.quantity-selector button {
    background: #f8f9fa;
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    transition: background 0.2s;
}

.quantity-selector button:hover {
    background: #e9ecef;
}

.quantity-selector input {
    border: none;
    text-align: center;
    width: 50px;
    padding: 8px;
    font-size: 14px;
}

/* Product card hover effects */
.product-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.product-btn {
    transition: all 0.3s ease;
}

.product-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Review form improvements */
.review-form {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
}

.rating-selector {
    display: flex;
    gap: 5px;
    margin-bottom: 15px;
}

.rating-selector .star {
    font-size: 24px;
    color: #ddd;
    cursor: pointer;
    transition: color 0.2s;
}

.rating-selector .star:hover,
.rating-selector .star.active {
    color: #ffc107;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .toast-container {
        left: 10px;
        right: 10px;
        max-width: none;
    }
    
    .toast {
        margin-bottom: 8px;
    }
    
    .toast-content {
        padding: 12px;
    }
    
    .toast-content span {
        font-size: 13px;
    }
}
