/* static/css/product_slider.css - Versão Final Apenas com Animação */

/* Layout Principal do Slider
-------------------------------------------------- */
.product-slider-section {
    width: 100%;
    height: 100vh;
    font-family: 'SF Pro Display', sans-serif;
    overflow: hidden;
}

.product-slider, .slider-wrapper {
    position: relative;
    width: 100%;
    height: 100vh;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease-in-out;
}

.slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

/* Lado Esquerdo (Animação de Texto)
-------------------------------------------------- */
.slide-background {
    width: 55%;
    height: 100%;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.slide-product-details {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.slide-product-details {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10; /* Garante que os ícones fiquem por cima da imagem principal */
}

/* Estilo individual para cada ícone */
.product-detail-image {
    position: absolute; /* Permite que o JS controle o top/left */
    width: 200px; /* Tamanho do ícone, ajuste conforme necessário */
    height: auto;
    
    /* Estado inicial para a animação */
    opacity: 0;
    transform: translateY(20px);
    
    /* A animação suave */
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* Estado final (visível) que o JS irá ativar */
.product-detail-image.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* A imagem da modelo */
.person-image {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    height: 90%;
    width: 100%;
    max-width: 100%;
    object-fit: contain;
    object-position: bottom;
    z-index: 1; /* Fica atrás do texto */
}

/* Contêiner do texto animado */
.animated-texts {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2; /* Fica na frente da imagem */
}

/* Estilos do texto (agora com cor sólida) */
.background-text {
    font-size: 5em;
    font-weight: 700;
    position: absolute;
    margin: 0;
    white-space: nowrap;
    font-family: 'stretch pro';
    color: #fff; /* O texto agora é branco */
    /* Sombra para garantir a legibilidade sobre a imagem */
    text-shadow: 0px 2px 10px rgba(0, 0, 0, 0.4);
}

.background-text.text-1 {
    top: 40%;
    left: 5%;
}

.background-text.text-2 {
    bottom: 20%;
    right: 5%;
    text-align: right;
}

/* Estilo para as letras que serão animadas pelo Anime.js */
.animated-texts .background-text {
    opacity: 0;
}


/* Lado Direito e Botões (sem alterações)
-------------------------------------------------- */
.slide-content-linha {
    width: 45%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
    box-sizing: border-box;
    color: #000000;
    z-index: 2;
}

.content-info {
    text-align: left;
    max-width: 400px;
}

.content-info .slide-counter {
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 20px;
}

.content-info h2, .content-info h5 {
    margin: 10px 0;
}

.content-info p {
    line-height: 1.6;
    margin-bottom: 30px;
    font-weight: 300;
}

.collection-link {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-decoration: none;
    color: #000000;
    border-bottom: 2px solid #fff;
    padding-bottom: 5px;
    transition: all 0.3s;
}

.collection-link:hover {
    color: #ccc;
    border-color: #ccc;
}

/* Botões de Navegação
-------------------------------------------------- */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background-color: #fff;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
    color: #000;
}

.slider-arrow:hover {
    background-color: #000;
    color: #fff;
}

.slider-arrow.prev {
    left: 20px;
}

.slider-arrow.next {
    right: 20px;
}

@media (max-width: 768px) {
    .product-slider-section {
        height: auto;
        padding: 0;
    }

    .product-slider, .slider-wrapper {
        height: auto;
        min-height: 100vh;
    }

    .slider-wrapper {
        display: grid;
    }

    .slide {
        position: relative;
        grid-area: 1 / 1;
        flex-direction: column;
        height: auto;
        min-height: 100vh;
    }

    .slide-background {
        width: 100%;
        height: 65vh; /* Fixed viewport height instead of percentage */
        position: relative;
    }

    .slide-content-linha {
        width: 100%;
        height: auto;
        flex: 1; /* Takes remaining space if content is small */
        display: flex;
        align-items: start;
        justify-content: center;
        padding: 40px 20px 80px 20px;
        box-sizing: border-box;
        background-color: #f8f9fa;
        overflow-y: visible; /* Content can expand freely */
    }

    .person-image {
        max-height: 90%; /* Ajuste para não cortar a imagem */
        width: auto;
    }

    .background-text {
        font-size: 3em; /* Fonte menor para mobile */
    }

    .slider-arrow {
        top: 32.5%; /* Metade da altura da imagem (65% / 2) */
        transform: translateY(-50%);
        width: 40px;
        height: 40px;
    }

    .slider-arrow.prev {
        left: 10px;
    }

    .slider-arrow.next {
        right: 10px;
    }
}