/*
Theme Name: O Sucesso em Casa
Theme URI: https://osucesoemcasa.com/
Author: Seu Nome (Substitua)
Author URI: https://osucesoemcasa.com/
Description: Um tema moderno estilo marketplace para divulgação de produtos e serviços
Version: 2.0 (Marketplace Edition)
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: affiliate, products, modern, marketplace, responsive, sidebar
Text Domain: osucesoemcasa
*/

/* =========================================================================
   RESET E VARIÁVEIS CSS
========================================================================= */

:root {
    --primary-color: #ff6b35;
    --primary-dark: #e85a2a;
    --secondary-color: #004e89;
    --accent-color: #ffd23f;
    --success-color: #00b894;
    --text-dark: #2d3436;
    --text-medium: #636e72;
    --text-light: #b2bec3;
    --border-color: #dfe6e9;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    background-color: var(--bg-light);
    color: var(--text-dark);
    font-size: 15px;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.2s ease;
}

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    height: auto;
}

/* =========================================================================
   ESTRUTURA PRINCIPAL
========================================================================= */

.site {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 20px;
    background-color: transparent;
    border: none;
    box-shadow: none;
}

#content {
    flex: 1;
    padding: 0;
}

/* =========================================================================
   CABEÇALHO MODERNO ESTILO MARKETPLACE
========================================================================= */

#masthead {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 0;
    border-bottom: none;
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-flex-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    gap: 30px;
}

.site-branding {
    flex-shrink: 0;
}

.site-title {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.site-title a {
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.site-title a:hover {
    opacity: 0.9;
}

.site-description {
    margin: 2px 0 0 0;
    font-size: 0.85rem;
    opacity: 0.9;
    font-weight: 300;
}

/* =========================================================================
   BUSCA ESTILO MARKETPLACE
========================================================================= */

.search-form-container {
    flex-shrink: 0;
    width: 100%;
    max-width: 500px;
    margin: 0;
}

.search-form {
    display: flex;
    background: white;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border: none;
}

.search-field {
    flex: 1;
    border: none;
    padding: 14px 20px;
    font-size: 0.95rem;
    outline: none;
    background: transparent;
}

.search-field::placeholder {
    color: var(--text-light);
}

.search-submit {
    background-color: var(--secondary-color);
    color: white;
    border: none;
    padding: 0 28px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.search-submit:hover {
    background-color: #003d6b;
    transform: scale(1.02);
}

/* =========================================================================
   LAYOUT COM SIDEBAR MODERNO
========================================================================= */

.archive-container-grid {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 30px;
    padding: 30px 0;
    max-width: 1320px;
    margin: 0 auto;
}

/* Inverte a ordem: conteúdo primeiro, sidebar depois */
.content-area {
    order: 1;
}

.widget-area {
    order: 2;
}

.content-area {
    min-width: 0;
}

/* =========================================================================
   SIDEBAR ESTILO MARKETPLACE
========================================================================= */

.widget-area {
    position: sticky;
    top: 90px;
    align-self: start;
}

.widget {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.widget-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 16px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--bg-light);
    display: flex;
    align-items: center;
    gap: 8px;
}

.widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget ul li {
    margin-bottom: 0;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
    border-bottom: none;
}

.widget ul li:hover {
    background-color: var(--bg-light);
}

.widget ul li a {
    color: var(--text-medium);
    font-size: 0.92rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.widget ul li a:hover {
    color: var(--primary-color);
}

/* Contador de produtos nas categorias */
.widget ul li .count {
    background-color: var(--bg-light);
    color: var(--text-medium);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* =========================================================================
   CABEÇALHO DA PÁGINA
========================================================================= */

.page-header {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    padding: 24px 28px;
    margin-bottom: 24px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.page-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* =========================================================================
   GRID DE PRODUTOS ESTILO MARKETPLACE
========================================================================= */

.produtos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

/* Garante que teremos pelo menos 3 colunas em telas grandes */
@media (min-width: 1200px) {
    .produtos-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 900px) and (max-width: 1199px) {
    .produtos-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* =========================================================================
   CARD DO PRODUTO - DESIGN MODERNO
========================================================================= */

.produto-card {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: var(--shadow-sm);
}

.produto-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

/* Badge de categoria flutuante */
.produto-card::before {
    content: '';
    position: absolute;
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    z-index: 2;
    box-shadow: var(--shadow-sm);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.produto-card:hover::before {
    opacity: 1;
}

/* =========================================================================
   IMAGEM DO PRODUTO
========================================================================= */

.produto-imagem {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background-color: var(--bg-light);
    position: relative;
}

.produto-imagem a {
    display: block;
    height: 100%;
    width: 100%;
}

.produto-imagem img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.produto-card:hover .produto-imagem img {
    transform: scale(1.08);
}

.placeholder-imagem {
    background: linear-gradient(135deg, var(--bg-light) 0%, #e8eef3 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-weight: 600;
    font-size: 0.85rem;
}

/* =========================================================================
   CONTEÚDO DO CARD
========================================================================= */

.produto-card-conteudo {
    padding: 18px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Categorias */
.produto-categorias {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.produto-categorias a {
    color: var(--primary-color);
}

.produto-categorias a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Título */
.produto-titulo {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.4;
    color: var(--text-dark);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.produto-titulo a {
    color: var(--text-dark);
}

.produto-titulo a:hover {
    color: var(--primary-color);
}

/* Preço */
.produto-preco {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--success-color);
    margin: 8px 0;
    letter-spacing: -0.5px;
}

/* Resumo */
.produto-resumo {
    font-size: 0.88rem;
    color: var(--text-medium);
    line-height: 1.5;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 12px;
}

/* Botão */
.produto-link-wrapper {
    margin-top: auto;
}

.botao-produto {
    display: block;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 12px 20px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3);
}

.botao-produto:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.4);
    color: white;
}

/* =========================================================================
   PÁGINA SINGLE PRODUTO
========================================================================= */

.single-produto-container {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 40px;
    margin: 30px auto;
    max-width: 900px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
}

.produto-detalhe-titulo {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 24px;
    line-height: 1.3;
}

.produto-detalhe-imagem {
    margin-bottom: 30px;
    text-align: center;
    border-radius: var(--radius-md);
    overflow: hidden;
}

.produto-detalhe-imagem img {
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
}

.produto-detalhe-link {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-md);
    padding: 30px;
    text-align: center;
    margin-bottom: 35px;
}

.botao-acao {
    font-size: 1.15rem;
    padding: 16px 40px;
    background: linear-gradient(135deg, var(--success-color) 0%, #00a080 100%);
    border-radius: var(--radius-md);
    box-shadow: 0 4px 16px rgba(0, 184, 148, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.botao-acao:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 184, 148, 0.4);
    background: linear-gradient(135deg, #00a080 0%, #008f70 100%);
    color: white;
}

.produto-detalhe-descricao {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-dark);
}

.produto-detalhe-descricao p {
    margin-bottom: 1.5em;
}

.produto-detalhe-descricao h2,
.produto-detalhe-descricao h3 {
    margin-top: 2em;
    margin-bottom: 1em;
    color: var(--text-dark);
    font-weight: 700;
}

/* =========================================================================
   PAGINAÇÃO ESTILO MARKETPLACE
========================================================================= */

.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
    padding: 20px 0;
}

.pagination .page-numbers {
    min-width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-dark);
    font-weight: 600;
    transition: all 0.2s ease;
}

.pagination .page-numbers:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.pagination .page-numbers.current {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* =========================================================================
   RODAPÉ MODERNO ESTILO MARKETPLACE
========================================================================= */

#colophon {
    background: var(--text-dark);
    color: white;
    padding: 0;
    margin-top: 60px;
    border-top: none;
}

/* Conteúdo principal do rodapé */
.footer-content {
    background: #2d3436;
    padding: 50px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
}

/* Colunas do rodapé */
.footer-coluna {
    display: flex;
    flex-direction: column;
}

.footer-titulo {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 15px 0;
    color: white;
}

.footer-descricao {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    font-size: 0.95rem;
    margin: 0;
}

.footer-subtitulo {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 20px 0;
    color: white;
    position: relative;
    padding-bottom: 10px;
}

.footer-subtitulo::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}

/* Links do rodapé */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.footer-links a:hover {
    color: white;
    padding-left: 5px;
}

.cat-count {
    font-size: 0.8rem;
    opacity: 0.6;
}

/* Redes Sociais */
.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.social-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

/* Barra inferior do rodapé */
.footer-bottom {
    background: #1e272e;
    padding: 20px 0;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.copyright {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

.copyright span {
    opacity: 0.7;
}

/* Badges de confiança */
.footer-badges {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.badge-seguro,
.badge-entrega {
    font-size: 0.85rem;
    padding: 6px 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    color: white;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* Responsividade do rodapé */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .footer-content {
        padding: 40px 0 30px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-badges {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .footer-titulo {
        font-size: 1.3rem;
    }
    
    .footer-subtitulo {
        font-size: 1rem;
    }
    
    .footer-badges {
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }
    
    .badge-seguro,
    .badge-entrega {
        width: 100%;
        justify-content: center;
    }
}

/* =========================================================================
   RESPONSIVIDADE
========================================================================= */

@media (max-width: 1024px) {
    .archive-container-grid {
        grid-template-columns: 1fr 240px;
        gap: 20px;
    }
    
    .produtos-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 16px;
    }
}

@media (max-width: 860px) {
    .archive-container-grid {
        grid-template-columns: 1fr;
    }
    
    .content-area {
        order: 2;
    }
    
    .widget-area {
        order: 1;
        position: static;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 16px;
        margin-bottom: 30px;
    }
    
    .widget {
        margin-bottom: 0;
    }
    
    .produtos-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 768px) {
    .header-flex-container {
        flex-direction: column;
        gap: 16px;
        padding: 12px 0;
    }
    
    .search-form-container {
        width: 100%;
        max-width: 100%;
    }
    
    .produtos-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px;
    }
    
    .single-produto-container {
        padding: 24px;
        margin: 16px;
    }
    
    .produto-detalhe-titulo {
        font-size: 1.6rem;
    }
}

@media (max-width: 480px) {
    .site-title {
        font-size: 1.4rem;
    }
    
    .produtos-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    .produto-card-conteudo {
        padding: 14px;
    }
    
    .produto-titulo {
        font-size: 0.92rem;
    }
    
    .produto-preco {
        font-size: 1.2rem;
    }
}

/* =========================================================================
   ANIMAÇÕES E EFEITOS ESPECIAIS
========================================================================= */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.produto-card {
    animation: fadeInUp 0.4s ease-out;
}

/* Efeito de shimmer para loading */
@keyframes shimmer {
    0% { background-position: -1000px 0; }
    100% { background-position: 1000px 0; }
}

.loading-shimmer {
    background: linear-gradient(90deg, var(--bg-light) 0px, #e0e0e0 40px, var(--bg-light) 80px);
    background-size: 1000px 100%;
    animation: shimmer 1.5s infinite;
}

/* =========================================================================
   PÁGINA INICIAL MARKETPLACE (front-page.php)
========================================================================= */

.homepage-marketplace {
    background: var(--bg-light);
}

/* Container que ocupa toda a largura */
.container-full {
    width: 100%;
    max-width: 100%;
    padding: 0;
    margin: 0;
}

/* Banner Hero Principal */
.hero-banner {
    margin-bottom: 40px;
    background: var(--bg-white);
}

.banner-slider {
    height: 400px;
    position: relative;
    overflow: hidden;
}

.banner-slide {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
}

.banner-content {
    text-align: center;
    color: white;
    padding: 40px;
    max-width: 600px;
}

.banner-content h2 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.banner-content p {
    font-size: 1.3rem;
    margin-bottom: 30px;
    text-shadow: 0 1px 5px rgba(0,0,0,0.2);
}

.btn-banner {
    display: inline-block;
    background: white;
    color: var(--primary-color);
    padding: 16px 40px;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.btn-banner:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(0,0,0,0.3);
    color: var(--primary-color);
}

/* Cabeçalho das Seções */
.secao-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.secao-titulo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
}

.ver-todos {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.ver-todos:hover {
    color: var(--primary-dark);
    transform: translateX(5px);
}

/* Espaçamento entre seções */
.homepage-marketplace section {
    padding: 50px 0;
}

.homepage-marketplace .container {
    background: transparent;
}

/* ========== SEÇÃO: Navegue por Categorias ========== */
.secao-categorias {
    background: var(--bg-white);
}

.categorias-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 20px;
}

.categoria-card {
    background: var(--bg-light);
    border-radius: var(--radius-md);
    padding: 25px 15px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    text-decoration: none;
}

.categoria-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.categoria-icone {
    font-size: 3rem;
    margin-bottom: 12px;
}

.categoria-card h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 8px 0;
}

.categoria-count {
    font-size: 0.85rem;
    color: var(--text-medium);
}

/* ========== SEÇÃO: Produtos em Carrossel ========== */
.produtos-carousel {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 10px;
}

.produto-card-home {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.produto-card-home:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.produto-link {
    display: block;
    text-decoration: none;
}

.produto-card-home .produto-imagem {
    width: 100%;
    aspect-ratio: 1/1;
    overflow: hidden;
    background: var(--bg-light);
}

.produto-card-home .produto-imagem img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.produto-card-home:hover .produto-imagem img {
    transform: scale(1.1);
}

.produto-card-home .produto-imagem.placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 0.9rem;
}

.produto-info {
    padding: 15px;
}

.produto-nome {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0 0 8px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

.produto-card-home .produto-preco {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--success-color);
    margin: 0;
}

/* ========== SEÇÃO: Produtos em Grid ========== */
.produtos-grid-home {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.produto-card-grid {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.produto-card-grid:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.produto-link-completo {
    display: block;
    text-decoration: none;
}

.produto-thumb {
    width: 100%;
    aspect-ratio: 1/1;
    overflow: hidden;
    background: var(--bg-light);
}

.produto-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.produto-card-grid:hover .produto-thumb img {
    transform: scale(1.08);
}

.produto-thumb.placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

.produto-detalhes {
    padding: 18px;
}

.produto-categoria {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.produto-titulo-grid {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 8px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

.produto-preco-grid {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--success-color);
    margin: 10px 0;
}

.btn-ver-produto {
    display: inline-block;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    margin-top: 8px;
}

/* ========== SEÇÃO: Explore (Cards Grandes) ========== */
.explore-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.explore-card {
    display: block;
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    aspect-ratio: 16/9;
    text-decoration: none;
}

.explore-imagem {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    position: relative;
    transition: transform 0.3s ease;
}

.explore-card:hover .explore-imagem {
    transform: scale(1.05);
}

.explore-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 100%);
    padding: 30px;
    color: white;
}

.explore-overlay h3 {
    font-size: 1.6rem;
    font-weight: 700;
    margin: 0 0 8px 0;
}

.explore-count {
    font-size: 0.95rem;
    opacity: 0.9;
}

/* Mensagens vazias */
.sem-categorias,
.sem-produtos {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    background: var(--bg-white);
    border-radius: var(--radius-md);
    border: 2px dashed var(--border-color);
}

.sem-categorias p,
.sem-produtos p {
    font-size: 1.1rem;
    color: var(--text-medium);
    margin: 0;
}

.sem-produtos a {
    color: var(--primary-color);
    font-weight: 600;
}

/* Responsividade da Home */
@media (max-width: 768px) {
    .banner-slide {
        height: 300px;
    }
    
    .banner-content h2 {
        font-size: 2rem;
    }
    
    .banner-content p {
        font-size: 1rem;
    }
    
    .secao-titulo {
        font-size: 1.4rem;
    }
    
    .categorias-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 12px;
    }
    
    .produtos-carousel {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 12px;
    }
    
    .produtos-grid-home {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .explore-grid {
        grid-template-columns: 1fr;
    }
    
    .homepage-marketplace section {
        padding: 30px 0;
    }
}

/* =========================================================================
   UTILITÁRIOS
========================================================================= */

.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

/* Badge de destaque */
.badge-destaque {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--accent-color);
    color: var(--text-dark);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 2;
    box-shadow: var(--shadow-sm);
}

/* Badge de novo */
.badge-novo {
    background: var(--success-color);
    color: white;
}