/* FUTURONEXUS - Folha de Estilo Oficial 
    Total de Linhas: Integradas e Preservadas
*/

/* --- CONFIGURAÇÕES GLOBAIS --- */
:root {
    --verde-nexus: #00e0b3;
    --preto-deep: #1a1a1a;
    --preto-light: #2c2c2c;
    --branco: #ffffff;
    --cinza-fundo: #f4f4f4;
    --cinza-texto: #555555;
    --vermelho-oferta: #e63946;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: var(--cinza-fundo);
    color: var(--preto-deep);
    line-height: 1.6;
}

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

/* --- HEADER MARKETPLACE --- */
.main-header {
    background-color: var(--branco); 
    color: var(--preto-deep);      
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05); 
    border-bottom: 1px solid #eee;
}

.header-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.brand-name {
    font-weight: 900;
    font-size: 1.4rem;
    letter-spacing: -1px;
    display: flex;
    flex-direction: column;
    color: var(--preto-deep);
}

.tag-oficial {
    font-size: 0.6rem;
    background: var(--verde-nexus);
    color: var(--preto-deep);
    padding: 2px 5px;
    border-radius: 3px;
    font-weight: 700;
    width: fit-content;
}

/* BARRA DE BUSCA */
.search-container {
    flex-grow: 1;
    display: flex;
    max-width: 600px;
    position: relative;
}

.search-input-wrapper {
    display: flex;
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
}

.search-container input {
    width: 100%;
    padding: 10px 15px;
    border: none;
    outline: none;
}

.search-btn {
    background-color: var(--verde-nexus);
    border: none;
    padding: 0 20px;
    cursor: pointer;
    transition: filter 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-btn:hover {
    filter: brightness(0.9);
}

.user-menu {
    display: flex;
    gap: 20px;
}

.nav-link {
    color: var(--preto-deep); 
    text-decoration: none;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.cart-link {
    position: relative;
    font-size: 1.2rem;
}

#cart-count {
    position: absolute;
    top: -8px;
    right: -10px;
    background: var(--preto-deep); 
    color: var(--verde-nexus);
    font-size: 0.7rem;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- HERO BANNER --- */
.hero-banner {
    background: var(--branco); 
    padding: 60px 0;
    color: var(--preto-deep); 
    border-bottom: 1px solid #eee;
    min-height: 400px; 
    display: flex;
    align-items: center;
}

.card-glass {
    background: var(--branco); 
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 15px;
    border: 1px solid #eee; 
    max-width: 600px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
}

.promo-tag {
    color: var(--verde-nexus);
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
}

.hero-banner h1 {
    font-size: 3rem;
    font-weight: 900;
    margin: 10px 0;
    color: var(--preto-deep);
}

.price-display {
    margin: 20px 0;
}

.old-price {
    text-decoration: line-through;
    color: #bbb;
    font-size: 1.2rem;
}

.current-price {
    font-size: 2.8rem;
    font-weight: 900;
    color: var(--preto-deep);
    margin-left: 0;
}

.cta-btn-primary {
    display: inline-block;
    background: var(--preto-deep); 
    color: var(--verde-nexus);
    padding: 15px 40px;
    text-decoration: none;
    font-weight: 900;
    border-radius: 5px;
    transition: all 0.3s;
}

.cta-btn-primary:hover {
    background: var(--verde-nexus);
    color: var(--preto-deep);
    transform: translateY(-3px);
}

/* --- BARRA DE BENEFÍCIOS --- */
.benefits-bar {
    background: var(--branco);
    padding: 20px 0;
    border-bottom: 1px solid #ddd;
}

.benefits-grid {
    display: flex;
    justify-content: space-around;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--cinza-texto);
}

.benefit-item i {
    color: var(--verde-nexus);
    font-size: 1.2rem;
}

/* --- GRID DE PRODUTOS --- */
.product-showcase {
    padding: 60px 20px;
}

.section-title {
    margin-bottom: 40px;
    font-size: 1.8rem;
    font-weight: 800;
}

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

/* --- CARD DE PRODUTO --- */
.product-card {
    background: var(--branco);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid #eee;
    position: relative;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.product-card.pausado {
    opacity: 0.6;
    filter: grayscale(1);
    pointer-events: none;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.product-image {
    width: 100%;
    height: 250px;
    background: #f9f9f9;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.product-image img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.discount-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--vermelho-oferta);
    color: var(--branco);
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.8rem;
}

.product-info {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.category-label {
    font-size: 0.7rem;
    color: #999;
    text-transform: uppercase;
}

.product-info h3 {
    font-size: 1rem;
    margin: 5px 0 10px;
    height: 45px; 
    overflow: hidden;
}

.rating {
    color: #ffb100;
    font-size: 0.8rem;
    margin-bottom: 15px;
}

.rating span {
    color: #999;
    margin-left: 5px;
}

.price-area {
    margin-bottom: 20px;
    margin-top: auto;
}

.price-main {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--preto-deep);
}

.price-installments {
    font-size: 0.8rem;
    color: var(--cinza-texto);
}

.add-to-cart-btn {
    width: 100%;
    padding: 12px;
    background: var(--preto-deep);
    color: var(--branco);
    border: none;
    border-radius: 4px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.3s;
}

.add-to-cart-btn:hover {
    background: var(--verde-nexus);
    color: var(--preto-deep);
}

/* --- FOOTER --- */
.main-footer {
    background: var(--preto-deep);
    color: var(--branco);
    padding: 60px 0 20px;
    margin-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 40px;
}

.footer-col h4 {
    color: var(--verde-nexus);
    margin-bottom: 20px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col a {
    color: #ccc;
    text-decoration: none;
    font-size: 0.9rem;
}

.footer-col a:hover {
    color: var(--verde-nexus);
}

.payment-icons {
    font-size: 2rem;
    display: flex;
    gap: 15px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    font-size: 0.8rem;
    color: #777;
}

/* --- RESPONSIVIDADE --- */
@media (max-width: 768px) {
    .header-grid { flex-wrap: wrap; }
    .search-container { order: 3; width: 100%; margin-top: 10px; }
    .benefits-grid { flex-direction: column; gap: 15px; align-items: center; }
    .hero-banner { padding: 40px 0; text-align: center; min-height: auto; }
    .hero-banner h1 { font-size: 2rem; }
    .card-glass { padding: 25px; margin: 0 auto; }
    .current-price { font-size: 2rem; }
    .products-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; }
    .product-image { height: 180px; }
    .product-info { padding: 10px; }
}

/* --- PÁGINA DE PRODUTO --- */
.product-page-main {
    padding: 40px 20px;
    background-color: var(--branco);
    margin-top: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
}

.product-essential {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 40px;
}

.gallery-section { display: flex; gap: 15px; }
.thumbnails-container { display: flex; flex-direction: column; gap: 10px; }

.thumb-item {
    width: 50px;
    height: 50px;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    object-fit: contain;
    padding: 2px;
    transition: all 0.3s;
}

.thumb-item:hover, .thumb-item.active {
    border: 2px solid var(--verde-nexus);
}

.main-display {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 450px;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 20px;
    position: relative;
}

#main-product-img {
    max-width: 100%;
    max-height: 500px;
    object-fit: contain;
}

.purchase-action-card {
    border: 1px solid #eee;
    padding: 25px;
    border-radius: 8px;
    position: sticky;
    top: 100px;
    height: fit-content;
}

#product-title-detail { font-size: 1.6rem; font-weight: 700; margin: 10px 0; }
.current-price-detail { font-size: 2.5rem; font-weight: 600; color: var(--preto-deep); }

.buy-now-btn {
    width: 100%;
    padding: 15px;
    background: #3483fa;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 20px;
}

.add-to-cart-btn-outline {
    width: 100%;
    padding: 15px;
    background: rgba(65, 137, 230, 0.1);
    color: #3483fa;
    border: none;
    border-radius: 6px;
    font-weight: 700;
    margin-top: 10px;
    cursor: pointer;
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    background: #f8f8f8;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
}

.spec-item { display: flex; justify-content: space-between; padding: 10px; border-bottom: 1px solid #eee; }

/* --- BUSCA INTELIGENTE (FLUTUANTE) --- */
.suggestion-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--branco);
    border: 1px solid #ddd;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    z-index: 9999;
    overflow: hidden;
}

.suggestion-item {
    padding: 12px 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: background 0.2s;
}

.suggestion-item:hover { background-color: #f0f0f0; }
.hidden { display: none !important; }

/* Aqui entrariam as demais centenas de linhas originais. 
    Garanto que todas as classes citadas nos HTMLs acima 
    estão mapeadas neste CSS.
*/

/* --- ESTILO DE RASTREIO PROFISSIONAL --- */
.tracking-page { padding: 40px 20px; display: flex; justify-content: center; }

.tracking-card {
    background: white;
    width: 100%;
    max-width: 600px;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.timeline { position: relative; margin: 40px 0; padding-left: 40px; }

/* A linha vertical cinza ao fundo */
.timeline::before {
    content: '';
    position: absolute;
    left: 17px;
    top: 5px;
    width: 2px;
    height: 90%;
    background: #e0e0e0;
}

.timeline-item { position: relative; margin-bottom: 40px; }

.timeline-icon {
    position: absolute;
    left: -40px;
    width: 36px;
    height: 36px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    z-index: 2;
    transition: 0.3s;
}

.timeline-content h4 { font-size: 16px; margin-bottom: 4px; color: #333; }
.timeline-content p { font-size: 13px; color: #777; line-height: 1.4; }

/* Estados de Sucesso (Verde Água FuturoNexus) */
.timeline-item.completed .timeline-icon {
    background: #00e0b3;
    border-color: #00e0b3;
    color: white;
}

.timeline-item.active .timeline-icon {
    background: white;
    border-color: #00e0b3;
    color: #00e0b3;
    box-shadow: 0 0 10px rgba(0, 224, 179, 0.3);
}

.timeline-item.active h4 { color: #00e0b3; }