/* Cart Icon Styles */
.cart-count {
    background: #ff4444;
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 12px;
    font-weight: bold;
    position: absolute;
    top: -8px;
    right: -8px;
    min-width: 18px;
    text-align: center;
    line-height: 14px;
}

.icons-cart {
    position: relative;
    display: inline-block;
}

/* Cart Notification */
.cart-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #28a745;
    color: white;
    padding: 15px 20px;
    border-radius: 5px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 9999;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
}

.cart-notification.show {
    opacity: 1;
    transform: translateX(0);
}

.cart-notification.error {
    background: #dc3545;
}

/* Cart Dropdown Improvements */
.cart-popup {
    min-width: 350px;
    max-height: 400px;
    overflow-y: auto;
}

.mini-cart-item {
    padding: 10px;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    gap: 10px;
}

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

.mini-cart-item .product-image img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 4px;
}

.mini-cart-item .product-name {
    font-weight: 500;
    color: #333;
    text-decoration: none;
    flex: 1;
}

.mini-cart-item .quantity {
    font-size: 12px;
    color: #666;
}

.mini-cart-item .price {
    font-weight: 600;
    color: #333;
}

.mini-cart-item .remove {
    color: #dc3545;
    font-size: 16px;
    text-decoration: none;
    padding: 5px;
    border-radius: 3px;
    transition: background 0.2s;
}

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

/* Mobile Cart Styles */
@media (max-width: 768px) {
    .cart-popup {
        min-width: 300px;
    }
    
    .cart-notification {
        right: 10px;
        left: 10px;
        width: auto;
    }
}

/* Cart Icon Animation */
.icons-cart {
    transition: transform 0.2s ease;
}

.icons-cart:hover {
    transform: scale(1.1);
}

.cart-count.updated {
    animation: bounce 0.5s ease;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Fixed Cart Icon */
.fixed-cart-icon {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.fixed-cart-icon:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

.fixed-cart-icon .cart-link {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: #333;
    font-size: 24px;
}

.fixed-cart-icon .cart-link:hover {
    color: #0066cc;
    text-decoration: none;
}

.fixed-cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff4444;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 11px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* Hide fixed cart on mobile to avoid conflicts */
@media (max-width: 768px) {
    .fixed-cart-icon {
        display: none;
    }
}