/* Cart Enhancement Styles */

/* Cart notification styles */
.cart-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    min-width: 300px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Cart count badge improvements */
.count-box {
    background: #FF5722 !important;
    color: white !important;
    border-radius: 50% !important;
    min-width: 20px !important;
    height: 20px !important;
    font-size: 12px !important;
    font-weight: bold !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: absolute !important;
    top: -8px !important;
    right: -8px !important;
    animation: pulse 2s infinite !important;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Mini cart improvements */
.tf-mini-cart-item {
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.3s ease;
}

.tf-mini-cart-item:hover {
    background-color: #f8f9fa;
}

.tf-mini-cart-item:last-child {
    border-bottom: none;
}

.tf-mini-cart-image img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
}

.tf-mini-cart-info {
    flex: 1;
    margin-left: 15px;
}

.tf-mini-cart-info .title {
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
    display: block;
    text-decoration: none;
}

.tf-mini-cart-info .price {
    color: #4CAF50;
    font-weight: 600;
    margin-bottom: 10px;
}

.wg-quantity {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f8f9fa;
    border-radius: 20px;
    padding: 4px;
    width: fit-content;
}

.btn-quantity {
    width: 30px;
    height: 30px;
    border: none;
    background: #4CAF50;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-quantity:hover {
    background: #388E3C;
    transform: scale(1.1);
}

.quantity-input {
    width: 40px;
    text-align: center;
    border: none;
    background: transparent;
    font-weight: 600;
}

.tf-mini-cart-remove {
    background: #dc3545;
    border: none;
    color: #ffffff;
    cursor: pointer;
    text-decoration: none;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.tf-mini-cart-remove:hover {
    background: #c82333;
    color: white;
}

.item-total {
    font-weight: 600;
    color: #333;
    margin-top: 8px;
    font-size: 14px;
}

/* Empty cart message */
.empty-cart-message {
    padding: 40px 20px;
    text-align: center;
    color: #666;
}

.empty-cart-message i {
    font-size: 3rem;
    color: #ddd;
    margin-bottom: 15px;
}

/* Cart total improvements */
.tf-totals-total-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: #4CAF50;
}

/* Button improvements */
.checkout-btn, .viewcart-btn {
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

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

/* Add to cart button improvements */
.add-to-cart-btn {
    transition: all 0.3s ease;
    border-radius: 8px;
    font-weight: 600;
}

.add-to-cart-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

/* Responsive improvements */
@media (max-width: 768px) {
    .cart-notification {
        right: 10px;
        left: 10px;
        min-width: auto;
    }
    
    .tf-mini-cart-item {
        padding: 10px;
    }
    
    .tf-mini-cart-image img {
        width: 50px;
        height: 50px;
    }
    
    .tf-mini-cart-info {
        margin-left: 10px;
    }
}

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

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

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

/* Success/Error states */
.alert-success {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.alert-danger {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

.alert-warning {
    background-color: #fff3cd;
    border-color: #ffeaa7;
    color: #856404;
}

.alert-info {
    background-color: #d1ecf1;
    border-color: #bee5eb;
    color: #0c5460;
}