/* =============================================================================
   PORTALUPI — RESPONSIVIDADE MOBILE
   Mecânica inspirada em scaffold responsivo profissional.
   Usa APENAS variáveis do tema (--pp-*). Sem cores hardcoded.

   Breakpoints (mobile-first):
     base          = celular 360px+
     @560px        = celular largo \/ mini-tablet
     @768px        = tablet
     @1024px       = desktop completo
   ============================================================================= *\/


\/* =============================================================================
   1. RESET ESSENCIAL — box-model e imagens nunca extravasam
   ============================================================================= *\/

*, *::before, *::after { box-sizing: border-box; }
img, video, svg { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }

\/* Nenhuma barra horizontal jamais *\/
body { overflow-x: hidden; }


\/* =============================================================================
   2. WRAP — padding lateral no mobile, cresce no desktop
   ============================================================================= *\/

.pp-wrap {
  padding-inline: var(--pp-gutter);
}

@media (max-width: 560px) {
  .pp-wrap { padding-inline: 16px; }
}


\/* =============================================================================
   3. HERO \/ BANNER — altura, posição e texto
   ============================================================================= *\/

@media (max-width: 768px) {
  .pp-hero {
    min-height: 54vh;
    align-items: flex-end;
  }
  .pp-hero__inner {
    padding-block: 20px 28px;
    width: 100%;
  }
  .pp-hero__title {
    font-size: clamp(1.6rem, 6vw, 2.2rem);
    line-height: 1.1;
    margin-bottom: 10px;
  }
  .pp-hero__lede {
    font-size: 0.9rem;
    margin-bottom: 16px;
  }
  .pp-hero__actions { gap: 10px; }
  .pp-hero__actions .pp-btn {
    width: 100%;
    text-align: center;
    padding: 14px 20px;
    min-height: 48px;
  }
}

@media (max-width: 480px) {
  .pp-hero__actions { flex-direction: column; }
}


\/* =============================================================================
   4. SEÇÕES — espaçamento vertical menor no mobile
   ============================================================================= *\/

@media (max-width: 768px) {
  .pp-section { padding-block: 48px; }
  .pp-section:has(.pp-closing) { padding-block: 48px; }
  .pp-section__head { margin-bottom: 24px; }
}
@media (max-width: 560px) {
  .pp-section { padding-block: 36px; }
  .pp-section:has(.pp-closing) { padding-block: 36px; }
}


\/* =============================================================================
   5. FAIXA DE SERVIÇOS — 3 colunas vira 1 no mobile
   ============================================================================= *\/

@media (max-width: 860px) {
  .pp-servicos__grade {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-block: 40px;
  }
  .pp-servico {
    flex-direction: row;
    text-align: left;
    align-items: flex-start;
    gap: 16px;
  }
  .pp-servico__icone { flex: 0 0 40px; margin-top: 2px; }
  .pp-servico p { max-width: none; }
}


\/* =============================================================================
   6. ESTEIRA DE FAMÍLIAS — scroll horizontal nativo no mobile
   ============================================================================= *\/

@media (max-width: 768px) {
  .pp-esteira {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .pp-esteira::-webkit-scrollbar { display: none; }
  .pp-esteira__trilho {
    display: flex;
    flex-direction: row;
    gap: 16px;
    padding: 0 16px 8px;
    width: max-content;
  }
  .pp-esteira__item { flex: 0 0 220px; }
  .pp-esteira__foto {
    aspect-ratio: 2 \/ 3;
    height: 280px;
    background-size: cover;
    background-position: center;
  }
  .pp-esteira__legenda {
    padding-inline: 0;
    margin-top: 10px;
    font-size: 11px;
    letter-spacing: 0.14em;
    color: var(--pp-muted);
    text-transform: uppercase;
  }
}


\/* =============================================================================
   7. GRADE DE PRODUTOS — 2 col no mobile, 4 no desktop
   ============================================================================= *\/

@media (max-width: 768px) {
  .pp-collection__grid ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 14px !important;
  }
}
@media (max-width: 420px) {
  .pp-collection__grid ul.products { gap: 10px !important; }
}


\/* =============================================================================
   8. PILLARS (seção Laboratório) — colunas empilham no mobile
   ============================================================================= *\/

@media (max-width: 768px) {
  .pp-pillars { grid-template-columns: 1fr; gap: 32px; }
  .pp-pillars__list li { grid-template-columns: 1fr; gap: 4px; padding: 14px 0; }
  .pp-pillars__term { font-size: 11px; letter-spacing: 0.18em; }
  .pp-pillars__list p { max-width: none; }
}


\/* =============================================================================
   9. FECHO DA HOME — título e botão empilham no mobile
   ============================================================================= *\/

@media (max-width: 768px) {
  .pp-closing { grid-template-columns: 1fr; gap: 20px; align-items: start; }
  .pp-closing .pp-btn { width: 100%; text-align: center; min-height: 48px; }
}


\/* =============================================================================
   10. FAIXA DE FATOS
   ============================================================================= *\/

@media (max-width: 1000px) {
  .pp-facts { grid-template-columns: repeat(2, 1fr); }
  .pp-facts > div { border-right: 0; border-bottom: 1px solid rgba(239, 230, 216, 0.14); }
}
@media (max-width: 560px) {
  .pp-facts { grid-template-columns: 1fr; }
}


\/* =============================================================================
   11. CABEÇALHO — alvos de toque
   ============================================================================= *\/

@media (max-width: 860px) {
  .pp-header .pp-menu-botao,
  .pp-header .pp-util a,
  .pp-header .pp-util button {
    min-height: 44px;
    min-width: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}


\/* =============================================================================
   12. LOJA (filtro + grade) — coluna única no mobile
   ============================================================================= *\/

@media (max-width: 640px) {
  .pp-loja { grid-template-columns: 1fr !important; gap: 12px !important; }
  .pp-loja__lado .pp-marcas__grade { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)) !important; max-height: 92px !important; }
}


\/* =============================================================================
   13. PRODUTO INDIVIDUAL — layout da ficha no mobile
   ============================================================================= *\/

@media (max-width: 768px) {
  .woocommerce div.product .woocommerce-product-gallery,
  .woocommerce div.product .entry-summary {
    float: none !important;
    width: 100% !important;
    margin: 0 0 24px !important;
    clear: both;
  }
  .woocommerce div.product form.cart button.single_add_to_cart_button {
    flex: 1 1 100% !important;
    min-width: 0 !important;
  }
  .woocommerce div.product form.cart .quantity .qty {
    width: 68px !important;
    height: 48px !important;
    min-height: 48px !important;
  }
}


\/* =============================================================================
   14. CARRINHO E CHECKOUT — melhorias de toque
   ============================================================================= *\/

@media (max-width: 640px) {
  .woocommerce-checkout input,
  .woocommerce-checkout select,
  .woocommerce-checkout textarea,
  .wc-block-components-text-input input,
  .wc-block-components-select select { font-size: 16px !important; }
  .wc-block-cart__submit-button,
  .woocommerce-checkout #place_order {
    width: 100% !important;
    min-height: 52px !important;
    font-size: 13px !important;
  }
}


\/* =============================================================================
   15. TIPOGRAFIA FLUIDA
   ============================================================================= *\/

@media (max-width: 768px) {
  .pp-section h2, .pp-pillars h2 { font-size: clamp(1.5rem, 5vw, 2.2rem); line-height: 1.1; }
  .pp-section .pp-lede { font-size: 0.9rem; line-height: 1.6; }
}


\/* =============================================================================
   16. RODAPÉ — colunas empilham no mobile
   ============================================================================= *\/

@media (max-width: 768px) {
  .pp-footer__cols { grid-template-columns: 1fr !important; gap: 32px !important; }
  .pp-footer__col { text-align: left; }
}
@media (max-width: 560px) {
  .pp-footer { padding-block: 40px 24px; }
}


\/* =============================================================================
   17. UTILITÁRIOS MOBILE — alvo de toque e acessibilidade
   ============================================================================= *\/

@media (max-width: 1024px) {
  a.pp-btn, button.pp-btn, .woocommerce a.button, .woocommerce button.button { min-height: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
