/* style.css - VERSÃO PRODUÇÃO OFICIAL KAWASKIN.COM.BR */
html { scroll-behavior: smooth; }
body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; margin: 0; background: #fff; overflow-x: hidden; color: #333; }

/* Cabeçalho Fixo */
.header { 
    background: #fff; padding: 0 15px; display: flex; justify-content: space-between; 
    align-items: center; border-bottom: 1px solid #eee; position: sticky; 
    top: 0; z-index: 1000; height: 75px; transition: all 0.3s ease;
}
.header.scrolled { height: 60px; box-shadow: 0 2px 15px rgba(0,0,0,0.08); }
.logo { height: 45px; width: auto; transition: all 0.3s ease; }
.header.scrolled .logo { height: 35px; }

.btn-whatsapp { 
    background: #25d366; color: #fff; text-decoration: none; padding: 8px 15px; 
    border-radius: 20px; font-weight: bold; font-size: 13px; display: flex; 
    align-items: center; gap: 5px; transition: 0.3s;
}
.btn-whatsapp:hover { background: #1ebe57; transform: scale(1.05); }

.container { max-width: 500px; margin: 0 auto; background: #fff; }
.banner-img { width: 100%; display: block; cursor: pointer; }

/* Swiper Banners e Estampas */
.swiper-pagination-bullet-active { background: #007bff !important; }

.swiperEstampas { padding-bottom: 50px; position: relative; margin-top: 10px; }
.swiper-button-next, .swiper-button-prev { 
    color: #007bff; transform: scale(0.6); background: rgba(255,255,255,0.9); 
    border-radius: 50%; width: 50px; height: 50px; z-index: 10; box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.grid-estampas-page { 
    display: grid; grid-template-columns: repeat(4, 1fr); 
    gap: 12px; padding: 10px 45px; 
}

/* Miniaturas das Estampas */
.thumb-estampa { 
    width: 100%; aspect-ratio: 1/1; border-radius: 12px; 
    background-size: cover; 
    background-position: center; 
    background-repeat: no-repeat;
    cursor: pointer; border: 2px solid #f0f0f0; transition: all 0.2s ease-in-out; 
}
.thumb-estampa:hover { border-color: #ccc; }
.thumb-estampa.active { border: 3px solid #007bff; transform: scale(1.08); box-shadow: 0 4px 10px rgba(0,123,255,0.2); }

.section-title { text-align: center; padding: 20px 15px 10px; font-size: 16px; font-weight: 700; color: #222; text-transform: uppercase; letter-spacing: 0.5px; }

/* Controles de Seleção */
.controls { padding: 0 20px 20px; display: flex; flex-direction: column; gap: 12px; }
select { 
    padding: 14px; border-radius: 10px; border: 1px solid #ddd; font-size: 16px; 
    background: #fdfdfd; color: #444; outline: none; transition: border 0.3s;
    appearance: none; background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat; background-position: right 10px center; background-size: 1em;
}
select:focus { border-color: #007bff; }

/* Simulador Visual */
.preview-container { padding: 20px 0; background: #fcfcfc; }
#simulador { 
    position: relative; width: 280px; height: 450px; margin: 0 auto; 
    background: #fff; border-radius: 30px; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.05); 
    overflow: hidden; border: 1px solid #eee;
}
#camada-estampa, #camada-mascara { 
    position: absolute; width: 100%; height: 100%; top: 0; left: 0; 
    object-fit: contain; opacity: 0; transition: opacity 0.5s ease;
}
#camada-estampa[src*="."], #camada-mascara[src*="."] { opacity: 1; }

.preco { text-align: center; font-size: 26px; font-weight: 800; margin: 20px 0; color: #007bff; }

/* ============================================================
   MODAL DE VÍDEO - CORREÇÃO DO BOTÃO FECHAR
   ============================================================ */
.modal-video { 
    display: none; 
    position: fixed; 
    z-index: 99999 !important; /* Prioridade máxima sobre o header */
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background: rgba(0,0,0,0.95); 
    align-items: center; 
    justify-content: center; 
}

.modal-content { 
    width: 90%; 
    max-width: 400px; 
    position: relative; 
    border-radius: 15px; 
}

.close-btn { 
    position: absolute; 
    top: -50px; /* Posicionado acima do vídeo */
    right: 0; 
    color: #fff; 
    font-size: 50px; /* Tamanho maior para facilitar o toque */
    cursor: pointer; 
    line-height: 1;
    z-index: 100000;
    padding: 10px;
    font-family: Arial, sans-serif;
}

.close-btn:hover {
    color: #007bff;
}

video#videoPlayer {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.5);
}

/* Ajustes Extras para o Formulário de Entrega */
#sessao-entrega {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}