/* ═══════════════════════════════════════════════════════════
booking.css — v2
Layout: sidebar do negócio (esquerda) + stepper navbar (topo) + conteúdo
Usa exclusivamente as variáveis de global.css (--gold, --accent, --bg, etc.)
para manter consistência visual com o resto da aplicação.
════════════════════════════════════════════════════════════ */

#screen-client {
    background: var(--bg);
    min-height: 100vh;
    flex-direction: row;
    align-items: stretch;
}

/* ═══════════════════════════════════════
SIDEBAR DO NEGÓCIO (desktop)
═══════════════════════════════════════ */
.biz-sidebar {
    width: 340px;
    flex-shrink: 0;
    background: var(--bg-card);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}

.biz-sidebar-banner {
    height: 148px;
    background-size: cover;
    background-position: center;
    position: relative;
    flex-shrink: 0;
}

.biz-sidebar-banner::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.35) 100%);
}

.biz-sidebar-back {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    background: rgba(0,0,0,0.35);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 999px;
    padding: 6px 12px;
    text-decoration: none;
    backdrop-filter: blur(4px);
    transition: var(--transition);
}
.biz-sidebar-back:hover { background: rgba(0,0,0,0.5); color: #fff; }

.biz-sidebar-identity {
    padding: 0 24px 20px;
    text-align: center;
    margin-top: -38px;
    position: relative;
    z-index: 2;
}

.biz-sidebar-logo {
    width: 76px;
    height: 76px;
    border-radius: var(--radius);
    border: 4px solid var(--bg-card);
    box-shadow: var(--shadow-hover);
    background: var(--gold-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
    overflow: hidden;
    font-family: 'Plus Jakarta Sans', serif;
    font-size: 28px;
    font-weight: 700;
    color: var(--gold);
}
.biz-sidebar-logo img { width: 100%; height: 100%; object-fit: cover; }

.biz-sidebar-name {
    font-family: 'Plus Jakarta Sans', 'Noto Color Emoji', 'Segoe UI Emoji', 'Apple Color Emoji', 'Segoe UI Symbol', serif;
    font-size: 21px;
    font-weight: 700;
    color: var(--text);
    line-height: 1.25;
    margin-bottom: 4px;
}

.biz-sidebar-slogan {
    font-size: 12.5px;
    font-style: italic;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.biz-sidebar-type {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: var(--gold);
    background: var(--gold-light);
    border-radius: 20px;
    padding: 5px 12px;
}

/* Status "aberto agora" */
.biz-sidebar-status {
    margin: 14px 24px 0;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    font-weight: 600;
    padding: 9px 12px;
    border-radius: var(--radius);
}
.biz-sidebar-status.is-open   { background: #F0FDF4; color: var(--success); }
.biz-sidebar-status.is-closed { background: var(--bg); color: var(--text-muted); }

.status-dot {
    width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0;
}
.is-open .status-dot {
    background: var(--success);
    box-shadow: 0 0 0 0 rgba(61, 153, 112, 0.6);
    animation: bk-pulse 2s infinite;
}
.is-closed .status-dot { background: var(--border); }

@keyframes bk-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(61, 153, 112, 0.55); }
    70%  { box-shadow: 0 0 0 6px rgba(61, 153, 112, 0); }
    100% { box-shadow: 0 0 0 0 rgba(61, 153, 112, 0); }
}

.biz-sidebar-divider {
    margin: 20px 24px;
    height: 1px;
    background: var(--border);
}

.biz-sidebar-section {
    padding: 0 24px;
    margin-bottom: 20px;
}

.biz-sidebar-section-label {
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.biz-info-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 12.5px;
    color: var(--text);
    margin-bottom: 10px;
    line-height: 1.4;
}
.biz-info-row i { color: var(--gold); font-size: 13px; margin-top: 1px; flex-shrink: 0; }

/* Morada clicável → abre no Google Maps */
.biz-address-link {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px dashed var(--gold);
    transition: color 0.15s;
    cursor: pointer;
}
.biz-address-link:hover { color: var(--gold); }

.biz-about-text {
    font-size: 12.5px;
    color: var(--text-muted);
    line-height: 1.55;
    font-style: italic;
}

.biz-hours-list { display: flex; flex-direction: column; gap: 5px; }
.biz-hours-row {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    padding: 3px 0;
}
.biz-hours-row.is-today { font-weight: 700; color: var(--gold); }
.biz-hours-day { color: var(--text-muted); }
.biz-hours-row.is-today .biz-hours-day { color: var(--gold); }
.biz-hours-closed { color: var(--text-muted); opacity: 0.6; }

/* ═══════════════════════════════════════
MAIN COLUMN (navbar stepper + conteúdo)
═══════════════════════════════════════ */
.biz-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

/* Navbar superior tipo stepper */
.step-navbar {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
}

.step-navbar-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 20px;
    flex-shrink: 0;
    border-right: 1px solid var(--border);
    height: 64px;
}
.step-navbar-brand img { height: 20px; width: auto; display: block; }

.step-navbar-inner {
    flex: 1;
    max-width: 760px;
    margin: 0 auto;
    padding: 18px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0;
}

.step-nav-item {
    display: flex;
    align-items: center;
    gap: 9px;
    position: relative;
    flex: 1;
}
.step-nav-item:last-child {
    flex: none;
}

/* O traço é colocado a seguir à label do texto, em fluxo flex,
evitando sobreposição de texto em qualquer resolução. */
.step-nav-item:not(:last-child)::after {
    content: '';
    height: 1.5px;
    background: var(--border);
    flex: 1;
    min-width: 20px;
    margin: 0 12px;
    transition: var(--transition);
}

.step-nav-item.done:not(:last-child)::after {
    background: var(--gold);
}

.step-nav-num {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 1.5px solid var(--border);
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    flex-shrink: 0;
    transition: var(--transition);
    position: relative;
    z-index: 1;
}
.step-nav-item.active .step-nav-num,
.step-nav-item.done .step-nav-num   { background: var(--gold); border-color: var(--gold); color: #fff; }

.step-nav-label {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-muted);
    white-space: nowrap;
    position: relative;
    z-index: 1;
}
.step-nav-item:last-child .step-nav-label { margin-right: 0; }

.step-nav-item.active .step-nav-label,
.step-nav-item.done .step-nav-label   { color: var(--gold); }

@media (max-width: 640px) {
    .step-nav-label { display: none; }
    .step-nav-item { padding: 0 6px; }
    .step-nav-item:not(:last-child) .step-nav-num::after { width: 14px; }
}

.btn-reset-booking {
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--radius, 8px);
    color: var(--text-muted);
    font-size: 11.5px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    padding: 6px 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-reset-booking:hover {
    border-color: rgba(220, 53, 69, 0.4);
    background: rgba(220, 53, 69, 0.05);
    color: var(--danger, #dc3545);
}

@media (max-width: 576px) {
    .btn-reset-booking span { display: none; }
    .btn-reset-booking { padding: 8px 10px; }
    .step-navbar-reset-container { padding-right: 12px !important; }
}

/* ── ÁREA DE CONTEÚDO ── */
.biz-content {
    flex: 1;
    padding: 36px 0;
}

.biz-content-inner { max-width: 760px; margin: 0 auto; padding: 0 24px; }

/* ═══════════════════════════════════════
MOBILE: sidebar colapsa em header compacto
═══════════════════════════════════════ */
.biz-mobile-header { display: none; }

@media (max-width: 1024px) {
    #screen-client { flex-direction: column; }
    
    .biz-sidebar { display: none; }
    
    .biz-mobile-header {
        display: block;
        background: var(--bg-card);
        border-bottom: 1px solid var(--border);
    }
    
    .biz-mobile-brand {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 10px 16px;
        border-bottom: 1px solid var(--border);
    }
    .biz-mobile-brand img { height: 16px; width: auto; display: block; }
    
    .biz-mobile-banner {
        height: 96px;
        background-size: cover;
        background-position: center;
        position: relative;
    }
    .biz-mobile-banner::after {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(180deg, rgba(0,0,0,0.05), rgba(0,0,0,0.3));
    }
    
    .biz-mobile-back {
        position: absolute;
        top: 12px;
        left: 12px;
        z-index: 2;
        display: inline-flex;
        align-items: center;
        gap: 5px;
        font-size: 11px;
        font-weight: 600;
        color: #fff;
        background: rgba(0,0,0,0.35);
        border: 1px solid rgba(255,255,255,0.25);
        border-radius: 999px;
        padding: 5px 10px;
        text-decoration: none;
    }
    
    .biz-mobile-row {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 12px 16px 14px;
        margin-top: -30px;
        position: relative;
        z-index: 2;
    }
    
    .biz-mobile-logo {
        width: 52px;
        height: 52px;
        border-radius: var(--radius);
        border: 3px solid var(--bg-card);
        box-shadow: var(--shadow-hover);
        background: var(--gold-light);
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
        flex-shrink: 0;
        font-family: 'Plus Jakarta Sans', serif;
        font-size: 20px;
        font-weight: 700;
        color: var(--gold);
    }
    .biz-mobile-logo img { width: 100%; height: 100%; object-fit: cover; }
    
    .biz-mobile-info { flex: 1; min-width: 0; padding-top: 30px; }
    .biz-mobile-name {
        font-family: 'Plus Jakarta Sans', serif;
        font-size: 16.5px;
        font-weight: 700;
        color: var(--text);
        line-height: 1.2;
    }
    .biz-mobile-status {
        display: inline-flex;
        align-items: center;
        gap: 5px;
        font-size: 11px;
        font-weight: 600;
        margin-top: 3px;
    }
    .biz-mobile-status.is-open   { color: var(--success); }
    .biz-mobile-status.is-closed { color: var(--text-muted); }
    
    /* Detalhes extra do negócio (morada, telefone, horário de hoje) — visíveis por defeito no mobile */
    .biz-mobile-details {
        padding: 0 16px 14px;
        display: flex;
        flex-direction: column;
        gap: 6px;
        border-top: 1px solid var(--border);
        padding-top: 12px;
        margin: 0 16px 12px;
    }
    .biz-mobile-detail-row {
        display: flex;
        align-items: flex-start;
        gap: 8px;
        font-size: 12px;
        color: var(--text);
        line-height: 1.4;
    }
    .biz-mobile-detail-row i { color: var(--gold); font-size: 12px; margin-top: 2px; flex-shrink: 0; }
    
    .step-navbar-inner { padding: 14px 16px; overflow-x: auto; justify-content: flex-start; }
    .step-navbar-inner .step-nav-item { flex: none; }
    .step-navbar-inner .step-nav-item:not(:last-child)::after { width: 24px; flex: none; }
    .biz-content { padding: 24px 0; }
    .biz-content-inner { padding: 0 16px; }
}

/* ── CONTROLO DE VISIBILIDADE DOS STEPS ── */
.client-step        { display: none; }
.client-step.active { display: block; }

/* ── CARD DE SELEÇÃO DE SERVIÇO ── */
.service-select-card {
    background: var(--bg-card);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    padding: 18px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 16px;
}
.service-select-card:hover    { border-color: var(--gold); box-shadow: var(--shadow); }
.service-select-card.selected { border-color: var(--gold); background: var(--gold-light); }

/* Preço e Tag de Promoção (herdam as cores do tema) */
.svc-promo-price {
    color: var(--gold) !important;
    font-weight: 700;
}
.svc-promo-badge {
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    background: var(--gold-light) !important;
    color: var(--gold) !important;
    margin-left: 4px;
    display: inline-block;
    vertical-align: middle;
}

/* Caixa do ícone: largura fixa e conteúdo contido, para um serviço com
   vários emojis não transbordar por cima do nome. */
.svc-icon-box {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    overflow: hidden;
    white-space: nowrap;
}

/* ── Lista de serviços: mostrar mais / menos ── */
.svc-toggle-more {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    background: none;
    border: 1.5px dashed var(--border);
    border-radius: var(--radius);
    padding: 12px;
    font-size: 13px;
    font-weight: 700;
    color: var(--gold);
    cursor: pointer;
    transition: var(--transition);
}

.svc-toggle-more:hover { border-color: var(--gold); background: var(--gold-light); }
.svc-toggle-more i { font-size: 12px; }

.service-select-card--inactive {
    opacity: 0.5;
    cursor: not-allowed;
    filter: grayscale(30%);
    pointer-events: none;
}

/* "Sem preferência" indisponível por haver caução. Não é esbatido como o
   inativo: o texto é a explicação e tem de se ler. Fica só sem ação e com
   aspeto de nota, não de opção. */
.service-select-card--locked {
    cursor: default;
    background: var(--bg, #f7f6f3);
    border-style: dashed;
}
.service-select-card--locked:hover { border-color: var(--border); box-shadow: none; }

/* ═══════════════════════════════════════════════════════════════════════
   MARCAÇÃO EM CADEIA — um profissional por serviço, serviços seguidos
═══════════════════════════════════════════════════════════════════════ */

/* Entrada para o modo, no fim da lista de profissionais */
.chain-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    background: none;
    border: 1.5px dashed var(--border);
    border-radius: var(--radius);
    padding: 14px 16px;
    font-size: 13px;
    font-weight: 700;
    color: var(--gold);
    cursor: pointer;
    transition: var(--transition);
    text-align: left;
}
.chain-toggle:hover { border-color: var(--gold); background: var(--gold-light); }
.chain-toggle span  { flex: 1; }
.chain-toggle i     { font-size: 14px; }

/* Barra de contexto do modo (com a saída para o profissional único) */
.chain-intro {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--gold-light);
    border: 1px solid rgba(201, 169, 110, 0.35);
    border-radius: var(--radius);
    padding: 14px 16px;
    font-size: 13px;
    color: var(--text);
    flex-wrap: wrap;
}
.chain-intro > i        { font-size: 20px; color: var(--gold); }
.chain-intro > div      { flex: 1; min-width: 180px; line-height: 1.45; }
.chain-intro > div > div { color: var(--text-muted); font-size: 12.5px; margin-top: 2px; }
.chain-intro__undo      { padding: 6px 12px; font-size: 12px; white-space: nowrap; }

/* Um cartão por serviço, com os profissionais que o realizam */
.chain-svc {
    background: var(--bg-card);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
}
.chain-svc__head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}
.chain-svc__icon {
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    line-height: 1;
    overflow: hidden;
    border-radius: 10px;
    background: var(--gold-light);
    color: var(--gold);
}
.chain-svc__name { font-size: 14.5px; font-weight: 700; }
.chain-svc__meta { font-size: 12px; color: var(--text-muted); margin-top: 1px; }

/* Serviço com caução no modo cadeia: diz porque falta o "Sem preferência". */
.chain-svc__deposit-note {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    margin: 8px 0 2px;
    font-size: 11.5px;
    line-height: 1.45;
    color: var(--text-muted);
}
.chain-svc__deposit-note i { color: var(--gold); margin-top: 1px; flex: none; }

.chain-svc__people {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.chain-person {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: 1.5px solid var(--border);
    border-radius: 999px;
    padding: 6px 12px 6px 6px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    transition: var(--transition);
    max-width: 100%;
}
.chain-person:hover     { border-color: var(--gold); }
.chain-person.is-active { border-color: var(--gold); background: var(--gold-light); color: var(--gold); }
.chain-person img,
.chain-person__initial {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    object-fit: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    background: var(--bg);
    border: 1px solid var(--border);
    flex: 0 0 26px;
}
.chain-person__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* A ordem por que os serviços vão acontecer */
.chain-preview {
    border: 1.5px dashed var(--border);
    border-radius: var(--radius);
    padding: 16px;
}
.chain-preview__title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--text-muted);
    margin-bottom: 12px;
}
.chain-preview__title i { color: var(--gold); margin-right: 4px; }
.chain-preview__step {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 0;
    border-top: 1px solid var(--border);
}
.chain-preview__step:first-of-type { border-top: 0; padding-top: 0; }
.chain-preview__num {
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--gold);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}
.chain-preview__body { flex: 1; min-width: 0; }
.chain-preview__svc  { font-size: 13.5px; font-weight: 600; }
.chain-preview__emp  { font-size: 12px; color: var(--text-muted); margin-top: 1px; }
.chain-preview__note {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--border);
    line-height: 1.45;
}
.chain-preview__note i { color: var(--gold); margin-right: 4px; }

/* Sequência no cartão de resumo (lateral / gaveta) */
.svc-preview-chain {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 8px;
}
.svc-preview-chain__step { display: flex; align-items: flex-start; gap: 8px; }
.svc-preview-chain__num {
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--gold-light);
    color: var(--gold);
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1px;
}
.svc-preview-chain__txt {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.4;
}
.svc-preview-chain__txt strong { color: var(--text); display: block; }
.svc-preview-chain__txt em     { color: var(--gold); font-style: normal; font-weight: 700; }

/* Caução repartida por vários profissionais */
.deposit-parts { display: flex; flex-direction: column; gap: 10px; margin-bottom: 12px; }
.deposit-part {
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 10px 12px;
    background: var(--bg-card);
}
.deposit-part__head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 10px;
    font-size: 13px;
}
.deposit-part__head span { color: var(--gold); font-weight: 700; }
.deposit-part__svc { font-size: 11.5px; color: var(--text-muted); margin-bottom: 6px; }

.service-badge-inactive {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    color: #fff;
    background: var(--text-muted);
    border-radius: 5px;
    padding: 2px 6px;
    margin-left: 6px;
    vertical-align: middle;
}

/* ── CALENDÁRIO MINI (seleção de dia) ── */
.mini-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.mini-cal-hdr { text-align: center; font-size: 10px; font-weight: 700; text-transform: uppercase; color: var(--text-muted); padding: 4px 0; }
.mini-cal-day {
    aspect-ratio: 1;
    display: flex; align-items: center; justify-content: center;
    border-radius: 8px;
    font-size: 13px; font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text);
}
.mini-cal-day:hover:not(.disabled):not(.empty) { background: var(--gold-light); color: var(--gold); }
.mini-cal-day.today    { font-weight: 700; color: var(--gold); }
.mini-cal-day.selected { background: var(--gold); color: #fff; }
.mini-cal-day.disabled { color: #ccc; cursor: default; }
.mini-cal-day.empty    { pointer-events: none; }

.mini-cal-day.day-holiday {
    background: var(--gold-light);
    color: var(--gold);
    border: 1px solid rgba(201, 169, 110, 0.4);
    cursor: not-allowed;
    opacity: 0.9;
}
.mini-cal-day.day-closed {
    background: var(--bg);
    color: var(--text-muted);
    border: 1px solid var(--border);
    cursor: not-allowed;
    opacity: 0.7;
}

/* Profissional escolhido de férias/folga — cinzento (indisponível), para não
   se confundir com o dourado dos feriados da própria loja. */
.mini-cal-day.day-emp-off {
    background: var(--bg);
    color: var(--text-muted);
    border: 1px solid var(--border);
    cursor: not-allowed;
    opacity: 0.7;
}

/* "Hoje" precisa de se manter visível mesmo quando o próprio dia está
   encerrado/de férias — .day-closed/.day-holiday vêm depois no CSS e, com a
   mesma especificidade, apagavam a cor de "hoje". Um anel próprio (que
   nenhuma dessas classes define) sobrevive à combinação sem depender da
   ordem das regras. */
.mini-cal-day.today {
    box-shadow: inset 0 0 0 2px var(--gold);
}

/* ── SLOTS DE HORÁRIO ── */
.time-slot {
    background: var(--bg-card);
    border: 1.5px solid var(--border);
    border-radius: 8px;
    padding: 10px 14px;
    text-align: center;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    transition: var(--transition);
}
.time-slot:hover    { border-color: var(--gold); color: var(--gold); }
.time-slot.selected { background: var(--gold); border-color: var(--gold); color: #fff; }
.time-slot.taken    { background: #F6F6F6; color: #ccc; cursor: default; border-color: var(--border); }

/* ── CHECKBOX DE PRIVACIDADE / RGPD ── */
.form-check-privacy {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    background: var(--bg);
    border: 1px dashed var(--border);
    border-radius: var(--radius);
    margin-top: 8px;
}

.custom-checkbox {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    cursor: pointer;
    accent-color: var(--gold); /* Irá aplicar a cor dourada do seu tema à checkbox */
    flex-shrink: 0;
}

.privacy-label {
    font-size: 12.5px;
    color: var(--text);
    line-height: 1.45;
    cursor: pointer;
    user-select: none;
}

/* Indicativo de campos obrigatóriso */
.required-star {
    color: #e74c3c; /* Cor vermelha para destacar */
    margin-left: 3px;
    font-weight: bold;
}

/* ── BOTÃO DE RESET GLOBAL NO TOPO ── */
.btn-reset-global {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-muted);
    padding: 6px 12px;
    border-radius: var(--radius);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
}

.btn-reset-global i {
    font-size: 14px;
}

.btn-reset-global:hover {
    border-color: #dc3545;
    color: #dc3545;
    background: rgba(220, 53, 69, 0.05);
}

/* ═══════════════════════════════════════
RESPONSIVIDADE — ajustes finos mobile
═══════════════════════════════════════ */

@media (max-width: 1024px) {
    .biz-content-inner .row.g-3 > .col-md-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .mini-cal-day { font-size: 12px; }
    
    .biz-content-inner [style*="grid-template-columns:repeat(3,1fr)"] {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 480px) {
    .biz-mobile-name { font-size: 15px; }
    .biz-sidebar-identity, .biz-sidebar-section { padding-left: 18px; padding-right: 18px; }
    .service-select-card { padding: 14px; gap: 12px; }
}

@media (min-width: 768px) {
    #planiologo {
        width: 15% !important;
    }
}

/* ── AJUSTES DE BOTÃO DE RESET (LIMPAR TUDO) EM MOBILE/TABLET ── */
.mobile-reset-wrap {
    display: none !important; /* Por padrão oculto em desktop */
}

@media (max-width: 1024px) {
    .step-navbar-reset-container {
        display: none !important; /* Remove da barra de steps para dar espaço */
    }
    
    .mobile-reset-wrap {
        display: flex !important;
        justify-content: flex-end;
        margin-bottom: 16px;
        padding: 0 24px;
        width: 100%;
        max-width: 760px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .mobile-reset-wrap .btn-reset-booking {
        border: 1px solid rgba(220, 53, 69, 0.2);
        background: rgba(220, 53, 69, 0.02);
        color: var(--danger, #dc3545);
        padding: 6px 12px;
        border-radius: var(--radius, 8px);
        font-size: 12px;
        display: inline-flex;
        align-items: center;
        gap: 6px;
    }
    .mobile-reset-wrap .btn-reset-booking span {
        display: inline !important; /* Força exibir o texto 'Limpar tudo' no telemóvel para ficar claro */
    }
}


.preview-shell {
    flex: 1;
    padding: 32px 0;
}

.preview-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 20px;
    align-items: start;
}

.preview-stack {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.preview-summary-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    font-size: 13px;
}

.preview-summary-row:last-child {
    border-bottom: 0;
}

.preview-label {
    color: var(--text-muted);
}

.preview-value {
    font-weight: 700;
    text-align: right;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 700;
}

.status-pending {
    background: #FFFBEB;
    color: #92400E;
}

.status-accepted {
    background: #F0FDF4;
    color: #166534;
}

.status-pending-customer {
    background: #EFF6FF;
    color: #1D4ED8;
}

.status-rejected,
.status-cancelled {
    background: #FEF2F2;
    color: #991B1B;
}

.suggestion-box {
    border: 1px solid rgba(29, 78, 216, .2);
    background: #EFF6FF;
    color: #1E3A8A;
    border-radius: var(--radius);
    padding: 16px;
}

.suggestion-box strong {
    color: #1D4ED8;
}

.lock-banner {
    border: 1px solid rgba(146, 64, 14, .25);
    background: #FFFBEB;
    color: #92400E;
    border-radius: var(--radius);
    padding: 14px 16px;
    font-size: 13px;
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.lock-banner i {
    font-size: 16px;
    margin-top: 1px;
}

.preview-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.preview-muted {
    color: var(--text-muted);
    font-size: 13px;
}

.preview-service-card {
    background: var(--bg-card);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.preview-service-card--option {
    cursor: pointer;
    transition: var(--transition);
}

.preview-service-card--option:hover {
    border-color: var(--gold);
    box-shadow: var(--shadow);
}

.service-remove-btn {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    border: 1px solid #FCA5A5;
    background: #FEF2F2;
    color: #991B1B;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.service-remove-btn:disabled {
    opacity: .45;
    cursor: not-allowed;
}

.add-services-panel {
    border: 1px dashed var(--border);
    border-radius: var(--radius);
    padding: 14px;
    background: rgba(255, 255, 255, .45);
}

.danger-zone {
    border-color: rgba(153, 27, 27, .25);
    margin-top: 16px;
}

.danger-zone .card-section-header {
    background: #FEF2F2;
    color: #991B1B;
}

.loading-state {
    min-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 14px;
}

.verify-card {
    max-width: 440px;
    margin: 0 auto;
}

.phone-prefix {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 12px;
    border: 1px solid var(--border);
    border-right: 0;
    border-radius: 8px 0 0 8px;
    background: var(--bg);
    font-weight: 800;
}

.phone-suffix {
    border-radius: 0 8px 8px 0 !important;
}

.disabled-overlay {
    opacity: .55;
    pointer-events: none;
    filter: grayscale(.15);
}

/* Ordem visual em desktop: editar marcação primeiro, resumo na aside */
.preview-stack-main {
    order: 1;
}

aside.preview-aside {
    order: 2;
}

@media (max-width: 900px) {
    .preview-grid {
        grid-template-columns: 1fr;
        display: flex;
        flex-direction: column;
    }
    
    .preview-actions {
        justify-content: stretch;
    }
    
    .preview-actions button {
        flex: 1;
    }
    
    /* Mobile: aviso de sugestão (se existir) > resumo > resto */
    #suggestionPanel {
        order: 0;
    }
    
    aside.preview-aside {
        order: 1;
    }
    
    .preview-stack-main {
        order: 2;
    }
}

/* ── HEADER PÚBLICO ── */
.client-header {
    background: var(--accent);
    padding: 20px 0;
    position: relative;
    overflow: hidden;
}

/* Linha dourada no fundo do header */
.client-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold) 30%, var(--gold) 70%, transparent);
}

.client-header .brand-tagline {
    color: rgba(255, 255, 255, 0.5);
    font-size: 11px;
}

/* ── STORE HERO ── */
.store-hero {
    background: linear-gradient(135deg, #121212 0%, #1e1e1e 100%);
    padding: 48px 0;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--border);
    text-align: center;
}

/* Adicionar um padrão subtil de grelha no fundo do hero */
.store-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(201, 169, 110, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201, 169, 110, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
}

/* Brilho radial dourado desfocado em background */
.store-hero::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(201, 169, 110, 0.06) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    filter: blur(40px);
}

.store-hero-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-top: 3px solid var(--gold);
    border-radius: 12px;
    padding: 24px 32px;
    display: inline-block;
    max-width: 480px;
    width: 90%;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    position: relative;
    z-index: 2;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.store-hero-name {
    font-family: 'Plus Jakarta Sans', serif;
    font-size: 28px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.store-hero-type {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: var(--gold);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 0;
}

/* ── MODO ESCURO OVERRIDES ── */
[data-theme="dark"] #screen-client .main-content,
[data-theme="dark"] .main-content {
    background: var(--bg) !important;
    color: var(--text) !important;
}

[data-theme="dark"] .client-header {
    background: var(--bg-card) !important;
    border-bottom: 1px solid var(--border) !important;
}

[data-theme="dark"] .client-header .brand-tagline {
    color: var(--text-muted) !important;
}

[data-theme="dark"] .client-header a.btn-outline-custom {
    color: var(--text) !important;
    border-color: var(--border) !important;
}

[data-theme="dark"] #employeeBanner {
    background: #141414 !important;
    border-color: #2D2D2D !important;
}

[data-theme="dark"] .danger-zone {
    border-color: #551313 !important;
}

[data-theme="dark"] .danger-zone .card-section-header {
    background: #3a1515 !important;
    color: #ff8888 !important;
    border-bottom: 1px solid #551313 !important;
}

.verify-card {
    max-width: 440px;
    margin: 0 auto;
}

.phone-prefix {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 12px;
    border: 1px solid var(--border);
    border-right: 0;
    border-radius: 8px 0 0 8px;
    background: var(--bg);
    font-weight: 800;
}

.phone-suffix {
    border-radius: 0 8px 8px 0 !important;
}

.disabled-overlay {
    opacity: .55;
    pointer-events: none;
    filter: grayscale(.15);
}

/* Ordem visual em desktop: editar marcação primeiro, resumo na aside */
.preview-stack-main {
    order: 1;
}

aside.preview-aside {
    order: 2;
}

@media (max-width: 900px) {
    .preview-grid {
        grid-template-columns: 1fr;
        display: flex;
        flex-direction: column;
    }
    
    .preview-actions {
        justify-content: stretch;
    }
    
    .preview-actions button {
        flex: 1;
    }
    
    /* Mobile: aviso de sugestão (se existir) > resumo > resto */
    #suggestionPanel {
        order: 0;
    }
    
    aside.preview-aside {
        order: 1;
    }
    
    .preview-stack-main {
        order: 2;
    }
}

/* ── HEADER PÚBLICO ── */
.client-header {
    background: var(--accent);
    padding: 20px 0;
    position: relative;
    overflow: hidden;
}

/* Linha dourada no fundo do header */
.client-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold) 30%, var(--gold) 70%, transparent);
}

.client-header .brand-tagline {
    color: rgba(255, 255, 255, 0.5);
    font-size: 11px;
}

/* ── STORE HERO ── */
.store-hero {
    background: linear-gradient(135deg, #121212 0%, #1e1e1e 100%);
    padding: 48px 0;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--border);
    text-align: center;
}

/* Adicionar um padrão subtil de grelha no fundo do hero */
.store-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(201, 169, 110, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201, 169, 110, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
}

/* Brilho radial dourado desfocado em background */
.store-hero::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(201, 169, 110, 0.06) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    filter: blur(40px);
}

.store-hero-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-top: 3px solid var(--gold);
    border-radius: 12px;
    padding: 24px 32px;
    display: inline-block;
    max-width: 480px;
    width: 90%;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    position: relative;
    z-index: 2;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.store-hero-name {
    font-family: 'Plus Jakarta Sans', serif;
    font-size: 28px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.store-hero-type {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: var(--gold);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 0;
}

/* ── MODO ESCURO OVERRIDES ── */
[data-theme="dark"] #screen-client .main-content,
[data-theme="dark"] .main-content {
    background: var(--bg) !important;
    color: var(--text) !important;
}

[data-theme="dark"] .client-header {
    background: var(--bg-card) !important;
    border-bottom: 1px solid var(--border) !important;
}

[data-theme="dark"] .client-header .brand-tagline {
    color: var(--text-muted) !important;
}

[data-theme="dark"] .client-header a.btn-outline-custom {
    color: var(--text) !important;
    border-color: var(--border) !important;
}

[data-theme="dark"] #employeeBanner {
    background: #141414 !important;
    border-color: #2D2D2D !important;
}

[data-theme="dark"] .danger-zone {
    border-color: #551313 !important;
}

[data-theme="dark"] .danger-zone .card-section-header {
    background: #3a1515 !important;
    color: #ff8888 !important;
    border-bottom: 1px solid #551313 !important;
}

[data-theme="dark"] .add-services-panel {
    background: rgba(0, 0, 0, 0.2) !important;
    border-color: var(--border) !important;
}

/* ═══════════════════════════════════════
EQUIPA → FICHA DO PROFISSIONAL
(botões da lista + modal #modal-teamMember)
═══════════════════════════════════════ */

/* Cada membro da Equipa é agora um botão que abre a ficha */
.biz-team-member {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    background: none;
    border: none;
    border-radius: var(--radius);
    padding: 4px 6px;
    margin: 0 -6px;
    text-align: left;
    cursor: pointer;
    transition: background 0.15s;
}
.biz-team-member:hover { background: var(--gold-light); }
.biz-team-member:hover .biz-team-member-chevron { opacity: 1; }

.biz-team-member-chevron {
    margin-left: auto;
    font-size: 12px;
    color: var(--text-muted);
    opacity: 0.45;
    transition: opacity 0.15s;
}

/* Versão mobile (bloco "Ver Horários & Equipa") */
.biz-team-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 4px 10px 4px 4px;
    cursor: pointer;
    transition: border-color 0.15s;
}
.biz-team-chip:hover { border-color: var(--gold); }

/* ── Modal ── */
.pro-modal { text-align: left; }

.pro-head {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-right: 28px;
    margin-bottom: 20px;
}

.pro-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--gold);
    flex-shrink: 0;
}
.pro-avatar--initial {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gold);
    color: #ffffff;
    font-size: 24px;
    font-weight: 700;
}

.pro-head-info { min-width: 0; }

.pro-name {
    font-family: 'Plus Jakarta Sans', serif;
    font-size: 19px;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 4px;
}

.pro-role {
    display: inline-flex;
    align-items: center;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: var(--gold);
    background: var(--gold-light);
    border-radius: 20px;
    padding: 4px 10px;
}

.pro-section { margin-bottom: 18px; }

.pro-section-title {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 10px;
}
.pro-section-title i { color: var(--gold); font-size: 12px; }

.pro-empty {
    font-size: 12.5px;
    color: var(--text-muted);
    line-height: 1.5;
    font-style: italic;
}

/* Contactos */
.pro-contact-list { display: flex; flex-direction: column; gap: 8px; }
.pro-contact-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--text);
    text-decoration: none;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 9px 12px;
    transition: border-color 0.15s, color 0.15s;
    overflow-wrap: anywhere;
}
.pro-contact-row:hover { border-color: var(--gold); color: var(--gold); }
.pro-contact-row i { color: var(--gold); font-size: 13px; flex-shrink: 0; }

/* Serviços que realiza — lista com scroll próprio, para quem tem dezenas */
.pro-service-list {
    display: flex;
    flex-direction: column;
    max-height: 230px;
    overflow-y: auto;
    border: 1px solid var(--border);
    border-radius: var(--radius);
}
.pro-service-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    font-size: 13px;
    color: var(--text);
    border-bottom: 1px solid var(--border);
}
.pro-service-row:last-child { border-bottom: none; }
.pro-service-icon { font-size: 15px; flex-shrink: 0; }
.pro-service-name { flex: 1; min-width: 0; font-weight: 600; }
.pro-service-duration {
    display: block;
    font-size: 11.5px;
    font-weight: 500;
    color: var(--text-muted);
    margin-top: 1px;
}
.pro-service-price { font-weight: 700; color: var(--gold); white-space: nowrap; }
.pro-service-price s { color: var(--text-muted); font-weight: 500; font-size: 11px; }

/* Horário próprio */
.pro-hours {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 4px 12px;
}
.pro-hour-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12.5px;
    color: var(--text-muted);
    padding: 6px 0;
    border-bottom: 1px solid var(--border);
}
.pro-hour-row:last-child { border-bottom: none; }
.pro-hour-row strong { color: var(--text); }

/* Folgas */
.pro-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.pro-chip {
    font-size: 11.5px;
    font-weight: 600;
    color: var(--text-muted);
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 4px 10px;
}

/* Redes sociais */
.pro-socials {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.pro-social-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 12px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--bg-card);
    color: var(--text);
    font-size: 12.5px;
    font-weight: 600;
    text-decoration: none;
    transition: border-color 0.15s, color 0.15s;
}
.pro-social-link i { color: var(--gold); font-size: 15px; }
.pro-social-link:hover { border-color: var(--gold); color: var(--gold); }

/* Trabalhos */
.pro-works {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
    gap: 8px;
}
.pro-work-thumb {
    display: block;
    aspect-ratio: 1;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    padding: 0;
    background: none;
    cursor: zoom-in;
    width: 100%;
}
.pro-work-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pro-work-thumb:hover { border-color: var(--gold); }

/* Visor dos trabalhos em ecrã inteiro — acima do modal da ficha (z-index 1000) */
.pro-photo-viewer {
    position: fixed;
    inset: 0;
    height: 100vh;
    height: 100dvh;
    z-index: 1200;
    background: rgba(0, 0, 0, 0.92);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 40px 64px;
}
.pro-photo-viewer.show { display: flex; }
.pro-photo-viewer img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: var(--radius);
}
.pro-photo-viewer-close,
.pro-photo-viewer-nav {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: background 0.15s ease;
}
.pro-photo-viewer-close:hover,
.pro-photo-viewer-nav:hover { background: rgba(255, 255, 255, 0.22); }
.pro-photo-viewer-close { top: 20px; right: 20px; }
.pro-photo-viewer-prev  { left: 16px; }
.pro-photo-viewer-next  { right: 16px; }
.pro-photo-viewer-count {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 12.5px;
    color: rgba(255, 255, 255, 0.75);
    letter-spacing: 0.5px;
}
/* Uma única foto: sem setas nem contador */
.pro-photo-viewer.is-single .pro-photo-viewer-nav,
.pro-photo-viewer.is-single .pro-photo-viewer-count { display: none; }
@media (max-width: 600px) {
    .pro-photo-viewer { padding: 56px 12px; }
    .pro-photo-viewer-prev { left: 6px; }
    .pro-photo-viewer-next { right: 6px; }
}

/* Botão final — barra colada ao fundo da ficha enquanto se faz scroll.
   O bottom negativo come o padding (24px) do .modal-box, para o conteúdo
   não espreitar por baixo do botão. */
.pro-cta-bar {
    position: sticky;
    bottom: -24px;
    z-index: 5;
    margin: 20px -24px -24px;
    padding: 12px 24px 24px;
    background: var(--bg-card);
    box-shadow: 0 -10px 16px -12px rgba(0, 0, 0, 0.18);
}
.pro-cta-bar > .pro-cta { margin-top: 0; }
.pro-cta-bar > .pro-empty { margin-top: 0 !important; }

.pro-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin-top: 20px;
    padding: 12px 16px;
    background: var(--gold);
    color: #ffffff;
    border: none;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: opacity 0.15s;
}
.pro-cta:hover { opacity: 0.88; color: #ffffff; }
