:root {
    --primary: #00A859;
    --secondary: #00C853;
    --accent: #00E676;
    --dark: #1C1C1C;
    --darker: #0A0A0A;
    --light: #FFFFFF;
    --gray: #E8F5E9;
    --text-dark: #222222;
    --text-gray: #666666;
    --gradient: linear-gradient(135deg, var(--primary), var(--accent));
    --hover-bg: rgba(0, 168, 89, 0.1);
    --border-color: rgba(0, 168, 89, 0.1);
    --shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    --logo-min-width: 20mm;
    --logo-protection-area: 20%;
    --partner-logo-scale: 0.6;
    --logo-spacing: 1rem;
    --max-logo-height: 86px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', sans-serif;
    background: var(--light);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
}

.logo img {
    height: var(--max-logo-height);
    width: auto;
}

.partner-logos {
    display: flex;
    align-items: center;
    gap: var(--logo-spacing);
}

.partner-logos img {
    height: calc(var(--max-logo-height)*var(--partner-logo-scale));
    width: auto;
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: black;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: 0.3s;
    font-weight: 500;
}

.nav-link:hover {
    color: var(--accent);
    background: var(--hover-bg);
}

.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    color: black;
    cursor: pointer;
}

.produto-hero {
    padding-top: 120px;
    background: linear-gradient(to bottom, var(--gray) 0%, #ffffff 100%);
    padding-bottom: 3rem;
}

.produto-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2.5rem;
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 3rem;
    align-items: start;
}

.produto-imagem {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: zoom-in;
    transition: box-shadow 0.3s ease;
    min-height: 500px;
}

.produto-imagem:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.produto-imagem img {
    max-width: 100%;
    max-height: 400px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

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

.thumbnails {
    margin-top: 1.5rem;
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    max-width: 100%;
    padding: 0.5rem;
    scrollbar-width: thin;
}

.thumbnails::-webkit-scrollbar {
    height: 6px;
}

.thumbnails::-webkit-scrollbar-thumb {
    background-color: var(--primary);
    border-radius: 3px;
}

.thumbnail {
    flex: 0 0 auto;
    width: 55px;
    border: 2px solid transparent;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    padding: 0.3rem;
}

.produto-info {
    max-width: 700px;
}

.produto-info h1 {
    color: var(--primary);
    font-size: 2.25rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    font-weight: 600;
}

.produto-categoria {
    display: inline-flex;
    align-items: center;
    padding: 0.6rem 1.2rem;
    background: var(--hover-bg);
    color: var(--primary);
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-weight: 500;
    font-size: 0.95rem;
}

.produto-descricao {
    color: var(--text-gray);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    white-space: pre-wrap;
    word-wrap: break-word;
    max-height: 300px;
    overflow-y: auto;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 12px;
    border-left: 4px solid var(--primary);
}

.produto-descricao::-webkit-scrollbar {
    width: 6px;
}

.produto-descricao::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 3px;
}

.produto-specs {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(66, 230, 16, 0.06);
    margin-bottom: 2rem;
}

.fas.fa-check {
    color: green;
}

.specs-lista {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.specs-lista li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: 0.3s;
    border: none;
    cursor: pointer;
}

.button-primary {
    background: var(--gradient);
    color: white;
    box-shadow: var(--shadow);
}

.button-outline {
    border: 2px solid var(--primary);
    color: var(--primary);
    background: transparent;
}

.button:hover {
    transform: translateY(-3px);
}

.footer {
    background: white;
    padding: 4rem 2rem 2rem;
    border-top: 1px solid var(--border-color);
    margin-top: 4rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: var(--accent);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-section p {
    color: black;
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: black;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: var(--accent);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    color: black;
    font-size: 1.5rem;
    transition: color 0.3s;
}

.social-links a:hover {
    color: var(--accent);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 168, 89, 0.1);
}

.footer-bottom p {
    color: black;
    font-size: 0.9rem;
}

.footer .partner-logos {
    display: flex;
    align-items: center;
    gap: var(--logo-spacing);
}

.footer .partner-logos img {
    height: calc(var(--max-logo-height)*var(--partner-logo-scale));
    width: auto;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
    z-index: 2000;
    padding: 20px;
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: grab;
}

.modal img {
    max-width: calc(100vw - 120px);
    max-height: calc(100vh - 120px);
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
    transform-origin: center center;
}

.close-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    font-size: 2rem;
    border: none;
    cursor: pointer;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2002;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.modal-nav-btn {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.8);
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    padding: 1rem;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    transition: background 0.3s;
    z-index: 2002;
}

.modal-nav-btn:hover {
    background: var(--accent);
    color: #fff;
}

.modal-nav-btn.prev {
    left: 20px;
}

.modal-nav-btn.next {
    right: 20px;
}

/* New quotation form styles */
.quotation-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2001;
}

.quotation-modal.active {
    display: flex;
}

.quotation-form {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    width: 90%;
    max-width: 600px;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.quotation-form h2 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    min-height: 100px;
    resize: vertical;
    white-space: pre-wrap;
    word-wrap: break-word;
    line-height: 1.6;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.product-preview {
    background: var(--gray);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.product-preview img {
    max-width: 100px;
    height: auto;
}

.product-preview-info {
    flex: 1;
}

.close-form {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-gray);
    cursor: pointer;
}

@media(max-width:768px) {
    .mobile-toggle {
        display: block;
        color: black;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--light);
        padding: 1rem;
        flex-direction: column;
        text-align: center;
        box-shadow: var(--shadow);
    }

    .nav-menu.active {
        display: flex;
    }

    .produto-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 1rem;
    }

    .nav-link {
        width: 100%;
        text-align: center;
        padding: 12px;
    }

    .nav-link:hover {
        background-color: var(--hover-bg);
    }

    .produto-imagem {
        height: auto;
    }

    .produto-acoes {
        flex-direction: column;
    }

    .modal {
        padding: 10px;
    }

    .modal img {
        max-width: calc(100vw - 60px);
        max-height: calc(100vh - 60px);
    }

    .close-btn {
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }

    .modal-nav-btn {
        font-size: 1.5rem;
        padding: 0.8rem;
    }

    .modal-nav-btn.prev {
        left: 10px;
    }

    .modal-nav-btn.next {
        right: 10px;
    }

    .header {
        background: white;
    }
}

@media(max-width:480px) {
    .thumbnail {
        width: 50px;
        height: 50px;
    }

    .modal {
        padding: 5px;
    }

    .modal img {
        max-width: calc(100vw - 30px);
        max-height: calc(100vh - 30px);
    }

    .close-btn {
        top: 5px;
        right: 5px;
        width: 35px;
        height: 35px;
        font-size: 1.2rem;
    }

    .modal-nav-btn {
        font-size: 1.2rem;
        padding: 0.6rem;
    }

    .modal-nav-btn.prev {
        left: 5px;
    }

    .modal-nav-btn.next {
        right: 5px;
    }
}