/* Estilos específicos para páginas de produtos */

.produto-hero {
    background: linear-gradient(135deg, #001864 0%, #1a4ba1 100%);
    color: white;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.produto-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../img/banner/pintura-de-maquinas.jpg') center/cover;
    opacity: 0.1;
    z-index: 1;
}

.produto-hero .container {
    position: relative;
    z-index: 2;
}

.produto-hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    color: white !important;
}

.produto-hero p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 0;
}

.produto-content {
    padding: 80px 0;
    background: #f8f9fa;
}

.produto-image-section {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    overflow: hidden;
    margin-bottom: 40px;
    position: sticky;
    top: 100px;
    z-index: 0;
    display: flex;
    flex-direction: column;
    min-height: 350px;
}

/* Imagem principal removida - apenas slider */

.produto-image-gallery {
    padding: 0;
    background: white;
    border-radius: 15px;
}

.produto-image-gallery .autoplay {
    border-radius: 15px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    padding: 20px;
}

.produto-image-gallery img {
    border-radius: 15px;
    transition: transform 0.3s ease;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 500px;
    object-fit: contain;
    object-position: center;
}

/* Garantir que imagens verticais sejam exibidas corretamente */
.produto-image-gallery .slick-slide {
    display: flex !important;
    align-items: center;
    justify-content: center;
    min-height: 300px;
}

/* Regra específica para imagens verticais */
.produto-image-gallery img[style*="height"] {
    min-height: 250px;
    min-width: 200px;
}

/* Garantir tamanho mínimo para todas as imagens */
.produto-image-gallery img {
    min-width: 250px;
    min-height: 200px;
}

.produto-image-gallery img:hover {
    transform: scale(1.05);
}

.produto-info {
    background: white;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    height: fit-content;
}

.produto-info h2 {
    color: #001864;
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 25px;
    position: relative;
}

.produto-info h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background: #001864;
    border-radius: 2px;
}

.produto-info h3 {
    color: #001864;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 30px 0 15px 0;
    position: relative;
}

.produto-info h3::before {
    content: '◆';
    color: #001864;
    margin-right: 10px;
    font-size: 0.8em;
}

.produto-info p {
    color: #506172;
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 20px;
}

.produto-info strong {
    color: #001864;
    font-weight: 600;
}

.produto-info ul {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.produto-info ul li {
    color: #506172;
    padding: 8px 0;
    position: relative;
    padding-left: 25px;
}

.produto-info ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #001864;
    font-weight: bold;
}

.produto-cta {
    background: linear-gradient(135deg, #001864 0%, #1a4ba1 100%);
    color: white;
    padding: 60px 0;
    text-align: center;
}

.produto-cta h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: white !important;
}

.produto-cta p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.9;
    color: white !important;
}

.produto-btn {
    background: white;
    color: #001864;
    padding: 15px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    display: inline-block;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.produto-btn:hover {
    background: #001864;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    text-decoration: none;
}

.produto-features {
    background: white;
    padding: 60px 0;
}

.produto-features .feature-item {
    text-align: center;
    padding: 30px 20px;
    border-radius: 10px;
    transition: all 0.3s ease;
    height: 100%;
}

.produto-features .feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.produto-features .feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #001864 0%, #1a4ba1 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 2rem;
}

.produto-features h3 {
    color: #001864;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.produto-features p {
    color: #506172;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Responsividade */
@media (max-width: 768px) {
    .produto-hero h1 {
        font-size: 2rem;
    }
    
    .produto-hero p {
        font-size: 1rem;
    }
    
    .produto-info {
        padding: 25px;
        margin-top: 30px;
    }
    
    .produto-info h2 {
        font-size: 1.8rem;
    }
    
    .produto-cta h2 {
        font-size: 2rem;
    }
    
    .produto-btn {
        padding: 12px 30px;
        font-size: 1rem;
    }
    
    /* Desabilitar sticky em dispositivos móveis */
    .produto-image-section {
        position: static;
        top: auto;
    }
}

/* Ajustar sticky para tablets */
@media (min-width: 769px) and (max-width: 1024px) {
    .produto-image-section {
        top: 80px;
    }
}

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

.produto-content .row > div {
    animation: fadeInUp 0.6s ease-out;
}

.produto-content .row > div:nth-child(2) {
    animation-delay: 0.2s;
}

/* Melhorias no breadcrumb */
.breadcrumb-custom {
    background: transparent;
    padding: 0;
    margin: 0;
}

/* Garantir que o h1 e breadcrumb mantenham a cor branca */
.produto-hero .text-center h1,
.produto-hero .text-center .breadcrumb-custom,
.produto-hero .text-center .breadcrumb-custom * {
    color: white !important;
}

/* Estilos para os botões Leia mais/menos */
.produto-readmore-btn,
.produto-readless-btn {
    background: #001864;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: "Poppins", sans-serif;
}

.produto-readmore-btn:hover,
.produto-readless-btn:hover {
    background: #1a4ba1;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.produto-readless-btn {
    background: #666;
}

.produto-readless-btn:hover {
    background: #888;
}

.produto-expanded-content {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.breadcrumb-custom .breadcrumb-item {
    color: rgba(255,255,255,0.8) !important;
}

.breadcrumb-custom .breadcrumb-item a {
    color: rgba(255,255,255,0.8) !important;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-custom .breadcrumb-item a:hover {
    color: white !important;
}

.breadcrumb-custom .breadcrumb-item.active {
    color: white !important;
}

.breadcrumb-custom .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255,255,255,0.6) !important;
    content: ">";
} 