@keyframes shrink-to-cart {
    0% {
        opacity: 1;
        transform: translate(0, 0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(calc(var(--cart-x) - var(--start-x)), calc(var(--cart-y) - var(--start-y))) scale(0.3);
    }
}

.animate-to-cart {
    position: fixed;
    animation: shrink-to-cart 0.8s ease-out forwards;
    z-index: 1000;
    pointer-events: none;
}

.brand-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
    border-radius: 8px;
    padding: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Hover effect for brand items */
.brand-item:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.brand-item span {
    display: block;
    font-size: 16px;
    font-weight: 500;
    color: #2c3e50;
    text-align: center;
    margin-top: 10px;
    margin-bottom: 5px;
    transition: color 0.3s ease;
}
