:root {
    --primary: #4CAF50;
    --secondary: #FF9800;
    --dark: #333;
    --light: #f8f8f8;
    --gray: #777;
    --white: #fff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background-color: var(--light);
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header */
header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
}

.logo img {
    height: 90px;
    margin-right: 10px;
}

nav ul {
    display: flex;
}

nav li {
    margin: 0 15px;
    position: relative;
}

nav a {
    font-weight: 500;
    transition: color 0.3s;
}

nav a:hover {
    color: var(--primary);
}

.dropdown-menu {
    position: absolute;
    background-color: var(--white);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    padding: 10px 0;
    min-width: 200px;
    top: 100%;
    left: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s;
    border-radius: 5px;
    z-index: 100;
}

nav li:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    margin: 0;
    padding: 8px 20px;
}

.mobile-menu-btn {
    display: none;
    font-size: 24px;
    cursor: pointer;
}

/* Hero Section */


.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
    animation: fadeInDown 1s;
}

.hero p {
    font-size: 20px;
    margin-bottom: 30px;
    animation: fadeInUp 1s;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--primary);
    color: var(--white);
    border-radius: 30px;
    font-weight: 500;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: var(--secondary);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Sections */


.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 36px;
    color: var(--primary);
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--secondary);
}

/* About Section */
.about {
    background-color: var(--white);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-content p {
    margin-bottom: 20px;
    font-size: 18px;
    line-height: 1.8;
}

/* Categories */
.categories {
    background-color: var(--white);
}

.category-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.category-tab {
    padding: 10px 20px;
    margin: 0 10px 10px;
    background-color: var(--light);
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s;
}

.category-tab.active, .category-tab:hover {
    background-color: var(--primary);
    color: var(--white);
}


/*Product Section */

/* Adicione estas regras ao seu arquivo style.css existente */

/* Products Section - Atualizado */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.product-card {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.product-img {
    height: 180px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
   /* background-color: #f5f5f5;*/
}

.product-img img {

    object-fit: cover;
    transition: transform 0.5s;
}

.product-info {
    padding: 15px;
}

.product-info h3 {
    font-size: 16px;
    margin-bottom: 8px;
    line-height: 1.3;
    height: 2.6em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-info p {
    color: var(--gray);
    margin-bottom: 12px;
    font-size: 13px;
    line-height: 1.4;
    max-height: 20em; /* Aproximadamente 7 linhas */
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 7;
    -webkit-box-orient: vertical;
}

/* Melhorias para telas maiores */
@media (min-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 15px;
    }
    
    .product-img {
        height: 160px;
    }
    
    .product-img img {
        width: 120px;
        height: 140px;
    }
}

/* Ajustes para responsividade em telas menores */
@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 15px;
    }
    
    .product-img {
        height: 140px;
    }
    
    .product-img img {
        width: 140px;
        height: 140px;
    }
    
    .product-info {
        padding: 10px;
    }
    
    .product-info h3 {
        font-size: 14px;
    }
    
    .product-info p {
        font-size: 12px;
        -webkit-line-clamp: 5;
        max-height: 6.5em;
    }
}

/* Contact Form */
.contact {
    background-color: var(--light);
}

.form-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.form-tab {
    padding: 12px 30px;
    margin: 0 10px;
    background-color: var(--white);
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.form-tab.active, .form-tab:hover {
    background-color: var(--primary);
    color: var(--white);
}

.form-container {
    background-color: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    display: none;
}

.form-container.active {
    display: block;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-control:focus {
    border-color: var(--primary);
    outline: none;
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px;
}

.form-col {
    flex: 1;
    padding: 0 10px;
    min-width: 250px;
}

/* Footer */
footer {
    background-color: var(--dark);
    color: var(--white);
    padding: 60px 0 30px;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-col h3 {
    font-size: 18px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--primary);
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.social-icons {
    display: flex;
    margin-top: 20px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255,255,255,0.1);
    border-radius: 50%;
    margin-right: 10px;
    transition: all 0.3s;
}

.social-icons a:hover {
    background-color: var(--primary);
    transform: translateY(-3px);
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Adicione isso ao seu arquivo style.css */

/* Correção para dropdowns no desktop */
@media (min-width: 993px) {
    .has-dropdown:hover .dropdown-menu {
        display: block;
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    
    .has-dropdown .dropdown-menu {
        display: none;
    }
}

/* Correção para dropdowns no mobile */
@media (max-width: 992px) {
    .has-dropdown.active .dropdown-menu {
        display: block;
    }
}



/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.7);
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 20px;
    border-radius: 10px;
    width: 90%;
    max-width: 1000px;
    position: relative;
    animation: modalFadeIn 0.3s;
}

@keyframes modalFadeIn {
    from {opacity: 0; transform: translateY(-50px);}
    to {opacity: 1; transform: translateY(0);}
}

.close-modal {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    right: 20px;
    top: 15px;
    cursor: pointer;
}

.close-modal:hover,
.close-modal:focus {
    color: var(--dark);
    text-decoration: none;
}

.modal-header {
    padding: 10px 0 20px;
    border-bottom: 1px solid #eee;
}

.modal-header h3 {
    color: var(--primary);
    margin-right: 30px;
}

.modal-body {
    display: flex;
    flex-wrap: wrap;
    margin-top: 20px;
}

.product-image-container {
    flex: 1;
    min-width: 400px;
    text-align: center;
    padding: 10px;
}

.product-image-container img {
    max-width: 400px;
    max-height: 400px;
    object-fit: contain;
}

.product-specifications {
    flex: 2;
    min-width: 350px;
    padding: 10px;
}

.product-specifications h4 {
    color: var(--primary);
    margin-bottom: 15px;
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
}

.specs-table th,
.specs-table td {
    padding: 8px 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.specs-table th {
    background-color: #f8f8f8;
    font-weight: 600;
}

.specs-category {
    background-color: #f0f0f0;
    font-weight: bold;
}

@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 10% auto;
        padding: 15px;
    }
    
    .modal-body {
        flex-direction: column;
        gap: 30px;
    }
    
    .product-image-container,
    .product-specifications {
        min-width: 350px;
    }
}




/*Elemento do texto oculto*/
.hide-code {
    display: none;
}



/* Product Link Styles */
.product-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform 0.3s;
}

.product-link:hover {
    transform: translateY(-5px);
    text-decoration: none;
    color: inherit;
}

.product-code {
    display: block;
    margin-top: 10px;
    font-size: 12px;
    color: #666;
    font-weight: 500;
}


/* Estilos para página de detalhes do produto */
.product-details {
    padding: 60px 0;
    background-color: var(--light);
}

.breadcrumb {
    margin-bottom: 30px;
    font-size: 14px;
    color: var(--gray);
}

.breadcrumb a {
    color: var(--primary);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.product-detail-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.product-images {
    flex: 1;
    min-width: 400px;
}

.main-image {
    text-align: center;
    margin-bottom: 20px;
}

.main-image img {
    max-width: 100%;
    max-height: 400px;
    object-fit: contain;
}

.image-thumbnails {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.thumbnail {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border: 2px solid transparent;
    border-radius: 5px;
    cursor: pointer;
    transition: border-color 0.3s;
}

.thumbnail.active,
.thumbnail:hover {
    border-color: var(--primary);
}

.product-info-detail {
    flex: 1;
    min-width: 300px;
}

.product-info-detail h1 {
    font-size: 28px;
    color: var(--dark);
    margin-bottom: 15px;
}

.product-line-badge {
    display: inline-block;
    background-color: var(--primary);
    color: var(--white);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 20px;
}

.product-description {
    margin-bottom: 30px;
    line-height: 1.8;
}

.product-codes {
    margin-bottom: 30px;
}

.product-codes h3 {
    margin-bottom: 15px;
    color: var(--dark);
}

.codes-table {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--light);
    border-radius: 5px;
    overflow: hidden;
}

.codes-table th,
.codes-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.codes-table th {
    background-color: var(--primary);
    color: var(--white);
    font-weight: 600;
}

.codes-table tr:hover {
    background-color: rgba(76, 175, 80, 0.1);
}

.product-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
}

.btn-secondary {
    background-color: var(--gray);
    color: var(--white);
}

.btn-primary:hover {
    background-color: #45a049;
}

.btn-secondary:hover {
    background-color: #666;
}

/* Responsividade para página de detalhes */
@media (max-width: 768px) {
    .product-detail-container {
        flex-direction: column;
        padding: 20px;
    }
    
    .product-images,
    .product-info-detail {
        min-width: 100%;
    }
    
    .product-actions {
        flex-direction: column;
    }
    
    .product-actions .btn {
        width: 100%;
        text-align: center;
    }
}´



/* ===== ESTILOS PARA FILTROS ===== */

/* Estilo para quando não há produtos */
.no-products {
    background-color: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    text-align: center;
    grid-column: 1 / -1;
}

.no-products h3 {
    color: var(--dark);
    margin-bottom: 15px;
    font-size: 24px;
}

.no-products p {
    color: var(--gray);
    margin-bottom: 20px;
    font-size: 16px;
}

/* Botão voltar para todos os produtos */
.back-to-all {
    grid-column: 1 / -1;
    text-align: center;
    margin-bottom: 30px;
}

.back-to-all .btn {
    background-color: var(--gray);
    padding: 12px 25px;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.back-to-all .btn:hover {
    background-color: #666;
    transform: translateY(-2px);
}

.back-to-all .btn i {
    margin-right: 8px;
}

/* Melhorar a visualização dos produtos filtrados */
.products-grid:has(.no-products) {
    display: block;
}

/* Destaque para produtos filtrados */
.product-card[data-filtered="true"] {
    border: 2px solid var(--primary);
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.2);
}

/* Responsividade para mensagens de filtro */
@media (max-width: 768px) {
    .no-products {
        padding: 20px;
        margin: 0 10px;
    }
    
    .no-products h3 {
        font-size: 20px;
    }
    
    .back-to-all .btn {
        width: 90%;
        padding: 15px;
    }
}




/* Garantir que os dropdowns funcionem no mobile */
.has-dropdown.active .dropdown-menu {
    display: block;
}

/* Estilo para menu mobile quando aberto */
nav.active {
    display: block;
}

/* Transição suave para dropdowns */
.dropdown-menu {
    transition: all 0.3s ease;
}