




/* --- AJUSTES DE LAYOUT GERAL --- */
.categoria-header { /* ... estilos do título da categoria mantidos ... */ }
.header.is-sticky, .tv-infinite-menu.sticky { z-index: 100 !important; }

/* --- Estilos para o Layout em GRADE (`card-grade-loja`) --- */
.card-grade-loja { display: flex; flex-direction: column; height: 100%; background: #fff; border: 1px solid #f0f0f0; border-radius: 12px; overflow: hidden; position: relative; }
.cgl-link-wrapper { display: flex; flex-direction: column; flex-grow: 1; text-decoration: none; color: inherit; }
.cgl-capa { height: 200px; padding: 10px; display: flex; align-items: center; justify-content: center; position: relative; }
.cgl-capa img { max-width: 100%; max-height: 100%; object-fit: contain; }
.cgl-info { padding: 15px; background: #f8f9fa; flex-grow: 1; display: flex; flex-direction: column; text-align: left; }
.cgl-nome { font-size: 14px; font-weight: 500; color: #333; line-height: 1.4; height: auto; min-height: 2.8em; margin-bottom: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; text-overflow: ellipsis; }
.cgl-preco-area { min-height: 50px; }
.cgl-preco-antigo { display: block; text-decoration: line-through; color: #e74c3c; font-size: 13px; }
.cgl-tag-desconto { position: absolute; top: 10px; left: 10px; background: #e74c3c; color: #fff; padding: 4px 8px; font-size: 12px; font-weight: 600; border-radius: 5px; z-index: 5; }
.cgl-tag-oferta { position: absolute; bottom: 10px; left: 10px; background: #28a745; color: #fff; padding: 3px 10px; border-radius: 15px; font-size: 11px; font-weight: 600; z-index: 5; }
.cgl-botoes-area { display: flex; gap: 8px; padding: 15px; background: #f8f9fa; border-top: 1px solid #eee; margin-top: auto;}

/* Ícone do YouTube na foto */
.cgl-icone-yt-foto {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 28px;
    color: #ff0000;
    z-index: 4;
    opacity: 0.8;
}

/* --- CORREÇÕES FINAIS DE COR E BOTÃO --- */
.cgl-preco-final, .cgl-ver-mais { 
    font-size: 18px; 
    font-weight: 700; 
    color: #27293E !important;
}
.cgl-botao-principal { 
    flex-grow: 1;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff !important; /* Texto sempre branco */
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    padding: 0 10px;
    background-color: #27293E !important; /* CORREÇÃO FINAL */
}
.cgl-botao-principal:hover {
    opacity: 0.9; /* Efeito hover sutil */
}
.cgl-botao-principal i { font-size: 18px; margin-right: 8px; }

/* --- Estilos para o Layout em LISTA (`card-lista-loja`) --- */
a.card-lista-loja { display: flex; background: #fff; border: 1px solid #f0f0f0; border-radius: 8px; margin-bottom: 15px; padding: 10px; text-decoration: none; color: #333; }
.cll-capa { width: 80px; height: 80px; flex-shrink: 0; margin-right: 15px; }
.cll-capa img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; }
.cll-info { display: flex; flex-direction: column; justify-content: center; flex-grow: 1; }
.cll-nome { font-weight: 600; font-size: 15px; }
.cll-descricao { font-size: 13px; color: #777; margin: 4px 0; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; text-overflow: ellipsis; }
.cll-preco-antigo { font-size: 13px; text-decoration: line-through; color: #e74c3c; }
.cll-preco-final, .cll-ver-mais { 
    font-size: 16px; 
    font-weight: bold; 
    color: #27293E !important;
}

/* --- AJUSTE FINAL: Estilo do Título da Categoria --- */

.categoria-header {
    display: flex;
    justify-content: space-between; /* Coloca o título na esquerda e o link na direita */
    align-items: center;
    background-color: #f8f9fa; /* Fundo cinza claro, igual ao dos cards */
    padding: 12px 15px;
    border-radius: 8px;
    margin-top: 40px; 
    margin-bottom: 25px;
}

.categoria-title {
    font-size: 18px;
    font-weight: 600; /* Texto em negrito (bold) */
    color: #333;
}

.categoria-vertudo {
    font-size: 14px;
    font-weight: 500;
    color: #555;
    text-decoration: none;
}
.categoria-vertudo:hover {
    color: #27293E;
}

.categoria-vertudo i {
    font-size: 12px;
}

@media (max-width: 767px) {
    .categoria-header {
        margin-top: 25px;
        padding: 10px 12px;
    }
    .categoria-title {
    font-size: 16px;
    margin-right: 15px; /* Adicione esta linha */
}
    .categoria-vertudo {
        font-size: 13px;
    }
}

/* ================================================================= */
/* === AJUSTES ESPECÍFICOS PARA A PÁGINA DE CATEGORIA === */
/* ================================================================= */

/* Garante que o container da capa seja relativo para posicionar o ícone */
.template-categoria .cgl-capa {
    position: relative;
}

/* Posiciona o ícone do YouTube na foto */
.template-categoria .cgl-icone-yt-foto {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 28px;
    color: #ff0000;
    z-index: 4;
}

/* Força a cor da loja nos botões e preços da página de categoria */
.template-categoria .cgl-preco-final,
.template-categoria .cgl-ver-mais,
.template-categoria .cll-preco-final,
.template-categoria .cll-ver-mais {
    color: #27293E !important;
}

.template-categoria .cgl-botao-principal {
    background-color: #27293E !important;
}