/* Acabamento comum às páginas, sem substituir a identidade da Florie. */
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body.florie-menu-aberto { overflow: hidden; }
.f-header > * { min-width: 0; }
.f-header .f-nav { gap: clamp(12px, 2vw, 28px) !important; }
.f-header .f-nav a { white-space: nowrap; }
.f-header a, .f-header button { flex-shrink: 0; }
.card { min-width: 0; }
.card > div { flex-wrap: wrap; }
.card-img { border-radius: 4px; }
.card .btn, [data-comprar-card] { border-radius: 4px; }
.f-form input { min-width: 0; }
.f-form input:focus-visible { outline: 2px solid var(--cor-foco, #9A5144); outline-offset: 3px; }
#q { min-width: 0; }
#q:focus-visible { outline: 2px solid var(--cor-foco, #9A5144) !important; outline-offset: 2px; }
.f-categorias { padding: 40px calc(var(--gut, 0px) + 64px); background: var(--cor-superficie); }
.f-categorias > p { margin: 0 0 20px; font-size: var(--t-rotulo); letter-spacing: var(--ls-m); text-transform: uppercase; color: var(--cor-texto-suave); }
.f-categorias nav { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.f-categoria { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px; border: 1px solid var(--cor-borda); border-radius: 4px; transition: background-color 150ms, border-color 150ms; }
.f-categoria:hover { background: var(--cor-rose-claro); border-color: var(--cor-cobre); }
.f-categoria strong { display: block; font-family: var(--f-display); font-size: 28px; font-weight: 500; }
.f-categoria small { display: block; margin-top: 4px; font-size: 13px; color: var(--cor-texto-suave); line-height: 1.5; }
.f-categoria > span:last-child { font-size: 22px; }
.f-news-privacidade { max-width: 560px; margin: 0; font-size: 13px; line-height: 1.6; color: var(--cor-cacau-escuro); }
.f-news-privacidade a { text-decoration: underline; text-underline-offset: 3px; }
.florie-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
#florie-feedback { position: fixed; right: 16px; bottom: calc(84px + env(safe-area-inset-bottom, 0px)); z-index: 40; display: flex; align-items: center; gap: 16px; box-sizing: border-box; max-width: calc(100vw - 32px); padding: 16px 20px; border: 1px solid var(--cor-borda, #EAD8CB); border-radius: 8px; background: var(--cor-superficie, #FFFAF5); color: var(--cor-cacau, #5A2E22); box-shadow: 0 8px 32px rgba(90, 46, 34, .14); font-family: var(--f-texto); font-size: 14px; }
#florie-feedback[hidden] { display: none; }
#florie-feedback a { flex-shrink: 0; text-decoration: underline; text-underline-offset: 3px; }
#florie-feedback button { flex-shrink: 0; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: inherit; font-size: 24px; }
#florie-carrinho-fixo, #florie-whats-fixo { bottom: calc(16px + env(safe-area-inset-bottom, 0px)) !important; }
@media (min-width: 1024px) and (max-width: 1199px) {
  .f-header { padding-left: 32px !important; padding-right: 32px !important; }
  .f-header .f-nav { font-size: 12px !important; letter-spacing: .08em !important; }
  .f-header .f-nav { gap: 12px !important; }
}
@media (max-width: 1023px) {
  .f-categorias { padding: 32px 24px; }
  .f-categorias nav { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .f-categoria { padding: 16px; }
  .f-categoria strong { font-size: 25px; }
  .f-header a[data-carrinho] { padding: 0 4px !important; gap: 6px !important; }
  .f-header .florie-carrinho-nome { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
  .f-form input { border-right: 1px solid var(--cor-borda-campo) !important; }
  body .f-foot, body .f-foot2 { padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px)) !important; }
}
@media (max-width: 639px) {
  body .f-hero-img { height: clamp(280px, 82vw, 420px) !important; }
  body .f-grid { display: grid !important; grid-template-columns: minmax(0, 1fr) !important; overflow: visible !important; gap: 36px !important; }
  .f-grid > article { min-width: 0; }
  .f-grid > article.card { gap: 16px !important; }
  .f-categoria small { font-size: 12px; }
  #florie-feedback { left: 16px; right: 16px; gap: 12px; padding: 12px 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .f-categoria { transition: none; }
}
