:root {
    --gold: #D4AF37;
    --light-gold: #F5E8C1;
    --cream: #F8F4E9;
    --footer: #051f66;
    --dark: #000000ce;
    --light: #ffffff;
    --buy: #dfbf55;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--dark);
    background-color: var(--cream);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('./img/bg1.jpg');
    background-size: cover;
    background-position: center;
    height: 100vh;
    min-height: 600px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    position: relative;
}

.header-content {
    animation: fadeIn 1.5s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

h1 {
    font-family: 'Playfair Display', serif;
    font-size: 5rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    color: var(--gold);
}

.couple-names {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    margin-bottom: 40px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    position: relative;
    display: inline-block;
}

.couple-names::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 2px;
    background-color: var(--gold);
}

.header-date {
    font-size: 1.5rem;
    letter-spacing: 3px;
    margin-bottom: 30px;
}

.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 2rem;
    animation: bounce 2s infinite;
    cursor: pointer;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0) translateX(-50%);
    }

    40% {
        transform: translateY(-20px) translateX(-50%);
    }

    60% {
        transform: translateY(-10px) translateX(-50%);
    }
}

/* Story Section */
.story-section {
    padding: 80px 0;
    background-color: white;
}

.section-title {
    font-family: 'Playfair Display', serif;
    text-align: center;
    font-size: 3.5rem;
    margin-bottom: 50px;
    color: var(--gold);
    position: relative;
}

.section-subtitle {
    font-family:'Times New Roman', Times, serif;
    text-align: center;
    font-size: 1.0rem;
    margin-bottom: 50px;
    color: rgba(255, 0, 0, 0.438);
    position: relative;
}


.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 2px;
    background-color: var(--gold);
}

.story-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
}

.story-text {
    flex: 1;
    min-width: 300px;
    max-width: 600px;
}

.story-text p {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.story-image {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
}

.story-image img {
    width: 100%;
    height: auto;
    border-radius: 5px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.603);
}

/* Photo Gallery */
.gallery-section {
    padding: 80px 0;
    background-color: var(--cream);
}

.gallery-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-slider {
    display: flex;
    overflow: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    margin: 0;
    padding: 20px 0 40px;
    position: relative;
}

.gallery-slide {
    scroll-snap-align: center;
    flex: 0 0 calc(90% - 20px);
    max-width: calc(90% - 20px);
    height: 500px;
    margin: 0 10px;
    border-radius: 10px;
    position: relative;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-slide:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

@media (min-width: 768px) {
    .gallery-slide {
        flex: 0 0 calc(45% - 20px);
        max-width: calc(45% - 20px);
    }
}

.gallery-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.096);
    color: white;
    padding: 5px;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

.gallery-nav {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 20px 0;
}

.gallery-dot {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background-color: var(--light-gold);
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.7;
}

.gallery-dot.active {
    background-color: var(--gold);
    opacity: 1;
    transform: scale(1.2);
}

.gallery-slider-wrapper {
    position: relative; /* Importante para posicionar as setas */
    overflow: hidden; /* Garante que as setas fiquem dentro se o slider for menor */
}

/* Estilo para as setas de navegação */
.gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.151); /* Fundo semi-transparente */
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 24px;
    z-index: 10; /* Garante que as setas fiquem acima das imagens */
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.gallery-arrow:hover {
    background-color: rgba(0, 0, 0, 0.26);
}

.gallery-arrow.prev {
    left: 10px; /* Posição à esquerda */
}

.gallery-arrow.next {
    right: 10px; /* Posição à direita */
}

/* Location Section */
.location-section {
    padding: 80px 0;
    background-color: white;
}

.location-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    align-items: center;
}

.location-map {
    flex: 1;
    min-width: 300px;
    height: 400px;
    background-color: #eee;
    border-radius: 10px;
    overflow: hidden;
}

.location-info {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
}

.location-info h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--gold);
}

.location-info p {
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.location-info i {
    margin-right: 10px;
    color: var(--gold);
}

/* RSVP Section */
.rsvp-section {
    padding: 80px 0;
    background-color: var(--cream);
}

.rsvp-form {
    max-width: 600px;
    margin: 0 auto;
    background-color: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

.submit-btn {
    background-color: var(--gold);
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: block;
    margin: 0 auto;
    width: 200px;
    text-align: center;
}

.submit-btn:hover {
    background-color: #c19b2f;
}

/* Footer */
footer {
    background-color: var(--dark);
    color: white;
    text-align: center;
    padding: 30px 0;
}

.footer-text {
    font-size: 0.9rem;
}

.product-section {
    padding: 80px 0;
    background-color: white; /* Ou var(--cream) se preferir um fundo mais claro */
}

.product-cards-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px; /* Espaçamento entre os cards */
}

.product-card {
    background-color: var(--cream);
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    width: 100%; /* Largura total em telas pequenas */
    max-width: 350px; /* Largura máxima para desktops */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.product-card img {
    width: 100%;
    max-height: 250px; /* Altura máxima da imagem */
    object-fit: contain; /* Para garantir que a imagem seja totalmente visível */
    border-radius: 18px;
    margin-bottom: 15px;
}

.product-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 10px;
    height: 60px; /* Altura fixa para o título, para alinhar os cards */
    overflow: hidden; /* Oculta texto que excede a altura */
    display: -webkit-box;
    -webkit-box-orient: vertical;
}

.product-price {
    font-family:'Segoe UI', Tahoma, Geneva, Verdana, sans-serif ;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 20px;
}

/* Removed the .buy-button style, as it's now .buy-button-option */

.modal {
    display: none; /* Escondido por padrão */
    position: fixed; /* Fica no topo da página */
    z-index: 1000; /* Fica acima de tudo */
    left: 0;
    top: 0;
    width: 100%; /* Largura total */
    height: 100%; /* Altura total */
    overflow: auto; /* Habilita scroll se necessário */
    background-color: rgba(0, 0, 0, 0.7); /* Fundo escuro semi-transparente */
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal-content {
    background-color: var(--cream);
    margin: auto;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    position: relative;
    max-width: 600px;
    width: 90%;
    text-align: center;
}

.close-button {
    color: var(--dark);
    font-size: 30px;
    font-weight: bold;
    position: absolute;
    top: 10px;
    right: 20px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-button:hover,
.close-button:focus {
    color: var(--gold);
}

.modal-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: var(--gold);
    margin-bottom: 20px;
}

.modal-content p {
    font-size: 1.1rem;
    margin-bottom: 15px;
    line-height: 1.5;
}

.pix-options {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 30px;
}

.pix-option {
    flex: 1;
    min-width: 250px;
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.pix-option h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.4rem;
    color: var(--dark);
    margin-bottom: 15px;
}

#qrCodeContainer {
    width: 200px;
    height: 200px;
    background-color: #eee; /* Placeholder para o QR Code */
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 15px;
    border: 1px dashed #ccc;
}

#qrCodeContainer img {
    max-width: 100%;
    height: auto;
    display: block;
}

.copy-paste-code {
    background-color: #f0f0f0;
    padding: 15px;
    border: 1px dashed var(--gold);
    border-radius: 5px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9rem;
    word-break: break-all;
    margin-bottom: 15px;
    cursor: text;
    text-align: left;
}

.copy-button {
    background-color: var(--gold);
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.copy-button:hover {
    background-color: #c19b2f;
}

.pix-key-info, .pix-value-info {
    margin-top: 20px;
    font-size: 1rem;
    color: #555;
}

.pix-key-info span, .pix-value-info span {
    font-weight: 700;
    color: var(--dark);
}

/* Style for the new "Escolher Presente" button */
.choose-gift-button {
    background-color: var(--gold); /* Use a gold color for this button */
    color: white;
    border: none;
    padding: 12px 25px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.3s ease;
    width: 100%;
    max-width: 200px;
    text-align: center;
    margin-top: 10px;
}

.choose-gift-button:hover {
    background-color: #c19b2f;
}

/* Style for the new gift choice modal buttons */
.gift-choice-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.pix-button-option, .buy-button-option {
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-decoration: none;
    text-align: center;
    display: block;
    width: 100%;
}

.pix-button-option {
    background-color: #37d35b; /* Green for Pix */
    color: white;
    border: none;
}

.pix-button-option:hover {
    background-color: #2aa545e8;
}

.buy-button-option {
    background-color: var(--buy); /* Gold/yellow for Mercado Livre */
    color: white;
    border: none;
}

.buy-button-option:hover {
    background-color: #c19b2f;
}


@media (max-width: 600px) {
    .pix-options {
        flex-direction: column;
    }
    .modal-content {
        padding: 20px;
    }
    .modal-content h2 {
        font-size: 1.5rem;
    }
}

/* Responsividade para os cards de produto */
@media (min-width: 768px) {
    .product-cards-container {
        justify-content: space-around; /* Distribui os cards com espaço */
    }
    .product-card {
        width: calc(50% - 30px); /* Dois cards por linha em telas maiores */
    }
}

@media (min-width: 1024px) {
    .product-card {
        width: calc(33.333% - 30px); /* Opcional: três cards por linha em telas muito grandes */
    }
}

@media (max-width: 480px) {
    .product-card {
        padding: 15px;
    }
    .product-title {
        font-size: 1rem;
        height: auto; /* Permite que o título ocupe mais linhas em telas menores */
    }
    .product-price {
        font-size: 1.5rem;
    }
    .choose-gift-button { /* Use the new class */
        font-size: 0.9rem;
        padding: 10px 20px;
    }
    .pix-button-option, .buy-button-option {
        font-size: 1rem;
        padding: 12px 20px;
    }
}

/* Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 3.5rem;
    }

    .couple-names {
        font-size: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .gallery-slide {
        height: 350px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2.5rem;
    }

    .couple-names {
        font-size: 1.5rem;
    }

    .header-date {
        font-size: 1.2rem;
    }

    .rsvp-form {
        padding: 30px 20px;
    }
}