/* V3.2 — refinamento mobile-first do site público */
@media (max-width: 860px) {
  body.public-v250 {
    --mobile-gutter: 18px;
    padding-bottom: calc(76px + env(safe-area-inset-bottom));
    background:
      radial-gradient(circle at 20% -8%, rgba(184,147,91,.11), transparent 31%),
      #0b0b0c;
  }

  .public-v250 .container { width: calc(100% - (var(--mobile-gutter) * 2)); }

  .site-header { border-bottom-color: rgba(255,255,255,.07); }
  .header-inner { height: 64px; }
  .brand-mark { width: 34px; height: 34px; border-radius: 10px; }
  .brand-mark svg { width: 20px; height: 20px; }
  .brand-copy strong { font-size: 19px; }
  .brand-copy small { font-size: 9px; text-transform: uppercase; letter-spacing: .12em; }
  .account-link { width: 36px; height: 36px; border-radius: 11px; }

  /* Hero: informação principal e CTA acima da dobra */
  .home-hero { padding: 22px 0 12px; }
  .home-copy h1 {
    display: block;
    max-width: 10.5ch;
    font-size: clamp(43px, 12.2vw, 58px);
    line-height: .89;
    letter-spacing: .005em;
    text-wrap: balance;
  }
  .home-copy .headline-break { display: none; }
  .home-copy .kicker {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 5px 9px;
    margin-bottom: 12px;
    border: 1px solid rgba(184,147,91,.3);
    background: rgba(184,147,91,.06);
    border-radius: 999px;
    font-size: 9px;
    letter-spacing: .1em;
    text-transform: uppercase;
  }
  .home-copy > p {
    font-family: Inter,system-ui,-apple-system,Segoe UI,sans-serif !important;
    max-width: 34ch !important;
    margin: 13px 0 0 !important;
    color: #aaa7a1 !important;
    font-size: 13px !important;
    line-height: 1.55 !important;
  }
  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 18px;
  }
  .hero-actions .hero-book {
    width: 100%;
    min-height: 54px;
    border-radius: 12px;
    font-size: 15px;
    letter-spacing: .01em;
  }
  .hero-actions .secondary-action {
    min-height: 38px;
    width: max-content;
    padding: 4px 0;
    border: 0;
    border-bottom: 1px solid rgba(211,172,119,.62);
    border-radius: 0;
    background: transparent;
    color: #d3ac77;
    font-size: 12px;
    box-shadow: none;
  }

  .hero-contact-links {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 7px;
    margin-top: 15px;
  }
  .quick-contact-link {
    min-width: 0;
    min-height: 58px;
    padding: 9px 8px;
    border-color: rgba(255,255,255,.08);
    border-radius: 12px;
    background: rgba(255,255,255,.025);
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  .quick-contact-link > span:last-child { min-width: 0; width: 100%; }
  .quick-contact-link b { font-size: 10px; }
  .quick-contact-link small {
    display: none;
  }
  .quick-icon {
    width: 25px;
    height: 25px;
    border: 0;
    color: #d3ac77;
  }
  .quick-icon svg { width: 21px; height: 21px; }

  .objective-info {
    display: grid;
    grid-template-columns: 1fr 1.35fr 1fr;
    margin-top: 14px !important;
    border: 0;
    border-top: 1px solid rgba(255,255,255,.08);
    border-bottom: 1px solid rgba(255,255,255,.08);
    background: transparent;
  }
  .objective-info span {
    padding: 10px 5px;
    border-right: 1px solid rgba(255,255,255,.07) !important;
    font-size: 10px;
  }
  .objective-info b { font-size: 9px; }

  .hero-visual {
    height: 210px;
    margin-top: 14px;
    border: 0;
    border-radius: 16px;
    background: linear-gradient(145deg,#171719,#0e0e10);
  }
  .hero-visual-badge { left: 14px; right: 14px; bottom: 13px; }
  .hero-visual-badge strong { font-size: 22px; }
  .hero-visual-badge span { max-width: 16ch; font-size: 9px; }

  .home-links {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin: 12px auto 24px;
  }
  .home-links button {
    min-height: 102px;
    padding: 13px;
    border-radius: 14px;
    background: linear-gradient(180deg,#131315,#101012);
  }
  .home-links strong { font-size: 24px; }
  .home-links small { font-size: 10px; }

  /* Telas internas mais compactas */
  .page { padding: 22px 0 28px; }
  .page-head { display: block; padding-bottom: 12px; margin-bottom: 14px; }
  .page-head h2 { font-size: 36px; }
  .page-head p { margin-top: 7px; max-width: 39ch; font-size: 11px; }
  .compact-head p { display: none; }

  .mobile-progress {
    position: sticky;
    top: 64px;
    z-index: 24;
    display: block;
    margin: -4px 0 14px;
    padding: 10px 0 11px;
    background: linear-gradient(#0b0b0c 84%, transparent);
  }
  .mobile-progress > div:first-child { display: flex; justify-content: space-between; gap: 12px; }
  .mobile-progress strong { color: #d3ac77; }
  .mobile-progress span { color: #aaa7a1; }
  .progress-track { height: 3px; margin-top: 7px; background: #242426; overflow: hidden; border-radius: 999px; }
  .progress-track i { display: block; height: 100%; background: #b8935b; border-radius: inherit; transition: width .2s ease; }
  .desktop-progress { display: none; }
  .booking-grid { display: block; }
  .booking-summary { display: none; }

  .stage-head { margin: 0 0 12px; }
  .stage-head h3 { max-width: 14ch; font-size: 34px; }
  .stage-head p { max-width: 38ch; font-size: 11px; line-height: 1.45; }

  .choice-list { border-top: 0; display: grid; gap: 8px; }
  .choice-item {
    min-height: 68px;
    padding: 10px 11px;
    border: 1px solid #29292c;
    border-radius: 12px;
    background: #111113;
    grid-template-columns: 28px minmax(0,1fr) auto;
    gap: 10px;
  }
  .choice-item.active { border-color: #b8935b; background: rgba(184,147,91,.08); }
  .choice-copy strong { font-size: 13px; }
  .choice-copy small { max-width: 45vw; font-size: 9px; }
  .choice-price { font-size: 22px; }

  .schedule-quick-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7px;
    margin: 0 0 10px;
  }
  .schedule-quick-actions .small {
    min-height: 43px;
    border-radius: 10px;
    font-size: 11px;
  }
  .schedule-quick-actions #firstAvailableBtn { grid-column: 1 / -1; min-height: 48px; }

  .calendar-head { border-radius: 12px 12px 0 0; overflow: hidden; }
  .calendar-box { border-radius: 0 0 12px 12px; overflow: hidden; }
  .calendar-arrow { min-width: 44px; }
  .calendar-day { min-height: 40px; }
  .times-panel { border-radius: 12px; }
  .slot-grid { grid-template-columns: repeat(3,1fr); }
  .time-chip { min-height: 48px; border-radius: 10px; }
  .times-panel > .primary-action { min-height: 52px; border-radius: 11px; }

  .quick-booking-review { border-radius: 12px; }
  .customer-fields { display: grid; grid-template-columns: 1fr; }
  .field input { border-radius: 10px; }
  .confirm-action { min-height: 54px; border-radius: 11px; }

  /* Serviços: preço + ação claros no polegar */
  .service-group { margin-bottom: 18px; }
  .plain-list { display: grid; gap: 8px; }
  .list-row {
    min-height: 0;
    padding: 13px;
    border: 1px solid #29292c;
    border-radius: 12px;
    background: #111113;
    grid-template-columns: 24px minmax(0,1fr) auto;
    gap: 8px 10px;
  }
  .list-row + .list-row { border-top: 1px solid #29292c; }
  .list-copy p { max-width: 44ch; }
  .list-meta { grid-column: 2; }
  .list-end { align-self: center; gap: 7px; }
  .list-action { min-height: 34px; padding: 6px 9px; border-radius: 9px; }

  /* Produtos legíveis e rápidos para comprar */
  .product-grid { grid-template-columns: 1fr; gap: 9px; }
  .product-card-public {
    display: grid;
    grid-template-columns: 118px minmax(0,1fr);
    min-height: 118px;
    border-radius: 14px;
  }
  .product-photo { aspect-ratio: auto; min-height: 118px; }
  .product-category { top: 7px; left: 7px; padding: 4px 6px; font-size: 8px; }
  .product-card-body { padding: 11px; gap: 9px; }
  .product-card-body h3 { font-size: 22px; }
  .product-card-body p { -webkit-line-clamp: 2; font-size: 10px; }
  .product-card-bottom { gap: 7px; padding-top: 8px; }
  .product-card-bottom strong { font-size: 23px; }
  .product-card-bottom .primary-action { min-height: 38px; padding: 6px 10px; border-radius: 9px; }

  .barber-info-grid article { border-radius: 13px; }
  .public-review { border-radius: 12px; }
  .about-cta { width: 100%; min-height: 52px; border-radius: 11px; margin-top: 12px; }

  .site-footer { padding: 17px 0 8px; }
  .footer-grid { gap: 10px !important; }
  .footer-social { display: grid; grid-template-columns: repeat(3, auto); gap: 12px; }

  /* Navegação inferior: Agendar como ação principal */
  .mobile-nav {
    height: calc(68px + env(safe-area-inset-bottom));
    padding: 0 5px env(safe-area-inset-bottom);
    border-top-color: rgba(255,255,255,.09);
    box-shadow: 0 -12px 28px rgba(0,0,0,.28);
  }
  .mobile-nav button { min-height: 66px; }
  .mobile-nav .mobile-book {
    color: #15120d;
  }
  .mobile-nav .mobile-book::before {
    content: '' !important;
    display: block !important;
    position: absolute;
    inset: 7px 5px 6px;
    z-index: -1;
    height: auto;
    background: #b8935b;
    border-radius: 13px;
    box-shadow: 0 6px 20px rgba(184,147,91,.22);
  }
  .mobile-nav .mobile-book .nav-ico,
  .mobile-nav .mobile-book small { color: #17130d; font-weight: 800; }
  .mobile-nav .mobile-book.active::after { display: none; }

  .whatsapp-fab {
    right: 12px;
    bottom: calc(77px + env(safe-area-inset-bottom));
    width: 44px;
    height: 44px;
    min-height: 44px;
    padding: 0;
    border-radius: 50%;
    justify-content: center;
    background: #15130f;
  }
  .whatsapp-fab span { width: 25px; height: 25px; border: 0; background: transparent; color: #d3ac77; }
  .whatsapp-fab span svg { width: 24px; height: 24px; }
  .whatsapp-fab b { display: none; }
  .cart-fab { bottom: calc(78px + env(safe-area-inset-bottom)); border-radius: 12px; }

  .modal { padding: 10px; align-items: flex-end; }
  .modal-card { width: 100%; max-height: 88dvh; border-radius: 18px 18px 0 0; padding: 17px; }
}

@media (max-width: 520px) {
  .hero-visual { height: 176px; }
  .hero-visual-badge span { display: none; }
  .hero-contact-links { grid-template-columns: repeat(3,1fr); }
  .hero-contact-links .quick-contact-link:last-child { grid-column: auto; }
  .home-copy h1 { font-size: clamp(42px, 12.5vw, 52px); }
  .home-copy > p { font-size: 12px !important; }
  .objective-info { grid-template-columns: .85fr 1.4fr .85fr; }
  .product-card-public { grid-template-columns: 108px minmax(0,1fr); }
}

@media (max-width: 390px) {
  body.public-v250 { --mobile-gutter: 13px; }
  .brand-copy strong { font-size: 17px; }
  .home-copy h1 { font-size: 41px; }
  .home-links button { min-height: 96px; }
  .home-links strong { font-size: 22px; }
  .choice-copy small { max-width: 42vw; }
  .slot-grid { grid-template-columns: repeat(3,1fr); }
  .product-card-public { grid-template-columns: 100px minmax(0,1fr); }
  .footer-social { grid-template-columns: 1fr 1fr 1fr; }
}

/* V3.3 — interface enxuta: somente informação útil para o cliente */
@media (max-width: 860px) {
  .mobile-nav { grid-template-columns: repeat(4, 1fr); }
  .home-hero { padding-bottom: 22px; }
  .page-head { margin-bottom: 12px; }
  .page-head p, .stage-head p { display: none; }
  .barber-info-grid { gap: 8px; }
  .barber-info-grid article { min-height: 0; }
}

.product-photo-empty {
  display: grid;
  place-items: center;
  min-height: 100%;
  color: rgba(211,172,119,.65);
  background: linear-gradient(145deg,#171719,#0e0e10);
}
.product-photo-empty span { font-size: 30px; }


/* V3.4 — app dividido: cada aba tem uma função, sem repetição */
@media (max-width: 860px) {
  .mobile-nav { grid-template-columns: repeat(5, 1fr) !important; }
  .site-footer, .whatsapp-fab { display: none !important; }
  .home-hero { padding-top: 34px; padding-bottom: 24px; }
  .home-copy { display: grid; gap: 0; }
  .home-copy .kicker { margin-bottom: 8px; }
  .home-copy h1 { max-width: 8.8ch; }
  .home-copy > p { margin-top: 10px; max-width: 28ch; }
  .hero-actions { margin-top: 22px; }
  .hero-visual { margin-top: 18px; }

  .local-page { padding-top: 20px; }
  .local-head { margin-bottom: 12px; }
  .local-map-card { display: grid; gap: 0; border: 1px solid #29292c; border-radius: 16px; overflow: hidden; background: #111113; }
  .local-map-frame { height: 220px; background: #0e0e10; }
  .local-map-frame iframe { width: 100%; height: 100%; border: 0; filter: grayscale(.7) invert(.88) contrast(.92); }
  .local-address-block { padding: 16px; }
  .local-label { display: block; margin-bottom: 8px; color: #b8935b; font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
  .local-address-block h3 { margin: 0; max-width: 28ch; font-size: 17px; line-height: 1.35; }
  .local-route { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 50px; margin-top: 14px; border-radius: 11px; text-decoration: none; }
  .local-support-grid { display: grid; grid-template-columns: 1fr; gap: 9px; margin-top: 10px; }
  .local-support-card { padding: 15px; border: 1px solid #29292c; border-radius: 14px; background: #111113; }
  .local-support-card p { display: flex; justify-content: space-between; gap: 18px; margin: 0; padding: 9px 0; border-bottom: 1px solid #242426; color: #aaa7a1; font-size: 12px; }
  .local-support-card p:last-of-type { border-bottom: 0; }
  .local-support-card p b { color: #f3f1ed; font-weight: 700; }
  .local-support-card p span { text-align: right; }
  .local-phone { align-items: center; }
  .local-contact-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
  .local-contact-actions .secondary-action { display: flex; align-items: center; justify-content: center; min-height: 46px; border-radius: 10px; text-decoration: none; }
  .public-reviews { margin-top: 14px; }
}

@media (max-width: 390px) {
  .mobile-nav button small { font-size: 8.5px; }
  .mobile-nav .nav-ico { transform: scale(.94); }
  .local-map-frame { height: 200px; }
}
