/* LINHA 1: Cabeçalho 100% no Desktop e Mobile */
html body #main-theme header.monolit-header,
header.monolit-header {
  width: 100% !important;
  left: 0 !important;
  right: 0 !important;
}

/* LINHA SEGUINTE: Regras exclusivas para Telemóvel */
@media screen and (max-width: 768px) {
  div.wpb_text_column[class*="vc_custom_"],
  div.vc_btn3-container[class*="vc_custom_"],
  div.vc_column-inner[class*="vc_custom_"],
  .vc_btn3-container {
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
}
/* ==========================================================
   AJUSTE MOBILE DEFINITIVO - TON SUR TON OUTLET
   ========================================================== */
@media screen and (max-width: 768px) {

  /* 1. ANULA O PADDING DE 130px NO CELULAR (TEXTO, BOTÃO E COLUNAS)
     No desktop continua com os 130px; no mobile zera o excesso */
  div.wpb_text_column[class*="vc_custom_"],
  div.vc_btn3-container[class*="vc_custom_"],
  div.vc_column-inner[class*="vc_custom_"],
  .vc_btn3-container {
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* 2. ALINHAMENTO NATURAL À ESQUERDA (SEM ESMAGAR O TEXTO) */
  .wpb_text_column,
  .wpb_text_column p,
  .wpb_text_column h1,
  .wpb_text_column h2,
  div[style*="font-family: -apple-system"],
  div[style*="font-family:-apple-system"] {
    text-align: left !important;
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box !important;
  }

  div[style*="font-family: -apple-system"] * {
    text-align: left !important;
  }

  /* 3. TÍTULO DO PRODUTO PROPORCIONAL AO CELULAR */
  .wpb_text_column h1,
  .wpb_text_column h2,
  div[style*="font-family: -apple-system"] h2 {
    font-size: 24px !important;
    line-height: 1.2 !important;
    margin-bottom: 8px !important;
  }

  /* 4. TAGS (PRONTA ENTREGA / OFF) ALINHADAS À ESQUERDA SEM CORTAR */
  div[style*="display: flex"],
  div[style*="display:flex"] {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: flex-start !important;
    align-items: center !important;
    gap: 8px !important;
    width: 100% !important;
    margin-bottom: 16px !important;
  }

  div[style*="display: flex"] span,
  div[style*="display:flex"] span {
    font-size: 13px !important;
    padding: 5px 12px !important;
    white-space: nowrap !important;
  }

  /* 5. PREÇO "POR:" EM LINHA ÚNICA */
  div[style*="font-weight: 900"],
  div[style*="font-weight:900"] {
    font-size: 24px !important;
    white-space: nowrap !important;
    line-height: 1.2 !important;
    text-align: left !important;
  }

  /* 6. CONDIÇÃO À VISTA COM A LINHA PRETA ORIGINAL À ESQUERDA */
  div[style*="border-left"] {
    border-left: 3px solid #000 !important;
    border-top: none !important;
    border-bottom: none !important;
    padding-left: 10px !important;
    display: block !important;
    text-align: left !important;
  }

  /* 7. BOTÃO 'GARANTIR OFERTA' ALINHADO À ESQUERDA */
  .vc_btn3-container,
  a[href*="wa.me"] {
    text-align: left !important;
    margin-left: 0 !important;
  }

  /* 8. MENU DE CATEGORIAS (MANTÉM LARGURA TOTAL SEM BORDAS VAZIAS) */
  .wpb_text_column:has(a[href*="outlet"]) {
    padding-left: 0 !important;
    padding-right: 0 !important;
    text-align: center !important;
  }
header.monolit-header {
  width: 100% !important;
  left: 0 !important;
  right: 0 !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}/* ==========================================================
   1. CORREÇÃO DO CABEÇALHO DO TEMA MONOLIT (DESKTOP E MOBILE)
   ========================================================== */

/* Força o cabeçalho a ocupar 100% da largura, sobrepondo os 93% */
html body #main-theme header.monolit-header,
html body header.monolit-header,
#main-theme header.monolit-header,
header.monolit-header {
  width: 100% !important;
  max-width: 100% !important;
  left: 0 !important;
  right: 0 !important;
  margin: 0 !important;
  padding-right: 0 !important;
  box-sizing: border-box !important;
}

/* Garante o preenchimento total dos elementos internos do cabeçalho */
header.monolit-header .header-inner,
header.monolit-header .nav-holder,
header.monolit-header .header-container {
  width: 100% !important;
  max-width: 100% !important;
  right: 0 !important;
  box-sizing: border-box !important;
}

/* Impede o overflow horizontal global na página */
html, 
body, 
#main-theme, 
#wrapper {
  max-width: 100% !important;
  overflow-x: hidden !important;
  width: 100% !important;
}


/* ==========================================================
   2. REGRAS EXCLUSIVAS PARA TELEMÓVEL (ATÉ 768px)
   ========================================================== */
@media screen and (max-width: 768px) {

  /* Anula o padding lateral de 130px nos blocos do WPBakery */
  div.wpb_text_column[class*="vc_custom_"],
  div.vc_btn3-container[class*="vc_custom_"],
  div.vc_column-inner[class*="vc_custom_"],
  .vc_btn3-container {
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Alinhamento dos blocos de produto à esquerda */
  .wpb_text_column,
  .wpb_text_column p,
  .wpb_text_column h1,
  .wpb_text_column h2,
  div[style*="font-family: -apple-system"],
  div[style*="font-family:-apple-system"] {
    text-align: left !important;
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box !important;
  }

  div[style*="font-family: -apple-system"] * {
    text-align: left !important;
  }

  /* Título do produto */
  .wpb_text_column h1,
  .wpb_text_column h2,
  div[style*="font-family: -apple-system"] h2 {
    font-size: 24px !important;
    line-height: 1.2 !important;
    margin-bottom: 8px !important;
  }

  /* Etiquetas (Pronta Entrega / OFF) alinhadas */
  div[style*="display: flex"],
  div[style*="display:flex"] {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: flex-start !important;
    align-items: center !important;
    gap: 8px !important;
    width: 100% !important;
    margin-bottom: 16px !important;
  }

  div[style*="display: flex"] span,
  div[style*="display:flex"] span {
    font-size: 13px !important;
    padding: 5px 12px !important;
    white-space: nowrap !important;
  }

  /* Preço em linha contínua */
  div[style*="font-weight: 900"],
  div[style*="font-weight:900"] {
    font-size: 24px !important;
    white-space: nowrap !important;
    line-height: 1.2 !important;
    text-align: left !important;
  }

  /* Borda esquerda na secção de pagamento à vista */
  div[style*="border-left"] {
    border-left: 3px solid #000 !important;
    border-top: none !important;
    border-bottom: none !important;
    padding-left: 10px !important;
    display: block !important;
    text-align: left !important;
  }

  /* Botão WhatsApp alinhado à esquerda */
  .vc_btn3-container,
  a[href*="wa.me"] {
    text-align: left !important;
    margin-left: 0 !important;
  }
}