.cool-floating-cart {
    position: fixed;
    top: 50%;
    z-index: 9999;
    transform: translateY(-50%);
}

.cool-floating-cart.right {
    right: 0;
}

.cool-floating-cart.left {
    left: 0;
}

.cart-toggle {
    background-color: #333;
    color: white;
    padding: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    position: relative;
}

.cart-toggle.rect {
    border-radius: 5px 0 0 5px;
}

.cart-toggle.round {
    border-radius: 10px 0 0 10px;
}

.cart-toggle.circle {
    border-radius: 50%;
    width: 60px;
    height: 60px;
    padding: 10px;
}

.cool-floating-cart.left .cart-toggle.rect {
    border-radius: 0 5px 5px 0;
}

.cool-floating-cart.left .cart-toggle.round {
    border-radius: 0 10px 10px 0;
}

.cart-count {
    background: #ff0000;
    color: white;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    margin-left: 5px;
    position: absolute;
    top: -5px;
    right: -5px;
}

.cart-toggle.circle .cart-count {
    top: 0;
    right: 0;
}

.cart-content {
    position: absolute;
    top: 0;
    width: 350px;
    background: white;
    box-shadow: 0 0 15px rgba(0,0,0,0.2);
    padding: 20px;
    border-radius: 5px;
    max-height: 80vh;
    overflow-y: auto;
    z-index: 1000;
}

.cool-floating-cart.right .cart-content {
    right: 60px;
    transform: translateX(20px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.cool-floating-cart.left .cart-content {
    left: 60px;
    transform: translateX(-20px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.cart-content.active {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
}

/* Animationen */
.cool-floating-cart.slide .cart-content.active {
    animation: none;
    transform: translateX(0);
}

.cool-floating-cart.fade .cart-content.active {
    animation: fadeIn 0.3s forwards;
}

.cool-floating-cart.bounce .cart-content.active {
    animation: bounceIn 0.5s forwards;
}

.cool-floating-cart.scale .cart-content.active {
    animation: scaleIn 0.3s forwards;
}

.cool-floating-cart.flip .cart-content.active {
    animation: flipIn 0.6s forwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes bounceIn {
    0% { transform: scale(0.3); opacity: 0; }
    50% { transform: scale(1.05); opacity: 1; }
    70% { transform: scale(0.9); }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes scaleIn {
    0% { transform: scale(0); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes flipIn {
    0% { transform: perspective(400px) rotate3d(1, 0, 0, 90deg); opacity: 0; }
    40% { transform: perspective(400px) rotate3d(1, 0, 0, -20deg); }
    60% { transform: perspective(400px) rotate3d(1, 0, 0, 10deg); opacity: 1; }
    80% { transform: perspective(400px) rotate3d(1, 0, 0, -5deg); }
    100% { transform: perspective(400px); opacity: 1; }
}

.close-cart {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #777;
    z-index: 1001;
}

.close-cart:hover {
    color: #333;
}

.cart-items {
    max-height: 300px;
    overflow-y: auto;
    margin: 10px 0;
}

.cart-item {
    display: flex;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.cart-item-image {
    width: 60px;
    margin-right: 15px;
}

.cart-item-image img {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

.cart-item-details {
    flex: 1;
}

.cart-item-name {
    font-weight: bold;
    margin-bottom: 5px;
}

.cart-item-price {
    color: #777;
}

.cart-footer {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-weight: bold;
    margin-bottom: 15px;
    font-size: 18px;
}

.view-cart-btn, .checkout-btn {
    display: block;
    width: 100%;
    padding: 12px;
    text-align: center;
    margin-bottom: 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
}

.view-cart-btn:hover, .checkout-btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.empty-cart-message {
    text-align: center;
    padding: 20px;
    color: #777;
}

/* Shake Animation */
@keyframes shake {
    0%, 100% { transform: translateX(0) translateY(-50%); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px) translateY(-50%); }
    20%, 40%, 60%, 80% { transform: translateX(5px) translateY(-50%); }
}

.cart-toggle.shake {
    animation: shake 0.5s ease-in-out;
}

/* Responsive Design */
@media (max-width: 768px) {
    .cart-content {
        width: 300px;
        right: 50px;
    }
    
    .cool-floating-cart.left .cart-content {
        left: 50px;
    }
}

@media (max-width: 480px) {
    .cart-content {
        width: 280px;
        right: 10px;
    }
    
    .cool-floating-cart.left .cart-content {
        left: 10px;
    }
    
    .cart-toggle.circle {
        width: 50px;
        height: 50px;
    }
}