:root {
    --bg-deep: #ffffff;
    --bg-card: #ffffff;
    --bg-card-hover: #f8f9fa;
    --accent: #2563eb;
    --accent-glow: rgba(37, 99, 235, 0.1);
    --text-main: #000000;
    --text-dim: #555555;
    --glass-border: #eef0f2;
    --transition: all 0.3s ease;
    --max-w: 1300px;
}

.main-container {
    max-width: var(--max-w);
    margin: 0 auto;
    width: 100%;
    padding: 0 20px;
    box-sizing: border-box;
}

.container {
    max-width: 1300px !important;
    margin: 0 auto !important;
    width: 100% !important;
    height: 100%;
}

@media (max-width: 1300px) {
    .container {
        padding: 0 5%;
    }
}

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

body {
    background-color: var(--bg-deep);
    color: var(--text-main);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    padding-top: var(--header-height);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

h1, h2, h3 {
    font-family: 'Outfit', sans-serif;
    letter-spacing: -0.02em;
}

    font-weight: 500;
    transition: var(--transition);
}

.nav-links a:hover { color: var(--accent); }

.main-container {
    max-width: var(--max-w);
    margin: 0 auto;
    width: 100%;
    padding: 0 20px; /* Alinhado com o header */
    box-sizing: border-box;
}

/* --- HERO REFEITO DO ZERO (FLEXBOX) --- */
.hero-wrapper-new {
    width: 100%;
    background: #ffffff;
    border-bottom: 1px solid var(--glass-border);
    padding: 30px 0;
    margin-bottom: 30px;
    display: block;
    height: auto; /* IMPORTANTE: Deixa crescer conforme as fotos */
}

.hero-content-new {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    gap: 20px;
    height: 720px; /* SOMA DOS DOIS QUADRADOS (350+350) + GAP (20) */
}

.hero-main-col {
    flex: 1;
    height: 100%;
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    background: #f0f2f5;
}

.hero-side-col {
    width: 350px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.hero-small-box {
    flex: none;
    width: 100%;
    height: 350px !important; /* FORÇA O QUADRADO */
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: #f0f2f5;
}

.hero-main-col img, .hero-small-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.hero-main-col:hover img, .hero-small-box:hover img {
    transform: scale(1.05);
}

.featured-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 25px;
    background: linear-gradient(0deg, rgba(0,0,0,0.9) 0%, transparent 100%);
    color: #ffffff;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.featured-item {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
    width: 100%;
}

.featured-main h2 { font-size: 1.8rem; margin: 5px 0; line-height: 1.1; }
.featured-small h3 { font-size: 1.1rem; margin: 3px 0; line-height: 1.2; }

/* Esconde as categorias nos destaques conforme solicitado */
.hero-wrapper-new .news-category {
    display: none !important;
}

@media (max-width: 1100px) {
    .hero-content-new {
        flex-direction: column;
        height: auto;
    }
    .hero-side-col {
        width: 100%;
    }
}

/* --- PÁGINA DE DETALHES (FICHA TÉCNICA) --- */
.product-hero {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 60px;
    align-items: start;
    margin-top: 20px;
}

.product-image-box {
    background: #ffffff;
    border-radius: 24px;
    padding: 40px;
    border: 1px solid var(--glass-border);
    display: flex;
    justify-content: center;
}

.product-image-box img {
    max-width: 100%;
    height: 450px;
    object-fit: contain;
}

.product-info-box h1 {
    font-size: 3.5rem;
    font-family: 'Outfit', sans-serif;
    margin-bottom: 10px;
    line-height: 1.1;
}

.product-brand-tag {
    display: inline-block;
    color: var(--accent);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.spec-grid-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 40px 0;
}

.spec-card-detail {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 20px;
    border: 1px solid #eee;
    transition: var(--transition);
}

.spec-card-detail:hover {
    border-color: var(--accent);
    background: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.spec-card-detail span {
    display: block;
    font-size: 0.75rem;
    color: #777;
    margin-bottom: 8px;
    text-transform: uppercase;
    font-weight: 700;
}

.spec-card-detail strong {
    font-weight: 600;
    font-size: 1.2rem;
    color: #000;
}

.details-actions {
    display: flex;
    gap: 20px;
    margin-top: 40px;
}

@media (max-width: 1100px) {
    .product-hero { grid-template-columns: 1fr; }
    .product-info-box h1 { font-size: 2.5rem; }
}

.main-section {
    width: 100%;
    padding-bottom: 60px;
    position: relative;
    z-index: 1;
}

.main-grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 30px;
}

.content-area {
    min-width: 0;
}

.sidebar {
    position: relative;
    height: auto;
    display: flex;
    flex-direction: column;
    gap: 0;
    z-index: 5;
    min-width: 350px;
}

@media (max-width: 1100px) {
    .main-grid { grid-template-columns: 1fr; }
    .sidebar { min-width: 100%; }
}

.sidebar-block {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 24px;
    margin-bottom: 25px;
    position: relative !important; /* Força bruta contra qualquer cache de sticky */
    display: block;
    z-index: 1;
}

.sidebar-title {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.sidebar-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.sidebar-item {
    display: flex;
    gap: 12px;
    align-items: center;
    text-decoration: none;
    color: var(--text-main);
    transition: var(--transition);
}

.sidebar-item:hover { color: var(--accent); }

.sidebar-item img {
    width: 50px;
    height: 60px;
    object-fit: contain;
    background: #f3f4f6;
    border-radius: 8px;
    padding: 5px;
}

.sidebar-link {
    display: block;
    margin-top: 15px;
    font-size: 0.9rem;
    color: var(--text-dim);
    text-decoration: none;
}

/* News Feed & Articles */
.news-feed {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.news-item {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 25px;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--glass-border);
    border-radius: 0;
    padding: 20px 0;
    transition: var(--transition);
    align-items: start;
}

@media (max-width: 600px) {
    .news-item {
        grid-template-columns: 1fr;
    }
    .news-image-wrapper {
        height: 200px;
    }
}

.news-item:hover {
    border-color: var(--accent);
    transform: none;
}

.news-image-wrapper {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    height: 160px;
}

.news-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-category {
    display: inline-block;
    background: var(--accent);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 10px; /* Garante que fique ACIMA do título sem tocar */
}

.news-content h3 {
    font-size: 1.75rem;
    margin-bottom: 12px;
}

.news-meta-bottom {
    color: #999;
    font-size: 0.8rem;
    font-weight: 500;
    display: block;
    margin-top: 15px;
}

.news-content p {
    color: var(--text-dim);
    margin-bottom: 20px;
}

/* Removido o link manual para dar lugar ao clique total no card */

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.section-title { font-size: 2rem; }

.device-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.device-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 24px;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.device-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent);
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.device-card.selected {
    border-color: var(--accent);
    background: var(--accent-glow);
}

.device-card img {
    width: 100%;
    height: 180px;
    object-fit: contain;
    margin-bottom: 20px;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.5));
}

.device-info h3 { margin-bottom: 8px; font-size: 1.25rem; }
.device-info p { color: var(--text-dim); font-size: 0.9rem; }

/* Comparison Table */
.compare-wrapper {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    overflow: hidden;
    margin-top: 40px;
}

.compare-scroll { overflow-x: auto; }

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 900px;
}

th, td {
    padding: 20px 30px;
    text-align: left;
    border-bottom: 1px solid var(--glass-border);
}

.sticky-header {
    position: sticky;
    top: 100px;
    background: rgba(12, 12, 12, 0.95);
    backdrop-filter: blur(10px);
    z-index: 10;
}

.spec-category {
    background: rgba(255, 255, 255, 0.02);
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
}

.spec-label {
    width: 250px;
    color: var(--text-dim);
    font-weight: 500;
}

/* Buttons */
.btn-primary {
    background: var(--accent);
    color: white;
    padding: 12px 28px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: var(--transition);
}

.btn-primary:hover {
    box-shadow: 0 0 20px var(--accent-glow);
    transform: scale(1.02);
}

/* Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-up { animation: fadeInUp 0.8s ease-out forwards; }

/* Mobile Optimizations */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .hero h1 { font-size: 2.8rem; }
    .section { padding: 60px 5%; }
}
