/*
Theme Name: Koypix 3D Blog
Theme URI: https://koypix.com
Author: Seu Nome
Author URI: https://koypix.com
Description: Tema WordPress clean e otimizado para blog de impressão 3D, sem dependências de page builders.
Version: 1.0.0
Requires at least: 5.9
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: koypix
Tags: blog, custom-menu, featured-images, threaded-comments, translation-ready, custom-logo, footer-widgets
*/

:root {
    --primary: #2b8cee;
    --bg-light: #f6f7f8;
    --bg-dark: #101922;
    --text-main: #111418;
    --border-color: #f0f2f4;
    --white: #ffffff;
    --gray-light: #f0f2f4;
    --gray-text: #6b7280;
    --radius-lg: 0.5rem;
    --radius-xl: 0.75rem;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Space Grotesk', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-main);
    line-height: 1.5;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0.25rem 40px;
}

@media (max-width: 768px) {
    .container { padding: 0 16px; }
}

/* Header Styles */
.main-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    height: 4.2rem;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    align-items: flex-end;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 32px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    text-decoration: none;
}

.brand h1 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-main);
}

.nav-links {
    display: flex;
    gap: 24px;
}

.nav-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-main);
    text-decoration: none;
    transition: color 0.2s;
}

.nav-link:hover {
    color: var(--primary);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
    justify-content: flex-end;
}

.search-wrapper {
    position: relative;
    width: 100%;
    max-width: 240px;
    display: none;
}

@media (min-width: 640px) {
    .search-wrapper { display: block; }
}

.search-icon {
    position: absolute;
    left: 12rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1.25rem;
    cursor: pointer; /* ← ADICIONAR */
    transition: color 0.2s;
}

.search-icon:hover {
    color: var(--primary);
}

.search-input {
    width: 100%;
    height: 40px;
    padding: 0 16px 0 40px;
    border-radius: 8px;
    border: none;
    background: rgb(109 106 205 / 27%);
    font-size: 0.875rem;
    outline: none;
}

.btn-login {
    background: var(--primary);
    color: white;
    font-weight: 700;
    height: 40px;
    padding: 0 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.875rem;
}

/* Hero Section */
.hero-section {
    margin-bottom: 48px;
    margin-top: 32px;
}

.hero-banner {
    width: 100%;
    aspect-ratio: 21/9;
    min-height: 400px;
    border-radius: var(--radius-xl);
    overflow: hidden;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    position: relative;
}

.hero-content {
    padding: 48px;
    max-width: 640px;
    z-index: 1;
}

.hero-title {
    color: white;
    font-size: clamp(2.5rem, 5vw, 3.75rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 16px;
}

.hero-text {
    color: #e5e7eb;
    font-size: 1.125rem;
    margin-bottom: 32px;
}

.hero-btns {
    display: flex;
    gap: 16px;
}

.btn-primary {
    background: var(--primary);
    color: white;
    padding: 12px 32px;
    border-radius: 8px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: transform 0.2s;
}

.btn-primary:hover { transform: scale(1.05); }

.btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 12px 32px;
    border-radius: 8px;
    font-weight: 700;
    border: 2px solid white;
    cursor: pointer;
    backdrop-filter: blur(8px);
    transition: all 0.2s;
}

.btn-secondary:hover {
    background: white;
    color: var(--text-main);
}

/* Main Layout */
.main-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
    margin-bottom: 64px;
}

@media (max-width: 1024px) {
    .main-layout {
        grid-template-columns: 1fr;
    }
}

/* Featured Section */
.featured-section {
    margin-bottom: 48px;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
}

.section-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
}

.featured-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    background: white;
    border-radius: var(--radius-xl);
    padding: 32px;
    border: 1px solid var(--border-color);
}

@media (max-width: 768px) {
    .featured-card {
        grid-template-columns: 1fr;
    }
}

.featured-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.badge-premium {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: inline-block;
    padding: 6px 16px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 16px;
    width: fit-content;
}

.featured-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.2;
}

.featured-desc {
    color: var(--gray-text);
    margin-bottom: 24px;
    line-height: 1.6;
}

.tag-group {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
}

.tag {
    background: var(--gray-light);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
}

.btn-download {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    width: fit-content;
    transition: transform 0.2s;
}

.btn-download:hover {
    transform: scale(1.05);
}

.featured-image {
    background-size: cover;
    background-position: center;
    border-radius: var(--radius-lg);
    min-height: 300px;
}

/* Posts Grid */
.latest-posts {
    margin-bottom: 48px;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.post-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
}

.post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.post-thumb {
    width: 100%;
    aspect-ratio: 16/9;
    background-size: cover;
    background-position: center;
}

.post-body {
    padding: 20px;
}

.post-category {
    background: var(--primary);
    color: white;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 12px;
}

.post-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.3;
}

.post-excerpt {
    color: var(--gray-text);
    font-size: 0.875rem;
    margin-bottom: 16px;
    line-height: 1.5;
}

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

.post-date {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--gray-text);
    font-size: 0.75rem;
}

.read-more {
    color: var(--primary);
    font-weight: 700;
    font-size: 0.875rem;
}

/* Sidebar */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

@media (max-width: 1024px) {
    .sidebar {
        padding: 0 1rem;
    }
}

.sidebar-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 4px;
    border: 1px solid var(--border-color);
}

.sidebar-card h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.125rem;
    margin-bottom: 20px;
}

.category-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.category-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-main);
    transition: background 0.2s;
}

.category-item:hover {
    background: var(--gray-light);
}

.category-name {
    font-size: 0.875rem;
    font-weight: 500;
}

.category-count {
    background: var(--gray-light);
    color: var(--gray-text);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
}

.ad-placeholder {
    background: var(--gray-light);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--gray-text);
    border: 2px dashed #d1d5db;
}

.ad-top {
    height: 250px;
}

.ad-sticky {
    height: 600px;
    position: sticky;
    top: 80px;
}

.ad-label {
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 8px;
    text-transform: uppercase;
}

/* Newsletter Section */
.newsletter-section {
    position: relative;
    background: linear-gradient(135deg, var(--primary) 0%, #1e40af 100%);
    border-radius: var(--radius-xl);
    padding: 64px 48px;
    margin-bottom: 64px;
    overflow: hidden;
}

.newsletter-bg {
    position: absolute;
    inset: 0;
    opacity: 0.1;
    background-image: 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='%23ffffff' fill-opacity='1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.newsletter-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-icon {
    font-size: 48px;
    color: white;
    margin-bottom: 16px;
}

.newsletter-title {
    color: white;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.newsletter-text {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 32px;
    line-height: 1.6;
}

.newsletter-form {
    display: flex;
    gap: 12px;
    max-width: 480px;
    margin: 0 auto;
}

@media (max-width: 640px) {
    .newsletter-form {
        flex-direction: column;
    }
}

.newsletter-input {
    flex: 1;
    height: 48px;
    padding: 0 20px;
    border-radius: 8px;
    border: none;
    font-size: 1rem;
    outline: none;
}

.btn-subscribe {
    background: white;
    color: var(--primary);
    font-weight: 700;
    padding: 0 32px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    white-space: nowrap;
    transition: transform 0.2s;
}

.btn-subscribe:hover {
    transform: scale(1.05);
}

/* Footer */
.main-footer {
    background: var(--bg-dark);
    color: white;
    padding: 64px 0 32px;
}

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

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

.footer-column h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s;
}

.footer-link:hover {
    color: white;
}

.social-icons {
    display: flex;
    gap: 12px;
}

.social-btn {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.2s;
}

.social-btn:hover {
    background: var(--primary);
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
}

/* WordPress Core Classes */
.alignleft {
    float: left;
    margin-right: 1.5em;
    margin-bottom: 1em;
}

.alignright {
    float: right;
    margin-left: 1.5em;
    margin-bottom: 1em;
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.wp-caption {
    max-width: 100%;
}

.wp-caption-text {
    font-size: 0.875rem;
    color: var(--gray-text);
    text-align: center;
    margin-top: 0.5em;
}

.sticky {
    /* Estilo para posts fixos */
}

.bypostauthor {
    /* Estilo para autor do post */
}

.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

/* Single Post Styles */
.single-post .hero-image {
    width: 100%;
    height: 400px;
    border-radius: var(--radius-xl);
    background-size: cover;
    background-position: center;
    margin-bottom: 2rem;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
}

@media (min-width: 768px) {
    .single-post .hero-image { height: 500px; }
}

.single-post .breadcrumbs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--gray-text);
    margin-bottom: 1.5rem;
}

.single-post .breadcrumbs a:hover {
    color: var(--primary);
}

.single-post .breadcrumbs .separator {
    color: var(--gray-text);
}

.single-post .breadcrumbs .current {
    color: var(--text-main);
    font-weight: 500;
}

.single-post h1.entry-title {
    font-size: 2.25rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .single-post h1.entry-title { font-size: 3rem; }
}

.single-post .entry-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.5rem;
    padding-bottom: 2rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--border-color);
    font-size: 0.875rem;
    color: var(--gray-text);
}

.single-post .entry-meta .meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.single-post .author-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.single-post .author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
}

.single-post .author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.single-post .author-name {
    font-weight: 700;
    color: var(--text-main);
}

/* Content Styles */
.single-post .entry-content {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: #374151;
}

.single-post .entry-content h2 {
    font-size: 1.875rem;
    font-weight: 700;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.single-post .entry-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.single-post .entry-content p {
    margin-bottom: 1.5rem;
}

.single-post .entry-content ul,
.single-post .entry-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.single-post .entry-content li {
    margin-bottom: 0.5rem;
    line-height: 1.7;
}

.single-post .entry-content blockquote {
    border-left: 4px solid var(--primary);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: var(--gray-text);
}

.single-post .entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    margin: 2rem 0;
}

/* Info Box */
.info-box {
    background: #eff6ff;
    border-left: 4px solid var(--primary);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    margin: 2rem 0;
}

.info-box h4 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--primary);
}

.info-box p {
    margin-bottom: 0.5rem;
    color: #1e40af;
}

/* Comparison Table */
.comparison-table-wrapper {
    overflow-x: auto;
    margin: 2rem 0;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.comparison-table thead {
    background: var(--gray-light);
}

.comparison-table th,
.comparison-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.comparison-table th {
    font-weight: 700;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-main);
}

.comparison-table .row-label {
    font-weight: 600;
    color: var(--text-main);
}

.comparison-table .status-low {
    color: #dc2626;
}

.comparison-table .status-medium {
    color: #f59e0b;
}

.comparison-table .status-high {
    color: #059669;
}

/* Share Section */
.share-section {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem 0;
    margin: 2rem 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.share-title {
    font-weight: 700;
    color: var(--text-main);
}

.share-buttons {
    display: flex;
    gap: 0.5rem;
}

.share-btn {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-lg);
    border: none;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s;
}

.share-btn:hover {
    transform: translateY(-2px);
}

/* Author Widget */
.author-widget {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: var(--radius-xl);
    padding: 2rem;
    text-align: center;
}

.author-widget .author-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 1rem;
    background-size: cover;
    background-position: center;
    border: 4px solid white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.author-widget h5 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.author-widget .author-bio {
    font-size: 0.875rem;
    margin-bottom: 1rem;
    opacity: 0.95;
    line-height: 1.6;
}

.author-widget .social-links {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
}

.author-widget .social-links a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: background 0.2s;
}

.author-widget .social-links a:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Search Widget */
.search-widget .input-wrapper {
    position: relative;
}

.search-widget input {
    width: 100%;
    padding: 0.75rem 3rem 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    font-size: 0.875rem;
    background: var(--gray-light);
}

.search-widget .search-btn-icon {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-text);
    cursor: pointer;
}

/* Offers Widget */
.offers-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.offer-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1rem;
}

.offer-image-container {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    margin-bottom: 0.75rem;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.offer-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.offer-discount {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: #dc2626;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
}

.offer-title {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.4;
    min-height: 2.8em;
}

.offer-price-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.old-price {
    font-size: 0.75rem;
    color: var(--gray-text);
    text-decoration: line-through;
}

.new-price {
    font-size: 1rem;
    font-weight: 700;
    color: #059669;
}

/* Related Posts */
.related-posts {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 2px solid var(--border-color);
}

.related-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.view-all {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--primary);
    font-weight: 700;
    font-size: 0.875rem;
}

.view-all:hover {
    text-decoration: underline;
}

/* Post Navigation */
.post-navigation {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin: 3rem 0;
    padding: 2rem 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.post-navigation a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    font-weight: 700;
    font-size: 0.875rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-lg);
    background: var(--gray-light);
    transition: all 0.2s;
}

.post-navigation a:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

/* ========================================
   SEARCH & ARCHIVE HORIZONTAL CARDS
   ======================================== */

.post-card-horizontal {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 1.5rem;
    background: var(--white);
    border-radius: var(--radius-xl);
    border: 1px solid #f1f5f9;
    margin-bottom: 2rem;
    transition: all 0.2s;
}

.post-card-horizontal:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transform: translateY(-2px);
}

@media (min-width: 768px) {
    .post-card-horizontal {
        flex-direction: row;
    }
}

.post-card-horizontal .post-thumb {
    width: 100%;
    height: 192px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    flex-shrink: 0;
    background: #f3f4f6;
}

@media (min-width: 768px) {
    .post-card-horizontal .post-thumb {
        width: 256px;
        height: auto;
    }
}

.post-card-horizontal .post-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

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

.post-card-horizontal .post-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
}

.post-meta-inline {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.category-tag-inline {
    background: rgba(43, 140, 238, 0.1);
    color: var(--primary);
    font-size: 10px;
    font-weight: 700;
    padding: 0.25rem 0.5rem;
    border-radius: 999px;
    text-transform: uppercase;
}

.post-date-inline {
    font-size: 0.75rem;
    color: #94a3b8;
}

.post-title-horizontal {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.post-title-horizontal a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.post-title-horizontal a:hover {
    color: var(--primary);
}

.post-excerpt-horizontal {
    font-size: 0.875rem;
    color: #4b5563;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.read-more-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 0.2s;
}

.read-more-link:hover {
    gap: 0.75rem;
}

/* Breadcrumbs */
.breadcrumb-nav {
    margin-bottom: 1.5rem;
}

.breadcrumb-list {
    display: flex;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    color: var(--gray-text);
    list-style: none;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
}

.breadcrumb-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.breadcrumb-list a {
    color: inherit;
    text-decoration: none;
}

.breadcrumb-list a:hover {
    color: var(--primary);
}

.breadcrumb-list .current {
    color: var(--primary);
    font-weight: 700;
}
/* ========================================
   OFERTAS & CUPONS PAGE
   ======================================== */

/* Hero Banner de Ofertas */
.ofertas-hero {
    background: linear-gradient(135deg, var(--primary) 0%, #1e40af 100%);
    color: white;
    padding: 4rem 0;
    margin-bottom: 3rem;
    border-radius: var(--radius-xl);
    position: relative;
    overflow: hidden;
}

.ofertas-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 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='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.1;
}

.ofertas-hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.ofertas-hero h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 900;
    margin-bottom: 1rem;
}

.ofertas-hero p {
    font-size: 1.125rem;
    opacity: 0.95;
    margin-bottom: 2rem;
}

/* Cupom Destaque */
.featured-coupon {
    background: rgba(255, 255, 255, 0.95);
    color: var(--text-main);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    max-width: 500px;
    margin: 0 auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.coupon-display {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.coupon-code-display {
    flex: 1;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-family: monospace;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem 0 0 0.5rem;
    font-size: 1.25rem;
    font-weight: 700;
    text-align: center;
}

.copy-btn {
    background: var(--primary);
    border: none;
    padding: 0.75rem 1rem;
    border-radius: 0 0.5rem 0.5rem 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    color: white;
    transition: all 0.2s;
}

.copy-btn:hover {
    background: #1e40af;
}

.btn-white {
    background: white;
    color: var(--text-main);
    padding: 0.875rem 2rem;
    text-decoration: none;
    border-radius: 0.5rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.btn-white:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

/* Grid de Ofertas */
.offer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 4rem;
}

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

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

/* Card de Oferta */
.offer-card-full {
    background: white;
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid rgba(43, 140, 238, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.offer-card-full:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.card-image {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: #f3f4f6;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

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

.discount-tag {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    padding: 0.375rem 0.875rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    color: white;
    z-index: 1;
}

.tag-red {
    background: #ef4444;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.tag-blue {
    background: var(--primary);
    box-shadow: 0 4px 12px rgba(43, 140, 238, 0.3);
}

.card-body {
    padding: 1.25rem;
}

.store-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.store-info p {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--gray-text);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.card-body h3 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-body h3 a {
    color: inherit;
    text-decoration: none;
}

.card-body h3 a:hover {
    color: var(--primary);
}

.price-row {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.current-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.old-price {
    text-decoration: line-through;
    color: var(--gray-text);
    font-size: 0.875rem;
}

.coupon-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(43, 140, 238, 0.05);
    border: 1px dashed rgba(43, 140, 238, 0.3);
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    margin-bottom: 0.75rem;
}

.coupon-row span {
    font-family: monospace;
    font-weight: 700;
    color: var(--primary);
    font-size: 0.875rem;
}

.coupon-row button {
    background: none;
    border: none;
    color: var(--primary);
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    transition: background 0.2s;
}

.coupon-row button:hover {
    background: rgba(43, 140, 238, 0.1);
}

.btn-full {
    width: 100%;
    padding: 0.75rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    text-decoration: none;
    display: block;
}

.btn-full:hover {
    background: #1e40af;
    transform: translateY(-1px);
}

/* Seção "Como Usar" */
.how-to-section {
    max-width: 48rem;
    margin: 0 auto 4rem;
    padding: 2rem;
    background: white;
    border-radius: var(--radius-xl);
    border: 1px solid rgba(43, 140, 238, 0.1);
}

.how-to-section h2 {
    text-align: center;
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: 2rem;
}

.step-card {
    background: rgba(43, 140, 238, 0.03);
    padding: 1.25rem;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(43, 140, 238, 0.1);
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.step-icon {
    background: rgba(43, 140, 238, 0.1);
    color: var(--primary);
    padding: 0.75rem;
    border-radius: 0.5rem;
    flex-shrink: 0;
}

.step-text h4 {
    font-weight: 700;
    margin-bottom: 0.25rem;
    font-size: 1rem;
}

.step-text p {
    font-size: 0.875rem;
    color: var(--gray-text);
    line-height: 1.5;
}

/* Badge de Expirado */
.expired-badge {
    background: #ef4444;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    display: inline-block;
    margin-top: 0.5rem;
}

.offer-card-full.expired {
    opacity: 0.6;
    pointer-events: none;
}

.offer-card-full.expired::after {
    content: 'EXPIRADO';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-15deg);
    background: rgba(239, 68, 68, 0.95);
    color: white;
    padding: 1rem 3rem;
    font-size: 1.5rem;
    font-weight: 900;
    border-radius: 0.5rem;
    z-index: 10;
}

/* Filtros de Categorias */
.filter-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-tab {
    padding: 0.625rem 1.25rem;
    border: 2px solid rgba(43, 140, 238, 0.2);
    border-radius: 999px;
    background: white;
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.filter-tab:hover,
.filter-tab.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}
/* Badge de desconto */
.offer-discount {
    background: #dc2626; /* Vermelho */
}

/* Preço promocional */
.new-price {
    color: #059669; /* Verde */
}

/* Botão */
.offer-card .btn-primary {
    background: var(--primary, #2b8cee); /* Azul do tema */
}
.offer-image-container {
    aspect-ratio: 1; /* Quadrado */
    /* ou */
    aspect-ratio: 4/3; /* Retangular */
}
.nav-links li{    
list-style-type: none; 
}
.nav-links li a{
    text-decoration: none!important;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-main);   
    transition: color 0.2s;
}
.nav-link:hover a{
    color: var(--primary);
}




/* ========================================
   MOBILE MENU (HAMBURGUER)
   ======================================== */

.mobile-menu-toggle {
    display: block;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: var(--text-main);
}

@media (min-width: 1024px) {
    .mobile-menu-toggle {
        display: none;
    }
}

.mobile-menu-toggle .material-symbols-outlined {
    font-size: 28px;
}

/* Overlay do menu mobile */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    display: none;
    backdrop-filter: blur(4px);
}

.mobile-menu-overlay.active {
    display: block;
}

/* Menu mobile lateral */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: white;
    z-index: 1000;
    transition: right 0.3s ease;
    box-shadow: -4px 0 12px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.mobile-menu-close {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-main);
    padding: 0.5rem;
}

.mobile-menu-close .material-symbols-outlined {
    font-size: 28px;
}

.mobile-menu-nav {
    padding: 1.5rem;
}

.mobile-menu-nav a {
    display: block;
    padding: 0.875rem 1rem;
    color: var(--text-main);
    text-decoration: none;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.2s;
    margin-bottom: 0.5rem;
}

.mobile-menu-nav a:hover,
.mobile-menu-nav a.current-menu-item {
    background: rgba(43, 140, 238, 0.1);
    color: var(--primary);
}

/* Busca no menu mobile */
.mobile-search {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.mobile-search form {
    position: relative;
}

.mobile-search input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.875rem;
}

.mobile-search .search-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1.25rem;
}

.main-nav {
    display: none; /* ← Escondido por padrão (mobile) */
    align-items: center;
    gap: 2rem;
}
.hero-btns a{
    text-decoration: none;
}
@media (max-width: 1024px) {
    nav.nav-links {
        display: none; /* ← Aparece apenas no desktop */
         align-items: center;
          gap: 2rem;
    }

    .newsletter-input {
    flex: auto;
    }
.btn-subscribe {
padding: 1rem;
}

.hero-btns a{
    padding: 0.75rem 1rem;
    text-decoration: none;
}

.hero-banner {
    min-height: 18rem;
}
.hero-section p.hero-text , .ofertas-hero-content p{
    display: none;
}
.mobile-menu-nav li{
 list-style: none;
}
}


/* ========================================
   PAGINAÇÃO
   ======================================== */

.pagination-nav {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
}

.pagination-nav ul {
    display: flex;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
    align-items: center;
}

.pagination-nav li {
    margin: 0;
}

.pagination-nav a,
.pagination-nav span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 0.75rem;
    border: 1px solid var(--border-color);
    background: white;
    border-radius: var(--radius-lg);
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
}

.pagination-nav a:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-2px);
}

.pagination-nav .current {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.pagination-nav .dots {
    border: none;
    background: none;
    color: var(--gray-text);
}

.pagination-nav .prev,
.pagination-nav .next {
    font-weight: 400;
}

.pagination-nav .material-symbols-outlined {
    font-size: 20px;
}

@media (max-width: 640px) {
    .pagination-nav ul {
        gap: 0.25rem;
    }
    
    .pagination-nav a,
    .pagination-nav span {
        min-width: 40px;
        height: 40px;
        padding: 0 0.5rem;
        font-size: 0.875rem;
    }
}
