/*
 * Layout público da IMF Marketplace: tema claro, header de 80px, home de busca centralizada,
 * botão de atendimento e efeitos de movimento. Carregado por último: ajusta o que veio do tema escuro.
 * Medidas de referência em 1290 × 633 (veja tests/e2e/home-layout.e2e.js).
 */

/* ─── Ajustes do tema claro sobre componentes existentes ─────────────────── */
body { background: var(--bg); }
.form-alert, .notice-danger { color: var(--danger-ink); }
.notice { color: var(--info-ink); }
.notice-warning { color: var(--warning-ink); }
.notice-success { color: var(--success-ink); }
.badge-info, .trust-item .ico { color: var(--info-ink); }
.badge-success, .btn.is-done { color: var(--success-ink); }
.badge-warning { color: var(--warning-ink); }
.badge-danger, .report-btn { color: var(--danger-ink); }
.badge-gold { color: #7a5a14; }
.env-banner, .status-banner { color: var(--warning-ink); }
.cat-link.active, .points-hint { color: var(--accent-hover); }
.table tbody tr:hover, .mini-row:hover { background: var(--surface-2); }
.skeleton::after { background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.7), transparent); }
.modal-backdrop { background: rgba(20, 26, 40, 0.42); backdrop-filter: blur(2px); }
.confirm-layer { background: rgba(20, 26, 40, 0.2); }
.toast { background: var(--surface); border-color: var(--border); box-shadow: var(--shadow-2); }
.store-banner { background: linear-gradient(120deg, #e8efff, #f6f8fc 70%); }
.ubadge-verified { --ub-fg: #1d4fd8; }
.ubadge-employee { --ub-fg: #6d46d8; }
.ubadge-official { --ub-fg: #9a6200; }
.btn-primary { box-shadow: 0 1px 2px rgba(37, 99, 235, 0.25); }
.btn-primary:hover { box-shadow: 0 8px 20px -10px rgba(37, 99, 235, 0.7); }
html[data-splash='on'] .splash { background: radial-gradient(70% 60% at 50% 42%, #ffffff 0%, #f4f6fb 70%, #eef1f7 100%); }
.splash-bar { background: var(--surface-3); }
/* O atendimento ocupa o canto: as notificações sobem acima dele. */
.toasts { bottom: calc(92px + env(safe-area-inset-bottom, 0px)); }

/* ─── Ícones Material Symbols Rounded ────────────────────────────────────── */
.msr {
  font-family: 'Material Symbols Rounded';
  font-weight: normal; font-style: normal; font-size: 22px; line-height: 1; letter-spacing: normal;
  text-transform: none; display: inline-block; white-space: nowrap; word-wrap: normal; direction: ltr;
  -webkit-font-smoothing: antialiased; font-feature-settings: 'liga'; user-select: none; flex: none;
  width: 1em; height: 1em; overflow: hidden;
}

/* ─── Header ─────────────────────────────────────────────────────────────── */
.site-header { background: #fff; backdrop-filter: none; border-bottom: 0; transition: box-shadow 0.2s; }
/* A divisória é sombra, não borda: o header mede exatamente 80px. */
.site-header.is-scrolled { box-shadow: 0 1px 0 var(--border), 0 6px 20px -18px rgba(23, 31, 51, 0.35); }
/* A linha sazonal fica só quando a página rola, em tom claro. */
html[data-season='natal'] .site-header:not(.is-scrolled)::after { display: none; }
.site-header .container { max-width: calc(1156px + 2 * var(--gutter)); }
.header-main { height: var(--header-h); gap: 20px; }
.logo img { height: 26px; }
.logo .wordmark { font-family: var(--display); font-size: 17px; color: var(--accent); }
.logo .wordmark strong { color: var(--accent); font-weight: 800; }
.logo .wordmark span { color: var(--text); font-weight: 500; }
.header-actions { gap: 8px; }
.header-actions .icon-btn {
  width: 40px; height: 40px; border-radius: 12px; background: var(--icon-btn-bg); color: #4b5263;
}
.header-actions .icon-btn:hover { background: #e6e9f0; color: var(--text); }
.header-actions .icon-btn .msr { font-size: 22px; }
.header-actions .count-dot { top: -4px; right: -4px; border: 2px solid #fff; height: 19px; min-width: 19px; border-radius: 10px; }
.header-cats {
  height: 40px; padding: 0 14px 0 12px; border-radius: 12px; background: var(--icon-btn-bg); color: #4b5263;
  font: 500 14px var(--display); gap: 6px; border: 0;
}
.header-cats:hover { background: #e6e9f0; color: var(--text); }
.header-cats .msr { font-size: 21px; }
.header-cats .caret { font-size: 20px; transition: transform 0.18s var(--ease); }
.header-cats[aria-expanded='true'] .caret { transform: rotate(180deg); }
.header-sell {
  width: 160px; height: 40px; margin: 0; padding: 0 16px; justify-content: center; gap: 6px; border-radius: 12px;
  font: 600 14.5px var(--display); letter-spacing: 0;
}
.header-sell .msr { font-size: 21px; }
.avatar-btn { padding: 0; overflow: hidden; }
.avatar-btn .avatar { width: 40px; height: 40px; }
.site-header .search { max-width: 520px; }
.site-header .search .input { height: 40px; border-radius: 12px; background: var(--icon-btn-bg); border-color: transparent; }
.site-header .search .prefix { top: 12px; }

/* Dropdowns: entrada curta, de cima para baixo. */
/* Os menus já entram com GSAP (layout.js); as sugestões de busca, por CSS. */
@media (prefers-reduced-motion: no-preference) {
  .search-results:not([hidden]) { animation: menu-in 0.16s var(--ease) both; transform-origin: top center; }
}
@keyframes menu-in { from { opacity: 0; transform: translateY(-6px) scale(0.98); } }
.menu { background: var(--surface); border-color: var(--border); }
.menu-item:hover, .menu-item:focus-visible { background: var(--surface-3); }

@media (max-width: 900px) {
  .header-cats .label, .header-cats .caret { display: none; }
  .header-cats { width: 40px; padding: 0; justify-content: center; }
}
@media (max-width: 720px) {
  :root { --header-h: 64px; }
  .header-main { gap: 8px; }
  .header-actions { gap: 6px; }
  .header-sell { width: auto; padding: 0 12px; }
  .header-actions .icon-btn, .header-cats { width: 38px; height: 38px; }
  .header-sell { height: 38px; }
}
@media (max-width: 420px) {
  .header-sell span:not(.msr) { display: none; }
  .header-sell { width: 38px; padding: 0; }
  .logo .wordmark { display: none; }
}

/* ─── Home ───────────────────────────────────────────────────────────────── */
/* Reflexos quase imperceptíveis: azul à esquerda, verde-água no topo, lilás à direita. */
body.page-home {
  background:
    radial-gradient(520px 420px at -4% 38%, rgba(59, 130, 246, 0.075), transparent 72%),
    radial-gradient(760px 300px at 50% -4%, rgba(45, 212, 191, 0.07), transparent 72%),
    radial-gradient(560px 440px at 104% 34%, rgba(167, 139, 250, 0.085), transparent 72%),
    var(--bg);
  background-repeat: no-repeat;
}

/*
 * Ritmo vertical a 1290 × 633 (header 80px):
 * título centrado em 192, subtítulo em 249, busca de 299 a 377,
 * "Mais buscados" a partir de 392, "Saiba como funciona" em 470, categorias em 582.
 */
.home-hero { text-align: center; padding: 89px 16px 0; }
.home-title {
  position: relative; display: inline-block; margin: 0; padding-inline: 34px;
  font: 800 38px/46px var(--display); color: #252830; letter-spacing: -0.01em;
}
/* Colchetes decorativos cinza-claros nas laterais do título. */
.home-title::before, .home-title::after {
  content: ''; position: absolute; top: 6px; bottom: 6px; width: 12px;
  border: 3px solid #dfe3eb; border-radius: 3px;
}
.home-title::before { left: 0; border-right: 0; border-radius: 4px 0 0 4px; }
.home-title::after { right: 0; border-left: 0; border-radius: 0 4px 4px 0; }
.home-sub { margin: 21px auto 0; font: 500 18px/26px var(--display); color: var(--accent); max-width: 92vw; }

.home-search { position: relative; width: min(690px, 100%); margin: 37px auto 0; text-align: left; }
.home-search-box {
  display: flex; align-items: center; height: 78px; padding: 10px; border-radius: 18px;
  border: 1px solid #cfdcff; background: #f1f5ff; transition: border-color 0.18s, box-shadow 0.18s;
}
.home-search-box:focus-within { border-color: var(--accent-line); box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.08); }
.home-search-field {
  position: relative; display: flex; align-items: center; gap: 12px; flex: 1; height: 56px; padding: 0 12px 0 18px;
  border-radius: 12px; background: #fff; box-shadow: 0 1px 2px rgba(23, 31, 51, 0.05);
}
.home-search-field .msr { font-size: 24px; color: #7b8294; }
.home-search-field input {
  flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent;
  font: 400 15.5px var(--display); color: var(--text);
}
.home-search-field input::placeholder { color: #9aa1b0; }
.home-search-field input::-webkit-search-cancel-button { display: none; }
.kbd-hint { display: inline-flex; align-items: center; gap: 3px; flex: none; }
.kbd-hint kbd {
  display: inline-grid; place-items: center; min-width: 26px; height: 26px; padding: 0 7px; border-radius: 7px;
  border: 1px solid #e1e5ee; border-bottom-width: 2px; background: #f7f8fb; color: #6b7283; font: 500 12px var(--display);
}
.home-search .search-results { top: calc(100% + 6px); border-radius: 14px; background: #fff; border-color: var(--border); }

.most-searched { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px; margin: 15px auto 0; max-width: 860px; min-height: 28px; }
.most-searched-label { font: 500 13px var(--display); color: #6b7283; margin-right: 2px; }
.ms-chip {
  display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border-radius: 8px;
  background: var(--chip-bg); color: #4b5263; font: 500 13px var(--display); transition: background 0.16s, color 0.16s, transform 0.16s;
}
.ms-chip:hover { background: #e2e7f2; color: var(--accent); }
.ms-chip:active { transform: scale(0.97); }

.home-how { display: inline-flex; align-items: center; gap: 4px; margin-top: 40px; font: 500 14px/20px var(--display); color: var(--accent); }
.home-how .msr { font-size: 20px; transition: transform 0.2s var(--ease); }
.home-how:hover .msr { transform: translateY(2px); }

.home-categories { padding-top: 100px; }
.home-categories .section-head h2 { font: 700 20px/26px var(--display); color: var(--text); }
.home-categories .container, .page-home .home-below.container { max-width: calc(1156px + 2 * var(--gutter)); }
.page-home .section-head h2 { font-family: var(--display); }

@media (max-width: 720px) {
  .home-hero { padding-top: 48px; }
  .home-title { font-size: 28px; line-height: 36px; padding-inline: 24px; }
  .home-title::before, .home-title::after { width: 9px; border-width: 2.5px; }
  .home-sub { font-size: 15px; line-height: 22px; margin-top: 12px; }
  .home-search { margin-top: 24px; }
  .home-search-box { height: 66px; padding: 7px; border-radius: 16px; }
  .home-search-field { height: 50px; padding-left: 14px; }
  .home-search-field input { font-size: 15px; }
  .kbd-hint { display: none; }
  /* Chips em uma linha rolável no celular, sem rolagem horizontal da página. */
  .most-searched { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; margin-inline: -16px; padding-inline: 16px; }
  .most-searched::-webkit-scrollbar { display: none; }
  .ms-chip, .most-searched-label { flex: none; }
  .home-how { margin-top: 26px; }
  .home-categories { padding-top: 56px; }
  /* Duas colunas compactas: mais categorias visíveis sem rolar. */
  .home-categories .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .home-categories .category-tile { flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px; }
  .home-categories .category-tile .grow { width: 100%; }
  .home-categories .category-tile .arrow { display: none; }
}
@media (max-width: 420px) {
  .home-search-field { gap: 8px; padding: 0 8px 0 12px; }
  .home-search-field .msr { font-size: 22px; }
  .home-search-field input { font-size: 14px; }
}

/* ─── Atendimento ────────────────────────────────────────────────────────── */
.support-fab-wrap { position: fixed; right: 24px; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); z-index: 90; }
.support-fab {
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent); color: #fff; box-shadow: 0 10px 24px -8px rgba(37, 99, 235, 0.65);
  transition: background 0.16s, transform 0.2s var(--ease), box-shadow 0.2s;
}
.support-fab:hover { background: var(--accent-hover); transform: translateY(-2px); }
.support-fab .msr { font-size: 26px; }
.support-fab-wrap > .menu { right: 0; bottom: calc(100% + 10px); top: auto; transform-origin: bottom right; }
@media (max-width: 720px) { .support-fab-wrap { right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); } }

/* ─── Efeitos (inspirados em React Bits, implementados sem React) ─────────── */
/* Fade Content: entra com leve desfoque quando chega à tela. */
.fx-fade { opacity: 0; filter: blur(6px); transform: translateY(10px); transition: opacity 0.6s var(--ease), filter 0.6s var(--ease), transform 0.6s var(--ease); }
.fx-fade.in-view { opacity: 1; filter: none; transform: none; }

/* Blur Text: cada palavra sai do desfoque em sequência. */
.fx-blur-text .w { display: inline-block; opacity: 0; filter: blur(10px); transform: translateY(-8px); animation: blur-word 0.7s var(--ease) forwards; animation-delay: calc(var(--i) * 110ms); }
.fx-blur-text .w + .w { margin-left: 0.26em; }
@keyframes blur-word { to { opacity: 1; filter: none; transform: none; } }

/* Shiny Text discreto: um brilho atravessa o texto a cada poucos segundos. */
.fx-shiny {
  background: linear-gradient(110deg, var(--accent) 40%, #8fb2ff 50%, var(--accent) 60%) 0 0 / 250% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shiny 5.5s ease-in-out infinite;
}
@keyframes shiny { 0%, 55% { background-position: 100% 0; } 100% { background-position: -100% 0; } }

/* Star Border: dois pontos de luz percorrem a borda do botão. */
.fx-star-border { position: relative; isolation: isolate; overflow: hidden; }
.fx-star-border::before, .fx-star-border::after {
  content: ''; position: absolute; z-index: -1; width: 300%; height: 50%; border-radius: 50%; opacity: 0.45;
  background: radial-gradient(circle, #ffffff, transparent 10%); pointer-events: none;
}
.fx-star-border::before { bottom: -12px; right: -250%; animation: star-bottom 5s linear infinite alternate; }
.fx-star-border::after { top: -12px; left: -250%; animation: star-top 5s linear infinite alternate; }
@keyframes star-bottom { 0% { transform: translate(0, 0); opacity: 0.8; } 100% { transform: translate(-100%, 0); opacity: 0; } }
@keyframes star-top { 0% { transform: translate(0, 0); opacity: 0.8; } 100% { transform: translate(100%, 0); opacity: 0; } }

/* Glare Hover: reflexo que segue o ponteiro nos cards de produto. */
.fx-glare { position: relative; }
.fx-glare::before {
  content: ''; position: absolute; inset: 0; z-index: 2; border-radius: inherit; pointer-events: none; opacity: 0;
  background: radial-gradient(240px circle at var(--gx, 50%) var(--gy, 0%), rgba(255, 255, 255, 0.55), transparent 60%);
  mix-blend-mode: soft-light; transition: opacity 0.25s;
}
@media (hover: hover) { .fx-glare:hover::before { opacity: 1; } }

/* Magnet: o botão acompanha levemente o ponteiro (deslocamento aplicado pelo JS). */
.magnet { transition: transform 0.25s var(--ease); will-change: transform; }

/* Animated List: itens entram em cascata. */
.fx-list > *, .fx-item { opacity: 0; transform: translateY(8px) scale(0.98); animation: list-in 0.36s var(--ease) forwards; animation-delay: calc(var(--i, 0) * 45ms); }
@keyframes list-in { to { opacity: 1; transform: none; } }

/* Carrinho: o contador pulsa ao mudar. */
.count-dot.bump { animation: count-pop 0.4s var(--ease); }

@media (prefers-reduced-motion: reduce) {
  .fx-fade, .fx-blur-text .w, .fx-list > *, .fx-item { opacity: 1; filter: none; transform: none; animation: none; transition: none; }
  .fx-shiny { animation: none; background: none; color: var(--accent); }
  .fx-star-border::before, .fx-star-border::after, .fx-glare::before { display: none; }
  .magnet { transition: none; transform: none !important; }
  .search-results:not([hidden]) { animation: none; }
}

/* IMF Marketplace — identidade própria da home (2026-11-14) */
.home-hero { max-width: 1120px; margin: 0 auto; padding: 74px 28px 0; text-align: left; }
.home-intro-label { display:flex;align-items:center;gap:9px; font:700 11px/1.5 var(--display);letter-spacing:.14em;color:#3261b5; }
.home-intro-label .msr { font-size:18px; }
.home-intro-dot { width:4px;height:4px;border-radius:50%;background:#9aacc8; }
.home-title { display:block; max-width:790px;margin:20px 0 0;padding:0;font:800 clamp(38px,5vw,66px)/1.08 var(--display);letter-spacing:-.045em;color:#202c43; }
.home-title::before,.home-title::after { content:none;display:none; }
.home-title em { font-style:normal;color:var(--accent); }
.home-sub { max-width:590px;margin:18px 0 0;font:400 clamp(15px,1.65vw,18px)/1.65 var(--display);color:#626e82; }
.home-quick-links { display:flex;gap:12px;flex-wrap:wrap;margin:27px 0 0; }
.home-quick-links a { display:inline-flex;align-items:center;gap:9px;min-height:42px;padding:0 16px;border:1px solid #dbe4f3;border-radius:12px;background:#fff;color:#253b5c;font:600 13px var(--display);transition:transform .2s,border-color .2s,background .2s; }
.home-quick-links a:first-child { background:#eaf1ff;border-color:#d6e4ff;color:#1e55ba; }
.home-quick-links a:hover { transform:translateY(-2px);border-color:#a5bfe9; }
.home-quick-links .msr {font-size:19px;}
.home-quick-links .msr:last-child {font-size:16px;opacity:.7;}
.home-search {width:min(750px,100%);margin:31px 0 0;}
.home-search-box {height:72px;padding:7px;border-radius:17px;background:#fff;border:1px solid #d4dfef;box-shadow:0 13px 35px -28px rgba(21,63,129,.6);gap:7px;}
.home-search-field {background:#fff;box-shadow:none;height:56px;}
.home-search-submit {display:grid;place-items:center;flex:none;width:54px;height:54px;border:0;border-radius:12px;background:var(--accent);color:#fff;cursor:pointer;transition:background .2s,transform .2s;}
.home-search-submit:hover {background:var(--accent-hover);transform:translateX(2px);}
.home-search-submit .msr {font-size:24px;}
.most-searched {justify-content:flex-start;margin:17px 0 0;max-width:850px;}
.ms-chip {border-radius:999px;background:#f1f5fa;border:1px solid #e6ebf3;padding:0 13px;}
.home-how {margin-top:28px;color:#64748b;font-size:13px;}
.home-categories {padding-top:70px;}
.support-fab {width:auto;min-width:114px;height:49px;padding:0 16px;display:flex;align-items:center;justify-content:center;gap:8px;border-radius:15px;background:#182e54;box-shadow:0 8px 22px -12px rgba(14,37,77,.65);}
.support-fab:hover {background:#254a85;}
.support-fab .msr {font-size:21px;}
.support-fab-label {font:600 13px var(--display);}
.support-fab-wrap>.menu {border-radius:17px;}
@media (max-width:720px) {
 .home-hero {padding:47px 20px 0;}
 .home-intro-label {font-size:9px;gap:7px;letter-spacing:.09em;}
 .home-title {font-size:clamp(34px,9vw,48px);line-height:1.13;margin-top:17px;}
 .home-sub {font-size:15px;line-height:1.55;margin-top:15px;}
 .home-quick-links {margin-top:21px;gap:8px;}
 .home-quick-links a {padding:0 11px;font-size:12px;min-height:40px;}
 .home-search {margin-top:25px;}
 .home-search-box {height:64px;}
 .home-search-field {height:48px;padding-left:12px;}
 .home-search-submit {height:48px;width:48px;}
 .most-searched {margin:15px -20px 0;padding-inline:20px;}
 .home-how {margin-top:23px;}
 .home-categories {padding-top:52px;}
 .support-fab {min-width:49px;width:49px;height:49px;padding:0;border-radius:15px;}
 .support-fab-label {display:none;}
}

/* Hero centralizado — revisão solicitada */
.home-hero{max-width:1160px;margin-inline:auto;padding:78px 24px 0;text-align:center;display:flex;flex-direction:column;align-items:center}
.home-intro-label{display:inline-flex;justify-content:center;align-items:center;gap:9px;border:1px solid #dceafe;background:#eef6ff;color:#0864dc;border-radius:999px;padding:9px 17px;font:700 13px/1.3 var(--display);letter-spacing:0;text-transform:none}
.home-intro-label .msr{font-size:19px}
.home-title{max-width:940px;margin:28px auto 0;text-align:center;font:800 clamp(40px,5.8vw,78px)/1.08 var(--display);letter-spacing:-.055em;color:#091735}
.home-title em{color:#0867ed;display:inline;font-style:normal}
.home-sub{max-width:720px;margin:23px auto 0;text-align:center;font:500 clamp(16px,1.75vw,20px)/1.55 var(--display);color:#51627e}
.home-search{width:min(950px,100%);margin:43px auto 0}
.home-search-box{height:76px;border-radius:40px;padding:7px;box-shadow:0 12px 28px rgba(14,53,112,.10)}
.home-search-field{height:60px}
.home-search-submit{height:60px;width:auto;min-width:146px;padding:0 25px;border-radius:30px;display:inline-flex;gap:9px;justify-content:center;align-items:center;font:700 15px var(--display)}
.most-searched{max-width:960px;justify-content:center;margin:20px auto 0}
.home-how{margin:30px auto 0}
.home-categories{padding-top:76px}
@media(max-width:720px){
.home-hero{padding:54px 17px 0}
.home-intro-label{font-size:11px;padding:8px 12px}
.home-title{font-size:clamp(36px,9.2vw,52px);margin-top:22px;letter-spacing:-.05em}
.home-sub{font-size:15px;margin-top:17px}
.home-search{margin-top:29px}
.home-search-box{height:64px;padding:6px;border-radius:22px}
.home-search-field{height:50px;min-width:0}
.home-search-submit{height:50px;min-width:60px;padding:0 14px;font-size:0;border-radius:16px}
.home-search-submit .msr{font-size:23px}
.most-searched{margin:17px auto 0;padding:0;justify-content:center}
.home-how{margin-top:24px}
.home-categories{padding-top:55px}
}

/* ─── Correção responsiva da landing (15/11/2026) ───────────────────────────
   Overrides finais: preservam a identidade e evitam largura mínima implícita
   de itens flex, recorte do header e chips estourando a viewport. */
@media (max-width: 720px) {
  .site-header, .site-header .container, .header-main { min-width: 0; max-width: 100%; }
  .site-header .header-main { flex-wrap: nowrap; height: var(--header-h); padding-block: 0; gap: 6px; }
  .site-header .logo { min-width: 0; flex: 0 0 auto; }
  .site-header .logo img { max-width: 66px; width: auto; height: 26px; object-fit: contain; }
  .site-header .header-actions { flex: 0 1 auto; min-width: 0; gap: 4px; margin-left: auto; }
  .site-header .header-actions .icon-btn, .site-header .header-cats { flex: 0 0 36px; width: 36px; height: 36px; }
  .site-header .header-sell { flex: 0 0 36px; width: 36px; height: 36px; min-width: 0; padding: 0; margin: 0; }
  .site-header .header-sell span:not(.msr) { display: none; }
  .site-header .search { min-width: 0; }
  .home-hero { width: 100%; max-width: 100%; min-width: 0; }
  .home-title, .home-sub { max-width: 100%; overflow-wrap: break-word; }
  .home-search, .home-search-box, .home-search-field { max-width: 100%; min-width: 0; }
  .home-search-box { width: 100%; }
  .home-search-field { flex: 1 1 0; padding-right: 0; }
  .home-search-field input { min-width: 0; width: 100%; }
  .home-search-submit { flex: 0 0 50px; min-width: 0; width: 50px; padding: 0; }
  .most-searched { width: 100%; max-width: 100%; min-width: 0; margin: 17px 0 0; padding: 0 0 4px; flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .most-searched::-webkit-scrollbar { display: none; }
  .most-searched > * { flex-shrink: 0; }
  .home-categories .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-categories .category-tile { min-width: 0; }
}
@media (max-width: 390px) {
  .site-header .container { padding-inline: 12px; }
  .site-header .header-main { gap: 4px; }
  .site-header .header-actions { gap: 2px; }
  .site-header .header-actions .icon-btn, .site-header .header-cats, .site-header .header-sell { flex-basis: 32px; width: 32px; height: 34px; }
  .home-hero { padding-inline: 16px; }
  .home-title { font-size: clamp(30px, 9vw, 36px); }
}

/* IMF Marketplace — correção mobile específica: cabeçalho e seta da busca. */
@media (max-width: 720px) {
  html, body { width: 100%; max-width: 100%; overflow-x: clip; }
  .site-header { width: 100%; min-width: 0; }
  .site-header > .container { width: 100%; max-width: 100%; }
  .site-header .header-main { display: flex; width: 100%; min-width: 0; justify-content: space-between; }
  .site-header .logo { flex: 0 1 auto; min-width: 0; overflow: hidden; }
  .site-header .header-actions { flex: 0 0 auto; margin-left: auto; }
  .site-header .search { display: none; }
  .home-hero { box-sizing: border-box; }
  .home-search { width: 100%; min-width: 0; }
  .home-search-box { display: flex; align-items: center; width: 100%; height: 64px; padding: 6px; gap: 6px; }
  .home-search-field { flex: 1 1 0; min-width: 0; height: 50px; padding: 0 4px 0 10px; }
  .home-search-field input { min-width: 0; flex: 1 1 0; }
  .home-search-submit,
  .home-search-box .home-search-submit {
    box-sizing: border-box; display: flex; align-items: center; justify-content: center;
    position: relative; flex: 0 0 48px; width: 48px; min-width: 48px;
    max-width: 48px; height: 48px; min-height: 48px; max-height: 48px;
    margin: 0; padding: 0; gap: 0; border-radius: 15px;
    font-size: 0; line-height: 1; text-align: center;
  }
  .home-search-submit > .msr,
  .home-search-submit > svg,
  .home-search-submit > [data-lucide] {
    display: block; position: static; flex: none; width: 24px; height: 24px;
    margin: 0; padding: 0; transform: none; font-size: 24px; line-height: 24px;
    text-align: center; vertical-align: middle;
  }
  .home-search-submit:hover { transform: none; }
  .most-searched { max-width: 100%; overflow-x: auto; }
}
@media (max-width: 390px) {
  .site-header .container { padding-inline: 10px; }
  .site-header .logo img { max-width: 58px; }
  .site-header .header-actions { gap: 2px; }
  .home-search-submit, .home-search-box .home-search-submit {
    flex-basis: 46px; width: 46px; min-width: 46px; max-width: 46px;
    height: 46px; min-height: 46px; max-height: 46px;
  }
}

/* IMF mobile V4 — estrutura real do botão de busca, sem fonte de ícones */
.home-search-submit .home-search-submit-label { display: inline; }
.home-search-submit .home-search-submit-arrow { display: block; flex: 0 0 22px; width: 22px; height: 22px; margin: 0; padding: 0; transform: none; }
@media (max-width: 720px) {
  .page-home .home-hero { width: 100%; max-width: 100%; min-width: 0; box-sizing: border-box; padding-inline: 16px; }
  .page-home .home-search { width: 100%; min-width: 0; max-width: 100%; }
  .page-home .home-search-box { width: 100%; min-width: 0; max-width: 100%; display: flex; align-items: center; gap: 6px; padding: 6px; height: 62px; }
  .page-home .home-search-field { flex: 1 1 0; width: auto; min-width: 0; height: 48px; }
  .page-home .home-search-field input { flex: 1 1 0; min-width: 0; width: 100%; }
  .page-home .home-search-box > .home-search-submit { display: grid; place-items: center; box-sizing: border-box; flex: 0 0 46px; width: 46px; min-width: 46px; max-width: 46px; height: 46px; min-height: 46px; max-height: 46px; padding: 0; margin: 0; border-radius: 14px; line-height: 1; font-size: 0; gap: 0; }
  .page-home .home-search-submit-label { display: none; }
  .page-home .home-search-submit-arrow { display: block; width: 22px; height: 22px; flex: none; position: static; margin: 0; padding: 0; transform: none; }
  .page-home .most-searched { width: 100%; max-width: 100%; min-width: 0; margin-inline: 0; overflow-x: auto; }
  .page-home .home-title { max-width: 100%; overflow-wrap: break-word; }
}
