/* ========================================= */
/* RESET BÁSICO E CONFIGURAÇÕES GERAIS       */
/* ========================================= */
* { margin: 0; padding: 0; box-sizing: border-box; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
body { background-color: #ffffff; color: #333; }

/* ========================================= */
/* HEADER E BANNER                           */
/* ========================================= */
.header { background-color: #1a1e23; height: 60px; display: flex; align-items: center; justify-content: center; }
.header .logo { color: #ffffff; font-size: 22px; font-weight: bold; letter-spacing: -0.5px; }
.banner-container { position: relative; width: 100%; background: #000; }
.banner-container img { width: 100%; display: block; opacity: 0.9; }
.banner-shadow { position: absolute; bottom: -20px; left: 0; width: 100%; height: 40px; background: radial-gradient(ellipse at top, rgba(0,0,0,0.1) 0%, transparent 70%); z-index: 0; }
.share-btn { position: absolute; bottom: -20px; left: 50%; transform: translateX(-50%); background-color: #ffffff; color: #0094ff; border: none; border-radius: 24px; padding: 10px 24px; font-size: 13px; font-weight: 700; display: flex; align-items: center; gap: 8px; box-shadow: 0 4px 12px rgba(0,0,0,0.12); z-index: 1; cursor: pointer; }

/* ========================================= */
/* INFORMAÇÕES DO EVENTO                     */
/* ========================================= */
.event-details { padding: 45px 20px 25px 20px; }
.event-details h1 { font-size: 24px; color: #222222; line-height: 1.3; font-weight: 800; margin-bottom: 22px; }
.info-row { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 12px; font-size: 13px; color: #444444; line-height: 1.4; }
.info-row svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 1px; stroke: #666666; }
.info-row a { color: #0094ff; text-decoration: none; font-weight: 700; }
.badge-green-main { background-color: #5c9e31; color: #ffffff; display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 16px; font-size: 12px; font-weight: 700; margin-top: 10px; }
.badge-green-main svg { width: 14px; height: 14px; stroke: #ffffff; }

/* ========================================= */
/* SEÇÃO DE INGRESSOS                        */
/* ========================================= */
.tickets-section { background-color: #f7f7f7; border-radius: 12px; padding: 20px; margin: 0 15px 30px 15px; }
.tickets-title { font-size: 12px; color: #555; font-weight: 700; margin-bottom: 15px; }
.ticket-card { background: #ffffff; border: 1px solid #e0e0e0; border-radius: 8px; padding: 15px; margin-bottom: 12px; display: flex; justify-content: space-between; align-items: center; }
.ticket-info h4 { font-size: 13px; color: #222; margin-bottom: 6px; line-height: 1.4; }
.info-icon { display: inline-flex; align-items: center; justify-content: center; width: 14px; height: 14px; background-color: #0094ff; color: white; font-size: 10px; font-weight: bold; border-radius: 50%; margin-left: 4px; }
.ticket-info .price { font-size: 14px; color: #222; margin-bottom: 6px; }
.ticket-info .price span { color: #666; font-weight: normal; }
.ticket-badge { background-color: #4b822c; color: white; font-size: 11px; font-weight: bold; padding: 3px 8px; border-radius: 12px; display: inline-block; margin-bottom: 6px; }
.ticket-info .date { font-size: 11px; color: #999; font-style: italic; }

.ticket-controls { display: flex; align-items: center; gap: 12px; }
.btn-minus, .btn-plus { width: 34px; height: 34px; border-radius: 6px; border: none; font-size: 22px; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background-color 0.2s; }
.btn-plus { background-color: #0094ff; color: #ffffff; }
.btn-minus { background-color: #e2e6ea; color: #999; }
/* ESTADO ATIVO DO BOTÃO DE MENOS (-) QUANDO TEM INGRESSO */
.btn-minus.active { background-color: #0094ff; color: #ffffff; }

.qty { font-size: 14px; font-weight: 700; width: 10px; text-align: center; }

/* MODIFICADO: position relative adicionado */
.tickets-footer { position: relative; display: flex; justify-content: center; align-items: center; gap: 6px; margin-top: 20px; }
.tickets-footer svg { width: 14px; height: 14px; stroke: #666; }
.tickets-footer a { color: #666; font-size: 12px; text-decoration: underline; }

/* NOVO: Estilos do Tooltip de Taxa */
.tax-tooltip {
    display: none; /* Escondido por padrão */
    position: absolute;
    top: 30px; /* Distância de cima para baixo */
    left: 50%;
    transform: translateX(-50%);
    width: 280px;
    background-color: #ffffff;
    border: 1px solid #cccccc;
    border-radius: 4px;
    padding: 12px;
    font-size: 11px;
    color: #666;
    line-height: 1.4;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    z-index: 10;
}

/* Criando a setinha apontando para cima */
.tax-tooltip::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 10px;
    height: 10px;
    background-color: #ffffff;
    border-left: 1px solid #cccccc;
    border-top: 1px solid #cccccc;
}

.tax-tooltip a {
    color: #0094ff;
    text-decoration: none;
    font-weight: 700;
}

/* Classe ativada pelo JavaScript para aparecer */
.tax-tooltip.show {
    display: block;
}

/* ========================================= */
/* DESCRIÇÃO DO EVENTO                       */
/* ========================================= */
.event-description { padding: 10px 20px 30px 20px; background-color: #ffffff; }
.event-description h2 { font-size: 18px; color: #222222; font-weight: 800; margin-bottom: 16px; }
.event-description img { width: 100%; border-radius: 8px; display: block; }

/* ========================================= */
/* POLÍTICA E LOCAL                          */
/* ========================================= */
.policy-location-section { background-color: #f5f6f8; padding: 30px 20px; }
.policy-location-section h2 { font-size: 16px; color: #222222; font-weight: 800; margin-bottom: 20px; }
.policy-item { margin-bottom: 20px; }
.policy-item h3 { font-size: 14px; color: #333333; font-weight: 700; margin-bottom: 6px; }
.policy-item p { font-size: 13px; color: #444444; line-height: 1.5; margin-bottom: 8px; }
.policy-item a { font-size: 13px; color: #0094ff; font-weight: 700; text-decoration: none; }
.location-block h3 { font-size: 14px; color: #333333; font-weight: 700; margin-bottom: 6px; }
.location-block p { font-size: 13px; color: #444444; line-height: 1.5; margin-bottom: 15px; }
.btn-map { background-color: transparent; color: #0094ff; border: 1px solid #0094ff; border-radius: 6px; padding: 8px 16px; font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.btn-map svg { width: 14px; height: 14px; stroke: #0094ff; }
.policy-footer-links { display: flex; justify-content: space-between; margin-top: 10px; }
.policy-footer-links a { color: #0094ff; font-weight: 700; font-size: 13px; text-decoration: none; }
.divider { border: 0; border-top: 1px solid #e6e6e6; margin: 25px 0; }

/* ========================================= */
/* SOBRE O PRODUTOR E RESTANTE               */
/* ========================================= */
.producer-section { background-color: #ffffff; padding: 30px 20px; border-bottom: 1px solid #f0f0f0; }
.producer-section h2 { font-size: 16px; color: #222; font-weight: 800; margin-bottom: 25px; text-align: left;}
.producer-name { font-size: 15px; color: #444; font-weight: 700; text-align: center; margin-bottom: 20px; }
.btn-contact { width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px; background-color: transparent; border: 1px solid #0094ff; color: #0094ff; border-radius: 6px; padding: 12px; font-size: 14px; font-weight: 700; cursor: pointer; }
.btn-contact svg { width: 18px; height: 18px; stroke: #0094ff; }

.payment-security-section { background-color: #ffffff; padding: 30px 20px 40px 20px; text-align: center; }
.payment-security-section h2 { font-size: 15px; color: #222; font-weight: 800; margin-bottom: 20px; }
.payment-icons { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.payment-icons img { width: 38px; height: 24px; border-radius: 2px; object-fit: contain; }
.installment-badge { background-color: #f0faeb; color: #5c9e31; display: inline-flex; align-items: center; gap: 6px; padding: 6px 16px; border-radius: 16px; font-size: 12px; font-weight: 700; margin-top: 20px; }
.security-block p { font-size: 13px; color: #666; margin-bottom: 20px; line-height: 1.5; }
.security-logos { display: flex; justify-content: center; gap: 15px; align-items: center; }
.security-logos img { height: 40px; object-fit: contain; }
.help-block p { font-size: 13px; color: #666; margin-bottom: 20px; line-height: 1.5; }
.help-block a { color: #0094ff; text-decoration: none; font-weight: normal; }
.btn-contact-center { width: 100%; max-width: 250px; margin: 0 auto; display: flex; align-items: center; justify-content: center; gap: 8px; background-color: transparent; border: 1px solid #0094ff; color: #0094ff; border-radius: 6px; padding: 12px; font-size: 14px; font-weight: 700; cursor: pointer; }

/* ========================================= */
/* RODAPÉ PRINCIPAL ESCURO (FOOTER)          */
/* ========================================= */
.main-footer { background-color: #4e5a65; color: #ffffff; padding: 40px 20px 180px 20px; text-align: center; }
.footer-logo { font-size: 28px; font-weight: bold; margin-bottom: 30px; letter-spacing: -0.5px; }
.footer-app h4 { font-size: 12px; margin-bottom: 12px; font-weight: bold; }
.app-buttons { display: flex; justify-content: center; gap: 10px; }
.app-buttons img { height: 35px; border-radius: 6px; object-fit: cover; }
.footer-divider { border: 0; border-top: 1px solid rgba(255, 255, 255, 0.15); margin: 25px 0; }
.footer-links-grid { display: flex; justify-content: space-between; text-align: left; margin-bottom: 20px; }
.footer-col { display: flex; flex-direction: column; gap: 20px; flex: 1;}
.footer-col:last-child { padding-left: 20px; }
.footer-col a { color: #ffffff; font-size: 11px; font-weight: bold; text-decoration: none; text-transform: uppercase; }
.footer-more { display: flex; justify-content: center; align-items: center; gap: 6px; font-size: 12px; font-weight: bold; color: #ffffff; cursor: pointer; margin-top: 10px; }
.footer-bottom-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 15px; font-size: 11px; }
.footer-bottom-links a { color: #cccccc; text-decoration: none; }

/* ========================================= */
/* BARRA INFERIOR FIXA COM CARRINHO          */
/* ========================================= */
.bottom-bar {
    position: fixed; bottom: 0; left: 0; width: 100%; background-color: #ffffff;
    padding: 16px 20px 24px 20px; box-shadow: 0 -4px 15px rgba(0,0,0,0.1);
    display: flex; flex-direction: column; align-items: center; border-radius: 16px 16px 0 0; z-index: 100;
}

/* TOTAL DO CARRINHO */
.cart-summary {
    width: 100%; display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 15px; padding-bottom: 5px;
}
.total-price { font-size: 14px; color: #444; }
.total-price strong { font-size: 16px; color: #222; font-weight: 800; margin-left: 4px; }
.installment-price { font-size: 12px; color: #666; }

.coupon-btn { background: none; border: none; color: #0094ff; font-size: 14px; font-weight: 700; display: flex; align-items: center; gap: 8px; margin-bottom: 16px; cursor: pointer; }
/* ========================================= */
/* ESTILOS DO CUPOM DE DESCONTO              */
/* ========================================= */
.coupon-container { width: 100%; margin-bottom: 15px; display: none; flex-direction: column; }
.coupon-flex { display: flex; gap: 10px; width: 100%; }
.input-wrapper { position: relative; flex: 1; }
#coupon-input { width: 100%; height: 100%; padding: 12px 35px 12px 12px; border: 1px solid #cccccc; border-radius: 6px; font-size: 14px; outline: none; transition: border-color 0.2s; }
#coupon-input:focus { border-color: #0094ff; }
#clear-coupon { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); background: none; border: none; font-size: 20px; color: #999; cursor: pointer; display: none; padding-bottom: 2px;}
#apply-coupon { background: #ffffff; border: 1px solid #0094ff; color: #0094ff; border-radius: 6px; padding: 0 20px; font-size: 14px; font-weight: 700; cursor: pointer; transition: background 0.2s; white-space: nowrap; }
#apply-coupon:active { background: #f4faff; }
#coupon-message { color: #d32f2f; font-size: 12px; margin-top: 6px; display: none; font-weight: 500; }
/* BOTÃO DE COMPRAR E BOLINHA DE QUANTIDADE */
.buy-btn {
    position: relative; background-color: #1cb569; color: #ffffff; border: none; width: 100%;
    padding: 14px; border-radius: 6px; font-size: 16px; font-weight: 700; cursor: pointer;
    display: flex; justify-content: center; align-items: center;
}
.cart-badge {
    position: absolute; left: 16px; background-color: #ffffff; color: #1cb569;
    width: 24px; height: 24px; border-radius: 50%; display: inline-flex;
    align-items: center; justify-content: center; font-size: 14px; font-weight: 800;
}