/*
Theme Name: Affiliate Manager Theme
Theme URI: https://seusite.com.br/
Author: Bernardo Collet
Description: Tema premium para portais de afiliados e curadoria de ofertas.
Version: 1.0
Text Domain: affiliate-manager
*/

:root {
    /* Brand Colors */
    --king-orange: #FF5400;
    --king-orange-glow: rgba(255, 84, 0, 0.2);
    --king-dark: #1A1A1B; /* Usado para textos e ícones */
    --king-border-light: rgba(0, 0, 0, 0.06);
    
    /* Support Colors */
    --white: #FFFFFF;
    --gray-soft: #6B7280;
    --whatsapp-green: #25D366;
    
    /* Transitions */
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Global Reset */
body {
    margin: 0;
    background-color: #F9FAFB; /* Fundo do site levemente cinza para destacar o header branco */
    font-family: 'Montserrat', sans-serif;
    -webkit-font-smoothing: antialiased;
    color: var(--king-dark);
}

/* 1. TOP ANNOUNCEMENT BAR (LIGHT) */
.top-announcement {
    background-color: #F3F4F6;
    padding: 10px 0;
    display: flex;
    justify-content: center;
    border-bottom: 1px solid var(--king-border-light);
}

.wa-badge {
    color: #128C7E; /* Verde WhatsApp mais escuro para leitura no fundo claro */
    text-decoration: none;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: var(--transition-smooth);
}

.pulse {
    width: 8px;
    height: 8px;
    background: var(--whatsapp-green);
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4);
    animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4); }
    70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(37, 211, 102, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* 2. MAIN NAVBAR (LIGHT GLASSMORPHISM) */
.navbar {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--king-border-light);
    transition: var(--transition-smooth);
}

.navbar.scrolled {
    padding: 14px 0;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.nav-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* 3. BRANDING / LOGO */
.brand {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
}

.king-icon {
    height: 42px;
}

.brand-text {
    color: var(--king-dark);
    font-weight: 800;
    font-size: 22px;
    letter-spacing: -0.5px;
    text-transform: uppercase;
}

.brand-text span {
    color: var(--king-orange);
    font-weight: 900;
}

/* 4. SEARCH CONTAINER (LIGHT) */
.search-container {
    flex: 1;
    max-width: 580px;
    margin: 0 40px;
}

.search-input-group {
    position: relative;
    background: #F3F4F6;
    border: 1px solid transparent;
    border-radius: 12px;
    transition: var(--transition-smooth);
}

.search-input-group:focus-within {
    background: var(--white);
    border-color: var(--king-orange);
    box-shadow: 0 0 0 4px rgba(255, 84, 0, 0.1);
}

.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #9CA3AF;
}

.search-input-group input {
    width: 100%;
    padding: 14px 50px 14px 48px;
    background: none;
    border: none;
    color: var(--king-dark);
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 500;
    outline: none;
}

.search-shortcut {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--white);
    border: 1px solid var(--king-border-light);
    color: var(--gray-soft);
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
}

/* 5. ACTIONS & BUTTONS */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-link {
    color: var(--gray-soft);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: color 0.3s;
}

.nav-link:hover {
    color: var(--king-dark);
}

.btn-premium {
    position: relative;
    background: var(--king-orange);
    color: var(--white);
    padding: 12px 26px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 800;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.btn-premium:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px var(--king-orange-glow);
}

.btn-glow {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: 0.6s;
}

.btn-premium:hover .btn-glow {
    left: 100%;
}

/* 6. RESPONSIVE DESIGN */
@media (max-width: 1024px) {
    .search-container { display: none; }
}

@media (max-width: 640px) {
    .brand-text { font-size: 18px; }
    .nav-link { display: none; }
}



/* CATEGORY NAVIGATION - FULL WIDTH JUSTIFIED */
.category-nav {
    background-color: var(--king-orange);
    padding: 0;
    position: sticky;
    top: 83px; 
    z-index: 999;
    box-shadow: 0 4px 15px rgba(255, 84, 0, 0.2);
}

.category-container {
    max-width: 1300px; /* Mantém o alinhamento com o logo/busca acima */
    margin: 0 auto;
    padding: 0; /* Removemos o padding lateral para o hover encostar nas bordas se necessário */
}

.category-list {
    list-style: none;
    display: flex;
    justify-content: space-between; /* A mágica acontece aqui: distribui os itens igualmente */
    align-items: center;
    margin: 0;
    padding: 0;
    width: 100%;
}

.category-list li {
    flex: 1; /* Faz cada item da lista crescer igualmente */
    display: flex;
}

/* Ajustes nos Itens para ocupar o espaço do flex-grow */
.cat-item {
    width: 100%; /* Garante que o link ocupe todo o espaço do li */
    text-align: center; /* Centraliza o texto dentro do espaço distribuído */
    text-decoration: none;
    color: rgba(255, 255, 255, 0.9);
    font-size: 12px; /* Reduzi levemente para garantir que caiba tudo em telas menores */
    font-weight: 700;
    padding: 20px 10px; /* Altura generosa de 20px */
    white-space: nowrap;
    transition: all 0.3s ease;
    border: none;
    background: transparent;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: 'Montserrat', sans-serif;
    cursor: pointer;
}

.cat-item:hover {
    color: var(--white);
    background: rgba(0, 0, 0, 0.05);
}

.cat-item.active {
    background: rgba(0, 0, 0, 0.1);
    color: var(--white);
    box-shadow: inset 0 -4px 0 0 var(--white); /* Linha inferior mais espessa para destaque */
}

/* Estilo do botão "Todas" para se destacar no final */
.btn-all-categories {
    background: rgba(0, 0, 0, 0.15) !important;
    font-weight: 800;
}

.btn-all-categories:hover {
    background: rgba(0, 0, 0, 0.25) !important;
}

/* Ajuste Mobile: No celular, o justify-between pode apertar demais, 
   então voltamos para a rolagem lateral */
@media (max-width: 992px) {
    .category-list {
        justify-content: flex-start;
        overflow-x: auto;
        scrollbar-width: none;
    }
    .category-list li {
        flex: none; /* Desativa o crescimento igual no mobile */
    }
    .cat-item {
        padding: 15px 20px;
    }
}

/* Modal Overlay */
.modal-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(15, 15, 16, 0.4);
    backdrop-filter: blur(8px);
    display: none; /* Escondido por padrão */
    justify-content: center;
    align-items: center;
    z-index: 2000;
    padding: 20px;
}

.modal-overlay.active { display: flex; }

/* Modal Content */
.modal-content {
    background: var(--white);
    width: 100%;
    max-width: 900px;
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    position: relative;
    animation: modalSlideUp 0.3s ease-out;
}

@keyframes modalSlideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.modal-header h3 {
    font-size: 20px;
    font-weight: 800;
    color: var(--king-dark);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: -0.5px;
}

.close-modal {
    background: #F3F4F6;
    border: none;
    width: 40px; height: 40px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.close-modal:hover { background: #E5E7EB; }

/* Grid de Categorias */
.modal-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.category-group { display: flex; flex-direction: column; gap: 12px; }

.category-group a {
    text-decoration: none;
    color: var(--gray-soft);
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition-smooth);
}

.category-group a:hover {
    color: var(--king-orange);
    padding-left: 5px;
}

/* Responsivo Modal */
@media (max-width: 768px) {
    .modal-grid { grid-template-columns: repeat(2, 1fr); }
    .modal-content { padding: 25px; }
}




/* CONTENT HEADER & FILTERS */
.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--king-border-light);
}

.breadcrumb {
    font-size: 13px;
    color: var(--gray-soft);
    font-weight: 500;
}

.breadcrumb strong {
    color: var(--king-dark);
    font-weight: 700;
}

.filter-actions {
    display: flex;
    align-items: center;
    gap: 25px;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.filter-group label {
    font-size: 13px;
    font-weight: 700;
    color: var(--king-dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Custom Select Premium */
.premium-select {
    background-color: #F3F4F6;
    border: 1px solid transparent;
    border-radius: 8px;
    padding: 8px 15px;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: var(--king-dark);
    outline: none;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.premium-select:focus {
    border-color: var(--king-orange);
    background-color: var(--white);
    box-shadow: 0 0 0 4px rgba(255, 84, 0, 0.05);
}

/* View Toggle Buttons */
.view-toggle {
    display: flex;
    background: #F3F4F6;
    padding: 4px;
    border-radius: 10px;
    gap: 4px;
}

.view-btn {
    background: transparent;
    border: none;
    padding: 8px;
    border-radius: 8px;
    color: #9CA3AF;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.view-btn:hover {
    color: var(--king-dark);
}

.view-btn.active {
    background: var(--white);
    color: var(--king-orange);
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

/* Ajuste Responsivo */
@media (max-width: 768px) {
    .content-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    .filter-actions {
        width: 100%;
        justify-content: space-between;
    }
}


/* GRID & CONTENT */
.content-container {
    max-width: 1300px;
    margin: 40px auto;
    padding: 0 25px;
}

.offers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

/* THE PREMIUM CARD */
.offer-card {
    background: var(--white);
    border-radius: 20px;
    border: 1px solid var(--king-border-light);
    overflow: hidden;
    transition: var(--transition-smooth);
    position: relative;
    display: flex;
    flex-direction: column;
}

.offer-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border-color: var(--king-orange);
}

/* Card Header */
.card-header {
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: absolute;
    width: 100%;
    box-sizing: border-box;
    z-index: 2;
}

.discount-badge {
    background: var(--king-orange);
    color: var(--white);
    padding: 5px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 800;
}

.wishlist-btn {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(4px);
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    color: #9CA3AF;
    transition: 0.3s;
}

.wishlist-btn:hover { color: #EF4444; background: var(--white); }

/* Image Area */
.card-image {
    padding: 40px 20px 20px 20px;
    background: #FFF;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
}

.card-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Info Area */
.card-info {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.store-name {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--gray-soft);
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.product-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--king-dark);
    margin: 0 0 15px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 42px;
}

/* Pricing Section */
.price-wrapper {
    margin-bottom: 20px;
}

.old-price {
    font-size: 13px;
    color: var(--gray-soft);
    text-decoration: line-through;
    display: block;
    margin-bottom: 2px;
}

.current-price {
    color: var(--king-orange);
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.current-price .currency { font-size: 14px; font-weight: 700; }
.current-price .value { font-size: 26px; font-weight: 900; letter-spacing: -1px; }

/* Footer do Card */
.card-footer {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #F3F4F6;
}

.post-time { font-size: 11px; color: #9CA3AF; font-weight: 500; }

.btn-get-offer {
    text-decoration: none;
    background: var(--king-dark);
    color: var(--white);
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    transition: 0.3s;
}

.btn-get-offer:hover {
    background: var(--king-orange);
    box-shadow: 0 5px 15px var(--king-orange-glow);
}




















/* --- FOOTER PREMIUM LIGHT --- */

.main-footer {
    background-color: var(--white);
    border-top: 1px solid var(--king-border-light);
    padding: 80px 0 0 0;
    margin-top: 100px;
}

.footer-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 25px 60px 25px;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 40px;
}

/* Tipografia e Títulos */
.footer-logo {
    font-size: 24px;
    font-weight: 800;
    color: var(--king-dark);
    margin-bottom: 20px;
    text-transform: uppercase;
}

.footer-logo span { color: var(--king-orange); }

.footer-title {
    font-size: 15px;
    font-weight: 800;
    color: var(--king-dark);
    text-transform: uppercase;
    margin-bottom: 25px;
    letter-spacing: 0.5px;
}

.footer-text, .news-text {
    color: var(--gray-soft);
    font-size: 14px;
    line-height: 1.6;
    font-weight: 500;
}

/* Links */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li { margin-bottom: 12px; }

.footer-links a {
    text-decoration: none;
    color: var(--gray-soft);
    font-size: 14px;
    font-weight: 600;
    transition: var(--transition-smooth);
}

.footer-links a:hover {
    color: var(--king-orange);
    padding-left: 5px;
}

/* Newsletter Premium */
.news-form {
    display: flex;
    background: #F3F4F6;
    padding: 6px;
    border-radius: 10px;
    margin-top: 15px;
    border: 1px solid transparent;
}

.news-form:focus-within {
    border-color: var(--king-orange);
    background: white;
    box-shadow: 0 4px 12px rgba(255, 84, 0, 0.1);
}

.news-form input {
    border: none;
    background: transparent;
    padding: 10px;
    flex: 1;
    font-family: 'Montserrat', sans-serif;
    outline: none;
    font-size: 13px;
}

.news-form button {
    background: var(--king-orange);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0 15px;
    font-weight: 800;
    cursor: pointer;
    transition: 0.3s;
}

.news-form button:hover { background: #E64C00; }

/* Social Buttons */
.social-group {
    display: flex;
    gap: 10px;
    margin-top: 25px;
}

.social-btn {
    background: #F3F4F6;
    color: var(--king-dark);
    text-decoration: none;
    font-size: 10px;
    font-weight: 800;
    padding: 10px 15px;
    border-radius: 8px;
    text-transform: uppercase;
    transition: 0.3s;
}

.social-btn:hover {
    background: var(--king-orange);
    color: white;
    transform: translateY(-3px);
}

/* Copyright Bar */
.footer-bottom {
    background-color: #F9FAFB;
    border-top: 1px solid var(--king-border-light);
    padding: 30px 0;
}

.footer-bottom-content {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #9CA3AF;
    font-weight: 600;
}

.footer-bottom-content span { font-weight: 400; margin-left: 5px; }

/* Responsivo */
@media (max-width: 992px) {
    .footer-container { grid-template-columns: 1fr 1fr; }
    .news-column { grid-column: span 2; }
}

@media (max-width: 600px) {
    .footer-container { grid-template-columns: 1fr; }
    .news-column { grid-column: span 1; }
    .footer-bottom-content { flex-direction: column; gap: 10px; text-align: center; }
}

.social-group {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.social-btn {
    width: 44px;
    height: 44px;
    background: #F3F4F6;
    color: var(--king-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
}

.social-btn svg {
    width: 20px;
    height: 20px;
}

.social-btn:hover {
    background: var(--white);
    color: var(--king-orange);
    border-color: var(--king-orange);
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(255, 84, 0, 0.1);
}

/* Cores específicas no hover para um toque extra */
.social-btn[aria-label="WhatsApp"]:hover { color: #25D366; border-color: #25D366; }
.social-btn[aria-label="Instagram"]:hover { color: #E1306C; border-color: #E1306C; }
.social-btn[aria-label="Telegram"]:hover { color: #0088cc; border-color: #0088cc; }

/* Layout Principal */
.main-layout {
    display: grid;
    grid-template-columns: 280px 1fr; /* Sidebar com 280px fixos */
    gap: 40px;
    align-items: start;
    margin-top: 40px;
}

/* Sidebar Estilizada */
.sidebar-filters {
    position: sticky;
    top: 170px; /* Fixa ao rolar, respeitando o Header + Categoria */
}

.filter-section {
    margin-bottom: 35px;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--king-border-light);
}

.filter-section h4 {
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--king-dark);
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}

.filter-link {
    display: block;
    text-decoration: none;
    color: var(--gray-soft);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
    transition: 0.3s;
}

.filter-link:hover {
    color: var(--king-orange);
    padding-left: 5px;
}

/* Custom Checkbox/Radio */
.check-item {
    display: block;
    position: relative;
    padding-left: 32px;
    margin-bottom: 15px;
    cursor: pointer;
    font-size: 14px;
    color: var(--gray-soft);
    font-weight: 600;
    user-select: none;
}

.check-item input { display: none; }

.checkmark {
    position: absolute;
    top: 0; left: 0;
    height: 20px; width: 20px;
    background-color: #F3F4F6;
    border-radius: 6px;
    transition: 0.3s;
}

.checkmark.circle { border-radius: 50%; }

.check-item:hover input ~ .checkmark { background-color: #E5E7EB; }
.check-item input:checked ~ .checkmark { background-color: var(--king-orange); }

/* Custom Price Input */
.custom-price-filter {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
}

.custom-price-filter input {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid var(--king-border-light);
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    outline: none;
}

.custom-price-filter button {
    background: var(--king-dark);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 8px;
    font-weight: 800;
    cursor: pointer;
    transition: 0.3s;
}

.custom-price-filter button:hover { background: var(--king-orange); }

/* Responsividade */
@media (max-width: 1024px) {
    .main-layout { grid-template-columns: 1fr; }
    .sidebar-filters { display: none; } /* Em mobile filtros viram botões/modais */
}

/* Refinamento da Sidebar para evitar saltos */
.sidebar-filters {
    position: sticky;
    top: 170px;
    height: fit-content; /* Garante que o sticky funcione corretamente no grid */
    max-height: calc(100vh - 190px); /* Evita que a sidebar seja maior que a tela */
    overflow-y: auto; /* Permite scroll interno se houver muitos filtros */
    padding-right: 10px;
}

/* Scrollbar fina para a sidebar (estética minimalist) */
.sidebar-filters::-webkit-scrollbar {
    width: 4px;
}
.sidebar-filters::-webkit-scrollbar-thumb {
    background: var(--king-border-light);
    border-radius: 10px;
}


/* Refinamento da Sidebar para evitar saltos */
.sidebar-filters {
    position: sticky;
    top: 170px;
    height: fit-content; /* Garante que o sticky funcione corretamente no grid */
    max-height: calc(100vh - 190px); /* Evita que a sidebar seja maior que a tela */
    overflow-y: auto; /* Permite scroll interno se houver muitos filtros */
    padding-right: 10px;
}

/* Scrollbar fina para a sidebar (estética minimalist) */
.sidebar-filters::-webkit-scrollbar {
    width: 4px;
}
.sidebar-filters::-webkit-scrollbar-thumb {
    background: var(--king-border-light);
    border-radius: 10px;
}

/* Refinamento da Sidebar para evitar saltos */
.sidebar-filters {
    position: sticky;
    top: 170px;
    height: fit-content; /* Garante que o sticky funcione corretamente no grid */
    max-height: calc(100vh - 190px); /* Evita que a sidebar seja maior que a tela */
    overflow-y: auto; /* Permite scroll interno se houver muitos filtros */
    padding-right: 10px;
}

/* Scrollbar fina para a sidebar (estética minimalist) */
.sidebar-filters::-webkit-scrollbar {
    width: 4px;
}
.sidebar-filters::-webkit-scrollbar-thumb {
    background: var(--king-border-light);
    border-radius: 10px;
}

@media (max-width: 640px) {
    .offers-grid {
        grid-template-columns: repeat(2, 1fr); /* Duas colunas */
        gap: 15px; /* Menos espaço entre cards */
    }

    .card-image {
        height: 140px; /* Menor no mobile */
        padding: 15px;
    }

    .product-title {
        font-size: 13px;
        height: 38px;
    }

    .current-price .value {
        font-size: 20px;
    }

    .btn-get-offer {
        width: 100%;
        text-align: center;
        padding: 10px 5px;
        font-size: 11px;
    }
    
    .card-footer {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 1024px) {
    .sidebar-filters {
        position: fixed;
        top: 0;
        left: -300px; /* Escondido à esquerda */
        width: 280px;
        height: 100vh;
        background: var(--white);
        z-index: 3000;
        padding: 40px 25px;
        transition: var(--transition-smooth);
        box-shadow: 20px 0 50px rgba(0,0,0,0.1);
        display: block !important; /* Força o display que estava none */
    }

    .sidebar-filters.mobile-active {
        left: 0; /* Desliza para dentro */
    }
    
    /* Overlay para escurecer o fundo quando o filtro abrir */
    .sidebar-filters.mobile-active::after {
        content: '';
        position: fixed;
        top: 0; left: 280px;
        width: calc(100vw - 280px);
        height: 100vh;
        background: rgba(0,0,0,0.3);
    }
}

/* COMPONENTES MOBILE ADICIONAIS 
   Para o Ofertas King v1.2
*/

/* 1. Botão de Acionamento de Filtros (Mobile) */
.mobile-filter-trigger {
    display: none; /* Escondido por padrão no Desktop */
    width: 100%;
    background: var(--white);
    border: 1px solid var(--king-border-light);
    border-radius: 12px;
    padding: 14px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 13px;
    color: var(--king-dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 25px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

/* 2. Tab Bar Inferior (Estilo App Nativo) */
.mobile-tab-bar {
    display: none; /* Escondido no Desktop */
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(15px);
    border-top: 1px solid var(--king-border-light);
    display: flex;
    justify-content: space-around;
    padding: 10px 0 calc(env(safe-area-inset-bottom) + 10px); /* Suporte a notch de iPhones */
    z-index: 2500;
}

.tab-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    color: var(--gray-soft);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    transition: 0.3s;
}

.tab-item svg {
    width: 22px;
    height: 22px;
}

.tab-item.active {
    color: var(--king-orange);
}

/* 3. Media Queries de Ajuste Fino */
@media (max-width: 1024px) {
    .mobile-filter-trigger {
        display: flex; /* Aparece apenas no mobile/tablet */
    }

    .mobile-tab-bar {
        display: flex;
    }

    /* Ajuste no footer para não ficar escondido atrás da Tab Bar */
    .main-footer {
        padding-bottom: 80px;
    }
}

/* Ajuste do Drawer (Melhoria do seu bloco anterior) */
@media (max-width: 1024px) {
    .sidebar-filters {
        /* Seus estilos anteriores do drawer... */
        overflow-y: auto;
        visibility: hidden;
        opacity: 0;
    }

    .sidebar-filters.mobile-active {
        visibility: visible;
        opacity: 1;
        left: 0;
    }
}

/* 2. Tab Bar Inferior - Escondida por padrão (Desktop) */
.mobile-tab-bar {
    display: none; /* REGRA PRINCIPAL: Esconde no desktop */
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-top: 1px solid var(--king-border-light);
    justify-content: space-around;
    padding: 10px 0 calc(env(safe-area-inset-bottom) + 10px);
    z-index: 2500;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.05);
}

/* 3. Media Query - Faz a barra aparecer APENAS no Mobile/Tablet */
@media (max-width: 1024px) {
    .mobile-tab-bar {
        display: flex; /* APARECE APENAS AQUI */
    }

    /* Adiciona um respiro no final da página para o conteúdo não ficar por baixo da barra */
    body {
        padding-bottom: 80px; 
    }
}

@media (max-width: 640px) {
    /* Ajuste do Header para não encavalar */
    .nav-container {
        padding: 0 15px;
        flex-wrap: wrap; /* Permite que os itens quebrem linha se necessário */
        justify-content: space-between;
    }

    .brand img {
        height: 30px; /* Reduz o logo para sobrar espaço */
    }

    .nav-actions {
        gap: 10px;
    }

    /* O botão "Enviar" precisa ser menor no mobile */
    .btn-premium {
        padding: 8px 12px;
        font-size: 10px;
    }

    /* CATEGORY NAV: Ajuste vital para o scroll lateral */
    .category-nav {
        top: 70px; /* Ajuste conforme a altura do seu novo header mobile */
    }

    .category-list {
        justify-content: flex-start !important; /* Força o alinhamento à esquerda */
        overflow-x: auto; /* Habilita o scroll horizontal */
        -webkit-overflow-scrolling: touch;
        padding: 0 10px;
    }

    .category-list li {
        flex: 0 0 auto; /* Impede que os itens tentem se espremer */
    }

    .cat-item {
        padding: 12px 15px;
        font-size: 11px;
    }

    /* Esconde a Tab Bar no desktop (garantindo) e mostra no mobile */
    .mobile-tab-bar {
        display: flex;
    }
}

@media (max-width: 768px) {
    /* OPÇÃO A: Sumir completamente com a barra laranja no mobile 
       (Já que você tem o botão "Categorias" na Tab Bar inferior) */
    .category-nav {
        display: none !important;
    }

    /* Ajuste de margem do conteúdo para não ficar colado no topo */
    .main-layout {
        margin-top: 20px;
    }
}



/* --- PAGINA DE PRODUTO PREMIUM (v2.0) --- */

.offer-page {
    margin-top: 40px;
}

/* Wrapper que organiza o Produto + Sidebar */
.product-page-wrapper {
    display: grid;
    grid-template-columns: 1fr 320px; /* Sidebar fixa em 320px */
    gap: 30px;
    align-items: start;
}

/* Card Principal do Produto */
.product-layout.card-base {
    background: #fff;
    border-radius: 24px;
    padding: 40px;
    border: 1px solid rgba(0,0,0,0.05);
    display: grid;
    grid-template-columns: 450px 1fr; /* Coluna da imagem fixa */
    gap: 50px;
}

/* Area da Imagem */
.main-image-wrapper {
    position: relative;
    background: #F9FAFB;
    border-radius: 20px;
    padding: 30px;
    display: flex;
    justify-content: center;
    min-height: 400px;
}

.main-image-wrapper img {
    max-width: 100%;
    object-fit: contain;
}

/* Badge de Desconto Flutuante */
.discount-badge-float {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--king-orange);
    color: #fff;
    padding: 6px 14px;
    border-radius: 8px;
    font-weight: 800;
    font-size: 14px;
    z-index: 10;
}

/* Tipografia do Produto */
.product-title-large {
    font-size: 32px;
    font-weight: 800;
    color: var(--king-dark);
    line-height: 1.2;
    margin: 10px 0 20px 0;
}

/* Card de Preço (Onde o usuário clica) */
.price-card-premium {
    background: #F9FAFB;
    padding: 30px;
    border-radius: 20px;
    border: 1px solid rgba(0,0,0,0.03);
    margin: 30px 0;
}

.current-price-large {
    display: flex;
    align-items: baseline;
    gap: 5px;
    color: var(--king-orange);
}

.current-price-large .value {
    font-size: 48px;
    font-weight: 900;
}

/* BOTÃO IR PARA A LOJA (O ajuste principal) */
.btn-buy-now {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: var(--king-orange);
    color: #fff !important;
    text-decoration: none;
    padding: 20px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 18px;
    margin-top: 15px;
    transition: var(--transition-smooth);
    border: none;
}

.btn-buy-now:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 84, 0, 0.3);
}

/* --- SIDEBAR (MODERADOR E COMENTÁRIOS) --- */
.sidebar-box {
    background: #fff;
    border-radius: 20px;
    padding: 24px;
    border: 1px solid rgba(0,0,0,0.05);
    margin-bottom: 20px;
}

.sidebar-box h4 {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gray-soft);
    margin-bottom: 20px;
}

/* Avatar do Moderador */
.moderator-info {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.avatar-moderator {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #eee;
}

.moderator-tag {
    background: rgba(255, 84, 0, 0.1);
    color: var(--king-orange);
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 800;
}

/* Input de Comentário Estilizado */
.comment-stub input {
    width: 100%;
    padding: 12px;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    outline: none;
}

.comment-stub input:focus {
    border-color: var(--king-orange);
}

/* RESPONSIVO MOBILE */
@media (max-width: 1024px) {
    .product-page-wrapper {
        grid-template-columns: 1fr;
    }
    
    .product-layout.card-base {
        grid-template-columns: 1fr;
        padding: 20px;
    }
    
    .main-image-wrapper {
        min-height: 300px;
    }
}

/* 1. Tag com Nome da Loja (Oferta na Amazon) */
.store-tag {
    display: inline-flex;
    align-items: center;
    background: #F3F4F6; /* Cinza bem clarinho */
    color: #4B5563; /* Cinza médio/escuro */
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 15px;
    border: 1px solid #E5E7EB;
}

/* 2. Botão Compartilhar (Estilo Minimalista) */
.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 1px solid #E5E7EB;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.share-btn:hover {
    background: #F9FAFB;
    border-color: var(--king-orange);
    color: var(--king-orange);
}

.share-btn svg {
    stroke: currentColor;
}

/* 3. Área de Comentários (Input Estilizado) */
.sidebar-box .comment-stub {
    margin-top: 15px;
}

.comment-stub input {
    width: 100%;
    background: #F9FAFB;
    border: 1px solid #E5E7EB;
    padding: 14px 16px;
    border-radius: 12px;
    font-size: 14px;
    color: #1F2937;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    font-family: inherit;
}

.comment-stub input::placeholder {
    color: #9CA3AF;
}

.comment-stub input:focus {
    border-color: var(--king-orange);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(255, 84, 0, 0.1);
}

/* 4. Pequeno ajuste no Post Date (Há 15 min) */
.post-date {
    font-size: 13px;
    color: #9CA3AF;
    font-weight: 500;
}

/* 1. Ajuste de Espaçamento entre Breadcrumb e Tag da Loja */
.breadcrumb {
    margin-bottom: 8px; /* Dá o respiro entre o caminho e a tag */
    font-size: 13px;
    color: var(--gray-soft);
}

.store-tag {
    display: inline-flex;
    align-items: center;
    background: #f3f4f6;
    color: #4b5563;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 20px; /* Espaço para o título que vem abaixo */
    border: 1px solid #e5e7eb;
}

/* 2. Estilização do Botão Compartilhar (Corrigindo o estilo nativo) */
.share-btn {
    appearance: none; /* Remove estilo padrão do navegador */
    -webkit-appearance: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit; /* Garante que use a Montserrat */
}

.share-btn:hover {
    border-color: var(--king-orange);
    color: var(--king-orange);
    background: #fffaf8;
}

/* 3. Estilização da Sidebar de Comentários (Finalização) */
.sidebar-box {
    background: #ffffff;
    border-radius: 20px;
    padding: 25px;
    border: 1px solid rgba(0,0,0,0.06);
    margin-bottom: 25px;
}

.sidebar-box h4 {
    font-size: 12px;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    font-weight: 800;
}

.comment-stub input {
    width: 100%;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    padding: 15px;
    border-radius: 12px;
    font-size: 14px;
    outline: none;
    transition: all 0.2s ease;
}

.comment-stub input:focus {
    border-color: var(--king-orange);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(255, 84, 0, 0.1);
}


.text-page-wrapper {
    max-width: 800px; /* Largura ideal para leitura */
    margin: 40px auto 100px;
    background: #fff;
    padding: 60px;
    border-radius: 24px;
    border: 1px solid var(--king-border-light);
}

.text-header {
    border-bottom: 1px solid #eee;
    padding-bottom: 30px;
    margin-bottom: 40px;
}

.text-title {
    font-size: 32px;
    font-weight: 900;
    color: var(--king-dark);
    margin-top: 10px;
}

.text-body h2 {
    font-size: 20px;
    margin: 40px 0 20px;
    color: var(--king-dark);
}

.text-body p {
    line-height: 1.8;
    color: #4b5563;
    margin-bottom: 20px;
}

.text-body blockquote {
    background: #fff7f3;
    border-left: 4px solid var(--king-orange);
    padding: 20px;
    margin: 30px 0;
    font-style: italic;
    border-radius: 0 12px 12px 0;
}

.category-list {
    list-style: none;
    display: flex;
    gap: 20px;
    padding: 0;
}

.category-list li a {
    text-decoration: none;
    color: inherit;
    /* seus estilos cat-item aqui */
}
.category-list li {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex; /* ou inline-block, dependendo do seu layout */
    align-items: center;
}