/* Floating "View cart" capsule pill button */
.vk-floating-cart {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(0);
    z-index: 9999;
    background: #000000;
    border-radius: 9999px;
    padding: 6px 8px 6px 6px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none !important;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.4), 0 2px 8px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.12);
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease, visibility 0.3s ease, box-shadow 0.25s ease;
    opacity: 1;
    visibility: visible;
    user-select: none;
}

.vk-floating-cart--hidden {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transform: translateX(-50%) translateY(28px) scale(0.9) !important;
}

.vk-floating-cart:hover {
    transform: translateX(-50%) translateY(-3px);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.5), 0 4px 12px rgba(0, 0, 0, 0.25);
}

.vk-floating-cart:active {
    transform: translateX(-50%) translateY(0) scale(0.98);
}

.vk-floating-cart__icon-box {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

.vk-floating-cart__bag-svg {
    display: block;
}

.vk-floating-cart__info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    line-height: 1.15;
    padding: 0 2px;
}

.vk-floating-cart__title {
    font-size: 14.5px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.2px;
    white-space: nowrap;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.vk-floating-cart__count {
    font-size: 11.5px;
    font-weight: 400;
    color: #cbd5e1;
    margin-top: 2px;
    white-space: nowrap;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.vk-floating-cart__arrow {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #2a2a2a;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-left: 2px;
    transition: background 0.2s ease, transform 0.2s ease;
}

.vk-floating-cart:hover .vk-floating-cart__arrow {
    background: #3d3d3d;
    transform: translateX(2px);
}

@keyframes vkCartPop {
    0% { transform: translateX(-50%) scale(0.92); }
    50% { transform: translateX(-50%) scale(1.06); }
    100% { transform: translateX(-50%) scale(1); }
}

.vk-floating-cart--pop {
    animation: vkCartPop 0.35s ease;
}

@media (max-width: 991.98px) {
    .vk-floating-cart {
        bottom: calc(70px + env(safe-area-inset-bottom, 0px));
    }
}

@media (max-width: 767.98px) {
    .vk-floating-cart {
        bottom: calc(70px + env(safe-area-inset-bottom, 0px));
        padding: 5px 7px 5px 5px;
        gap: 10px;
    }

    .vk-floating-cart__icon-box {
        width: 36px;
        height: 36px;
    }

    .vk-floating-cart__title {
        font-size: 14px;
    }

    .vk-floating-cart__count {
        font-size: 11px;
    }

    .vk-floating-cart__arrow {
        width: 30px;
        height: 30px;
    }
}
