/* BOTÃO REMOVER ITEM DO CARRINHO */

/* MINI CARRINHO LATERAL */

.overlay-carrinho{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,0.55);
    opacity:0;
    visibility:hidden;
    transition:0.3s;
    z-index:999;
}

.overlay-carrinho.ativo{
    opacity:1;
    visibility:visible;
}

.mini-carrinho{
    position:fixed;
    top:0;
    right:-420px;
    width:400px;
    max-width:100%;
    height:100vh;
    background:#fff;
    z-index:1000;
    transition:0.3s;
    overflow-y:auto;
    overflow-x:hidden;
}

.mini-carrinho.ativo{
    right:0;
}

.remover-item{
    margin-top:8px;
    border:none;
    background:transparent;
    color:#c00;
    font-weight:bold;
    cursor:pointer;
    font-size:13px;
}

.remover-item:hover{
    text-decoration:underline;
}
.item-info strong{
    display:block;
    margin-bottom:6px;
}
.controle-qtd{
    display:flex;
    align-items:center;
    gap:10px;
    margin-top:10px;
    margin-bottom:10px;
}

.controle-qtd button{
    width:28px;
    height:28px;
    border:none;
    background:#34F6E5;
    border-radius:6px;
    cursor:pointer;
    font-size:18px;
    font-weight:bold;
}

.controle-qtd span{
    font-weight:bold;
    font-size:16px;
}

.btn-remover{
    margin-top:8px;
    background:none;
    border:none;
    color:red;
    cursor:pointer;
    font-weight:bold;
}
/* CORRIGE BARRA HORIZONTAL DO MINI CARRINHO */

.mini-carrinho{
    overflow-x:hidden;
}

.item-carrinho{
    display:flex;
    align-items:center;
    gap:14px;
    overflow:hidden;
}

.item-carrinho img{
    width:80px;
    height:80px;
    object-fit:contain;
    flex-shrink:0;
}

.item-info{
    min-width:0;
}

.item-info h3{
    font-size:15px;
    line-height:1.2;
    word-break:break-word;
}
/* FORMATAÇÃO INTERNA DO MINI CARRINHO */

.mini-carrinho-topo{
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:24px;
    border-bottom:1px solid #eee;
}

.mini-carrinho-topo h2{
    font-size:24px;
}

.fechar-carrinho{
    width:40px;
    height:40px;
    border:none;
    border-radius:50%;
    background:#111;
    color:#fff;
    font-size:20px;
    cursor:pointer;
}

.mini-carrinho-lista{
    padding:20px;
}

.mini-carrinho-rodape{
    position:absolute;
    bottom:0;
    left:0;
    width:100%;
    padding:24px;
    border-top:1px solid #eee;
    background:#fff;
}

.subtotal{
    display:flex;
    justify-content:space-between;
    margin-bottom:18px;
    font-size:18px;
}

.btn-finalizar{
    width:100%;
    height:50px;
    border:none;
    border-radius:12px;
    background:#34F6E5;
    color:#000;
    font-size:16px;
    font-weight:bold;
    cursor:pointer;
}