/* assets/css/cart.css */
.cw-cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .45);
    opacity: 0;
    pointer-events: none;
    transition: opacity .18s ease;
    z-index: 1000;
}

.cw-cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 420px;
    max-width: 92vw;
    background: #fff;
    transform: translateX(102%);
    transition: transform .22s ease;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    box-shadow: -10px 0 30px rgba(0, 0, 0, .18);
}

.cw-cart-open .cw-cart-overlay {
    opacity: 1;
    pointer-events: auto;
}

.cw-cart-open .cw-cart-drawer {
    transform: translateX(0);
}

.cw-cart-header {
    padding: 14px 14px;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.cw-cart-title {
    font-size: 18px;
    font-weight: 900;
    color: #111;
    margin: 0;
}

.cw-cart-close {
    border: 0;
    background: #f3f4f6;
    color: #111;
    font-weight: 900;
    border-radius: 10px;
    padding: 10px 12px;
    cursor: pointer;
}

.cw-cart-body {
    padding: 12px 14px;
    overflow: auto;
    flex: 1;
}

.cw-cart-item {
    display: flex;
    gap: 12px;
    border: 1px solid #eaeaea;
    border-radius: 12px;
    padding: 10px;
    margin-bottom: 10px;
}

.cw-cart-thumb {
    width: 64px;
    height: 64px;
    border-radius: 10px;
    object-fit: cover;
    background: #f3f4f6;
    flex: 0 0 auto;
}

.cw-cart-name {
    font-size: 14.5px;
    font-weight: 800;
    color: #111;
    margin: 0 0 6px 0;
}

.cw-cart-sub {
    font-size: 13px;
    color: #374151;
    margin: 0 0 8px 0;
}

.cw-cart-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.cw-cart-qty {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cw-cart-qty button {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    background: #fff;
    cursor: pointer;
    font-weight: 900;
}

.cw-cart-qty input {
    width: 46px;
    height: 32px;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    text-align: center;
    font-weight: 800;
}

.cw-cart-remove {
    border: 0;
    background: #fee2e2;
    color: #991b1b;
    font-weight: 900;
    padding: 8px 10px;
    border-radius: 10px;
    cursor: pointer;
}

.cw-cart-footer {
    border-top: 1px solid #eee;
    padding: 12px 14px;
    background: #fff;
}

.cw-cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 900;
    font-size: 16px;
    margin-bottom: 10px;
}

.cw-cart-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.cw-cart-actions button {
    border: 0;
    border-radius: 12px;
    padding: 12px 10px;
    font-weight: 900;
    cursor: pointer;
}

.cw-btn-pix {
    background: #10b981;
    color: #fff;
}

.cw-btn-stripe {
    background: #2563eb;
    color: #fff;
}

@media (max-width:520px) {
    .cw-cart-actions {
        grid-template-columns: 1fr;
    }
}