/* ===== SIDE CART ===== */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    z-index: 1050;
    transition: right 0.3s ease;
}

.cart-sidebar.open {
    right: 0;
}

.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1049;
    display: none;
}

.cart-sidebar.open .cart-overlay {
    display: block;
}

.cart-panel {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: white;
    box-shadow: -5px 0 25px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
}

.cart-body {
    flex: 1;
    overflow: hidden;
}

/* ===== FLOATING CART BUTTON ===== */
.cart-floating-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #5FE3C3 0%, #4AC9B1 100%);
    color: white;
    border: none;
    box-shadow: 0 5px 20px rgba(95, 227, 195, 0.3);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.cart-floating-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(95, 227, 195, 0.4);
}

.cart-floating-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #FF6B81;
    color: white;
    font-size: 0.7rem;
    /*padding: 0.2em 0.5em;*/
    border-radius: 50%;
    border: 1px solid white;
    min-width: 20px;
    text-align: center;
}
.cart-items {
    transition: all 0.2s ease;
}
.cart-item:hover {
    background-color: #f8f9fa;
}

.btn-quantity {
    transition: all 0.2s ease;
}

.btn-quantity:hover {
    border-color: #5FE3C3 !important;
    color: #5FE3C3 !important;
}

.btn-remove:hover {
    background-color: #dc3545 !important;
    color: white !important;
}

/* ===== CART NOTIFICATION ===== */
.cart-notification {
    animation: slideInRight 0.3s ease;
}

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

/* ===== ADD TO CART BUTTON ANIMATION ===== */
@keyframes addToCart {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}
/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .cart-sidebar {
        width: 100%;
        right: -100%;
    }

    .cart-floating-btn {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
}

/* Запобігання скролу при відкритому cart */
body.cart-open {
    overflow: hidden;
}
.cart-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.cart-img {
    width: 55px;
    height: 55px;
    object-fit: cover;
    border-radius: 8px;
}

.cart-info {
    flex: 1;
}

.cart-title {
    font-weight: 600;
    font-size: 14px;
}

.cart-price {
    font-size: 13px;
    color: #666;
}

.qty-box {
    display: flex;
    align-items: center;
    gap: 5px;
}

.qty-box button {
    width: 28px;
    height: 28px;
    border: none;
    background: #f1f1f1;
    border-radius: 6px;
    font-weight: bold;
}

.qty-box input {
    width: 35px;
    text-align: center;
    border: none;
    background: transparent;
    font-weight: 600;
}

.cart-remove {
    cursor: pointer;
    color: #999;
    font-size: 18px;
}
.cart-flash {
    position: fixed;
    bottom: 100px;
    right: 20px;
    color: #fff;
    padding: 12px 20px;
    border-radius: 12px;
    opacity: 0;
    transform: translateY(20px);
    transition: .3s ease;
    z-index: 9999;
}

.cart-flash.show {
    opacity: 1;
    transform: translateY(0);
}
