/* css/presentes.css */

#gifts {
    padding: 2rem;
    max-width: 900px;
    margin: 2rem auto;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
#gifts h2 {
    text-align: center;
    font-family: var(--font-serif, serif);
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 2rem;
}
#gifts .gift-intro {
    text-align: center;
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 2.5rem;
}
.gift-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}
.gift-item {
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.gift-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background-color: #f9f9f9;
}
.gift-item h3 {
    font-size: 1.2rem;
    margin: 1rem 0 0.5rem 0;
    color: #333;
}
.gift-item p {
    font-size: 0.9rem;
    color: #777;
    padding: 0 1rem;
    flex-grow: 1;
    min-height: 40px; /* Garante alinhamento */
}
.gift-item .btn-pix {
    display: inline-block;
    margin: 1rem 0 1.5rem 0;
    padding: 0.7rem 1.4rem;
    background-color: #333; /* Cor escura para o botão */
    color: white;
    text-decoration: none;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s ease;
}
.gift-item .btn-pix:hover {
    background-color: #555;
}

/* --- Estilos do Modal PIX --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none; /* Começa escondido */
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(5px); /* Efeito de desfoque */
}
.modal-content {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}
.modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 2.2rem;
    line-height: 1;
    color: #aaa;
    cursor: pointer;
    font-weight: bold;
}
.modal-close:hover {
    color: #333;
}
.modal-content h3 {
    font-family: var(--font-serif, serif);
    font-size: 1.8rem;
    margin-top: 0;
    margin-bottom: 0.5rem;
}
.modal-content .pix-qr-code {
    width: 100%;
    max-width: 250px;
    margin: 1rem auto;
    display: block;
    border: 1px solid #eee;
}
.modal-content .pix-info {
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 1rem;
}
.pix-copia-cola {
    margin-top: 1.5rem;
}
.pix-copia-cola p {
    font-weight: bold;
    margin-bottom: 0.5rem;
}
.pix-copia-cola-input {
    display: flex;
    border: 1px solid #ccc;
    border-radius: 4px;
    overflow: hidden;
}
.pix-copia-cola-input input {
    flex-grow: 1;
    border: none;
    padding: 0.7rem;
    font-size: 0.9rem;
    background: #f4f4f4;
    color: #555;
    /* Remove o foco visual feio */
    outline: none; 
}
.pix-copia-cola-input button {
    border: none;
    background: #333;
    color: white;
    padding: 0 1rem;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s;
}
.pix-copia-cola-input button:hover {
    background: #555;
}
#copy-feedback {
    color: green;
    font-weight: bold;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    display: none; /* Começa escondido */
}