:root {
  --yellow: #ffe600;
  --blue: #3483fa;
  --text: #333;
  --muted: #666;
  --border: #e3e3e3;
  --bg: #f5f5f5;
  --card-bg: #fff;
  --radius: 10px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Roboto", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
}

/* HEADER ----------------------------------------------------- */

.ml-header {
  background: var(--yellow);
  padding: 8px 10px 10px;
}

.ml-header-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Linha de cima */

.top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

/* Menu hambúrguer */

.menu-button {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  cursor: pointer;
}

.menu-button span {
  height: 2px;
  width: 18px;
  background: #333;
  border-radius: 999px;
}

/* Logo */

.logo {
  display: flex;
  align-items: center;
  gap: 6px;
}

.logo-icon {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: #fff;
}

.logo-texts {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-text {
  font-weight: 700;
  font-size: 14px;
}

.logo-badge {
  font-size: 10px;
  color: var(--muted);
}

/* Barra de busca */

.search-bar {
  width: 100%;
  display: flex;
  background: #fff;
  border-radius: 4px;
  overflow: hidden;
}

.search-bar input {
  flex: 1;
  border: none;
  padding: 8px 10px;
  font-size: 14px;
}

.search-bar input:focus {
  outline: none;
}

.search-bar button {
  border: none;
  background: #fff;
  padding: 0 12px;
  cursor: pointer;
}

/* Ícones à direita */

.right-icons {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-button {
  position: relative;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: transparent;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

.icon-svg {
  width: 22px;
  height: 22px;
}

/* Carrinho */

.cart-badge {
  position: absolute;
  top: -3px;
  right: -1px;
  min-width: 16px;
  height: 16px;
  border-radius: 999px;
  background: #ff3b3b;
  color: #fff;
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* LOGIN */

.user-area {
  position: relative;
  display: flex;
  align-items: center;
  gap: 4px;
}

.user-label {
  font-size: 11px;
  color: #333;
}

/* Dropdown de login */

.login-dropdown {
  display: none;
  position: absolute;
  top: 40px;
  right: 0;
  width: 230px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
  padding: 10px 12px 12px;
  z-index: 20;
}

.login-dropdown.show {
  display: block;
}

.login-title {
  font-weight: 600;
  font-size: 13px;
  margin-bottom: 6px;
}

.login-label {
  display: block;
  font-size: 11px;
  margin-top: 6px;
}

.login-label input {
  width: 100%;
  padding: 6px 7px;
  margin-top: 2px;
  border-radius: 4px;
  border: 1px solid #ccc;
  font-size: 12px;
}

.login-label input:focus {
  outline: 1px solid var(--blue);
  border-color: var(--blue);
}

.login-submit {
  margin-top: 10px;
  width: 100%;
  padding: 7px 0;
  font-size: 13px;
  border-radius: 4px;
  border: none;
  background: var(--blue);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}

/* CONTEÚDO ----------------------------------------------------- */

.page {
  max-width: 1100px;
  margin: 10px auto 40px;
  padding: 0 10px;
}

/* Cabeçalho categoria */

.category-header {
  margin-bottom: 8px;
}

.category-path {
  font-size: 16px;
  font-weight: 500;
}

.category-count {
  font-size: 12px;
  color: var(--muted);
}

/* Barra de filtro / ordenação */

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.filter-button {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: #fff;
  cursor: pointer;
  font-size: 13px;
}

.filter-icon {
  font-size: 14px;
}

.sort-area {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
}

.sort-button {
  border: none;
  background: transparent;
  font-size: 13px;
  cursor: pointer;
}

.sort-button .arrow {
  font-size: 10px;
}

.view-toggle {
  display: flex;
  gap: 4px;
}

.view-btn {
  width: 30px;
  height: 30px;
  border-radius: 4px;
  border: 1px solid var(--border);
  background: #fff;
  font-size: 12px;
  cursor: pointer;
}

.view-btn.active {
  border-color: var(--blue);
  color: var(--blue);
}

/* PRODUTOS ----------------------------------------------------- */

.products {
  display: grid;
  gap: 12px;
}

/* Grade: 2 colunas (ou mais) */
.products-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

/* Lista: 1 por linha */
.products-list {
  grid-template-columns: 1fr;
}

.product-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.product-main {
  text-align: left;
}

.product-size {
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 6px;
}

.product-image {
  width: 100%;
  max-width: 200px;
  display: block;
  margin: 0 auto 8px;
}

.brand-logo {
  width: 80px;
  display: block;
  margin: 0 auto 8px;
}

.product-title {
  font-size: 14px;
  font-weight: 500;
  margin: 2px 0 4px;
}

.product-price {
  font-size: 18px;
  font-weight: 700;
  margin-top: 4px;
}

.product-installments {
  font-size: 12px;
  color: #00a650;
}

/* Botão COMPRAR – só aparece na visualização em lista */
.buy-button {
  margin-top: 10px;
  width: 100%;
  padding: 9px 0;
  border-radius: 6px;
  border: none;
  background: var(--blue);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
}

/* Esconde botão na grade (para ficar igual ao print) */
.products-grid .buy-button {
  display: none;
}

.products-list .buy-button {
  display: block;
}

/* RODAPÉ ----------------------------------------------------- */

.page-footer {
  border-top: 1px solid var(--border);
  padding: 20px 14px 30px;
  background: #fff;
  font-size: 12px;
  color: var(--muted);
  text-align: center;
}

.footer-brand {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 6px;
}

.footer-payments {
  font-weight: 500;
  margin-bottom: 4px;
}

.footer-text {
  max-width: 680px;
  margin: 4px auto;
}

.footer-copy {
  margin-top: 10px;
}

/* RESPONSIVO ----------------------------------------------------- */

@media (max-width: 720px) {
  .user-label {
    display: none;
  }

  .logo-text {
    font-size: 13px;
  }

  .logo-badge {
    display: none;
  }
}
/* Deixar card inteiro clicável */
.link-card {
  text-decoration: none;
  color: inherit;
}

/* Estilo da linha "Promoção [Entrega Rápida]" */
.product-subtitle {
  font-size: 14px;
  margin: 6px 0 4px;
  font-weight: 500;
  color: #222;
}

/* Ajuste para grid sempre 2 colunas */
.products-grid {
  grid-template-columns: repeat(2, 1fr) !important;
}

/* Botão comprar somente na lista */
.products-grid .buy-button {
  display: none !important;
}
/* BANNER PRINCIPAL */
.home-banner {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto 15px;
  border-radius: 12px;
  overflow: hidden;
}

.banner-img {
  width: 100%;
  display: block;
  border-radius: 12px;
}
/* Ajuste da nova logo */
.top-center {
  flex: 1;
  display: flex;
  justify-content: center;
}

.logo-img {
  height: 38px;         /* tamanho perfeito da logo */
  width: auto;
  object-fit: contain;
  display: block;
}
.product-price {
  margin-top: 2px;
  margin-bottom: 0;
}

.product-installments {
  margin-top: 0;
  line-height: 1.2;
}
/* Correção final para cards ficarem alinhados e distancia corrigida */
.product-image {
  width: 100%;
  max-width: 200px;
  height: 200px;        /* força altura padronizada */
  object-fit: contain;  /* evita distorção */
  display: block;
  margin: 0 auto 6px;
}

.product-card {
  justify-content: flex-start !important; /* impede empurrar o texto pra baixo */
}

.product-price {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

.product-installments {
  margin-top: -2px !important;
  line-height: 1.1 !important;
}
.product-image {
  width: 100%;
  height: 180px;        /* ALTURA PADRÃO */
  object-fit: contain;  /* Mantém proporção */
  margin-bottom: 8px;
}

