/* ==========================================================================
   Cart — floating card panel over stadium (same language as .atelier-item)
   ========================================================================== */

.cart-overlay {
    position: fixed;
    inset: 0;
    z-index: 1300;
    pointer-events: none;
    visibility: hidden;
    opacity: 0;
    transition:
        opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
        visibility 0.5s;
}

.cart-overlay.is-active {
    pointer-events: auto;
    visibility: visible;
    opacity: 1;
}

.glass-sidebar.cart-broadcast-panel {
    position: absolute;
    top: 24px;
    bottom: 24px;
    right: 24px;
    left: auto;
    width: 100%;
    max-width: 400px;
    height: calc(100vh - 48px);
    height: calc(100dvh - 48px);
    z-index: 1;
    background:
        linear-gradient(165deg, rgba(255, 77, 0, 0.06) 0%, transparent 38%),
        linear-gradient(180deg, rgba(12, 20, 34, 0.96) 0%, rgba(4, 8, 14, 0.97) 100%);
    border: 1px solid rgba(34, 232, 144, 0.18);
    border-left: 3px solid var(--sf-primary, #ff4d00);
    border-radius: var(--radius-overlay, 12px);
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, 0.35),
        0 20px 50px rgba(0, 0, 0, 0.5),
        0 0 24px rgba(255, 77, 0, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-sizing: border-box;
    padding: 32px 28px 28px;
    min-height: 0;
    transform: translate3d(calc(100% + 48px), 0, 0);
    visibility: visible;
    opacity: 1;
    will-change: transform;
    transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: auto;
    overflow: hidden;
}

.glass-sidebar.cart-broadcast-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background: radial-gradient(ellipse 80% 36% at 50% 0%, rgba(255, 120, 40, 0.12) 0%, transparent 65%);
    z-index: 0;
}

.glass-sidebar.cart-broadcast-panel > * {
    position: relative;
    z-index: 1;
}

body.is-low-power .glass-sidebar.cart-broadcast-panel {
    will-change: auto;
    transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

.cart-overlay.is-active .glass-sidebar.cart-broadcast-panel,
.glass-sidebar.cart-broadcast-panel.is-active {
    transform: translate3d(0, 0, 0);
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(34, 232, 144, 0.14);
    padding-bottom: 18px;
    flex-shrink: 0;
}

.cart-header h3 {
    font-family: "Sora", sans-serif;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.04em;
    margin: 0;
    color: var(--sf-chrome, #eef4ff);
}

.cart-close-btn {
    background: none;
    border: none;
    font-family: "Sora", sans-serif;
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    color: var(--sf-muted, #9aa8bc);
    font-weight: 700;
    transition: color 0.25s ease;
    padding: 6px 0;
}

.cart-close-btn:hover {
    color: var(--sf-primary-bright, #ffb000);
}

.cart-items-list {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding: 22px 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cart-empty-message {
    font-family: "Sora", sans-serif;
    font-size: 13px;
    letter-spacing: 0.02em;
    opacity: 0.65;
    text-align: center;
    margin: 40px 8px 0;
    font-weight: 600;
    color: var(--sf-muted, #9aa8bc);
    line-height: 1.5;
}

.cart-item-card {
    display: grid;
    grid-template-columns: 56px 1fr auto;
    gap: 12px;
    align-items: center;
    border: 1px solid rgba(34, 232, 144, 0.14);
    border-left: 2px solid var(--sf-primary, #ff4d00);
    border-radius: var(--radius-card, 8px);
    background: rgba(8, 14, 24, 0.55);
    padding: 12px;
}

.cart-item-thumb {
    width: 56px;
    height: 56px;
    border-radius: 6px;
    object-fit: cover;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(34, 232, 144, 0.16);
    flex-shrink: 0;
}

.cart-item-body {
    min-width: 0;
}

.cart-item-title {
    font-family: "Sora", sans-serif;
    font-size: 12px;
    letter-spacing: 0.02em;
    margin: 0 0 4px 0;
    color: var(--sf-chrome, #eef4ff);
    font-weight: 700;
    line-height: 1.3;
}

.cart-item-meta {
    font-size: 11px;
    letter-spacing: 0.02em;
    opacity: 0.7;
    display: block;
    font-weight: 600;
    line-height: 1.4;
    color: var(--sf-muted, #9aa8bc);
}

.cart-item-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}

.cart-item-price {
    font-family: var(--font-display, "Bebas Neue", sans-serif);
    font-size: 1.1rem;
    font-weight: 400;
    letter-spacing: 0.03em;
    color: var(--sf-primary-bright, #ffb000);
}

.cart-item-remove {
    background: none;
    border: none;
    cursor: pointer;
    font-family: "Sora", sans-serif;
    font-size: 10px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(238, 244, 255, 0.4);
    transition: color 0.25s;
    padding: 4px;
    font-weight: 700;
}

.cart-item-remove:hover {
    color: #ff6b6b;
}

.cart-items-list::-webkit-scrollbar {
    width: 4px;
}

.cart-items-list::-webkit-scrollbar-thumb {
    background: rgba(34, 232, 144, 0.3);
    border-radius: 2px;
}

.cart-footer {
    border-top: 1px solid rgba(34, 232, 144, 0.14);
    padding-top: 22px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex-shrink: 0;
}

.cart-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: "Sora", sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--sf-chrome, #eef4ff);
}

#cart-total-amount {
    font-family: var(--font-display, "Bebas Neue", sans-serif);
    color: var(--sf-primary-bright, #ffb000);
    font-size: 1.4rem;
    letter-spacing: 0.03em;
    font-weight: 400;
}

.cart-checkout-btn.product-buy-now-btn {
    width: 100%;
    max-width: none;
    padding: 14px 18px;
    font-family: "Sora", sans-serif;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border: none;
    border-radius: var(--radius-button, 6px);
    cursor: pointer;
}

@media (max-width: 480px) {
    .glass-sidebar.cart-broadcast-panel {
        top: 12px;
        bottom: 12px;
        right: 12px;
        left: 12px;
        width: auto;
        max-width: none;
        height: auto;
        padding: 24px 20px;
    }
}
