/* OWDEX Food R7 UX3 QA1 — ajustes visuais pontuais da R7 UX2 QA4.
   SEM alteracoes de JS, regras de negocio, banco de dados, SSO ou splash.
   Carregado por ultimo para neutralizar regras conflitantes do historico. */

/* 1. Vitrine: nao recortar o texto do painel de boas-vindas.
   A UX2 forçava overflow:hidden no painel; removemos também o raio como
   solicitado para evitar que a superficie arredondada oculte o topo/esquerda. */
body.owdex-r7 #app .marketplace-page .marketplace-welcome {
  overflow:visible!important;
  border-radius:0!important;
  clip-path:none!important;
  -webkit-mask:none!important;
  mask:none!important;
  min-width:0!important;
  max-width:100%!important;
}
body.owdex-r7 #app .marketplace-page .marketplace-welcome > div:first-child {
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  overflow:visible!important;
  clip-path:none!important;
  -webkit-mask:none!important;
  mask:none!important;
  text-indent:0!important;
}
body.owdex-r7 #app .marketplace-page .marketplace-kicker {
  display:block!important;
  position:static!important;
  overflow:visible!important;
  width:auto!important;
  max-width:100%!important;
  white-space:normal!important;
  text-overflow:clip!important;
  text-indent:0!important;
  clip-path:none!important;
  -webkit-mask:none!important;
  mask:none!important;
  transform:none!important;
  translate:none!important;
  animation:none!important;
}

/* 2-4. PWA/mobile. Somente telas estreitas — desktop preservado. */
@media (max-width:680px) {
  /* Menu inferior fixo precisa deixar area de leitura e rolagem para rodape. */
  body.owdex-r7 #app .footer {
    position:relative!important;
    padding-bottom:calc(112px + env(safe-area-inset-bottom, 0px))!important;
    scroll-margin-bottom:calc(90px + env(safe-area-inset-bottom, 0px));
  }
  body.owdex-r7 #app .footer .container {
    min-width:0!important;
    max-width:100%!important;
    overflow-wrap:anywhere;
  }

  /* Um produto por linha no cardapio, inclusive nas secoes por categoria. */
  body.owdex-r7 #app .shop-intro .product-grid,
  body.owdex-r7 #app .shop-intro .menu-category-section .product-grid {
    display:grid!important;
    grid-template-columns:minmax(0, 1fr)!important;
    gap:13px!important;
    width:100%!important;
    min-width:0!important;
  }
  body.owdex-r7 #app .shop-intro .product-card {
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
    height:auto!important;
  }
  body.owdex-r7 #app .shop-intro .product-content {
    width:100%!important;
    min-width:0!important;
    height:auto!important;
    padding:15px!important;
  }
  body.owdex-r7 #app .shop-intro .product-content :is(h3,p) {
    display:block!important;
    max-height:none!important;
    height:auto!important;
    overflow:visible!important;
    text-overflow:clip!important;
    white-space:normal!important;
    overflow-wrap:anywhere!important;
    -webkit-line-clamp:unset!important;
    -webkit-box-orient:initial!important;
  }
  body.owdex-r7 #app .shop-intro .product-content .product-foot {
    display:flex!important;
    flex-wrap:wrap!important;
    gap:10px!important;
    min-width:0!important;
  }
  body.owdex-r7 #app .shop-intro .product-foot .price {
    min-width:0!important;
    white-space:normal!important;
    overflow-wrap:anywhere!important;
  }

  /* Capa da loja: blocos ocupam a largura util, sem coluna comprimida. */
  body.owdex-r7 #app .shop-intro .food-r7-store-head {
    display:flex!important;
    flex-direction:column!important;
    flex-wrap:nowrap!important;
    align-items:stretch!important;
    gap:12px!important;
    width:100%!important;
    min-width:0!important;
    height:auto!important;
    padding:20px!important;
  }
  body.owdex-r7 #app .shop-intro .food-r7-store-head .food-r7-store-avatar {
    align-self:flex-start!important;
    flex:0 0 auto!important;
  }
  body.owdex-r7 #app .shop-intro .food-r7-store-head .food-r7-store-copy {
    display:block!important;
    flex:1 1 100%!important;
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
    margin:0!important;
    padding:0!important;
  }
  body.owdex-r7 #app .shop-intro .food-r7-store-copy :is(h1,p,.food-r7-kicker) {
    width:100%!important;
    min-width:0!important;
    max-width:none!important;
    white-space:normal!important;
    overflow-wrap:anywhere!important;
  }
  body.owdex-r7 #app .shop-intro .food-r7-store-head .food-r7-jump {
    align-self:flex-start!important;
    margin:0!important;
  }
  body.owdex-r7 #app .marketplace-page .marketplace-welcome > div:first-child {
    width:100%!important;
    max-width:none!important;
  }
  body.owdex-r7 #app .marketplace-page .marketplace-welcome :is(h1,p,.food-home-actions) {
    max-width:100%!important;
    min-width:0!important;
  }
  body.owdex-r7 #app .marketplace-page .food-home-actions {
    display:flex!important;
    flex-wrap:wrap!important;
    align-items:center!important;
  }
}
