:root {
    /* Cores Personalizadas */
    --primary: #00cc00;
    --secondary: #000000;
    --background: #ffffff;
    --text: #333333;
    
    /* Cores de Elementos (adaptam ao tema) */
    --dark: #ffffff;
    --dark-2: #ffffff;
    --dark-3: #f8f8f8;
    --border: #e0e0e0;
    --text-muted: #666666;
    
    /* Variações Automáticas */
    --primary-dark: color-mix(in srgb, #00cc00 80%, black);
    --primary-light: color-mix(in srgb, #00cc00 80%, white);
    --secondary-dark: color-mix(in srgb, #000000 80%, black);
    --secondary-light: color-mix(in srgb, #000000 80%, white);
}

/* Aplicar cores personalizadas */
body {
    background-color: var(--background);
    color: var(--text);
}

.btn {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #ffffff !important;
}

.btn:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: #ffffff !important;
}

/* Botão Secundário (outline) */
.btn-secondary {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary) !important;
}

.btn-secondary:hover {
    background: var(--primary);
    color: #ffffff !important;
    border-color: var(--primary);
}

/* Botão de busca */
.search-form button {
    color: #ffffff !important;
}

.search-form button:hover {
    color: #ffffff !important;
}

/* Links */
a {
    color: var(--primary);
}

a:hover {
    color: var(--secondary);
}

/* Headers */
h1, h2, h3, h4, h5, h6 {
    color: var(--primary);
}

/* Badges e Status */
.badge-primary {
    background-color: var(--primary);
    color: #ffffff !important;
}

.badge-secondary {
    background-color: var(--secondary);
    color: #ffffff !important;
}

/* Badge de desconto */
.discount-badge,
.product-discount,
.badge-discount {
    background-color: var(--primary) !important;
    color: #ffffff !important;
}

/* Contador do carrinho */
.cart-count,
.header-icon .cart-count {
    background-color: var(--primary) !important;
    color: #ffffff !important;
}

/* Preços dos produtos */
.price-current,
.product-price .price-current {
    color: var(--primary) !important;
}

.price-old,
.product-price .price-old {
    color: var(--text-muted) !important;
    opacity: 0.6;
}

/* Badge de produto */
.product-badge {
    background-color: var(--primary) !important;
    color: #ffffff !important;
}

/* Logo do site */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
}

@media (max-width: 768px) {
    .logo-img {
        height: 32px;
    }
    
    .logo-text {
        font-size: 1.2rem;
    }
}

/* Estilos do Blog */
.blog-hero {
    background: linear-gradient(135deg, var(--dark-2) 0%, var(--dark) 100%) !important;
}

.blog-hero h1 {
    color: var(--primary) !important;
}

.blog-hero p {
    color: var(--text-muted) !important;
}

.enquete-card {
    background: var(--dark-2) !important;
    border-color: var(--border) !important;
}

.enquete-card:hover {
    border-color: var(--primary) !important;
}

.enquete-pergunta {
    color: var(--text);
}

.enquete-meta {
    color: var(--text-muted);
}

.enquete-meta i {
    color: var(--primary) !important;
}

.opcao-radio label {
    color: var(--text);
}

.opcao-resultado {
    background: var(--dark-3) !important;
    color: var(--text);
}

.barra-progresso {
    background: var(--dark-3) !important;
}

.barra-preenchimento {
    background: linear-gradient(90deg, var(--primary), var(--secondary)) !important;
}

.resultado-progresso {
    background: linear-gradient(90deg, var(--primary), var(--secondary)) !important;
    color: #ffffff !important;
}

.resultado-barra {
    background: var(--dark-3) !important;
}

.opcao-resultado .resultado-info {
    color: var(--text) !important;
}

/* Menu mobile - Links de conta */
.mobile-only {
    display: none !important;
}

.menu-divider {
    display: none !important;
    height: 1px;
    background: var(--border);
    margin: 10px 0;
}

@media (max-width: 768px) {
    .mobile-only {
        display: block !important;
    }
    
    .menu-divider {
        display: block !important;
    }
    
    .mobile-only a {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 12px 20px;
    }
    
    .mobile-only a i {
        color: var(--primary);
        width: 20px;
        font-size: 1rem;
    }
}

.post-card {
    background: var(--dark-2) !important;
    border-color: var(--border) !important;
}

.post-card:hover {
    border-color: var(--primary) !important;
}

.post-title {
    color: var(--text);
}

.post-title:hover {
    color: var(--primary) !important;
}

.post-excerpt {
    color: var(--text-muted);
}

.post-meta {
    color: var(--text-muted);
}

.post-meta i {
    color: var(--primary) !important;
}

/* Garantir visibilidade dos textos */
.enquete-card p,
.enquete-card span,
.enquete-card label,
.post-card p,
.post-card span,
.post-card h3,
.post-card h4 {
    color: var(--text);
}

.enquete-card .text-muted,
.post-card .text-muted {
    color: var(--text-muted);
}

/* Botão de votar */
.enquete-card .btn,
.enquete-card button[type="submit"],
.btn-votar,
a.btn-votar {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark)) !important;
    color: #ffffff !important;
    border: none !important;
}

.enquete-card .btn:hover,
.enquete-card button[type="submit"]:hover,
.btn-votar:hover,
a.btn-votar:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary)) !important;
    color: #ffffff !important;
}

/* Bordas */
.border-primary {
    border-color: var(--primary) !important;
}

.border-secondary {
    border-color: var(--secondary) !important;
}

/* Backgrounds */
.bg-primary {
    background-color: var(--primary) !important;
}

.bg-secondary {
    background-color: var(--secondary) !important;
}

/* Textos */
.text-primary {
    color: var(--primary) !important;
}

.text-secondary {
    color: var(--secondary) !important;
}


/* ========================================
   DROPDOWN MENU - CATEGORIAS
   ======================================== */

/* Dropdown Desktop */
.dropdown-parent {
    position: relative;
}

.dropdown-parent > a {
    display: flex;
    align-items: center;
    gap: 5px;
}

.dropdown-parent > a::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 0;
    right: 0;
    height: 15px;
    background: transparent;
}

.dropdown-parent .fa-chevron-down {
    font-size: 0.75rem;
    transition: transform 0.3s ease;
}

.dropdown-parent:hover .fa-chevron-down {
    transform: rotate(180deg);
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: var(--dark-2);
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    padding: 10px 0;
    z-index: 1000;
    margin-top: 0;
    padding-top: 15px;
}

.dropdown-parent:hover .dropdown-menu {
    display: block;
    animation: fadeInDown 0.3s ease;
}

.dropdown-menu a {
    display: block;
    padding: 10px 20px;
    color: var(--text);
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.dropdown-menu a:hover {
    background: var(--dark-3);
    border-left-color: var(--primary);
    color: var(--primary);
    padding-left: 25px;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
    }
    to {
        opacity: 1;
        max-height: 500px;
    }
}

/* Dropdown Mobile */
@media (max-width: 768px) {
    .dropdown-parent > a::after {
        display: none;
    }
    
    .dropdown-parent > a {
        justify-content: space-between;
        width: 100%;
    }
    
    .dropdown-parent .fa-chevron-down {
        display: inline-block;
        margin-left: auto;
    }
    
    .dropdown-menu {
        position: static;
        display: none;
        box-shadow: none;
        border: none;
        border-radius: 0;
        padding: 0;
        padding-left: 20px;
        margin-top: 10px;
        background: transparent;
        animation: none;
    }
    
    .dropdown-menu.active {
        display: block;
        animation: slideDown 0.3s ease;
    }
    
    .dropdown-menu a {
        padding: 8px 15px;
        color: var(--text-muted);
        font-size: 0.9rem;
        border-left: 2px solid var(--border);
        margin-bottom: 5px;
    }
    
    .dropdown-menu a:hover {
        color: var(--primary);
        border-left-color: var(--primary);
        padding-left: 20px;
        background: transparent;
    }
}
