/* ==========================================================================
   EuTôNoJanga — identidade visual
   Conceito: litoral + comércio de bairro. Areia (fundo), mar (cor principal),
   pôr do sol (destaque/ação) e tinta escura (texto). Mobile-first.
   ========================================================================== */

/* Fontes hospedadas no próprio site (sem envio de IP de visitantes a terceiros) */
@font-face { font-family: "Baloo 2"; font-weight: 700; font-display: swap; src: url("../fonts/baloo-2-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Baloo 2"; font-weight: 800; font-display: swap; src: url("../fonts/baloo-2-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Nunito Sans"; font-weight: 400; font-display: swap; src: url("../fonts/nunito-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Nunito Sans"; font-weight: 600; font-display: swap; src: url("../fonts/nunito-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Nunito Sans"; font-weight: 700; font-display: swap; src: url("../fonts/nunito-sans-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Nunito Sans"; font-weight: 800; font-display: swap; src: url("../fonts/nunito-sans-latin-800-normal.woff2") format("woff2"); }

:root {
    --ej-ink: #14262e;
    --ej-ink-soft: #4a5d66;
    --ej-sea: #0b7a86;
    --ej-sea-dark: #075a63;
    --ej-sea-light: #d9f0f1;
    --ej-sun: #f2643a;
    --ej-sun-dark: #d24c24;
    --ej-sun-light: #ffe6dc;
    --ej-sand: #fff8ee;
    --ej-sand-2: #f6ead8;
    --ej-line: #eadcc6;
    --ej-white: #ffffff;
    --ej-zap: #1d9a5c;
    --ej-zap-dark: #157a48;
    --ej-radius: 1rem;
    --ej-radius-lg: 1.5rem;
    --ej-shadow: 0 1px 2px rgba(20, 38, 46, .06), 0 6px 20px rgba(20, 38, 46, .07);
    --ej-font-display: "Baloo 2", "Trebuchet MS", system-ui, sans-serif;
    --ej-font-body: "Nunito Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

    /* Integração com variáveis do Bootstrap 5.3 */
    --bs-body-font-family: var(--ej-font-body);
    --bs-body-color: var(--ej-ink);
    --bs-body-bg: var(--ej-sand);
    --bs-primary: var(--ej-sea);
    --bs-primary-rgb: 11, 122, 134;
    --bs-link-color: var(--ej-sea-dark);
    --bs-link-color-rgb: 7, 90, 99;
    --bs-link-hover-color: var(--ej-sun-dark);
    --bs-border-color: var(--ej-line);
    --bs-border-radius: .75rem;
    --bs-focus-ring-color: rgba(11, 122, 134, .3);
}

body { font-size: 1rem; line-height: 1.6; -webkit-font-smoothing: antialiased; }
h1, h2, h3, .display-font { font-family: var(--ej-font-display); font-weight: 800; letter-spacing: -.01em; line-height: 1.15; }
h4, h5, h6 { font-weight: 800; }
.text-ink-soft { color: var(--ej-ink-soft) !important; }
.skip-link { position: absolute; left: -999px; top: .5rem; z-index: 2000; background: var(--ej-ink); color: #fff; padding: .5rem 1rem; border-radius: .5rem; }
.skip-link:focus { left: .5rem; }
:focus-visible { outline: 3px solid rgba(11, 122, 134, .45); outline-offset: 2px; }

/* --- Marca ---------------------------------------------------------------- */
.brand { display: inline-flex; align-items: center; gap: .5rem; text-decoration: none; }
.brand img { width: 38px; height: 38px; }
.brand-word { font-family: var(--ej-font-display); font-weight: 800; font-size: 1.45rem; line-height: 1; color: var(--ej-ink); }
.brand-word span { color: var(--ej-sea); }

/* --- Navegação ------------------------------------------------------------ */
.site-header { background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--ej-line); }
.site-header .nav-link { font-weight: 700; color: var(--ej-ink); border-radius: .6rem; padding: .5rem .8rem !important; }
.site-header .nav-link:hover, .site-header .nav-link.active { color: var(--ej-sea-dark); background: var(--ej-sea-light); }

/* --- Botões ---------------------------------------------------------------- */
.btn { font-weight: 700; border-radius: .8rem; }
.btn-sea { --bs-btn-bg: var(--ej-sea); --bs-btn-border-color: var(--ej-sea); --bs-btn-color: #fff; --bs-btn-hover-bg: var(--ej-sea-dark); --bs-btn-hover-border-color: var(--ej-sea-dark); --bs-btn-hover-color: #fff; --bs-btn-active-bg: var(--ej-sea-dark); }
.btn-sun { --bs-btn-bg: var(--ej-sun); --bs-btn-border-color: var(--ej-sun); --bs-btn-color: #fff; --bs-btn-hover-bg: var(--ej-sun-dark); --bs-btn-hover-border-color: var(--ej-sun-dark); --bs-btn-hover-color: #fff; --bs-btn-active-bg: var(--ej-sun-dark); }
.btn-zap { --bs-btn-bg: var(--ej-zap); --bs-btn-border-color: var(--ej-zap); --bs-btn-color: #fff; --bs-btn-hover-bg: var(--ej-zap-dark); --bs-btn-hover-border-color: var(--ej-zap-dark); --bs-btn-hover-color: #fff; }
.btn-outline-ink { --bs-btn-color: var(--ej-ink); --bs-btn-border-color: var(--ej-line); --bs-btn-hover-bg: var(--ej-sand-2); --bs-btn-hover-border-color: var(--ej-sand-2); --bs-btn-hover-color: var(--ej-ink); background: #fff; }

/* --- Hero ------------------------------------------------------------------ */
.hero { position: relative; overflow: hidden; padding: 2.5rem 0 4.5rem; background:
    radial-gradient(circle at 88% 12%, rgba(242, 100, 58, .22) 0 90px, transparent 91px),
    linear-gradient(180deg, var(--ej-sand) 0%, var(--ej-sand-2) 100%); }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 56px; background: url("../images/wave.svg") repeat-x bottom / 720px 56px; }
.hero-kicker { display: inline-flex; align-items: center; gap: .4rem; font-weight: 800; font-size: .85rem; color: var(--ej-sea-dark); background: var(--ej-sea-light); padding: .3rem .75rem; border-radius: 99px; }
.hero h1 { font-size: clamp(2rem, 7vw, 3.4rem); margin: 1rem 0 .75rem; }
.hero h1 em { font-style: normal; color: var(--ej-sun); }
.hero .lead { color: var(--ej-ink-soft); max-width: 36rem; }

.search-box { background: #fff; border-radius: var(--ej-radius-lg); box-shadow: var(--ej-shadow); padding: .5rem; display: flex; gap: .5rem; max-width: 40rem; border: 1px solid var(--ej-line); }
.search-box .form-control { border: 0; font-size: 1.05rem; padding: .75rem .9rem; background: transparent; box-shadow: none; }
.search-box .btn { padding: .7rem 1.25rem; white-space: nowrap; }
.search-hints a { font-weight: 700; font-size: .9rem; color: var(--ej-ink-soft); text-decoration: none; border-bottom: 1px dashed var(--ej-line); }
.search-hints a:hover { color: var(--ej-sea-dark); }

/* --- Seções ---------------------------------------------------------------- */
.section { padding: 3rem 0; }
.section-title { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.section-title h2 { font-size: clamp(1.5rem, 4.5vw, 2.1rem); margin: 0; }
.section-title a { font-weight: 800; text-decoration: none; white-space: nowrap; }

/* --- Categorias ------------------------------------------------------------ */
.cat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; }
@media (min-width: 576px) { .cat-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 992px) { .cat-grid { grid-template-columns: repeat(4, 1fr); } }
.cat-card { display: flex; align-items: center; gap: .75rem; padding: .9rem; background: #fff; border: 1px solid var(--ej-line); border-radius: var(--ej-radius); text-decoration: none; color: var(--ej-ink); transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; min-height: 4.25rem; }
.cat-card:hover { transform: translateY(-2px); box-shadow: var(--ej-shadow); border-color: transparent; color: var(--ej-ink); }
.cat-icon { flex: 0 0 2.6rem; height: 2.6rem; display: grid; place-items: center; border-radius: .8rem; background: var(--ej-sea-light); color: var(--ej-sea-dark); font-size: 1.25rem; }
.cat-card:nth-child(3n+2) .cat-icon { background: var(--ej-sun-light); color: var(--ej-sun-dark); }
.cat-card:nth-child(3n+3) .cat-icon { background: var(--ej-sand-2); color: #8a5a1f; }
.cat-name { font-weight: 800; font-size: .95rem; line-height: 1.2; }
.cat-count { font-size: .8rem; color: var(--ej-ink-soft); }

/* --- Cards de empresas --------------------------------------------------- */
.biz-card { background: #fff; border: 1px solid var(--ej-line); border-radius: var(--ej-radius); overflow: hidden; height: 100%; display: flex; flex-direction: column; transition: box-shadow .15s ease; }
.biz-card:hover { box-shadow: var(--ej-shadow); }
.biz-cover { aspect-ratio: 16 / 9; background: var(--ej-sea-light); display: grid; place-items: center; color: var(--ej-sea); font-size: 2.5rem; }
.biz-cover img { width: 100%; height: 100%; object-fit: cover; }
.biz-body { padding: 1rem; flex: 1; display: flex; flex-direction: column; gap: .35rem; }
.biz-cat { font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--ej-sun-dark); }
.biz-name { font-size: 1.1rem; font-weight: 800; margin: 0; }
.biz-name a { color: var(--ej-ink); text-decoration: none; }
.biz-name a::after { content: ""; position: absolute; inset: 0; }
.biz-actions { position: relative; z-index: 1; margin-top: auto; display: flex; gap: .5rem; }

/* --- Estados ---------------------------------------------------------------- */
.empty-state { text-align: center; padding: 2.5rem 1.25rem; background: #fff; border: 2px dashed var(--ej-line); border-radius: var(--ej-radius-lg); }
.empty-state .bi { font-size: 2.5rem; color: var(--ej-sea); }
.empty-state h3 { font-size: 1.35rem; margin: .75rem 0 .35rem; }

/* --- Planos ---------------------------------------------------------------- */
.plan-card { background: #fff; border: 1px solid var(--ej-line); border-radius: var(--ej-radius-lg); padding: 1.75rem; height: 100%; display: flex; flex-direction: column; }
.plan-card.is-highlight { border: 2px solid var(--ej-sun); box-shadow: var(--ej-shadow); position: relative; }
.plan-badge { position: absolute; top: -.8rem; right: 1.25rem; background: var(--ej-sun); color: #fff; font-weight: 800; font-size: .78rem; padding: .25rem .7rem; border-radius: 99px; }
.plan-price { font-family: var(--ej-font-display); font-weight: 800; font-size: 2.4rem; line-height: 1; }
.plan-price small { font-family: var(--ej-font-body); font-size: .95rem; font-weight: 600; color: var(--ej-ink-soft); }
.plan-features { list-style: none; padding: 0; margin: 1.25rem 0; display: grid; gap: .5rem; }
.plan-features li { display: flex; gap: .5rem; align-items: start; }
.plan-features .bi-check-circle-fill { color: var(--ej-zap); }
.plan-features .bi-dash-circle { color: var(--ej-ink-soft); }

/* --- Chamada para comerciantes ------------------------------------------- */
.cta-merchant { background: var(--ej-ink); color: #fff; border-radius: var(--ej-radius-lg); padding: 2rem; position: relative; overflow: hidden; }
.cta-merchant::before { content: ""; position: absolute; width: 220px; height: 220px; right: -60px; top: -60px; border-radius: 50%; background: var(--ej-sun); opacity: .9; }
.cta-merchant > * { position: relative; }
.cta-merchant h2 { font-size: clamp(1.5rem, 5vw, 2.2rem); }
.cta-merchant p { color: rgba(255, 255, 255, .8); max-width: 34rem; }
.steps { counter-reset: step; list-style: none; padding: 0; display: grid; gap: 1rem; }
.steps li { counter-increment: step; display: flex; gap: 1rem; background: #fff; border: 1px solid var(--ej-line); border-radius: var(--ej-radius); padding: 1rem 1.1rem; }
.steps li::before { content: counter(step); flex: 0 0 2.2rem; height: 2.2rem; display: grid; place-items: center; border-radius: 50%; background: var(--ej-sea); color: #fff; font-weight: 800; }

/* --- Páginas de conteúdo ------------------------------------------------- */
.page-head { padding: 2.25rem 0 1.25rem; }
.page-head h1 { font-size: clamp(1.8rem, 6vw, 2.6rem); }
.prose { background: #fff; border: 1px solid var(--ej-line); border-radius: var(--ej-radius-lg); padding: 1.5rem; }
@media (min-width: 768px) { .prose { padding: 2.25rem 2.5rem; } }
.prose h2 { font-size: 1.35rem; margin-top: 1.75rem; }
.prose h2:first-child { margin-top: 0; }

/* --- Rodapé ---------------------------------------------------------------- */
.site-footer { background: var(--ej-ink); color: rgba(255, 255, 255, .75); padding: 3rem 0 1.5rem; margin-top: 3rem; }
.site-footer .brand-word { color: #fff; }
.site-footer .brand-word span { color: #7fd6dd; }
.site-footer h3 { font-family: var(--ej-font-body); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: #fff; font-weight: 800; }
.site-footer a { color: rgba(255, 255, 255, .8); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer ul { list-style: none; padding: 0; display: grid; gap: .35rem; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 2rem; padding-top: 1.25rem; font-size: .85rem; }

/* --- Erros ------------------------------------------------------------------ */
.error-page { min-height: 55vh; display: grid; place-items: center; text-align: center; padding: 3rem 1rem; }
.error-code { font-family: var(--ej-font-display); font-weight: 800; font-size: clamp(4rem, 18vw, 7rem); line-height: 1; color: var(--ej-sun); }

/* --- Utilitários ------------------------------------------------------------ */
.pagination { --bs-pagination-active-bg: var(--ej-sea); --bs-pagination-active-border-color: var(--ej-sea); --bs-pagination-color: var(--ej-sea-dark); }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
@media (max-width: 575.98px) {
    .cta-merchant { padding: 1.5rem; }
    .cta-merchant::before { width: 130px; height: 130px; right: -50px; top: -50px; }
    .hero { background: linear-gradient(180deg, var(--ej-sand) 0%, var(--ej-sand-2) 100%); }
}

/* --- Autenticação (Etapa 2) ---------------------------------------------- */
.auth-wrap { padding: 2rem 0 1rem; background: linear-gradient(180deg, var(--ej-sand-2) 0, var(--ej-sand) 14rem); }
.auth-card { max-width: 30rem; margin: 0 auto; background: #fff; border: 1px solid var(--ej-line); border-radius: var(--ej-radius-lg); padding: 1.5rem; box-shadow: var(--ej-shadow); }
@media (min-width: 576px) { .auth-card { padding: 2.25rem; } .auth-wrap { padding-top: 3rem; } }
.auth-icon { width: 4rem; height: 4rem; margin: 0 auto 1rem; display: grid; place-items: center; border-radius: 50%; background: var(--ej-sea-light); color: var(--ej-sea-dark); font-size: 1.8rem; }
.form-control-lg { font-size: 1rem; }
.form-control:focus, .form-check-input:focus { border-color: var(--ej-sea); box-shadow: 0 0 0 .25rem rgba(11, 122, 134, .18); }
.form-check-input:checked { background-color: var(--ej-sea); border-color: var(--ej-sea); }
.password-group .btn { border-color: var(--bs-border-color); }

/* --- Painéis ------------------------------------------------------------------ */
.panel-body { background: #f7f3ec; }
.panel-topbar { position: sticky; top: 0; z-index: 1030; display: flex; align-items: center; gap: .75rem; padding: .6rem 1rem; background: #fff; border-bottom: 1px solid var(--ej-line); }
.panel-topbar .brand-word { font-size: 1.25rem; }
.bg-sea-light { background: var(--ej-sea-light); color: var(--ej-sea-dark); }
.panel-shell { display: flex; min-height: calc(100vh - 57px); }
.panel-sidebar { width: 260px; flex: 0 0 260px; background: #fff; border-right: 1px solid var(--ej-line); }
@media (min-width: 992px) { .panel-sidebar { position: sticky; top: 57px; height: calc(100vh - 57px); overflow-y: auto; } }
.panel-menu { list-style: none; margin: 0; padding: .25rem; display: grid; gap: .15rem; }
.panel-menu a, .panel-menu .is-disabled { display: flex; align-items: center; gap: .7rem; padding: .6rem .75rem; border-radius: .7rem; font-weight: 700; color: var(--ej-ink); text-decoration: none; }
.panel-menu a:hover { background: var(--ej-sand); }
.panel-menu a.active { background: var(--ej-sea-light); color: var(--ej-sea-dark); }
.panel-menu .bi { font-size: 1.1rem; }
.panel-menu .is-disabled { color: #9aa7ad; cursor: not-allowed; }
.panel-menu .is-disabled small { margin-left: auto; font-size: .7rem; font-weight: 700; background: var(--ej-sand-2); color: #8a6a3e; border-radius: 99px; padding: .05rem .45rem; }
.panel-main { flex: 1; min-width: 0; padding: 1.25rem 1rem 3rem; }
@media (min-width: 768px) { .panel-main { padding: 2rem 2.25rem 3rem; } }
.panel-title { font-size: clamp(1.5rem, 4vw, 2rem); margin-bottom: 1.25rem; }
.panel-card { background: #fff; border: 1px solid var(--ej-line); border-radius: var(--ej-radius); padding: 1.25rem; }
@media (min-width: 768px) { .panel-card { padding: 1.5rem; } }
.stat-card { background: #fff; border: 1px solid var(--ej-line); border-radius: var(--ej-radius); padding: 1rem 1.1rem; height: 100%; display: flex; flex-direction: column; gap: .2rem; }
.stat-label { font-size: .8rem; font-weight: 800; color: var(--ej-ink-soft); text-transform: uppercase; letter-spacing: .03em; }
.stat-value { font-size: 1.15rem; font-weight: 800; }
.stat-value.display-font { font-size: 2rem; line-height: 1.1; }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: .75rem; }
.checklist li { display: flex; gap: .65rem; align-items: start; }
.checklist .bi { font-size: 1.2rem; color: #b9c3c7; margin-top: .1rem; }
.checklist .is-done .bi { color: var(--ej-zap); }
.form-control, .form-select { background-color: #fff; }
.form-control:disabled, .form-control[readonly] { background-color: var(--ej-sand); }
.panel-sidebar { width: 272px; flex-basis: 272px; }
.panel-menu a > span, .panel-menu .is-disabled > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.panel-menu .is-disabled small { white-space: nowrap; flex-shrink: 0; }
.table > thead th { font-size: .8rem; text-transform: uppercase; letter-spacing: .03em; color: var(--ej-ink-soft); background: transparent; }

/* --- Etapa 3: empresa, fotos, catálogo, admin ---------------------------- */
.hours-grid { display: grid; gap: .5rem; }
.hours-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem; padding: .55rem .75rem; border: 1px solid var(--ej-line); border-radius: .75rem; background: #fff; }
.hours-row .form-check { min-width: 8rem; }
.hours-row input[type=time] { width: 8.75rem; }
.hours-row.is-closed .js-hours-times { opacity: .4; }
.logo-preview { aspect-ratio: 1; max-width: 220px; border: 2px dashed var(--ej-line); border-radius: var(--ej-radius); display: grid; place-items: center; align-content: center; gap: .25rem; color: var(--ej-ink-soft); background: var(--ej-sand); overflow: hidden; }
.logo-preview .bi { font-size: 2.2rem; }
.logo-preview img { width: 100%; height: 100%; object-fit: cover; }
.logo-preview.logo-sm { width: 72px; flex: 0 0 72px; border-style: solid; border-width: 1px; }
.upload-box { background: var(--ej-sand); border: 1px dashed var(--ej-line); border-radius: var(--ej-radius); padding: 1rem; }
.gallery-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: .75rem; }
.gallery-grid-sm { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }
.gallery-item { position: relative; display: block; }
.gallery-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: .75rem; border: 1px solid var(--ej-line); background: var(--ej-sand); }
.gallery-badge { position: absolute; top: .4rem; left: .4rem; background: var(--ej-sun); color: #fff; font-size: .72rem; font-weight: 800; padding: .1rem .5rem; border-radius: 99px; }
.catalog-list { list-style: none; margin: 0; padding: 0; }
.catalog-list li { display: flex; align-items: center; gap: .75rem; padding: .75rem 1rem; border-bottom: 1px solid var(--ej-line); }
.catalog-list li:last-child { border-bottom: 0; }
.catalog-thumb { flex: 0 0 56px; height: 56px; border-radius: .6rem; background: var(--ej-sea-light); color: var(--ej-sea-dark); display: grid; place-items: center; overflow: hidden; font-size: 1.3rem; }
.catalog-thumb img { width: 100%; height: 100%; object-fit: cover; }
.min-w-0 { min-width: 0; }
.info-list { display: grid; grid-template-columns: 6.5rem 1fr; gap: .35rem .75rem; margin: 0; font-size: .95rem; }
.info-list dt { font-weight: 700; color: var(--ej-ink-soft); }
.info-list dd { margin: 0; overflow-wrap: anywhere; }
.icon-picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(2.6rem, 1fr)); gap: .35rem; }
.icon-picker .btn { padding: .4rem 0; }
.icon-picker .btn-check:checked + .btn { background: var(--ej-sea); border-color: var(--ej-sea); color: #fff; }
.loc-tree { list-style: none; margin: 0; padding: 0; }
.loc-row { padding: .5rem .25rem; border-bottom: 1px solid var(--ej-line); }
.loc-row.depth-1 { padding-left: 1.5rem; }
.loc-row.depth-2 { padding-left: 3rem; }
.status-tabs .nav-link { font-weight: 700; color: var(--ej-ink); white-space: nowrap; }
.status-tabs .nav-link.active { background: var(--ej-sea); color: #fff; }
.stretched-row::after { content: ""; position: absolute; inset: 0; }
.table-hover tbody tr { position: relative; }
.btn-check:checked + .btn-outline-ink { background: var(--ej-sea-light); border-color: var(--ej-sea); color: var(--ej-sea-dark); }
@media (max-width: 575.98px) {
    .hours-row { flex-direction: column; align-items: stretch; }
    .hours-row .js-hours-times { width: 100%; }
    .hours-row input[type=time] { width: auto; flex: 1 1 0; min-width: 0; }
}

/* --- Etapa 4: portal público ------------------------------------------------ */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; font-size: .85rem; margin: 1.25rem 0 1rem; color: var(--ej-ink-soft); }
.crumbs a { color: var(--ej-ink-soft); text-decoration: none; font-weight: 700; }
.crumbs a:hover { color: var(--ej-sea-dark); }
.crumbs .bi { font-size: .65rem; }
.crumbs span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 60vw; }
.preview-banner { background: var(--ej-ink); color: #fff; padding: .6rem 0; font-size: .9rem; }
.biz-page { padding-bottom: 5rem; }
@media (min-width: 992px) { .biz-page { padding-bottom: 2rem; } }
.biz-gallery { display: grid; grid-auto-flow: column; grid-auto-columns: 85%; gap: .5rem; overflow-x: auto; scroll-snap-type: x mandatory; border-radius: var(--ej-radius-lg); margin-bottom: 1rem; scrollbar-width: thin; }
.biz-gallery-item { scroll-snap-align: start; display: block; }
.biz-gallery-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--ej-radius); background: var(--ej-sand-2); }
@media (min-width: 768px) {
    .biz-gallery { grid-auto-flow: row; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: repeat(2, 10.5rem); grid-auto-columns: auto; overflow: hidden; }
    .biz-gallery-item:first-child { grid-row: span 2; }
    .biz-gallery-item:nth-child(n+6) { display: none; }
    .biz-gallery-item img { aspect-ratio: auto; height: 100%; }
    .biz-gallery.count-1 { grid-template-columns: 1fr; grid-template-rows: 22rem; }
    .biz-gallery.count-2 { grid-template-columns: 2fr 1fr; grid-template-rows: 21.5rem; }
    .biz-gallery.count-2 .biz-gallery-item:first-child { grid-row: auto; }
    .biz-gallery.count-3 { grid-template-columns: 2fr 1fr; }
    .biz-gallery.count-4 { grid-template-columns: 2fr 1fr 1fr; }
    .biz-gallery.count-4 .biz-gallery-item:nth-child(4) { grid-column: span 2; }
}
.biz-head { display: flex; gap: 1rem; align-items: center; margin: .5rem 0 1rem; }
.biz-logo { flex: 0 0 76px; height: 76px; border-radius: 1.1rem; overflow: hidden; background: var(--ej-sea-light); color: var(--ej-sea-dark); display: grid; place-items: center; font-size: 2rem; border: 3px solid #fff; box-shadow: var(--ej-shadow); }
@media (min-width: 768px) { .biz-logo { flex-basis: 96px; height: 96px; } }
.biz-logo img { width: 100%; height: 100%; object-fit: cover; }
.biz-title { font-size: clamp(1.6rem, 6vw, 2.5rem); margin: .1rem 0 .35rem; }
.open-pill { display: inline-flex; align-items: center; gap: .35rem; font-weight: 800; padding: .15rem .6rem; border-radius: 99px; font-size: .8rem; }
.open-pill .bi { font-size: .5rem; }
.open-pill.is-open { background: #dcf5e7; color: #136b40; }
.open-pill.is-closed { background: #f3e4e1; color: #9b3a24; }
.biz-actions-bar { display: flex; flex-wrap: wrap; gap: .5rem; }
.biz-actions-bar .btn-lg { font-size: 1rem; padding: .65rem 1.1rem; }
.biz-desc { white-space: normal; }
.item-card { display: flex; gap: .75rem; background: #fff; border: 1px solid var(--ej-line); border-radius: var(--ej-radius); padding: .75rem; height: 100%; }
.item-card img { width: 88px; height: 88px; object-fit: cover; border-radius: .75rem; flex: 0 0 88px; background: var(--ej-sand-2); }
.item-body { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.item-price { font-weight: 800; color: var(--ej-sea-dark); }
.side-card { background: #fff; border: 1px solid var(--ej-line); border-radius: var(--ej-radius); padding: 1.1rem 1.2rem; margin-bottom: 1rem; }
.side-title { font-family: var(--ej-font-body); font-weight: 800; text-transform: uppercase; letter-spacing: .04em; font-size: .78rem; color: var(--ej-ink-soft); margin-bottom: .75rem; }
.hours-list { display: grid; grid-template-columns: auto 1fr; gap: .3rem 1rem; margin: 0; }
.hours-list dt { font-weight: 700; }
.hours-list dd { margin: 0; text-align: right; }
.hours-list .is-today { color: var(--ej-sea-dark); font-weight: 800; }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.contact-list li { display: flex; gap: .6rem; align-items: center; min-width: 0; }
.contact-list .bi { color: var(--ej-sea); font-size: 1.1rem; }
.contact-list a { overflow-wrap: anywhere; font-weight: 700; text-decoration: none; }
address { font-style: normal; }
.sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1020; display: flex; gap: .5rem; padding: .6rem .75rem calc(.6rem + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .96); border-top: 1px solid var(--ej-line); box-shadow: 0 -6px 20px rgba(20, 38, 46, .08); }
.chip-row { display: flex; gap: .4rem; overflow-x: auto; padding-bottom: .25rem; }
.chip { flex: 0 0 auto; padding: .35rem .8rem; border-radius: 99px; background: #fff; border: 1px solid var(--ej-line); color: var(--ej-ink); font-weight: 700; font-size: .88rem; text-decoration: none; }
.chip span { color: var(--ej-ink-soft); font-weight: 600; margin-left: .15rem; }
.chip.is-active { background: var(--ej-sea); border-color: var(--ej-sea); color: #fff; }
.chip.is-active span { color: rgba(255, 255, 255, .8); }
.biz-cover { position: relative; }
.biz-cover img.is-logo { object-fit: contain; padding: 1.5rem; background: #fff; }
.biz-card-logo { position: absolute; left: .75rem; bottom: -1.1rem; width: 2.8rem !important; height: 2.8rem !important; border-radius: .7rem; border: 3px solid #fff; box-shadow: var(--ej-shadow); object-fit: cover; }
.biz-cover + .biz-body { padding-top: 1.35rem; }

/* --- Etapa 5: PIX e financeiro ----------------------------------------------- */
.pix-box { background: var(--ej-sand); border: 1px solid var(--ej-line); border-radius: var(--ej-radius); padding: 1rem; }
.pix-qr { width: 200px; max-width: 100%; aspect-ratio: 1; margin: 0 auto; background: #fff; border-radius: .75rem; padding: .35rem; display: grid; place-items: center; }
.pix-qr svg { width: 100%; height: auto; display: block; }
.proof-frame { width: 100%; min-height: 520px; border: 1px solid var(--ej-line); border-radius: var(--ej-radius); background: #fff; }
.proof-img { max-width: 100%; max-height: 640px; border-radius: var(--ej-radius); border: 1px solid var(--ej-line); display: block; margin: 0 auto; background: #fff; }
.money { font-family: var(--ej-font-display); font-weight: 800; font-size: 1.9rem; }

/* ---------- Etapa 6: relatórios, usuários, auditoria ---------- */
.report-period { color: var(--ej-ink-soft); margin-bottom: .75rem; }
.stat-hero { background: var(--ej-sea-light); border-color: #b9e1e4; }
.stat-hero .stat-value { color: var(--ej-sea-dark); }
.data-table th, .data-table td { border-color: var(--ej-line); }
/* Barra de dado: 1 série, 1 cor (sea); trilho recessivo; cantos arredondados só na ponta do dado. */
.data-bar { display: block; height: 14px; max-width: 100%; background: transparent; }
.data-bar > span { display: block; height: 100%; min-width: 0; background: var(--ej-sea); border-radius: 0 4px 4px 0; }
.danger-zone { border-color: #f1b8b4; background: #fffafa; }
.audit-mini li:last-child, .audit-list li:last-child { border-bottom: 0 !important; }
.audit-row td { vertical-align: top; }
.audit-details { font-size: .8rem; color: var(--ej-ink-soft); margin: 0; padding: 0; list-style: none; word-break: break-word; }
.audit-details li { line-height: 1.35; }
@media (max-width: 575.98px) {
    .stat-value.display-font { font-size: 1.6rem; }
}
.footer-social a { display: inline-flex; width: 2.5rem; height: 2.5rem; align-items: center; justify-content: center; border-radius: 50%; background: rgba(255,255,255,.08); font-size: 1.15rem; margin-right: .4rem; }
.info-list-wide { grid-template-columns: minmax(9rem, 1fr) auto; }
.info-list-wide dd { text-align: right; }
.data-table td, .data-table th { background: transparent; }
/* Auditoria no celular: cada registro vira um cartão (sem rolagem lateral). */
@media (max-width: 767.98px) {
    .audit-table thead { display: none; }
    .audit-table, .audit-table tbody, .audit-table tr, .audit-table td { display: block; width: 100%; }
    .audit-table tr { padding: .75rem 1rem; border-bottom: 1px solid var(--ej-line); }
    .audit-table td { border: 0; padding: .1rem 0 !important; white-space: normal !important; }
}

/* Recorte de imagens (painel → Fotos e logotipo) */
.crop-stage { height: min(60vh, 480px); background: #1f2a30; border-radius: .5rem; overflow: hidden; }
.crop-stage img { display: block; max-width: 100%; }
.crop-modal .js-crop-ratios .btn.active, .crop-modal .js-crop-ratios .btn.active:hover { background: var(--ej-sea-light); border-color: var(--ej-sea); color: var(--ej-sea-dark); }
.crop-preview { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-top: .5rem; }
.crop-preview img { width: 72px; height: 72px; object-fit: cover; border-radius: .375rem; border: 1px solid rgba(0,0,0,.1); }

/* Visualizador de fotos da página da empresa (sem biblioteca: <dialog> + scroll-snap) */
.biz-gallery { position: relative; }
.biz-gallery-item { position: relative; cursor: zoom-in; }
.biz-gallery-more { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(20, 30, 36, .55); color: #fff; font-weight: 700; font-size: 1.15rem; border-radius: var(--ej-radius); }
.photo-viewer { width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: #0f1418; color: #fff; overflow: hidden; }
.photo-viewer::backdrop { background: rgba(0, 0, 0, .85); }
.photo-viewer[open] { display: flex; flex-direction: column; }
.photo-viewer-top { display: flex; justify-content: space-between; align-items: center; padding: .5rem .75rem; flex: 0 0 auto; }
.photo-viewer-count { font-size: .95rem; opacity: .85; }
.photo-viewer-track { flex: 1 1 auto; min-height: 0; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior: contain; outline: none; }
.photo-viewer-track::-webkit-scrollbar { display: none; }
.photo-viewer-slide { flex: 0 0 100%; scroll-snap-align: center; scroll-snap-stop: always; display: grid; place-items: center; padding: 0 .5rem; }
.photo-viewer-slide img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: .25rem; user-select: none; }
.photo-viewer-caption { flex: 0 0 auto; margin: 0; padding: .6rem 1rem 1rem; text-align: center; font-size: .95rem; opacity: .9; min-height: 2.6rem; }
.photo-viewer-btn { border: 0; background: rgba(255, 255, 255, .12); color: #fff; width: 2.75rem; height: 2.75rem; border-radius: 50%; display: grid; place-items: center; font-size: 1.25rem; }
.photo-viewer-btn:hover, .photo-viewer-btn:focus-visible { background: rgba(255, 255, 255, .25); }
.photo-viewer-btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.photo-viewer-nav { position: absolute; top: 50%; transform: translateY(-50%); }
.photo-viewer-nav.prev { left: .75rem; }
.photo-viewer-nav.next { right: .75rem; }
.photo-viewer-nav[disabled] { opacity: .25; }
.photo-viewer.single .photo-viewer-nav, .photo-viewer.single .photo-viewer-count { display: none; }
@media (hover: none) and (pointer: coarse) { .photo-viewer-nav { display: none; } }
@media (prefers-reduced-motion: reduce) { .photo-viewer-track { scroll-behavior: auto; } }
