
/* ===== PÁGINA DE DETALHES DO PRODUTO (Melhorias) ===== */

/* Layout Principal */
.produto-detalhes {
    padding: var(--spacing-12) 0;
    background-color: var(--white);
}

.produto-detalhes .produto-content {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr; /* Mais espaço para imagem */
    gap: var(--spacing-12);
    align-items: start;
}

/* Imagem Principal */
.produto-detalhes .produto-imagem {
    height: auto; /* Remover restrição de altura */
    min-height: 400px;
    max-height: 650px;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    cursor: zoom-in;
    position: relative;
    background: var(--gray-50);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--gray-100);
}

.produto-detalhes .produto-img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Mostrar imagem inteira sem cortes */
    transition: transform 0.5s ease;
    max-height: 650px;
}

.produto-detalhes .produto-imagem:hover .produto-img {
    transform: scale(1.03);
}

/* Informações do Produto */
.produto-detalhes .produto-info {
    padding: var(--spacing-2) 0;
    display: flex;
    flex-direction: column;
}

.produto-detalhes .produto-categoria {
    color: var(--white);
    font-weight: 600;
    font-size: var(--font-size-xs);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--spacing-4);
    display: inline-block;
    padding: var(--spacing-2) var(--spacing-4);
    background: linear-gradient(135deg, var(--gray-800), var(--black));
    border-radius: 50px;
    align-self: flex-start;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.produto-detalhes .produto-titulo {
    font-size: var(--font-size-4xl);
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: var(--spacing-4);
    line-height: 1.2;
}

.produto-detalhes .produto-descricao-curta {
    font-size: var(--font-size-lg);
    color: var(--gray-600);
    margin-bottom: var(--spacing-8);
    line-height: 1.6;
    border-left: 4px solid var(--black);
    padding-left: var(--spacing-5);
}

/* Características */
.produto-detalhes .produto-caracteristicas {
    margin-bottom: var(--spacing-8);
    background: var(--gray-50);
    padding: var(--spacing-8);
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--gray-200);
}

.produto-detalhes .produto-caracteristicas h3 {
    font-size: var(--font-size-lg);
    margin-bottom: var(--spacing-5);
    color: var(--gray-900);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: var(--spacing-2);
}

.produto-detalhes .produto-caracteristicas ul {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-4);
}

.produto-detalhes .produto-caracteristicas li {
    padding: var(--spacing-3);
    color: var(--gray-700);
    background: var(--white);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    gap: var(--spacing-3);
    box-shadow: 0 2px 4px rgba(0,0,0,0.03);
    transition: transform 0.2s ease;
}

.produto-detalhes .produto-caracteristicas li:hover {
    transform: translateY(-2px);
}

.produto-detalhes .produto-caracteristicas li i {
    color: var(--black);
    background: var(--gray-100);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
}

/* Botões de Ação */
.produto-detalhes .produto-acoes {
    display: flex;
    gap: var(--spacing-4);
    margin-top: auto;
    flex-wrap: wrap;
}

.produto-detalhes .btn {
    padding: var(--spacing-4) var(--spacing-8);
    font-size: var(--font-size-lg);
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-3);
    font-weight: 600;
    flex: 1;
    min-width: 200px;
}

.produto-detalhes .btn-primary {
    background: var(--industrial-blue);
    color: var(--white);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    border: none;
}

.produto-detalhes .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    background: #164263; /* Tom mais escuro do Azul Aço */
}

.produto-detalhes .btn-secondary {
    background: var(--white);
    color: var(--gray-800);
    border: 2px solid var(--gray-200);
}

.produto-detalhes .btn-secondary:hover {
    border-color: var(--black);
    color: var(--black);
    background: var(--gray-50);
}

/* Descrição Completa */
.produto-descricao-completa {
    margin-top: var(--spacing-16);
    background: var(--white);
    padding: var(--spacing-10);
    border-radius: var(--border-radius-xl);
    border: 1px solid var(--gray-200);
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
}

.produto-descricao-completa h3 {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: var(--spacing-6);
    position: relative;
    padding-bottom: var(--spacing-4);
}

.produto-descricao-completa h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--black);
    border-radius: 2px;
}

.produto-descricao-completa p {
    color: var(--gray-700);
    line-height: 1.8;
    font-size: var(--font-size-lg);
    margin-bottom: var(--spacing-4);
}

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(5px);
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.lightbox-img {
    max-width: 100%;
    max-height: 90vh;
    border-radius: var(--border-radius);
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.lightbox-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: rgba(255,255,255,0.1);
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.lightbox-close:hover {
    background: rgba(255,255,255,0.2);
    transform: rotate(90deg);
}

/* ===== CTA SECTION (Personalizado para Produto) ===== */
.cta-section {
    padding: var(--spacing-20) 0;
    background: linear-gradient(135deg, var(--industrial-black) 0%, #000000 100%);
    color: var(--white);
    position: relative;
    overflow: hidden;
    margin-top: var(--spacing-20);
    border-top: 1px solid #222;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(#333 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.1;
}

.cta-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: var(--font-size-4xl);
    font-weight: 800;
    margin-bottom: var(--spacing-6);
    color: var(--white);
    letter-spacing: -0.5px;
}

.cta-content p {
    font-size: var(--font-size-xl);
    margin-bottom: var(--spacing-10);
    color: var(--gray-400);
    line-height: 1.6;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: var(--spacing-4);
    flex-wrap: wrap;
}

.cta-buttons .btn {
    padding: var(--spacing-4) var(--spacing-8);
    font-size: var(--font-size-lg);
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-3);
    transition: all 0.3s ease;
    border-radius: var(--border-radius);
    min-width: 160px;
    justify-content: center;
}

.cta-buttons .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

/* Botão WhatsApp */
.cta-buttons .btn-primary {
    background: var(--white);
    border: 2px solid var(--white);
    color: var(--black);
    font-weight: 700;
}

.cta-buttons .btn-primary:hover {
    background: var(--gray-200);
    border-color: var(--gray-200);
    color: var(--black);
}

.cta-buttons .btn-primary i {
    color: #25D366; /* Verde WhatsApp */
    font-size: 1.2em;
}

/* Botões Secundários (Telefone, Email) */
.cta-buttons .btn-secondary {
    background: transparent;
    border: 2px solid var(--gray-500);
    color: var(--white);
    font-weight: 600;
}

.cta-buttons .btn-secondary:hover {
    border-color: var(--white);
    background: rgba(255,255,255,0.1);
    color: var(--white);
}

.cta-buttons .btn-secondary i {
    color: var(--white);
}

.cta-buttons .btn-secondary i.fa-phone::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath fill='white' d='M164.9 24.6c-7.7-18.6-28-28.5-47.4-23.2l-88 24C12.1 30.2 0 46 0 64C0 311.4 200.6 512 448 512c18 0 33.8-12.1 38.6-29.5l24-88c5.3-19.4-4.6-39.7-23.2-47.4l-96-40c-16.3-6.8-35.2-2.1-46.3 11.6L304.7 368C234.3 334.7 177.3 277.7 144 207.3L193.3 167c13.7-11.2 18.4-30 11.6-46.3l-40-96z'/%3E%3C/svg%3E") !important;
}

.cta-buttons .btn-secondary i.fa-envelope::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath fill='white' d='M48 64C21.5 64 0 85.5 0 112c0 15.1 7.1 29.3 19.2 38.4L236.8 313.6c11.4 8.5 27 8.5 38.4 0L492.8 150.4c12.1-9.1 19.2-23.3 19.2-38.4c0-26.5-21.5-48-48-48H48zM0 176V384c0 35.3 28.7 64 64 64H448c35.3 0 64-28.7 64-64V176L294.4 339.2c-22.8 17.1-54 17.1-76.8 0L0 176z'/%3E%3C/svg%3E") !important;
}

.cta-buttons .btn-secondary:hover i {
    color: var(--white);
}

/* Responsividade */
@media (max-width: 992px) {
    .produto-detalhes .produto-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-8);
    }

    .produto-detalhes .produto-imagem {
        min-height: 300px;
    }
}

@media (max-width: 576px) {
    .produto-detalhes .produto-imagem {
        min-height: 250px;
        max-height: 400px;
    }

    .produto-detalhes .produto-titulo {
        font-size: var(--font-size-2xl);
    }
    
    .produto-detalhes .produto-acoes {
        flex-direction: column;
    }
    
    .cta-content h2 {
        font-size: var(--font-size-2xl);
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .cta-buttons .btn {
        width: 100%;
    }
}
