/* ==========================================
   1. HERO COLLAGE (EDITORIAL PREMIUM - COMPILADO)
   ========================================== */
.product-hero {
    background-color: var(--dark-deep);
    padding: 100px 0 120px 0;
    overflow: hidden;
    position: relative;
}

.product-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at 10% 20%, rgba(245, 106, 37, 0.04) 0%, transparent 50%),
                      radial-gradient(circle at 90% 80%, rgba(245, 106, 37, 0.04) 0%, transparent 50%);
    pointer-events: none;
}

/* Split container: 2 columns */
.hero-split-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 80px;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* Left column (520px width) */
.hero-left-column {
    flex: 0 0 520px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.brand-badge {
    background: rgba(245, 106, 37, 0.1);
    color: var(--primary);
    padding: 8px 16px;
    font-size: 11px;
    letter-spacing: 3px;
    font-weight: 700;
    border-radius: 50px;
    text-transform: uppercase;
    margin-bottom: 24px;
    border: 1px solid rgba(245, 106, 37, 0.2);
}

.hero-brand-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 28px;
}

.hero-brand-icon-img {
    height: 64px;
    width: auto;
}

.hero-brand-logo-img {
    height: 58px;
    width: auto;
}

.hero-main-title {
    font-family: var(--font-title);
    font-size: 46px;
    line-height: 1.15;
    font-weight: 800;
    color: var(--text-light);
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.hero-desc-text {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-muted);
    margin-bottom: 36px;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.btn-primary-cta {
    background: var(--primary);
    color: #ffffff !important;
    border: none;
    padding: 16px 36px;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 1px;
    border-radius: 50px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 8px 24px rgba(245, 106, 37, 0.25);
    cursor: pointer;
}

.btn-primary-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(245, 106, 37, 0.45);
    background: #ff752f;
    color: #ffffff !important;
}

.btn-primary-cta:active {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(245, 106, 37, 0.3);
}

.btn-secondary-cta {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #2c3e50; /* Alta legibilidade em fundos claros */
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.btn-circle-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #e8f9ed; /* Fundo verde WhatsApp suave e visível */
    border: 1px solid #c7ebd1; /* Borda verde suave */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #25d366; /* Ícone WhatsApp */
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.12);
}

.btn-secondary-cta:hover .btn-circle-icon {
    transform: scale(1.08) translateY(-2px);
    background: #25d366;
    color: #ffffff; /* Ícone fica branco no fundo verde sólido */
    border-color: #25d366;
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.3);
}

.btn-secondary-cta:hover {
    color: #25d366; /* Texto muda para verde no hover */
}

/* Right column (mosaic grid container) */
.hero-right-column {
    flex: 0 0 auto;
    display: flex;
    justify-content: flex-end;
}

/* The Mosaic Grid */
.hero-mosaic-grid {
    display: grid;
    grid-template-columns: 220px 280px;
    grid-template-rows: 220px 140px 274px;
    gap: 20px;
    position: relative;
}

/* Base styles for all mosaic blocks */
.hero-mosaic-grid > div {
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(255, 255, 255, 0.02);
}

.hero-mosaic-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-mosaic-grid > div:hover img {
    transform: scale(1.05);
}

/* Card 1: Metrics (Solid Orange) */
.mosaic-card-metrics {
    grid-column: 1;
    grid-row: 1;
    background: var(--primary) !important;
    border: none !important;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #ffffff;
}

.avatar-group {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
}

.avatar-dot {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    margin-right: -6px;
}

.avatar-dot:last-child {
    margin-right: 0;
}

.metric-value {
    font-family: var(--font-title);
    font-size: 26px;
    font-weight: 800;
    line-height: 1;
    margin: 8px 0;
    letter-spacing: -0.5px;
}

.metric-label {
    font-size: 11.5px;
    line-height: 1.4;
    opacity: 0.9;
    font-weight: 500;
}

/* Card 2: Inputs (Bottom Left) */
.mosaic-card-inputs {
    grid-column: 1;
    grid-row: 2;
}

.card-overlay-label {
    position: absolute;
    bottom: 16px;
    left: 20px;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    padding: 6px 14px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 50px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Card 3: Portrait (Top Right, Vertical Span) */
.mosaic-card-portrait {
    grid-column: 2;
    grid-row: 1 / 3; /* Spans rows 1 and 2 */
}

/* Card 4: Banner (Bottom landscape, spans full width) */
.mosaic-card-banner {
    grid-column: 1 / 3;
    grid-row: 3;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mosaic-card-banner img {
    object-position: center;
}

.banner-overlay-dark {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(15, 23, 42, 0.8) 0%, rgba(15, 23, 42, 0.3) 100%);
    pointer-events: none;
}

.banner-title {
    position: absolute;
    left: 32px;
    color: #ffffff;
    font-family: var(--font-title);
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

/* Decorative circular badge */
.mosaic-circle-badge {
    position: absolute;
    left: 172px; /* centered horizontally between the columns */
    top: 172px;  /* positioned over the grid intersection */
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: var(--dark-deep);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.circular-text-svg {
    width: 100%;
    height: 100%;
    animation: rotateText 15s linear infinite;
}

.circular-text {
    font-family: var(--font-body);
    font-size: 8.5px;
    font-weight: 700;
    fill: var(--text-muted);
    letter-spacing: 1.5px;
}

.badge-center-icon {
    position: absolute;
    font-size: 20px;
    color: var(--primary);
}

@keyframes rotateText {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive media queries for split hero layout */
@media (max-width: 1150px) {
    .hero-split-container {
        gap: 40px;
        padding: 0 40px;
    }
    .hero-left-column {
        flex: 0 0 450px;
    }
    .hero-main-title {
        font-size: 38px;
    }
    .hero-mosaic-grid {
        grid-template-columns: 190px 240px;
        grid-template-rows: 190px 120px 244px;
        gap: 16px;
    }
    .mosaic-circle-badge {
        left: 150px;
        top: 150px;
        width: 80px;
        height: 80px;
    }
    .circular-text {
        font-size: 9px;
    }
    .badge-center-icon {
        font-size: 16px;
    }
}

@media (max-width: 1024px) {
    .hero-split-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 50px;
        padding: 40px 40px 0 40px;
    }
    .hero-left-column {
        flex: 1;
        width: 100%;
        max-width: 600px;
        align-items: center;
    }
    .hero-brand-header {
        justify-content: center;
    }
    .hero-actions {
        justify-content: center;
    }
    .hero-right-column {
        justify-content: center;
        width: 100%;
    }
    .hero-mosaic-grid {
        grid-template-columns: 250px 330px;
        grid-template-rows: 250px 160px 315px;
        gap: 20px;
    }
}

@media (max-width: 650px) {
    .hero-mosaic-grid {
        grid-template-columns: 190px 240px;
        grid-template-rows: 190px 120px 244px;
        gap: 16px;
    }
    .hero-left-column {
        max-width: 450px;
    }
}

@media (max-width: 500px) {
    .hero-main-title {
        font-size: 30px;
    }
    .hero-mosaic-grid {
        grid-template-columns: 140px 180px;
        grid-template-rows: 140px 90px 174px;
        gap: 12px;
    }
    .mosaic-card-metrics {
        padding: 16px 12px;
    }
    .avatar-group {
        display: none;
    }
    .metric-value {
        font-size: 24px;
        margin: 0 0 4px 0;
    }
    .metric-label {
        font-size: 11px;
    }
    .mosaic-circle-badge {
        left: 108px;
        top: 108px;
        width: 64px;
        height: 64px;
    }
    .circular-text {
        font-size: 9px;
    }
    .badge-center-icon {
        font-size: 12px;
    }
    .banner-title {
        font-size: 16px;
        left: 16px;
    }
}

/* ==========================================
   2. CARROSSEL DE IMAGENS DO PRODUTO
   ========================================== */
.product-slider-section {
    background-color: #FFFFFF;
    padding: 80px 0;
    border-bottom: 1px solid var(--dark-card-border);
}

.product-slider-section .section-header {
    text-align: center;
    margin-bottom: 50px;
}

.product-slider-section .section-title {
    font-family: var(--font-title);
    font-size: 36px;
    color: #1E293B;
    margin-bottom: 10px;
}

.product-slider-section .section-subtitle {
    font-family: var(--font-body);
    font-size: 16px;
    color: var(--text-muted);
}

.product-carousel-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    gap: 15px;
    padding: 0 10px;
}

.product-carousel-wrapper {
    flex: 1;
    overflow: hidden;
    padding: 20px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    touch-action: pan-y;
}

.carousel-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(30, 41, 59, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #F56A25; /* Laranja da marca */
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 10;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
    flex-shrink: 0;
}

.carousel-btn:hover {
    background-color: #F56A25;
    color: #FFFFFF;
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(245, 106, 37, 0.5);
}

.carousel-btn:active {
    transform: scale(0.95);
}

/* Responsividade intermediária para evitar corte dos cards laterais */
@media (max-width: 950px) {
    .product-carousel-container .product-card-static {
        flex: 0 0 200px;
        width: 200px;
        height: 270px;
    }
    .product-carousel-container .product-card-static.active {
        height: 350px;
    }
    .product-carousel-static {
        min-height: 370px;
        gap: 12px;
    }
}

/* Bidirectional transitions for the rotating carousel */
.product-card-static.entering-right {
    width: 0 !important;
    flex: 0 0 0 !important;
    opacity: 0 !important;
    margin-left: -20px !important;
    pointer-events: none;
}

.product-card-static.exiting-left {
    pointer-events: none;
}

.product-card-static.exiting-left.animate-exit-left {
    width: 0 !important;
    flex: 0 0 0 !important;
    opacity: 0 !important;
    margin-right: -20px !important;
}

/* ==========================================
   3. CARDS DE DESTAQUES (HIGHLIGHTS)
   ========================================== */
.product-highlights {
    padding: 100px 0;
    background-color: var(--dark-deep);
}

.highlights-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.highlight-card {
    background: #FFFFFF;
    border: 1px solid var(--dark-card-border);
    padding: 40px 30px;
    border-radius: 16px;
    transition: background-color 0.4s, border-color 0.4s, box-shadow 0.4s;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.highlight-card:hover {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
    border-color: rgba(245, 106, 37, 0.2);
}


.highlight-card .icon-box {
    width: 60px;
    height: 60px;
    border-radius: 4px;
    background-color: rgba(245, 106, 37, 0.08);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 25px;
    transition: var(--transition-smooth);
}

.highlight-card:hover .icon-box {
    background-color: var(--primary);
    color: #FFFFFF;
}

.highlight-card h4 {
    font-family: var(--font-title);
    font-size: 18px;
    font-weight: 700;
    color: #1E293B;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.highlight-card p {
    font-family: var(--font-body);
    font-size: 14.5px;
    line-height: 1.6;
    color: var(--text-muted);
}

/* ==========================================
   4. TABELA DE ESPECIFICAÇÕES
   ========================================== */
.product-specs {
    background-color: #FFFFFF;
    padding: 100px 0;
    border-top: 1px solid var(--dark-card-border);
    border-bottom: 1px solid var(--dark-card-border);
}

.specs-container {
    max-width: 1000px;
    margin: 0 auto;
}

.specs-title {
    font-family: var(--font-title);
    font-size: 32px;
    color: #1E293B;
    margin-bottom: 40px;
    text-align: center;
    font-weight: 700;
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
    background: #FFFFFF;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
    border: 1px solid var(--dark-card-border);
}

.specs-table tr {
    border-bottom: 1px solid var(--dark-card-border);
}

.specs-table tr:last-child {
    border-bottom: none;
}

.specs-table tr:nth-child(even) {
    background-color: #F8FAFC;
}

.specs-table td {
    padding: 18px 24px;
    font-size: 15px;
    color: #334155;
    font-family: var(--font-body);
}

.specs-table td.spec-name {
    font-weight: 600;
    width: 30%;
    color: #1E293B;
    border-right: 1px solid var(--dark-card-border);
}

.specs-table td.spec-value {
    width: 70%;
    line-height: 1.5;
}

/* ==========================================
   5. RESPONSIVIDADE E ADAPTAÇÕES (BREAKPOINTS)
   ========================================== */

/* Telas Grandes e Médias (max-width: 1200px) */
@media (max-width: 1200px) {
    .collage-grid {
        grid-auto-rows: 75px;
        gap: 16px;
    }
    
    .collage-text-dark {
        padding: 25px 20px;
    }
    
    .collage-text-dark p {
        font-size: 16px;
    }
    
    .collage-text-dark .brand-year {
        font-size: 40px;
    }
    
    .collage-text-year span {
        font-size: 26px;
    }
    
    .collage-signature .handwritten {
        font-size: 34px;
    }
    
    .collage-signature {
        padding: 15px 20px;
        border-radius: 12px;
    }

    .collage-signature .signature-logo {
        max-width: 110px;
    }

    .highlights-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

/* Tablet (max-width: 900px) */
@media (max-width: 900px) {
    .product-hero {
        padding: 50px 0 80px 0;
    }

    /* A colagem passa para uma estrutura de grade simplificada e sequencial de 2 colunas */
    .collage-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: auto;
        gap: 24px;
        padding: 0 10px;
    }

    /* Redefinimos todas as grids dos itens para fluirem no fluxo */
    .collage-text-dark {
        grid-column: 1 / 3;
        grid-row: auto;
        min-height: 200px;
        border-radius: 4px;
    }
    
    .collage-img-main {
        grid-column: 1 / 3;
        grid-row: auto;
        height: 380px;
        border-radius: 4px;
    }
    
    .collage-img-inputs {
        grid-column: 1 / 2;
        grid-row: auto;
        height: 240px;
        border-radius: 4px;
    }
    
    .collage-img-expositor {
        grid-column: 2 / 3;
        grid-row: auto;
        height: 240px;
        border-radius: 4px;
    }
    
    .collage-img-remote {
        grid-column: 1 / 2;
        grid-row: auto;
        height: 240px;
        border-radius: 4px;
    }
    
    .collage-img-rear {
        grid-column: 2 / 3;
        grid-row: auto;
        height: 240px;
        border-radius: 4px;
    }

    /* Removemos elementos puramente decorativos em telas menores para focar nas fotos */
    .collage-text-year,
    .collage-signature {
        display: none;
    }

    .collage-item::after {
        display: none; /* Desativa molduras offset em telas menores */
    }


}

/* Celular (max-width: 575px) */
@media (max-width: 575px) {
    .collage-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .collage-text-dark,
    .collage-img-main,
    .collage-img-inputs,
    .collage-img-expositor,
    .collage-img-remote,
    .collage-img-rear {
        grid-column: 1 / 2;
    }

    .collage-img-main {
        height: 280px;
    }

    .collage-img-inputs,
    .collage-img-expositor,
    .collage-img-remote,
    .collage-img-rear {
        height: 200px;
    }



    .highlights-grid {
        grid-template-columns: 1fr;
    }

    .highlight-card {
        padding: 30px 20px;
    }

    .specs-table td.spec-name {
        width: 40%;
        padding: 12px 15px;
    }

    .specs-table td.spec-value {
        width: 60%;
        padding: 12px 15px;
    }
}

/* ==========================================
   6. CARROSSEL MOBILE ADJUSTMENTS
   ========================================== */
@media (max-width: 768px) {
    .carousel-btn {
        display: none !important;
    }
    .product-carousel-container {
        padding: 0;
        gap: 0;
    }
}

/* ==========================================
   7. LIGHTBOX PREMIUM (MODAL GALLERY WITH ZOOM)
   ========================================== */
.lightbox-overlay {
    display: none;
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 11, 14, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox-overlay.active {
    display: flex;
    opacity: 1;
}

.lightbox-content-wrapper {
    width: 90vw;
    height: 90vh;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: auto;
    position: relative;
    border-radius: 12px;
    scrollbar-width: none;
}

.lightbox-content-wrapper::-webkit-scrollbar {
    display: none;
}

.lightbox-content-wrapper.grabbing {
    cursor: grabbing;
}

.lightbox-img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease, max-width 0.3s ease, max-height 0.3s ease, width 0.3s ease;
    cursor: zoom-in;
    user-select: none;
    display: block;
    margin: auto;
}

.lightbox-content-wrapper.has-zoomed {
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-img.zoomed {
    max-width: none;
    max-height: none;
    width: 200%;
    height: auto;
    cursor: zoom-out;
    margin: auto;
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    color: #F8FAFC;
    font-size: 40px;
    font-weight: 300;
    cursor: pointer;
    transition: color 0.2s, transform 0.2s;
    z-index: 100000;
    line-height: 1;
}

.lightbox-close:hover {
    color: var(--primary);
    transform: scale(1.1);
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #F8FAFC;
    font-size: 36px;
    padding: 15px;
    cursor: pointer;
    user-select: none;
    transition: color 0.2s, transform 0.2s;
    z-index: 100000;
}

.lightbox-prev {
    left: 30px;
}

.lightbox-next {
    right: 30px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    color: var(--primary);
    transform: translateY(-50%) scale(1.1);
}

/* Ajustes em telas menores para o modal */
@media (max-width: 768px) {
    .lightbox-prev {
        left: 10px;
    }
    .lightbox-next {
        right: 10px;
    }
    .lightbox-close {
        top: 20px;
        right: 20px;
        font-size: 32px;
    }
}
