/* Correcoes de layout e responsividade — carregado depois do CSS do tema. */

/* A barra fixa de "Adicionar ao carrinho" tapava o fim da pagina no telemovel. */
@media (max-width: 989px) {
  body { padding-bottom: 92px; }
  .sticky-atc { box-shadow: 0 -2px 12px rgba(0, 0, 0, .12); }
  .sticky-atc__product-title,
  .sticky-atc__title {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  /* O botao de voltar ao topo ficava por cima da barra fixa. */
  .scroll-to-top-btn, .floating-btn, .scroll-to-top, .back-to-top { bottom: 100px !important; }
}

/* Indicador estatico de pais/moeda que substituiu o seletor do Shopify. */
.localization-static {
  display: inline-block;
  padding: .4rem 0;
  font-size: 1.3rem;
  letter-spacing: .04em;
  opacity: .8;
}

/* Pagamento: a loja cobra por MB WAY, nao por cartao. */
.payment-mbway {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  flex-wrap: wrap;
  margin: 0;
  padding: .2rem 0;
  font-size: 1.3rem;
  line-height: 1.4;
  text-align: center;
}
.payment-mbway__badge {
  display: inline-block;
  padding: .35rem .8rem;
  border: 1px solid currentColor;
  border-radius: 3px;
  font-weight: 600;
  letter-spacing: .08em;
  white-space: nowrap;
}

/* Alvos de toque minimos e quebras de texto no telemovel. */
@media (max-width: 749px) {
  .quantity-break__label-text,
  .quantity-break__caption,
  .bundle-deals__title { overflow-wrap: anywhere; }

  .quantity-break__right { white-space: nowrap; }

  .bundle-deals__product-js select,
  .quantity-break__variant-select {
    min-height: 40px;
    max-width: 100%;
  }

  /* Titulos longos nao devem transbordar nem ser cortados a meio. */
  h1, h2, .product__title { overflow-wrap: break-word; hyphens: auto; }

  /* Tabela de tamanhos: rolar na horizontal em vez de rebentar o layout. */
  .product__description table,
  .sizing-chart table,
  .rte table { display: block; width: 100%; overflow-x: auto; }
}

/* Nenhum elemento deve criar barra horizontal. */
html, body { max-width: 100%; overflow-x: hidden; }
img, video, iframe, table { max-width: 100%; }
