@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&display=swap');

:root {
    --bg-color: #000000; 
    --card-bg: #0d0d0d;
    --text-color: #e0e0e0;
    --neon-blue: #0088cc; 
    --accent-blue: #00bfff;
    --zap-color: #25D366;
}

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

body { 
    font-family: 'Montserrat', sans-serif; 
    background-color: var(--bg-color); 
    background-image: 
        radial-gradient(circle at 15% 0%, rgba(0, 136, 204, 0.25) 0%, transparent 50%),
        radial-gradient(circle at 85% 100%, rgba(0, 191, 255, 0.15) 0%, transparent 50%);
    background-attachment: fixed;
    color: var(--text-color); 
    display: flex; 
    flex-direction: column; 
    min-height: 100vh; 
}

/* ========== HEADER ========== */
header { 
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    padding: 12px 30px; 
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center; 
    gap: 16px;
    border-bottom: 1px solid rgba(0, 136, 204, 0.25);
    position: sticky;
    top: 0;
    z-index: 100;
}

header .logo-link {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-shrink: 0;
}

header img { 
    max-width: 260px; 
    height: auto;
    display: block;
}

/* Barra de busca — sempre no centro da tela */
.search-box {
    width: min(420px, 36vw);
    position: relative;
    justify-self: center;
}

.search-box input {
    width: 100%;
    padding: 10px 40px 10px 16px;
    border: 1px solid #333;
    border-radius: 25px;
    background: rgba(13, 13, 13, 0.9);
    color: var(--text-color);
    font-family: inherit;
    font-size: 0.95rem;
    outline: none;
    transition: 0.3s;
}

.search-box input::placeholder {
    color: #666;
}

.search-box input:focus {
    border-color: var(--neon-blue);
    box-shadow: 0 0 12px rgba(0, 136, 204, 0.35);
}

.search-box .search-icon {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent-blue);
    font-size: 1.1rem;
    pointer-events: none;
}

/* Nav desktop */
.header-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 24px;
    flex-shrink: 0;
}

nav {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 28px; 
}

nav a { 
    color: var(--text-color); 
    text-decoration: none; 
    margin: 0; 
    font-size: 0.95rem; 
    font-weight: 700; 
    transition: 0.3s; 
    white-space: nowrap;
}

nav a:hover { 
    color: var(--accent-blue); 
    text-shadow: 0 0 10px var(--accent-blue); 
}

/* Botão hamburger (escondido no desktop) */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 110;
    flex-shrink: 0;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2.5px;
    background-color: var(--accent-blue);
    margin: 5px 0;
    border-radius: 2px;
    transition: 0.3s;
}

/* Animação do X quando aberto */
.menu-toggle.active span:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
}
.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
}

.hero { 
    text-align: center; 
    padding: 30px 20px; 
    background: transparent; 
}

.hero h1 { color: var(--accent-blue); font-size: 2.5rem; margin-bottom: 20px; }
.hero p { max-width: 800px; margin: 0 auto 30px; line-height: 1.6; }

/* Botões */
.btn-zap { display: inline-block; background-color: var(--zap-color); color: white; padding: 12px 25px; text-decoration: none; font-weight: bold; border-radius: 5px; transition: 0.3s; cursor: pointer; border: none; font-size: 1rem; text-align: center; }
.btn-zap:hover { background-color: #1ebe5d; transform: scale(1.05); }
.btn-info { display: inline-block; background-color: transparent; border: 1px solid var(--accent-blue); color: var(--accent-blue); padding: 12px 25px; text-decoration: none; font-weight: bold; border-radius: 5px; transition: 0.3s; cursor: pointer; font-size: 1rem; }
.btn-info:hover { background-color: var(--accent-blue); color: #000; }

.botoes-card { display: flex; gap: 10px; justify-content: center; margin-top: auto; }

/* Vitrine de Produtos */
.grid-produtos { display: flex; flex-wrap: wrap; justify-content: center; gap: 30px; padding: 50px 20px; max-width: 1200px; margin: 0 auto; }
.produto-card { background-color: var(--card-bg); border: 1px solid #222; border-radius: 10px; width: 320px; padding: 25px; text-align: center; transition: 0.4s; display: flex; flex-direction: column; cursor: pointer; }
.produto-card:hover { border-color: var(--neon-blue); box-shadow: 0 0 15px rgba(0, 136, 204, 0.3); transform: translateY(-5px); }
.produto-card.hidden { display: none; }
.produto-card img { width: 100%; height: 200px; object-fit: contain; margin-bottom: 20px; background-color: #fff; padding: 10px; border-radius: 5px; }
.produto-card h3 { color: var(--accent-blue); font-size: 1.2rem; margin-bottom: 10px; }
.produto-card p { font-size: 0.9rem; color: #aaa; margin-bottom: 20px; flex-grow: 1; }

/* Mensagem sem resultados da busca */
.sem-resultados {
    display: none;
    text-align: center;
    padding: 40px 20px;
    color: #888;
    font-size: 1.1rem;
    width: 100%;
}
.sem-resultados.visible { display: block; }

/* JANELA SUSPENSA (MODAL) */
.modal-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.85); z-index: 1000; justify-content: center; align-items: center; padding: 20px; }
.modal-content { background: var(--card-bg); border: 2px solid var(--neon-blue); border-radius: 10px; max-width: 900px; width: 100%; padding: 40px; position: relative; display: flex; gap: 30px; align-items: flex-start; text-align: left; box-shadow: 0 0 30px rgba(0, 136, 204, 0.5); }
.fechar-modal { position: absolute; top: 15px; right: 20px; font-size: 32px; color: var(--accent-blue); cursor: pointer; font-weight: bold; background: none; border: none; }
.fechar-modal:hover { color: red; }
.modal-col-img { flex: 1; display: flex; justify-content: center; align-items: center; }
.modal-col-img img { width: 100%; max-height: 350px; object-fit: contain; background: white; padding: 15px; border-radius: 5px; }
.modal-col-texto { flex: 1; display: flex; flex-direction: column; }
.modal-col-texto h2 { color: var(--accent-blue); margin-bottom: 15px; font-size: 1.8rem; }
.modal-col-texto p { color: var(--text-color); line-height: 1.6; margin-bottom: 15px; font-size: 1rem; }
.modal-col-texto ul { margin-bottom: 25px; padding-left: 20px; color: #aaa; }
.modal-col-texto ul li { margin-bottom: 8px; }

/* Footer Completo */
footer { background-color: rgba(5, 5, 5, 0.8); border-top: 1px solid #222; margin-top: auto; padding: 40px 20px; }
.footer-container { display: flex; flex-wrap: wrap; justify-content: space-between; max-width: 1200px; margin: 0 auto; gap: 30px; }
.footer-col { flex: 1; min-width: 250px; }
.footer-col h3 { color: var(--accent-blue); margin-bottom: 15px; font-size: 1.2rem; }
.footer-col p { color: #888; font-size: 0.9rem; line-height: 1.6; margin-bottom: 10px; }
.footer-col a { color: var(--accent-blue); text-decoration: none; }
.footer-col a:hover { text-decoration: underline; }
.footer-bottom { text-align: center; color: #444; font-size: 0.8rem; margin-top: 30px; padding-top: 20px; border-top: 1px solid #111; }

/* Carrossel da Home */
.carousel-wrapper { position: relative; max-width: 1000px; margin: 40px auto; overflow: hidden; padding: 10px; }
.carousel-track { display: flex; gap: 20px; transition: transform 0.5s ease-in-out; }
.carousel-track .produto-card { min-width: calc(33.333% - 14px); flex-shrink: 0; }
.carousel-btn { position: absolute; top: 50%; transform: translateY(-50%); background: var(--neon-blue); color: white; border: none; width: 40px; height: 40px; font-size: 20px; border-radius: 50%; cursor: pointer; z-index: 10; }
.carousel-btn.prev { left: 0; }
.carousel-btn.next { right: 0; }

/* VÍDEO SHORTS */
.video-section { text-align: center; padding: 50px 20px; }
.video-container-shorts {
    position: relative;
    max-width: 350px;
    margin: 0 auto;
    aspect-ratio: 9 / 16;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0, 136, 204, 0.3);
    border: 1px solid var(--neon-blue);
}
.video-container-shorts iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Caixa para Vídeo Horizontal na Hero */
.video-container-horizontal {
    position: relative;
    max-width: 800px;
    margin: 30px auto 0 auto;
    aspect-ratio: 16 / 9;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0, 136, 204, 0.3);
    border: 1px solid var(--neon-blue);
}
.video-container-horizontal iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* ========== RESPONSIVO ========== */
@media (max-width: 900px) {
    .search-box { max-width: 280px; }
    header img { max-width: 220px; }
}

@media (max-width: 768px) { 
    header { 
        padding: 12px 16px;
        gap: 10px;
        display: flex;
        grid-template-columns: none;
        /* Hamburger esquerda | Logo centro | (espaço direita) */
        justify-content: space-between;
    }

    .menu-toggle {
        display: block;
        order: 1;
        position: static;
        transform: none;
    }

    header .logo-link {
        order: 2;
        position: static;
        left: auto;
        transform: none;
        margin: 0 auto;
    }

    header img { 
        max-width: 200px; 
    }

    /* No mobile a busca fica abaixo do header ou escondida no menu */
    .search-box {
        display: none; /* esconde no header compacto */
        order: 4;
        max-width: none;
        width: 100%;
        margin-top: 8px;
    }

    /* Busca aparece quando o menu está aberto OU sempre abaixo em linha extra */
    header.search-open {
        flex-wrap: wrap;
    }
    header.search-open .search-box {
        display: block;
        order: 4;
        flex-basis: 100%;
    }

    .header-right {
        order: 3;
        /* só o nav no mobile */
    }

    nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 12px;
        right: auto;
        background: rgba(13, 13, 13, 0.98);
        border: 1px solid var(--neon-blue);
        border-radius: 8px;
        flex-direction: column;
        gap: 0;
        min-width: 200px;
        box-shadow: 0 8px 25px rgba(0, 136, 204, 0.35);
        overflow: hidden;
        z-index: 200;
    }

    nav.open {
        display: flex;
    }

    nav a {
        padding: 14px 20px;
        width: 100%;
        text-align: left;
        border-bottom: 1px solid #222;
        font-size: 0.95rem;
    }

    nav a:last-child {
        border-bottom: none;
    }

    nav a:hover {
        background: rgba(0, 136, 204, 0.15);
    }

    /* Busca mobile fixa abaixo do header */
    .search-mobile {
        display: block;
        padding: 10px 16px 12px;
        background: rgba(0, 0, 0, 0.5);
        border-bottom: 1px solid rgba(0, 136, 204, 0.2);
    }

    .search-mobile .search-box {
        display: block;
        max-width: none;
        width: 100%;
        margin: 0;
    }

    .hero h1 { font-size: 1.8rem; }
    
    .modal-content { flex-direction: column; padding: 30px 20px; }
    .modal-col-img img { max-height: 250px; }
    .carousel-track .produto-card { min-width: 100%; } 
    
    .footer-col { min-width: 100%; text-align: center; }
    .footer-col img { margin: 0 auto 15px; }
}

/* Esconde a barra mobile no desktop */
.search-mobile {
    display: none;
}
@media (max-width: 768px) {
    .search-mobile { display: block; }
}

/* ========== FILTROS DE CATEGORIA ========== */
.filtros-categoria {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    padding: 10px 20px 30px;
    max-width: 1100px;
    margin: 0 auto;
}

.filtro-btn {
    background: transparent;
    border: 1px solid #333;
    color: var(--text-color);
    padding: 8px 16px;
    border-radius: 20px;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: 0.25s;
}

.filtro-btn:hover {
    border-color: var(--accent-blue);
    color: var(--accent-blue);
}

.filtro-btn.active {
    background: var(--neon-blue);
    border-color: var(--neon-blue);
    color: #fff;
}

.badge-cat {
    display: inline-block;
    font-size: 0.7rem;
    color: var(--accent-blue);
    border: 1px solid rgba(0, 191, 255, 0.4);
    border-radius: 10px;
    padding: 2px 8px;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* Placeholder do vídeo (espaço reservado) */
.video-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0a0a0a 0%, #111 50%, #0a1520 100%);
    border: 1px dashed rgba(0, 136, 204, 0.45);
}
.video-placeholder-inner {
    text-align: center;
    color: #555;
}
.video-placeholder-inner span {
    display: block;
    font-size: 3rem;
    color: var(--neon-blue);
    opacity: 0.5;
    margin-bottom: 8px;
}
.video-placeholder-inner p {
    font-size: 0.95rem;
    color: #666;
    margin: 0;
}

/* Cards de categoria na home */
.categorias-home {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px 20px 50px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
}
.cat-card {
    background: var(--card-bg);
    border: 1px solid #222;
    border-radius: 12px;
    padding: 28px 20px;
    text-align: center;
    text-decoration: none;
    color: var(--text-color);
    transition: 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}
.cat-card:hover {
    border-color: var(--neon-blue);
    box-shadow: 0 0 18px rgba(0, 136, 204, 0.3);
    transform: translateY(-4px);
}
.cat-card .cat-icon {
    font-size: 2rem;
    line-height: 1;
}
.cat-card h3 {
    color: var(--accent-blue);
    font-size: 1.05rem;
    margin: 0;
}
.cat-card p {
    font-size: 0.85rem;
    color: #888;
    margin: 0;
}
.cat-card .cat-count {
    font-size: 0.75rem;
    color: #555;
    margin-top: 4px;
}
