/* =========================================================
   TEX3 / TBFIL — CESTA DE ORÇAMENTO
   V6 — VISUAL COM FOTO, CATEGORIA E IDENTIDADE TEX3
========================================================= */

#tex3-cesta-root,
#tex3-cesta-root *{
    box-sizing:border-box;
}

#tex3-cesta-root{
    font-family:"Montserrat",Arial,sans-serif;
}

.tex3-cesta-fab{
    position:fixed !important;
    right:26px !important;
    bottom:190px !important;
    left:auto !important;
    z-index:99996 !important;
    width:72px !important;
    height:72px !important;
    min-width:72px !important;
    min-height:72px !important;
    padding:0 !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    border:4px solid #ffffff !important;
    border-radius:50% !important;
    background:#173a93 !important;
    color:#d9232e !important;
    box-shadow:0 0 0 7px rgba(23,58,147,.18),0 16px 34px rgba(0,0,0,.22) !important;
    cursor:pointer !important;
    overflow:visible !important;
    transition:transform .22s ease,background .22s ease,box-shadow .22s ease !important;
}

.tex3-cesta-fab:hover{
    transform:translateY(-4px) scale(1.03) !important;
    background:#204cab !important;
    box-shadow:0 0 0 8px rgba(23,58,147,.22),0 20px 40px rgba(0,0,0,.25) !important;
}

.tex3-cesta-fab-icone{
    width:34px !important;
    height:34px !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
}

.tex3-cesta-fab-icone svg{
    width:34px !important;
    height:34px !important;
    fill:none !important;
    stroke:#d9232e !important;
    stroke-width:2 !important;
    stroke-linecap:round !important;
    stroke-linejoin:round !important;
}

.tex3-cesta-fab-texto{
    display:none !important;
}

.tex3-cesta-fab-contador{
    position:absolute !important;
    top:-7px !important;
    right:-6px !important;
    min-width:29px !important;
    height:29px !important;
    padding:0 7px !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    border:3px solid #ffffff !important;
    border-radius:999px !important;
    background:#d9232e !important;
    color:#ffffff !important;
    font-family:"Montserrat",Arial,sans-serif !important;
    font-size:11px !important;
    line-height:1 !important;
    font-weight:800 !important;
    box-shadow:0 5px 14px rgba(0,0,0,.20) !important;
}

.tex3-cesta-fab:after{
    content:"CESTA DE ORÇAMENTO";
    position:absolute;
    right:84px;
    top:50%;
    transform:translate(8px,-50%);
    padding:10px 14px;
    border:1px solid rgba(23,58,147,.13);
    border-radius:999px;
    background:#ffffff;
    color:#173a93;
    font-family:"Montserrat",Arial,sans-serif;
    font-size:10px;
    line-height:1;
    font-weight:800;
    letter-spacing:.5px;
    white-space:nowrap;
    opacity:0;
    visibility:hidden;
    box-shadow:0 10px 25px rgba(0,0,0,.12);
    transition:all .18s ease;
}

.tex3-cesta-fab:hover:after{
    opacity:1;
    visibility:visible;
    transform:translate(0,-50%);
}

.tex3-cesta-overlay{
    position:fixed;
    inset:0;
    z-index:99997;
    background:rgba(8,22,38,.52);
    opacity:0;
    visibility:hidden;
    transition:opacity .28s ease,visibility .28s ease;
}

.tex3-cesta-painel{
    position:fixed;
    top:0;
    right:0;
    z-index:99998;
    width:min(470px,94vw);
    height:100vh;
    display:flex;
    flex-direction:column;
    background:#ffffff;
    transform:translateX(105%);
    transition:transform .32s cubic-bezier(.65,0,.35,1);
    box-shadow:-18px 0 50px rgba(0,0,0,.20);
}

#tex3-cesta-root.aberta .tex3-cesta-overlay{
    opacity:1;
    visibility:visible;
}

#tex3-cesta-root.aberta .tex3-cesta-painel{
    transform:translateX(0);
}

.tex3-cesta-topo{
    position:relative;
    padding:28px 28px 23px;
    background:linear-gradient(120deg,#173a93 0%,#173a93 72%,#1d4aa8 72%,#1d4aa8 100%);
    color:#ffffff;
    border-bottom:4px solid #d9232e;
}

.tex3-cesta-topo:after{
    content:"";
    position:absolute;
    right:0;
    bottom:-4px;
    width:95px;
    height:4px;
    background:#ffffff;
}

.tex3-cesta-topo small{
    display:block;
    margin-bottom:7px;
    color:rgba(255,255,255,.72);
    font-size:9px;
    line-height:1;
    font-weight:800;
    letter-spacing:1.6px;
}

.tex3-cesta-topo h3{
    margin:0;
    color:#ffffff;
    font-size:24px;
    line-height:1.05;
    font-weight:800;
    letter-spacing:-.5px;
}

.tex3-cesta-fechar{
    position:absolute;
    top:18px;
    right:18px;
    width:38px;
    height:38px;
    border:1px solid rgba(255,255,255,.35);
    border-radius:50%;
    background:rgba(255,255,255,.08);
    color:#ffffff;
    font-size:24px;
    line-height:1;
    cursor:pointer;
    transition:background .2s ease,transform .2s ease;
}

.tex3-cesta-fechar:hover{
    background:#d9232e;
    transform:rotate(4deg);
}

.tex3-cesta-corpo{
    flex:1;
    overflow:auto;
    padding:10px 22px 18px;
    background:#f7f9fb;
}

.tex3-cesta-intro{
    margin:0 -22px 8px;
    padding:14px 22px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:14px;
    background:#ffffff;
    border-bottom:1px solid #e6eaf0;
}

.tex3-cesta-intro span{
    color:#6e7783;
    font-size:9px;
    line-height:1;
    font-weight:800;
    letter-spacing:1.1px;
}

.tex3-cesta-intro strong{
    color:#173a93;
    font-size:11px;
    line-height:1;
    font-weight:800;
}

.tex3-cesta-vazia{
    min-height:330px;
    display:flex;
    align-items:center;
    justify-content:center;
    flex-direction:column;
    text-align:center;
    padding:40px 28px;
    color:#69727b;
}

.tex3-cesta-vazia-icone{
    width:76px;
    height:76px;
    display:flex;
    align-items:center;
    justify-content:center;
    margin-bottom:20px;
    border-radius:50%;
    background:#eef2fa;
    color:#173a93;
}

.tex3-cesta-vazia-icone svg{
    width:35px;
    height:35px;
    fill:none;
    stroke:currentColor;
    stroke-width:1.7;
}

.tex3-cesta-vazia strong{
    display:block;
    margin-bottom:9px;
    color:#173a93;
    font-size:18px;
    line-height:1.15;
    font-weight:800;
}

.tex3-cesta-vazia span{
    max-width:290px;
    color:#6b747d;
    font-size:12px;
    line-height:1.6;
    font-weight:500;
}

.tex3-cesta-item{
    position:relative;
    display:grid;
    grid-template-columns:92px minmax(0,1fr);
    gap:15px;
    margin-top:12px;
    padding:13px;
    background:#ffffff;
    border:1px solid #e4e8ed;
    box-shadow:0 8px 20px rgba(23,58,147,.055);
    transition:border-color .2s ease,transform .2s ease,box-shadow .2s ease;
}

.tex3-cesta-item:hover{
    transform:translateY(-2px);
    border-color:#cdd6e5;
    box-shadow:0 12px 26px rgba(23,58,147,.09);
}

.tex3-cesta-item-foto{
    position:relative;
    width:92px;
    height:92px;
    display:flex;
    align-items:center;
    justify-content:center;
    overflow:hidden;
    background:linear-gradient(145deg,#f8faf9 0%,#eef3f0 100%);
    border:1px solid #e7ebe8;
    text-decoration:none !important;
}

.tex3-cesta-item-foto:after{
    content:"";
    position:absolute;
    left:0;
    bottom:0;
    width:28px;
    height:3px;
    background:#d9232e;
}

.tex3-cesta-item-foto img{
    display:block;
    width:100%;
    height:100%;
    padding:9px;
    object-fit:contain;
}

.tex3-cesta-item-placeholder{
    display:none;
    width:100%;
    height:100%;
    align-items:center;
    justify-content:center;
    flex-direction:column;
    padding:10px;
    text-align:center;
}

.tex3-cesta-item-placeholder b{
    color:#173a93;
    font-size:15px;
    line-height:1;
    font-weight:800;
}

.tex3-cesta-item-conteudo{
    min-width:0;
}

.tex3-cesta-item-topo{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:10px;
}

.tex3-cesta-item-marca{
    display:block;
    margin-bottom:4px;
    color:#007630;
    font-size:8px;
    line-height:1;
    font-weight:800;
    letter-spacing:1.4px;
}

.tex3-cesta-item-categoria{
    display:block;
    margin-bottom:7px;
    color:#7b8580;
    font-size:9px;
    line-height:1.25;
    font-weight:700;
    letter-spacing:.3px;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
}

.tex3-cesta-item-codigo{
    display:inline-block;
    color:#173a93 !important;
    text-decoration:none !important;
    font-size:19px;
    line-height:1;
    font-weight:800;
    transition:color .2s ease;
}

.tex3-cesta-item-codigo:hover{
    color:#d9232e !important;
}

.tex3-cesta-remover{
    flex:0 0 auto;
    border:0;
    background:transparent;
    color:#a4aab1;
    font-size:18px;
    line-height:1;
    font-weight:400;
    cursor:pointer;
    padding:0 0 5px 6px;
    transition:color .2s ease,transform .2s ease;
}

.tex3-cesta-remover:hover{
    color:#d9232e;
    transform:scale(1.12);
}

.tex3-cesta-item-rodape{
    display:flex;
    align-items:end;
    justify-content:space-between;
    gap:12px;
    margin-top:14px;
}

.tex3-cesta-item-rodape small{
    color:#9aa0a6;
    font-size:8px;
    line-height:1;
    font-weight:800;
    letter-spacing:1px;
}

.tex3-cesta-qtd{
    display:flex;
    align-items:center;
    border:1px solid #dce2e8;
    background:#ffffff;
}

.tex3-cesta-qtd button{
    width:30px;
    height:30px;
    border:0;
    background:#ffffff;
    color:#173a93;
    font-size:17px;
    line-height:1;
    font-weight:800;
    cursor:pointer;
    transition:background .18s ease,color .18s ease;
}

.tex3-cesta-qtd button:hover{
    background:#173a93;
    color:#ffffff;
}

.tex3-cesta-qtd span{
    min-width:31px;
    text-align:center;
    color:#242c35;
    font-size:11px;
    line-height:1;
    font-weight:800;
}

.tex3-cesta-rodape{
    padding:18px 22px 22px;
    border-top:1px solid #dfe4ea;
    background:#ffffff;
}

.tex3-cesta-resumo{
    display:flex;
    align-items:center;
    justify-content:space-between;
    margin-bottom:14px;
    color:#68727c;
    font-size:10px;
    line-height:1;
    font-weight:700;
    letter-spacing:.7px;
}

.tex3-cesta-resumo strong{
    color:#173a93;
    font-size:13px;
    line-height:1;
    font-weight:800;
}

.tex3-cesta-whatsapp{
    display:flex;
    align-items:center;
    justify-content:space-between;
    min-height:55px;
    padding:0 18px;
    background:#007630;
    color:#ffffff !important;
    text-decoration:none !important;
    font-size:10.5px;
    line-height:1;
    font-weight:800;
    letter-spacing:.6px;
    transition:background .2s ease,transform .2s ease;
}

.tex3-cesta-whatsapp b{
    color:#f5d500;
    font-size:20px;
    line-height:1;
}

.tex3-cesta-whatsapp:hover{
    background:#005b27;
    color:#ffffff !important;
    transform:translateY(-2px);
}

.tex3-cesta-limpar{
    display:block;
    width:100%;
    margin-top:11px;
    border:0;
    background:transparent;
    color:#8a939b;
    font-size:9px;
    line-height:1;
    font-weight:800;
    letter-spacing:.8px;
    cursor:pointer;
    text-decoration:underline;
    text-underline-offset:3px;
    transition:color .2s ease;
}

.tex3-cesta-limpar:hover{
    color:#d9232e;
}

.tex3-cesta-aviso{
    margin-top:12px;
    color:#7c858d;
    font-size:9px;
    line-height:1.5;
    text-align:center;
    font-weight:500;
}

@media(max-width:600px){
    .tex3-cesta-fab{
        right:16px !important;
        bottom:165px !important;
        width:64px !important;
        height:64px !important;
        min-width:64px !important;
        min-height:64px !important;
    }

    .tex3-cesta-fab-icone,
    .tex3-cesta-fab-icone svg{
        width:30px !important;
        height:30px !important;
    }

    .tex3-cesta-fab:after{
        display:none;
    }

    .tex3-cesta-painel{
        width:94vw;
    }

    .tex3-cesta-topo{
        padding:24px 20px 20px;
    }

    .tex3-cesta-topo h3{
        font-size:21px;
    }

    .tex3-cesta-corpo{
        padding:10px 14px 15px;
    }

    .tex3-cesta-intro{
        margin:0 -14px 8px;
        padding:13px 14px;
    }

    .tex3-cesta-item{
        grid-template-columns:78px minmax(0,1fr);
        gap:11px;
        padding:10px;
    }

    .tex3-cesta-item-foto{
        width:78px;
        height:78px;
    }

    .tex3-cesta-item-codigo{
        font-size:17px;
    }

    .tex3-cesta-item-categoria{
        max-width:170px;
    }

    .tex3-cesta-rodape{
        padding:16px 16px 20px;
    }
}
