/* --- Página de Encomendas --- */

/* Seção 1: Hero (Refatorado) */
#encomendas-hero {
    background-color: var(--light-pink); /* Tom de rosa muito claro e suave */
    color: var(--text-color);
    display: flex;
    align-items: center;
    padding: 8rem 2rem;
    min-height: auto;
}

.encomendas-hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    align-items: center;
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

.hero-text-content {
    text-align: center;
}

.hero-title-script {
    font-family: 'Great Vibes', cursive;
    font-size: 4.5rem;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
    text-align: center;
    line-height: 1.2;
}

.hero-subtitle-sans {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: var(--secondary-color); /* Marrom escuro para contraste */
    text-transform: uppercase;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    text-align: center;
    letter-spacing: 1.5px;
}

.hero-text-content p {
    margin-bottom: 2.5rem; /* Mais espaço antes do botão */
    color: #555;
    font-size: 1.2rem;
    line-height: 1.7;
}

.hero-image-content img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Seção 2: Prova (Slider Gallery) */
section#encomendas-prova {
    text-align: center;
    background-color: var(--base-color);
    padding-top: 6rem;
    padding-bottom: 6rem;
}

#encomendas-prova .subtitle {
    max-width: 700px;
    margin: 0 auto 3rem auto;
}

/* Seção 3: Ocasiões */
#encomendas-ocasioes {
    background-color: var(--light-pink);
    text-align: center;
}

.ocasioes-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.ocasiao-card {
    text-align: center;
}

.ocasiao-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.ocasiao-card h3 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

/* Seção 4: Diferencial */
section#encomendas-diferencial {
    background-color: var(--base-color);
    padding: 6rem 2rem;
}

.diferencial-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.diferencial-img {
    width: 100%;
    max-width: 300px;
    height: auto;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border: 5px solid var(--base-color);
    outline: 3px solid var(--primary-color);
}

.diferencial-text h2 {
    text-align: center;
    font-size: 3rem; /* Ajuste para nova hierarquia */
    margin-bottom: 1.5rem;
}

/* Seção 5: Passos */
#encomendas-passos {
    background-color: var(--base-color);
    text-align: center;
}

.passos-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 1000px;
    margin: 2rem auto 0;
}

.passo-card {
    text-align: center;
}

.passo-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.passo-card h3 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

/* Seção 6: Feedback Destaque */
section#encomendas-feedback-destaque {
    background-color: var(--light-pink);
    padding: 5rem 2rem;
    text-align: center;
}

#encomendas-feedback-destaque blockquote {
    font-family: 'Great Vibes', cursive;
    font-size: 2.5rem;
    font-style: italic;
    color: var(--secondary-color);
    max-width: 800px;
    margin: 0 auto 1.5rem auto;
    line-height: 1.4;
}

#encomendas-feedback-destaque cite {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: var(--primary-color);
    font-style: normal;
    font-size: 1.1rem;
}

/* Seção 7: Formulário */
#form-encomendas {
    text-align: center;
    background-color: var(--base-color);
    border-top: 5px solid var(--light-pink);
    padding-top: 6rem;
}

#form-encomendas .subtitle {
    max-width: 600px;
    margin: 0 auto 3rem auto;
    line-height: 1.7;
}

.encomendas-form {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem; /* Aumenta o espaçamento */
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem; /* Aumenta o padding interno */
    border: 1px solid #ddd;
    border-radius: 8px; /* Bordas mais arredondadas */
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(227, 27, 117, 0.2);
}

.form-group-full {
    grid-column: 1 / -1;
    text-align: center;
}

#form-encomendas .button-primary {
    width: 100%;
    padding: 1.5rem;
    font-size: 1.2rem;
    letter-spacing: 1px;
}

.whatsapp-link {
    margin-top: 2rem;
}

.whatsapp-link a {
    color: var(--primary-color);
    font-weight: 700;
    text-decoration: underline;
}

/* =========================================
   SLIDER NATIVO (HTML/CSS/JS)
   ========================================= */

.slider-container {
    position: relative;
    width: 100%;
    max-width: 700px;
    margin: auto;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    cursor: col-resize;
}

.slider-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none; /* Impede que as imagens interfiram com os eventos do mouse */
}

.image-clipper {
    position: absolute;
    top: 0;
    left: 0;
    width: 50%; /* Posição inicial */
    height: 100%;
    overflow: hidden;
    z-index: 2;
}

.slider-handle {
    position: absolute;
    top: 0;
    left: 50%; /* Posição inicial */
    width: 4px;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none; /* O handle em si não é arrastável, o container é */
}

.handle-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    color: #333;
}

.handle-circle svg {
    width: 18px;
    height: 18px;
}

.slider-label {
    position: absolute;
    top: 0;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 6px 14px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 4;
    border-radius: 0 0 5px 5px;
    user-select: none;
}

.label-first {
    left: 20px;
}

.label-second {
    right: 20px;
}

/* =========================================
   GALERIA DE MINIATURAS
   ========================================= */

.thumbnail-gallery {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 2rem auto 0;
    max-width: 700px;
    flex-wrap: wrap;
}

.thumbnail-item {
    cursor: pointer;
    border: 3px solid transparent;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    opacity: 0.6;
    text-align: center;
}

.thumbnail-item img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    display: block;
}

.thumbnail-item span {
    display: block;
    padding: 0.5rem;
    background-color: #f1f1f1;
    font-size: 0.8rem;
    font-weight: 600;
    color: #555;
}

.thumbnail-item:hover {
    opacity: 1;
    transform: translateY(-5px);
}

.thumbnail-item.active {
    opacity: 1;
    border-color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(227, 27, 34, 0.3);
}

/* =========================================
   GALERIA DE DETALHES (MASONRY)
   ========================================= */

#encomendas-galeria {
    background-color: var(--light-pink);
    text-align: center;
}

#encomendas-galeria .subtitle {
    max-width: 600px;
    margin: 0 auto 3rem auto;
}

/* Desktop: Layout Masonry */
.masonry-gallery {
    column-count: 3;
    column-gap: 1.5rem;
    max-width: 1100px;
    margin: 0 auto;
}

.masonry-item {
    margin-bottom: 1.5rem;
    break-inside: avoid;
}

.masonry-item img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.masonry-item img:hover {
    transform: scale(1.03);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

/* =========================================
   ESTILOS DE BOTÃO ESPECÍFICOS
   ========================================= */

#encomendas-hero .button-primary {
    padding: 1.2rem 2.5rem;
    font-size: 1.1rem;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    cursor: pointer;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

#encomendas-hero .button-primary:hover {
    background-color: #c91769; /* Um tom de rosa um pouco mais escuro */
    transform: translateY(-4px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* =========================================
   MEDIA QUERIES RESPONSIVAS
   ========================================= */

/* Layouts para Desktop (Telas > 768px) */
@media (min-width: 768px) {
    .encomendas-hero-grid {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
    }
    .hero-text-content {
        text-align: left;
    }

    .ocasioes-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2.5rem;
        align-items: start;
    }

    .diferencial-content {
        flex-direction: row;
        text-align: left;
        gap: 4rem;
    }

    .diferencial-text h2 {
        text-align: left;
    }

    .passos-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .encomendas-form {
        grid-template-columns: 1fr 1fr;
    }
}

/* Galeria Masonry - Tablet (Telas < 992px) */
@media (max-width: 992px) {
    .masonry-gallery {
        column-count: 2;
    }
}

/* Galeria Masonry - Mobile (Telas < 768px) */
@media (max-width: 768px) {
    .masonry-gallery {
        /* Override do Masonry para Carrossel */
        column-count: auto;
        display: flex;
        overflow-x: auto;
        flex-wrap: nowrap;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        padding: 0.5rem 1.5rem;
        margin-left: auto;
        margin-right: auto;
    }

    .masonry-item {
        break-inside: auto;
        margin-bottom: 0;
        flex: 0 0 85%;
        max-width: 320px;
        scroll-snap-align: center;
        margin-right: 1rem;
    }

    .masonry-item:last-child {
        margin-right: 0;
    }
}