/* Loja online: vitrine clicável, detalhe do produto, carrinho, checkout, área do cliente e botões flutuantes */
body.t-travado { overflow: hidden; }

/* ===== topo ===== */
.lp-insta { display: inline-flex; align-items: center; gap: .35rem; color: #d6dee6; }
.lp-insta svg { width: 20px; height: 20px; }
.lp-insta:hover { color: #fff; }
.lp-topo nav > a.lp-insta::after { display: none; }
.lp-carrito-btn { position: relative; background: var(--celeste); border: 0; color: #fff; width: 42px; height: 38px; display: grid; place-items: center; cursor: pointer; box-shadow: 3px 3px 0 #000; }
.lp-carrito-btn svg { width: 22px; height: 22px; }
.lp-carrito-btn:hover { background: var(--celeste-esc); }
.lp-carrito-n { position: absolute; top: -8px; right: -8px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--ouro); color: #000; font-size: .75rem; font-weight: 700; display: grid; place-items: center; }
.lp-carrito-n[hidden] { display: none; }
.lp-carrito-link { position: relative; padding-right: .6rem; }
.lp-carrito-link .lp-carrito-n { top: -12px; right: -14px; }

/* ===== vitrine ===== */
.t-card { font: inherit; text-align: left; cursor: pointer; padding: 0; color: inherit; width: 100%; display: flex; flex-direction: column; }
.t-card img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; background: var(--gelo); }
.t-card-info { position: relative; display: flex; flex-direction: column; gap: .2rem; padding: .7rem .9rem .8rem; border-top: 3px solid var(--preto); background: #fff; }
.t-card-info strong { font-family: var(--display); font-weight: 400; font-size: 1.4rem; letter-spacing: .06em; }
.t-card-linha { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.t-card-linha svg { width: 22px; height: 15px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0,0,0,.15); }
.t-card-preco { font-family: var(--display); font-size: 1.6rem; color: var(--celeste-esc); letter-spacing: .03em; margin-left: auto; }
.t-card:focus-visible { outline: 3px solid var(--ouro); outline-offset: 3px; }
.t-card.esgotado img { filter: grayscale(.7); opacity: .75; }
.t-selo-sem { background: var(--preto) !important; color: var(--ouro) !important; }

/* ===== modal do produto ===== */
.t-modal { position: fixed; inset: 0; z-index: 200; background: rgba(5, 8, 12, .72); display: grid; place-items: center; padding: 16px; }
.t-modal[hidden] { display: none; }
.t-modal-caixa { position: relative; background: #fff; border: 4px solid var(--preto); box-shadow: 10px 10px 0 var(--celeste); max-width: 860px; width: 100%; max-height: calc(100vh - 32px); overflow: auto; }
.t-produto { display: grid; grid-template-columns: 1fr 1fr; }
.t-produto-img { background: var(--gelo); display: grid; place-items: center; }
.t-produto-img img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.t-produto-info { padding: 1.6rem 1.6rem 1.4rem; display: flex; flex-direction: column; gap: .55rem; }
.t-produto-info h2 { margin: 0; font-size: 2.2rem; }
.t-preco { font-family: var(--display); font-size: 2.6rem; color: var(--celeste-esc); line-height: 1; }
.t-desc { color: var(--cinza); }
.t-estoque { font-weight: 600; color: var(--verde); }
.t-estoque.sem { color: #8a1c1c; }
.t-qtd-linha { display: flex; gap: .7rem; align-items: stretch; flex-wrap: wrap; margin-top: .4rem; }
.t-qtd-linha[hidden] { display: none; }
.t-qtd { display: inline-flex; border: 3px solid var(--preto); }
.t-qtd button { width: 40px; background: var(--gelo); border: 0; font-size: 1.3rem; cursor: pointer; font-weight: 700; }
.t-qtd button:hover { background: var(--celeste-claro); }
.t-qtd input { width: 56px; border: 0; text-align: center; font-size: 1.1rem; font-weight: 700; -moz-appearance: textfield; }
.t-qtd input::-webkit-inner-spin-button { -webkit-appearance: none; }
.t-qtd-linha .btn-primary { flex: 1; font-size: 1.1rem; padding: .75rem 1.2rem; }
.t-btn-wa { text-align: center; text-decoration: none; margin-top: .3rem; }
.t-fechar { position: absolute; top: .4rem; right: .6rem; z-index: 2; background: var(--preto); color: #fff; border: 0; width: 36px; height: 36px; font-size: 1.6rem; line-height: 1; cursor: pointer; }
.t-fechar:hover { background: var(--celeste); }

/* ===== carrinho (gaveta) ===== */
.t-gaveta-fundo { position: fixed; inset: 0; background: rgba(5, 8, 12, .55); z-index: 190; }
.t-gaveta-fundo[hidden] { display: none; }
.t-gaveta { position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 100vw); background: #fff; z-index: 195; display: flex; flex-direction: column;
    border-left: 4px solid var(--preto); transform: translateX(100%); transition: transform .22s ease; }
.t-gaveta.aberto { transform: none; }
.t-gaveta[hidden] { display: none; }
.t-gaveta-cab { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.2rem; background: var(--preto); color: #fff; border-bottom: 6px solid transparent; border-image: var(--listras) 6; }
.t-gaveta-cab h3 { font-family: var(--display); font-weight: 400; font-size: 1.8rem; letter-spacing: .08em; margin: 0; }
.t-gaveta-cab .t-fechar { position: static; }
.t-gaveta-itens { flex: 1; overflow-y: auto; padding: .6rem 1.2rem; }
.t-gaveta-pe { padding: 1rem 1.2rem 1.2rem; border-top: 3px solid var(--preto); background: var(--gelo); }
.t-item { display: grid; grid-template-columns: 64px 1fr auto; gap: .7rem; padding: .7rem 0; border-bottom: 1px dashed var(--borda); align-items: center; }
.t-item img { width: 64px; height: 64px; object-fit: cover; border: 2px solid var(--preto); }
.t-item-info { display: flex; flex-direction: column; gap: .2rem; font-size: .92rem; }
.t-item-info em { color: #8a1c1c; font-style: normal; font-weight: 600; }
.t-item.problema { background: #fff6f4; }
.t-item-dir { display: flex; flex-direction: column; align-items: flex-end; gap: .3rem; }
.t-qtd-mini { border-width: 2px; align-self: flex-start; }
.t-qtd-mini button { width: 28px; font-size: 1rem; }
.t-qtd-mini span { min-width: 30px; display: grid; place-items: center; font-weight: 700; }
.t-link { background: none; border: 0; color: var(--celeste-esc); cursor: pointer; text-decoration: underline; font: inherit; font-size: .88rem; padding: 0; }
.t-linha { display: flex; justify-content: space-between; padding: .2rem 0; }
.t-total { font-weight: 700; font-size: 1.15rem; border-top: 2px solid var(--preto); margin-top: .3rem; padding-top: .4rem; }
.t-finalizar { display: block; text-align: center; text-decoration: none; margin-top: .8rem; font-size: 1.15rem; padding: .85rem; }
.t-finalizar.desativado { opacity: .45; pointer-events: none; }
.t-seguir { display: block; margin: .7rem auto 0; }
.t-vazio { color: var(--cinza); text-align: center; padding: 2rem 0; }

/* ===== WhatsApp e Instagram flutuantes ===== */
.wa-flutuante, .ig-flutuante { position: fixed; right: 18px; z-index: 180; display: flex; align-items: center; justify-content: center; text-decoration: none; color: #fff; box-shadow: 0 6px 18px rgba(0,0,0,.35); transition: transform .15s; }
.wa-flutuante { bottom: 18px; gap: .45rem; background: #25d366; border-radius: 999px; padding: .7rem 1.1rem .7rem .8rem; font-weight: 600; letter-spacing: .03em; }
.wa-flutuante svg { width: 30px; height: 30px; }
.ig-flutuante { bottom: 84px; width: 52px; height: 52px; border-radius: 50%; right: 24px;
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%); }
.ig-flutuante svg { width: 26px; height: 26px; }
.wa-flutuante:hover, .ig-flutuante:hover { transform: translateY(-3px) scale(1.04); }

/* aviso */
.t-aviso { position: fixed; left: 50%; bottom: 90px; transform: translate(-50%, 20px); opacity: 0; transition: .2s; z-index: 300; background: var(--preto); color: #fff; padding: .7rem 1.2rem; border-left: 6px solid var(--celeste); max-width: calc(100vw - 32px); pointer-events: none; }
.t-aviso.ver { opacity: 1; transform: translate(-50%, 0); }
.t-aviso[data-tipo="erro"] { border-left-color: var(--ouro); }

/* ===== checkout / conta ===== */
.t-pagina { background: var(--gelo); }
.t-main { max-width: 1100px; margin: 0 auto; padding: 1.6rem 16px 7rem; }
.t-passos { list-style: none; display: flex; gap: .4rem; margin-bottom: 1.4rem; flex-wrap: wrap; counter-reset: passo; }
.t-passos li { counter-increment: passo; flex: 1; min-width: 120px; padding: .5rem .8rem; background: #fff; border: 2px solid var(--borda); color: var(--cinza); font-size: .9rem; text-transform: uppercase; letter-spacing: .06em; }
.t-passos li::before { content: counter(passo) ". "; font-weight: 700; }
.t-passos li.feito { border-color: var(--celeste); color: var(--celeste-esc); }
.t-passos li.atual { background: var(--preto); border-color: var(--preto); color: #fff; }
.t-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 1.4rem; align-items: start; }
.t-bloco { background: #fff; border: 3px solid var(--preto); padding: 1.5rem; box-shadow: 6px 6px 0 var(--celeste); }
.t-bloco h2 { margin-top: 0; }
.t-estreito { max-width: 720px; margin: 0 auto; }
.t-resumo { position: sticky; top: 90px; box-shadow: 6px 6px 0 var(--ouro); }
.t-resumo h3 { font-family: var(--display); font-weight: 400; font-size: 1.6rem; letter-spacing: .06em; margin-bottom: .5rem; }
.t-res-item { display: flex; justify-content: space-between; gap: .6rem; padding: .3rem 0; font-size: .95rem; }
.t-res-item em { color: #8a1c1c; }
.t-form .form-row { flex-wrap: wrap; }
.t-form .form-row .form-group { min-width: 200px; }
.t-grow { flex: 3 !important; }
.t-curto { flex: 1 !important; min-width: 110px !important; }
.t-sub { font-family: var(--display); font-weight: 400; font-size: 1.35rem; letter-spacing: .05em; margin: 1rem 0 .6rem; border-bottom: 3px solid var(--celeste); display: inline-block; }
.t-sub small { font-family: var(--texto); font-size: .8rem; color: var(--cinza); }
.t-dica { color: var(--cinza); font-size: .92rem; margin-bottom: .8rem; }
.t-erro { color: #8a1c1c; font-weight: 600; min-height: 1.2em; margin: .4rem 0; }
.t-largo { width: 100%; font-size: 1.12rem; padding: .85rem; }
.t-abas { display: flex; border: 3px solid var(--preto); margin-bottom: 1.2rem; }
.t-abas button { flex: 1; background: #fff; border: 0; padding: .6rem; font: inherit; text-transform: uppercase; letter-spacing: .06em; cursor: pointer; }
.t-abas button + button { border-left: 3px solid var(--preto); }
.t-abas button.ativo { background: var(--preto); color: var(--celeste); }
.t-badge { background: var(--ouro); color: #000; border-radius: 999px; padding: 0 .45rem; font-size: .8rem; font-weight: 700; }

/* Pix */
.t-pix { display: grid; grid-template-columns: 240px 1fr; gap: 1.4rem; align-items: start; margin: 1rem 0; }
.t-pix img { width: 240px; height: 240px; border: 6px solid #fff; box-shadow: 0 0 0 3px var(--preto), 6px 6px 0 3px var(--celeste); image-rendering: pixelated; }
.t-pix-valor { font-family: var(--display); font-size: 2.6rem; color: var(--celeste-esc); line-height: 1; margin-bottom: .4rem; }
.t-pix-passos { margin: 0 0 .7rem 1.2rem; }
.t-copia { width: 100%; min-height: 76px; font-family: monospace; font-size: .75rem; word-break: break-all; margin-bottom: .5rem; }
.t-pix-tempo { background: var(--celeste-claro); border-left: 6px solid var(--celeste); padding: .7rem 1rem; margin: .8rem 0 0; }
.t-pix-tempo b { font-variant-numeric: tabular-nums; font-size: 1.25rem; }
.t-pix-tempo.urgente { background: #fff1e6; border-left-color: var(--laranja); }
.t-pix-ok { background: #d6f5e3; border-left: 6px solid var(--verde); padding: .8rem 1rem; font-weight: 600; margin-top: .8rem; }
.t-pix-box:empty { display: none; }
.t-pix-box { border-top: 2px dashed var(--borda); margin-top: 1rem; padding-top: .5rem; }

/* conta */
.t-conta-cab { display: flex; justify-content: space-between; align-items: end; gap: 1rem; margin-bottom: 1rem; }
.t-conta-cab h2 { margin: 0; }
.t-abas-conta { background: #fff; }
.t-pedido { border: 2px solid var(--preto); padding: 1rem 1.1rem; margin-bottom: 1rem; }
.t-pedido.cancelado { opacity: .6; }
.t-pedido.destacado { box-shadow: 0 0 0 4px var(--ouro); }
.t-pedido-cab { display: flex; justify-content: space-between; gap: .6rem; flex-wrap: wrap; margin-bottom: .6rem; }
.t-status { padding: .1rem .6rem; font-size: .85rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; background: var(--celeste-claro); color: var(--celeste-esc); }
.t-status.st-aguardando_pagamento { background: #fff3c4; color: #7a5c00; }
.t-status.st-pago { background: var(--preto); color: var(--ouro); }
.t-status.st-enviado, .t-status.st-entregue { background: var(--celeste); color: #fff; }
.t-status.st-cancelado { background: #eee; color: #777; }
.t-linha-tempo { list-style: none; display: flex; margin: .4rem 0 .9rem; }
.t-linha-tempo li { flex: 1; position: relative; text-align: center; font-size: .78rem; color: var(--cinza); padding-top: 18px; }
.t-linha-tempo li::before { content: ''; position: absolute; top: 4px; left: 50%; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: var(--borda); z-index: 1; }
.t-linha-tempo li::after { content: ''; position: absolute; top: 9px; left: -50%; width: 100%; height: 3px; background: var(--borda); }
.t-linha-tempo li:first-child::after { display: none; }
.t-linha-tempo li.feito { color: var(--preto); font-weight: 600; }
.t-linha-tempo li.feito::before, .t-linha-tempo li.feito::after { background: var(--celeste); }
.t-pedido-itens { list-style: none; }
.t-pedido-itens li { display: flex; justify-content: space-between; padding: .15rem 0; }
.t-pedido-acoes { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: .8rem; }

/* chat do cliente */
.t-chat { display: flex; flex-direction: column; border: 2px solid var(--preto); height: min(560px, 70vh); }
.t-chat-cab { display: flex; gap: .7rem; align-items: center; padding: .6rem .9rem; background: var(--preto); color: #fff; }
.t-chat-cab img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; }
.t-chat-cab small { display: block; color: #b9c6d3; }
.t-chat-cab a { color: var(--celeste); }
.t-chat-msgs { flex: 1; overflow-y: auto; padding: 1rem; background: var(--gelo); display: flex; flex-direction: column; gap: .5rem; }
.t-msg { max-width: 78%; align-self: flex-start; background: #fff; border: 1px solid var(--borda); padding: .45rem .75rem; border-radius: 12px 12px 12px 2px; }
.t-msg.mia { align-self: flex-end; background: var(--celeste); color: #fff; border-color: var(--celeste); border-radius: 12px 12px 2px 12px; }
.t-msg p { white-space: pre-wrap; word-break: break-word; }
.t-msg small { font-size: .72rem; opacity: .75; }
.t-msg-ped { display: block; font-weight: 700; }
.t-chat-form { display: flex; gap: .5rem; padding: .6rem; border-top: 2px solid var(--preto); background: #fff; }
.t-chat-form input { flex: 1; min-width: 0; }

@media (max-width: 820px) {
    .t-produto { grid-template-columns: 1fr; }
    .t-produto-info { padding: 1.1rem; }
    .t-produto-info h2 { font-size: 1.8rem; }
    .t-grid { grid-template-columns: 1fr; }
    .t-resumo { position: static; order: -1; }
    .t-pix { grid-template-columns: 1fr; justify-items: center; }
    .t-bloco { padding: 1rem; box-shadow: 4px 4px 0 var(--celeste); }
    .wa-flutuante span { display: none; }
    .wa-flutuante { padding: .8rem; }
    .ig-flutuante { right: 22px; bottom: 82px; width: 48px; height: 48px; }
    .t-passos li { min-width: 0; font-size: .72rem; padding: .4rem; }
}

/* representante: o texto do botão não pode alargar a coluna no celular */
.lp-rep-caixa > * { min-width: 0; }
.lp-rep-btn { white-space: normal; }
@media (max-width: 900px) {
    /* no celular: "Mi cuenta" e o link Admin (compacto) continuam visíveis */
    .lp-topo nav > a[href="cuenta.html"] { display: inline-block; font-size: .8rem; border: 2px solid var(--celeste); padding: .15rem .5rem; }
    .lp-topo nav > a[href="cuenta.html"]::after { display: none; }
    .lp-topo nav > a.lp-admin { display: inline-block; font-size: .72rem; padding: .2rem .5rem; }
    .lp-marca span { font-size: 1.25rem; letter-spacing: .08em; }
}
.t-bloco h2 { margin-bottom: .9rem; }
.t-bloco > p { margin-bottom: .9rem; }
