/* 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-checkout-wrap {
    max-width: 1100px;
    margin: 30px auto;
    padding: 0 14px;
}

.cw-checkout-grid {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 18px;
}

@media(max-width:900px) {
    .cw-checkout-grid {
        grid-template-columns: 1fr;
    }
}

.cw-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 14px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .04);
}

.cw-title {
    font-size: 22px;
    font-weight: 900;
    margin: 0 0 10px 0;
    color: #111;
}

.cw-muted {
    color: #6b7280;
    font-weight: 600;
}

.cw-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.cw-btn {
    width: 100%;
    border: 0;
    border-radius: 12px;
    padding: 14px 12px;
    font-weight: 900;
    cursor: pointer;
}

.cw-btn-green {
    background: linear-gradient(135deg, #16a34a, #22c55e);
    color: #fff;
}

.cw-btn-blue {
    background: linear-gradient(135deg, #2563eb, #06b6d4);
    color: #fff;
}

.cw-btn-gray {
    background: #4ea706;
    color: #ffffff;
    height: 60px;
    font-size: 18px;
}

.cw-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    font-size: 15px;
}

.cw-sep {
    height: 1px;
    background: #e5e7eb;
    margin: 12px 0;
}

.cw-item {
    display: flex;
    gap: 12px;
    padding: 12px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    margin-bottom: 10px;
}

.cw-item img {
    width: 72px;
    height: 72px;
    border-radius: 12px;
    object-fit: cover;
}

.cw-item-name {
    font-weight: 900;
    color: #111;
    margin: 0;
    line-height: 1.2;
}

.cw-item-sub {
    margin: 6px 0 0 0;
    color: #374151;
    font-weight: 700;
}

.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;
    }
}


.cw-btn-checkout {
    width: 100%;
    border: 0;
    border-radius: 12px;
    padding: 14px 12px;
    font-weight: 900;
    cursor: pointer;
    background: linear-gradient(135deg, #16a34a, #22c55e);
    color: #fff;
    box-shadow: 0 10px 24px rgba(34, 197, 94, .22);
}

.cw-btn-checkout:hover {
    filter: brightness(1.03);
}


/* ===== Modal base ===== */



.cw-modal__box {
    position: relative;
    background: #fff;
    width: min(92vw, 560px);
    margin: 7vh auto 0;
    border-radius: 16px;
    padding: 18px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .35);
}

.cw-modal__close {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 10px;
    background: #f3f4f6;
    cursor: pointer;
    font-size: 22px;
    line-height: 1;
    font-weight: 900;
}

.cw-input {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 12px;
    background: #fff;
    box-sizing: border-box;
}

/* ===== Botões ===== */
.cw-btn {
    border: 0;
    border-radius: 12px;
    padding: 12px 14px;
    font-weight: 900;
    cursor: pointer;
    height: 60px;
}

.cw-btn:disabled {
    opacity: .55;
    cursor: not-allowed;
}

.cw-btn--dark {
    background: #111827;
    color: #fff;
}

.cw-btn--green {
    background: #10b981;
    color: #fff;
}


/* css pra arrumar botao vermelho */


/* ==========================
   AÇÕES DO CARRINHO
   ========================== */

/* Remover item */
.cw-item .js-remove-item {
    background: #ffa3a3 !important;
    color: #fff !important;
    border: 0 !important;
    border-radius: 12px !important;
    font-weight: 900 !important;
    box-shadow: 0 10px 22px rgba(239, 68, 68, .18);
    transition: transform .08s ease, filter .12s ease, box-shadow .12s ease;
    height: 50px !important;
    font-size: 12px !important;
}

.cw-item .js-remove-item:hover {
    filter: brightness(.96);
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(239, 68, 68, .22);
}

.cw-item .js-remove-item:active {
    transform: translateY(0);
}

/* Limpar carrinho */
#btnClearCart {
    background: #ffd58d !important;
    color: #6d6d6d !important;
    border: 0 !important;
    border-radius: 12px !important;
    font-weight: 900 !important;
    box-shadow: 0 10px 22px rgba(245, 158, 11, .18);
    transition: transform .08s ease, filter .12s ease, box-shadow .12s ease;
    height: 50px !important;
}

#btnClearCart:hover {
    filter: brightness(.97);
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(245, 158, 11, .22);
}

#btnClearCart:active {
    transform: translateY(0);
}



/* ==========================
   MODAL BASE
   ========================== */


.cw-modal__box {
    position: relative;
    width: min(720px, calc(100% - 28px));
    margin: 6vh auto 0 auto;
    background: #fff;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, .18);
    box-shadow: 0 30px 80px rgba(0, 0, 0, .35);
    max-height: 88vh;
    overflow: auto;
}

/* trava scroll do body (opcional no JS) */
body.modal-open {
    overflow: hidden;
}

/* ==========================
     STRIPE MODAL
     ========================== */

.cw-modal__box--stripe {
    max-width: 560px;
    padding: 16px;
}

/* Header */
.stripe-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 6px 6px 10px 6px;
    border-bottom: 1px solid #e5e7eb;
}

.stripe-head__left {
    min-width: 0;
}

.stripe-title {
    margin: 0;
    font-weight: 900;
    color: #111;
    font-size: 18px;
}

.stripe-subtitle {
    margin: 6px 0 0 0;
    color: #374151;
    font-weight: 600;
    font-size: 14px;
}

.stripe-head__right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.stripe-price {
    font-weight: 900;
    color: #111;
    font-size: 16px;
    white-space: nowrap;
}

.stripe-close {
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 12px;
    background: #f3f4f6;
    color: #111827;
    font-size: 22px;
    font-weight: 900;
    cursor: pointer;
    line-height: 38px;
    text-align: center;
}

.stripe-close:hover {
    filter: brightness(.97);
}

/* Body */
.stripe-body {
    padding: 12px 6px 6px 6px;
}

.stripe-label {
    display: block;
    font-weight: 800;
    margin: 12px 0 6px 0;
    color: #111;
}

/* containers dos Elements */
.stripe-element {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 12px 12px;
    min-height: 30px;
}

/* grid exp/cvc */
.stripe-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

/* status */
.stripe-status {
    margin-top: 12px;
    font-weight: 800;
    color: #b91c1c;
    min-height: 18px;
}

/* botão */
.stripe-btn {
    width: 100%;
    margin-top: 12px;
    border: 0;
    border-radius: 12px;
    padding: 14px 16px;
    font-weight: 900;
    cursor: pointer;
    background: #111827;
    color: #fff;
}

.stripe-btn:disabled {
    opacity: .45;
    cursor: not-allowed;
}

.stripe-footnote {
    text-align: center;
    margin-top: 10px;
    color: #6b7280;
    font-size: 13px;
}

/* responsivo */
@media (max-width: 520px) {
    .cw-modal__box {
        margin-top: 4vh;
    }

    .stripe-grid {
        grid-template-columns: 1fr;
    }

    .stripe-head {
        align-items: flex-start;
    }
}



/* ==========================
   MODAL BASE (se já tem, mantém)
   ========================== */
.cw-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
}

.cw-modal.is-open {
    display: block;
}

.cw-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .55);
}

.cw-modal__box {
    position: relative;
    width: min(900px, calc(100% - 28px));
    margin: 6vh auto 0 auto;
    background: #fff;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, .18);
    box-shadow: 0 30px 80px rgba(0, 0, 0, .35);
    max-height: 88vh;
    overflow: auto;
}

/* trava scroll do body */
body.modal-open {
    overflow: hidden;
}

/* ==========================
     PIX MODAL
     ========================== */
.cw-modal__box--pix {
    max-width: 920px;
    padding: 16px;
}

.pix-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 6px 6px 12px 6px;
    border-bottom: 1px solid #e5e7eb;
}

.pix-title {
    margin: 0;
    font-weight: 900;
    color: #111;
    font-size: 18px;
}

.pix-total {
    margin-top: 6px;
    color: #374151;
    font-weight: 700;
    font-size: 14px;
}

.pix-total b {
    color: #111;
    font-size: 15px;
}

.pix-close {
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 12px;
    background: #f3f4f6;
    color: #111827;
    font-size: 22px;
    font-weight: 900;
    cursor: pointer;
    line-height: 38px;
    text-align: center;
    flex-shrink: 0;
}

.pix-close:hover {
    filter: brightness(.97);
}

.pix-body {
    padding: 14px 6px 6px 6px;
}

.pix-grid {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 60px;
    align-items: start;
}

/* QR */
.pix-qrbox {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
}

#cwPixQrImg {
    width: 260px;
    height: 260px;
    object-fit: contain;
    border-radius: 12px;
    background: #fff;
}

/* Timer */
.pix-timer {
    width: 100%;
    margin-top: 12px;
    border: 2px solid #bb9f00;
    border-radius: 16px;
    padding: 12px;
    background: #ffe600;
    box-sizing: border-box;
}

.pix-timer__label {
    color: #374151;
    font-weight: 800;
    font-size: 13px;
}

.pix-timer__time {
    margin-top: 6px;
    font-weight: 900;
    font-size: 28px;
    letter-spacing: .5px;
    color: #111;
}

.pix-timer__hint {
    margin-top: 6px;
    color: #6b7280;
    font-weight: 600;
    font-size: 12px;
}

/* Copia e cola */
.pix-label {
    display: block;
    font-weight: 900;
    margin: 0 0 8px 0;
    color: #111;
}

.pix-codewrap {
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
}

#cwPixCode {
    width: 100%;
    min-height: 100px;
    resize: none;
    border: 0;
    outline: none;
    padding: 12px;
    font-size: 18px;
    line-height: 1.25;
    color: #111;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    overflow: auto;
}

.pix-btn {
    width: 100%;
    border: 0;
    border-radius: 14px;
    padding: 14px 14px;
    font-weight: 900;
    cursor: pointer;
    margin-top: 12px;
}

.pix-btn--green {
    background: linear-gradient(135deg, #16a34a, #22c55e);
    color: #fff;
}

.pix-btn--green:hover {
    filter: brightness(.98);
}

.pix-note {
    margin-top: 10px;
    color: #6b7280;
    font-weight: 600;
    font-size: 13px;
}

/* Responsivo */
@media (max-width: 900px) {
    .pix-grid {
        grid-template-columns: 1fr;
    }

    #cwPixQrImg {
        width: 240px;
        height: 240px;
    }
}


#payBox button{
    height: 60px;
    margin-bottom: 20px;
}