/* Variáveis Dinâmicas (serão sobrescritas pelo JS) */
:root {
    --produto-primaria: #4ECDC4;
    --produto-secundaria: #7FE5DD;
}

body {
    font-family: 'Poppins', sans-serif;
    padding-top: 80px;
    background: linear-gradient(135deg, var(--produto-primaria), var(--produto-secundaria));
    min-height: 100vh;
}

/* Navbar */
.navbar-custom {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 5px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    padding: 0.5rem 0;
    z-index: 1000;
}

.navbar-brand {
    font-family: 'Fredoka One', cursive;
    font-size: 2rem;
    background: linear-gradient(45deg, #FF6B6B, #4ECDC4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-link {
    color: #2C3E50;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--produto-primaria);
}

/* Loading */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--produto-primaria), var(--produto-secundaria));
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Breadcrumb */
.breadcrumb-container {
    background: rgba(255, 255, 255, 0.9);
    padding: 1rem 0;
    margin-bottom: 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.breadcrumb {
    background: transparent;
    margin-bottom: 0;
}

.breadcrumb-item a {
    color: var(--produto-primaria);
    text-decoration: none;
    font-weight: 500;
}

.breadcrumb-item a:hover {
    color: var(--produto-secundaria);
}

/* Content Section */
.content-section {
    padding: 2rem 0;
}

/* Galeria */
.galeria-principal {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    margin-bottom: 1rem;
    background: white;
    display: block;
}

.foto-principal {
    width: 100%;
    height: 400px;
    object-fit: cover;
    object-position: center;
    transition: all 0.3s ease;
    cursor: zoom-in;
    display: block;
}

.miniaturas {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.miniatura {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    object-fit: cover;
    object-position: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 3px solid transparent;
    display: inline-block;
}

.miniatura:hover,
.miniatura.ativa {
    border-color: var(--produto-primaria);
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Informações do Produto */
.produto-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: #2C3E50;
    margin-bottom: 1rem;
}

.produto-description {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 2rem;
}

.preco-destaque {
    background: linear-gradient(45deg, var(--produto-primaria), var(--produto-secundaria));
    color: white;
    padding: 1.5rem;
    border-radius: 20px;
    text-align: center;
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.preco-sub {
    font-size: 1rem;
    font-weight: normal;
    opacity: 0.9;
}

.info-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    border-left: 5px solid var(--produto-primaria);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.lista-itens,
.lista-observacoes {
    list-style: none;
    padding: 0;
}

.lista-itens li,
.lista-observacoes li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    position: relative;
    padding-left: 30px;
}

.lista-itens li:last-child,
.lista-observacoes li:last-child {
    border-bottom: none;
}

.lista-itens li::before {
    content: '✨';
    position: absolute;
    left: 0;
    color: var(--produto-primaria);
}

.lista-observacoes li::before {
    content: '⚠️';
    position: absolute;
    left: 0;
}

/* Especificações */
#produtoEspecificacoes p {
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

#produtoEspecificacoes p:last-child {
    border-bottom: none;
}

#produtoEspecificacoes strong {
    color: var(--produto-primaria);
}

/* Botões */
.btn-solicitar {
    background: linear-gradient(45deg, var(--produto-primaria), var(--produto-secundaria));
    border: none;
    color: white;
    padding: 15px 40px;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    width: 100%;
    margin-bottom: 10px;
}

.btn-solicitar:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
    color: white;
}

.btn-voltar {
    background: white;
    border: 2px solid var(--produto-primaria);
    color: var(--produto-primaria);
    padding: 12px 40px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    width: 100%;
}

.btn-voltar:hover {
    background: var(--produto-primaria);
    color: white;
    transform: translateY(-2px);
}

/* Responsivo */
@media (max-width: 768px) {
    body {
        padding-top: 70px;
    }

    .produto-title {
        font-size: 2rem;
    }

    .foto-principal {
        height: 300px;
    }
    
    .miniatura {
        width: 70px;
        height: 70px;
    }

    .preco-destaque {
        font-size: 1.5rem;
    }

    .info-card {
        padding: 1.5rem;
    }
    
    .btn-solicitar,
    .btn-voltar {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .produto-title {
        font-size: 1.7rem;
    }

    .foto-principal {
        height: 250px;
    }
    
    .miniatura {
        width: 60px;
        height: 60px;
        gap: 10px;
    }
    
    .miniaturas {
        gap: 10px;
    }
}

/* Animações */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.content-section {
    animation: fadeIn 0.6s ease-out;
}
