:root {
    --primary: #4A5D4E;
    /* Verde sálvia elegante */
    --secondary: #D4C5B9;
    /* Areia/Bege */
    --background: #FAFAFA;
    --text: #333333;
    --error: #D9534F;
    --success: #5CB85C;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Lato', sans-serif;
    background-color: var(--background);
    color: var(--text);
    line-height: 1.6;
}

h1,
h2,
h3 {
    font-family: 'Playfair Display', serif;
    color: var(--primary);
    text-align: center;
    margin-bottom: 1rem;
}

a {
    color: inherit;
    text-decoration: none;

    &:hover {
        transition: .3s ease-in-out;
        color: #38473b;
        text-decoration: underline;
    }
}

#app {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    min-height: 100vh;
}

/* Componentes Globais */
.card {
    background: white;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
}

button {
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s;
}

button:hover {
    background-color: #38473b;
}

button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

button.outline {
    background-color: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
}

input,
select {
    width: 100%;
    padding: 0.8rem;
    margin-bottom: 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* Grid de Presentes */
.gifts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
}

.gift-card {
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    background: white;
}

.gift-card img {
    max-width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 1rem;
}

/* Alertas e Status */
.alert {
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
    text-align: center;
}

.alert.error {
    background-color: #fde8e8;
    color: var(--error);
}

.alert.success {
    background-color: #e8fdf0;
    color: var(--success);
}

/* Utilitários */
.text-center {
    text-align: center;
}

.hidden {
    display: none !important;
}

.loader {
    text-align: center;
    font-style: italic;
    color: #666;
}
/* Estilos da Barra Flutuante PWA */
.pwa-install-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #4A5D4E; /* Sua cor tema */
    color: #ffffff;
    padding: 15px 20px;
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    font-family: system-ui, -apple-system, sans-serif;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Animação suave */
    box-sizing: border-box;
}

/* Esconde a barra movendo-a para baixo da tela */
.pwa-install-bar.hidden {
    transform: translateY(100%);
}

.pwa-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
    gap: 15px;
}

.pwa-content span {
    font-weight: 500;
    font-size: 15px;
}

.pwa-buttons {
    display: flex;
    gap: 10px;
}

.pwa-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    font-size: 14px;
    transition: all 0.2s ease;
}

.pwa-btn-primary {
    background-color: #ffffff;
    color: #4A5D4E;
}

.pwa-btn-primary:hover {
    background-color: #f0f0f0;
    transform: scale(1.05);
}

.pwa-btn-secondary {
    background-color: transparent;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.pwa-btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: #ffffff;
}

/* Responsividade para telas menores */
@media (max-width: 600px) {
    .pwa-content {
        flex-direction: column;
        text-align: center;
    }
    .pwa-buttons {
        width: 100%;
        justify-content: center;
    }
}