/*
Theme Name: Hello Elementor Child
Theme URI: https://portaldecompras.portalcidadenet.com.br
Description: Tema filho do Hello Elementor para customizações.
Author: Autor
Author URI: https://portaldecompras.portalcidadenet.com.br
Template: hello-elementor
Version: 1.2
Text Domain: hello-elementor-child
*/

/* ===== CONTAINER GERAL ===== */
.container-anuncio {
  max-width: 1240px;
  margin: 0 auto;
  padding: 20px;
}

/* ===== SEÇÃO TOPO (foto + infos) ===== */
.anuncio-topo {
  display: flex;
  gap: 20px;
  align-items: stretch;
  margin-bottom: 40px;
}

.anuncio-foto {
  flex: 1;
  max-width: 40%;
}

.anuncio-foto img {
  width: 100%;
  height: 100%;
  max-height: 400px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}

.anuncio-info {
  flex: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}

.anuncio-info h1 {
  font-size: 2rem;
  font-weight: bold;
  color: var(--color-text);
}

.anuncio-descricao {
  font-size: 1rem;
  line-height: 1.5;
  color: #555;
}

.anuncio-localizacao {
  font-size: 0.95rem;
  color: #666;
}

/* ===== GRID GERAL DE PRODUTOS ===== */
.produtos-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 40px 0;
}

/* ===== CARD DE PRODUTO ===== */
.produto-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.2s ease;
  display: flex;
  flex-direction: column;
}

.produto-card:hover {
  transform: translateY(-4px);
}

.produto-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* ===== IMAGEM (quadrada) ===== */
.produto-imagem {
  position: relative;
  width: 100%;
  padding-top: 100%;
  overflow: hidden;
}

.produto-imagem img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.produto-imagem img[alt="Sem imagem"] {
  object-position: center;
}

/* ===== INFO DO PRODUTO ===== */
.produto-info {
  padding: 12px;
  text-align: center;
}

.produto-nome {
  font-size: 1.1rem;
  font-weight: bold;
  margin: 6px 0;
  color: var(--color-primary);
}

.produto-desc {
  font-size: 0.9rem;
  color: #555;
  margin: 4px 0;
  min-height: 2.4em;
}

.produto-preco {
  font-size: 1rem;
  font-weight: bold;
  color: var(--color-text);
  margin-top: 8px;
}

/* ===== CTA ===== */
.anuncio-cta {
  text-align: center;
  margin: 40px 0;
}

.anuncio-cta a {
  background: var(--color-primary);
  color: #fff;
  padding: 12px 24px;
  border-radius: 6px;
  font-weight: bold;
  text-decoration: none;
  transition: background 0.3s ease;
}

.anuncio-cta a:hover {
  background: var(--color-secondary);
  color: #fff;
}

/* ===== MAPA ===== */
.anuncio-mapa {
  margin: 40px 0;
}

.anuncio-mapa iframe {
  width: 100%;
  height: 400px;
  border: 0;
  border-radius: 8px;
}

/* ===== RECOMENDADOS ===== */
.recomendados-section {
  margin: 48px 0;
}

.recomendados-title {
  font-size: 1.5rem;
  margin-bottom: 18px;
  color: var(--color-text);
}

.recomendados-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.recomendado-card .produto-info {
  padding: 14px;
}

/* ===== HEADER DE ARQUIVO ===== */
.archive-header h1 {
  font-size: 2rem;
  margin-bottom: 8px;
}

/* ====== TABLET ====== */
@media (max-width: 1024px) {
  .produtos-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .anuncio-topo {
    gap: 16px;
  }

  .anuncio-foto {
    max-width: 45%;
  }
}

/* ====== MOBILE ====== */
@media (max-width: 768px) {
  .produtos-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .anuncio-topo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
  }

  .anuncio-foto {
    max-width: 100%;
  }

  .anuncio-foto img {
    width: 100%;
    height: auto;
    border-radius: 12px;
  }

  .anuncio-info {
    text-align: center;
    width: 100%;
    padding: 0 12px;
  }

  .anuncio-info h1 {
    font-size: 1.6rem;
    font-weight: bold;
    margin-bottom: 8px;
  }

  .anuncio-descricao {
    font-size: 1rem;
    line-height: 1.6;
    max-width: 90%;
    margin: 0 auto;
    color: #444;
  }

  .anuncio-localizacao {
    font-size: 0.9rem;
    color: #555;
    margin-top: 10px;
  }

  .produto-card {
    flex-direction: column;
    height: auto;
  }

  .produto-link {
    flex-direction: column;
  }

  .produto-imagem {
    padding-top: 100%;
    max-width: 100%;
    height: auto;
  }

  .produto-info {
    text-align: center;
    padding: 12px;
    display: block;
  }

  .recomendados-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ===== AJUSTES DE TEXTO ===== */
.produto-nome a,
.produto-nome {
  word-break: break-word;
}

/* ===== PAGINAÇÃO ===== */
.archive-pagination {
  margin: 30px 0;
  text-align: center;
}

/* ===== LOGIN/REGISTRO (WPUF) ===== */
.wpuf-login-form,
.wpuf-registration-form {
  max-width: 100%;
  background: #fff;
  padding: 2rem;
  border: 1px solid #eee;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  font-family: var(--font-body);
}

.wpuf-login-form label,
.wpuf-registration-form label {
  font-weight: 600;
  display: block;
  margin-bottom: 0.3rem;
}

.wpuf-login-form input[type="text"],
.wpuf-login-form input[type="password"],
.wpuf-login-form input[type="email"],
.wpuf-registration-form input[type="text"],
.wpuf-registration-form input[type="password"],
.wpuf-registration-form input[type="email"],
.wpuf-registration-form select,
.wpuf-registration-form textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.wpuf-login-form input:focus,
.wpuf-registration-form input:focus,
.wpuf-registration-form select:focus,
.wpuf-registration-form textarea:focus {
  border-color: var(--color-primary);
  outline: none;
}

.wpuf-login-form input[type="submit"],
.wpuf-registration-form input[type="submit"] {
  background: var(--color-primary);
  color: #fff;
  padding: 0.8rem 1.5rem;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.3s ease;
}

.wpuf-login-form input[type="submit"]:hover,
.wpuf-registration-form input[type="submit"]:hover {
  background: var(--color-secondary);
}

/* ===== ESTILO UNIFICADO DA PÁGINA DE BUSCA ===== */
body.search main {
  max-width: 1240px;
  margin: 0 auto;
  padding: 20px;
}

body.search .archive-header {
  text-align: center;
  margin-bottom: 32px;
}

body.search .archive-header h1 {
  font-size: 2rem;
  color: var(--color-primary);
  margin-bottom: 10px;
}

body.search .produtos-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 40px 0;
}

body.search .produto-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.2s ease;
  display: flex;
  flex-direction: column;
}

body.search .produto-card:hover {
  transform: translateY(-4px);
}

body.search .produto-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
}

body.search .produto-imagem {
  position: relative;
  width: 100%;
  padding-top: 100%;
  overflow: hidden;
}

body.search .produto-imagem img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

body.search .produto-info {
  text-align: center;
  padding: 12px;
}

body.search .produto-nome {
  font-size: 1.1rem;
  color: var(--color-primary);
  font-weight: bold;
  margin: 6px 0;
}

body.search .produto-desc {
  color: #555;
  font-size: 0.9rem;
  margin-top: 6px;
}

body.search .archive-pagination {
  margin: 40px 0;
  text-align: center;
}

@media (max-width: 1024px) {
  body.search .produtos-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  body.search .produtos-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  body.search .archive-header h1 {
    font-size: 1.6rem;
  }
}
/*
Theme Name: Hello Elementor Child
Theme URI: https://portaldecompras.portalcidadenet.com.br
Description: Tema filho do Hello Elementor para customizações.
Author: Autor
Author URI: https://portaldecompras.portalcidadenet.com.br
Template: hello-elementor
Version: 1.2
Text Domain: hello-elementor-child
*/

/* ===== CONTAINER GERAL ===== */
.container-anuncio {
  max-width: 1240px;
  margin: 0 auto;
  padding: 20px;
}

/* ===== SEÇÃO TOPO (foto + infos) ===== */
.anuncio-topo {
  display: flex;
  gap: 20px;
  align-items: stretch;
  margin-bottom: 40px;
}

.anuncio-foto {
  flex: 1;
  max-width: 40%;
}

.anuncio-foto img {
  width: 100%;
  height: 100%;
  max-height: 400px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}

.anuncio-info {
  flex: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}

.anuncio-info h1 {
  font-size: 2rem;
  font-weight: bold;
  color: var(--color-text);
}

.anuncio-descricao {
  font-size: 1rem;
  line-height: 1.5;
  color: #555;
}

.anuncio-localizacao {
  font-size: 0.95rem;
  color: #666;
}

/* ===== GRID GERAL DE PRODUTOS ===== */
.produtos-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 40px 0;
}

/* ===== CARD DE PRODUTO ===== */
.produto-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.2s ease;
  display: flex;
  flex-direction: column;
}

.produto-card:hover {
  transform: translateY(-4px);
}

.produto-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* ===== IMAGEM (quadrada) ===== */
.produto-imagem {
  position: relative;
  width: 100%;
  padding-top: 100%;
  overflow: hidden;
}

.produto-imagem img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.produto-imagem img[alt="Sem imagem"] {
  object-position: center;
}

/* ===== INFO DO PRODUTO ===== */
.produto-info {
  padding: 12px;
  text-align: center;
}

.produto-nome {
  font-size: 1.1rem;
  font-weight: bold;
  margin: 6px 0;
  color: var(--color-primary);
}

.produto-desc {
  font-size: 0.9rem;
  color: #555;
  margin: 4px 0;
  min-height: 2.4em;
}

.produto-preco {
  font-size: 1rem;
  font-weight: bold;
  color: var(--color-text);
  margin-top: 8px;
}

/* ===== CTA ===== */
.anuncio-cta {
  text-align: center;
  margin: 40px 0;
}

.anuncio-cta a {
  background: var(--color-primary);
  color: #fff;
  padding: 12px 24px;
  border-radius: 6px;
  font-weight: bold;
  text-decoration: none;
  transition: background 0.3s ease;
}

.anuncio-cta a:hover {
  background: var(--color-secondary);
  color: #fff;
}

/* ===== MAPA ===== */
.anuncio-mapa {
  margin: 40px 0;
}

.anuncio-mapa iframe {
  width: 100%;
  height: 400px;
  border: 0;
  border-radius: 8px;
}

/* ===== RECOMENDADOS ===== */
.recomendados-section {
  margin: 48px 0;
}

.recomendados-title {
  font-size: 1.5rem;
  margin-bottom: 18px;
  color: var(--color-text);
}

.recomendados-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.recomendado-card .produto-info {
  padding: 14px;
}

/* ===== HEADER DE ARQUIVO ===== */
.archive-header h1 {
  font-size: 2rem;
  margin-bottom: 8px;
}

/* ====== TABLET ====== */
@media (max-width: 1024px) {
  .produtos-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .anuncio-topo {
    gap: 16px;
  }

  .anuncio-foto {
    max-width: 45%;
  }
}

/* ====== MOBILE ====== */
@media (max-width: 768px) {
  .produtos-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .anuncio-topo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
  }

  .anuncio-foto {
    max-width: 100%;
  }

  .anuncio-foto img {
    width: 100%;
    height: auto;
    border-radius: 12px;
  }

  .anuncio-info {
    text-align: center;
    width: 100%;
    padding: 0 12px;
  }

  .anuncio-info h1 {
    font-size: 1.6rem;
    font-weight: bold;
    margin-bottom: 8px;
  }

  .anuncio-descricao {
    font-size: 1rem;
    line-height: 1.6;
    max-width: 90%;
    margin: 0 auto;
    color: #444;
  }

  .anuncio-localizacao {
    font-size: 0.9rem;
    color: #555;
    margin-top: 10px;
  }

  .produto-card {
    flex-direction: column;
    height: auto;
  }

  .produto-link {
    flex-direction: column;
  }

  .produto-imagem {
    padding-top: 100%;
    max-width: 100%;
    height: auto;
  }

  .produto-info {
    text-align: center;
    padding: 12px;
    display: block;
  }

  .recomendados-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ===== AJUSTES DE TEXTO ===== */
.produto-nome a,
.produto-nome {
  word-break: break-word;
}

/* ===== PAGINAÇÃO ===== */
.archive-pagination {
  margin: 30px 0;
  text-align: center;
}

/* ===== LOGIN/REGISTRO (WPUF) ===== */
.wpuf-login-form,
.wpuf-registration-form {
  max-width: 100%;
  background: #fff;
  padding: 2rem;
  border: 1px solid #eee;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  font-family: var(--font-body);
}

.wpuf-login-form label,
.wpuf-registration-form label {
  font-weight: 600;
  display: block;
  margin-bottom: 0.3rem;
}

.wpuf-login-form input[type="text"],
.wpuf-login-form input[type="password"],
.wpuf-login-form input[type="email"],
.wpuf-registration-form input[type="text"],
.wpuf-registration-form input[type="password"],
.wpuf-registration-form input[type="email"],
.wpuf-registration-form select,
.wpuf-registration-form textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.wpuf-login-form input:focus,
.wpuf-registration-form input:focus,
.wpuf-registration-form select:focus,
.wpuf-registration-form textarea:focus {
  border-color: var(--color-primary);
  outline: none;
}

.wpuf-login-form input[type="submit"],
.wpuf-registration-form input[type="submit"] {
  background: var(--color-primary);
  color: #fff;
  padding: 0.8rem 1.5rem;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.3s ease;
}

.wpuf-login-form input[type="submit"]:hover,
.wpuf-registration-form input[type="submit"]:hover {
  background: var(--color-secondary);
}

/* ===== ESTILO UNIFICADO DA PÁGINA DE BUSCA ===== */
body.search main {
  max-width: 1240px;
  margin: 0 auto;
  padding: 20px;
}

body.search .archive-header {
  text-align: center;
  margin-bottom: 32px;
}

body.search .archive-header h1 {
  font-size: 2rem;
  color: var(--color-primary);
  margin-bottom: 10px;
}

body.search .produtos-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 40px 0;
}

body.search .produto-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.2s ease;
  display: flex;
  flex-direction: column;
}

body.search .produto-card:hover {
  transform: translateY(-4px);
}

body.search .produto-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
}

body.search .produto-imagem {
  position: relative;
  width: 100%;
  padding-top: 100%;
  overflow: hidden;
}

body.search .produto-imagem img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

body.search .produto-info {
  text-align: center;
  padding: 12px;
}

body.search .produto-nome {
  font-size: 1.1rem;
  color: var(--color-primary);
  font-weight: bold;
  margin: 6px 0;
}

body.search .produto-desc {
  color: #555;
  font-size: 0.9rem;
  margin-top: 6px;
}

body.search .archive-pagination {
  margin: 40px 0;
  text-align: center;
}

@media (max-width: 1024px) {
  body.search .produtos-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  body.search .produtos-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  body.search .archive-header h1 {
    font-size: 1.6rem;
  }
}
