/* Página pública da barbearia: agendamento e loja (mobile-first) */
.wrap { width: min(1080px, 100%); margin: 0 auto; padding: 0 16px; }

/* Hero */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--border); }
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(1200px 400px at 80% -10%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 60%),
    repeating-linear-gradient(135deg, color-mix(in srgb, var(--accent) 7%, transparent) 0 2px, transparent 2px 22px),
    linear-gradient(180deg, #141418, var(--bg));
}
.hero-inner { position: relative; padding-top: 36px; padding-bottom: 28px; display: grid; grid-template-columns: auto 1fr auto; gap: 22px; align-items: center; }
.brand-badge {
  width: 88px; height: 88px; border-radius: 24px; background: var(--accent); color: var(--accent-ink);
  display: grid; place-items: center; box-shadow: 0 12px 40px color-mix(in srgb, var(--accent) 35%, transparent);
}
.brand-badge svg { width: 40px; height: 40px; }
.hero h1 { font-size: clamp(30px, 5vw, 44px); letter-spacing: 0.05em; }
.hero .tagline { color: var(--text-2); margin-top: 4px; font-size: 15px; }
.hero .meta { margin-top: 12px; font-size: 14px; color: var(--text-2); gap: 8px 16px; }
.hero .meta > span { display: inline-flex; align-items: center; gap: 6px; }
.stars { color: var(--accent); display: inline-flex; gap: 1px; }
.stars .icon { width: 15px; height: 15px; fill: currentColor; stroke: none; }
.open-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 4px color-mix(in srgb, var(--good) 20%, transparent); }
.open-dot.closed { background: var(--bad); box-shadow: 0 0 0 4px color-mix(in srgb, var(--bad) 20%, transparent); }
.hero-actions { display: flex; flex-direction: column; gap: 10px; }
@media (max-width: 760px) {
  .hero-inner { grid-template-columns: 1fr; text-align: left; padding-top: 24px; }
  .brand-badge { width: 64px; height: 64px; border-radius: 18px; }
  .brand-badge svg { width: 30px; height: 30px; }
  .hero-actions { flex-direction: row; }
  .hero-actions .btn { flex: 1; }
}

/* Abas */
.tabs-bar { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.tabs button, .tabs a {
  border: 0; background: none; padding: 16px 14px; font-weight: 600; font-size: 14px; color: var(--muted); cursor: pointer;
  border-bottom: 2px solid transparent; white-space: nowrap; display: inline-flex; gap: 8px; align-items: center; text-decoration: none !important;
}
.tabs button.on { color: var(--text); border-bottom-color: var(--accent); }
.tabs button:hover, .tabs a:hover { color: var(--text); }

.content { padding-top: 24px; padding-bottom: 80px; }
.section-title { font-family: var(--display); text-transform: uppercase; letter-spacing: 0.08em; font-size: 14px; color: var(--accent); margin: 26px 0 12px; font-weight: 500; }
.section-title:first-child { margin-top: 0; }

/* Lista de serviços */
.svc-list { display: grid; gap: 10px; }
.svc {
  display: flex; align-items: center; gap: 16px; padding: 16px 18px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border); transition: border-color 0.15s;
}
.svc:hover { border-color: var(--border-strong); }
.svc h4 { font-size: 16px; font-weight: 650; }
.svc p { color: var(--muted); font-size: 13.5px; margin-top: 3px; }
.svc .svc-meta { display: flex; gap: 14px; margin-top: 8px; font-size: 13.5px; color: var(--text-2); }
.svc .svc-meta span { display: inline-flex; align-items: center; gap: 5px; }
.svc .price { font-weight: 700; color: var(--text); }
@media (max-width: 560px) { .svc { flex-wrap: wrap; } .svc .btn { width: 100%; } }

/* Profissionais */
.pro-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.pro-card { padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.pro-card h4 { font-size: 16px; }
.pro-card .tags { display: flex; flex-wrap: wrap; gap: 6px; }

.info-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 14px; }
@media (max-width: 760px) { .info-grid { grid-template-columns: 1fr; } }
.hours-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.hours-table td { padding: 8px 0; border-bottom: 1px dashed var(--border); }
.hours-table tr.today td { color: var(--accent-2); font-weight: 650; }
.hours-table td:last-child { text-align: right; }

.footer { border-top: 1px solid var(--border); padding: 24px 0 40px; color: var(--muted); font-size: 13px; }
/* Contato */
.contact-grid { display: flex; flex-direction: column; gap: 14px; max-width: 760px; }
.contact-wa {
  display: flex; align-items: center; gap: 16px; padding: 22px; border-radius: var(--radius); text-decoration: none !important; color: var(--text);
  background: linear-gradient(135deg, color-mix(in srgb, #25d366 18%, var(--surface)), var(--surface)); border: 1px solid color-mix(in srgb, #25d366 45%, var(--border));
  transition: transform .15s, border-color .15s;
}
.contact-wa:hover { transform: translateY(-2px); border-color: #25d366; }
.contact-wa .cw-ic { width: 54px; height: 54px; border-radius: 16px; background: #25d366; color: #fff; display: grid; place-items: center; flex: none; }
.contact-wa .cw-ic .icon { width: 28px; height: 28px; stroke-width: 1.8; }
.contact-wa b { display: block; font-size: 17px; }
.contact-wa span { color: var(--text-2); font-size: 14px; }
.contact-wa .btn { background: #25d366; border-color: #25d366; color: #0b2a17; flex: none; }
.contact-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.contact-card { display: flex; gap: 14px; align-items: center; padding: 18px; color: var(--text); text-decoration: none !important; transition: border-color .15s; }
.contact-card:hover { border-color: var(--accent); }
.contact-card .icon { color: var(--accent); }
.contact-card b { display: block; font-size: 14px; }
.contact-card span { color: var(--text-2); font-size: 13.5px; }
@media (max-width: 560px) { .contact-wa { flex-wrap: wrap; } .contact-wa .btn { width: 100%; } }
.footer a { display: inline-flex; align-items: center; gap: 6px; }
.footer .wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: center; }

/* ===== Wizard de agendamento ===== */
.wiz { min-height: 100vh; display: flex; flex-direction: column; }
.wiz-top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.wiz-top > .wrap:first-child { display: flex; align-items: center; gap: 12px; height: 64px; }
.wiz-top .title { flex: 1; font-size: 15px; }
.wiz-top .title b { font-family: var(--display); letter-spacing: 0.06em; text-transform: uppercase; font-weight: 500; }
.stepper { display: flex; gap: 6px; padding: 14px 0 0; }
.stepper .st { flex: 1; display: flex; flex-direction: column; gap: 6px; font-size: 12px; color: var(--muted); font-weight: 600; min-width: 0; }
.stepper .st i { display: block; height: 4px; border-radius: 4px; background: var(--surface-3); }
.stepper .st.done i, .stepper .st.on i { background: var(--accent); }
.stepper .st.on { color: var(--text); }
.stepper .st span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 560px) { .stepper .st span { display: none; } .stepper .st.on span { display: block; } }

.wiz-grid { display: grid; grid-template-columns: 1fr 340px; gap: 24px; padding-top: 22px; padding-bottom: 120px; align-items: start; }
.wiz-main h2 { font-size: 22px; margin-bottom: 4px; }
.wiz-main .sub { color: var(--muted); margin-bottom: 18px; font-size: 14px; }
.wiz-summary { position: sticky; top: 84px; }
@media (max-width: 900px) { .wiz-grid { grid-template-columns: 1fr; } .wiz-summary { display: none; } }

.sum-card { padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.sum-card h3 { font-family: var(--display); text-transform: uppercase; letter-spacing: 0.08em; font-size: 13px; color: var(--accent); font-weight: 500; }
.sum-line { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; }
.sum-line .icon { color: var(--muted); margin-top: 2px; }
.sum-line .k { color: var(--muted); font-size: 12px; }
.sum-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 14px; border-top: 1px solid var(--border); }
.sum-total b { font-size: 20px; }

.wiz-bottom {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--surface) 96%, transparent); border-top: 1px solid var(--border); backdrop-filter: blur(10px);
}
.wiz-bottom .wrap { display: flex; align-items: center; gap: 14px; padding: 0; }
.wiz-bottom .mini { flex: 1; min-width: 0; font-size: 13px; color: var(--text-2); }
.wiz-bottom .mini b { color: var(--text); font-size: 16px; }

/* Opções selecionáveis */
.opt-list { display: grid; gap: 10px; }
.opt {
  display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; cursor: pointer;
  padding: 16px; border-radius: var(--radius); background: var(--surface); border: 1.5px solid var(--border);
  transition: border-color 0.15s, background 0.15s;
}
.opt:hover { border-color: var(--border-strong); background: var(--surface-2); }
.opt.on { border-color: var(--accent); background: var(--accent-soft); }
.opt .grow h4 { font-size: 15.5px; font-weight: 650; }
.opt .grow p { font-size: 13px; color: var(--muted); margin-top: 2px; }
.opt .radio { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--border-strong); flex: none; display: grid; place-items: center; }
.opt.on .radio { border-color: var(--accent); }
.opt.on .radio::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.any-avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-3); color: var(--accent); flex: none; }

.cat-label { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; margin: 18px 0 8px; }
.cat-label:first-child { margin-top: 0; }

/* Datas */
.date-strip { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 10px; scroll-snap-type: x proximity; scrollbar-width: thin; }
.date-btn {
  flex: none; width: 66px; padding: 10px 0; border-radius: 14px; border: 1.5px solid var(--border); background: var(--surface);
  display: flex; flex-direction: column; align-items: center; gap: 2px; cursor: pointer; scroll-snap-align: start;
}
.date-btn .wd { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }
.date-btn .dd { font-size: 22px; font-weight: 700; font-family: var(--display); }
.date-btn .mm { font-size: 11px; color: var(--muted); }
.date-btn .n { font-size: 10.5px; color: var(--good); font-weight: 600; margin-top: 2px; }
.date-btn:hover { border-color: var(--border-strong); }
.date-btn.on { border-color: var(--accent); background: var(--accent); color: var(--accent-ink); }
.date-btn.on .wd, .date-btn.on .mm, .date-btn.on .n { color: var(--accent-ink); }
.date-btn:disabled { opacity: 0.35; cursor: not-allowed; }
.date-btn:disabled .n { color: var(--muted); }

.pro-chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 14px; scrollbar-width: none; }
.pro-chip { flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 5px 14px 5px 5px; border-radius: 999px; border: 1.5px solid var(--border); background: var(--surface); cursor: pointer; font-size: 13.5px; font-weight: 600; }
.pro-chip .avatar, .pro-chip .any-avatar { width: 28px; height: 28px; font-size: 11px; }
.pro-chip.on { border-color: var(--accent); background: var(--accent-soft); }

.period { margin-top: 18px; }
.period h5 { font-size: 13px; color: var(--text-2); font-weight: 600; margin: 0 0 10px; display: flex; align-items: center; gap: 8px; }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 8px; }
.slot { height: 44px; border-radius: 12px; border: 1.5px solid var(--border-strong); background: var(--surface); font-weight: 650; font-size: 15px; cursor: pointer; font-variant-numeric: tabular-nums; }
.slot:hover { border-color: var(--accent); }
.slot.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

/* Produtos (upsell e loja) */
.prod-thumb {
  aspect-ratio: 1; border-radius: 12px; display: grid; place-items: center; color: var(--accent);
  background:
    radial-gradient(circle at 30% 20%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 60%),
    linear-gradient(160deg, var(--surface-3), var(--bg-2));
  border: 1px solid var(--border);
}
.prod-thumb .icon { width: 38%; height: 38%; stroke-width: 1.4; }
.upsell { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.upsell .u { padding: 10px; border-radius: var(--radius); background: var(--surface); border: 1.5px solid var(--border); display: flex; flex-direction: column; gap: 8px; cursor: pointer; text-align: left; }
.upsell .u.on { border-color: var(--accent); background: var(--accent-soft); }
.upsell .u .prod-thumb { aspect-ratio: 16/10; }
.upsell .u h5 { margin: 0; font-size: 13px; font-weight: 600; line-height: 1.3; }
.upsell .u .p { font-size: 13px; font-weight: 700; display: flex; justify-content: space-between; align-items: center; }

/* Confirmação */
.done-page { max-width: 560px; margin: 0 auto; padding: 40px 16px 80px; text-align: center; display: flex; flex-direction: column; gap: 18px; align-items: center; }
.done-check { width: 84px; height: 84px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; animation: popin 0.4s cubic-bezier(.2,1.6,.4,1); }
.done-check .icon { width: 42px; height: 42px; stroke-width: 2.6; }
@keyframes popin { from { transform: scale(0.3); opacity: 0; } }
.code-chip { font-family: var(--display); letter-spacing: 0.12em; font-size: 22px; padding: 8px 18px; border: 1.5px dashed var(--accent); border-radius: 12px; color: var(--accent-2); }
.done-page .card { width: 100%; text-align: left; }
.done-page .actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; }
@media (max-width: 480px) { .done-page .actions { grid-template-columns: 1fr; } }

/* Loja */
.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.p-card { display: flex; flex-direction: column; overflow: hidden; }
.p-card .prod-thumb { border-radius: 0; border: 0; border-bottom: 1px solid var(--border); aspect-ratio: 4/3; position: relative; }
.p-card .prod-thumb .badge { position: absolute; top: 10px; left: 10px; }
.p-card .pb { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.p-card h4 { font-size: 15px; font-weight: 650; }
.p-card p { font-size: 13px; color: var(--muted); flex: 1; }
.p-card .pf { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; }
.p-card .pf b { font-size: 17px; }
.cart-fab { position: fixed; right: 20px; bottom: 20px; z-index: 30; box-shadow: var(--shadow); }
.cart-line { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--border); }
.cart-line .prod-thumb { width: 52px; flex: none; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--border-strong); border-radius: 999px; }
.qty button { width: 30px; height: 30px; border: 0; background: none; cursor: pointer; color: var(--text-2); font-size: 16px; }
.qty span { min-width: 22px; text-align: center; font-weight: 600; font-size: 14px; }
.pay-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pix-box { display: flex; gap: 16px; align-items: center; padding: 16px; border-radius: 12px; background: var(--bg-2); border: 1px dashed var(--border-strong); }
@media (max-width: 560px) { .hide-sm { display: none; } }
.pix-qr { width: 110px; height: 110px; flex: none; background: #fff; border-radius: 8px; padding: 8px; }

/* Área do cliente */
.tabs .tab-account { margin-left: auto; color: var(--accent); }
.tabs .tab-account:hover { color: var(--text); }
.acc-wrap { padding-top: 24px; padding-bottom: 80px; }
.acc-hello { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.acc-hello h2 { font-size: 22px; }
.acc-hello .grow { min-width: 200px; }
.acc-grid { display: grid; gap: 0 24px; grid-template-columns: 1fr; margin-top: 26px; }
.acc-grid aside .section-title:first-child { margin-top: 26px; }
@media (min-width: 900px) {
  .acc-grid { grid-template-columns: minmax(0, 1fr) 320px; }
  .acc-grid aside .section-title:first-child { margin-top: 0; }
}
.acc-appt { display: flex; align-items: center; gap: 14px; padding: 14px 16px; flex-wrap: wrap; }
.acc-appt .grow { min-width: 180px; display: grid; gap: 3px; }
.acc-date {
  width: 58px; flex: none; text-align: center; padding: 8px 0; border-radius: 12px;
  background: color-mix(in srgb, var(--accent) 14%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  display: grid; line-height: 1.1;
}
.acc-date .wd { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--accent); }
.acc-date .dd { font-size: 22px; font-weight: 700; font-family: var(--display); }
.acc-date .mm { font-size: 11px; color: var(--muted); }
.acc-list { padding: 4px 0; }
.acc-row { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--border); font-size: 14px; }
.acc-row:last-child { border-bottom: 0; }
.acc-when { width: 84px; flex: none; font-size: 13px; }
.acc-value { width: 84px; flex: none; text-align: right; }
@media (max-width: 560px) {
  .acc-row { flex-wrap: wrap; gap: 4px 10px; }
  .acc-when { width: auto; order: -1; flex-basis: 100%; }
  .acc-value { width: auto; }
  .acc-appt .btn, .acc-hello .btn { width: 100%; }
}
.acc-quick-list { display: grid; gap: 8px; padding-top: 6px; border-top: 1px solid var(--border); }
.acc-quick-list > .tiny { text-align: center; margin-top: 6px; }
.acc-quick {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px;
  border: 1px solid var(--border); background: var(--surface-2, var(--surface)); cursor: pointer; text-align: left; color: var(--text);
}
.acc-quick:hover { border-color: var(--accent); }
