Theme Name: Avenlar Theme Otimizado
Author: Seu Nome
Description: Tema WordPress personalizado – versão estável
Version: 1.4
*/
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
body {
font-family: Arial, sans-serif;
background: #f9f9f9;
padding-top: 80px; /* compensa o header fixo */
}
header.site-header {
position: fixed;
top: 0; left: 0;
width: 100%;
height: 80px;
background-color: #FFDEAD;
border-bottom: 1px solid #ddd;
z-index: 1000;
}
.header-inner {
max-width: 1200px;
height: 100%;
margin: 0 auto;
display: flex;
align-items: center;
justify-content: space-between; /* logo à esquerda, busca à direita */
padding: 0 20px;
}
.logo-container {
flex: 0 0 auto;
}
.logo-container img {
max-height: 60px;
width: auto;
}
.search-container {
flex: 0 0 auto;         /* largura fixa, sem crescer */
}
.search-form {
display: flex;
align-items: center;
width: 200px;
height: 36px;
background: #fff;
border: 1px solid #ccc;
border-radius: 18px;
overflow: hidden;
}
.search-form .search-input {
flex: 1;
border: none;
outline: none;
padding: 0 12px;
font-size: 14px;
color: #555;
}
.search-form .search-btn {
flex: 0 0 36px;
display: flex;
align-items: center;
justify-content: center;
background: none;
border: none;
cursor: pointer;
}
.search-form .search-btn i {
font-size: 18px;
color: #666;
}
.products-container {
display: grid !important;
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
gap: 10px !important;
padding: 20px !important;
max-width: 1400px;
margin: 0 auto !important;
}
.product-card {
position: relative;
padding-top: 60px; /* espaço para store-logo */
background: #fff;
border-radius: 8px;
box-shadow: 0 4px 12px rgba(0,0,0,0.1);
display: flex;
flex-direction: column;
align-items: center;
text-align: center;
overflow: hidden;
}
.product-card img {
width: 100%;
height: auto;
max-height: 200px;
object-fit: contain;
margin-bottom: 15px;
}
.product-card h2 {
font-size: 1.2em;
line-height: 1.2;
height: 2.4em;
overflow: hidden;
margin: 10px;
}
.product-card .preco-antigo {
font-size: 0.85em;
color: #777;
text-decoration: line-through;
margin-bottom: 4px;
}
.product-card .preco {
font-size: 1.4em;
color: #e63946;
font-weight: bold;
margin: 2px 0 8px;
}
.product-card .parcelamento {
font-size: 0.9em;
color: #777;
margin-bottom: 12px;
}
.product-card .botao-promocao {
background-color: #4B0082;
color: #fff;
border-radius: 8px;
padding: 10px 0;
width: 80%;
text-decoration: none;
font-weight: bold;
margin: auto 0 20px;
}
.product-card .store-logo {
position: absolute;
top: 10px;
left: 50%;
transform: translateX(-50%);
width: 35px;
height: auto;
z-index: 2;
background: transparent;
}
.product-card .store-logo img {
width: 100%;
height: auto;
display: block;
}
.site-footer {
background-color: #FFDEAD;
padding: 15px 20px;
margin-top: 40px;
}
.footer-inner {
max-width: 1200px;
margin: 0 auto;
display: flex;
justify-content: space-between;
align-items: center;
flex-wrap: wrap;
}
.footer-inner .logo-container img,
.footer-inner .social-container img {
max-height: 40px;
}
.footer-copy {
width: 100%;
text-align: center;
font-size: 0.9em;
color: #333;
margin-top: 10px;
}
@media (max-width: 768px) {
.header-inner {
flex-direction: column;
align-items: stretch;
}
.search-container {
width: 100%;
margin: 10px 0 0;
flex: none;
}
.search-form {
width: 90%;
margin: 0 auto;
}
.products-container {
padding: 10px;
gap: 15px;
}
}
.site-header {
background-color: #FFDEAD;
padding: 10px 20px;
position: sticky;
top: 0;
z-index: 1000;
}
.header-inner {
display: flex;
justify-content: space-between;
align-items: center;
flex-wrap: wrap;
}
.logo-container img {
max-height: 60px;
height: auto;
}
.search-container {
flex-grow: 1;
max-width: 400px;
margin-left: auto;
}
.search-form {
display: flex;
width: 100%;
}
.search-input {
flex-grow: 1;
padding: 8px;
border: 1px solid #ccc;
border-radius: 4px 0 0 4px;
}
.search-btn {
padding: 8px 12px;
background-color: #333;
color: #fff;
border: none;
border-radius: 0 4px 4px 0;
cursor: pointer;
}
.products-container {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 16px;
justify-items: center;
}
.product-card {
width: 100%;
max-width: 300px;
}
@media (max-width: 768px) {
.header-inner {
flex-direction: column;
align-items: center;
}
.search-container {
width: 100%;
max-width: 100%;
margin: 10px 0 0 0;
}
.search-form {
width: 100%;
}
}
@media (max-width: 768px) {
.header-inner {
flex-direction: column;
align-items: center;
}
.search-container {
display: block !important;
width: 100% !important;
max-width: 90%;
margin: 10px auto 0 auto;
}
.search-form {
width: 100%;
display: flex;
}
.search-input {
flex-grow: 1;
padding: 8px;
font-size: 16px;
}
.search-btn {
padding: 8px 12px;
font-size: 16px;
}
}
@media (max-width: 768px) {
.site-header {
overflow: visible !important;
}
.search-container,
.search-form,
.search-input {
display: block !important;
visibility: visible !important;
opacity: 1 !important;
}
.search-container {
max-width: 100% !important;
margin: 10px auto !important;
padding: 0 10px;
box-sizing: border-box;
}
.search-input {
width: 100%;
font-size: 16px;
padding: 10px;
border: 2px solid #ccc;
}
.search-btn {
margin-top: 8px;
width: 100%;
font-size: 16px;
}
}
@media (max-width: 768px) {
header.site-header {
height: auto; /* permite altura flexível */
padding-bottom: 10px;
}
body {
padding-top: 120px; /* compensa o novo tamanho do header */
}
.header-inner {
flex-direction: column;
align-items: center;
justify-content: center;
padding: 10px 20px;
}
.logo-container {
margin-bottom: 10px;
}
.search-container {
width: 100%;
}
.search-form {
width: 100%;
justify-content: center;
}
.search-input {
width: 90%;
font-size: 16px;
padding: 8px;
}
.search-btn {
font-size: 16px;
}
}
@media (max-width: 768px) {
header.site-header {
height: auto;
padding-bottom: 10px;
}
body {
padding-top: 120px;
}
.header-inner {
flex-direction: column;
align-items: center;
justify-content: center;
padding: 10px 20px;
}
.logo-container {
margin-bottom: 10px;
text-align: center;
}
.logo-container img {
max-height: 50px;
width: auto;
}
.search-container {
width: 100%;
}
.search-form {
width: 100%;
justify-content: center;
}
.search-input {
width: 100%;
font-size: 16px;
padding: 10px 15px;
border: 1px solid #ccc;
border-radius: 8px;
background-color: white;
box-shadow: none;
}
.search-btn {
font-size: 16px;
}
}
@media (max-width: 768px) {
header.site-header {
height: auto;
padding-bottom: 10px;
}
body {
padding-top: 150px; /* espaçamento maior entre header e conteúdo */
}
.header-inner {
flex-direction: column;
align-items: center;
justify-content: center;
padding: 10px 20px;
}
.logo-container {
margin-bottom: 10px;
text-align: center;
}
.logo-container img {
max-height: 50px;
width: auto;
}
.search-container {
width: 100%;
}
.search-form {
width: 100%;
justify-content: center;
}
.search-input {
width: 100%;
font-size: 16px;
padding: 10px 15px;
border: 1px solid #ccc;
border-radius: 8px;
background-color: white;
box-shadow: none;
}
.search-btn {
font-size: 16px;
}
}
@media (max-width: 768px) {
header.site-header {
height: auto;
padding: 5px 0 5px 0; /* menos espaço vertical */
}
body {
padding-top: 120px; /* reduzido novamente para compensar header menor */
}
.header-inner {
flex-direction: column;
align-items: center;
justify-content: center;
padding: 5px 10px; /* menos padding interno */
gap: 6px; /* aproxima logo e barra de busca */
}
.logo-container {
margin-bottom: 0;
text-align: center;
}
.logo-container img {
max-height: 45px; /* ligeiramente menor */
width: auto;
}
.search-container {
width: 100%;
}
.search-form {
width: 100%;
justify-content: center;
}
.search-input {
width: 100%;
font-size: 16px;
padding: 8px 12px;
border: 1px solid #ccc;
border-radius: 8px;
background-color: white;
box-shadow: none;
}
.search-btn {
font-size: 16px;
}
}
@media (max-width: 768px) {
.search-container {
width: 100%;
display: flex;
justify-content: center;
}
.search-form {
width: 90%;
max-width: 400px; /* restringe largura */
justify-content: center;
}
.search-input {
width: 100%;
font-size: 16px;
padding: 10px 15px;
border: 1px solid #ccc;
border-radius: 8px;
background-color: white;
box-shadow: none;
display: block;
margin: 0 auto; /* centraliza dentro do form */
}
}
@media (max-width: 768px) {
.search-input {
padding: 14px 15px; /* aumenta o padding vertical para centralizar melhor o texto */
font-size: 16px;
line-height: 1.2;
height: auto;
box-sizing: border-box;
}
}
@media (max-width: 768px) {
.search-input {
padding: 18px 15px; /* aumenta a altura vertical do input */
font-size: 16px;
line-height: 1.2;
height: 60px; /* define altura exata */
box-sizing: border-box;
background-color: white;
border: 1px solid #ccc;
border-radius: 8px;
display: block;
margin: 0 auto;
}
}
@media (max-width: 768px) {
.search-input {
padding-top: 14px;  /* menor que antes para subir o texto */
padding-bottom: 12px;
padding-left: 15px;
padding-right: 15px;
font-size: 16px;
height: 60px;
line-height: 1.2;
background-color: white;
border: 1px solid #ccc;
border-radius: 8px;
display: block;
margin: 0 auto;
box-sizing: border-box;
}
}
@media (max-width: 768px) {
.search-input {
padding-top: 10px;  /* reduzido para subir o texto */
padding-bottom: 10px;
padding-left: 15px;
padding-right: 15px;
font-size: 16px;
height: 52px; /* altura menor para compensar visualmente */
line-height: 1.4;
background-color: white;
border: 1px solid #ccc;
border-radius: 8px;
display: block;
margin: 0 auto;
box-sizing: border-box;
}
}
@media (max-width: 768px) {
.search-input {
padding-top: 6px;  /* mais alto */
padding-bottom: 10px;
padding-left: 15px;
padding-right: 15px;
font-size: 16px;
height: 50px; /* ligeiramente menor */
line-height: 1.4;
background-color: white;
border: 1px solid #ccc;
border-radius: 8px;
display: block;
margin: 0 auto;
box-sizing: border-box;
}
}
@media (min-width: 769px) {
.logo-container img {
max-height: 50px; /* era 60px, agora menor */
width: auto;
}
}
header.site-header {
position: fixed;
top: 0;
left: 0;
width: 100%;
background-color: #f5f5f5; /* cinza quase branco */
border-bottom: 1px solid #ddd;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); /* sombra externa sutil */
z-index: 1000;
}
footer.site-footer {
background-color: #f5f5f5;
border-top: 1px solid #ddd;
box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.05);
padding: 20px;
text-align: center;
}
@media (max-width: 768px) {
.logo-container img {
max-height: 40px; /* menor que os 45px anteriores */
width: auto;
}
}
@media (max-width: 768px) {
footer.site-footer {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
text-align: center;
padding: 20px 10px;
}
.footer-logo {
margin-bottom: 10px;
}
.footer-social {
display: flex;
gap: 15px;
justify-content: center;
flex-wrap: wrap;
}
.footer-social img {
width: 24px;
height: 24px;
}
}
@media (max-width: 768px) {
footer.site-footer {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
text-align: center;
padding: 20px 10px;
}
.footer-logo {
text-align: center;
margin-bottom: 10px;
}
.footer-logo img {
display: block;
margin: 0 auto;
}
.footer-social {
display: flex;
gap: 15px;
justify-content: center;
flex-wrap: wrap;
margin-top: 10px;
}
.footer-social img {
width: 24px;
height: 24px;
}
}
@media (max-width: 768px) {
.site-footer .footer-inner {
display: flex;
flex-direction: column;
align-items: center;
text-align: center;
}
.site-footer .logo-container img {
max-width: 120px;
height: auto;
margin-bottom: 10px;
}
.site-footer .social-container {
display: flex;
gap: 15px;
justify-content: center;
flex-wrap: wrap;
}
.site-footer .social-container img {
width: 32px;
height: 32px;
}
}
@media (min-width: 769px) {
.site-footer .social-container a {
text-decoration: none;
}
.site-footer .social-container a:visited {
text-decoration: none;
}
.site-footer .social-container a:hover {
text-decoration: none;
}
}
@media (min-width: 769px) {
.site-footer .logo-container img {
max-width: 140px;
height: auto;
}
.site-footer .social-container {
gap: 25px;
}
.site-footer .social-container img {
width: 34px;
height: 34px;
}
}
@media (min-width: 769px) {
.site-footer .logo-container img {
max-width: 140px;
height: auto;
}
.site-footer .social-container {
gap: 35px;
}
.site-footer .social-container img {
width: 28px;
height: 28px;
}
}
@media (min-width: 769px) {
.site-footer .social-container {
gap: 50px;
}
}
header.site-header {
background-color: #FFFFFF !important;
}
.search-btn {
padding: 8px 12px;
background-color: #FFDEAD;
color: #000;
border: none;
border-radius: 0 4px 4px 0;
cursor: pointer;
}
.search-btn {
padding: 8px 12px;
background-color: #FFFFFF;
color: #000;
border: 1px solid #ccc;
border-radius: 0 4px 4px 0;
cursor: pointer;
}
footer.site-footer {
background-color: #FFFFFF !important;
}
.product-card {
transition: all 0.3s ease;
}
.product-card:hover {
transform: scale(1.02);
box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}
.product-card .botao-promocao {
background: linear-gradient(135deg, #ff4e50, #f9d423);
color: #fff;
transition: background 0.3s ease;
}
.product-card .botao-promocao:hover {
opacity: 0.9;
}
@keyframes fadeInUp {
from {
opacity: 0;
transform: translateY(20px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
.product-card {
opacity: 0;
animation: fadeInUp 0.5s ease forwards;
animation-delay: 0.1s;
}
.search-input:focus {
border: 2px solid #4B0082;
outline: none;
background-color: #fff;
}
.search-input::placeholder {
color: #aaa;
font-style: italic;
}
.floating-whatsapp {
position: fixed;
bottom: 20px;
right: 20px;
width: 56px;
height: 56px;
background-color: #25D366;
border-radius: 50%;
box-shadow: 0 4px 10px rgba(0,0,0,0.2);
display: flex;
align-items: center;
justify-content: center;
z-index: 2000;
}
.floating-whatsapp img {
width: 28px;
height: 28px;
}
.product-card {
transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.product-card:hover {
transform: scale(1.03);
box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}
.product-card img {
transition: transform 0.2s ease;
}
.product-card img:active {
transform: scale(0.96);
}
.product-card .botao-promocao {
transition: transform 0.1s ease;
}
.product-card .botao-promocao:active {
transform: scale(0.95);
}
@media (min-width: 769px) {
.logo-container img {
max-height: 45px;
}
}
.product-card:hover {
transform: scale(1.05);
box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}
.product-card .botao-promocao {
transition: transform 0.2s ease;
}
.product-card .botao-promocao:hover {
transform: scale(1.05);
}
.product-card .store-logo {
width: 45px;
}
.search-input:focus {
outline: none;
box-shadow: none;
}
.search-input:focus {
outline: none !important;
box-shadow: none !important;
border-color: #ccc !important;
}
.search-input {
border: none !important;
box-shadow: none !important;
}
.tempo-criacao {
font-size: 0.75rem;
color: #555;
margin-left: 8px;
vertical-align: middle;
display: inline-block;
}
.store-info {
display: flex;
align-items: center;
gap: 8px;
margin-bottom: 10px;
justify-content: center;
}
.store-logo {
max-height: 24px;
width: auto;
}
.tempo-criacao {
font-size: 0.75rem;
color: #555;
}
.store-info {
display: flex;
align-items: center;
gap: 6px;
margin-bottom: 8px;
justify-content: center;
}
.store-logo {
max-height: 20px;
width: auto;
}
.tempo-criacao {
font-size: 11px;
color: #666;
white-space: nowrap;
}
.store-info {
display: flex;
align-items: center;
justify-content: center;
gap: 6px;
margin-bottom: 8px;
}
.store-logo {
max-height: 20px;
width: auto;
}
.tempo-criacao {
font-size: 11px;
color: #666;
white-space: nowrap;
}
.product-image {
max-width: 100%;
height: auto;
display: block;
margin: 0 auto 10px;
}
.store-info {
display: flex;
align-items: center;
justify-content: center;
gap: 4px;
margin-bottom: 10px;
flex-wrap: nowrap;
}
.store-logo {
max-height: 20px;
width: auto;
display: inline-block;
vertical-align: middle;
}
.tempo-criacao {
font-size: 11px;
color: #666;
white-space: nowrap;
display: inline-block;
vertical-align: middle;
}
.store-info {
display: flex;
align-items: center;
justify-content: center;
gap: 4px;
margin-top: 4px;
margin-bottom: 4px;
padding: 0;
line-height: 1;
}
.product-card {
padding-top: 20px !important;
}
.store-info {
display: flex;
align-items: center;
justify-content: center;
gap: 4px;
margin-top: 8px;
margin-bottom: 8px;
padding: 0;
line-height: 1;
}
.product-card {
padding-top: 20px !important;
}
@media (max-width: 768px) {
.store-info {
margin-top: 8px;
margin-bottom: 8px;
}
}

.image-container {
  position: relative;
  width: 100%;
  text-align: left;
}

.store-overlay {
  position: absolute;
  top: 8px;
  left: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.store-logo {
  max-width: 45px;
  height: auto;
}

.tempo-criacao {
  font-size: 12px;
  color: #555;
}
