/* Attached Side Cart Button Redesign */
.floating-cart-btn {
    position: fixed;
    right: 0;
    top: 30%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, #0d6efd 0%, #0043a8 100%);
    color: white;
    padding: 12px 18px 12px 22px;
    border-radius: 50px 0 0 50px;
    box-shadow: -5px 5px 25px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    z-index: 1050;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-right: none;
}

.floating-cart-btn:hover {
    /* transform: translateY(-50%) translateX(-8px); */
    /* padding-left: 28px; */
    box-shadow: -8px 8px 30px rgba(13, 110, 253, 0.4);
    background: linear-gradient(135deg, #0b5ed7 0%, #003a8c 100%);
}

.floating-cart-btn .cart-icon-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.floating-cart-btn i {
    font-size: 22px;
}

.floating-cart-btn .cart-count {
    background: #ffc107;
    color: #000;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 800;
    position: absolute;
    top: -10px;
    right: -10px;
    border: 2px solid #0d6efd;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    animation: cartPulse 2s infinite;
}

.floating-cart-btn .cart-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.floating-cart-btn .cart-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
    font-weight: 700;
    margin-bottom: -2px;
}

.floating-cart-btn .cart-amount {
    font-size: 15px;
    font-weight: 800;
}

@keyframes cartPulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

@media (max-width: 768px) {
    .floating-cart-btn {
        /* right: 20px;
        bottom: 20px; */
        padding: 8px 16px;
        top: 15%;
    }
}

/* Side Cart Drawer */
.cart-drawer {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background: white;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    z-index: 1100;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
}

@media (max-width: 400px) {
    .cart-drawer {
        width: 100%;
        right: -100%;
    }
}

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

.cart-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8f9fa;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

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

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

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

.cart-item-info h6 {
    margin: 0;
    font-weight: bold;
    font-size: 14px;
}

.cart-item-info .price {
    color: #0d6efd;
    font-weight: bold;
    font-size: 14px;
}

.cart-qty {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
}

.cart-qty button {
    border: 1px solid #ddd;
    background: white;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    cursor: pointer;
}

.cart-qty button:hover {
    background: #f0f0f0;
}

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

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

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

.cart-overlay.show {
    display: block;
}

.whatsapp-btn {
    background: #25d366;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 50px;
    width: 100%;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.whatsapp-btn:hover {
    background: #128c7e;
    color: white;
}