/**
 * Shopping Cart Styles
 */

/* Cart Icon in Header */
.site-cart {
    position: relative;
    margin-left: 20px;
}

.cart-link {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: #f4f5ff;
    border-radius: 50%;
    transition: all 0.3s ease;
    color: #673de6;
}

.cart-link:hover {
    background: #673de6;
    color: white;
    transform: scale(1.05);
}

.cart-count {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #f44336;
    color: white;
    font-size: 12px;
    font-weight: 700;
    min-width: 20px;
    height: 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    animation: cartBounce 0.3s ease;
}

@keyframes cartBounce {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
}

/* Add to Cart Button */
.btn-add-to-cart {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    background: #673de6;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-add-to-cart:hover {
    background: #5025d1;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(103, 61, 230, 0.3);
}

.btn-add-to-cart:active {
    transform: translateY(0);
}

.btn-add-to-cart:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.btn-add-to-cart svg {
    width: 20px;
    height: 20px;
}

/* Success Message */
.cart-success-message {
    position: fixed;
    top: 100px;
    right: 32px;
    background: #4caf50;
    color: white;
    padding: 16px 24px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    animation: slideIn 0.3s ease, slideOut 0.3s ease 2.7s;
    display: flex;
    align-items: center;
    gap: 12px;
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

/* Product Card Add to Cart */
.product-card .btn-add-to-cart {
    width: 100%;
    margin-top: auto;
}

/* Responsive */
@media (max-width: 768px) {
    .site-cart {
        margin-left: 12px;
    }
    
    .cart-link {
        width: 44px;
        height: 44px;
    }
    
    .cart-success-message {
        right: 16px;
        top: 80px;
        font-size: 14px;
    }
}
