.floating-cart {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 40;
    display: flex;
    align-items: center;
    gap: 10px;
    backdrop-filter: blur(10px);
}

.floating-cart-main {
    flex: 1;
    min-width: 0;
    height: 56px;
    border: 1px solid rgba(34,38,54,.9);
    background: linear-gradient(180deg, rgba(17,19,26,.96), rgba(15,17,23,.92));
    color: var(--text);
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 16px;
    box-shadow: 0 18px 46px rgba(0,0,0,.32);
}

.floating-cart-label {
    font-weight: 800;
}

.floating-cart-count {
    min-width: 24px;
    height: 24px;
    padding: 0 8px;
    border-radius: 999px;
    background: rgba(110,231,255,.14);
    border: 1px solid rgba(110,231,255,.22);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
    color: var(--accent);
}

.floating-cart-total {
    margin-left: auto;
    font-weight: 800;
    white-space: nowrap;
}

.floating-cart-buy {
    height: 56px;
    padding: 0 18px;
    border-radius: 16px;
    border: 1px solid rgba(110,231,255,.28);
    background: linear-gradient(90deg, rgba(110,231,255,.22), rgba(167,139,250,.16));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    box-shadow: 0 18px 46px rgba(0,0,0,.32);
    white-space: nowrap;
}

.cart-sheet {
    position: fixed;
    inset: 0;
    z-index: 50;
}

.cart-sheet-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.62);
    backdrop-filter: blur(4px);
}

.cart-sheet-body {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    max-height: min(72vh, 680px);
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    border: 1px solid rgba(34,38,54,.9);
    background: linear-gradient(180deg, rgba(17,19,26,.98), rgba(15,17,23,.96));
    box-shadow: 0 -14px 40px rgba(0,0,0,.34);
    padding: 16px;
    overflow: auto;
}

.cart-sheet-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.cart-sheet-title {
    align-items: center;
    font-weight: 900;
    font-size: 18px;
}

.cart-sheet-close {
    width: 38px;
    height: 38px;
    border: 1px solid rgba(34,38,54,.9);
    background: rgba(11,12,16,.76);
    color: var(--text);
    border-radius: 999px;
    font-size: 24px;
    line-height: 1;
}

.cart-sheet-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cart-item {
    border: 1px solid rgba(34,38,54,.9);
    background: rgba(17,19,26,.58);
    border-radius: 14px;
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.cart-item-info {
    flex: 1;
    min-width: 0;
}

.cart-item-name {
    font-weight: 800;
    line-height: 1.3;
    word-break: break-word;
}

.cart-item-meta {
    margin-top: 6px;
    font-size: 12px;
    color: var(--muted);
}

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

.cart-qty-btn {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    border: 1px solid rgba(34,38,54,.9);
    background: rgba(11,12,16,.76);
    color: var(--text);
    font-size: 18px;
    font-weight: 800;
}

.cart-qty-btn:disabled {
    color: var(--muted);
    background: rgba(34,38,54,.42);
}

.cart-qty-input {
    width: 52px;
    height: 34px;
    border-radius: 10px;
    border: 1px solid rgba(34,38,54,.9);
    background: rgba(15,17,23,.9);
    color: var(--text);
    text-align: center;
    font-weight: 800;
    outline: none;
}

.inline-cart-btn {
    width: 100%;
    height: 52px;
    border-radius: 14px;
    border: 1px solid rgba(110,231,255,.28);
    background: linear-gradient(90deg, rgba(110,231,255,.22), rgba(167,139,250,.16));
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    letter-spacing: .4px;
    box-shadow: 0 14px 36px rgba(0,0,0,.24);
}

.inline-cart-btn:disabled {
    background: var(--line);
    color: var(--muted);
    border-color: var(--line);
    box-shadow: none;
}

.cart-sheet-reset {
    height: 38px;
    padding: 0 14px;
    border: 1px solid rgba(34,38,54,.9);
    background: rgba(11,12,16,.76);
    color: var(--text);
    border-radius: 999px;
    font-weight: 800;
}

@media (max-width: 480px) {
    .floating-cart {
        bottom: 12px;
        left: 12px;
        right: 12px;
    }

    .floating-cart-main,
    .floating-cart-buy {
        height: 52px;
    }

    .floating-cart-buy {
        padding: 0 14px;
    }
}