.cart-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: min(380px, 100vw);
    height: 100%;
    transform: translateX(100%);
    background:
        radial-gradient(circle at top left, rgba(255, 214, 143, 0.1), transparent 34%),
        radial-gradient(circle at bottom right, rgba(176, 120, 255, 0.14), transparent 36%),
        rgba(11, 8, 20, 0.82);
    backdrop-filter: blur(28px);
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: -24px 0 60px rgba(0, 0, 0, 0.4);
    transition: transform 0.32s cubic-bezier(.25,.8,.25,1);
    z-index: 999;
    padding: 18px;
    display: flex;
    flex-direction: column;
}

.cart-panel.open {
    transform: translateX(0);
}

.cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(4, 2, 10, 0.52);
    backdrop-filter: blur(10px);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.cart-overlay.show {
    opacity: 1;
    visibility: visible;
}

.cart-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.cart-kicker {
    color: #ffd58b;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 10px;
    font-weight: 700;
}

.cart-title {
    margin-top: 8px;
    color: #fff6e8;
    font-size: 24px;
    font-weight: 800;
}

.cart-close {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.05);
    color: #f5f2ff;
    font-size: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.cart-items-list {
    flex: 1;
    overflow-y: auto;
    padding: 16px 2px 2px;
    display: grid;
    gap: 10px;
    align-content: start;
}

.cart-item {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 12px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
    min-height: 96px;
}

.cart-item-thumb {
    width: 72px;
    height: 72px;
    border-radius: 14px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
}

.cart-item-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cart-item-main {
    min-width: 0;
}

.cart-item-name {
    color: #fff;
    font-size: 14px;
    line-height: 1.4;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cart-item-variant {
    margin-top: 4px;
    color: #cdbfe8;
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cart-item-price {
    margin-top: 6px;
    color: #ffd58b;
    font-size: 14px;
    font-weight: 700;
}

.qty-control {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    align-self: center;
    padding: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.qty-value {
    min-width: 16px;
    text-align: center;
    color: #fff7eb;
    font-weight: 700;
}

.qty-btn {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    border: 1px solid rgba(255, 216, 148, 0.24);
    background: rgba(255, 216, 148, 0.12);
    color: #ffd58b;
    font-size: 18px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.cart-footer {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: grid;
    gap: 12px;
}

.cart-manager-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    border-radius: 16px;
    border: 1px solid rgba(255, 225, 176, 0.18);
    background: rgba(255, 255, 255, 0.04);
    color: #f6ecdd;
    text-decoration: none;
    font-weight: 700;
}

.cart-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    color: #cdbfe8;
    font-size: 14px;
}

.cart-total strong {
    color: #ffd58b;
    font-size: 24px;
}

.checkout-btn {
    width: 100%;
    min-height: 56px;
    border-radius: 18px;
    background: linear-gradient(180deg, #f1d29c, #c49342);
    color: #1a1207;
    border: none;
    font-weight: 800;
    font-size: 15px;
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.28);
    transition: transform 0.18s ease, opacity 0.18s ease;
}

.checkout-btn:hover {
    transform: translateY(-1px);
}

.cart-empty {
    padding: 36px 12px;
    text-align: center;
    color: #c9bbe8;
    font-size: 15px;
    border: 1px dashed rgba(255,255,255,0.12);
    border-radius: 22px;
    background: rgba(255,255,255,0.03);
}
