/* =========================
   WRAPPER
========================= */

#carrinho_completo_wrapper{
    position: fixed;

    inset: 0;

    background: rgba(0,0,0,0.72);

    backdrop-filter: blur(4px);

    -webkit-backdrop-filter: blur(4px);

    z-index: 9999;

    opacity: 0;

    visibility: hidden;

    transition:
        opacity .35s ease,
        visibility .35s ease;

    pointer-events: none;
}


/* ABERTO */

#carrinho_completo_wrapper.aberto{
    opacity: 1;

    visibility: visible;

    pointer-events: auto;
}


/* =========================
   MODAL
========================= */

.carrinho_completo{
    width: min(1400px, 96%);

    height: 94vh;

    background: #FFF8F5;

    border-radius: 20px;

    position: absolute;

    top: 50%;
    left: 50%;

    transform:
        translate(-50%, -46%)
        scale(.96);

    transition:
        transform .35s ease,
        opacity .35s ease;

    opacity: 0;

    overflow: hidden;

    display: flex;

    flex-direction: column;

    box-shadow:
        0 30px 80px rgba(0,0,0,0.45);
}


/* ABERTO */

#carrinho_completo_wrapper.aberto .carrinho_completo{
    transform:
        translate(-50%, -50%)
        scale(1);

    opacity: 1;
}


/* =========================
   TOPO
========================= */

.topo_carrinho_completo{
    padding: 16px 36px;

    background: white;

    border-bottom:
        1px solid rgba(0,0,0,0.08);

    display: flex;

    align-items: center;

    justify-content: space-between;
}

.topo_carrinho_completo h2{
    font-size: 34px;

    color: #3A2E2A;

    margin-bottom: 6px;
}

.topo_carrinho_completo p{
    color: #7A6D66;

    font-size: 15px;
}


/* =========================
   BOTÃO FECHAR
========================= */

#btn_fechar_carrinho_completo{
    width: 50px;
    height: 50px;

    border-radius: 50%;

    background: linear-gradient(
        145deg,
        #7BC47F,
        #4E9B57
    );

    position: relative;

    cursor: pointer;

    flex-shrink: 0;

    box-shadow:
        0 10px 25px rgba(0,0,0,0.2);
}

#btn_fechar_carrinho_completo::before,
#btn_fechar_carrinho_completo::after{
    content: '';

    width: 24px;
    height: 3px;

    background: white;

    position: absolute;

    top: 50%;
    left: 50%;

    border-radius: 10px;
}

#btn_fechar_carrinho_completo::before{
    transform:
        translate(-50%, -50%)
        rotate(45deg);
}

#btn_fechar_carrinho_completo::after{
    transform:
        translate(-50%, -50%)
        rotate(-45deg);
}


/* =========================
   CONTEÚDO
========================= */

.conteudo_carrinho_completo{
    flex: 1;

    overflow: hidden;

    display: grid;

    grid-template-columns:
        1fr 360px;
}


/* =========================
   LISTA
========================= */

.lista_produtos_completa{
    padding: 34px;

    overflow-y: auto;
    min-height: 0;
}

.carrinho_completo_vazio{
    text-align: center;
    color: #7A6D66;
    font-size: 17px;
    padding: 48px 24px;
}


/* =========================
   ITEM
========================= */

.item_carrinho_completo{
    display: grid;

    grid-template-columns:
        120px 1fr auto auto;

    gap: 24px;

    align-items: center;

    background: white;

    padding: 22px;

    border-radius: 24px;

    margin-bottom: 24px;

    box-shadow:
        0 10px 30px rgba(0,0,0,0.05);
}


/* =========================
   IMAGEM
========================= */

.imagem_item_completo{
    width: 120px;
    height: 120px;

    border-radius: 20px;

    overflow: hidden;
}

.imagem_item_completo img{
    width: 100%;
    height: 100%;

    object-fit: cover;
}


/* =========================
   DADOS
========================= */

.dados_item_completo h3{
    font-size: 22px;

    color: #3A2E2A;

    margin-bottom: 10px;
}

.descricao_item_completo{
    color: #7A6D66;

    line-height: 1.6;

    margin-bottom: 14px;
}

.preco_item_completo{
    font-size: 28px;

    font-weight: bold;

    color: #4E9B57;
}


/* =========================
   QUANTIDADE
========================= */

.controle_quantidade_completo{
    display: flex;

    align-items: center;

    gap: 12px;
}

.controle_quantidade_completo button{
    width: 38px;
    height: 38px;

    border: none;

    border-radius: 12px;

    cursor: pointer;

    background: #F5EEE9;

    font-size: 18px;
}

.controle_quantidade_completo span{
    min-width: 20px;

    text-align: center;

    font-weight: bold;
}


/* =========================
   REMOVER
========================= */

.btn_remover_item{
    border: none;

    background: transparent;

    color: #B15C5C;

    cursor: pointer;

    font-weight: bold;
}


/* =========================
   RESUMO
========================= */

.resumo_carrinho{
    background: white;

    padding: 34px;

    border-left:
        1px solid rgba(0,0,0,0.08);

    display: flex;

    flex-direction: column;
}

.resumo_carrinho h3{
    font-size: 28px;

    color: #3A2E2A;

    margin-bottom: 30px;
}


/* LINHAS */

.linha_resumo,
.linha_total{
    display: flex;

    align-items: center;

    justify-content: space-between;
}

.linha_resumo{
    margin-bottom: 20px;

    color: #6F625C;
}

.linha_total{
    margin-top: 24px;

    padding-top: 24px;

    border-top:
        1px solid rgba(0,0,0,0.08);

    font-size: 22px;

    font-weight: bold;

    color: #3A2E2A;
}


/* =========================
   BOTÕES
========================= */

#btn_checkout_completo,
#btn_continuar_comprando{
    height: 56px;

    border: none;

    border-radius: 18px;

    cursor: pointer;

    font-size: 16px;

    font-weight: bold;

    margin-top: 18px;
}


/* CHECKOUT */

#btn_checkout_completo{
    background: linear-gradient(
        145deg,
        #7BC47F,
        #4E9B57
    );

    color: white;
}


/* CONTINUAR */

#btn_continuar_comprando{
    background: #F5EEE9;
    color: #5F524C;
}


/* =========================
   RESPONSIVO
========================= */

@media(max-width: 1000px){

    .conteudo_carrinho_completo{
        grid-template-columns:
            1fr;
    }

    .resumo_carrinho{
        border-left: none;

        border-top:
            1px solid rgba(0,0,0,0.08);
    }

    .item_carrinho_completo{
        grid-template-columns:
            1fr;

        text-align: center;
    }

    .imagem_item_completo{
        margin: 0 auto;
    }

    .controle_quantidade_completo{
        justify-content: center;
    }

}

.icone_lixeira{
    fill: none;
    stroke: #5B9BD5;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    border: none;

}

.icone_lixeira:hover{
    background: #D6EBFA;
    transform: scale(1.06);
    stroke: #3D8BC4;
}

@media (max-width: 600px) {
    .carrinho_completo_wrapper { width: 100vw; }
    .resumo_grid { grid-template-columns: 1fr; }
}
 
 