/*
Theme Name: Web Ofertas
Theme URI: https://webofertas.com
Author: Web Ofertas
Author URI: https://webofertas.com
Description: Tema WordPress profissional para blog de reviews e ofertas de afiliados, com suporte a posts personalizados (Reviews e Loja de Ofertas). Design moderno, responsivo e otimizado para SEO e conversão.
Version: 1.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: webofertas
Tags: blog, afiliados, review, loja, responsivo, moderno
*/

body, * {
	margin: 0; 
	padding: 0; 
	box-sizing: border-box;
}
body {
	font-family: 'Open Sans', sans-serif; 
	line-height: 1.6; 
	color: #111; 
	background: #fff;
}
.container {
	max-width: 1200px; 
	margin: 0 auto; 
	padding: 0 20px;
}

/* ===============================
   🧭 HEADER E MENU MOBILE
=============================== */
.header {
	background: #fff;
	box-shadow: 0 2px 10px rgba(0,0,0,0.1);
	position: sticky;
	top: 0;
	z-index: 1000;
}
.header-content {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 1rem 0;
}
.logo {
	display: flex;
	align-items: center;
	gap: 12px;
	text-decoration: none;
	color: #2563eb;
}
.logo-icon {
	width: 45px;
	height: 45px;
	background: #2563eb;
	border-radius: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: white;
	font-size: 22px;
	font-weight: bold;
}
.logo-text {
	font-family: 'Poppins', sans-serif;
	font-weight: 700;
	font-size: 1.6rem;
}

/* MENU PRINCIPAL */
.nav {
	display: flex;
	gap: 2rem;
	list-style: none;
	align-items: center;
	transition: all 0.3s ease;
}
.nav a {
	text-decoration: none;
	color: #111;
	font-weight: 500;
	position: relative;
	transition: color 0.3s;
}
.nav a:hover {
	color: #2563eb;
}
.nav a:hover::after {
	content: '';
	position: absolute;
	bottom: -5px;
	left: 0;
	right: 0;
	height: 2px;
	background: #f97316;
}

/* ÍCONES E AÇÕES */
.header-actions {
	display: flex;
	align-items: center;
	gap: 1rem;
}

/* ===============================
   🔍 BUSCA EXPANDIDA COM BLUR
=============================== */
.search-wrapper {
	position: relative;
	display: flex;
	align-items: center;
}
.search-icon {
	background: none;
	border: none;
	cursor: pointer;
	font-size: 22px;
	transition: transform 0.3s, color 0.3s;
}
.search-icon:hover {
	color: #2563eb;
	transform: scale(1.1);
}

/* FORMULÁRIO DE BUSCA */
.search-form {
	position: absolute;
	right: 0px;
	top: 20px;
	transform: translateY(-50%) scaleX(0);
	transform-origin: right center;
	background: rgba(255,255,255,0.9);
	backdrop-filter: blur(10px);
	border-radius: 12px;
	box-shadow: 0 4px 20px rgba(0,0,0,0.15);
	padding: 0.5rem 0.6rem;
	width: 250px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	opacity: 0;
	transition: all 0.3s ease;
	z-index: 999;
}
.search-form.active {
	transform: translateY(-50%) scaleX(1);
	opacity: 1;
}
.search-form input {
	border: none;
	background: transparent;
	outline: none;
	flex: 1;
	font-size: 0.95rem;
	padding: 0.4rem 0.5rem;
	color: #111;
}
.search-submit {
	background: #2563eb;
	color: white;
	border: none;
	padding: 0.45rem 0.65rem;
	border-radius: 8px;
	cursor: pointer;
	font-size: 0.9rem;
	transition: background 0.3s ease;
}
.search-submit:hover { background: #1d4ed8; }

/* ===============================
   📱 MENU MOBILE
=============================== */
.mobile-menu {
	display: none;
	background: none;
	border: none;
	font-size: 28px;
	cursor: pointer;
	color: #111;
	transition: color 0.3s ease;
}
.mobile-menu:hover { color: #2563eb; }

/* Layout mobile */
@media (max-width: 1024px) {
	.nav {
		position: absolute;
		top: 100%;
		left: 0;
		width: 100%;
		flex-direction: column;
		background: #fff;
		box-shadow: 0 6px 20px rgba(0,0,0,0.1);
		padding: 1.5rem 0;
		transform: translateY(-20px);
		opacity: 0;
		visibility: hidden;
		transition: all 0.4s ease;
	}

		.nav.active {
		display: flex !important; /* 👈 Força a exibição */
		opacity: 1;
		visibility: visible;
		transform: translateY(0);
		flex-direction: column;
		align-items: center;
		z-index: 9999;
	}


	.nav li {
  text-align: center;
  margin: 0.5rem 0; /* 🔹 diminui o espaço entre os itens */
}

.nav li a {
  display: inline-block;
  font-size: 1.15rem;
  padding: 0.15rem 0; /* 🔹 reduz o “respiro” vertical */
}

	.nav li a:hover {
		color: #2563eb;
	}
	.nav li a:hover::after {
		content: '';
		position: absolute;
		bottom: -4px;
		left: 0;
		right: 0;
		height: 2px;
		background: #f97316;
	}

	.mobile-menu { display: block; }
}







/* Hero */
.hero {
	background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
	color: white;
	padding: 3rem 0;              /* 🔹 altura reduzida para ficar igual às outras páginas */
	text-align: center;
	min-height: 280px;            /* 🔹 garante altura mínima equilibrada */
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
}

}
.hero h1 {
	font-family: 'Poppins', sans-serif; 
	font-weight: 700; 
	font-size: 3rem; 
	margin-bottom: 1.5rem;
}
.hero p {
	font-size: 1.3rem; 
	margin-bottom: 2.5rem; 
	opacity: 0.95;
}
.cta-button {
	background: #f97316; 
	color: white; 
	padding: 1.2rem 2.5rem; 
	border-radius: 12px; 
	font-weight: 600; 
	text-decoration: none; 
	transition: all 0.3s;
}
.cta-button:hover {
	background: #ea580c;
}

/* Página inicial - cards de produtos */
.main-content {
	display: grid; 
	grid-template-columns: 1fr 320px; 
	gap: 3rem; 
	padding: 4rem 0;
}
.section-title {
	font-family: 'Poppins', sans-serif; 
	font-weight: 700; 
	font-size: 2.2rem; 
	color: #111; 
	margin-bottom: 2.5rem; 
	position: relative; 
	padding-bottom: 0.8rem;
}
.section-title::after {
	content: ''; 
	position: absolute; 
	bottom: 0; 
	left: 0; 
	width: 60px; 
	height: 4px; 
	background: linear-gradient(90deg, #f97316, #2563eb); 
	border-radius: 2px;
}
.products-grid {
	display: grid; 
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
	gap: 2.5rem; 
	margin-bottom: 4rem;
}
.product-card {
	background: white; 
	border-radius: 16px; 
	overflow: hidden; 
	box-shadow: 0 6px 20px rgba(0,0,0,0.08); 
	transition: all 0.3s; 
	border: 1px solid #f5f5f5; 
	display: flex; 
	flex-direction: column;
}
.product-card:hover {
	transform: translateY(-6px); 
	box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}
.product-image {
	width: 100%; 
	height: 230px; 
	object-fit: cover; 
	display: block;
}
.featured-badge {
	position: absolute; 
	top: 15px; 
	right: 15px; 
	background: #f97316; 
	color: white; 
	padding: 6px 12px; 
	border-radius: 20px; 
	font-size: 0.8rem; 
	font-weight: 600;
}
.product-info {
	padding: 1.5rem; 
	flex: 1;
}
.product-title {
	font-family: 'Poppins', sans-serif; 
	font-weight: 600; 
	font-size: 1.2rem; 
	margin-bottom: 0.8rem; 
	color: #111; 
	line-height: 1.3;
}
.product-summary {
	color: #666; 
	margin-bottom: 1.5rem; 
	line-height: 1.6;
}
.read-review-btn {
	background: #2563eb; 
	color: white; 
	padding: 0.9rem 1.5rem; 
	border: none; 
	border-radius: 10px; 
	font-weight: 600; 
	cursor: pointer; 
	text-decoration: none; 
	display: block; 
	text-align: center; 
	transition: all 0.3s;
}
.read-review-btn:hover {
	background: #1d4ed8;
}

/* Sidebar */
.sidebar {
	background: #f8fafc; 
	padding: 2.5rem; 
	border-radius: 16px; 
	border: 1px solid #e2e8f0; 
	height: fit-content;
}
.sidebar-section {
	margin-bottom: 2rem;
}
.sidebar-title {
	font-family: 'Poppins', sans-serif;
	font-weight: 600;
	font-size: 1.3rem;
	margin-bottom: 1.5rem;
	color: #111;
}
.categories-list,
.popular-posts {
	list-style: none;
	padding: 0;
	margin: 0;
}
.categories-list a {
	display: flex;
	align-items: center;
	gap: 0.8rem;
	text-decoration: none;
	color: #666;
	padding: 0.8rem;
	border-radius: 10px;
	transition: all 0.3s;
	font-weight: 500;
}
.categories-list a:hover {
	background: white;
	color: #2563eb;
	box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.popular-posts li {
	margin-bottom: 1.2rem;
	padding-bottom: 1.2rem;
	border-bottom: 1px solid #e2e8f0;
}
.popular-posts a {
	text-decoration: none;
	color: #111;
	font-weight: 500;
	line-height: 1.5;
	display: block;
	transition: color 0.3s;
}
.popular-posts a:hover {
	color: #2563eb;
}
.sidebar-cta {
	background: linear-gradient(135deg, #f97316, #ea580c);
	color: white;
	padding: 2rem;
	border-radius: 12px;
	text-align: center;
}
.sidebar-cta h3 {
	font-family: 'Poppins', sans-serif;
	font-weight: 600;
	margin-bottom: 0.8rem;
}
.sidebar-cta p {
	margin-bottom: 1.5rem;
	opacity: 0.9;
}
.sidebar-cta-btn {
	background: white;
	color: #f97316;
	padding: 0.9rem 1.8rem;
	border: none;
	border-radius: 8px;
	font-weight: 600;
	cursor: pointer;
	text-decoration: none;
	display: inline-block;
	transition: all 0.3s;
}
.sidebar-cta-btn:hover {
	transform: scale(1.05);
	box-shadow: 0 4px 15px rgba(255,255,255,0.3);
}

/* Footer */
.footer {
	background: #111;
	color: white;
	padding: 2rem 0 2rem;
	margin-top: 5rem;
}
.footer-content {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 3rem;
	margin-bottom: 1.5rem;
}
.footer-section h3 {
	font-family: 'Poppins', sans-serif;
	font-weight: 600;
	margin-bottom: 1.5rem;
	color: #f97316;
}
.footer-section p {
	color: #ccc;
	line-height: 1.5;
}
.footer-links {
	list-style: none;
}
.footer-links li {
	margin-bottom: 0.3rem;
}
.footer-links a {
	color: #ccc;
	text-decoration: none;
	transition: color 0.3s;
}
.footer-links a:hover {
	color: #f97316;
}
.social-icons {
	display: flex;
	gap: 1rem;
	margin-top: 1.5rem;
}
.social-icon {
	width: 45px;
	height: 45px;
	background: #2563eb;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: white;
	text-decoration: none;
	transition: all 0.3s;
	font-size: 1.2rem;
}
.social-icon:hover {
	background: #f97316;
	transform: translateY(-3px);
}
.footer-bottom {
	border-top: 1px solid #333;
	padding-top: 2rem;
	text-align: center;
	color: #999;
}
.footer-bottom p {
	margin-bottom: 1rem;
}

/* Responsividade */
@media (max-width: 1024px) {
	.nav {
		display: none; 
		flex-direction: column; 
		width: 100%; 
		background: white; 
		position: absolute; 
		top: 100%; 
		left: 0; 
		box-shadow: 0 4px 15px rgba(0,0,0,0.1); 
		padding: 0.5rem;
	}
}
@media (max-width: 768px) {
	.hero h1 {font-size: 2rem;}
	.hero p {font-size: 1.1rem;}
	.main-content {grid-template-columns: 1fr;}
	.mobile-menu {display: block;}
}
@media (max-width: 480px) {
	.hero {padding: 3rem 0;}
	.hero h1 {font-size: 1.8rem;}
	.product-info {padding: 1.5rem;}
	.quick-summary {padding: 1.5rem;}
}

/* ---------- Live search results ---------- */
.live-results {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: 420px;
  max-width: calc(100vw - 40px);
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.12);
  overflow: hidden;
  z-index: 1200;
  transition: opacity .18s ease, transform .18s ease;
  font-family: 'Open Sans', sans-serif;
}

/* item */
.live-item {
  display: flex;
  gap: 12px;
  padding: 12px;
  text-decoration: none;
  color: #111;
  border-bottom: 1px solid #f1f5f9;
  align-items: center;
}
.live-item:hover { background:#fbfbfd; transform: translateY(-1px); }

.live-thumb { width: 72px; height: 72px; flex-shrink: 0; border-radius: 8px; overflow: hidden; background:#f5f5f5; display:flex;align-items:center;justify-content:center; }
.live-thumb img { width:100%; height:100%; object-fit:cover; display:block; }

.live-body { flex: 1; min-width: 0; }
.live-title { font-weight:700; font-size:0.98rem; margin-bottom:4px; color:#111; }
.live-price { font-weight:800; color:#2563eb; margin-bottom:6px; }
.live-excerpt { font-size:0.9rem; color:#6b6b6b; line-height:1.3; }

/* link ver todos */
.live-all {
  display:block;
  padding:12px;
  text-align:center;
  font-weight:700;
  color:#2563eb;
  text-decoration:none;
  background:#fafafa;
}
.live-empty {
  padding:16px;
  color:#666;
}

/* responsivo: droplist maior largura em mobile */
@media (max-width: 768px) {
  .live-results { left: 8px; right: 8px; top: calc(100% + 6px); width: auto; max-width: calc(100vw - 16px); }
  .live-thumb { width: 60px; height: 60px; }
  .live-title { font-size: 0.95rem; }
  .live-price { font-size: 0.96rem; }
}

/* ===========================
   🔧 CORREÇÕES HEADER MOBILE
=========================== */
@media (max-width: 768px) {

  /* 🔹 Remove o texto do título no mobile */
  .logo-text {
    display: none !important;
    visibility: hidden !important;
  }

  /* 🔹 Corrige o header para não ultrapassar o body */
  .header {
    width: 100%;
    overflow-x: visible;
    box-sizing: border-box;
  }

  .container {
    width: 100%;
    padding: 0 16px;
  }

  /* 🔹 Ajusta alinhamento da logo, lupa e menu */
  .header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    padding: 0.6rem 0;
  }

  /* 🔹 Reduz tamanho da logo */
  .logo {
    gap: 8px;
  }

  .logo-icon {
    width: 38px;
    height: 38px;
    font-size: 18px;
  }

  /* 🔹 Garante que a lupa e o menu fiquem alinhados e visíveis */
  .header-actions {
    display: flex;
    align-items: center;
    gap: 0.8rem;
  }

  .search-icon,
  .mobile-menu {
    font-size: 24px;
    line-height: 1;
    color: #2563eb;
    background: none;
    border: none;
    overflow-x: visible;
  }
  
  /* ---------- Live search results ---------- */
.live-results {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: 420px;
  max-width: calc(100vw - 40px);
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.12);
  overflow: hidden;
  z-index: 1200;
  transition: opacity .18s ease, transform .18s ease;
  font-family: 'Open Sans', sans-serif;
}

/* item */
.live-item {
  display: flex;
  gap: 12px;
  padding: 12px;
  text-decoration: none;
  color: #111;
  border-bottom: 1px solid #f1f5f9;
  align-items: center;
}
.live-item:hover { background:#fbfbfd; transform: translateY(-1px); }

.live-thumb { width: 72px; height: 72px; flex-shrink: 0; border-radius: 8px; overflow: hidden; background:#f5f5f5; display:flex;align-items:center;justify-content:center; }
.live-thumb img { width:100%; height:100%; object-fit:cover; display:block; }

.live-body { flex: 1; min-width: 0; }
.live-title { font-weight:700; font-size:0.98rem; margin-bottom:4px; color:#111; }
.live-price { font-weight:800; color:#2563eb; margin-bottom:6px; }
.live-excerpt { font-size:0.9rem; color:#6b6b6b; line-height:1.3; }

/* link ver todos */
.live-all {
  display:block;
  padding:12px;
  text-align:center;
  font-weight:700;
  color:#2563eb;
  text-decoration:none;
  background:#fafafa;
}
.live-empty {
  padding:16px;
  color:#666;
}

  /* 🔹 Remove qualquer margem extra e impede quebra */
  body, html {
    overflow-x: hidden !important;
  }
}
