/* ESTILOS ESPECÍFICOS PARA PÁGINA DE PRODUTOS */
#produtos-page {
    padding: 0;
    width: 100%;
    overflow-x: hidden;
}

.produtos-header {
    background: #131313;
    background-size: cover;
    background-position: center;
    height: 500px;
    width: 100vw;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding: 2rem 1rem;
}


.produtos-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: linear-gradient(to right bottom, transparent 49%, var(--laranja) 50%);
}

.produtos-header .header-content {
    color: var(--branco);
    padding: 2rem;
    max-width: 800px;
    z-index: 1;
}
.header-content{
    margin-top: 2rem;
}

.produtos-header h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 800;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
}

.produtos-header h1 span {
    color: var(--laranja);
    position: relative;
    display: inline-block;
}

.produtos-header h1 span::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 3px;
    background-color: var(--laranja);
    bottom: -5px;
    left: 0;
}

.produtos-header p {
    font-size: 1.2rem;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}

.produto-nao-encontrado{
    display: none;
}

.categorias-produtos {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 5% 50px;
    position: relative;
}

.categoria {
    margin-bottom: 5rem;
}

.categoria-titulo {
    font-size: 2.2rem;
    color: var(--preto);
    border-bottom: none;
    padding-bottom: 0.5rem;
    margin-bottom: 2.5rem;
    position: relative;
    display: flex;
    align-items: center;
}

.categoria-titulo span {
    color: var(--laranja);
    position: relative;
    margin-left: 8px;
}

.categoria-titulo::after {
    content: "";
    flex-grow: 1;
    height: 3px;
    background:rgb(226, 226, 226);
    margin-left: 20px;
  }

.produtos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.produto-card {
    background: var(--branco);
    border-radius: 12px;
    padding: 1.8rem;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 1px solid var(--cinza-claro);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.produto-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
    border-color: var(--laranja);
}

.produto-card img {
    width: 100%;
    height: 220px;
    object-fit: contain;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    transition: transform 0.5s ease;
}

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

.produto-card h3 {
    color: var(--preto);
    margin-bottom: 0.8rem;
    font-size: 1.3rem;
    font-weight: 600;
}

.produto-card p {
    color: var(--cinza);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.produto-btn {
    display: inline-block;
    background-color: transparent;
    color: var(--laranja);
    padding: 8px 20px;
    border: 2px solid var(--laranja);
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
}

.produto-btn:hover {
    background-color: var(--laranja);
    color: var(--branco);
    transform: scale(1.05);
}

/* Efeito de aparecimento ao scroll */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.categoria {
    animation: fadeInUp 0.8s ease forwards;
    opacity: 0;
}

.categoria:nth-child(1) { animation-delay: 0.1s; }
.categoria:nth-child(2) { animation-delay: 0.2s; }
.categoria:nth-child(3) { animation-delay: 0.3s; }
.categoria:nth-child(4) { animation-delay: 0.4s; }
.categoria:nth-child(5) { animation-delay: 0.5s; }
.categoria:nth-child(6) { animation-delay: 0.6s; }
.categoria:nth-child(7) { animation-delay: 0.7s; }
.categoria:nth-child(8) { animation-delay: 0.8s; }

@media (max-width: 991px) {
    .produtos-header {
        height: 400px;
    }
    
    .produtos-header h1 {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .produtos-header {
        height: 350px;
    }
    
    .produtos-header h1 {
        font-size: 2.5rem;
    }
    
    .produtos-header::after {
        height: 50px;
    }
    
    .categoria-titulo {
        font-size: 1.8rem;
    }
    
    .produtos-grid {
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .produtos-header {
        height: 300px;
    }
    
    .produtos-header h1 {
        font-size: 2rem;
    }
    
    .produtos-header p {
        font-size: 1rem;
    }
    
    .produto-card {
        padding: 1.2rem;
    }
    
    .produto-card img {
        height: 180px;
    }
}

/* Ajustes para responsividade em dispositivos médios */
@media (max-width: 991px) {
    .produtos-header {
        height: auto;
        min-height: 400px;
        padding-bottom: 80px; /* Espaço para o elemento diagonal */
    }
    
}

/* Ajustes para dispositivos pequenos/celulares */
@media (max-width: 768px) {
    .produtos-header {
        min-height: 350px;
        padding-top: 1.5rem;
        padding-bottom: 70px;
    }
    
    .header-content {
        margin-bottom: 1rem;
    }
    
    .search-box {
        width: 100%;
    }
}

/* Ajustes para dispositivos muito pequenos */
@media (max-width: 480px) {
    .produtos-header {
        min-height: 300px;
        padding-bottom: 60px;
    }

    #search-input {
        padding: 12px 15px;
        font-size: 0.9rem;
    }
    
    #search-button {
        width: 50px;
    }
}

.search-box {
    position: relative;
    max-width: 600px;
    width: 80%;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-radius: 50px;
    overflow: hidden;
    border: 2px solid var(--branco);
    background-color: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.search-box:hover, .search-box:focus-within {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    border-color: var(--laranja);
    background-color: rgba(255, 255, 255, 0.25);
}

#search-input {
    width: calc(100% - 60px);
    padding: 15px 25px;
    border: none;
    outline: none;
    background: transparent;
    color: var(--branco);
    font-size: 1.1rem;
    font-weight: 500;
}

#search-input::placeholder {
    color: rgba(255, 255, 255, 0.8);
}

#search-button {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: 60px;
    background-color: var(--laranja);
    border: none;
    color: var(--branco);
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}


/* Estilos para indicar resultados da pesquisa */
.highlight {
    background-color: rgba(255, 165, 0, 0.2);
}

/* Responsividade */
@media (max-width: 768px) {
    .search-box {
        width: 90%;
    }
    
    #search-input {
        font-size: 1rem;
        padding: 12px 20px;
    }
}

@media (max-width: 480px) {
    .search-box {
        width: 95%;
    }
    
    #search-input {
        padding: 10px 15px;
    }
}

/* Novo layout para produtos com lista à esquerda e imagem à direita */
.produtos-container {
    display: flex;
    flex-direction: row;
    gap: 2rem;
    margin-bottom: 2rem;
}
.produtos-lista {
    flex: 2;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap; /* Permite que os itens quebrem para a próxima linha */
}

.produto-item {
    flex: 1 1 calc(50% - 1rem); /* Cada item ocupa 50% do espaço menos o gap */
    max-width: calc(50% - 1rem); /* Garante que não ultrapasse 50% */
}

@media (max-width: 1080px) {
    .produto-item {
        flex: 1 1 100%; /* Em telas menores, cada item ocupa 100% */
        max-width: 100%;
    }
}

.produtos-imagem {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.produtos-imagem img {
    max-width: 100%;
    max-height: 350px;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    transition: transform 0.5s ease;
}

.categoria:hover .produtos-imagem img {
    transform: scale(1.05);
}

.produto-item {
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem;
    background-color: var(--branco);
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    transform: all ease 0.3s;
    display: flex;
    flex-direction: column;
    max-height: 130px;
}

.detalhes-amostra {
    max-height: 10000px;
}

.produto-item:hover {
    border-left: 3px solid var(--laranja);
    transform: translateX(5px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
}

.produto-info {
    flex: 1;
}

.produto-item h3 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
    color: var(--preto);
}

.produto-item p {
    color: var(--cinza);
    font-size: 0.95rem;
    margin-bottom: 0;
}

.detalhes-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--laranja);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.detalhes-btn i {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.detalhes-btn:hover {
    background-color: rgba(var(--laranja-rgb), 0.1);
}

.detalhes-btn:hover i {
    transform: translateY(3px);
}

/* Responsividade */
@media (max-width: 991px) {
    .produtos-container {
        flex-direction: column-reverse;
    }
    
    .produtos-imagem {
        margin-bottom: 2rem;
    }
    
    .produtos-imagem img {
        max-height: 280px;
    }
}

@media (max-width: 768px) {    
    .detalhes-btn {
        align-self: flex-end;
    }
}

@media (max-width: 480px) {
    .produtos-lista {
        gap: 0.8rem;
    }
    
    .produto-item {
        padding: 1rem;
    }
    
    .produto-item h3 {
        font-size: 1.1rem;
    }
    
    .detalhes-btn {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
}

/* Adicione este CSS ao seu arquivo produtos-style.css */

.produto-detalhes {
    background-color: #f8f8f8;
    border-radius: 5px;
    padding: 15px;
    margin-top: 10px;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.detalhes-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 768px) {
    .detalhes-grid {
        grid-template-columns: 1fr;
    }
}

.detalhes-col h4 {
    color: var(--laranja);
    margin-bottom: 10px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 5px;
}

.detalhes-col ul {
    list-style-type: none;
    padding-left: 0;
}

.detalhes-col ul li {
    padding: 4px 0;
    position: relative;
    padding-left: 20px;
}

.detalhes-col ul li:before {
    content: "•";
    color: #0077cc;
    position: absolute;
    left: 0;
    font-weight: bold;
}

.solicitar-btn {
    display: flex;
    background-color: var(--laranja);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 15px;
    transition: background-color 0.3s ease;
}

.solicitar-btn:hover {
    background-color: var(--laranja);
}

.produto-item {
    transition: box-shadow 0.3s ease;
}

.produto-item:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.detalhes-btn {
    color: var(--laranja);
    transition: color 0.3s ease;
}

.detalhes-btn:hover {
    color: rgb(136, 66, 0);
    text-decoration: underline;
}

.produto-head{
    width: 100%;
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
}

/* Seção de Produtos Mais Vendidos */
.mais-vendidos {
    padding: 3rem 0;
    background-color: #f9f9f9;
    position: relative;
    overflow: hidden;
}


.mais-vendidos-titulo {
    text-align: center;
    margin-bottom: 2.5rem;
}

.mais-vendidos-titulo h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--preto);
}

.mais-vendidos-titulo span {
    color: var(--laranja);
    position: relative;
}

.mais-vendidos-titulo span::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 3px;
    background-color: var(--laranja);
    bottom: -5px;
    left: 0;
}

.mais-vendidos-titulo p {
    color: var(--cinza);
    font-size: 1.1rem;
}

.mais-vendidos-container {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.mais-vendidos-slider {
    display: flex;
    overflow-x: scroll; /* Alterado de 'auto' para 'scroll' para forçar a barra sempre visível */
    scroll-behavior: smooth;
    gap: 1.5rem;
    padding: 1rem 0.5rem 1.5rem;
    scrollbar-width: thin;
    scrollbar-color: var(--laranja) #f1f1f1;
}

.produto-slide {
    min-width: 280px;
    flex: 0 0 280px;
}
.mais-vendidos-slider::-webkit-scrollbar {
    height: 8px;
    display: block; /* Força a exibição da barra */
}

.mais-vendidos-slider::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.mais-vendidos-slider::-webkit-scrollbar-thumb {
    background: var(--laranja);
    border-radius: 10px;
}

.mais-vendidos-slider::-webkit-scrollbar-thumb:hover {
    background: #e06800;
}

/* Para IE e Edge */
.mais-vendidos-slider {
    -ms-overflow-style: scrollbar; /* Altera de 'none' para 'scrollbar' */
}

.produto-card-mv {
    background: var(--branco);
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    padding: 1.5rem;
    position: relative;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    border-bottom: 3px solid transparent;
}

.produto-card-mv:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.15);
    border-bottom: 3px solid var(--laranja);
}

.badge {
    position: absolute;
    top: -10px;
    right: -10px;
    background-color: var(--laranja);
    color: white;
    font-weight: bold;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    box-shadow: 0 3px 8px rgba(0,0,0,0.2);
    z-index: 1;
}

.produto-card-mv img {
    width: 100%;
    height: 160px;
    object-fit: contain;
    margin-bottom: 1rem;
    transition: transform 0.4s ease;
}

.produto-card-mv:hover img {
    transform: scale(1.08);
}

.produto-card-mv h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--preto);
    font-weight: 600;
}

.produto-card-mv p {
    color: var(--cinza);
    font-size: 0.95rem;
    margin-bottom: 1.2rem;
    flex-grow: 1;
}

.ver-produto-btn {
    background-color: transparent;
    color: var(--laranja);
    padding: 8px 15px;
    border: 1px solid var(--laranja);
    border-radius: 30px;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.ver-produto-btn:hover {
    background-color: var(--laranja);
    color: var(--branco);
}

/* Botões de navegação */
.navegacao-slider {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
    gap: 1rem;
}

.nav-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: white;
    border: 1px solid var(--cinza-claro);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.nav-btn:hover {
    background-color: var(--laranja);
    color: white;
    border-color: var(--laranja);
    transform: scale(1.1);
}

/* Responsividade */
@media (max-width: 1200px) {
    .mais-vendidos-container {
        padding: 0 30px;
    }
}

@media (max-width: 991px) {
    .mais-vendidos-titulo h2 {
        font-size: 2.2rem;
    }
    
    .produto-slide {
        min-width: 250px;
        flex: 0 0 250px;
    }
}

@media (max-width: 768px) {
    .mais-vendidos {
        padding: 2.5rem 0;
    }
    
    .mais-vendidos-titulo h2 {
        font-size: 2rem;
    }
    
    .mais-vendidos-container {
        padding: 0 20px;
    }
    
    .produto-slide {
        min-width: 220px;
        flex: 0 0 220px;
    }
    
    .produto-card-mv {
        padding: 1.2rem;
    }
    
    .produto-card-mv img {
        height: 140px;
    }
}

@media (max-width: 480px) {
    .mais-vendidos-titulo h2 {
        font-size: 1.8rem;
    }
    
    .mais-vendidos-titulo p {
        font-size: 1rem;
    }
    
    .produto-slide {
        min-width: 200px;
        flex: 0 0 200px;
    }
    
    .produto-card-mv {
        padding: 1rem;
    }
    
    .produto-card-mv img {
        height: 120px;
    }
    
    .ver-produto-btn {
        padding: 6px 12px;
        font-size: 0.85rem;
    }
}

/* Adicione este CSS ao final do seu arquivo produtos-style.css */

/* Efeito de destaque para os produtos */
@keyframes destacarProduto {
    0% { box-shadow: 0 0 0 rgba(255, 126, 0, 0); border-left: 3px solid transparent; }
    20% { box-shadow: 0 0 20px rgba(255, 126, 0, 0.7); border-left: 3px solid var(--laranja); }
    80% { box-shadow: 0 0 20px rgba(255, 126, 0, 0.7); border-left: 3px solid var(--laranja); }
    100% { box-shadow: 0 0 0 rgba(255, 126, 0, 0); border-left: 3px solid transparent; }
}

.produto-destacado {
    animation: destacarProduto 2s ease;
}

/* Estilo para a borda divisória após a seção de produtos mais vendidos */
.mais-vendidos::after {
    content: '';
    display: block;
    width: 90%;
    max-width: 1200px;
    height: 1px;
    background: linear-gradient(to right, transparent, #ddd, transparent);
    margin: 3rem auto 0;
}

/* Ajuste para tornar a rolagem mais suave em dispositivos touch */
@media (pointer: coarse) {
    .mais-vendidos-slider {
        scroll-snap-type: x mandatory;
        padding-bottom: 20px;
    }
    
    .produto-slide {
        scroll-snap-align: start;
    }
}

.search-produtos {
    width: 100vw;
}

.search-container {
    width: 100%;
    margin-top: 80px;
}

.search-box {
    margin-left: auto;
    margin-right: auto;
    width: 500px;
    max-width: 80vw;
}

#search-input {
    color: black;
    
}

#search-input::placeholder {
    color: rgb(153, 153, 153);
}

.link-pdf-produtos {
    text-align: center;
    margin-top: 2rem;
    font-size: 1.4rem;
    color: var(--cinza);
}

.link-pdf-produtos p {
    margin: 0;
    line-height: 1.6;
}

.link-pdf-produtos .pdf-link {
    color: var(--laranja);
    font-weight: bold;
    text-decoration: none;
    transition: color 0.3s ease;
}

.link-pdf-produtos .pdf-link:hover {
    color: rgb(136, 66, 0);
    text-decoration: underline;
}

.btn-veja-todos-produtos {
    margin-top: 3rem;
    display: inline-block;
    padding: 12px 25px;
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--branco);
    background-color: var(--laranja);
    border: none;
    border-radius: 30px;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn-veja-todos-produtos:hover {
    background-color: rgb(136, 66, 0);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.btn-veja-todos-produtos:active {
    transform: translateY(1px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}