/*
Theme Name: Jardinismo - Novo Tema
Description: Tema WordPress moderno e elegante para sites de Jardinismo. Baseado no template Jardinismo com design limpo e funcionalidades completas.
Author: Casa do Dev
Version: 1.1
Text Domain: jardinismo-novo
*/

/* Reset e Estilos Globais */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #2E7D32;
/*     background-color: #f9fafb; */
/* 	background-color: #F5F5DC; /* Bege Terra */ */
}

.font-serif {
    font-family: 'Playfair Display', serif;
}

.font-sans {
    font-family: 'Inter', sans-serif;
}

a {
    text-decoration: none;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header */
.site-header {
    background: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 50;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    flex-wrap: wrap;
}

.site-branding {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.site-branding svg {
    width: 2rem;
    height: 2rem;
    color: #ec4899;
}

.site-branding .site-title,
.site-branding .site-title a {
    font-size: 1.5rem;
    font-weight: bold;
    color: #111827;
    font-family: 'Playfair Display', serif;
    text-decoration: none;
}

/* Navigation */
.main-navigation {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.menu-toggle {
    display: none; /* Escondido em desktop */
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    gap: 0.25rem;
}

.menu-toggle-text {
    font-size: 0.75rem;
    color: #6b7280;
    font-weight: 500;
}

.hamburger {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.hamburger span {
    width: 1.5rem;
    height: 0.125rem;
    background: #374151;
    transition: all 0.3s ease;
    border-radius: 0.125rem;
}

.toggled .hamburger span:nth-child(1) {
    transform: rotate(45deg) translate(0.375rem, 0.375rem);
}

.toggled .hamburger span:nth-child(2) {
    opacity: 0;
}

.toggled .hamburger span:nth-child(3) {
    transform: rotate(-45deg) translate(0.375rem, -0.375rem);
}

.nav-menu {
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
    display: flex; /* Visível em desktop */
    align-items: center;
}

.nav-menu li a {
    text-decoration: none;
    color: #374151;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 0.5rem 0;
    display: block;
}

.nav-menu li a:hover {
    color: #ec4899;
}

/* Search Form */
.header-search .search-form {
    position: relative;
    display: flex;
    align-items: center;
}

.header-search .search-field {
    padding: 0.5rem 2.5rem 0.5rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 9999px;
    outline: none;
    transition: all 0.3s ease;
}

.header-search .search-field:focus {
    border-color: #ec4899;
    box-shadow: 0 0 0 3px rgba(236, 72, 153, 0.1);
}

.header-search .search-submit {
    position: absolute;
    right: 0.25rem;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.4rem;
    color: #9ca3af;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-search .search-submit:hover {
    color: #ec4899;
}

.header-search .search-icon {
    width: 1.1rem;
    height: 1.1rem;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex; /* Exibe o botão hamburger */
    }

    .nav-menu {
        display: none; /* Esconde o menu principal */
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
        border-radius: 0.5rem;
        padding: 1rem;
        z-index: 1000;
        margin-top: 0.5rem;
        flex-direction: column;
        align-items: flex-start;
    }

    .main-navigation.toggled .nav-menu {
        display: flex; /* Exibe o menu quando ativado */
    }

    .header-search {
        display: none; /* Opcional: esconder a busca em telas pequenas */
    }
}


/* Hero Section */
.hero-section {
    padding: 5rem 1rem;
    background: linear-gradient(135deg, #fdf2f8 0%, #f3e8ff 100%);
    text-align: center;
}

.hero-title {
    font-size: 3rem;
    font-weight: bold;
    color: #111827;
    margin-bottom: 1.5rem;
    font-family: 'Playfair Display', serif;
}

.hero-title .highlight {
    color: #ec4899;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #6b7280;
    margin-bottom: 3rem;
    max-width: 64rem;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
    align-items: center;
}

@media (min-width: 640px) {
    .hero-buttons {
        flex-direction: row;
    }
    .hero-title {
        font-size: 4rem;
    }
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 5rem;
    }
    .hero-subtitle {
        font-size: 1.5rem;
    }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, #2E7D32 0%, #4CAF50 100%);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #2E7D32 0%, #A5D6A7 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(236, 72, 153, 0.3);
}

.btn-secondary {
    background: white;
    color: #8b5cf6;
    border: 1px solid #c4b5fd;
}

.btn-secondary:hover {
    background: #f3e8ff;
}

.btn svg {
    margin-left: 0.5rem;
    width: 1rem;
    height: 1rem;
}

/* Estilos para Banners de Imagem */
.ad-space {
    background: linear-gradient(135deg, #f3e8ff 0%, #e0e7ff 100%);
    border: 2px dashed #a855f7;
    border-radius: 12px;
    padding: 2.5rem 1.25rem;
    margin: 1.25rem 0;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.ad-space::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23a855f7' fill-opacity='0.1'%3E%3Ccircle cx='30' cy='30' r='4'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
    opacity: 0.3;
}

.ad-space .content {
    position: relative;
    z-index: 10;
}

.ad-space p:first-child {
    color: #7c3aed;
    font-weight: 600;
    font-size: 1.125rem;
}

.ad-space p:last-child {
    color: #8b5cf6;
    font-size: 0.875rem;
}

.ad-space > a {
    text-decoration: none;
    display: block;
    color: inherit;
}

.ad-space-image {
    padding: 0;
    border: none;
    background: transparent;
}

.ad-space-image a,
.ad-space-image img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: .75rem;
}

.ad-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    border: 2px dashed #d1d5db;
    color: #9ca3af;
    min-height: 90px;
    border-radius: .75rem;
}

/* Section Titles */
.section-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: #111827;
    margin-bottom: 1rem;
    text-align: center;
    font-family: 'Playfair Display', serif;
}

.section-subtitle {
    font-size: 1.25rem;
    color: #6b7280;
    text-align: center;
    max-width: 32rem;
    margin: 0 auto 3rem;
}

@media (min-width: 768px) {
    .section-title {
        font-size: 3rem;
    }
}

/* Categories Grid */
.categories-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 4rem;
}

@media (min-width: 768px) {
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.category-card {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #f3f4f6;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.category-icon {
    width: 4rem;
    height: 4rem;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: transform 0.3s ease;
}

.category-card:hover .category-icon {
    transform: scale(1.1);
}

.category-icon svg {
    width: 2rem;
    height: 2rem;
    color: white;
}

.category-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.75rem;
    font-family: 'Playfair Display', serif;
}

.category-description {
    color: #6b7280;
}

/* Posts Grid */
.posts-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 4rem;
}

@media (min-width: 768px) {
    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .posts-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.post-card {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #f3f4f6;
    transition: all 0.3s ease;
    cursor: pointer;
}

.post-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.post-image {
    position: relative;
    overflow: hidden;
    height: 12rem;
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.post-card:hover .post-image img {
    transform: scale(1.05);
}

.post-category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: #ec4899;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
}

.post-content {
    padding: 1.5rem;
}

.post-title a {
    font-size: 1.25rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.75rem;
    font-family: 'Playfair Display', serif;
    transition: color 0.3s ease;
}

.post-card:hover .post-title a {
    color: #ec4899;
}

.post-excerpt {
    color: #6b7280;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.post-meta {
    display: flex;
    align-items: center;
    color: #9ca3af;
    font-size: 0.875rem;
}

.post-meta svg {
    width: 1rem;
    height: 1rem;
    margin-right: 0.25rem;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 64rem;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.product-card {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #f3f4f6;
    transition: all 0.3s ease;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.product-image {
    position: relative;
    overflow: hidden;
    height: 12rem;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #ef4444;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: bold;
}

.product-content {
    padding: 1.5rem;
}

.product-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.75rem;
    font-family: 'Playfair Display', serif;
}

.product-description {
    color: #6b7280;
    margin-bottom: 1rem;
}

.product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.product-price .current {
    font-size: 1.5rem;
    font-weight: bold;
    color: #059669;
}

.product-price .original {
    font-size: 0.875rem;
    color: #9ca3af;
    text-decoration: line-through;
}

/* Newsletter Section */
.newsletter-section {
    padding: 5rem 1rem;
    background: linear-gradient(135deg, #ec4899 0%, #8b5cf6 100%);
    text-align: center;
}

.newsletter-content {
    max-width: 32rem;
    margin: 0 auto;
}

.newsletter-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: white;
    margin-bottom: 1.5rem;
    font-family: 'Playfair Display', serif;
}

.newsletter-subtitle {
    font-size: 1.25rem;
    color: #fce7f3;
    margin-bottom: 2rem;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 24rem;
    margin: 0 auto 1rem;
}

@media (min-width: 640px) {
    .newsletter-form {
        flex-direction: row;
    }
    .newsletter-title {
        font-size: 3rem;
    }
}

.newsletter-input {
    flex: 1;
    padding: 0.75rem 1rem;
    border-radius: 9999px;
    border: none;
    outline: none;
}

.newsletter-input:focus {
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

.newsletter-btn {
    background: white;
/*     color: #ec4899; */
    padding: 0.75rem 2rem;
    border-radius: 9999px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter-btn:hover {
    background: #FFF176;
}

.newsletter-note {
    color: #fce7f3;
    font-size: 0.875rem;
}

/* Estilos para mensagens da Newsletter */
.newsletter-message {
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    margin-top: 1rem;
    font-weight: 500;
    text-align: center;
    max-width: 24rem;
    margin-left: auto;
    margin-right: auto;
}

.newsletter-message.success {
    background-color: #d1fae5;
    color: #065f46;
}

.newsletter-message.error {
    background-color: #fee2e2;
    color: #991b1b;
}

/* Footer */
.site-footer {
    background: #111827;
    color: white;
    padding: 4rem 1rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

@media (min-width: 640px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.footer-brand svg {
    width: 1.5rem;
    height: 1.5rem;
    color: #ec4899;
}

.footer-brand span {
    font-size: 1.25rem;
    font-weight: bold;
    font-family: 'Playfair Display', serif;
}

.footer-description {
    color: #9ca3af;
    margin-bottom: 1rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social-link {
    width: 2rem;
    height: 2rem;
    background: #ec4899;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.footer-social-link:hover {
    background: #db2777;
}

.footer-social-link svg {
    width: 1rem;
    height: 1rem;
}

.footer-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #ec4899;
}

.footer-contact {
    color: #9ca3af;
}

.footer-contact p {
    margin-bottom: 0.5rem;
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 2rem;
    text-align: center;
    color: #9ca3af;
}

.footer-bottom p {
    margin: 0;
}

.footer-bottom p:last-child {
    margin-top: 0.5rem;
    font-size: 0.875rem;
}

/* WordPress Specific Classes */
.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

.alignwide {
    width: 100vw;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.alignfull {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

.py-16 {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.bg-white {
    background-color: white;
}

.bg-gray-50 {
    background-color: #f9fafb;
}

/* ==========================================================================
   Layout Responsivo para Conteúdo e Sidebar
   ========================================================================== */

/* Layout padrão para telas maiores (desktop) */
.content-wrapper {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 2rem;
}

.sidebar {
    width: 100%;
}

/* Ajuste para telas menores (mobile) */
@media (max-width: 768px) {
    .content-wrapper {
        display: block; /* Remove o layout em grid */
    }

    .main-content {
        margin-bottom: 3rem; /* Adiciona um espaço entre o conteúdo e a sidebar */
    }
}

/* ==========================================================================
   Estilos da Sidebar (Barra Lateral)
   ========================================================================== */

/* Container geral da Sidebar */
.sidebar .widget-area {
    width: 100%;
}

/* Estilo base para cada Widget */
.sidebar .widget {
    background: #ffffff;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border-radius: 0.75rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid #f3f4f6;
}

/* Título de cada Widget */
.sidebar .widget-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: #111827;
    margin-top: 0;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

/* Listas dentro dos Widgets (Categorias, Posts Recentes, etc.) */
.sidebar .widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar .widget ul li {
    padding: 0.6rem 0;
    border-bottom: 1px solid #f3f4f6;
    font-size: 0.95rem;
}

.sidebar .widget ul li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.sidebar .widget ul li a {
    color: #374151;
    text-decoration: none;
    transition: color 0.3s ease-in-out;
}

.sidebar .widget ul li a:hover {
    color: var(--primary-color, #ec4899);
}

/* Estilo para o contador de posts no widget de Categorias */
.widget_categories .cat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.widget_categories .cat-item .count {
    background-color: #f3f4f6;
    color: #6b7280;
    font-size: 0.75rem;
    padding: 0.125rem 0.5rem;
    border-radius: 9999px;
    font-weight: 500;
}

/* Estilo para a data no widget de Posts Recentes */
.widget_recent_entries .post-date {
    display: block;
    font-size: 0.8rem;
    color: #9ca3af;
    margin-top: 0.25rem;
}

/* Estilo para o widget de Nuvem de Tags */
.sidebar .widget .tagcloud a {
    display: inline-block;
    background: #f3f4f6;
    color: #6b7280;
    padding: 0.5rem 1rem;
    margin: 0.25rem;
    border-radius: 9999px;
    font-size: 0.85rem !important; /* Garante que o tamanho seja consistente */
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.sidebar .widget .tagcloud a:hover {
    background: var(--primary-color, #ec4899);
    color: #ffffff;
    border-color: var(--primary-color, #ec4899);
}

/* Estilo para o formulário de busca no widget */
.sidebar .widget_search .search-form {
    display: flex;
    position: relative;
}

.sidebar .widget_search .search-field {
    width: 100%;
    padding: 0.75rem 3rem 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 9999px;
    outline: none;
    transition: all 0.3s ease;
}

.sidebar .widget_search .search-field:focus {
    border-color: var(--primary-color, #ec4899);
    box-shadow: 0 0 0 3px rgba(236, 72, 153, 0.1);
}

.sidebar .widget_search .search-submit {
    position: absolute;
    right: 0.25rem;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: #9ca3af;
}

.sidebar .widget_search .search-submit:hover .search-icon {
    stroke: var(--primary-color, #ec4899);
}

/* ==========================================================================
   Estilos da Página de Resultados de Pesquisa (search.php)
   ========================================================================== */

/* Cabeçalho da página de busca */
.search-results-header {
    text-align: center;
    padding: 3rem 0;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 3rem;
}

.search-results-header .page-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: #111827;
    font-weight: 700;
}

/* Destaque para o termo pesquisado */
.search-results-header .page-title span {
    color: var(--primary-color, #ec4899);
}

/* Container para cada item do resultado */
.search-result-item {
    background: #ffffff;
    border-radius: 0.75rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.search-result-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.07);
}

/* Layout interno do card de resultado */
.search-result-content {
    display: flex;
    flex-direction: row;
    width: 100%;
}

/* Miniatura (imagem) do post */
.search-result-thumbnail {
    flex: 0 0 250px;
}

.search-result-thumbnail a {
    display: block;
    height: 100%;
}

.search-result-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Texto do resultado (título, meta, resumo) */
.search-result-text {
    padding: 1.5rem 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.search-result-text .entry-title {
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.search-result-text .entry-title a {
    font-family: 'Playfair Display', serif;
    color: #111827;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.3;
}

.search-result-text .entry-title a:hover {
    color: var(--primary-color, #ec4899);
}

.search-result-text .entry-meta {
    color: #9ca3af;
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.search-result-text .entry-meta .post-category {
    background: var(--secondary-color, #8b5cf6);
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    margin-right: 0.75rem;
    font-size: 0.75rem;
    font-weight: 500;
}

.search-result-text .entry-summary {
    color: #6b7280;
    flex-grow: 1; /* Empurra o link "Leia mais" para o final */
    font-size: 0.95rem;
    line-height: 1.7;
}

.search-result-text .read-more {
    color: var(--primary-color, #ec4899);
    text-decoration: none;
    font-weight: 600;
    margin-top: 1rem;
    display: inline-flex;
    align-items: center;
    align-self: flex-start; /* Alinha o botão à esquerda */
}

.search-result-text .read-more svg {
    margin-left: 0.25rem;
    transition: transform 0.2s ease;
}

.search-result-text .read-more:hover svg {
    transform: translateX(4px);
}


/* Tela de "Nenhum resultado encontrado" */
.no-results {
    text-align: center;
    padding: 4rem 1rem;
    background-color: #fff;
    border-radius: .75rem;
    margin: 2rem 0;
}

.no-results h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: #111827;
    margin-bottom: 1rem;
}

.no-results .search-form-container {
    max-width: 500px;
    margin: 2rem auto 3rem;
}

.no-results .suggested-content h3 {
     font-family: 'Playfair Display', serif;
     font-size: 1.5rem;
     margin-bottom: 1.5rem;
     color: #374151;
}

.no-results .suggested-posts {
     display: flex;
     flex-wrap: wrap;
     gap: 1.5rem;
     justify-content: center;
     text-align: left;
}

.no-results .suggested-post {
    background: #f9fafb;
    border-radius: 0.5rem;
    width: calc(33.333% - 1rem);
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid #f3f4f6;
}

.no-results .suggested-post-thumbnail img {
    border-radius: 0.5rem;
    width: 60px;
    height: 60px;
    object-fit: cover;
}

.no-results .suggested-post-content h4 a {
    font-size: 0.9rem;
    font-weight: 600;
    color: #374151;
    text-decoration: none;
}
.no-results .suggested-post-content h4 a:hover {
    color: var(--primary-color, #ec4899);
}

.no-results .suggested-post-date {
    font-size: 0.8rem;
    color: #9ca3af;
}


/* Ajustes responsivos para a página de busca */
@media (max-width: 768px) {
    .search-result-content {
        flex-direction: column; /* Empilha a imagem sobre o texto */
    }

    .search-result-thumbnail {
        flex-basis: 200px; /* Define uma altura fixa para a imagem no mobile */
    }

    .no-results .suggested-post {
        width: 100%;
        max-width: 400px;
    }
}

/* ==========================================================================
   Estilos da Página de Artigo (single.php)
   ========================================================================== */

.single-post-container .entry-header {
    text-align: center;
    margin-bottom: 2rem;
}

.single-post-container .post-category-link {
    display: inline-block;
    background: var(--primary-color, #ec4899);
    color: white;
    padding: 0.5rem 1.25rem;
    border-radius: 9999px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 1rem;
    text-decoration: none;
}

.single-post-container .entry-title {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 700;
    color: #111827;
    line-height: 1.2;
    margin: 0 auto 1rem;
    max-width: 800px;
}

.single-post-container .entry-meta {
    color: #6b7280;
    font-size: 0.9rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
}

.single-post-container .post-thumbnail-single {
    margin-bottom: 2.5rem;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.single-post-container .post-thumbnail-single img {
    width: 100%;
    height: auto;
    display: block;
}

/* Estilos para o conteúdo do post */
.entry-content {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #374151;
/*     max-width: 720px; */
    margin: 0 auto;
}

.entry-content p {
    margin-bottom: 1.5em;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
    font-family: 'Playfair Display', serif;
    color: #111827;
    margin-top: 2em;
    margin-bottom: 1em;
    line-height: 1.3;
}

.entry-content h2 { font-size: 2rem; }
.entry-content h3 { font-size: 1.75rem; }
.entry-content h4 { font-size: 1.5rem; }

.entry-content ul,
.entry-content ol {
    margin-bottom: 1.5em;
    padding-left: 1.5em;
}
.entry-content ul li,
.entry-content ol li {
    margin-bottom: 0.5em;
}

.entry-content blockquote {
    margin: 2em auto;
    padding-left: 1.5rem;
    border-left: 4px solid var(--primary-color, #ec4899);
    font-style: italic;
    font-size: 1.25rem;
    color: #6b7280;
}
.entry-content blockquote p {
    margin-bottom: 0;
}

/* Rodapé do post (tags e compartilhamento) */
.single-post-container .entry-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
/*     max-width: 720px; */
    margin: 2.5rem auto;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
}

.tags-list h4, .social-sharing h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #111827;
    margin: 0 0 0.75rem;
}

.tags-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tags-list ul li a {
    display: block;
    background: #f3f4f6;
    color: #6b7280;
    padding: 0.4rem 1rem;
    border-radius: 9999px;
    font-size: 0.8rem;
    text-decoration: none;
    transition: all 0.2s ease;
}
.tags-list ul li a:hover {
    background: var(--primary-color, #ec4899);
    color: #ffffff;
}

.social-sharing {
    text-align: right;
}

.social-sharing a {
    color: #9ca3af;
    margin-left: 0.75rem;
}
.social-sharing a:hover {
    color: var(--primary-color, #ec4899);
}
.social-sharing svg {
    width: 24px;
    height: 24px;
}

/* Caixa de Biografia do Autor */
.author-box {
    display: flex;
    gap: 1.5rem;
    background: #f9fafb;
    padding: 2rem;
    border-radius: 1rem;
/*     max-width: 720px; */
    margin: 2.5rem auto;
}
.author-avatar img {
    border-radius: 50%;
}
.author-info .author-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    margin: 0 0 0.5rem;
}
.author-info .author-description {
    font-size: 0.95rem;
    color: #6b7280;
    margin-bottom: 1rem;
}
.author-info .author-link {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-color, #ec4899);
    text-decoration: none;
}

/* Navegação entre Posts */
.post-navigation {
    border-top: 1px solid #e5e7eb;
    margin-top: 3rem;
}

.post-navigation .nav-links {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
}

.post-navigation .nav-previous,
.post-navigation .nav-next {
    padding: 2rem;
    width: 50%;
    text-decoration: none;
}

.post-navigation .nav-previous {
    border-right: 1px solid #e5e7eb;
    text-align: left;
}

.post-navigation .nav-next {
    text-align: right;
}

.post-navigation a {
    text-decoration: none;
}

.post-navigation .nav-subtitle {
    display: block;
    font-size: 0.9rem;
    color: #9ca3af;
    margin-bottom: 0.5rem;
}

.post-navigation .nav-title {
    font-weight: 600;
    color: #374151;
    transition: color 0.2s ease;
}

.post-navigation a:hover .nav-title {
    color: var(--primary-color, #ec4899);
}

@media (max-width: 768px) {
    .single-post-container .entry-title {
        font-size: 2.25rem;
    }
    .author-box {
        flex-direction: column;
        text-align: center;
    }
    .author-avatar {
        margin: 0 auto;
    }
    .entry-footer, .social-sharing {
        text-align: left;
        justify-content: center;
    }
    .post-navigation .nav-links {
        flex-direction: column; /* Empilha os links no mobile */
    }
    .post-navigation .nav-previous,
    .post-navigation .nav-next {
        width: 100%;
        text-align: center;
        padding: 1.5rem 1rem;
    }
    .post-navigation .nav-previous {
        border-right: none;
        border-bottom: 1px solid #e5e7eb;
    }
}


.in-content-ad-space {
    background: #f9fafb;
    border: 1px dashed #e5e7eb;
    padding: 1.5rem;
    margin: 2rem auto;
    text-align: center;
    border-radius: .5rem;
}
.in-content-ad-space h4 {
    margin: 0 0 .5rem;
    font-size: .75rem;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 1px;
}


.affiliate-product-box {
    display: flex;
    gap: 1.5rem;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: .75rem;
    padding: 1.5rem;
    margin: 2rem 0;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
}
.apb-image { flex-shrink: 0; }
.apb-image img { width: 120px; height: 120px; object-fit: cover; border-radius: .5rem; }
.apb-title { font-family: 'Playfair Display', serif; margin: 0 0 0.5rem; font-size: 1.5rem; }
.apb-description p { margin: 0 0 1rem; font-size: 0.95rem; }
.apb-button {
    display: inline-block;
    background: var(--primary-color, #ec4899);
    color: #fff;
    padding: 0.6rem 1.5rem;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    transition: background .2s;
}
.apb-button:hover { background: #db2777; }

@media(max-width: 600px) {
    .affiliate-product-box { flex-direction: column; text-align: center; }
    .apb-image { margin: 0 auto; }
}


/* Estilos da Seção de Comentários */
#comments {
/*     max-width: 720px; */
    margin: 3rem auto;
}
.comment-list {
    list-style: none;
    padding: 0;
}
.comment-body {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: .5rem;
    background: #fff;
    border: 1px solid #f3f4f6;
    position: relative;
}
.comment-author .avatar {
    border-radius: 50%;
    margin-right: 1rem;
}
.comment-meta {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}
.comment-metadata a {
    color: #9ca3af;
    font-size: .85rem;
    text-decoration: none;
}
.comment-content p {
    font-size: 1rem;
    color: #374151;
}
.reply a {
    font-size: .85rem;
    font-weight: 600;
    color: var(--primary-color, #ec4899);
    text-decoration: none;
}

/* Formulário de Comentário */
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: .5rem;
    margin-bottom: 1rem;
}
.comment-form .submit {
    background: var(--primary-color, #ec4899);
    color: #fff;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 999px;
    font-weight: 600;
    cursor: pointer;
}