:root {
    --cor-primaria: #f9e70a;
    --cor-escura: #000;
    --cor-fundo: #f4f6f8;
    --cor-texto: #333;
    --cor-sucesso: #198754;
    --cor-sucesso-hover: #146c43;
    --cor-erro: #dc3545;
    --cor-erro-hover: #b02a37;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 130px;
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}

/* ================= FUNDO DO BODY (liso, sem foto) ================= */
body {
    font-family: 'Poppins', Arial, Helvetica, sans-serif;
    background-color: #141414;
    color: var(--cor-texto);
    line-height: 1.5;
}

h1, h2, h3, .logo, nav a.botao-carrinho {
    font-family: 'Poppins', Arial, Helvetica, sans-serif;
    letter-spacing: 0.2px;
}

a { text-decoration: none; }
button, input, textarea { font-family: 'Poppins', Arial, Helvetica, sans-serif; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
    outline: 3px solid var(--cor-primaria);
    outline-offset: 3px;
}

/* ================= HEADER & NAV ================= */
header {
    background: var(--cor-escura);
    color: #fff;
    padding: 18px 7%;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 3px 15px rgba(0,0,0,0.25);
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    backdrop-filter: saturate(180%) blur(6px);
}

.logo {
    font-size: 22px;
    font-weight: bold;
    white-space: nowrap;
}

nav {
    display: flex;
    align-items: center;
    gap: 22px;
    margin-left: auto;
}

nav a {
    color: #fff;
    font-weight: 500;
    transition: color 0.2s;
}

nav a:hover { color: var(--cor-primaria); }

#barra-pedido-minimo {
    background: #f9e70a;
    color: #111;
    text-align: center;
    padding: 10px;
    font-weight: bold;
    font-size: 14px;
    box-shadow: inset 0 -2px 5px rgba(0,0,0,0.1);
}

/* ================= BANNER ================= */
.banner {
    width: 100%;
    margin: 0;
    padding: 0;
    background: #000;
    position: relative;
    line-height: 0;
}

.banner-imagem {
    display: block;
    width: 100%;
    height: auto;
}

.banner-cta {
    position: relative;
    padding: 18px 7%;
    background: #111;
    color: #fff;
    text-align: center;
    z-index: 2;
    line-height: 1.5;
}

.banner-cta h2 {
    font-size: clamp(18px, 4vw, 26px);
    margin-bottom: 10px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.banner-botao {
    display: inline-block;
    background: var(--cor-primaria);
    color: var(--cor-escura);
    font-weight: bold;
    padding: 12px 26px;
    border-radius: 8px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.banner-botao:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 22px rgba(0,0,0,0.4);
}

/* ================= FUNDOS TRANSPARENTES ================= */
.categorias, .categoria-produtos, main#produtos {
    background-color: transparent !important;
}

.categorias, .categoria-produtos {
    padding: 70px 7%;
}

.categorias { text-align: center; }

.categorias h2, .titulo-categoria h2, .titulo-categoria p {
    color: #fff;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.8);
}

.categorias h2, .titulo-categoria h2 {
    position: relative;
    display: inline-block;
    padding-bottom: 12px;
    margin-bottom: 30px;
}

.categorias h2::after, .titulo-categoria h2::after {
    content: "";
    position: absolute;
    left: 50%; bottom: 0;
    transform: translateX(-50%);
    width: 60px; height: 4px;
    background: var(--cor-primaria);
    border-radius: 2px;
}

.categorias h2 { font-size: 35px; margin-bottom: 40px; }

.categorias-lista {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.categorias-lista a {
    background-color: #fff;
    color: var(--cor-texto);
    padding: 30px 20px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 140px;
    font-size: 38px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.categorias-lista a:hover {
    transform: translateY(-4px);
    background-color: var(--cor-primaria);
    color: var(--cor-escura);
    box-shadow: 0 8px 18px rgba(0,0,0,0.12);
}

.categorias-lista strong {
    font-size: 16px;
    font-weight: bold;
    text-align: center;
}

.categoria-produtos { scroll-margin-top: 130px; }

.titulo-categoria {
    margin-bottom: 35px;
    border-left: 6px solid var(--cor-primaria);
    padding-left: 15px;
}

.titulo-categoria h2 { font-size: 32px; margin-bottom: 8px; }

/* ================= PRODUTOS ================= */
.produtos-lista {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.produto {
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    padding: 15px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.produto:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.15);
}

.produto img, .card-produto img, .produto-img {
    width: 100%;
    height: 240px;
    object-fit: contain;
    background-color: #fff;
    padding: 0;
    border-radius: 8px 8px 0 0;
    display: block;
    margin: 0 auto;
    mix-blend-mode: multiply;
    transition: transform 0.3s ease;
    transform: scale(1.25);
    color: transparent;
}

.produto:hover img, .card-produto:hover img, .produto-img:hover {
    transform: scale(1.35);
}

.produto-imagem {
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eee;
    font-size: 65px;
    border-radius: 8px;
}

.produto-info {
    padding: 22px 0 0;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.produto-numero { color: #888; font-size: 13px; margin-bottom: 6px; }
.produto-info h3 { font-size: 19px; margin-bottom: 10px; }
.produto-preco { font-size: 24px; color: var(--cor-sucesso); font-weight: bold; margin-bottom: 8px; }
.produto-observacao { color: #777; font-size: 14px; line-height: 1.5; min-height: 42px; margin-bottom: 15px; }

.produto.indisponivel { opacity: 0.65; }
.produto.indisponivel .produto-preco { color: var(--cor-erro); }

/* ================= BOTOES GERAIS ================= */
button, .botao-comprar, .botao-finalizar, .botao-whatsapp, .botao-confirmar {
    transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.2s ease;
}

.botao-comprar:hover:not(:disabled), .botao-finalizar:hover:not(:disabled), .botao-whatsapp:hover:not(:disabled), .botao-confirmar:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0,0,0,0.18);
}

.botao-comprar:active:not(:disabled), .botao-finalizar:active:not(:disabled), .botao-whatsapp:active:not(:disabled), .botao-confirmar:active:not(:disabled) {
    transform: translateY(0) scale(0.98);
}

button:disabled, .botao-comprar:disabled, .botao-finalizar:disabled, .botao-confirmar:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.botao-indisponivel {
    width: 100%; padding: 12px; border: none; border-radius: 6px;
    background: #ddd; color: #777; font-weight: bold;
}

.botao-comprar {
    width: 100%; padding: 13px; border: none; border-radius: 7px;
    background: var(--cor-escura); color: #fff; font-weight: bold;
    cursor: pointer; user-select: none; -webkit-user-select: none; touch-action: manipulation;
}

.botao-comprar:hover { background: var(--cor-primaria); color: var(--cor-escura); }

/* ================= BOTAO FLUTUANTE CARRINHO ================= */
.botao-carrinho {
    position: fixed !important;
    bottom: 20px !important;
    right: 20px !important;
    left: auto !important;
    top: auto !important;
    z-index: 99999 !important;
    background-color: var(--cor-primaria) !important;
    color: #000 !important;
    padding: 10px 20px !important;
    border-radius: 50px !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4) !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    font-weight: bold !important;
    text-decoration: none !important;
    font-size: 15px !important;
    flex-direction: row !important;
    white-space: nowrap !important;
    width: auto !important;
    height: auto !important;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.2s ease !important;
}

.botao-carrinho:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 14px rgba(0,0,0,0.25) !important;
}

#contador-carrinho {
    background: #111 !important;
    color: #fff !important;
    border-radius: 50px !important;
    padding: 3px 9px !important;
    font-size: 13px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-weight: bold !important;
}

/* ================= INFORMACOES & CONTATO ================= */
.informacoes { background: var(--cor-escura); color: #fff; padding: 60px 7%; text-align: center; }
.informacoes h2 { margin-bottom: 25px; }
.informacoes p { margin: 10px; color: #ddd; }
.informacoes strong { color: var(--cor-primaria); }

.busca-resultados {
    min-height: 1.5em;
    margin: 8px auto 0;
    color: #fff;
    font-size: 14px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
}

.contato { background: #fff; padding: 70px 7%; text-align: center; }
.contato h2 { font-size: 32px; margin-bottom: 35px; }
.contato p { margin: 5px; }

.contato-conteudo { display: flex; justify-content: center; gap: 30px; flex-wrap: wrap; max-width: 900px; margin: 0 auto; }
.contato-item { background: #fff; padding: 25px; border-radius: 10px; min-width: 280px; flex: 1; display: flex; align-items: center; justify-content: center; gap: 15px; box-shadow: 0 3px 10px rgba(0,0,0,0.06); }
.contato-icone { font-size: 32px; }
.contato-item strong { display: block; margin-bottom: 5px; }

footer { background: var(--cor-escura); color: #fff; text-align: center; padding: 30px; }
footer p { margin-top: 10px; color: #aaa; }
footer small { display: block; margin-top: 10px; color: #777; }

/* ================= PAGINA DO CARRINHO ================= */
.pagina-carrinho, .carrinho-container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 60px 7%; min-height: 600px; }
.pagina-carrinho h1, .carrinho-container h1 { font-size: 38px; margin-bottom: 10px; }
.subtitulo { color: #777; margin-bottom: 30px; }
.carrinho-layout { display: grid; grid-template-columns: 1fr 380px; gap: 30px; align-items: start; position: relative; }
.carrinho-resumo-coluna { position: sticky; top: 100px; }

/* CORREÇÃO DE TEXTOS NO TOPO (CARRINHO E CHECKOUT) */
.carrinho-container > div:first-of-type h1,
.carrinho-container > div:first-of-type p,
.checkout > div:first-child,
.checkout > div:first-child strong,
.checkout > div:first-child span,
.checkout > div:nth-child(2) h1,
.checkout > div:nth-child(2) p {
    color: #fff !important;
    text-shadow: 1px 2px 5px rgba(0,0,0,0.9) !important;
}

.checkout > div:first-child strong {
    color: var(--cor-primaria) !important; /* Destaque amarelo para a etapa atual */
}

.item-carrinho { background: #fff; padding: 25px; margin-bottom: 15px; border-radius: 10px; display: grid; grid-template-columns: 1fr auto auto auto; align-items: center; gap: 25px; box-shadow: 0 3px 12px rgba(0,0,0,0.08); }
.item-info span { color: #a38300; font-size: 13px; font-weight: bold; }
.item-info h3 { margin: 7px 0; font-size: 19px; }
.item-info p { color: #777; font-size: 14px; }
.item-info del { color: #888; font-size: 14px; }
.item-info strong { font-weight: 700; }

.quantidade { display: inline-flex; align-items: center; background: #f8f9fa; border: 1px solid #dcdcdc; border-radius: 30px; padding: 3px 6px; gap: 12px; box-shadow: inset 0 1px 3px rgba(0,0,0,0.03); }
.quantidade button { width: 30px; height: 30px; border: none; border-radius: 50%; background: var(--cor-escura); color: #fff; font-size: 16px; font-weight: bold; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background-color 0.2s, transform 0.1s; }
.quantidade button:hover { background: var(--cor-primaria); color: var(--cor-escura); }
.quantidade button:active { transform: scale(0.92); }
.quantidade strong { min-width: 20px; text-align: center; font-size: 15px; font-weight: bold; color: #333; }
.preco-item { min-width: 110px; text-align: right; font-size: 18px; }

.remover { border: none; background: var(--cor-erro); color: #fff; padding: 9px 14px; border-radius: 6px; cursor: pointer; transition: background-color 0.2s; }
.remover:hover { background: var(--cor-erro-hover); }

.desconto-aplicado { margin-top: 12px; padding: 10px 12px; border-radius: 8px; background: #e8f7ed; border: 1px solid #8bd19d; color: #176b2c; font-size: 14px; line-height: 1.5; }
.desconto-pendente { margin-top: 12px; padding: 10px 12px; border-radius: 8px; background: #fff8e1; border: 1px solid #f0d477; color: #765d00; font-size: 14px; line-height: 1.5; }
#economia-total { margin-top: 10px; padding: 12px; border-radius: 8px; background: #e8f7ed; border: 1px solid #8bd19d; color: #176b2c; }

.carrinho-vazio { background: #fff; padding: 60px 30px; text-align: center; border-radius: 10px; box-shadow: 0 3px 12px rgba(0,0,0,0.08); }
.carrinho-vazio p { color: #777; margin: 15px 0 25px; }

.resumo-carrinho { background: #fff; padding: 30px; margin-top: 30px; margin-left: auto; max-width: 450px; border-radius: 10px; box-shadow: 0 3px 12px rgba(0,0,0,0.08); }
.linha-resumo { display: flex; justify-content: space-between; margin: 15px 0; }
.linha-resumo.total { font-size: 22px; }

.aviso-minimo { padding: 15px; margin: 20px 0; border-radius: 7px; background: #fff3cd; color: #664d03; line-height: 1.5; }
.aviso-minimo.ok { background: #d1e7dd; color: #0f5132; }

.botao-finalizar { width: 100%; padding: 15px; margin-top: 15px; border: none; border-radius: 7px; background: var(--cor-sucesso); color: #fff; font-size: 16px; font-weight: bold; cursor: pointer; transition: background-color 0.2s, transform 0.1s; }
.botao-limpar { width: 100%; padding: 12px; margin-top: 10px; border: none; background: transparent; color: var(--cor-erro); cursor: pointer; transition: color 0.2s; }
.botao-limpar:hover { color: var(--cor-erro-hover); }

/* ================= CHECKOUT ================= */
.checkout { width: 100%; max-width: 900px; margin: 0 auto; padding: 60px 7%; }
.checkout h1 { font-size: 40px; margin-bottom: 10px; }
.checkout-subtitulo { color: #777; margin-bottom: 35px; }
.checkout-card { background: #fff; padding: 30px; margin-bottom: 25px; border-radius: 10px; box-shadow: 0 3px 12px rgba(0,0,0,0.08); }
.checkout-card h2 { margin-bottom: 25px; }

.checkout-aviso { padding: 15px; margin-bottom: 20px; border-radius: 7px; display: none; }
.checkout-aviso.erro { display: block; background: #f8d7da; color: #842029; }
.checkout-aviso.sucesso { display: block; background: #d1e7dd; color: #0f5132; }

.campo { margin-bottom: 20px; }
.campo label { display: block; font-weight: bold; margin-bottom: 7px; }
.campo input, .campo textarea { width: 100%; padding: 13px; border: 1px solid #ccc; border-radius: 6px; font-size: 16px; resize: vertical; transition: border-color 0.2s, box-shadow 0.2s; }
.campo textarea { min-height: 100px; }
.campo input:focus, .campo textarea:focus { outline: none; border-color: var(--cor-primaria); box-shadow: 0 0 0 2px rgba(245,196,0,0.15); }

.opcao { display: flex; align-items: flex-start; gap: 12px; padding: 16px; margin-bottom: 10px; border: 1px solid #ddd; border-radius: 8px; cursor: pointer; transition: border-color 0.2s, background-color 0.2s; }
.opcao:hover { border-color: var(--cor-primaria); background: #fffdf3; }
.opcao input { margin-top: 4px; }
.opcao p { color: #777; margin-top: 5px; }
input[type="radio"]:checked + span, label:has(input[type="radio"]:checked) { color: var(--cor-escura); }

.botao-confirmar { width: 100%; padding: 16px; border: none; border-radius: 7px; background: var(--cor-sucesso); color: #fff; font-size: 18px; font-weight: bold; cursor: pointer; transition: background-color 0.2s; }

.botao-whatsapp { width: 100%; padding: 16px; margin-top: 20px; border: none; border-radius: 8px; background: #25d366; color: #fff; font-size: 18px; font-weight: bold; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 10px; transition: background-color 0.2s, transform 0.2s; }
.botao-whatsapp:hover { background: #128c7e; }

.whatsapp-flutuante { position: fixed; right: 20px; bottom: 20px; z-index: 99998; display: flex; align-items: center; gap: 8px; height: 56px; min-width: 56px; padding: 0 14px; box-sizing: border-box; justify-content: center; border-radius: 28px; background: #25d366; color: #fff; font-weight: bold; font-size: 15px; text-decoration: none; box-shadow: 0 4px 15px rgba(0,0,0,0.35); transition: transform 0.2s ease, background-color 0.2s ease; }
.whatsapp-flutuante.acima-carrinho { bottom: 84px; }
.whatsapp-flutuante:hover { transform: scale(1.06); background-color: #128c7e; }
.whatsapp-flutuante:focus-visible { outline: 3px solid var(--cor-primaria); outline-offset: 3px; }
@media (max-width: 768px) { .whatsapp-flutuante { padding: 0; width: 56px; } .whatsapp-flutuante .whatsapp-texto { display: none; } body:has(.whatsapp-flutuante) footer { padding-bottom: 96px !important; } body:has(.whatsapp-flutuante.acima-carrinho) footer { padding-bottom: 160px !important; } }
@media (prefers-reduced-motion: reduce) { .whatsapp-flutuante { transition: none; } .whatsapp-flutuante:hover { transform: none; } }

/* ================= SKELETON E ANIMACOES ================= */
.skeleton {
    background: linear-gradient(90deg, #e8e8e8 25%, #f4f4f4 37%, #e8e8e8 63%);
    background-size: 400% 100%;
    animation: skeletonShine 1.4s ease infinite;
    border-radius: 12px;
}
.skeleton-cat { height: 90px; }
.skeleton-produto { height: 340px; }

main#produtos > section { animation: fadeInUp 0.5s ease both; }

@keyframes pulso {
    0% { box-shadow: 0 0 0 0 rgba(37,211,102,0.5); }
    70% { box-shadow: 0 0 0 15px rgba(37,211,102,0); }
    100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}

@keyframes skeletonShine {
    0% { background-position: 100% 50%; }
    100% { background-position: 0 50%; }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
    .produto, .categorias-lista a, main#produtos > section, .skeleton { transition: none; animation: none; }
}

/* ================= SCROLLBAR ================= */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #eee; }
::-webkit-scrollbar-thumb { background: #c9c9c9; border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: #999; }

/* ================= RESPONSIVO ================= */
@media (max-width: 1000px) {
    header, .categorias, .categoria-produtos { padding-left: 5%; padding-right: 5%; }
    .categorias-lista { grid-template-columns: repeat(3, 1fr); }
    .produtos-lista { grid-template-columns: repeat(2, 1fr); }
    .carrinho-layout { grid-template-columns: 1fr; }
    .carrinho-resumo-coluna { position: static; }
    .item-carrinho { grid-template-columns: 1fr auto; }
    .preco-item { text-align: left; }
}

@media (max-width: 768px) {
    header { padding: 12px 15px; flex-direction: row; flex-wrap: wrap; justify-content: space-between; align-items: center; }
    .logo { font-size: 18px; text-align: left; }
    
    nav { flex-wrap: wrap; justify-content: flex-end; gap: 6px; max-width: calc(100% - 190px); }
    nav a { display: inline-block !important; font-size: 12px; white-space: nowrap; }
    nav a[href="#contato"] { display: inline-block !important; font-size: 13px; font-weight: bold; color: var(--cor-escura); background-color: var(--cor-primaria); padding: 6px 12px; border-radius: 6px; }
    
    header > div:first-child { display: flex; justify-content: space-between; align-items: center; width: 100%; }
    nav { display: flex; align-items: center; margin-left: 0; }
    
    input[type="text"], input[type="number"], input[type="search"], textarea, select { font-size: 16px !important; }
    button, .quantidade button, .botao-comprar, .botao-confirmar { touch-action: manipulation; }
    
    .banner { width: 100%; height: auto; min-height: 0; padding: 0; background: var(--cor-escura); }
    .banner-imagem { display: block; width: 100%; height: auto; min-height: 0; object-fit: contain; }
    .banner-cta { padding: 16px 5%; }
    
    .categorias, .categoria-produtos, .contato { padding: 50px 5%; }
    .categorias h2 { font-size: 30px; }
    .categorias-lista { grid-template-columns: repeat(2, 1fr); gap: 15px; }
    .titulo-categoria h2 { font-size: 27px; }
    .produtos-lista { grid-template-columns: 1fr; }
    .contato-item { width: 100%; min-width: 0; }
    
    .pagina-carrinho, .carrinho-container, .checkout { padding: 45px 5%; }
    .pagina-carrinho h1, .carrinho-container h1, .checkout h1 { font-size: 32px; }
    .item-carrinho { grid-template-columns: 1fr; gap: 15px; }
    .preco-item { text-align: left; }
    .resumo-carrinho { max-width: 100%; }
    .checkout-card { padding: 22px; }
}

@media (max-width: 500px) {
    .logo { font-size: 17px; }
    header > div:first-child { flex-wrap: wrap; gap: 10px; }
    header nav { width: 100%; max-width: none; justify-content: flex-start; }
    .produto-imagem { height: 130px; font-size: 55px; }
    .produto-info { padding: 18px 0 0; }
    .produto-preco { font-size: 22px; }
    .checkout-card { padding: 18px; }
    .linha-resumo.total { font-size: 20px; }
}

#conteudo-aba-catalogo .lista-produtos-admin {
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

#conteudo-aba-catalogo input[type="file"] {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

#conteudo-aba-catalogo .tabela-produtos-admin,
#conteudo-aba-catalogo .tabela-produtos-admin tbody {
    display: block;
    width: 100%;
}

#conteudo-aba-catalogo .tabela-produtos-admin thead {
    display: none;
}

#conteudo-aba-catalogo .tabela-produtos-admin tr.produto-admin-row {
    display: block;
    width: 100%;
    margin-bottom: 12px;
    border: 1px solid #dfe3e8;
    border-radius: 10px;
    background: #fff;
    overflow: hidden;
}

#conteudo-aba-catalogo .tabela-produtos-admin td.produto-admin-celula {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
}

.produto-admin-cartao {
    width: 100%;
    min-width: 0;
    padding: 14px;
}

.produto-admin-cartao-cabecalho {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
    overflow-wrap: anywhere;
}

.produto-admin-cartao-cabecalho strong {
    font-size: 16px;
}

.produto-admin-estoque {
    flex: 0 0 auto;
    padding: 4px 9px;
    border-radius: 999px;
    background: #e8f5e9;
    color: #176b2c;
    font-size: 12px;
    font-weight: 700;
}

.produto-admin-estoque.baixo {
    background: #fff3cd;
    color: #765d00;
}

.produto-admin-estoque.esgotado {
    background: #f8d7da;
    color: #842029;
}

.produto-admin-grade {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    align-items: end;
}

.produto-admin-campo {
    min-width: 0;
}

.produto-admin-campo-largo {
    grid-column: span 2;
}

.produto-admin-campo label,
.produto-admin-label {
    display: block;
    margin-bottom: 4px;
    color: #444;
    font-size: 12px;
    font-weight: 700;
}

.produto-admin-campo input,
.produto-admin-campo textarea {
    width: 100%;
    min-width: 0;
    padding: 8px;
    border: 1px solid #cbd1d8;
    border-radius: 6px;
    background: #fff;
    box-sizing: border-box;
    font: inherit;
}

.produto-admin-campo textarea {
    min-height: 38px;
    resize: vertical;
}

.produto-admin-foto {
    grid-column: span 2;
}

.produto-admin-foto-controles {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.produto-admin-foto-controles a {
    flex: 0 0 auto;
}

.produto-admin-foto-controles img {
    display: block;
    width: 42px;
    height: 42px;
    object-fit: contain;
    border: 1px solid #e2e5e9;
    border-radius: 6px;
}

.produto-admin-foto-controles input {
    flex: 1;
    width: 100%;
    min-width: 0;
    font-size: 12px;
}

.produto-admin-acoes {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 12px;
}

.produto-admin-acoes button {
    min-width: 84px;
    padding: 8px 12px;
}

@media (max-width: 768px) {
    .produto-admin-grade {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 500px) {
    .produto-admin-cartao {
        padding: 11px;
    }

    .produto-admin-grade {
        grid-template-columns: minmax(0, 1fr);
    }

    .produto-admin-campo-largo,
    .produto-admin-foto {
        grid-column: auto;
    }

    .produto-admin-foto-controles {
        flex-wrap: wrap;
    }

    #conteudo-aba-catalogo div[style*="grid-template-columns:repeat(auto-fit"] {
        grid-template-columns: minmax(0, 1fr) !important;
    }

    #conteudo-aba-catalogo div[style*="grid-column:span 2"] {
        grid-column: 1 / -1 !important;
    }
}
/* ================= CONTROLES DE COMPRA (quantidade, preço por quantidade, avisos) ================= */
.selo-atacado {
    display: inline-block;
    background: #e8f5e9;
    color: #1e6b2a;
    font-size: 12px;
    font-weight: bold;
    padding: 4px 8px;
    border-radius: 4px;
    margin-bottom: 6px;
}

.controle-compra { display: flex; gap: 8px; align-items: stretch; flex-wrap: wrap; }
.controle-compra > .botao-comprar, .controle-compra > .qtd-card { flex: 1 1 140px; }

.qtd-card {
    display: flex;
    align-items: center;
    border: 1px solid #ccc;
    border-radius: 6px;
    background: #f8f9fa;
    overflow: hidden;
}
.qtd-card button {
    border: none;
    width: 40px;
    min-height: 40px;
    font-size: 18px;
    font-weight: bold;
    color: #fff;
    cursor: pointer;
}
.qtd-card .qtd-menos { background: var(--cor-erro); }
.qtd-card .qtd-mais { background: var(--cor-sucesso); }

.qtd-input {
    width: 100%;
    min-width: 48px;
    border: none;
    background: transparent;
    text-align: center;
    font-size: 16px; /* evita zoom automático no iPhone */
    font-weight: bold;
    padding: 6px 2px;
    -moz-appearance: textfield;
}
.qtd-input::-webkit-outer-spin-button, .qtd-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.quantidade .qtd-input { width: 56px; }

.botao-caixa {
    flex: 0 0 auto;
    border: 2px solid var(--cor-escura);
    background: #fff;
    color: var(--cor-escura);
    font-weight: bold;
    border-radius: 6px;
    padding: 6px 10px;
    cursor: pointer;
}
.botao-caixa:hover { background: var(--cor-primaria); }

.botao-indisponivel {
    background: #e2e3e5;
    color: #6c757d;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    font-weight: bold;
    cursor: not-allowed;
}

.toast-loja {
    display: none;
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100000;
    max-width: calc(100% - 32px);
    padding: 12px 18px;
    border-radius: 8px;
    font-weight: bold;
    box-shadow: 0 4px 14px rgba(0,0,0,0.25);
}
.toast-sucesso { background: var(--cor-sucesso); color: #fff; }
.toast-aviso { background: #ffc107; color: #111; }
.toast-erro { background: var(--cor-erro); color: #fff; }

.opcao-check {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 10px;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    margin-bottom: 10px;
    cursor: pointer;
    line-height: 1.4;
}
.opcao-check input { margin-top: 4px; width: 18px; height: 18px; flex: 0 0 auto; }
.opcao-check small { color: #666; }

/* ================= LISTA RÁPIDA (modo de exibição compacto) ================= */
.modo-visao { display: inline-flex; margin-top: 12px; border: 2px solid var(--cor-escura); border-radius: 30px; overflow: hidden; }
.modo-visao button { border: none; background: #fff; color: var(--cor-escura); font-weight: bold; font-size: 14px; padding: 8px 16px; cursor: pointer; min-height: 40px; }
.modo-visao button[aria-pressed="true"] { background: var(--cor-escura); color: #fff; }
.modo-visao button:focus-visible { outline: 3px solid var(--cor-primaria); outline-offset: -3px; }

.modo-lista .titulo-categoria h2 { font-size: 22px; }
.modo-lista .titulo-categoria p { display: none; }
.modo-lista .produtos-lista { display: flex; flex-direction: column; gap: 0; background: #fff; border-radius: 10px; overflow: hidden; box-shadow: 0 2px 10px rgba(0,0,0,0.08); }
.modo-lista .produto { flex-direction: row; align-items: center; border-radius: 0; box-shadow: none; padding: 8px 14px; border-bottom: 1px solid #eee; }
.modo-lista .produto:last-child { border-bottom: none; }
.modo-lista .produto:hover { transform: none; box-shadow: none; background: #fffbe6; }
.modo-lista .produto-imagem { flex: 0 0 48px; width: 48px; height: 48px; font-size: 26px; background: #fff; overflow: hidden; }
.modo-lista .produto-imagem div[style*="absolute"] { display: none !important; }
.modo-lista .produto img, .modo-lista .produto:hover img { height: 48px; transform: none; padding: 2px !important; }
.modo-lista .produto-info { flex: 1; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 4px 14px; padding: 0 0 0 12px; }
.modo-lista .produto-info h3 { order: 1; flex: 1 1 200px; font-size: 15px; margin: 0; }
.modo-lista .produto-info > p { display: none; }
.modo-lista .selo-atacado { order: 2; margin: 0; font-size: 11px; }
.modo-lista .produto-preco { order: 3; font-size: 17px; margin: 0; min-width: 95px; text-align: right; }
.modo-lista .produto-info > div[id^="btn-wrapper-"] { order: 4; flex: 0 0 230px; }
.modo-lista .controle-compra > .botao-comprar, .modo-lista .controle-compra > .qtd-card { flex: 1 1 120px; }
.modo-lista .botao-comprar { padding: 8px 10px; font-size: 14px; }
.modo-lista .botao-indisponivel { width: 100%; }
@media (max-width: 600px) {
    .modo-lista .produto { padding: 8px 10px; align-items: flex-start; }
    .modo-lista .produto-info { padding-left: 10px; }
    .modo-lista .produto-preco { min-width: 0; text-align: left; }
    .modo-lista .produto-info > div[id^="btn-wrapper-"] { flex: 1 1 160px; }
}
.ordenar-produtos { margin: 12px 0 0 10px; min-height: 44px; padding: 8px 14px; border: 2px solid var(--cor-escura); border-radius: 30px; background: #fff; color: var(--cor-escura); font-weight: bold; font-size: 14px; cursor: pointer; vertical-align: top; }
@media (max-width: 420px) { .ordenar-produtos { margin-left: 0; } }

/* ================= ETAPAS DO PEDIDO ================= */
nav.etapas { display: block !important; width: 100%; max-width: none !important; margin: 0 0 25px !important; }
nav.etapas a.etapa-link { display: inline-flex !important; font-size: 14px; color: #fff; }
nav.etapas .atual a.etapa-link { color: #111; }
.etapas ol { list-style: none; display: flex; align-items: center; justify-content: center; margin: 0; padding: 0; }
.etapas .etapa { display: flex; align-items: center; flex: 0 1 auto; min-width: 0; }
.etapas .etapa + .etapa::before { content: ""; width: 40px; height: 3px; margin: 0 8px; background: rgba(255,255,255,0.35); border-radius: 2px; flex: 0 1 40px; }
.etapas .etapa.feita + .etapa::before { background: #28a745; }
.etapas .etapa-link { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border-radius: 30px; border: none; background: rgba(0,0,0,0.6); color: #fff; font: inherit; font-size: 14px; font-weight: bold; text-decoration: none; white-space: nowrap; min-height: 44px; box-sizing: border-box; }
.etapas .etapa-num { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; background: rgba(255,255,255,0.25); color: #fff; font-size: 14px; flex: 0 0 30px; }
.etapas .feita .etapa-num { background: #28a745; }
.etapas .atual .etapa-link { background: var(--cor-primaria); color: #111; }
.etapas .atual .etapa-num { background: #111; color: var(--cor-primaria); }
.etapas .futura .etapa-link { color: rgba(255,255,255,0.85); }
.etapas a.etapa-link, .etapas button.etapa-link { cursor: pointer; transition: transform 0.15s ease, box-shadow 0.15s ease; }
.etapas a.etapa-link:hover, .etapas button.etapa-link:hover { transform: translateY(-1px); box-shadow: 0 0 0 2px var(--cor-primaria); }
.etapas a.etapa-link:focus-visible, .etapas button.etapa-link:focus-visible { outline: 3px solid var(--cor-primaria); outline-offset: 2px; }
@media (max-width: 600px) {
    .etapas .etapa + .etapa::before { width: 14px; flex-basis: 14px; margin: 0 4px; }
    .etapas .etapa-link, nav.etapas a.etapa-link { padding: 6px; font-size: 12px; gap: 6px; }
    .etapas .etapa.atual .etapa-link { padding-right: 12px; }
    .etapas .etapa:not(.atual) .etapa-txt { display: none; }
}

/* ================= CONFIRMAÇÃO DO PEDIDO ================= */
.confirmacao-card { background: #fff; border-radius: 10px; padding: 22px 24px; margin-bottom: 18px; box-shadow: 0 3px 12px rgba(0,0,0,0.12); color: #222; }
.confirmacao-card h2 { font-size: 1.15em; margin: 0 0 12px; padding-bottom: 8px; border-bottom: 2px solid #eee; }
.confirmacao-topo { text-align: center; border-top: 6px solid #28a745; }
.confirmacao-topo h1 { font-size: 30px; margin: 4px 0; color: #111; }
.confirmacao-icone { font-size: 46px; line-height: 1; }
.confirmacao-numero { color: #198754; white-space: nowrap; }
.confirmacao-data { color: #666; margin: 0 0 14px; }
.confirmacao-passo { background: #fff3cd; border: 1px solid #ffc107; color: #664d03; border-radius: 8px; padding: 12px 14px; text-align: left; }
.confirmacao-passo.feito { background: #d1e7dd; border-color: #198754; color: #0f5132; }
.confirmacao-whats { margin-top: 14px; font-size: 19px; min-height: 56px; }
.confirmacao-proximos { margin: 0; padding-left: 22px; line-height: 1.7; }
.confirmacao-itens { width: 100%; border-collapse: collapse; font-size: 14px; }
.confirmacao-itens th, .confirmacao-itens td { padding: 8px 6px; border-bottom: 1px solid #eee; text-align: left; vertical-align: top; }
.confirmacao-itens th { background: #f4f4f4; font-size: 13px; color: #444; }
.confirmacao-itens .num { text-align: right; white-space: nowrap; }
.confirmacao-resumo-texto { white-space: pre-wrap; font-family: inherit; margin: 0; }
.confirmacao-totais { margin-top: 12px; max-width: 340px; margin-left: auto; }
.confirmacao-linha { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; }
.confirmacao-linha.desconto strong { color: #198754; }
.confirmacao-linha.total { border-top: 2px solid #222; margin-top: 6px; padding-top: 8px; font-size: 19px; }
.confirmacao-dados p { margin: 6px 0; display: grid; grid-template-columns: 120px 1fr; gap: 10px; }
.confirmacao-dados p span { color: #666; font-weight: bold; font-size: 14px; }
.confirmacao-acoes { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin: 10px 0 40px; }
.botao-secundario, .botao-voltar-loja { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 10px 20px; border-radius: 8px; font-weight: bold; font-size: 15px; text-decoration: none; cursor: pointer; }
.botao-secundario { background: #fff; color: #111; border: 2px solid #111; }
.botao-voltar-loja { background: var(--cor-primaria); color: #111; border: 2px solid var(--cor-primaria); }
@media (max-width: 600px) {
    .confirmacao-card { padding: 18px 14px; }
    .confirmacao-topo h1 { font-size: 24px; }
    .confirmacao-dados p { grid-template-columns: 1fr; gap: 0; }
    .confirmacao-itens th:nth-child(3), .confirmacao-itens td:nth-child(3) { display: none; }
    .confirmacao-acoes > * { flex: 1 1 100%; }
}
@media print {
    header, footer, .etapas, .confirmacao-acoes, .confirmacao-whats, .whatsapp-flutuante, .botao-carrinho, #botao-topo { display: none !important; }
    body { background: #fff !important; }
    .confirmacao-card { box-shadow: none; border: 1px solid #ccc; break-inside: avoid; }
}

/* ================= BANNER DO AVIÁRIO (logo e chamada sobre o preto da logo) ================= */
.banner-aviario {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 28px;
    padding: 32px 7%;
    background: #000;
    line-height: 1.5;
}
.banner-aviario .banner-logo { display: block; width: 180px; max-width: 45vw; height: auto; }
.banner-aviario .banner-cta { background: transparent; padding: 0; text-align: left; max-width: 520px; }
.banner-aviario .banner-cta h2 { margin-left: 0; color: var(--cor-primaria); }
.banner-subtitulo { color: #ddd; margin-bottom: 16px; }

@media (max-width: 600px) {
    .banner-aviario { flex-direction: column; gap: 14px; padding: 24px 5%; }
    .banner-aviario .banner-logo { width: 140px; }
    .banner-aviario .banner-cta { text-align: center; }
    .banner-aviario .banner-cta h2 { margin-left: auto; }
}
