
/* ============================================
   MAVERICK SHOP - Tema Escuro Profissional
   ============================================ */

:root {
    /* Cores Principais */
    --primary: #E63946;
    --primary-dark: #B91C1C;
    --primary-light: #F87171;
    
    /* Cores Secundárias */
    --secondary: #0F172A;      /* Azul escuro profundo */
    --secondary-light: #1E293B; /* Azul acinzentado */
    --secondary-lighter: #334155;
    
    /* Cores de Fundo - TONS ESCUROS */
    --bg-page: #0B1120;         /* Fundo principal da página */
    --bg-card: #151E32;         /* Fundo de cards */
    --bg-card-hover: #1E2940;   /* Hover de cards */
    --bg-input: #1E293B;        /* Fundo de inputs */
    --bg-modal: #1E293B;        /* Fundo de modais */
    
    /* Cores de Texto - CONTRASTE SUAVE */
    --text-primary: #F1F5F9;    /* Texto principal (quase branco) */
    --text-secondary: #CBD5E1;  /* Texto secundário */
    --text-muted: #94A3B8;      /* Texto desativado/descrição */
    --text-inverse: #0F172A;    /* Texto para fundos claros */
    
    /* Bordas e Divisores */
    --border-color: #334155;
    --border-light: #475569;
    
    /* Cores de Estado */
    --success: #10B981;
    --success-bg: rgba(16, 185, 129, 0.15);
    --warning: #F59E0B;
    --warning-bg: rgba(245, 158, 11, 0.15);
    --danger: #EF4444;
    --danger-bg: rgba(239, 68, 68, 0.15);
    --info: #3B82F6;
    --info-bg: rgba(59, 130, 246, 0.15);
    
    /* Sombras - mais sutis para tema escuro */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.6);
    
    /* Bordas arredondadas */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    
    /* Transições e Fontes */
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-heading: 'Poppins', sans-serif;
}

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    color: var(--gray-800);
    background-color: var(--gray-100);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    outline: none;
    font-family: inherit;
    transition: var(--transition);
}

input, select, textarea {
    font-family: inherit;
    outline: none;
    border: 2px solid var(--gray-300);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    font-size: 0.95rem;
    transition: var(--transition);
    width: 100%;
}

input:focus, select:focus, textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.15);
}

/* --- Tipografia --- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--dark);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

/* --- Container --- */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Header / Navbar --- */
.top-bar {
    background: var(--dark);
    color: var(--gray-400);
    padding: 8px 0;
    font-size: 0.85rem;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar a {
    color: var(--gray-400);
}

.top-bar a:hover {
    color: var(--white);
}

.navbar {
    background: var(--white);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-md);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--dark);
}

.logo-icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.3rem;
}

.logo span {
    color: var(--primary);
}

/* Search Bar */
.search-bar {
    flex: 1;
    max-width: 550px;
    position: relative;
}

.search-bar form {
    display: flex;
    border: 2px solid var(--gray-200);
    border-radius: 50px;
    overflow: hidden;
    transition: var(--transition);
}

.search-bar form:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.1);
}

.search-bar input {
    border: none;
    padding: 12px 20px;
    flex: 1;
    font-size: 0.95rem;
}

.search-bar input:focus {
    box-shadow: none;
}

.search-bar button {
    background: var(--primary);
    color: white;
    padding: 12px 20px;
    font-size: 1.1rem;
}

.search-bar button:hover {
    background: var(--primary-dark);
}

/* Nav Actions */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 8px 12px;
    border-radius: var(--radius-md);
    background: transparent;
    color: var(--gray-700);
    font-size: 0.75rem;
    position: relative;
}

.nav-btn:hover {
    background: var(--gray-100);
    color: var(--primary);
}

.nav-btn i {
    font-size: 1.3rem;
}

.cart-count {
    position: absolute;
    top: 2px;
    right: 4px;
    background: var(--primary);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Category Nav */
.category-nav {
    background: var(--secondary);
    padding: 0;
}

.category-nav .container {
    display: flex;
    align-items: center;
    gap: 0;
    overflow-x: auto;
}

.category-nav a {
    color: var(--gray-300);
    padding: 12px 18px;
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
    border-bottom: 2px solid transparent;
}

.category-nav a:hover,
.category-nav a.active {
    color: var(--white);
    background: rgba(255,255,255,0.05);
    border-bottom-color: var(--primary);
}

/* --- Hero Section --- */
.hero {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--dark) 100%);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(230,57,70,0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(69,123,157,0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    color: var(--white);
    font-size: 3rem;
    margin-bottom: 20px;
    line-height: 1.1;
}

.hero-content h1 span {
    color: var(--primary);
}

.hero-content p {
    color: var(--gray-400);
    font-size: 1.15rem;
    margin-bottom: 35px;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    box-shadow: 0 4px 15px rgba(230, 57, 70, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(230, 57, 70, 0.4);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid rgba(255,255,255,0.3);
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.6);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

.btn-sm {
    padding: 8px 20px;
    font-size: 0.85rem;
}

.btn-lg {
    padding: 16px 40px;
    font-size: 1rem;
}

.btn-block {
    width: 100%;
}

.btn-success {
    background: var(--success);
    color: white;
}

.btn-success:hover {
    background: #238b7e;
}

/* Hero Image */
.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image-placeholder {
    width: 100%;
    max-width: 500px;
    aspect-ratio: 1;
    background: linear-gradient(135deg, rgba(230,57,70,0.1), rgba(69,123,157,0.1));
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
}

.hero-image-placeholder i {
    font-size: 8rem;
    color: rgba(255,255,255,0.15);
}

/* --- Features Bar --- */
.features-bar {
    background: var(--white);
    padding: 25px 0;
    box-shadow: var(--shadow-sm);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px;
}

.feature-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, rgba(230,57,70,0.1), rgba(230,57,70,0.05));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.3rem;
    flex-shrink: 0;
}

.feature-text h4 {
    font-size: 0.9rem;
    margin-bottom: 2px;
}

.feature-text p {
    font-size: 0.8rem;
    color: var(--gray-600);
}

/* --- Section Title --- */
.section {
    padding: 70px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.section-header p {
    color: var(--gray-600);
    font-size: 1.05rem;
}

.section-header .line {
    width: 60px;
    height: 4px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    margin: 15px auto 0;
    border-radius: 2px;
}

/* --- Product Cards --- */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 25px;
}

.product-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.badge {
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.badge-sale {
    background: var(--primary);
    color: white;
}

.badge-new {
    background: var(--success);
    color: white;
}

.badge-featured {
    background: var(--accent);
    color: white;
}

.product-image {
    position: relative;
    aspect-ratio: 1;
    background: var(--gray-100);
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.08);
}

.product-actions {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    display: flex;
    gap: 8px;
    opacity: 0;
    transition: var(--transition);
}

.product-card:hover .product-actions {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.action-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--white);
    color: var(--dark);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    font-size: 0.9rem;
}

.action-btn:hover {
    background: var(--primary);
    color: white;
}

.product-info {
    padding: 20px;
}

.product-category {
    font-size: 0.8rem;
    color: var(--primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

.product-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

.product-name a:hover {
    color: var(--primary);
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 10px;
}

.stars {
    color: var(--accent);
    font-size: 0.85rem;
}

.rating-count {
    font-size: 0.8rem;
    color: var(--gray-500);
}

.product-price {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.price-current {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--primary);
}

.price-old {
    font-size: 0.95rem;
    color: var(--gray-500);
    text-decoration: line-through;
}

.product-card .btn {
    width: 100%;
    padding: 10px;
    font-size: 0.85rem;
}

/* --- Categories Section --- */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
}

.category-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 30px 20px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
}

.category-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.category-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 15px;
    background: linear-gradient(135deg, rgba(230,57,70,0.1), rgba(230,57,70,0.05));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--primary);
    transition: var(--transition);
}

.category-card:hover .category-icon {
    background: var(--primary);
    color: white;
}

.category-card h4 {
    font-size: 0.95rem;
    margin-bottom: 5px;
}

.category-card p {
    font-size: 0.8rem;
    color: var(--gray-500);
}

/* --- Newsletter --- */
.newsletter {
    background: linear-gradient(135deg, var(--secondary), var(--dark));
    padding: 60px 0;
    text-align: center;
}

.newsletter h2 {
    color: white;
    margin-bottom: 10px;
}

.newsletter p {
    color: var(--gray-400);
    margin-bottom: 30px;
}

.newsletter-form {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
    gap: 10px;
}

.newsletter-form input {
    flex: 1;
    border: 2px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.1);
    color: white;
    border-radius: 50px;
    padding: 14px 24px;
}

.newsletter-form input::placeholder {
    color: var(--gray-500);
}

.newsletter-form input:focus {
    border-color: var(--primary);
    background: rgba(255,255,255,0.15);
}

/* --- Footer --- */
.footer {
    background: var(--dark);
    color: var(--gray-400);
    padding: 60px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-about .logo {
    margin-bottom: 15px;
    color: white;
}

.footer-about p {
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    gap: 10px;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-400);
    transition: var(--transition);
}

.social-link:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
}

.footer h4 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 0.9rem;
}

.footer-contact i {
    color: var(--primary);
    margin-top: 3px;
}

.footer-bottom {
    padding: 20px 0;
    text-align: center;
    font-size: 0.85rem;
}

/* --- Flash Messages --- */
.flash-message {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 25px;
    border-radius: var(--radius-md);
    color: white;
    font-weight: 500;
    z-index: 9999;
    animation: slideIn 0.3s ease, fadeOut 0.3s ease 3s forwards;
    box-shadow: var(--shadow-lg);
}

.flash-message.success {
    background: var(--success);
}

.flash-message.error {
    background: var(--danger);
}

.flash-message.info {
    background: var(--secondary-light);
}

.flash-message.warning {
    background: var(--warning);
    color: var(--dark);
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes fadeOut {
    to { opacity: 0; transform: translateY(-10px); }
}

/* --- Loading Spinner --- */
.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--gray-200);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 40px auto;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* --- Modal --- */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(4px);
}

.modal-overlay.active {
    display: flex;
}

.modal {
    background: var(--white);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
    animation: modalIn 0.3s ease;
}

@keyframes modalIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.modal-header {
    padding: 20px 25px;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-size: 1.2rem;
}

.modal-close {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-600);
}

.modal-close:hover {
    background: var(--gray-200);
    color: var(--dark);
}

.modal-body {
    padding: 25px;
}

/* --- Pagination --- */
.pagination {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-top: 40px;
}

.pagination a, .pagination span {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    font-weight: 500;
    transition: var(--transition);
}

.pagination a {
    background: var(--white);
    color: var(--gray-700);
}

.pagination a:hover {
    background: var(--primary);
    color: white;
}

.pagination .active {
    background: var(--primary);
    color: white;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-image {
        display: none;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .top-bar {
        display: none;
    }
    
    .navbar .container {
        flex-wrap: wrap;
    }
    
    .search-bar {
        order: 3;
        max-width: 100%;
        flex-basis: 100%;
    }
    
    .category-nav .container {
        gap: 0;
    }
    
    .category-nav a {
        padding: 10px 12px;
        font-size: 0.8rem;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.6rem; }
    
    .hero {
        padding: 50px 0;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .product-info {
        padding: 15px;
    }
    
    .price-current {
        font-size: 1.1rem;
    }
    
    .nav-btn span {
        display: none;
    }
}
/* ============================================
   AJUSTES PARA TEMA ESCURO
   ============================================ */

/* Fundo geral da página */
body {
    background-color: var(--bg-page);
    color: var(--text-primary);
}

/* Cards e containers */
.card, 
.product-card, 
.auth-card, 
.modal, 
.footer, 
.newsletter, 
.features-bar,
.category-card,
.order-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
}

.card:hover,
.product-card:hover,
.category-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-light);
}

/* Cabeçalhos e navegação */
.navbar,
.top-bar,
.category-nav,
.sidebar {
    background: var(--secondary);
    border-bottom: 1px solid var(--border-color);
}

.top-bar {
    background: var(--secondary-light);
    color: var(--text-muted);
}

/* Inputs e formulários */
input, select, textarea {
    background: var(--bg-input);
    border-color: var(--border-color);
    color: var(--text-primary);
}

input::placeholder,
textarea::placeholder {
    color: var(--text-muted);
}

input:focus, select:focus, textarea:focus {
    border-color: var(--primary);
    background: var(--bg-card);
    box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.25);
}

/* Títulos e textos */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-primary);
}

p, span, label {
    color: var(--text-secondary);
}

.text-muted, .rating-count, .order-date, .product-meta {
    color: var(--text-muted) !important;
}

/* Links */
a {
    color: var(--text-primary);
}

a:hover,
.nav-btn:hover,
.footer-links a:hover,
.product-name a:hover {
    color: var(--primary-light);
}

/* Botões */
.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    box-shadow: 0 4px 15px rgba(230, 57, 70, 0.35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(230, 57, 70, 0.5);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

.btn-secondary {
    background: var(--secondary-lighter);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--border-light);
}

/* Tabela admin */
.admin-table th {
    background: var(--secondary-light);
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-color);
}

.admin-table td {
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.admin-table tr:hover td {
    background: var(--bg-card-hover);
}

/* Badges e status */
.status-badge, .badge {
    background: var(--bg-input);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.status-badge.pendente { background: var(--warning-bg); color: var(--warning); border-color: var(--warning); }
.status-badge.pago, .status-badge.entregue { background: var(--success-bg); color: var(--success); border-color: var(--success); }
.status-badge.separando { background: var(--info-bg); color: var(--info); border-color: var(--info); }
.status-badge.enviado { background: rgba(99, 102, 241, 0.15); color: #818CF8; border-color: #6366F1; }
.status-badge.cancelado { background: var(--danger-bg); color: var(--danger); border-color: var(--danger); }

.badge-sale { background: var(--danger); color: white; }
.badge-new { background: var(--success); color: white; }
.badge-featured { background: var(--warning); color: var(--text-inverse); }

/* Preços */
.price-current {
    color: var(--primary-light);
}

.price-old {
    color: var(--text-muted);
}

/* Hero section */
.hero {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--bg-page) 100%);
}

.hero-content h1 {
    color: var(--text-primary);
}

.hero-content p {
    color: var(--text-secondary);
}

/* Categorias */
.category-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
}

.category-card:hover {
    border-color: var(--primary);
    background: var(--bg-card-hover);
}

.category-icon {
    background: linear-gradient(135deg, rgba(230,57,70,0.15), rgba(230,57,70,0.05));
    color: var(--primary-light);
}

.category-card:hover .category-icon {
    background: var(--primary);
    color: white;
}

/* Produto - Imagens e ações */
.product-image {
    background: var(--bg-input);
}

.action-btn {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.action-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Footer */
.footer {
    background: var(--secondary);
    color: var(--text-muted);
    border-top: 1px solid var(--border-color);
}

.footer h4 {
    color: var(--text-primary);
}

.footer-links a {
    color: var(--text-secondary);
}

.footer-links a:hover {
    color: var(--primary-light);
}

.social-link {
    background: var(--bg-input);
    color: var(--text-secondary);
}

.social-link:hover {
    background: var(--primary);
    color: white;
}

/* Newsletter */
.newsletter {
    background: linear-gradient(135deg, var(--secondary), var(--bg-page));
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.newsletter h2 {
    color: var(--text-primary);
}

.newsletter p {
    color: var(--text-secondary);
}

.newsletter-form input {
    background: var(--bg-input);
    border-color: var(--border-color);
    color: var(--text-primary);
}

/* Pagination */
.pagination a, .pagination span {
    background: var(--bg-card);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.pagination a:hover,
.pagination .active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Modal */
.modal {
    background: var(--bg-modal);
    border: 1px solid var(--border-color);
}

.modal-header {
    border-bottom-color: var(--border-color);
}

.modal-close {
    background: var(--bg-input);
    color: var(--text-secondary);
}

.modal-close:hover {
    background: var(--border-light);
    color: var(--text-primary);
}

/* Sidebar admin */
.sidebar {
    background: var(--secondary);
    border-right: 1px solid var(--border-color);
}

.sidebar-nav a {
    color: var(--text-secondary);
}

.sidebar-nav a:hover {
    background: rgba(255,255,255,0.05);
    color: var(--text-primary);
}

.sidebar-nav a.active {
    background: rgba(230, 57, 70, 0.15);
    color: var(--primary-light);
    border-right-color: var(--primary);
}

/* Dashboard stats */
.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
}

.stat-info h3 {
    color: var(--text-primary);
}

.stat-info p {
    color: var(--text-muted);
}

/* Flash messages */
.flash-message {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    box-shadow: var(--shadow-lg);
}

.flash-message.success {
    border-left: 4px solid var(--success);
    background: var(--success-bg);
}

.flash-message.error {
    border-left: 4px solid var(--danger);
    background: var(--danger-bg);
}

.flash-message.warning {
    border-left: 4px solid var(--warning);
    background: var(--warning-bg);
    color: var(--text-inverse);
}

/* Scrollbar personalizada para tema escuro */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-page);
}

::-webkit-scrollbar-thumb {
    background: var(--secondary-lighter);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--border-light);
}

/* Seleção de texto */
::selection {
    background: var(--primary);
    color: white;
}

/* Responsivo - Ajustes para mobile */
@media (max-width: 768px) {
    .product-card:hover {
        transform: none;
    }
    
    .navbar {
        padding: 12px 0;
    }
}