/* OWDEX Food R7 UX4 QA1 — Vitrine Fluent / categorias / abertura.
   Implementação incremental sobre UX3 QA2; não alterar a splash, Account, banco ou checkout. */
:root { --food-ux4-radius:12px; --food-ux4-stroke:#dde4ee; --food-ux4-focus:#176fea; }

/* Um ou dois resultados mantêm exatamente a mesma largura de card. */
body.owdex-r7 #app .marketplace-page .marketplace-grid,
body.owdex-r7 #app .marketplace-page .marketplace-grid.is-single {
  display:flex!important;
  flex-flow:row wrap!important;
  align-items:stretch!important;
  justify-content:flex-start!important;
  gap:16px!important;
}
body.owdex-r7 #app .marketplace-page .marketplace-grid > .marketplace-card,
body.owdex-r7 #app .marketplace-page .marketplace-grid.is-single > .marketplace-card {
  box-sizing:border-box!important;
  flex:0 1 410px!important;
  width:min(100%,410px)!important;
  min-width:0!important;
  max-width:410px!important;
  height:auto!important;
  margin:0!important;
  border-radius:var(--food-ux4-radius)!important;
  border:1px solid var(--food-ux4-stroke)!important;
  background:#fff!important;
  box-shadow:0 1px 2px rgba(34,51,74,.045),0 3px 12px rgba(34,51,74,.045)!important;
  transition:border-color .16s ease,box-shadow .16s ease!important;
}
body.owdex-r7 #app .marketplace-page .marketplace-card:hover {
  box-shadow:0 3px 16px rgba(34,51,74,.10)!important;
  border-color:#b6cbe7!important;
}
body.owdex-r7 #app .marketplace-page .marketplace-card:focus-visible {
  outline:2px solid var(--food-ux4-focus)!important;
  outline-offset:3px!important;
}
body.owdex-r7 #app .marketplace-page .marketplace-card .marketplace-card-image {
  flex:0 0 37%!important;
  width:37%!important;
  max-width:37%!important;
  min-width:0!important;
  align-self:stretch!important;
  background:#fbf4ee!important;
}
body.owdex-r7 #app .marketplace-page .marketplace-card .marketplace-card-image img {
  max-width:100%!important;
  object-fit:contain!important;
}
body.owdex-r7 #app .marketplace-page .marketplace-card .marketplace-card-body {
  box-sizing:border-box!important;
  flex:1 1 63%!important;
  min-width:0!important;
  padding:15px!important;
}
body.owdex-r7 #app .marketplace-page .marketplace-card :is(h3,p,span) {
  overflow-wrap:break-word;
}
/* Fluent: filtros persistentes; somente muda o estado selecionado. */
body.owdex-r7 #app .marketplace-page .food-market-category {
  border-radius:10px!important;
  border:1px solid var(--food-ux4-stroke)!important;
  background:#fff!important;
  box-shadow:0 1px 2px rgba(33,48,71,.035)!important;
  transition:border-color .16s ease,background-color .16s ease,box-shadow .16s ease!important;
}
body.owdex-r7 #app .marketplace-page .food-market-category:hover {
  background:#f6f9ff!important;
  border-color:#b9cde7!important;
}
body.owdex-r7 #app .marketplace-page .food-market-category.selected {
  background:#eff5ff!important;
  border-color:#89b4f1!important;
  box-shadow:inset 0 0 0 1px rgba(23,111,234,.08)!important;
}
body.owdex-r7 #app .marketplace-page .food-market-category:focus-visible,
body.owdex-r7 #app .marketplace-page .food-filter-trigger:focus-visible {
  outline:2px solid var(--food-ux4-focus)!important;
  outline-offset:2px!important;
}
/* Campo de busca com UMA borda apenas: o input interno é transparente. */
body.owdex-r7 #app .food-market-header .food-market-header-search label {
  display:flex!important;
  align-items:center!important;
  box-sizing:border-box!important;
  border:1px solid var(--food-ux4-stroke)!important;
  border-radius:8px 0 0 8px!important;
  background:#fff!important;
  box-shadow:none!important;
  overflow:hidden!important;
}
body.owdex-r7 #app .food-market-header .food-market-header-search label input {
  box-sizing:border-box!important;
  min-width:0!important;
  width:100%!important;
  border:0!important;
  border-radius:0!important;
  outline:0!important;
  box-shadow:none!important;
  background:transparent!important;
  appearance:none!important;
  -webkit-appearance:none!important;
}
body.owdex-r7 #app .food-market-header .food-market-header-search label:focus-within {
  border-color:var(--food-ux4-focus)!important;
  box-shadow:0 0 0 2px rgba(23,111,234,.12)!important;
}
body.owdex-r7 #app .food-market-header .food-market-header-search > button {
  border-radius:0 8px 8px 0!important;
}
body.owdex-r7 #app :where(.food-filter-trigger,.food-filter-sheet,.food-quick-search-sheet) {
  border-radius:var(--food-ux4-radius)!important;
}
@media (max-width:600px) {
  body.owdex-r7 #app .marketplace-page .marketplace-grid > .marketplace-card,
  body.owdex-r7 #app .marketplace-page .marketplace-grid.is-single > .marketplace-card {
    flex:1 1 100%!important;
    width:100%!important;
    max-width:100%!important;
  }
  body.owdex-r7 #app .marketplace-page .marketplace-card .marketplace-card-image {
    flex-basis:37%!important;
  }
}
@media (prefers-reduced-motion:reduce) {
  body.owdex-r7 #app .marketplace-page .marketplace-card,
  body.owdex-r7 #app .marketplace-page .food-market-category {transition:none!important;}
}
