/* ============================================================
   ePatos — mobile.css
   Cobre viewports até 768px (smartphones e tablets pequenos)
   Importar APÓS base.css, components.css e layout.css
   ============================================================ */

/* ----------------------------------------------------------
   1. TOPBAR
   ---------------------------------------------------------- */
@media (max-width: 768px) {

  .topbar {
    padding: 0 1rem;
    gap: 0.6rem;
    height: 52px;
    position: sticky;
    top: 0;
    z-index: 100;
  }

  /* Logo some; fica só busca + botão anunciar */
  .topbar img {
    display: none;
  }

  /* Botão "Entrar" some no mobile — vai pro menu */
  .btn-outline {
    display: none;
  }

  .btn-am {
    padding: 6px 14px;
    font-size: 12px;
    white-space: nowrap;
    flex-shrink: 0;
  }

  .search-box {
    height: 36px;
  }

  /* Select de categoria some no mobile — espaço curto */
  .search-box select {
    display: none;
  }

  .search-box input {
    font-size: 13px;
    padding: 0 12px;
  }

  .btn-buscar {
    padding: 0 14px;
    font-size: 12px;
  }
}


/* ----------------------------------------------------------
   2. HERO CARROSSEL
   ---------------------------------------------------------- */
@media (max-width: 768px) {

  .hero-outer {
    height: auto;
  }

  .hero {
    height: 240px;
  }

  .hero-track,
  .hero-slide {
    height: 240px;
  }

  /* Gradiente mais denso — texto legível em tela pequena */
  .hero-slide::before {
    background: linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.55) 0%,
      rgba(0, 0, 0, 0.45) 60%,
      rgba(0, 0, 0, 0.2) 100%
    );
  }

  .hero-inner {
    height: 240px;
    padding: 0 1rem;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
  }

  .hero-content {
    max-width: 100%;
    padding-bottom: 1.2rem;
  }

  .hero-pill {
    font-size: 10px;
    margin-bottom: 8px;
  }

  .hero-content h2 {
    font-size: 20px;
    margin-bottom: 6px;
  }

  .hero-content p {
    display: none; /* muito texto em tela pequena */
  }

  .hero-badges {
    display: none;
  }

  .hero-btns {
    gap: 8px;
  }

  .hero-btn-main,
  .hero-btn-sec {
    padding: 8px 16px;
    font-size: 12px;
  }

  /* Imagem decorativa do slide some no mobile */
  .hero-img {
    display: none;
  }

  /* Setas menores */
  .hero-arr {
    width: 28px;
    height: 28px;
  }

  .hero-arr svg {
    width: 14px;
    height: 14px;
  }
}


/* ----------------------------------------------------------
   3. CATEGORIAS (cats-wrap)
   ---------------------------------------------------------- */
@media (max-width: 768px) {

  .cats-wrap-outer {
    margin-top: -40px; /* sobrepõe menos o hero menor */
  }

  .cats-wrap {
    padding: 1rem;
    border-radius: 16px 16px 0 0;
  }

  /* Scroll horizontal — não quebra linha */
  .cats {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 4px;
    flex-wrap: nowrap;
    gap: 6px;
  }

  .cats::-webkit-scrollbar {
    display: none;
  }

  .cat {
    flex-shrink: 0;
    padding: 7px 12px;
    font-size: 11.5px;
    border-radius: 16px;
  }

  .cat-n {
    display: none; /* contagem some no mobile */
  }
}


/* ----------------------------------------------------------
   4. SEÇÃO DE CONTEÚDO (content wrapper)
   ---------------------------------------------------------- */
@media (max-width: 768px) {

  .content {
    padding: 0 0.75rem;
  }

  .sh {
    padding: 14px 0 0;
    margin-bottom: 8px;
  }

  .sh-title {
    font-size: 18px;
  }
}


/* ----------------------------------------------------------
   5. GRID DE CLASSIFICADOS (.cl-grid / .mixed-grid)
   ---------------------------------------------------------- */
@media (max-width: 768px) {

  .cl-grid,
  .mixed-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .cl-card-img {
    height: 100px;
    font-size: 32px;
  }

  .cl-card-body {
    padding: 8px;
  }

  .cl-card-tag {
    font-size: 10px;
  }

  .cl-card-name {
    font-size: 13px;
  }

  .cl-card-price {
    font-size: 14px;
  }

  .cl-card-meta {
    font-size: 11px;
    flex-direction: column;
    align-items: flex-start;
    gap: 1px;
  }

  /* Card "ad" some — pouco espaço */
  .cl-card.ad {
    display: none;
  }
}


/* ----------------------------------------------------------
   6. BANNER HORIZONTAL (.h-ad)
   ---------------------------------------------------------- */
@media (max-width: 768px) {

  .h-ad {
    height: auto;
    flex-direction: column;
  }

  .h-ad-main {
    padding: 12px 14px;
    flex-wrap: wrap;
    gap: 8px;
  }

  .h-ad-ico {
    font-size: 22px;
  }

  .h-ad-copy strong {
    font-size: 12.5px;
    line-height: 1.4;
  }

  .h-ad-copy span {
    font-size: 10.5px;
  }

  .h-ad-tip {
    display: none;
  }

  .h-ad-cta {
    width: 100%;
    padding: 10px;
    text-align: center;
    height: 38px;
  }
}


/* ----------------------------------------------------------
   7. GRID DE EMPRESAS (.co-grid)
   ---------------------------------------------------------- */
@media (max-width: 768px) {

  .co-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .co-card-top {
    height: 60px;
    font-size: 26px;
  }

  .co-card-body {
    padding: 8px;
  }

  .co-name {
    font-size: 13px;
  }

  .co-cat {
    font-size: 11px;
  }

  .co-stars {
    font-size: 10px;
  }

  .co-foot {
    font-size: 11px;
  }

  /* Card "ad" some */
  .co-card.ad {
    display: none;
  }
}


/* ----------------------------------------------------------
   8. STRIP PATROCINADO (.strip2)
   ---------------------------------------------------------- */
@media (max-width: 768px) {

  .strip2 {
    padding: 14px 16px;
    gap: 12px;
    border-radius: 8px;
    flex-wrap: wrap;
  }

  .strip2-ico {
    font-size: 26px;
  }

  .strip2-copy strong {
    font-size: 13px;
  }

  .strip2-copy span {
    font-size: 11px;
  }

  .strip2 .ad-tip {
    display: none;
  }

  .strip2-cta {
    width: 100%;
    padding: 10px;
    text-align: center;
    margin-left: 0;
    border-radius: 6px;
  }
}


/* ----------------------------------------------------------
   9. CTA FINAL
   ---------------------------------------------------------- */
@media (max-width: 768px) {

  .cta-bottom {
    flex-direction: column;
    padding: 20px 16px;
    gap: 14px;
    margin-bottom: 16px;
    border-radius: 8px;
  }

  .cta-bottom h3 {
    font-size: 16px;
  }

  .cta-bottom p {
    font-size: 12px;
  }

  .cta-bottom-btn {
    width: 100%;
    text-align: center;
    padding: 12px;
    font-size: 13px;
  }
}


/* ----------------------------------------------------------
   10. FOOTER
   ---------------------------------------------------------- */
@media (max-width: 768px) {

  .foot {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .foot-links {
    flex-direction: column;
    gap: 8px;
  }

  .foot-links a {
    font-size: 13px;
  }

  .foot-copy {
    font-size: 11px;
  }
}


/* ----------------------------------------------------------
   11. AJUSTES EXTRAS — telas muito pequenas (≤ 380px)
   ---------------------------------------------------------- */
@media (max-width: 380px) {

  .cl-grid,
  .mixed-grid,
  .co-grid {
    grid-template-columns: 1fr; /* coluna única */
  }

  .hero {
    height: 200px;
  }

  .hero-track,
  .hero-slide {
    height: 200px;
  }

  .hero-inner {
    height: 200px;
  }

  .hero-content h2 {
    font-size: 17px;
  }
}
