/* ==========================================================================
   VARIÁVEIS E BASE
   ========================================================================== */
:root {
    --bg-dark: #0a0c10;
    --bg-card: rgba(255, 255, 255, 0.03);
    --bg-card-hover: rgba(255, 255, 255, 0.06);
    --border-color: rgba(255, 255, 255, 0.08);
    --primary: #ff5500;
    --primary-hover: #ff3300;
    --text-main: #ffffff;
    --text-muted: #a0a5b5;
    --fonte-principal: 'Plus Jakarta Sans', sans-serif;
    --transicao: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--fonte-principal);
    overflow-x: hidden;
    line-height: 1.5;
}

/* Oculta cursor padrão em telas desktop para usar o personalizado */
@media (min-width: 993px) {
    body, a, button, input {
        cursor: none !important;
    }
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; border: none; }

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ==========================================================================
   1.1 PRELOADER DE ENTRADA
   ========================================================================== */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #050608;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

#preloader.esconder {
    opacity: 0;
    visibility: hidden;
}

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

.preloader-logo {
    font-size: 3rem;
    font-weight: 900;
    letter-spacing: -1px;
    animation: pulseLogo 1.2s infinite ease-in-out;
}

.preloader-logo span { color: var(--primary); }

.preloader-bar {
    width: 160px;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    margin: 20px auto 0 auto;
    border-radius: 4px;
    overflow: hidden;
}

.preloader-progress {
    width: 0%;
    height: 100%;
    background: var(--primary);
    animation: preloaderAnim 1.8s forwards ease-in-out;
}

@keyframes pulseLogo {
    0%, 100% { opacity: 0.6; transform: scale(0.98); }
    50% { opacity: 1; transform: scale(1.02); }
}

@keyframes preloaderAnim {
    0% { width: 0%; }
    100% { width: 100%; }
}

/* ==========================================================================
   1.2 CURSOR PERSONALIZADO
   ========================================================================== */
.custom-cursor {
    width: 32px;
    height: 32px;
    border: 1px solid rgba(255, 85, 0, 0.6);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: width 0.2s, height 0.2s, background 0.2s;
}

.custom-cursor-dot {
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
}

.custom-cursor.hover {
    width: 50px;
    height: 50px;
    background: rgba(255, 85, 0, 0.15);
    border-color: var(--primary);
}

@media (max-width: 992px) {
    .custom-cursor, .custom-cursor-dot { display: none; }
}

/* ==========================================================================
   1.3 SCROLL REVEAL (ANIMAÇÃO AO ROLAR)
   ========================================================================== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.ativo {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   HEADER / NAVBAR
   ========================================================================== */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10, 12, 16, 0.85);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-size: 1.8rem;
    font-weight: 900;
    letter-spacing: -1px;
}

.logo span { color: var(--primary); }

.nav-menu {
    display: flex;
    gap: 32px;
}

.nav-link {
    color: var(--text-muted);
    font-weight: 600;
    transition: var(--transicao);
}

.nav-link:hover { color: var(--text-main); }

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.icon-btn {
    background: transparent;
    color: var(--text-main);
    position: relative;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transicao);
}

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

.cart-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    background: var(--primary);
    color: white;
    font-size: 0.7rem;
    font-weight: 800;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ==========================================================================
   3.1 MODAL DE BUSCA EM TEMPO REAL
   ========================================================================== */
.search-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    z-index: 250;
    display: flex;
    justify-content: center;
    padding-top: 100px;
    opacity: 0;
    visibility: hidden;
    transition: var(--transicao);
}

.search-modal-overlay.ativo {
    opacity: 1;
    visibility: visible;
}

.search-modal-container {
    width: 100%;
    max-width: 650px;
    padding: 0 20px;
}

.search-input-wrapper {
    display: flex;
    align-items: center;
    background: #141820;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 12px 20px;
    gap: 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

.search-input-wrapper input {
    flex: 1;
    background: transparent;
    border: none;
    color: white;
    font-size: 1.1rem;
    outline: none;
}

.btn-fechar-search {
    background: transparent;
    color: var(--text-muted);
    font-size: 1.8rem;
}

.search-results {
    margin-top: 20px;
    max-height: 400px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.search-item-result {
    display: flex;
    align-items: center;
    gap: 16px;
    background: rgba(255,255,255,0.03);
    padding: 12px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: var(--transicao);
}

.search-item-result:hover {
    background: rgba(255,255,255,0.08);
}

.search-item-result img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
    padding: 60px 0 80px 0;
    position: relative;
    overflow: hidden;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    min-height: 540px;
}

.hero-content {
    flex: 1;
    max-width: 580px;
    z-index: 2;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 85, 0, 0.12);
    border: 1px solid rgba(255, 85, 0, 0.3);
    color: var(--primary);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 24px;
    text-transform: uppercase;
}

.hero-tag .dot {
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
}

.hero-title {
    font-size: 3.8rem;
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -1.5px;
    margin-bottom: 20px;
}

.hero-title span { color: var(--primary); }

.hero-description {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 36px;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 28px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 0.95rem;
    transition: var(--transicao);
    letter-spacing: 0.5px;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 10px 25px rgba(255, 85, 0, 0.3);
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(255, 85, 0, 0.4);
}

.preco-destaque {
    display: flex;
    flex-direction: column;
}

.preco-destaque small {
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 700;
}

.preco-destaque strong {
    font-size: 1.6rem;
    font-weight: 800;
    color: #ffffff;
}

.hero-image-container {
    flex: 1.2;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1000px;
    min-height: 520px;
}

.blob-bg {
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255,85,0,0.3) 0%, rgba(0,212,255,0.08) 55%, rgba(0,0,0,0) 80%);
    border-radius: 50%;
    filter: blur(50px);
    z-index: 1;
}

.sneaker-img {
    width: 100%;
    max-width: 500px;
    height: auto;
    z-index: 2;
    transform: rotate(-6deg) scale(1.05);
    filter: drop-shadow(0 25px 35px rgba(0, 0, 0, 0.85));
    transition: transform 0.2s cubic-bezier(0.1, 1, 0.1, 1);
    pointer-events: none;
}

/* ==========================================================================
   MARQUEE
   ========================================================================== */
.marquee-strip {
    background: rgba(255, 255, 255, 0.02);
    border-y: 1px solid var(--border-color);
    padding: 18px 0;
    overflow: hidden;
    white-space: nowrap;
}

.marquee-track {
    display: inline-block;
    animation: marquee 25s linear infinite;
}

.marquee-track span {
    font-size: 1.2rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.25);
    margin: 0 40px;
    letter-spacing: 2px;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ==========================================================================
   VITRINE DE PRODUTOS
   ========================================================================== */
.produtos-section { padding: 90px 24px; }

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 48px;
    flex-wrap: wrap;
    gap: 20px;
}

.section-subtitle {
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 800;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 900;
    margin-top: 4px;
}

.filtros-categoria {
    display: flex;
    gap: 10px;
    background: rgba(255, 255, 255, 0.03);
    padding: 6px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.btn-filtro {
    background: transparent;
    color: var(--text-muted);
    padding: 8px 18px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.85rem;
    transition: var(--transicao);
}

.btn-filtro.ativo, .btn-filtro:hover {
    background: var(--primary);
    color: white;
}

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

.card-produto {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transicao);
    position: relative;
}

.card-produto:hover {
    background: var(--bg-card-hover);
    border-color: rgba(255, 255, 255, 0.18);
    transform: translateY(-6px);
}

.card-imagem {
    position: relative;
    width: 100%;
    height: 240px;
    border-radius: 14px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.card-imagem img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    transition: var(--transicao);
}

.card-produto:hover .card-imagem img {
    transform: scale(1.08) rotate(-4deg);
}

/* BOTÃO DE QUICK VIEW NO CARD */
.btn-quick-view {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(10, 12, 16, 0.9);
    color: white;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    transition: var(--transicao);
    opacity: 0;
    z-index: 3;
}

.card-produto:hover .btn-quick-view {
    bottom: 15px;
    opacity: 1;
}

.btn-quick-view:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 800;
    z-index: 2;
}

.badge-exclusivo { background: #00e5ff; color: #000; }
.badge-desconto { background: var(--primary); color: #fff; }
.badge-popular { background: #ffd700; color: #000; }

.btn-favorito {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-color);
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transicao);
    z-index: 2;
}

.btn-favorito.ativo, .btn-favorito:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.categoria-produto {
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
}

.nome-produto {
    font-size: 1.2rem;
    font-weight: 800;
    margin: 4px 0 8px 0;
}

.preco-produto {
    font-size: 1.25rem;
    font-weight: 900;
    color: white;
    margin-bottom: 16px;
}

.preco-antigo {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-decoration: line-through;
    margin-left: 8px;
    font-weight: 500;
}

.seletor-tamanho label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 8px;
    font-weight: 600;
}

.tamanhos-grid {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.btn-tamanho {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: white;
    padding: 8px 0;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.85rem;
    transition: var(--transicao);
}

.btn-tamanho.ativo, .btn-tamanho:hover {
    background: white;
    color: black;
    border-color: white;
}

.btn-add-carrinho {
    width: 100%;
    background: rgba(255, 255, 255, 0.08);
    color: white;
    padding: 14px;
    font-size: 0.85rem;
}

.btn-add-carrinho:hover {
    background: var(--primary);
}

/* ==========================================================================
   3.2 MODAL QUICK VIEW
   ========================================================================== */
.modal-quickview-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(12px);
    z-index: 210;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transicao);
    padding: 20px;
}

.modal-quickview-overlay.ativo {
    opacity: 1;
    visibility: visible;
}

.modal-quickview {
    background: #0f1218;
    border: 1px solid var(--border-color);
    border-radius: 24px;
    max-width: 800px;
    width: 100%;
    padding: 32px;
    position: relative;
    box-shadow: 0 30px 60px rgba(0,0,0,0.6);
}

.btn-fechar-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    color: var(--text-muted);
    font-size: 2rem;
}

.qv-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: center;
}

.qv-imagem {
    background: rgba(0,0,0,0.3);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qv-imagem img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.qv-descricao {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 12px 0 20px 0;
    line-height: 1.5;
}

/* ==========================================================================
   BANNER PROMOCIONAL
   ========================================================================== */
.banner-promocional {
    margin: 40px auto 90px auto;
    background: linear-gradient(135deg, rgba(255,85,0,0.15) 0%, rgba(10,12,16,1) 100%), url('https://images.unsplash.com/photo-1514989940723-e8e51635b782?q=80&w=1200&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    border: 1px solid var(--border-color);
    border-radius: 28px;
    padding: 80px 60px;
}

.banner-content { max-width: 550px; }

.banner-content h2 {
    font-size: 2.8rem;
    font-weight: 900;
    margin: 16px 0;
}

.banner-content p {
    color: var(--text-muted);
    margin-bottom: 32px;
}

/* ==========================================================================
   RODAPÉ
   ========================================================================== */
.footer {
    background: rgba(0, 0, 0, 0.5);
    border-top: 1px solid var(--border-color);
    padding: 70px 0 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    padding-bottom: 60px;
}

.footer-col p { color: var(--text-muted); margin-top: 16px; font-size: 0.9rem; }
.footer-col h4 { margin-bottom: 20px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul li a { color: var(--text-muted); font-size: 0.9rem; }
.footer-col ul li a:hover { color: var(--primary); }

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding: 24px 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ==========================================================================
   CARRINHO & CÁLCULO DE FRETE
   ========================================================================== */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 200;
    opacity: 0;
    visibility: hidden;
    transition: var(--transicao);
}

.cart-overlay.ativo { opacity: 1; visibility: visible; }

.cart-drawer {
    position: fixed;
    top: 0;
    right: -420px;
    width: 100%;
    max-width: 420px;
    height: 100%;
    background: #0f1218;
    z-index: 201;
    display: flex;
    flex-direction: column;
    transition: var(--transicao);
    border-left: 1px solid var(--border-color);
}

.cart-drawer.ativo { right: 0; }

.cart-header {
    padding: 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.btn-fechar-carrinho { background: transparent; color: var(--text-muted); font-size: 2rem; }

.cart-body {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.carrinho-vazio { text-align: center; margin: auto 0; color: var(--text-muted); }

.cart-item {
    display: flex;
    align-items: center;
    gap: 16px;
    background: rgba(255, 255, 255, 0.03);
    padding: 12px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.cart-item img { width: 70px; height: 70px; object-fit: cover; border-radius: 8px; }
.cart-item-info { flex: 1; }
.cart-item-info h4 { font-size: 0.95rem; }
.cart-item-info p { font-size: 0.8rem; color: var(--text-muted); }

.btn-remover-item { background: transparent; color: #ff4444; opacity: 0.7; }

/* 3.3 ESTILO FRETE */
.cart-frete {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 16px;
    margin-bottom: 16px;
}

.cart-frete label {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--text-muted);
    display: block;
    margin-bottom: 8px;
}

.frete-input-group { display: flex; gap: 8px; }

.frete-input-group input {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 8px 12px;
    color: white;
    font-size: 0.85rem;
    outline: none;
}

.btn-calcular-frete {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 0 16px;
    border-radius: 8px;
    transition: var(--transicao);
}

.btn-calcular-frete:hover { background: var(--primary); }

.frete-resultado {
    font-size: 0.8rem;
    margin-top: 8px;
    color: #00e5ff;
}

.cart-footer {
    padding: 24px;
    border-top: 1px solid var(--border-color);
    background: rgba(0, 0, 0, 0.3);
}

.cart-subtotal {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.btn-checkout { width: 100%; }

/* TOAST */
#toast-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 300;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background: #1a1e26;
    color: white;
    border-left: 4px solid var(--primary);
    padding: 14px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 10px 20px rgba(0,0,0,0.4);
}

/* RESPONSIVO */
@media (max-width: 992px) {
    .hero-container { flex-direction: column; text-align: center; }
    .hero-content { max-width: 100%; }
    .hero-title { font-size: 2.8rem; }
    .hero-actions { justify-content: center; }
    .hero-image-container { min-height: 380px; width: 100%; }
    .sneaker-img { max-width: 380px; }
    .qv-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
}