/* Estilos globais do site */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #f8fafc;
    color: #0f172a;
    padding-top: 80px; /* Espaço para o header fixo */
}

/* Page header (shared between pages like Política and Index) */
.page-header {
    text-align: center;
    margin: 40px auto 30px;
    border-bottom: 2px solid #f0f0f0;
    padding: 40px 0 20px;
}
.page-header h1 {
    font-size: 2.2rem;
    color: #1a1a1a;
    margin-bottom: 10px;
}
.page-header p {
    color: #666;
    font-size: 0.95rem;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

#especificacoes {
    position: relative;
    scroll-margin-top: 140px;
}

#especificacoes::before {
    content: '';
    display: block;
    height: 140px;
    margin-top: -140px;
    visibility: hidden;
}

.specs-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    margin-top: 40px;
}

.specs-image {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
}

.specs-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 18px;
}

.specs-list li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    color: #475569;
    line-height: 1.7;
}

.specs-list li i {
    color: #2563eb;
    margin-top: 4px;
    min-width: 20px;
}

@media (max-width: 992px) {
    .specs-container {
        grid-template-columns: 1fr;
    }
    .specs-image {
        min-height: 260px;
    }
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1200px;
    margin: auto;
    padding: 0 24px;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid #e2e8f0;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-box {
    width: 40px;
    height: 40px;
    background: #2563eb;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
}

.nav-links {
    display: flex;
    gap: 32px;
    font-weight: 500;
    align-items: center;
}

.nav-links a {
    color: #475569;
    position: relative;
    padding: 8px 0;
    transition: color 0.3s;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #2563eb;
    transition: width 0.3s ease-out;
}

.nav-links a:hover {
    color: #2563eb;
}

.nav-links a:hover::after {
    width: 100%;
}

.active-link {
    color: #2563eb !important;
}

.active-link::after {
    width: 100% !important;
}

.btn-primary {
    background: #2563eb;
    color: white;
    padding: 10px 20px;
    border-radius: 999px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: 0.3s;
}

.btn-primary:hover {
    background: #1d4ed8;
}

.btn-secondary {
    border: 2px dashed #cbd5e1;
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: bold;
    cursor: pointer;
    background: white;
    transition: 0.3s;
}

.btn-secondary:hover {
    background: #f1f5f9;
}

.cart-btn {
    position: relative;
    background: #f1f5f9;
    border: none;
    cursor: pointer;
    padding: 10px 16px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #0f172a;
    transition: 0.3s;
    text-decoration: none;
}

.cart-btn:hover {
    background: #e2e8f0;
}

.cart-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: #2563eb;
    color: white;
    border-radius: 999px;
    width: 20px;
    height: 20px;
    font-size: 11px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    position: relative;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 18px;
}

.user-name {
    color: #475569;
    font-weight: 600;
    font-size: 14px;
}

.user-dropdown {
    display: none;
    position: absolute;
    top: 50px;
    right: 0;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    min-width: 180px;
    z-index: 100;
}

.user-dropdown.active {
    display: block;
}

.user-dropdown a {
    display: block;
    padding: 12px 16px;
    color: #475569;
    font-size: 14px;
    transition: 0.3s;
    border-bottom: 1px solid #e2e8f0;
}

.user-dropdown a:last-child {
    border-bottom: none;
}

.user-dropdown a:hover {
    background: #f1f5f9;
    color: #2563eb;
}

.hero {
    padding: 100px 0;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.badge {
    display: inline-block;
    background: #dbeafe;
    color: #1d4ed8;
    padding: 6px 16px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
}

.hero h1 {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.2;
    margin: 20px 0;
}

.highlight {
    color: #2563eb;
}

.hero p {
    font-size: 18px;
    color: #475569;
    margin-bottom: 20px;
    max-width: 500px;
}

.hero-image {
    background: white;
    padding: 24px;
    border-radius: 24px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.section {
    padding: 100px 0;
}

.section-white {
    background: white;
}

.section-gray {
    background: #f1f5f9;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 40px;
}

.benefits-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: 28px;
    margin-top: 40px;
}

#beneficios h2 {
    text-align: center;
    margin-bottom: 32px;
}

.benefits-card {
    background: white;
    flex: 0 1 calc(33.333% - 24px);
    max-width: calc(33.333% - 24px);
    min-width: 260px;
    box-sizing: border-box;
    padding: 34px 30px;
    border-radius: 28px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.benefits-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 22px 45px rgba(15, 23, 42, 0.12);
}

.benefits-icon {
    width: 72px;
    height: 72px;
    border-radius: 22px;
    display: grid;
    place-items: center;
    background: rgba(37, 99, 235, 0.16);
    color: #2563eb;
    font-size: 28px;
}

.benefits-card h3 {
    font-size: 1.5rem;
    margin: 0;
    color: #0f172a;
}

.benefits-card p {
    color: #475569;
    line-height: 1.8;
    margin: 0;
}

.card {
    background: #f8fafc;
    padding: 24px;
    border-radius: 24px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, z-index 0s;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative; 
    z-index: 1;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    z-index: 50;
}

.card-img {
    background: #f8fafc;
    height: 260px;
    border-radius: 24px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 18px;
    transition: transform 0.35s ease, filter 0.35s ease;
    transform: scale(1);
    transform-origin: center center;
    cursor: zoom-in;
}

.card-img:hover img {
    transform: scale(1.22);
    filter: saturate(1.08) brightness(1.04);
}

.image-lightbox {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2147483650;
}

.image-lightbox.open {
    display: flex;
}

.image-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.85);
}

.image-lightbox-content {
    position: relative;
    max-width: 92vw;
    max-height: 92vh;
    width: 100%;
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.image-lightbox-content img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    border-radius: 18px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

/* Zoom / pan styles */
.image-lightbox-viewport {
    position: relative;
    overflow: hidden;
    max-width: 100%;
    max-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-lightbox-content img.image-zoomable {
    will-change: transform;
    cursor: grab;
    transition: transform 120ms ease-out;
    touch-action: none;
}
.image-lightbox-content img.image-zoomable:active {
    cursor: grabbing;
}

.image-lightbox-toolbar {
    position: absolute;
    left: 16px;
    bottom: 16px;
    display: flex;
    gap: 8px;
    z-index: 3;
}
.image-lightbox-toolbar button {
    background: rgba(255,255,255,0.92);
    border: none;
    padding: 8px 10px;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(2,6,23,0.12);
    font-weight: 700;
}
.image-lightbox-toolbar button:hover { background: rgba(255,255,255,1); }

.image-lightbox-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    color: #102a43;
    font-size: 24px;
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: background 0.2s ease;
}

.image-lightbox-close:hover {
    background: rgba(255, 255, 255, 1);
}

.card:hover .card-img {
    transform: translateY(-2px);
}

@media (max-width: 992px) {
    .card-img {
        height: 240px;
    }
}

@media (max-width: 600px) {
    .card-img {
        height: 280px;
        padding: 12px;
    }
}

.price {
    font-weight: bold;
    color: #2563eb;
    margin-top: auto;
    padding-top: 16px;
    font-size: 20px;
}

.btn-carrinho {
    width: 100%;
    margin-top: 12px;
    background: #2563eb;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    font-size: 15px;
}

.btn-carrinho:hover {
    background: #1d4ed8;
}

.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: #0f172a;
    color: white;
    padding: 14px 20px;
    border-radius: 12px;
    font-weight: 600;
    z-index: 9999;
    transform: translateY(100px);
    opacity: 0;
    transition: 0.3s;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

footer {
    background: #0f172a;
    color: #94a3b8;
    padding: 60px 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

footer h4 {
    color: white;
    margin-bottom: 16px;
}

footer ul {
    list-style: none;
}

footer ul li {
    margin-bottom: 8px;
}

footer a:hover {
    color: #60a5fa;
}

.footer-bottom {
    text-align: center;
    font-size: 12px;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #1e293b;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.about-image {
    background: white;
    padding: 16px;
    border-radius: 24px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.team-section {
    margin-top: 80px;
    text-align: center;
    border-top: 1px solid #e2e8f0;
    padding-top: 60px;
}

.benefits-team {
    border-top: none;
    padding-top: 0;
}

.team-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 32px;
    margin-top: 40px;
}

.benefits-team .team-member {
    width: calc(33.333% - 21.33px);
    min-width: 280px;
}

.benefits-team .member-photo {
    width: 80px;
    height: 80px;
    border-radius: 24px;
    background: rgba(37, 99, 235, 0.12);
    border: none;
}

.benefits-team .member-photo i {
    font-size: 28px;
    color: #2563eb;
}

.benefits-team .member-role {
    display: none;
}

.benefit-text {
    font-size: 16px;
    color: #475569;
    line-height: 1.8;
    margin-top: 12px;
}

.team-member {
    background: white;
    padding: 24px;
    border-radius: 24px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    width: calc(25% - 32px);
    min-width: 220px;
    text-align: center;
    transition: transform 0.3s ease;
}

.team-member-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.team-member:hover {
    transform: translateY(-5px);
}

.member-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: #e2e8f0;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 4px solid #f8fafc;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.member-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.member-name {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 4px;
}

.member-role {
    font-size: 14px;
    color: #2563eb;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

@media (max-width: 992px) {
    .hero-grid,
    .about-grid {
        grid-template-columns: 1fr;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .products-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .nav-links {
        display: none;
    }
}
