:root {
    /* Brand Colors */
    --patinep-yellow: #fcc425;
    --patinep-purple: #6666cc;
    --dark-bg: #111111;
    --dark-card: #1a1a1a;
    --text-white: #ffffff;
    --text-gray: #b0b0b0;
    --accent-red: #e74c3c;
    /* Sale/Action */

    /* Structural Vars */
    --header-height: 80px;
    --container-width: 1280px;
    --border-radius: 4px;
    /* More squared/robust look */

    /* Typography */
    --font-heading: 'Inter', sans-serif;
    /* Clean, bold */
    --font-body: 'Roboto', sans-serif;
}

html {
    scroll-behavior: smooth;
}

section {
    scroll-margin-top: 85px;
}

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

body {
    font-family: var(--font-body);
    background-color: var(--dark-bg);
    color: var(--text-white);
    line-height: 1.5;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== TOP BAR ===== */


/* ===== NAVBAR ===== */
.navbar {
    height: var(--header-height);
    background: rgba(17, 17, 17, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #333;
}

.navbar .container {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand img {
    height: 50px;
}

.nav-menu {
    display: flex;
    gap: 30px;
    list-style: none;
}

.nav-menu a {
    color: var(--text-white);
    text-decoration: none;
    font-weight: 600;
    font-family: var(--font-heading);
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 0.5px;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: var(--patinep-yellow);
}

.nav-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

.btn-search {
    background: none;
    border: none;
    color: var(--text-white);
    cursor: pointer;
    font-size: 18px;
}

.btn-cta {
    background-color: var(--patinep-yellow);
    color: #000;
    padding: 10px 24px;
    text-decoration: none;
    font-weight: 700;
    font-family: var(--font-heading);
    border-radius: var(--border-radius);
    text-transform: uppercase;
    font-size: 13px;
    transition: transform 0.2s;
}

.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(252, 196, 37, 0.4);
}

/* ===== HERO SLIDER ===== */
.hero {
    position: relative;
    height: 600px;
    background: #000;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
}

.slide.active {
    opacity: 1;
}

.slide-content {
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.3) 100%);
    padding: 60px;
    border-left: 5px solid var(--patinep-yellow);
    max-width: 600px;
    margin-left: 10%;
    /* Offset content */
    position: relative;
    z-index: 2;
}

.slide-tag {
    color: var(--patinep-yellow);
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 10px;
    display: block;
    letter-spacing: 2px;
}

.slide h1 {
    font-size: 3.5rem;
    font-family: var(--font-heading);
    margin-bottom: 20px;
    line-height: 1.1;
}

.slide p {
    color: var(--text-gray);
    margin-bottom: 30px;
    font-size: 1.1rem;
}

/* ===== CATEGORY ICONS ===== */
.categories-bar {
    background: var(--dark-card);
    padding: 40px 0;
    border-bottom: 1px solid #333;
}

.cat-grid {
    display: flex;
    justify-content: center;
    gap: 60px;
    text-align: center;
}

.cat-item {
    text-decoration: none;
    color: var(--text-white);
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cat-item:hover {
    transform: translateY(-5px);
}

.cat-icon {
    width: 80px;
    height: 80px;
    background: #222;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin-bottom: 15px;
    border: 2px solid transparent;
    transition: all 0.3s;
}

.cat-item:hover .cat-icon {
    border-color: var(--patinep-yellow);
    background: rgba(252, 196, 37, 0.1);
}

.cat-item span {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 14px;
}

/* ===== SHOWCASE HEADER ===== */
.section-header {
    text-align: center;
    margin-bottom: 34px;
}

.section-title {
    font-size: 2.5rem;
    font-family: var(--font-heading);
    text-transform: uppercase;
    margin-bottom: 10px;
}

.section-title span {
    color: var(--patinep-yellow);
}

.section-subtitle {
    color: var(--text-gray);
    font-size: 1.1rem;
}

/* ===== PRODUCT GRID ===== */
.products-section {
    padding: 28px 0;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.product-card {
    background: var(--dark-card);
    border: 1px solid #333;
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: transform 0.3s, border-color 0.3s;
    position: relative;
}

.product-card:hover {
    transform: translateY(-10px);
    border-color: var(--patinep-purple);
}

.product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--patinep-purple);
    color: white;
    padding: 5px 10px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 2px;
    z-index: 10;
}

.product-image {
    height: 250px;
    background: #222;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 80px;
    /* Placeholder icon size */
    overflow: hidden;
    cursor: pointer;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.5s;
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-info {
    padding: 25px;
    text-align: center;
}

.product-name {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 10px;
    font-family: var(--font-heading);
}

.product-specs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 13px;
    color: var(--text-gray);
}

.spec-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.product-price {
    margin-bottom: 20px;
}

.price-val {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--patinep-yellow);
}

.price-installment {
    font-size: 0.9rem;
    color: var(--text-gray);
}

.btn-buy {
    display: block;
    width: 100%;
    padding: 12px;
    background: transparent;
    border: 2px solid var(--text-white);
    color: var(--text-white);
    text-align: center;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    transition: all 0.3s;
}

.product-card:hover .btn-buy {
    background: var(--text-white);
    color: #000;
}

/* ===== BANNER STRIP ===== */
.promo-strip {
    background: var(--patinep-purple);
    padding: 60px 0;
    text-align: center;
}

.promo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    text-align: left;
}

.promo-item {
    display: flex;
    align-items: center;
    gap: 20px;
}

.promo-icon {
    font-size: 40px;
    color: var(--patinep-yellow);
}

.promo-text h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

/* ===== FOOTER ===== */
footer {
    background: #0a0a0a;
    padding: 80px 0 20px;
    border-top: 5px solid var(--patinep-yellow);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.7fr 1.1fr 1.3fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-col h3 {
    color: var(--text-white);
    margin-bottom: 25px;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-col p {
    color: var(--text-gray);
    margin-bottom: 15px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-gray);
    text-decoration: none;
    transition: color 0.2s;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #222;
    color: #555;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 992px) {
    .promo-grid {
        grid-template-columns: 1fr;
        text-align: center;
        justify-items: center;
    }

    .promo-item {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .hero {
        height: 500px;
    }

    .slide-content {
        margin: 0;
        width: 100%;
        max-width: none;
        background: rgba(0, 0, 0, 0.7);
        padding: 30px;
    }

    .slide h1 {
        font-size: 2rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .cat-grid {
        flex-wrap: wrap;
        gap: 30px;
    }
}

/* ===== ZAP.JS MODAL OVERRIDE ===== */
/* Centering the modal */
div.box[class*="svelte-"] {
    top: 50% !important;
    left: 50% !important;
    right: auto !important;
    bottom: auto !important;
    transform: translate(-50%, -50%) !important;
    border-radius: 12px !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5) !important;
    z-index: 10001 !important;
    /* Above backdrop */
    width: 90% !important;
    max-width: 400px !important;
}

/* Hide the floating button when modal is open if desired, 
   but usually better to keep it or let JS handle state. 
   We will treat the modal as a standalone popup. */

/* Custom Backdrop for Zap Modal */
#zap-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 9999;
    /* Behind modal, above everything else */
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#zap-backdrop.active {
    display: block;
    opacity: 1;
}
/* ===================================================== */
/* ===== HERO SPLIT (2 colunas: copy + visual) ========= */
/* ===================================================== */
.hero-split {
    display: grid;
    grid-template-columns: 1.04fr 0.96fr;
    height: 580px;
    background: #0d0d0d;
    overflow: hidden;
    position: relative;
}

.hero-copy {
    display: flex;
    align-items: center;
    z-index: 2;
    padding-left: max(7%, calc((100vw - var(--container-width)) / 2 + 24px));
    padding-right: 5%;
}

.hero-copy-inner {
    max-width: 540px;
    border-left: 4px solid var(--patinep-yellow);
    padding-left: 34px;
    /* page-load reveal */
    animation: heroIn 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.hero-badge {
    display: inline-block;
    color: var(--patinep-yellow);
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.76rem;
    padding: 7px 15px;
    margin-bottom: 22px;
    border: 1px solid rgba(252, 196, 37, 0.35);
    background: rgba(252, 196, 37, 0.08);
    border-radius: 999px;
}

.hero-title {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 3.3rem;
    line-height: 1.04;
    letter-spacing: -1.2px;
    margin-bottom: 20px;
    color: var(--text-white);
}

.hero-title em {
    color: var(--patinep-yellow);
    font-style: normal;
}

.hero-sub {
    color: var(--text-gray);
    font-size: 1.1rem;
    line-height: 1.55;
    margin-bottom: 30px;
    max-width: 440px;
}

.hero-sub strong {
    color: var(--text-white);
    font-weight: 600;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.btn-ghost {
    display: inline-block;
    padding: 11px 22px;
    border: 2px solid rgba(255, 255, 255, 0.25);
    color: var(--text-white);
    text-decoration: none;
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 13px;
    border-radius: var(--border-radius);
    transition: all 0.2s;
}

.btn-ghost:hover {
    border-color: var(--patinep-yellow);
    color: var(--patinep-yellow);
    transform: translateY(-2px);
}

.hero-trust {
    list-style: none;
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    padding: 0;
    margin: 0;
}

.hero-trust li {
    color: var(--text-gray);
    font-size: 0.86rem;
    font-weight: 500;
}

.hero-visual {
    position: relative;
    background-image: url('../img/hero-eletricos.webp');
    background-size: cover;
    background-position: 60% center;
}

/* degradê na emenda: lado esquerdo do visual funde no painel escuro */
.hero-visual::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #0d0d0d 0%, rgba(13, 13, 13, 0.55) 6%, rgba(13, 13, 13, 0) 26%);
}

@keyframes heroIn {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 900px) {
    .hero-title { font-size: 2.6rem; }
    .hero-copy { padding-right: 6%; }
}

@media (max-width: 768px) {
    .hero-split {
        grid-template-columns: 1fr;
        height: auto;
        min-height: 540px;
        /* imagem ao fundo com overlay escuro pra leitura */
        background:
            linear-gradient(180deg, rgba(13, 13, 13, 0.78) 0%, rgba(13, 13, 13, 0.92) 100%),
            url('../img/hero-eletricos.webp');
        background-size: cover;
        background-position: center;
    }
    .hero-visual { display: none; }
    .hero-copy {
        padding: 54px 26px;
        align-items: flex-start;
    }
    .hero-copy-inner { padding-left: 22px; max-width: 100%; }
    .hero-title { font-size: 2.2rem; }
    .hero-actions .btn-cta,
    .hero-actions .btn-ghost { text-align: center; }
}

/* ===== FIX: scroll lateral + navbar mobile ===== */
/* overflow-x: clip evita scroll lateral SEM quebrar o position:sticky da navbar */
body { overflow-x: clip; }

@media (max-width: 768px) {
    /* sem hamburger: esconde o menu inline (a barra de categorias abaixo cobre a navegação) */
    .navbar .nav-menu { display: none; }
    .nav-brand img { height: 40px; }
    .nav-actions .btn-vip { font-size: 11px; padding: 9px 14px; letter-spacing: 0; }
}

/* ===== FAQ (SEO/GEO) ===== */
.faq-list { max-width: 820px; margin: 0 auto; }

.faq-item {
    border: 1px solid #333;
    border-radius: var(--border-radius);
    background: var(--dark-card);
    margin-bottom: 14px;
    overflow: hidden;
}

.faq-item summary {
    cursor: pointer;
    list-style: none;
    padding: 20px 24px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--text-white);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
    content: '+';
    color: var(--patinep-yellow);
    font-size: 1.6rem;
    line-height: 1;
    flex-shrink: 0;
}

.faq-item[open] summary::after { content: '\2212'; }

.faq-item .faq-answer {
    padding: 0 24px 22px;
    color: var(--text-gray);
    line-height: 1.65;
}

/* ===== ícones SVG da barra de categorias (moped/patinete) ===== */
.cat-icon svg { width: 40px; height: 40px; }

/* ===== suaviza bordas das imagens de catálogo (fundo branco) integrando ao card ===== */
.product-image { background: var(--dark-card); }
.product-image img {
    -webkit-mask-image:
        linear-gradient(to right, transparent 0, #000 7%, #000 93%, transparent 100%),
        linear-gradient(to bottom, transparent 0, #000 6%, #000 94%, transparent 100%);
    -webkit-mask-composite: source-in;
    mask-image:
        linear-gradient(to right, transparent 0, #000 7%, #000 93%, transparent 100%),
        linear-gradient(to bottom, transparent 0, #000 6%, #000 94%, transparent 100%);
    mask-composite: intersect;
}

/* ===== DEPOIMENTOS (carrossel automático / marquee) ===== */
.testi-section {
    padding: 70px 0 80px;
    background: #0e0e0e;
    overflow: hidden;
}
.testi-marquee {
    margin-top: 44px;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
}
.testi-track {
    display: flex;
    gap: 24px;
    width: max-content;
    animation: testiScroll 60s linear infinite;
}
.testi-marquee:hover .testi-track { animation-play-state: paused; }
.testi-card {
    flex: 0 0 auto;
    width: 360px;
    background: var(--dark-card);
    border: 1px solid #333;
    border-radius: 10px;
    padding: 28px 26px;
    display: flex;
    flex-direction: column;
}
.testi-stars {
    color: var(--patinep-yellow);
    letter-spacing: 3px;
    font-size: 0.95rem;
    margin-bottom: 14px;
}
.testi-text {
    color: #dcdcdc;
    line-height: 1.62;
    font-size: 0.98rem;
    margin-bottom: 18px;
    flex-grow: 1;
}
.testi-author {
    color: var(--text-white);
    font-weight: 700;
    font-size: 0.9rem;
    font-family: var(--font-heading);
}
.testi-author span {
    color: var(--text-gray);
    font-weight: 400;
}
@keyframes testiScroll {
    from { transform: translateX(0); }
    to   { transform: translateX(calc(-50% - 12px)); }
}
@media (prefers-reduced-motion: reduce) {
    .testi-track { animation: none; flex-wrap: wrap; justify-content: center; }
}
@media (max-width: 768px) {
    .testi-card { width: 280px; padding: 24px 22px; }
    .testi-track { animation-duration: 45s; }
}

/* ===== selo "Mais Vendido" — campeão dourado ===== */
.product-badge--bestseller {
    background: linear-gradient(135deg, #ffe07a 0%, #fcc425 42%, #f5a623 100%);
    color: #1a1208;
    font-weight: 800;
    letter-spacing: 0.4px;
    padding: 6px 13px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 5px 16px rgba(252, 196, 37, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.6);
    overflow: hidden;
}
/* brilho que cruza o selo periodicamente */
.product-badge--bestseller::after {
    content: "";
    position: absolute;
    top: 0;
    left: -70%;
    width: 55%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.7), transparent);
    transform: skewX(-20deg);
    animation: badgeShine 3.4s ease-in-out infinite;
}
@keyframes badgeShine {
    0%, 55% { left: -70%; }
    100% { left: 140%; }
}
@media (prefers-reduced-motion: reduce) {
    .product-badge--bestseller::after { animation: none; display: none; }
}

/* ===== selo "Lançamento" ===== */
.product-badge--launch {
    background: linear-gradient(135deg, #7b7be6 0%, #6666cc 100%);
    color: #fff;
    border-radius: 999px;
    padding: 6px 13px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 4px 12px rgba(102, 102, 204, 0.45);
}

/* ===== CTA após depoimentos ===== */
.testi-cta { text-align:center; margin-top:46px; }
.testi-cta .btn-cta { display:inline-block; padding:15px 38px; font-size:15px; }
.testi-cta-sub { color:var(--text-gray); margin-top:14px; font-size:.95rem; }

/* ============================================================ */
/* ===== PROTÓTIPO: carrossel por categoria + foto em evidência */
/* ============================================================ */
.products-section .container { position: relative; }

.product-grid {
    display: flex;
    grid-template-columns: none;       /* cancela o grid */
    gap: 24px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 14px 2px 24px;
    scrollbar-width: none;
    cursor: grab;
}
.product-grid::-webkit-scrollbar { display: none; }
.product-grid.dragging { cursor: grabbing; scroll-behavior: auto; }
.product-grid.dragging * { pointer-events: none; }
.product-card { flex: 0 0 300px; }
.product-grid .product-card:hover { transform: translateY(-5px); }

/* "Ver Detalhes" vira link discreto; "Consultar Preço" é o CTA */
.btn-details {
    background: transparent; border: none; color: var(--patinep-yellow);
    font-weight: 700; font-size: 12.5px; text-transform: uppercase; letter-spacing: .5px;
    padding: 4px; margin-bottom: 8px; cursor: pointer;
}
.btn-details:hover { text-decoration: underline; }
.btn-buy { padding: 11px; }

/* setas de navegação */
.carousel-nav {
    position: absolute; top: 46%; transform: translateY(-50%);
    width: 46px; height: 46px; border-radius: 50%;
    background: var(--patinep-yellow); color: #000; border: none; cursor: pointer;
    display: flex; align-items: center; justify-content: center; font-size: 17px;
    box-shadow: 0 6px 18px rgba(0,0,0,.4); z-index: 20; transition: transform .15s, opacity .2s;
}
.carousel-nav:hover { transform: translateY(-50%) scale(1.08); }
.carousel-nav.prev { left: -8px; }
.carousel-nav.next { right: -8px; }
.carousel-nav[disabled] { opacity: 0; pointer-events: none; }
@media (max-width: 768px) { .carousel-nav { display: none; } }

/* ============================================================ */
/* ===== PROTÓTIPO 2: cards estilo "eletricz" (spotlight + hover neon amarelo) */
/* ============================================================ */
.product-card {
    background: linear-gradient(180deg, #202020 0%, #161616 100%);
    border: 1px solid #2c2c2c;
    border-radius: 16px;
    transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}
.product-card:hover,
.product-card.is-hover {
    border-color: var(--patinep-yellow);
    box-shadow: 0 0 0 1.5px var(--patinep-yellow), 0 0 30px rgba(252, 196, 37, .32), 0 22px 44px rgba(0, 0, 0, .55);
}
/* spotlight atrás do produto */
.product-image {
    background:
        radial-gradient(58% 52% at 50% 44%, rgba(252, 196, 37, .12) 0%, rgba(255, 255, 255, .05) 26%, rgba(0, 0, 0, 0) 68%),
        #161616;
}
.product-card:hover .product-image,
.product-card.is-hover .product-image {
    background:
        radial-gradient(58% 52% at 50% 44%, rgba(252, 196, 37, .22) 0%, rgba(255, 255, 255, .07) 28%, rgba(0, 0, 0, 0) 70%),
        #161616;
}
