/* css/product-showcase.css (Reconstruído para o sistema de MODAL) */

.product-showcase {
    background-color: var(--color-background-section);
    padding: 6rem 2rem;
}

.product-showcase-container {
    max-width: 75rem;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.product-info {
    max-width: 56.25rem;
    margin-bottom: 3rem;
    /* ... estilos de título/descrição da seção ... */
}

.product-info .subtitle,
.product-info h2,
.product-info p {
    display: block;
    letter-spacing: 1px;
}

.product-info h2 {
    font-size: clamp(2.2rem, 5vw, 2.8rem);
    font-weight: 900;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
    text-transform: none;
}

.product-info p {
    font-size: 1.1rem;
    line-height: 1.7;
    font-weight: 400;
    color: var(--color-text-dark);
    text-transform: none;
}

.product-info .subtitle {
    font-weight: 700;
    color: var(--color-secondary);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

/* --- CARROSSEL --- */
.carousel-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.carousel-track {
    display: flex;
    gap: 2rem;
    /* Alterado de 10 para 24 (12 itens * 2) */
    width: calc((15rem + 2rem) * 24);
    /* Duração aumentada para manter uma velocidade agradável (ajuste se necessário) */
    animation: scroll 90s linear infinite;
}

@keyframes scroll {
    from {
        transform: translateX(0);
    }

    to {
        /* Alterado de 5 para 12 (número de itens originais) */
        transform: translateX(calc(-1 * (15rem + 2rem) * 12));
    }
}

/* --- ITENS DO CARROSSEL (SIMPLIFICADO) --- */
.carousel-item {
    background-color: #fff;
    border-radius: 0.75rem;
    box-shadow: 0 0.25rem 1.25rem rgba(0, 0, 0, 0.08);
    flex-shrink: 0;
    width: 15rem;
    height: 20rem;
    display: flex;
    flex-direction: column;
    padding: 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.card-image-container {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    overflow: hidden;
}

.card-image-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.item-label {
    font-weight: 700;
    color: var(--color-primary);
    font-size: 1rem;
    padding: 1rem 0 0.5rem;
    flex-shrink: 0;
}

/* --- BOTÃO "VER DETALLES" --- */
.btn-details {
    background-color: var(--color-secondary);
    color: white;
    font-weight: 700;
    border-radius: 0.5rem;
    padding: 0.6rem 1rem;
    width: 100%;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-details:hover {
    background-color: #31a13e;
}

/* --- EFEITOS DE HOVER --- */
.carousel-container:hover .carousel-track {
    animation-play-state: paused;
}

.carousel-item:hover {
    box-shadow: 0 0.5rem 2rem rgba(10, 45, 74, 0.2);
    z-index: 10;
}

/* --- BOTÃO PRINCIPAL "DESCUBRE MÁS" --- */
.btn-discover-more {
    /* ... estilos existentes ... */
    display: inline-block;
    background-color: var(--color-primary);
    color: var(--color-text-light);
    font-weight: 700;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    transition: background-color 0.3s ease, transform 0.3s ease;
    margin-top: 3rem;
    text-decoration: none;
}

.btn-discover-more:hover {
    background-color: #061d2b;
    transform: translateY(-0.25rem);
}


/* --- ESTILOS DO MODAL DE PRODUTO --- */
.product-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.product-modal-overlay.visible {
    opacity: 1;
    visibility: visible;
}

.product-modal-content {
    background-color: #fff;
    border-radius: 1rem;
    box-shadow: 0 0.625rem 2.5rem rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 50rem;
    /* 800px */
    max-height: 90vh;
    position: relative;
    transform: scale(0.95);
    transition: transform 0.3s ease;
    display: flex;
    overflow: hidden;
}

.product-modal-overlay.visible .product-modal-content {
    transform: scale(1);
}

.product-modal-close-btn {
    position: absolute;
    top: 0.5rem;
    right: 1rem;
    font-size: 2.5rem;
    color: #aaa;
    background: none;
    border: none;
    cursor: pointer;
    line-height: 1;
}

.product-modal-body {
    display: flex;
    width: 100%;
    flex-direction: column;
    /* Layout mobile-first */
}

.modal-image-col {
    background-color: #f5f5f5;
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-basis: 40%;
}

.modal-image-col img {
    max-width: 100%;
    max-height: 40vh;
    /* Limita a altura da imagem no mobile */
    object-fit: contain;
}

.modal-text-col {
    padding: 2rem;
    flex-basis: 60%;
    overflow-y: auto;
    /* Adiciona scroll se a descrição for muito grande */
}

.modal-text-col h2 {
    color: var(--color-primary);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.modal-text-col p {
    line-height: 1.7;
    color: var(--color-text-dark);
}

@media (min-width: 768px) {
    .product-modal-body {
        flex-direction: row;
        /* Layout lado a lado em telas maiores */
    }

    .modal-image-col img {
        max-height: 100%;
        /* Permite a imagem usar a altura total no desktop */
    }
}