/* ==========================================================================
   XVIII Simpósio de Música Sacra - Sistema de Design CSS
   ========================================================================== */

/* Variáveis do Sistema de Design */
:root {
    --bg-primary: #ede1cf;       /* Bege claro papel artístico */
    --bg-secondary: #f3e7cf;     /* Creme suave */
    --bg-card: #fbf7ee;          /* Branco marfim / papel convite */
    --text-primary: #2f331f;     /* Oliva escuro corporativo/sacro */
    --text-dark: #1e2017;        /* Oliva quase negro para contraste máximo */
    --text-muted: #6b705c;       /* Oliva suave/acinzentado para detalhes */
    --gold-primary: #b68d3c;     /* Dourado oficial do cartaz */
    --gold-light: #d6c2a4;       /* Dourado suave/areia */
    --gold-glow: rgba(182, 141, 60, 0.4);
    --header-height: 80px;       /* Altura dinâmica do cabeçalho */
    
    --font-serif: 'Cinzel', serif;
    --font-brush: 'Alex Brush', cursive;
    --font-sans: 'Inter', sans-serif;
    
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --shadow-premium: 0 20px 40px rgba(30, 32, 23, 0.06);
    --shadow-hover: 0 30px 60px rgba(30, 32, 23, 0.12);
}

/* Reset e Configurações Globais */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
    
    /* Textura sutil de papel envelhecido aplicada globalmente */
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(243, 231, 207, 0.4) 0%, transparent 45%),
        radial-gradient(circle at 90% 80%, rgba(214, 194, 164, 0.25) 0%, transparent 55%),
        url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.03'/%3E%3C/svg%3E");
    will-change: transform;
}

/* Scrollbar Personalizada */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}
::-webkit-scrollbar-thumb {
    background: var(--gold-light);
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--gold-primary);
}

/* Elementos Utilitários de Layout */
.section {
    padding: 8rem 2rem;
    position: relative;
}

.section-container {
    max-width: 1100px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.section-title {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    color: var(--text-dark);
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.section-divider {
    width: 60px;
    height: 2px;
    background: var(--gold-primary);
    margin: 0 auto 1.5rem auto;
    position: relative;
}

.section-divider::before {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--gold-primary);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    font-weight: 300;
    max-width: 600px;
    margin: 0 auto;
}

/* Botões Modernos e Elegantes */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.2rem;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-decoration: none;
    text-transform: uppercase;
    border-radius: 4px;
    transition: var(--transition-smooth);
    cursor: pointer;
}

.btn-primary {
    background-color: var(--text-primary);
    color: var(--bg-primary);
    border: 1px solid var(--text-primary);
    box-shadow: 0 4px 15px rgba(47, 51, 31, 0.15);
}

.btn-primary:hover {
    background-color: var(--text-dark);
    color: #fff;
    border-color: var(--text-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 32, 23, 0.25), 0 0 10px var(--gold-glow);
}

.btn-outline {
    background-color: transparent;
    color: var(--text-primary);
    border: 1px solid rgba(47, 51, 31, 0.3);
}

.btn-outline:hover {
    border-color: var(--text-dark);
    background-color: rgba(47, 51, 31, 0.05);
}

.btn-sm {
    padding: 0.6rem 1.4rem;
    font-size: 0.8rem;
}

.btn-lg {
    padding: 1.2rem 3rem;
    font-size: 1rem;
}

.btn-full {
    width: 100%;
}

/* ==========================================================================
   Cabeçalho (Header)
   ========================================================================== */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background-color: rgba(237, 225, 207, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(182, 141, 60, 0.12);
    transition: var(--transition-smooth);
}

.main-header.scrolled {
    background-color: rgba(237, 225, 207, 0.95);
    box-shadow: 0 10px 30px rgba(30, 32, 23, 0.05);
    padding: 0.5rem 0;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.2rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.logo-icon {
    width: 28px;
    height: 28px;
    color: var(--gold-primary);
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-church {
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    color: var(--text-dark);
    text-transform: uppercase;
}

.logo-city {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    color: var(--gold-primary);
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-top: -2px;
}

.nav-menu {
    display: flex;
    gap: 2.5rem;
}

.nav-link {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    color: var(--text-primary);
    text-decoration: none;
    text-transform: uppercase;
    position: relative;
    padding: 0.3rem 0;
    transition: var(--transition-smooth);
}

.nav-link:hover {
    color: var(--gold-primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--gold-primary);
    transition: var(--transition-smooth);
}

.nav-link:hover::after {
    width: 100%;
}

@media (max-width: 768px) {
    :root {
        --header-height: 64px;
    }
    .nav-menu, .header-cta {
        display: none; /* Simplificado para mobile */
    }
}

/* ==========================================================================
   Primeira Dobra (Hero Section)
   ========================================================================== */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    overflow: hidden;
}

/* Feixe de Luz Celestial - Ocultado pois o cartaz já tem iluminação própria */
.celestial-glow {
    display: none !important;
}

/* Imagem de Fundo da Hero */
.hero-bg-picture {
    position: absolute;
    top: var(--header-height);
    left: 0;
    width: 100%;
    height: calc(100% - var(--header-height));
    z-index: 1;
}

.hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Overlay Suave e Degradê para transição na base */
.hero-overlay {
    position: absolute;
    top: var(--header-height);
    left: 0;
    width: 100%;
    height: calc(100% - var(--header-height));
    /* Mantém o cartaz limpo e nítido e faz a transição para o bege no final */
    background: linear-gradient(to bottom, 
        rgba(30, 32, 23, 0.1) 0%, 
        rgba(30, 32, 23, 0.05) 55%, 
        rgba(237, 225, 207, 0.45) 85%, 
        var(--bg-primary) 100%);
    z-index: 2;
}

.hero-content-wrapper {
    position: relative;
    z-index: 4;
    width: 100%;
    padding: 0 2rem 5rem 2rem;
    text-align: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Oculta globalmente os textos em HTML que duplicam as informações do cartaz */
.hero-tag,
.hero-title,
.hero-subtitle,
.hero-verse-box,
.hero-info-grid {
    display: none !important;
}

/* Responsividade de posições para a Hero */
@media (max-width: 768px) {
    /* Ajusta a Hero para acompanhar o tamanho real do cartaz no mobile */
    .hero-section {
        height: auto;
        min-height: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        overflow: visible;
        padding-top: 80px; /* Espaço elegante entre o cabeçalho fixed (64px) e o cartaz */
        padding-bottom: 0;
    }
    
    .hero-bg-picture {
        position: relative;
        top: 0;
        left: 0;
        width: 100%;
        height: auto;
        z-index: 1;
        padding: 0;
        display: block;
    }
    
    .hero-bg-img {
        display: block;
        width: 100%;
        height: auto;
        object-fit: contain;
    }
    
    /* Desativa o gradiente de fundo no mobile para manter as bordas do cartaz nítidas */
    .hero-overlay {
        display: block;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        height: calc(100% - 80px);
        background: transparent;
        z-index: 2;
        pointer-events: none;
    }
    
    /* Posiciona o botão de inscrição no final do cartaz (meio dentro, meio fora) */
    .hero-content-wrapper {
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: auto;
        z-index: 4;
        padding: 0 1.5rem;
        transform: translateY(50%); /* Centraliza verticalmente na borda inferior */
    }

    /* Reduz o padding-top da seção seguinte para compensar a subida e diminuir espaço vazio */
    .section-inscricao {
        padding-top: 4.5rem; /* Ajustado para deixar um espaço equilibrado pós-botão */
    }
}

/* ==========================================================================
   Segunda Dobra (Seção de Inscrição)
   ========================================================================== */
.section-inscricao {
    background-color: var(--bg-primary);
    overflow: hidden;
}

/* Elementos Gráficos de Ondas/Texturas de Fundo */
.bg-decoration-left, .bg-decoration-right {
    position: absolute;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    filter: blur(50px);
    pointer-events: none;
    z-index: 1;
    opacity: 0.4;
}

.bg-decoration-left {
    background: radial-gradient(circle, var(--gold-light) 0%, transparent 70%);
    top: 10%;
    left: -150px;
}

.bg-decoration-right {
    background: radial-gradient(circle, var(--gold-primary) 0%, transparent 70%);
    bottom: 10%;
    right: -150px;
}

.inscricao-wrapper {
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 2;
}

/* Card Estilo Ingresso Premium */
.ticket-card {
    background: var(--bg-card);
    border: 1px solid rgba(182, 141, 60, 0.25);
    border-radius: 8px;
    width: 100%;
    max-width: 480px;
    padding: 3rem 2.5rem;
    box-shadow: var(--shadow-premium);
    position: relative;
    transition: var(--transition-smooth);
}

.ticket-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(182, 141, 60, 0.45);
}

.ticket-top-glow {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 4px;
    background: linear-gradient(to right, transparent, var(--gold-primary), transparent);
}

.ticket-badge {
    text-align: center;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: var(--gold-primary);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.ticket-price-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    margin-bottom: 2rem;
    color: var(--text-dark);
}

.ticket-currency {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 0.5rem;
    margin-right: 0.3rem;
}

.ticket-price {
    font-family: var(--font-serif);
    font-size: 4.5rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.02em;
}

/* Divisor do Bilhete com fendas laterais */
.ticket-divider {
    position: relative;
    height: 20px;
    margin: 0 -2.5rem 2rem -2.5rem;
    display: flex;
    align-items: center;
}

.ticket-divider .notch {
    position: absolute;
    width: 24px;
    height: 24px;
    background-color: var(--bg-primary); /* Mesma cor do fundo da seção */
    border: 1px solid rgba(182, 141, 60, 0.25);
    border-radius: 50%;
    z-index: 3;
}

.ticket-divider .notch.left {
    left: -12px;
    box-shadow: inset -4px 0 6px rgba(0,0,0,0.02);
}

.ticket-divider .notch.right {
    right: -12px;
    box-shadow: inset 4px 0 6px rgba(0,0,0,0.02);
}

.ticket-divider .dashed-line {
    width: 100%;
    height: 1px;
    border-top: 1px dashed rgba(182, 141, 60, 0.4);
}

/* Benefícios do Ingresso */
.ticket-benefits {
    list-style: none;
    margin-bottom: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.ticket-benefits li {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.benefit-icon {
    width: 20px;
    height: 20px;
    color: var(--gold-primary);
    flex-shrink: 0;
}

.ticket-footer {
    text-align: center;
}

.ticket-deadline {
    margin-top: 1rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    font-style: italic;
}

@media (max-width: 480px) {
    .ticket-card {
        padding: 2.5rem 1.8rem;
    }
    .ticket-divider {
        margin: 0 -1.8rem 2rem -1.8rem;
    }
    .ticket-price {
        font-size: 3.5rem;
    }
}

/* ==========================================================================
   Terceira Dobra (Seção de Cronograma)
   ========================================================================== */
.section-cronograma {
    background-color: var(--bg-secondary);
}

.timeline-wrapper {
    position: relative;
    max-width: 850px;
    margin: 0 auto;
    padding: 2rem 0;
}

/* Linha da Pauta Musical (Timeline) */
.timeline-line {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background: linear-gradient(to bottom, 
        transparent 0%, 
        var(--gold-light) 10%, 
        var(--gold-primary) 50%, 
        var(--gold-light) 90%, 
        transparent 100%);
    transform: translateX(-50%);
    z-index: 1;
}

.timeline-day-header {
    text-align: center;
    position: relative;
    z-index: 2;
    margin: 4rem 0 2rem 0;
}

.timeline-day-header:first-of-type {
    margin-top: 0;
}

.day-badge {
    display: inline-block;
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.15em;
    color: var(--bg-primary);
    background-color: var(--text-primary);
    padding: 0.6rem 2rem;
    border-radius: 4px;
    border: 1px solid var(--gold-light);
    box-shadow: 0 4px 10px rgba(30, 32, 23, 0.08);
}

/* Itens da Timeline */
.timeline-item {
    position: relative;
    width: 50%;
    margin-bottom: 2.5rem;
    z-index: 2;
}

.timeline-item.left-item {
    left: 0;
    padding-right: 3rem;
}

.timeline-item.right-item {
    left: 50%;
    padding-left: 3rem;
}

/* Ponto da Linha do Tempo */
.timeline-dot {
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--bg-card);
    border: 2px solid var(--gold-primary);
    top: 25px;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.timeline-item.left-item .timeline-dot {
    right: -10px;
}

.timeline-item.right-item .timeline-dot {
    left: -10px;
}

/* Pontos com Ícone Musical */
.timeline-dot:has(.dot-musical-icon) {
    width: 32px;
    height: 32px;
    background-color: var(--text-primary);
    border-color: var(--gold-primary);
}

.timeline-item.left-item .timeline-dot:has(.dot-musical-icon) {
    right: -16px;
    top: 18px;
}

.timeline-item.right-item .timeline-dot:has(.dot-musical-icon) {
    left: -16px;
    top: 18px;
}

.dot-musical-icon {
    width: 14px;
    height: 14px;
    color: var(--gold-light);
}

.timeline-item:hover .timeline-dot {
    background-color: var(--gold-primary);
    transform: scale(1.15);
}

/* Card do Evento na Timeline */
.timeline-card {
    background: var(--bg-card);
    border: 1px solid rgba(182, 141, 60, 0.15);
    border-radius: 6px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(30, 32, 23, 0.03);
    transition: var(--transition-smooth);
}

.timeline-card:hover {
    border-color: var(--gold-primary);
    box-shadow: 0 15px 35px rgba(30, 32, 23, 0.06);
    transform: translateY(-2px);
}

.timeline-time {
    font-family: var(--font-serif);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--gold-primary);
    margin-bottom: 0.6rem;
    letter-spacing: 0.05em;
}

.timeline-title {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    color: var(--text-dark);
    font-weight: 700;
    margin-bottom: 0.8rem;
    line-height: 1.3;
}

.timeline-text {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Grid de Instrumentos */
.instruments-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
    margin-top: 1.5rem;
}

.instrument-tag {
    background-color: rgba(47, 51, 31, 0.04);
    border: 1px solid rgba(182, 141, 60, 0.2);
    border-radius: 4px;
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-primary);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* Responsividade da Timeline e Geral */
@media (max-width: 768px) {
    .section {
        padding: 5rem 1.2rem;
    }
    .section-header {
        margin-bottom: 3rem;
    }
    .section-title {
        font-size: clamp(1.35rem, 5.5vw, 1.8rem);
        line-height: 1.2;
        letter-spacing: 0.02em;
        word-wrap: break-word;
        text-align: center;
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }
    .timeline-line {
        left: 20px;
    }
    .timeline-item {
        width: 100%;
        margin-bottom: 2rem;
    }
    .timeline-item.left-item {
        left: 0;
        padding-right: 0;
        padding-left: 3rem;
    }
    .timeline-item.right-item {
        left: 0;
        padding-left: 3rem;
    }
    .timeline-item.left-item .timeline-dot {
        left: 10px;
    }
    .timeline-item.right-item .timeline-dot {
        left: 10px;
    }
    .timeline-item.left-item .timeline-dot:has(.dot-musical-icon) {
        left: 4px;
    }
    .timeline-item.right-item .timeline-dot:has(.dot-musical-icon) {
        left: 4px;
    }
    .instruments-grid {
        grid-template-columns: 1fr;
    }
    .timeline-day-header {
        text-align: left;
        padding-left: 3rem;
    }
}

/* ==========================================================================
   Modal de Inscrição Interativo
   ========================================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(30, 32, 23, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    padding: 1.5rem;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-card {
    background-color: var(--bg-card);
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.02'/%3E%3C/svg%3E");
    border: 1px solid var(--gold-light);
    border-radius: 8px;
    width: 100%;
    max-width: 600px;
    padding: 3rem;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.25);
    position: relative;
    transform: translateY(30px);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    max-height: 90vh;
    overflow-y: auto;
}

.modal-overlay.active .modal-card {
    transform: translateY(0);
}

.modal-close-btn {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    transition: var(--transition-smooth);
}

.modal-close-btn:hover {
    color: var(--text-dark);
    transform: rotate(90deg);
}

.modal-close-btn svg {
    width: 24px;
    height: 24px;
}

.modal-header {
    margin-bottom: 2rem;
    text-align: center;
}

.modal-title {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.modal-subtitle {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Formulário do Modal */
.registration-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

@media (max-width: 600px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }
    .modal-card {
        padding: 2rem 1.5rem;
    }
}

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

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
}

.form-group input, .form-group select {
    font-family: var(--font-sans);
    padding: 0.8rem 1rem;
    font-size: 0.95rem;
    border: 1px solid rgba(182, 141, 60, 0.3);
    border-radius: 4px;
    background-color: #fff;
    color: var(--text-dark);
    transition: var(--transition-smooth);
}

.form-group input:focus, .form-group select:focus {
    outline: none;
    border-color: var(--gold-primary);
    box-shadow: 0 0 0 3px rgba(182, 141, 60, 0.15);
}

.form-terms {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    margin-top: 0.5rem;
}

.form-terms input {
    margin-top: 0.25rem;
    cursor: pointer;
}

.form-terms label {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.4;
    cursor: pointer;
}

/* Tela de Sucesso */
.success-screen {
    text-align: center;
    animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.success-icon-wrapper {
    width: 70px;
    height: 70px;
    background-color: rgba(47, 51, 31, 0.05);
    border: 2px solid var(--gold-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem auto;
}

.success-icon {
    width: 36px;
    height: 36px;
    color: var(--gold-primary);
}

.success-title {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    color: var(--text-dark);
    margin-bottom: 0.8rem;
}

.success-msg {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.success-instructions {
    background-color: rgba(47, 51, 31, 0.03);
    border: 1px solid rgba(182, 141, 60, 0.15);
    border-radius: 6px;
    padding: 1.5rem;
    text-align: left;
    margin-bottom: 2rem;
}

.success-instructions h5 {
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-dark);
    margin-bottom: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.success-instructions ol {
    padding-left: 1.2rem;
    font-size: 0.85rem;
    color: var(--text-primary);
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

/* ==========================================================================
   Rodapé (Footer)
   ========================================================================== */
.main-footer {
    background-color: var(--text-dark);
    color: var(--bg-secondary);
    padding: 4rem 2rem;
    text-align: center;
    position: relative;
    border-top: 1px solid rgba(182, 141, 60, 0.2);
}

.footer-container {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.footer-event-name {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: #fff;
    text-transform: uppercase;
}

.footer-church-name {
    font-size: 0.85rem;
    color: var(--gold-light);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.footer-socials {
    display: flex;
    gap: 1.8rem;
}

.social-link {
    color: var(--gold-light);
    transition: var(--transition-smooth);
}

.social-link:hover {
    color: #fff;
    transform: translateY(-2px);
}

.social-icon {
    width: 20px;
    height: 20px;
}

.footer-copyright {
    font-size: 0.75rem;
    color: rgba(243, 231, 207, 0.5);
    margin-top: 1rem;
    border-top: 1px solid rgba(243, 231, 207, 0.1);
    padding-top: 2rem;
    width: 100%;
}

/* ==========================================================================
   Animações de Rolagem (Scroll Reveal)
   ========================================================================== */
.animate-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   Checkout de Pagamento Integrado (Mercado Pago)
   ========================================================================== */
.payment-screen {
    animation: fadeIn 0.4s ease forwards;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.payment-title {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    color: var(--text-dark);
    text-align: center;
    margin-bottom: 0.5rem;
}

.payment-subtitle {
    font-size: 0.95rem;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 1.5rem;
}

.payment-methods {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.2rem;
}

.btn-pay-method {
    background-color: #fff;
    border: 2px solid rgba(182, 141, 60, 0.2);
    border-radius: 6px;
    padding: 2rem 1rem;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
    transition: var(--transition-smooth);
    box-shadow: 0 4px 10px rgba(30, 32, 23, 0.02);
}

.btn-pay-method:hover {
    border-color: var(--gold-primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(182, 141, 60, 0.15);
}

.pay-icon {
    width: 32px;
    height: 32px;
    color: var(--gold-primary);
}

#pay-method-pix .pay-icon {
    color: #00bab5; /* Cor do Pix para destacar */
}

/* Telas de detalhes do pagamento */
.payment-pix-details, .payment-card-details {
    animation: fadeIn 0.4s ease forwards;
}

.btn-back {
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 1.5rem;
    transition: var(--transition-smooth);
    padding: 0;
}

.btn-back:hover {
    color: var(--text-dark);
    transform: translateX(-3px);
}

.sub-title {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    color: var(--text-dark);
    margin-bottom: 1.2rem;
    border-bottom: 1px solid rgba(182, 141, 60, 0.2);
    padding-bottom: 0.5rem;
}

/* Detalhes do Pix */
.pix-qr-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
    animation: fadeIn 0.4s ease forwards;
}

.pix-instructions {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-align: center;
}

.qr-code-wrapper {
    background-color: #fff;
    padding: 1rem;
    border-radius: 6px;
    border: 1px solid rgba(182, 141, 60, 0.25);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.05);
}

.qr-code-wrapper img {
    width: 180px;
    height: 180px;
    display: block;
}

.copy-paste-wrapper {
    display: flex;
    width: 100%;
    gap: 0.5rem;
    margin-top: 0.5rem;
    align-items: stretch;
}

.copy-paste-wrapper input {
    flex: 1;
    min-width: 0; /* Impede transbordamento em telas menores */
    font-family: var(--font-sans);
    padding: 0.8rem 1rem;
    font-size: 0.85rem;
    border: 1px solid rgba(182, 141, 60, 0.3);
    border-radius: 4px;
    background-color: rgba(47, 51, 31, 0.02);
    color: var(--text-muted);
    outline: none;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    transition: all 0.3s ease;
}

#btn-copy-pix {
    padding: 0.8rem 1.2rem;
    font-size: 0.85rem;
    font-weight: 600;
    min-width: 115px; /* Evita que o layout mude quando o texto muda para "Copiado! ✓" */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin: 0;
    border-radius: 4px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

#btn-copy-pix.copied {
    background-color: #2e7d32 !important; /* Verde de sucesso */
    border-color: #2e7d32 !important;
    color: #ffffff !important;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(46, 125, 50, 0.3);
}

/* Animação de piscar para o Input de cópia */
@keyframes copy-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(46, 125, 50, 0.4);
        border-color: #2e7d32;
        background-color: rgba(46, 125, 50, 0.05);
    }
    50% {
        box-shadow: 0 0 0 6px rgba(46, 125, 50, 0.15);
        border-color: #2e7d32;
        background-color: rgba(46, 125, 50, 0.08);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(46, 125, 50, 0);
        border-color: rgba(182, 141, 60, 0.3);
        background-color: rgba(47, 51, 31, 0.02);
    }
}

.copy-success-flash {
    animation: copy-pulse 1.2s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
    border-color: #2e7d32 !important;
    color: #2e7d32 !important;
}

.payment-waiting-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    margin-top: 1rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Spinner Styles */
.spinner-small {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(182, 141, 60, 0.2);
    border-top: 2px solid var(--gold-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.spinner-large {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(182, 141, 60, 0.2);
    border-top: 4px solid var(--gold-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 2rem auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Tela de Processamento */
.payment-loading-screen {
    text-align: center;
    padding: 3rem 1rem;
    animation: fadeIn 0.4s ease forwards;
}

.payment-loading-screen p {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-top: 1rem;
}

/* Alerta de erro */
.payment-error-alert {
    background-color: #fdf2f2;
    border: 1px solid #f8b4b4;
    border-radius: 6px;
    padding: 1rem;
    margin-top: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    animation: fadeIn 0.4s ease forwards;
}

.error-msg {
    font-size: 0.85rem;
    color: #9b1c1c;
    font-weight: 500;
}

.btn-close-error {
    background-color: #f8b4b4;
    border: none;
    border-radius: 4px;
    padding: 0.3rem 0.8rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: #9b1c1c;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-close-error:hover {
    background-color: #f05252;
    color: #fff;
}

/* Responsividade do Checkout */
@media (max-width: 480px) {
    .payment-methods {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .btn-pay-method {
        padding: 1.5rem 1rem;
    }
}

/* Banner de Ambiente Seguro */
.secure-badge {
    background-color: rgba(46, 125, 50, 0.05);
    border: 1px solid rgba(46, 125, 50, 0.2);
    border-radius: 6px;
    padding: 0.8rem 1rem;
    margin-bottom: 1.2rem;
    display: flex;
    align-items: start;
    gap: 0.6rem;
    font-size: 0.75rem;
    color: #2e7d32;
    line-height: 1.4;
    text-align: left;
}

.secure-badge svg {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    margin-top: 2px;
}

.secure-badge strong {
    font-weight: 700;
}

/* ==========================================================================
   Seção de Professores e Modal de Biografias (Estilo Orquestra Americana)
   ========================================================================== */

.section-professores {
    background-color: var(--bg-secondary);
    position: relative;
    border-bottom: 1px solid rgba(182, 141, 60, 0.12);
}

.teachers-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 1rem;
}

@media (max-width: 1024px) {
    .teachers-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .teachers-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .teachers-grid {
        grid-template-columns: 1fr;
        max-width: 320px;
        margin: 0 auto;
    }
}

.teacher-card {
    background-color: var(--bg-card);
    border: 1px solid rgba(182, 141, 60, 0.2);
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--transition-smooth);
    cursor: pointer;
    box-shadow: var(--shadow-premium);
    position: relative;
}

.teacher-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 6px;
    border: 1px solid var(--gold-primary);
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-smooth);
}

.teacher-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: transparent;
}

.teacher-card:hover::after {
    opacity: 1;
}

.teacher-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background-color: var(--text-dark);
}

.teacher-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.teacher-card:hover .teacher-image {
    transform: scale(1.05);
}

.teacher-info {
    padding: 1.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
    gap: 0.5rem;
}

.teacher-name {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    color: var(--text-dark);
    font-weight: 700;
    margin-bottom: 0.2rem;
    line-height: 1.2;
}

.teacher-instrument {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gold-primary);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.teacher-bio-link {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0.8rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    transition: var(--transition-smooth);
}

.teacher-bio-link::after {
    content: '→';
    display: inline-block;
    transition: transform 0.3s ease;
}

.teacher-card:hover .teacher-bio-link {
    color: var(--text-dark);
}

.teacher-card:hover .teacher-bio-link::after {
    transform: translateX(4px);
    color: var(--gold-primary);
}

/* Modal do Professor (Estilo Orquestra Americana) */
.teacher-modal-card {
    max-width: 820px;
    width: 90%;
    height: 80vh;
    max-height: 650px;
    min-height: 450px;
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.teacher-modal-layout {
    display: flex;
    flex-direction: row;
    height: 100%;
}

.teacher-modal-photo-col {
    flex: 0 0 40%;
    max-width: 40%;
    position: relative;
    background-color: var(--text-dark);
}

.teacher-modal-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 15%; /* Mantém o enquadramento melhor focado no rosto */
    display: block;
}

.teacher-modal-info-col {
    flex: 1;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* Altera para flex-start para evitar o bug de corte do topo */
    overflow-y: auto;
}

.teacher-modal-name {
    font-family: var(--font-serif);
    font-size: 2.2rem;
    color: var(--text-dark);
    font-weight: 700;
    margin-bottom: 0.4rem;
    line-height: 1.1;
}

.teacher-modal-instrument {
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 600;
    color: var(--gold-primary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1.5rem;
}

.teacher-modal-divider {
    width: 50px;
    height: 2px;
    background-color: var(--gold-primary);
    margin-bottom: 1.8rem;
}

.teacher-modal-bio-content {
    font-family: var(--font-sans);
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-primary);
}

.teacher-modal-bio-content p {
    margin-bottom: 1.2rem;
}

.teacher-modal-bio-content p:last-child {
    margin-bottom: 0;
}

#close-teacher-modal-btn {
    z-index: 10;
    background-color: rgba(251, 247, 238, 0.85);
    border-radius: 50%;
    padding: 0.35rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

#close-teacher-modal-btn:hover {
    background-color: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

@media (max-width: 768px) {
    .teacher-modal-card {
        height: 85vh; /* Aumentado para 85vh para aproveitar melhor a tela */
        max-height: 90%;
        min-height: 420px;
        width: 92%;
    }

    .teacher-modal-layout {
        flex-direction: column;
        height: 100%;
    }
    
    .teacher-modal-photo-col {
        flex: 0 0 240px; /* Aumentado para 240px para evitar corte excessivo e manter enquadramento */
        max-width: 100%;
        width: 100%;
        height: 240px;
    }
    
    .teacher-modal-info-col {
        flex: 1;
        min-height: 0; /* Crucial para fazer o overflow funcionar dentro do flexbox */
        padding: 2rem 1.5rem;
        justify-content: flex-start;
        overflow-y: auto;
    }
    
    .teacher-modal-name {
        font-size: 1.5rem;
    }
    
    .teacher-modal-instrument {
        margin-bottom: 0.8rem;
        font-size: 0.9rem;
    }
    
    .teacher-modal-divider {
        margin-bottom: 1rem;
    }
    
    #close-teacher-modal-btn {
        top: 0.5rem;
        right: 0.5rem;
        padding: 0.25rem;
    }
}

/* ==========================================================================
   Seção de Loja de Camisetas (Modal e Componentes)
   ========================================================================== */

/* Botão Mobile da Loja */
.mobile-store-btn {
    display: none;
}

@media (max-width: 768px) {
    .mobile-store-btn {
        display: inline-flex;
        align-items: center;
        gap: 0.4rem;
        font-family: var(--font-sans);
        font-size: 0.75rem;
        font-weight: 700;
        letter-spacing: 0.1em;
        color: var(--gold-primary);
        text-decoration: none;
        text-transform: uppercase;
        border: 1px solid var(--gold-primary);
        padding: 0.5rem 0.8rem;
        border-radius: 4px;
        transition: var(--transition-smooth);
        background-color: var(--bg-card);
        box-shadow: 0 4px 10px rgba(182, 141, 60, 0.05);
    }
    
    .mobile-store-btn:hover {
        background-color: var(--gold-primary);
        color: var(--bg-card);
    }
}

/* Ajustes no Modal de Compra */
.store-modal-card {
    max-width: 580px;
    width: 90%;
    overflow-y: auto;
    max-height: 90vh;
    animation: fadeIn 0.4s ease forwards;
}

/* Cabeçalho da Loja Virtual */
.store-virtual-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 1.25rem;
    margin-bottom: 1.25rem;
    border-bottom: 1px solid rgba(182, 141, 60, 0.25);
    width: 100%;
}

.store-vh-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    justify-content: center;
}

.store-vh-icon {
    width: 28px;
    height: 28px;
    color: var(--gold-primary);
    flex-shrink: 0;
}

.store-vh-text {
    text-align: left;
}

.store-vh-text h2 {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--text-dark);
    margin: 0;
    line-height: 1.2;
}

.store-vh-text h3 {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--gold-primary);
    margin: 0.15rem 0 0 0;
}

@media (max-width: 768px) {
    .store-virtual-header {
        padding-bottom: 1rem;
        margin-bottom: 1rem;
    }
    
    .store-vh-text h2 {
        font-size: 1.1rem;
    }
    
    .store-vh-text h3 {
        font-size: 0.75rem;
    }
    
    .store-vh-icon {
        width: 24px;
        height: 24px;
    }
}


.store-step {
    animation: fadeIn 0.3s ease forwards;
}

/* Passo 1: Intro */
.store-intro-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem 0;
}

.store-intro-img {
    width: 100%;
    max-width: 320px;
    height: auto;
    object-fit: cover;
    margin-bottom: 2rem;
    border-radius: 6px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

/* Passo 2: Produto e Customização */
.store-product-details {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
}

.store-product-img-wrapper {
    flex: 0 0 40%;
    max-width: 40%;
}

.store-product-img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid rgba(182, 141, 60, 0.15);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.store-product-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.store-product-price {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
}

.store-delivery-notice {
    background-color: rgba(182, 141, 60, 0.08);
    border-left: 3px solid var(--gold-primary);
    padding: 0.6rem 0.8rem;
    font-size: 0.82rem;
    color: var(--text-primary);
    line-height: 1.4;
    border-radius: 0 4px 4px 0;
}

.size-selector-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.size-group-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
}

.size-options {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.btn-size {
    background-color: #fff;
    border: 1px solid rgba(47, 51, 31, 0.2);
    color: var(--text-primary);
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition-smooth);
    min-width: 40px;
    text-align: center;
}

.btn-size:hover {
    border-color: var(--gold-primary);
    color: var(--gold-primary);
}

.btn-size.active {
    background-color: var(--gold-primary);
    border-color: var(--gold-primary);
    color: #fff;
    box-shadow: 0 4px 10px rgba(182, 141, 60, 0.25);
}

/* Seletor de Quantidade */
.qty-selector-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 0.5rem;
}

.qty-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
}

.qty-selector {
    display: flex;
    align-items: center;
    border: 1px solid rgba(47, 51, 31, 0.2);
    border-radius: 4px;
    overflow: hidden;
    background-color: #fff;
}

.btn-qty-minus, .btn-qty-plus {
    background: none;
    border: none;
    width: 32px;
    height: 32px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    color: var(--text-primary);
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-qty-minus:hover, .btn-qty-plus:hover {
    background-color: rgba(47, 51, 31, 0.05);
    color: var(--gold-primary);
}

#store-qty {
    width: 40px;
    height: 32px;
    border: none;
    border-left: 1px solid rgba(47, 51, 31, 0.2);
    border-right: 1px solid rgba(47, 51, 31, 0.2);
    text-align: center;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
    background: none;
    -moz-appearance: textfield;
}

#store-qty::-webkit-outer-spin-button,
#store-qty::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Rodapé de Ações do Modal */
.store-actions-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1.5rem;
    border-top: 1px solid rgba(182, 141, 60, 0.15);
    padding-top: 1.5rem;
}

.store-actions-row .btn {
    flex: 1;
}

/* Passo 3: Resumo */
.store-summary-card {
    background-color: rgba(182, 141, 60, 0.04);
    border: 1px solid rgba(182, 141, 60, 0.2);
    border-radius: 6px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.summary-item-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.95rem;
}

.summary-label {
    color: var(--text-muted);
}

.summary-value {
    font-weight: 600;
    color: var(--text-dark);
}

.summary-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.5rem;
}

.total-label {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
}

.total-value {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--gold-primary);
}

/* Passo 4: Checkout e Opções de Pagamento */
.store-payment-options {
    margin-top: 1.5rem;
    border-top: 1px solid rgba(182, 141, 60, 0.15);
    padding-top: 1.5rem;
}

/* Responsividade do Modal da Loja */
/* Responsividade do Modal da Loja */
@media (max-width: 580px) {
    /* Centralização do Modal no Celular para maior credibilidade */
    #store-modal {
        align-items: center;
        justify-content: center;
        padding: 1.25rem 1rem; /* Margem externa de segurança ao redor do card */
    }
    
    #store-modal .store-modal-card {
        width: 100%;
        max-width: 440px; /* Largura máxima ideal e compacta */
        max-height: 88vh; /* Altura máxima controlada para evitar cortes */
        border-radius: 16px; /* Bordas arredondadas e simétricas */
        margin: auto;
        padding: 2.2rem 1.25rem 1.5rem 1.25rem;
        transform: translateY(20px);
        border: 1px solid var(--gold-light);
        position: relative;
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    }

    /* Oculta o indicador de arrastar bottom sheet */
    #store-modal .store-modal-card::before {
        display: none;
    }

    .modal-overlay.active#store-modal .store-modal-card {
        transform: translateY(0);
    }
    
    /* Espaçamentos e Fontes Otimizados para Celular */
    #store-modal .modal-header {
        margin-bottom: 1rem;
    }
    
    #store-modal .modal-title {
        font-size: 1.5rem;
    }

    #store-modal .modal-close-btn {
        top: 1rem;
        right: 1.25rem;
    }

    /* Passo 1: Intro */
    #store-modal .store-intro-content {
        padding: 0.5rem 0;
    }

    #store-modal .store-intro-img {
        max-width: 240px;
        margin-bottom: 1.25rem;
    }

    /* Passo 2: Detalhes do Produto */
    .store-product-details {
        flex-direction: column;
        gap: 1rem;
        margin-bottom: 1.25rem;
    }
    
    .store-product-img-wrapper {
        flex: 0 0 auto;
        max-width: 130px;
        margin: 0 auto 0.25rem auto;
    }
    
    .store-product-info {
        gap: 0.6rem;
    }
    
    .store-product-price {
        font-size: 1.5rem;
        text-align: center;
        margin-bottom: 0.2rem;
    }

    .store-delivery-notice {
        font-size: 0.78rem;
        padding: 0.5rem 0.6rem;
    }

    .size-selector-group {
        gap: 0.3rem;
    }

    .size-group-title {
        font-size: 0.8rem;
    }

    .size-options {
        gap: 0.4rem;
        justify-content: center;
    }

    .btn-size {
        padding: 0.35rem 0.7rem;
        font-size: 0.8rem;
        min-width: 38px;
    }

    .qty-selector-wrapper {
        justify-content: center;
        gap: 0.8rem;
        margin-top: 0.2rem;
    }

    /* Rodapé de Ações */
    .store-actions-row {
        margin-top: 1rem;
        padding-top: 1rem;
    }

    /* Passo 3: Resumo */
    .store-summary-card {
        padding: 1rem;
        margin-bottom: 1rem;
        gap: 0.6rem;
    }

    .summary-item-row {
        font-size: 0.88rem;
    }

    .total-label {
        font-size: 1rem;
    }

    .total-value {
        font-size: 1.4rem;
    }

    /* Passo 4: Checkout */
    #store-checkout-form {
        gap: 0.8rem;
    }

    #store-checkout-form .form-group {
        gap: 0.3rem;
    }

    #store-checkout-form label {
        font-size: 0.8rem;
    }

    #store-checkout-form input {
        padding: 0.6rem 0.8rem;
        font-size: 0.85rem;
    }
}

/* ==========================================================================
   Pop-up de Venda da Camiseta
   ========================================================================== */
.sales-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1500;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    padding: 1.5rem;
}

.sales-popup-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.sales-popup-content {
    position: relative;
    max-width: 400px;
    width: 100%;
    background: transparent;
    border-radius: 16px;
    overflow: visible;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.sales-popup-overlay.active .sales-popup-content {
    transform: scale(1);
}

.sales-popup-close {
    position: absolute;
    top: -12px;
    right: -12px;
    width: 30px;
    height: 30px;
    background-color: #ffffff;
    border: 1px solid rgba(182, 141, 60, 0.3);
    border-radius: 50%;
    font-size: 18px;
    font-weight: bold;
    color: #333;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.2s ease;
    z-index: 1600;
}

.sales-popup-close:hover {
    background-color: #f4ecd8;
    transform: scale(1.1);
}

.sales-popup-body {
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid #b68d3c;
    background-color: #fff;
    transition: transform 0.3s ease;
}

.sales-popup-body:hover {
    transform: translateY(-4px);
}

.sales-popup-img {
    width: 100%;
    height: auto;
    display: block;
}




