:root {
    --primary: #FFD700;
    --primary-dark: #D4AF37;
    --primary-light: #FFF9C4;
    --black: #333333;
    --gray-dark: #4A4A4A;
    --gray: #6B7280;
    --gray-light: #E5E7EB;
    --gray-lighter: #F8FAFC;
    --white: #FFFFFF;
    --shadow: 0 8px 30px rgba(51, 51, 51, 0.08);
    --shadow-hover: 0 20px 50px rgba(51, 51, 51, 0.15);
    --shadow-large: 0 25px 50px rgba(51, 51, 51, 0.25);
    --radius: 16px;
    --radius-lg: 20px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Inter', sans-serif;
    background: var(--white);
    color: var(--gray-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Page Loader */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.page-loader.fade-out {
    opacity: 0;
    pointer-events: none;
}

.loader-content {
    text-align: center;
}

.loader-icon {
    font-size: 4rem;
    color: var(--primary);
    margin-bottom: 1rem;
    animation: bounce 2s infinite;
}

.loader-content h2 {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
}

.loader-content p {
    color: var(--gray);
    font-size: 1.1rem;
}

/* Header Moderno */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(51, 51, 51, 0.1);
    padding: 1rem 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: var(--transition);
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow);
}

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

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.logo-icon {
    font-size: 2rem;
    color: var(--primary);
    transition: var(--transition);
}

.logo:hover .logo-icon {
    transform: scale(1.1);
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--black);
    background: linear-gradient(135deg, var(--black) 0%, var(--gray-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Header Search - BOTÃO CORRETO */
.header-search {
    flex: 1;
    max-width: 500px;
    min-width: 300px;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--gray-lighter);
    border: 2px solid transparent;
    border-radius: 50px;
    padding: 0.5rem 1rem;
    transition: var(--transition);
    height: 50px;
}

.search-box:focus-within {
    border-color: var(--primary);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.1);
}

.search-icon {
    color: var(--gray);
    margin-right: 0.75rem;
    font-size: 1rem;
    flex-shrink: 0;
}

.search-box input {
    flex: 1;
    border: none;
    background: none;
    outline: none;
    font-size: 0.95rem;
    color: var(--black);
    padding: 0.5rem 0;
    min-width: 0;
}

.search-box input::placeholder {
    color: var(--gray);
}

/* BOTÃO DO HEADER - CÍRCULAR */
.header-search-btn {
    background: var(--primary);
    color: var(--black);
    border: none;
    border-radius: 50%;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1rem;
    flex-shrink: 0;
    margin-left: 0.5rem;
}

.header-search-btn:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
}

/* Search Section - BOTÃO RETANGULAR */
.search-section-btn {
    width: 100%;
    padding: 1.25rem;
    font-size: 1.1rem;
    margin-top: 1rem;
    background: var(--primary);
    color: var(--black);
    border: none;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.search-section-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}


/* Header Content - VERSÃO CORRIGIDA */
.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: nowrap; /* Impede quebra de linha */
}

/* Logo - Ajustado */
.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    flex-shrink: 0; /* Impede que logo diminua */
    min-width: fit-content;
}

/* Navegação - Ajustado */
.nav-links {
    display: flex;
    gap: 1.5rem; /* Reduzido gap */
    align-items: center;
    flex-shrink: 0;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--gray-dark);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    transition: var(--transition);
    white-space: nowrap; /* Impede quebra de texto */
}

/* Auth Buttons - Ajustado */
.auth-buttons {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-shrink: 0;
}

.btn-login, .btn-register {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
    white-space: nowrap;
}

.btn-login {
    background: transparent;
    color: var(--gray-dark);
    border: 2px solid var(--gray-light);
}

.btn-login:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-register {
    background: var(--primary);
    color: var(--black);
}

.btn-register:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--black);
    cursor: pointer;
    padding: 0.5rem;
}

/* Hero Section */
.hero {
    position: relative;
    background: linear-gradient(135deg, var(--black) 0%, #444 100%);
    color: var(--white);
    padding: 120px 0 80px;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.floating-shapes {
    position: relative;
    width: 100%;
    height: 100%;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 215, 0, 0.1);
    animation: float 6s ease-in-out infinite;
}

.shape-1 {
    width: 100px;
    height: 100px;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 150px;
    height: 150px;
    top: 60%;
    right: 10%;
    animation-delay: 2s;
}

.shape-3 {
    width: 80px;
    height: 80px;
    bottom: 20%;
    left: 20%;
    animation-delay: 4s;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-text {
    max-width: 600px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.title-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: block;
}

.title-sub {
    display: block;
    color: var(--white);
    font-size: 2.5rem;
}

.hero-description {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.stat-item i {
    font-size: 2rem;
    color: var(--primary);
}

.stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
}

.stat-label {
    display: block;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-primary, .btn-outline {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn-primary {
    background: var(--primary);
    color: var(--black);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

.hero-visual {
    display: flex;
    justify-content: center;
}

.visual-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-lg);
    padding: 2rem;
    max-width: 400px;
    width: 100%;
    box-shadow: var(--shadow-large);
}

.card-header {
    margin-bottom: 1.5rem;
}

.card-dots {
    display: flex;
    gap: 0.5rem;
}

.card-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
}

.analytics-preview {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.metric {
    display: flex;
    justify-content: between;
    align-items: center;
}

.metric-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.metric-value {
    color: var(--white);
    font-weight: 600;
    font-size: 1.1rem;
}

.profit-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    font-weight: 600;
    padding: 0.75rem 1rem;
    background: rgba(255, 215, 0, 0.1);
    border-radius: var(--radius);
    border: 1px solid rgba(255, 215, 0, 0.3);
}

/* Sections Common */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.section-title i {
    color: var(--primary);
    font-size: 2rem;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto;
}

/* Search Section */
.search-section {
    padding: 80px 0;
    background: var(--gray-lighter);
}

.search-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 3rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-light);
    max-width: 800px;
    margin: 0 auto;
}

.search-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2.5rem;
    background: var(--gray-lighter);
    padding: 0.5rem;
    border-radius: var(--radius);
}

.search-tab {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: transparent;
    border: none;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    color: var(--gray);
    justify-content: center;
}

.search-tab.active {
    background: var(--primary);
    color: var(--black);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.search-form {
    display: none;
}

.search-form.active {
    display: block;
}

.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-weight: 600;
    color: var(--black);
    font-size: 1.1rem;
}

.form-group label i {
    color: var(--primary);
    font-size: 1.2rem;
}

.form-group input {
    width: 100%;
    padding: 1.25rem 1.5rem;
    border: 2px solid var(--gray-light);
    border-radius: var(--radius);
    font-size: 1rem;
    transition: var(--transition);
    background: var(--white);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.1);
}

/* Features Section */
.features-section {
    padding: 80px 0;
    background: var(--white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--white);
    padding: 2.5rem 2rem;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-light);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: var(--black);
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--black);
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--gray);
    line-height: 1.6;
}

/* Loading & Error States */
.loading {
    display: none;
    text-align: center;
    padding: 4rem 2rem;
}

.loading-content {
    max-width: 500px;
    margin: 0 auto;
}

.loading-spinner {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.loading h3 {
    color: var(--black);
    margin-bottom: 0.5rem;
}

.loading p {
    color: var(--gray);
}

.error {
    display: none;
    background: #FEF2F2;
    color: #DC2626;
    padding: 2rem 0;
    border-left: 5px solid #DC2626;
}

.error .container {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.error i {
    font-size: 2rem;
}

.error-content h3 {
    margin-bottom: 0.5rem;
}

/* Results Section */
.results-section {
    display: none;
    padding: 80px 0;
    background: var(--gray-lighter);
}

.results-section.active {
    display: block;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.stat-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border-left: 5px solid var(--primary);
    transition: var(--transition);
    text-align: center;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.stat-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.stat-value {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--black);
    margin: 0.5rem 0;
}

.stat-label {
    color: var(--gray);
    font-weight: 500;
}

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

.products-header h2 {
    color: var(--black);
    font-size: 2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.products-header h2 i {
    color: var(--primary);
}

.results-count {
    color: var(--gray);
    font-weight: 500;
    font-size: 1.1rem;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.product-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--gray-light);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.product-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: var(--gray-light);
}

.product-content {
    padding: 1.5rem;
}

.product-title {
    font-weight: 600;
    color: var(--black);
    margin-bottom: 1rem;
    line-height: 1.4;
    font-size: 1.1rem;
}

.product-price {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 1rem;
}

.product-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.meta-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--gray-light);
    font-size: 0.9rem;
}

.meta-label {
    color: var(--gray);
    font-weight: 500;
}

.meta-value {
    color: var(--black);
    font-weight: 600;
}

.product-link {
    display: block;
    text-align: center;
    padding: 0.75rem;
    background: var(--primary);
    color: var(--black);
    text-decoration: none;
    border-radius: var(--radius);
    font-weight: 700;
    transition: var(--transition);
}

.product-link:hover {
    background: var(--primary-dark);
}

/* Footer */
.footer {
    background: var(--black);
    color: var(--white);
    padding: 4rem 0 2rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h3 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-links a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    margin-bottom: 0.75rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-links a i {
    width: 20px;
    font-size: 1rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border-radius: 50%;
    text-decoration: none;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary);
    color: var(--black);
    transform: translateY(-2px);
}

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

.footer-bottom p {
    margin-bottom: 0.5rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

@media (max-width: 1024px) {
    .header-content {
        gap: 1.5rem;
    }
    
    .header-search {
        max-width: 400px;
        min-width: 250px;
    }
    
    .nav-links {
        gap: 1rem;
    }
    
    .nav-link span {
        display: none; /* Esconde texto, mostra apenas ícones */
    }
    
    .nav-link {
        padding: 0.5rem;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .logo {
        order: 1;
    }
    
    .auth-buttons {
        order: 2;
        margin-left: auto;
    }
    
    .mobile-menu-btn {
        order: 3;
        display: block;
    }
    
    .header-search {
        order: 4;
        flex: 1 1 100%;
        max-width: none;
        min-width: auto;
        margin-top: 0.5rem;
    }
    
    .nav-links {
        display: none; /* Esconde navegação em mobile */
    }
    
    /* Versão mobile da navegação */
    .mobile-nav {
        display: none;
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background: var(--white);
        box-shadow: var(--shadow);
        padding: 1rem;
        z-index: 999;
    }
    
    .mobile-nav.active {
        display: block;
    }
    
    .mobile-nav .nav-link {
        display: flex;
        width: 100%;
        padding: 1rem;
        border-bottom: 1px solid var(--gray-light);
    }
    
    .mobile-nav .nav-link:last-child {
        border-bottom: none;
    }
    
    .mobile-nav .nav-link span {
        display: block; /* Mostra texto no mobile nav */
    }
}

@media (max-width: 480px) {
    .header-search {
        margin-top: 0;
    }
    
    .search-box {
        height: 44px; /* Um pouco menor em mobile */
    }
    
    .search-btn {
        width: 38px;
        height: 38px;
    }
    
    .auth-buttons .btn-login span,
    .auth-buttons .btn-register span {
        display: none; /* Esconde texto dos botões em mobile muito pequeno */
    }
    
    .auth-buttons .btn-login,
    .auth-buttons .btn-register {
        padding: 0.75rem;
    }
}