/* ========================================================
   DETALHES DO PRODUTO (produto-detalhe.css)
   ======================================================== */
.produto-detalhe-body { background-color: #fdfdfd; padding-bottom: 90px; }

/* Botão Voltar */
.produto-header { position: absolute; top: 20px; left: 15px; z-index: 10; }
.btn-voltar { background: rgba(255,255,255,0.8); backdrop-filter: blur(5px); width: 45px; height: 45px; border-radius: 50%; display: flex; justify-content: center; align-items: center; box-shadow: 0 4px 15px rgba(0,0,0,0.1); color: var(--cor-texto); text-decoration: none; font-size: 1.2rem; transition: 0.3s; }
.btn-voltar:hover { background: white; transform: scale(1.05); }

/* Galeria 3:4 Blindada */
.galeria-wrapper { position: relative; width: 100%; aspect-ratio: 3 / 4; background: #f8f8f8; overflow: hidden; }
.produto-galeria { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; width: 100%; height: 100%; scrollbar-width: none; }
.produto-galeria::-webkit-scrollbar { display: none; }
.produto-galeria img, .produto-galeria .sem-imagem { flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover; object-position: center; scroll-snap-align: start; }
.produto-galeria .sem-imagem { display: flex; align-items: center; justify-content: center; background: #eee; color: #aaa; }

/* Bolinhas Indicadoras (Dots) */
.galeria-dots { position: absolute; bottom: 50px; left: 0; right: 0; display: flex; justify-content: center; gap: 8px; pointer-events: none; z-index: 50; }
.dot { width: 8px; height: 8px; border-radius: 50%; background-color: rgba(255, 255, 255, 0.5); transition: all 0.3s ease; box-shadow: 0 1px 3px rgba(0,0,0,0.3); }
.dot.ativo { background-color: white !important; width: 10px; height: 10px; box-shadow: 0 0 6px rgba(0,0,0,0.5); }

/* Bloco de Informações */
.produto-info-container { background: white; padding: 30px 20px; border-radius: 30px 30px 0 0; margin-top: -30px; position: relative; z-index: 5; box-shadow: 0 -5px 20px rgba(0,0,0,0.05); }
.produto-tag { background: var(--cor-secundaria); color: var(--cor-primaria); padding: 5px 12px; border-radius: 20px; font-size: 0.75rem; font-weight: bold; text-transform: uppercase; display: inline-block; margin-bottom: 15px; }
.produto-titulo-detalhe { font-size: 1.6rem; font-weight: 800; color: var(--cor-texto); margin-bottom: 10px; line-height: 1.2; }
.produto-descricao { color: #666; font-size: 0.95rem; line-height: 1.6; margin-top: 20px; }

/* Seletor de Tamanhos */
.grade-tamanhos {
    display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 20px;
}

.btn-tamanho {
    flex: 1; min-width: 60px; text-align: center; padding: 12px 10px;
    border: 2px solid #eaeaea; border-radius: 8px; font-weight: 700;
    color: #777; cursor: pointer; transition: all 0.3s ease;
    background: #fff; user-select: none; position: relative;
}

/* Efeito de Hover (Passar o mouse) - Só para botões com estoque */
.btn-tamanho:hover:not(.esgotado) {
    border-color: var(--cor-primaria); color: var(--cor-primaria);
}

/* TAMANHO SELECIONADO (O Aço!) */
.btn-tamanho.ativo {
    border-color: var(--cor-primaria);
    background-color: rgba(165, 35, 245, 0.08); /* Fundo roxinho transparente */
    color: var(--cor-primaria);
    box-shadow: 0 4px 12px rgba(165, 35, 245, 0.15);
    transform: translateY(-2px);
}

/* TAMANHO ESGOTADO */
.btn-tamanho.esgotado {
    opacity: 0.5; 
    cursor: not-allowed; 
    background-color: #fafafa;
    border-color: #f0f0f0; 
    color: #a0a0a0; 
    text-decoration: line-through;
}

/* Barra Fixa de Comprar */
.barra-comprar-fixa { position: fixed; bottom: 0; left: 0; width: 100%; background: white; padding: 15px 20px; box-shadow: 0 -5px 20px rgba(0,0,0,0.08); display: flex; justify-content: space-between; align-items: center; z-index: 100; border-top: 1px solid #f1f1f1; }
.preco-final .de { font-size: 0.8rem; color: #999; text-decoration: line-through; }
.preco-final .pix { font-size: 1.4rem; font-weight: 900; color: var(--cor-primaria); line-height: 1; display: block; }
.preco-final .pix span { font-size: 0.8rem; font-weight: normal; }
.btn-add-carrinho { background: var(--cor-botao-comprar); color: white; border: none; padding: 15px 25px; border-radius: 30px; font-weight: bold; text-transform: uppercase; font-size: 0.9rem; flex-grow: 1; margin-left: 20px; box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4); cursor: pointer; transition: 0.3s; display: flex; justify-content: center; align-items: center; }
.btn-add-carrinho:active { transform: scale(0.95); }

/* ================= Ajuste Desktop (PC) ================= */
@media (min-width: 992px) {
    .tela-produto { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; max-width: 1200px; margin: 40px auto; align-items: start; padding: 0 20px; }
    
    .galeria-wrapper { max-width: 450px; margin: 0 auto; border-radius: 16px; }
    .produto-galeria img { object-fit: contain; border-radius: 16px; }
    
    .produto-detalhe-body { background: transparent; padding-bottom: 0; }
    .produto-header { display: none; } 
    .produto-info-container { margin-top: 0; border-radius: 16px; box-shadow: none; padding: 0; background: transparent; }
    .barra-comprar-fixa { position: static; box-shadow: none; padding: 20px 0; border-top: 2px solid #eee; margin-top: 30px; background: transparent; }
}

/* Oculta Navbar e Footer no mobile (Efeito App) */
@media (max-width: 991px) {
    .navbar, footer { display: none !important; }
}   