/* --- VARIÁVEIS E RESET --- */
:root {
    --gold: #f1c40f;
    --gold-hover: #d4ac0d;
    --dark: #0f0f0f;
    --card-bg: #1a1a1a;
    --text-main: #ffffff;
    --text-dim: #bbbbbb;
    --success: #2ecc71;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: var(--dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

.card-barbearia {
    /* Evita que o navegador tente redesenhar o card de forma brusca no clique */
    -webkit-tap-highlight-color: transparent;
    transition: transform 0.2s ease, opacity 0.2s ease;
    will-change: transform, opacity;
}

.card-barbearia:active {
    transform: scale(0.98); /* Feedback de clique suave */
}


/* --- HEADER --- */
.header-portal {
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #000;
    border-bottom: 1px solid #222;
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    display: flex;         /* Ativa o alinhamento lado a lado */
    align-items: center;   /* Alinha verticalmente no centro */
    gap: 0px;             /* Cria um espaço entre o FiQ e o BUNITU */
}

.logo h2 {
    font-size: 1.5rem;
    color: red;            /* Cor do FiQ */
    margin: 0;             /* Remove margens padrão que podem desalinhá-los */
}

.logo span { 
    color: #fff;           /* Cor do BUNITU */
    font-size: 1.5rem;     /* Mantém o mesmo tamanho do h2 */
    font-weight: bold;     /* Deixa em negrito para combinar com o h2 */
}

.btn-localizar {
    background: var(--gold);
    color: #000;
    border: none;
    padding: 10px 18px;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-localizar:hover {
    background: #fff;
    transform: scale(1.05);
}

/* --- CONTEÚDO PRINCIPAL --- */
.container {
    padding: 30px 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.header-info {
    text-align: center;
    margin-bottom: 30px;
}

.header-info h2 {
    font-size: 1.8rem;
    color: var(--gold);
    margin-bottom: 5px;
}

.header-info p { color: var(--text-dim); font-size: 0.9rem; }

/* --- GRID DE CÍRCULOS (Compacto para caber 4+) --- */
.grid-barbearias {
    display: grid;
    /* Reduzido para 130px para garantir mais itens por linha */
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 30px 15px;
    justify-items: center;
}

/* --- CARD CIRCULAR --- */
.card-barbearia {
    width: 125px;
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.card-barbearia:hover {
    transform: translateY(-5px);
}

.circle-container {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    border: 2px solid var(--gold);
    overflow: hidden;
    background: #111;
    margin: 0 auto 10px;
    box-shadow: 0 6px 15px rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.card-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-barbearia h3 {
    font-size: 0.85rem;
    color: #fff;
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* --- INFO EXTRAS (KM e STATUS) --- */
.info-extras {
    font-size: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.distancia-tag {
    color: var(--success);
    font-weight: bold;
}

.horario-tag {
    color: var(--text-dim);
}

/* --- MODAL / IFRAME (Abertura interna) --- */
.modal-loja {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: #000;
    z-index: 9999;
}

.btn-fechar-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    background: var(--gold);
    color: #000;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    z-index: 10001;
}

iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* --- RESPONSIVIDADE (MOBILE) --- */
@media (max-width: 600px) {
    .header-portal { padding: 10px 15px; }
    .logo { font-size: 1.2rem; }
    
    .grid-barbearias {
        /* No celular tenta manter pelo menos 3 colunas se possível */
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 20px 10px;
    }

    .circle-container {
        width: 90px;
        height: 90px;
    }

    .card-barbearia {
        width: 100px;
    }

    .header-info h2 { font-size: 1.4rem; }
}

/* Loader */
.loader {
    grid-column: 1 / -1;
    padding: 50px;
    text-align: center;
    color: var(--gold);
}
.status-aberto {
    color: #00ff00 !important; /* Verde vibrante para testar */
}
.status-fechado {
    color: #ff0000 !important; /* Vermelho */
}
/* Esconde o conteúdo sem destruir as propriedades de Grid/Flex */
.conteudo-bloqueado {
    display: none !important;
}

.loja-footer {
    background: #000;
    border-top: 1px solid #1a1a1a;
    padding: 30px 20px 110px 20px; /* Espaço para não cobrir a barra de navegação */
    margin-top: 50px;
    color: #888;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    text-align: center;
}

.footer-logo {
    font-weight: bold;
    color: #fff;
    font-size: 1.1rem;
}

.footer-logo .gold {
    color: #FFD700;
}

#footer-nome-loja {
    font-size: 0.8rem;
    color: #555;
    margin-top: 4px;
}

.status-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.pulse-icon {
    width: 8px;
    height: 8px;
    background: #25D366;
    border-radius: 50%;
    box-shadow: 0 0 0 rgba(37, 211, 102, 0.4);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.btn-suporte-footer {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #111;
    border: 1px solid #222;
    color: #fff;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    text-decoration: none;
    transition: 0.3s;
}

.btn-suporte-footer:hover {
    background: #1a1a1a;
    border-color: #FFD700;
}

.copyright {
    font-size: 0.65rem;
    color: #333;
}

@media (min-width: 768px) {
    .footer-container {
        flex-direction: row;
        justify-content: space-between;
    }
}

/*logoFooter*/
.footer-logo {
    margin-bottom: 10px;
}

.brand-logo {
    width: 50px; /* Ajuste conforme necessário */
    height: auto;
    display: block;
    opacity: 0.9;
    transition: opacity 0.3s ease;
    
}

.brand-logo:hover {
    opacity: 1;
}

/* Garante que o conteúdo do footer fique centralizado */
.footer-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
/* Esconde a barra de rolagem do container de categorias */
#container-categorias {
    -ms-overflow-style: none;  /* IE e Edge */
    scrollbar-width: none;    /* Firefox */
}

#container-categorias::-webkit-scrollbar {
    display: none;            /* Chrome, Safari e Opera */
}

/* Opcional: Se quiser tirar de toda a página também */
body {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

body::-webkit-scrollbar {
    display: none;
}
