.cart-sidebar-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    z-index: 100000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    touch-action: none;
}
.cart-sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}
.cart-sidebar-container {
    position: fixed;
    top: 0; right: -420px;
    width: 420px;
    max-width: 90vw;
    height: 100vh;
    background: var(--bg-color);
    z-index: 100001;
    display: flex;
    flex-direction: column;
    box-shadow: -5px 0 25px rgba(0,0,0,0.3);
    transition: right 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.cart-sidebar-container.active {
    right: 0;
}
.cart-sidebar-header {
    background: var(--accent-color);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.cart-sidebar-header h3 {
    margin: 0;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    gap: 10px;
}
.cart-sidebar-close {
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    padding: 0 5px;
    transition: transform 0.2s;
}
.cart-sidebar-close:hover {
    transform: scale(1.1);
}
.cart-sidebar-body {
    flex-grow: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0;
    position: relative;
    background: var(--bg-color);
    overscroll-behavior: contain;
}
.cart-sidebar-body::-webkit-scrollbar {
    width: 6px;
}
.cart-sidebar-body::-webkit-scrollbar-thumb {
    background: var(--input-border);
    border-radius: 10px;
}

/* Overrides para o carrinho encaixar perfeitamente na sidebar */
.cart-sidebar-body .cart-container {
    padding: 0 !important;
    margin: 0 !important;
    max-width: 100% !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}
.cart-sidebar-body .cart-section {
    margin-bottom: 8px !important;
    padding: 15px !important;
    border-radius: 0 !important;
}
.cart-sidebar-body .sticky-bottom-bar {
    position: sticky !important;
    bottom: 0 !important;
    margin: 0 !important;
    border-radius: 0 !important;
    z-index: 10 !important;
    width: 100% !important;
}
.cart-sidebar-body .empty-cart {
    margin-top: 0 !important;
    padding: 40px 20px !important;
    border-radius: 0 !important;
}
.cart-sidebar-body .cs-scroll {
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Ajuste fino para Cupom e Gorjeta ficarem na mesma linha */
.cart-sidebar-body .action-row {
    flex-wrap: nowrap !important;
    gap: 5px !important;
}
.cart-sidebar-body .action-label {
    white-space: nowrap !important;
    font-size: 0.9rem !important;
}
.cart-sidebar-body .action-value {
    gap: 5px !important;
}
.cart-sidebar-body .action-input {
    min-width: 60px !important;
    width: auto !important;
    flex-shrink: 1 !important;
}
.cart-sidebar-body .action-btn {
    white-space: nowrap !important;
}
