﻿/* ==========================================================================
   [MODULO 01] - HEADER / NAVBAR (NAVEGAÇÃO FIXA)
   ========================================================================== */
.navbar {
    background-color: rgba(0, 0, 0, 0.5) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 3px solid #feb900 !important;
    transition: all 0.5s ease;
    box-shadow: 0px 4px 15px rgba(0,0,0,0.3);
}

.navbar a {
    color: #ffffff !important;
    font-weight: 500;
}

.navbar a:hover {
    color: #feb900 !important;
}

/* ==========================================================================
   [MODULO 02] - ESTRUTURA GERAL E CARDS
   ========================================================================== */
.product-details-container {
    padding-top: 120px !important;
    padding-bottom: 60px;
    background: #f5f5f5;
    min-height: 100vh;
}

.white-card {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 1px 2px 0 rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

/* ==========================================================================
   [MODULO 03] - GALERIA DE FOTOS (ESTILO MERCADO LIVRE)
   ========================================================================== */
.gallery-wrapper {
    display: flex;
    gap: 15px;
}

.thumbs-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 60px;
}

.thumb-item {
    width: 50px;
    height: 50px;
    border: 2px solid #ddd;
    cursor: pointer;
    padding: 2px;
    border-radius: 4px;
    object-fit: cover;
}

.thumb-item:hover, 
.thumb-item.active {
    border-color: #3483fa;
}

/* Container da Imagem Grande com Zoom */
.main-img-container {
    flex: 1;
    position: relative;
    overflow: hidden;
    height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: crosshair;
}

.main-img-container img {
    max-width: 100%;
    max-height: 100%;
    transition: transform 0.2s ease;
}

/* ==========================================================================
   [MODULO 04] - PAINEL DE COMPRA E PREÇOS
   ========================================================================== */
.product-title {
    font-size: 22px;
    font-weight: 600;
    color: #333;
    line-height: 1.2;
}

/* Tags de Preço e Ofertas */
.price-tag {
    font-size: 36px;
    color: #333;
    font-weight: 300;
    margin: 20px 0 5px 0;
    display: block;
}

.old-price {
    font-size: 16px;
    color: #999;
    text-decoration: line-through;
    display: block;
    margin-bottom: -5px;
}

.promo-badge {
    background: #00a650;
    color: #fff;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 12px;
    vertical-align: middle;
}

.price-info {
    color: #00a650;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
}

/* ==========================================================================
   [MODULO 05] - SELEÇÕES (COR/TAMANHO) E AÇÕES
   ========================================================================== */
.selection-label {
    font-weight: 600;
    margin-top: 20px;
    display: block;
    font-size: 16px;
    color: #333;
}

.option-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.option-button {
    border: 1px solid #ddd;
    background: #fff;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: 0.2s;
}

.option-button:hover {
    background: #f0f5ff;
    border-color: #3483fa;
}

.option-button.selected {
    border-color: #3483fa;
    border-width: 2px;
    color: #3483fa;
    font-weight: 600;
}

/* Botões de Compra Final */
.btn-buy-now {
    background: #3483fa;
    color: #fff;
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 16px;
    margin-top: 20px;
    transition: 0.3s;
}

.btn-add-cart {
    background: rgba(65, 137, 230, .15);
    color: #3483fa;
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 16px;
    margin-top: 10px;
    transition: 0.3s;
}

.btn-buy-now:hover { background: #2968c8; }
.btn-add-cart:hover { background: rgba(65, 137, 230, .25); }

/* Informações de Envio */
.shipping-info {
    margin-top: 20px;
    display: flex;
    gap: 10px;
    color: #00a650;
    font-size: 14px;
}

.shipping-calc {
    margin-top: 20px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 6px;
    border: 1px solid #eee;
}

.btn-calc-cep {
    background: #eee;
    border: 1px solid #ccc;
    padding: 5px 15px;
    border-radius: 4px;
    font-size: 13px;
    transition: 0.3s;
}

/* ==========================================================================
   [MODULO 06] - CARDS DE PRODUTOS (HOVER/ANIMAÇÃO)
   ========================================================================== */
.product-card-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    border: 1px solid transparent;
}

.product-card-hover:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
    border-color: #feb900;
}

/* ==========================================================================
   [MODULO: VITRINE DE PRODUTOS SIMILARES] - VERSÃO COMPACTA
   ========================================================================== */

.similar-card {
    background: #fff;
    padding: 12px; /* Reduzi o padding */
    border-radius: 8px;
    border: 1px solid #eee;
    margin-bottom: 15px;
    position: relative;
    transition: all 0.3s ease;
    text-align: center;
    min-height: 230px; /* Altura mínima menor para não parecer esticado */
}

.similar-card:hover {
    transform: translateY(-5px); /* Subida mais sutil */
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    border-color: #feb900;
}

/* Badge de Desconto - Menor e discreta */
.promo-badge-sim {
    position: absolute;
    top: 5px;
    right: 5px;
    background: #00a650;
    color: #fff;
    padding: 1px 4px;
    font-size: 9px;
    font-weight: 700;
    border-radius: 2px;
    z-index: 10;
}

/* Imagem mais integrada */
.sim-img-container {
    height: 110px; /* Reduzi de 130px para 110px */
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 5px;
}

.sim-img-container img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

/* Nome do Produto - Fonte menor */
.sim-product-name {
    font-size: 12px;
    color: #3483fa;
    height: 30px;
    overflow: hidden;
    margin-bottom: 4px;
    line-height: 1.2;
}

/* Área de Preços - Compacta */
.sim-price-wrapper {
    min-height: 35px; /* Reduzi o espaço vazio */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.sim-old-price {
    font-size: 10px;
    color: #999;
    text-decoration: line-through;
    display: block;
    height: 12px;
}

.sim-main-price {
    font-size: 16px; /* Fonte levemente menor */
    color: #333;
    font-weight: 700;
    display: block;
}

/* ==========================================================================
   [MODULO ÚNICO] - CARDS E VITRINE
   ========================================================================== */

/* Padronizamos o card para ser consistente em todo o site */
.similar-card, .product-card-hover {
    background: #fff;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #eee;
    margin-bottom: 15px;
    position: relative;
    transition: all 0.3s ease;
    text-align: center;
    min-height: 230px; /* Evita que o card estique */
}

.similar-card:hover, .product-card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1) !important;
    border-color: #feb900;
}

/* Título de Elite (Resolvendo o problema do tamanho pequeno) */
.tech-title-elite {
    font-size: 42px !important; 
    font-weight: 900;
    color: #000;
    text-transform: uppercase;
    margin-bottom: 20px;
}

/* ==========================================================================
   [MODULO] - BARRA DE ALERTA RESPONSIVA (ENG. CESÁRIO)
   ========================================================================== */

/* Container que segura o alerta e compensa a altura da Navbar */
.dev-alert-wrapper {
    padding-top: 115px; /* Altura para Desktop */
    padding-bottom: 10px;
    background-color: #f5f5f5;
    transition: padding 0.3s ease; /* Transição suave ao redimensionar */
}

.dev-alert-bar {
    background-color: #feb900; 
    color: #000;
    text-align: center;
    padding: 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    border: 1px solid rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap; /* Permite quebrar linha no mobile */
    
    /* Animação: Desliza de cima e aparece o brilho */
    animation: slideDownFade 0.8s ease-out forwards;
}

.dev-alert-bar i {
    font-size: 20px;
}

/* Animação de Surgimento */
@keyframes slideDownFade {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* RESPONSIVIDADE (Mobile) */
@media (max-width: 768px) {
    .dev-alert-wrapper {
        padding-top: 85px; /* O "top 80" que você pediu para mobile */
    }
    
    .dev-alert-bar {
        font-size: 11px; /* Diminui um pouco a letra para não amontoar */
        padding: 10px;
        margin: 0 10px; /* Margem nas laterais para não encostar na borda do celular */
    }
}