/* Protótipo BioEstar: estilos de apoio. O visual de cada tela vem dos estilos do Paper (inline). */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: #FFFFFF; color: #10263D; font-family: 'Inter', system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; cursor: pointer; }
a:focus-visible, [tabindex]:focus-visible { outline: 2px solid #CF8044; outline-offset: 2px; }
#receita { scroll-margin-top: 24px; }

/* Selo fixo de protótipo */
.proto-flag { position: fixed; left: 12px; bottom: 12px; z-index: 50; padding: 6px 10px; border-radius: 4px; background: #10263DE6; color: #FFFFFF; font-size: 11px; line-height: 14px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; pointer-events: none; }

/* Aviso discreto */
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 60; transform: translate(-50%, 12px); max-width: calc(100% - 32px); padding: 12px 18px; border-radius: 6px; background: #10263D; color: #FFFFFF; font-size: 14px; line-height: 20px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Estados só visuais */
.chk-box > svg { display: none; }
.chk-box.on { background: #0A2E52 !important; border: none !important; }
.chk-box.on > svg { display: block; }
.p-variant.on { border: 1.5px solid #0A2E52 !important; color: #0A2E52 !important; font-weight: 600 !important; }
.p-variant:not(.on) { border: 1px solid #D9D3CA !important; font-weight: 400 !important; }
.p-thumb.on { border: 1.5px solid #0A2E52 !important; }
.card-photo:hover, .card a:hover { opacity: .92; }

/* Celular: elementos ocultos no computador */
.m-header, .m-footer, .home-mob, .m-only { display: none !important; }

@media (max-width: 767px) {
  .home-desk, .d-header, .d-footer { display: none !important; }
  .home-mob, .m-header, .m-footer { display: block !important; }
  .m-header { display: flex !important; position: sticky; top: 0; z-index: 20; }
  .m-footer { display: flex !important; }
  .m-scroll { scrollbar-width: none; }
  .proto-flag { bottom: auto; top: auto; left: 8px; bottom: 8px; font-size: 10px; }

  /* Categoria */
  .cat-top { padding: 20px 20px 16px !important; gap: 10px !important; }
  .cat-title-row { flex-direction: column !important; align-items: flex-start !important; gap: 6px !important; }
  .cat-title-row > div:first-child > div:first-child { font-size: 34px !important; line-height: 38px !important; }
  .cat-desc { width: auto !important; }
  .cat-body { flex-direction: column !important; gap: 16px !important; padding: 0 20px 48px !important; }
  .cat-filters { display: none !important; width: 100% !important; }
  .cat-filters.open { display: flex !important; }
  .m-filter-btn { display: flex !important; }
  .cat-sort { flex-wrap: wrap !important; row-gap: 10px !important; }
  .cat-results { display: grid !important; grid-template-columns: 1fr 1fr; gap: 24px 12px !important; }
  .cat-sort, .cat-pag { grid-column: 1 / -1; }
  .cat-row { display: contents !important; }
  .card div, .p-buy div { white-space: normal !important; }
  .card-photo { height: 200px !important; }
  .card-photo svg:first-of-type { width: 60px; height: 88px; }
  .card-desc { display: none !important; }
  .card > div:nth-child(3) { flex-wrap: wrap !important; row-gap: 2px !important; }
  .card > a:last-child { font-size: 13px !important; height: 40px !important; text-align: center; }

  /* Produto */
  .p-main { padding: 16px 20px 0 !important; gap: 16px !important; }
  .p-cols { flex-direction: column !important; gap: 24px !important; }
  .p-gallery { width: 100% !important; flex-direction: column-reverse !important; gap: 10px !important; }
  .p-thumbs { flex-direction: row !important; width: auto !important; gap: 8px !important; }
  .p-thumb { width: 64px !important; height: 64px !important; }
  .p-image { height: 360px !important; flex: none !important; }
  .p-image svg { width: 120px; height: 175px; }
  .p-title { font-size: 30px !important; line-height: 34px !important; }
  .p-info { flex-direction: column !important; gap: 32px !important; padding: 48px 20px 0 !important; }
  .acc-text { width: auto !important; }
  .p-cta { width: auto !important; }
  .p-related { padding: 48px 20px 48px !important; }
  .rel-row { overflow-x: auto !important; scroll-snap-type: x mandatory; gap: 12px !important; scrollbar-width: none; }
  .rel-row > .card { flex: 0 0 72% !important; scroll-snap-align: start; }
}
