/* Mabella 2.0 — refinamentos de home, descoberta e navegação.
   Complementa, sem substituir, a identidade do protótipo original. */
:root { --shadow: 0 9px 27px rgba(107, 30, 58, .07); }
#scr { scrollbar-gutter: auto; }
.demo-banner { align-items: center; min-height: 35px; font-size: 10.5px; line-height: 1.35; }
.demo-banner button { flex: none; }

/* Home: hierarquia pensada primeiro para smartphone */
.home-header { display: flex; justify-content: space-between; align-items: center; padding: 14px 0 9px; }
.home-header .logo { font-size: 27px; letter-spacing: -.035em; }
.home-avatar { height: 42px; width: 42px; display: grid; place-items: center; border-radius: 50%; background: var(--wine); color: #fff; font-weight: 800; box-shadow: 0 3px 14px #6b1e3a20; }
.home-kicker { display: block; font-size: 10px; color: var(--wine); font-weight: 800; letter-spacing: .15em; }
.home-welcome { padding: 19px 0 14px; }
.home-welcome h1 { font-size: clamp(28px, 8.5vw, 38px); max-width: 510px; line-height: 1.11; letter-spacing: -.035em; margin: 9px 0; }
.home-welcome h1 em { color: var(--wine); font-style: italic; }
.home-welcome p { max-width: 360px; margin: 0; font-size: 13px; color: var(--mut); line-height: 1.55; }
.home-discovery { padding-top: 8px; }
.location-line { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin: 1px 0 12px; }
.location-line > div { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.location-hint { color: var(--mut); font-size: 10px; margin-bottom: 3px; }
.location-selector { gap: 6px; font-size: 13px; }
.location-selector select { max-width: min(48vw, 250px); cursor: pointer; text-overflow: ellipsis; }
.location-selector .i { height: 18px; width: 18px; }
.demo-soft { display: inline-flex; align-items: center; gap: 3px; background: var(--soft); color: var(--wine); border-radius: 99px; padding: 5px 8px; font-size: 10px; white-space: nowrap; }
.demo-soft .i { height: 12px; width: 12px; }
.search { height: 54px; border-radius: 18px; box-shadow: var(--shadow); border-color: #eadce1; transition: border-color .18s, box-shadow .18s; }
.search:focus-within { border-color: var(--wine); box-shadow: 0 0 0 3px rgba(107,30,58,.09); }
.search > .i { width: 21px; height: 21px; color: var(--wine); }
.search input { font-size: 14px; }
.search input::placeholder { color: #a38e98; opacity: 1; }
.search-caption { margin: 8px 3px 0; font-size: 11px; color: var(--mut); }
.sug { position: relative; z-index: 6; box-shadow: var(--shadow); }
.sug button:focus-visible { background: var(--soft); outline-offset: -3px; }
.section-title { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 0 0 10px; }
.section-title h2 { font-size: 22px; margin: 0; letter-spacing: -.03em; line-height: 1.3; }
.section-title p { font-size: 12px; color: var(--mut); margin: 2px 0 0; }
.section-link { display: inline-flex; align-items: center; gap: 4px; flex: none; color: var(--wine); font-weight: 800; font-size: 12px; padding: 8px 0 8px 5px; }
.section-link .i { width: 15px; height: 15px; transform: rotate(35deg); }
.home-categories { margin: 23px 0 18px; }
.category-scroll { padding: 1px 0 10px; gap: 12px; scroll-snap-type: x proximity; }
.category-scroll .cat { scroll-snap-align: start; flex: 0 0 68px; min-height: 82px; width: 68px; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 11px; color: var(--ink); }
.category-scroll .cat i { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 20px; margin: 0; background: #f8eaec; box-shadow: inset 0 0 0 1px #f1e0e5; transition: background .18s, transform .18s; font-size: 24px; }
.category-scroll .cat:hover i { transform: translateY(-2px); }
.category-scroll .cat.on i { border-color: var(--wine); background: var(--rose); }
.category-scroll .cat span { white-space: nowrap; }

/* Destaque editorial com detalhes decorativos 100% locais e sem imagens externas */
.home-promo { display: flex; position: relative; min-height: 185px; overflow: hidden; align-items: center; border-radius: 25px; background: linear-gradient(118deg, #611631 0%, #853651 62%, #bd7889 100%); color: white; padding: 22px; isolation: isolate; }
.promo-copy { position: relative; z-index: 2; max-width: min(74%, 330px); }
.promo-kicker { font-size: 9px; letter-spacing: .18em; opacity: .82; font-weight: 800; }
.home-promo h2 { font-size: 22px; line-height: 1.18; letter-spacing: -.018em; margin: 7px 0 5px; color: #fff; }
.home-promo p { font-size: 12px; color: rgba(255,255,255,.83); max-width: 245px; margin: 0 0 14px; line-height: 1.5; }
.home-promo .btn { background: #fff; color: #6B1E3A; height: 36px; padding: 0 13px; }
.home-promo .btn .i { width: 14px; height: 14px; }
.promo-art { position: absolute; width: 205px; height: 205px; right: -72px; top: 0; opacity: .65; transform: rotate(-12deg); }
.petal { position: absolute; width: 76px; height: 115px; border-radius: 75px 75px 14px 75px; background: rgba(255,222,226,.35); left: 60px; top: 25px; transform-origin: 45px 81px; }
.petal-a { transform: rotate(0deg); } .petal-b { transform: rotate(90deg); } .petal-c { transform: rotate(180deg); } .petal-d { transform: rotate(270deg); }
.petal-core { position: absolute; left: 88px; top: 95px; width: 34px; height: 34px; border-radius: 50%; background: rgba(255,225,218,.8); }
.home-nearby { margin-top: 26px; }
.nearby-disclaimer { display: flex; align-items: center; gap: 5px; margin: 12px 0 8px; color: var(--mut); font-size: 11px; }
.nearby-disclaimer .i { width: 14px; height: 14px; }

/* Cartões compactos e legíveis, com o mesmo vinho/rosé do protótipo */
.listing-grid { display: grid; grid-template-columns: minmax(0,1fr); gap: 12px; }
.listing-grid .professional-card { margin-bottom: 0; }
.professional-card { display: grid; grid-template-columns: 108px minmax(0, 1fr); border-radius: 19px; min-height: 184px; box-shadow: var(--shadow); cursor: pointer; transition: box-shadow .2s, transform .2s; }
.professional-card:hover { box-shadow: 0 12px 26px rgba(107,30,58,.13); }
.professional-card:focus-visible { outline: 3px solid var(--wine); outline-offset: 2px; }
.professional-card .ph { display: grid; height: 100%; min-height: 190px; align-content: center; isolation: isolate; overflow: hidden; background: linear-gradient(148deg,#7a2948,#e3a8ba); font-size: 31px; }
.professional-card .ph::before { content: ''; z-index: -1; position: absolute; width: 130px; height: 130px; border: 1px solid #ffffff70; border-radius: 50%; top: 28%; left: -43px; }
.professional-card .ph::after { content: ''; z-index: -1; position: absolute; width: 120px; height: 120px; border: 28px solid #ffffff1f; border-radius: 50%; bottom: -60px; right: -60px; }
.professional-card:nth-child(6n + 1) .ph { background: linear-gradient(145deg, #8e3152, #e3a4b5); }
.professional-card:nth-child(6n + 2) .ph { background: linear-gradient(145deg, #785363, #e8bcc5); }
.professional-card:nth-child(6n + 3) .ph { background: linear-gradient(145deg, #5e4358, #dcb1c0); }
.card-initials { letter-spacing: -.05em; text-shadow: 0 4px 12px #331a203a; }
.professional-card .ph .fav { width: 32px; height: 32px; right: 8px; top: 8px; }
.professional-card .ph .fav .i { height: 18px; width: 18px; }
.card-category { position: absolute; font: 800 10px var(--fb); background: #fffc; color: #632640; border-radius: 99px; padding: 4px 8px; left: 7px; top: 8px; max-width: calc(100% - 49px); overflow: hidden; text-overflow: ellipsis; }
.professional-card .cb { display: flex; flex-direction: column; min-width: 0; padding: 11px 12px 12px; }
.card-heading { display: flex; gap: 5px; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; }
.card-heading h3 { font: 700 17px/1.13 var(--fd); min-width: 0; }
.card-rating { display: inline-flex; gap: 3px; align-items: center; color: #a26b0a; white-space: nowrap; font-size: 11px; }
.card-rating .i { height: 13px; width: 13px; fill: #ebbf63; }
.card-rating b { color: var(--ink); }
.card-rating span { color: var(--mut); }
.card-description { color: var(--mut); font-size: 11px; margin: 6px 0 5px; }
.card-meta { color: var(--mut); font-size: 10.5px; display: flex; gap: 4px; align-items: center; min-width: 0; }
.card-meta > .i { width: 13px; height: 13px; color: var(--wine); }
.card-meta span { text-overflow: ellipsis; overflow: hidden; white-space: nowrap; }
.card-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 2px 8px; margin: 7px 0 8px; line-height: 1.2; }
.card-distance { font-size: 11px; color: var(--wine); font-weight: 800; }
.card-distance small { font-size: 9px; font-weight: 500; color: var(--mut); }
.card-price { color: var(--mut); font-size: 10px; }
.card-price b { color: var(--ink); white-space: nowrap; }
.card-actions { display: flex; gap: 6px; flex-wrap: wrap; margin-top: auto; }
.card-actions .btn { flex: 1 1 auto; height: 32px; padding: 0 8px; font-size: 10.5px; border-radius: 10px; white-space: nowrap; }
.card-actions .btn .i { height: 12px; width: 12px; }

/* Navegação sempre visível no rodapé do mobile, sem cobrir conteúdo */
#scr { padding-bottom: 28px; }
nav[aria-label="Navegação principal"] { position: relative; z-index: 10; border-top: 1px solid #eee0e5; box-shadow: 0 -5px 25px #431b2910; padding: 6px 9px calc(6px + env(safe-area-inset-bottom, 0px)); gap: 4px; }
nav .nav-item { min-width: 0; flex: 1; gap: 3px; border-radius: 14px; padding: 4px 2px; min-height: 52px; transition: color .15s; }
nav .nav-icon { display: grid; place-items: center; width: 46px; height: 30px; border-radius: 12px; transition: background .15s; }
nav .nav-icon svg { width: 20px; height: 20px; }
nav .nav-item.on .nav-icon { background: #f8e7ec; color: #6b1e3a; }
nav .nav-label { font-size: 10px; font-weight: 700; }

.explore-top { align-items: center; }
.explore-top h1 { margin: 3px 0 0; }
#scr[data-screen="explore"] > .listing-grid { margin-top: 6px; }

@media (max-width: 355px) {
  .location-line { flex-wrap: wrap; gap: 4px 8px; }
  .demo-soft { margin-left: auto; }
  .section-title h2 { font-size: 20px; }
  .home-welcome h1 { font-size: 28px; }
  .professional-card { grid-template-columns: 95px minmax(0, 1fr); }
  .professional-card .cb { padding: 10px; }
  .card-actions { gap: 4px; }
  .card-actions .btn { font-size: 10px; }
  .demo-soft { font-size: 9px; padding-inline: 6px; }
}
@media (min-width: 700px) {
  #scr[data-screen="home"], #scr[data-screen="explore"] { display: block; }
  #scr[data-screen="home"] { padding-inline: max(36px, calc((100% - 1180px) / 2)); }
  .home-header { padding-top: 24px; }
  .home-welcome h1 { font-size: 45px; max-width: 740px; }
  .home-welcome p { max-width: 520px; font-size: 14px; }
  .home-discovery { max-width: 780px; }
  .home-categories { margin-block: 28px 20px; }
  .home-promo { min-height: 220px; }
  .home-promo h2 { font-size: 29px; }
  .promo-art { width: 320px; height: 320px; right: 10px; top: -30px; transform: rotate(-12deg) scale(1.35); }
  .listing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .professional-card { display: flex; flex-direction: column; min-height: auto; }
  .professional-card .ph { min-height: 160px; height: 160px; }
  .professional-card .cb { padding: 16px; min-height: 191px; }
  .card-heading h3 { font-size: 19px; }
  .card-description, .card-meta, .card-distance, .card-price { font-size: 12px; }
  .card-actions .btn { min-height: 38px; font-size: 12px; }
  nav[aria-label="Navegação principal"] { width: min(640px, calc(100% - 50px)); margin: 0 auto 12px; flex-shrink: 0; border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 10px 38px rgba(107,30,58,.12); padding: 7px 12px; }
}
@media (min-width: 1100px) {
  .listing-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
  .home-promo { min-height: 220px; }
  .home-promo h2 { font-size: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  .professional-card, .search, nav .nav-icon, .category-scroll .cat i { transition: none; }
}


/* Tela de conta profissional: separada do editor de perfil público */
.pro-account { padding-bottom: 24px; }
.pro-account-top { padding: 20px 0 12px; }
.pro-account-top h1 { font-size: clamp(26px, 6vw, 36px); margin: 5px 0 3px; }
.pro-account-top p { color: var(--mut); font-size: 12px; margin: 0; }
.pro-identity { display: flex; gap: 13px; align-items: center; border: 1px solid var(--line); border-radius: 21px; background: var(--card); padding: 14px; margin: 9px 0 15px; box-shadow: var(--shadow); }
.pro-identity-avatar { width: 58px; height: 58px; border-radius: 19px; color: #fff; background: var(--wine); display: grid; place-items: center; font: 700 27px var(--fd); flex: none; }
.pro-identity-text { min-width: 0; }
.pro-identity h2 { margin: 3px 0 0; font-size: 19px; overflow-wrap: anywhere; }
.pro-identity p { margin: 0 0 3px; font-size: 12px; overflow-wrap: anywhere; }
.pro-profile-tag { font-size: 10px; color: var(--wine); font-weight: 700; }
.pro-studio { border: 1px solid var(--line); border-radius: 23px; background: var(--card); overflow: hidden; box-shadow: var(--shadow); }
.pro-studio-cover { height: 105px; position: relative; }
.pro-studio-avatar { position: absolute; bottom: -21px; left: 16px; width: 55px; height: 55px; border: 4px solid var(--bg); border-radius: 17px; display: grid; place-items: center; font: 700 19px var(--fd); color: white; }
.pro-studio-body { padding: 30px 16px 17px; }
.pro-studio-body .home-kicker { font-size: 9px; }
.pro-plan-pill { border-radius: 99px; background: var(--soft); color: var(--wine); padding: 5px 8px; font-size: 10px; font-weight: 700; }
.pro-studio-body h2 { margin: 9px 0 3px; font-size: 21px; overflow-wrap: anywhere; }
.pro-studio-body p { color: var(--mut); font-size: 12px; margin: 0 0 15px; overflow-wrap: anywhere; }
.pro-studio-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.pro-studio-actions .btn { flex: 1 1 125px; height: 42px; padding: 0 9px; font-size: 12px; }
.pro-studio-actions .i, .pro-account-footer .i { width: 17px; height: 17px; }
.pro-settings { margin-top: 23px; }
.pro-settings h2 { margin: 0 0 11px; font-size: 21px; }
.pro-action { width: 100%; text-align: left; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 11px 12px; display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.pro-action:hover { background: var(--soft); }
.pro-action > span:nth-child(2) { flex: 1; min-width: 0; }
.pro-action b { display: block; font-size: 13px; }
.pro-action small { display: block; font-size: 11px; color: var(--mut); margin-top: 2px; overflow-wrap: anywhere; }
.pro-action-icon { width: 40px; height: 40px; flex: none; border-radius: 12px; background: var(--soft); color: var(--wine); display: grid; place-items: center; }
.pro-action-icon .i { width: 19px; height: 19px; }
.pro-action-chevron { font-size: 26px; color: var(--mut); line-height: 1; }
.pro-account-footer { display: flex; flex-direction: column; gap: 8px; margin-top: 23px; }
.pro-account-note { color: var(--mut); text-align: center; font-size: 11px; margin: 13px 0 0; }
@media (min-width: 700px) {
  .pro-account { max-width: 850px; margin: 0 auto; }
  .pro-account-top { padding-top: 28px; }
  .pro-studio-cover { height: 160px; }
  .pro-studio-body { padding-inline: 25px; }
  .pro-studio-avatar { left: 24px; }
  .pro-account-footer { flex-direction: row; }
  .pro-account-footer .btn { flex: 1; }
}
