/* ====== Reset mínimo ====== */
* {
    box-sizing: border-box
}

html,
body {
    height: 100%
}

body {
    margin: 0;
    background: var(--c-bg);
    color: var(--c-text-default);
    font-family: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, "Helvetica Neue", Arial, sans-serif;
}

/* ====== Tokens suaves ====== */
:root {
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --space-1: 6px;
    --space-2: 10px;
    --space-3: 14px;
    --space-4: 18px;
    --space-5: 24px;
    --space-6: 32px;
}

/* ====== Header ====== */
.header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: var(--c-header-bg);
    box-shadow:
        0 14px 28px rgba(0, 0, 0, .36),
        0 2px 0 rgba(0, 0, 0, .50);
}

.header-in {
    max-width: 1120px;
    margin: 0 auto;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    justify-content: space-between;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand .logo {
    height: 50px;
    width: auto;
    display: block;
}

/* Botão Login: pill com contorno (usar cores primary) */
.login {
    background: transparent;
    /* sem preenchimento */
    color: var(--c-primary);
    /* texto primary */
    border: 2px solid var(--c-primary);
    /* contorno primary */
    border-radius: 999px;
    /* pill */
    padding: 10px 20px;
    font-weight: 800;
    cursor: pointer;
    line-height: 1;
    transition: background .15s ease, color .15s ease, box-shadow .15s ease, transform .06s ease;
}

/* Hover: enche com primary (reverso) */
.login:hover {
    background: var(--c-primary);
    color: var(--c-primary-contrast);
    box-shadow: 0 0 0 3px color-mix(in oklab, var(--c-primary) 30%, transparent);
}

/* Focus visível: anel de foco sem “estourar” o layout */
.login:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px color-mix(in oklab, var(--c-primary) 45%, transparent);
}

/* Active: leve feedback */
.login:active {
    transform: translateY(1px);
}


/* ===== Promo Hero (topo, fluido) ===== */
.promo-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
}

.promo-hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: 100vw;
    height: 100%;
    background-image: var(--hero-img);
    background-size: cover;
    background-position: center;
    filter: blur(12px);
    transform: translateX(-50%) scale(1.08);
    z-index: -2;
    pointer-events: none;
}

.promo-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, .65), rgba(0, 0, 0, .85));
    z-index: -1;
    pointer-events: none;
}

.promo-hero__wrap {
    position: relative;
    max-width: 1120px;
    margin: 0 auto;
    padding: 22px 16px 34px 16px;
    overflow: visible;
}

.promo-hero__grid {
    display: grid;
    grid-template-columns: 45% 55%;
    gap: 24px;
    align-items: center;
}

.promo-hero__left,
.promo-hero__right {
    min-width: 0;
}

.promo-hero__title {
    margin: 0 0 6px;
    font-size: clamp(20px, 2.2vw, 22px);
    line-height: 1.06;
    font-weight: 900;
    color: var(--c-primary-contrast);
}

.promo-hero__meta {
    display: grid;
    gap: 6px;
    color: var(--c-primary-contrast);
    opacity: .9;
    font-weight: 600;
    font-size: clamp(14px, 1.4vw, 16px);
}

.promo-hero__row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.promo-hero__row i {
    font-size: 18px;
    line-height: 1;
    opacity: .95;
}

/* Data em laranja */
.promo-hero__data span,
.promo-hero__data i {
    color: var(--c-primary);
}

/* CTA discreto */
.promo-hero__cta {
    margin-top: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 70px;
    font-size: 17px;
    font-weight: 800;
    border: 0;
    border-radius: 999px;
    background: var(--c-primary);
    color: var(--c-primary-contrast);
    cursor: pointer;
}

.promo-hero__cta:hover {
    background: var(--c-primary-dark);
}

.promo-hero__cta:active {
    transform: translateY(1px);
}

/* Poster + share */
.promo-hero__poster {
    position: relative;
    margin: 0;
    border-radius: var(--radius-xl);
    overflow: visible;
    box-shadow: 0 10px 24px var(--c-shadow);
    background: var(--c-panel);
}

.promo-hero__poster img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: inherit;
}

.share-fab {
    position: absolute;
    left: 50%;
    bottom: -14px;
    transform: translateX(-50%);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: var(--c-pill-selected-bg);
    color: var(--c-primary);
    font-weight: 600;
    box-shadow: 0 8px 18px var(--c-shadow);
    cursor: pointer;
}


.share-fab i {
    font-size: 12px;
}

/* Mobile: remove blur/overlay e inverte ordem */
@media (max-width:1024px) {
    .promo-hero__grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .promo-hero__right {
        order: -1;
    }

    .promo-hero__poster img {
        max-height: 240px;
        object-fit: cover;
    }

    .promo-hero__cta {
        width: 100%;
    }
}

@media (max-width:768px) {

    .promo-hero::before,
    .promo-hero::after {
        display: none;
    }

    .promo-hero {
        background: var(--c-bg);
    }

    .promo-hero__wrap {
        padding-top: 12px;
        padding-bottom: 12px;
    }
}

/* ===== Página única (conteúdo abaixo do hero) ===== */
.page {
    max-width: 1120px;
    margin: 0 auto;
    padding: 28px 16px 40px;
}

/* Tipos e cartões */
.card {
    background: var(--c-panel);
    border-radius: var(--radius-xl);
    padding: 12px;
}

.desc {
    color: var(--c-text-muted);
    margin-top: 10px;
    font-size: 14px;
}

/* Cupom */
.coupon {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--c-panel);
    border-radius: var(--radius-lg);
    padding: 6px 10px;
    margin-top: 20px;
}

.coupon--outline {
    border: 2px solid var(--c-primary);
}

.coupon input {
    flex: 1;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--c-text-default);
    font-size: 15px;
}

.coupon-add {
    width: 40px;
    height: 36px;
    min-width: 40px;
    border: 0;
    border-radius: var(--radius-md);
    background: var(--c-primary);
    color: var(--c-primary-contrast);
    font-weight: 900;
    font-size: 20px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.coupon-add:hover {
    background: var(--c-primary-dark);
}

/* Títulos/seções */
.section-title {
    margin: 20px 0 10px;
    font-weight: 800;
    color: var(--c-primary);
}

/* Tickets (reaproveitados dentro do modal) */
.ticket {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas: "meta qty" "price qty";
    row-gap: 2px;
    align-items: center;
    padding: 18px 18px;
    border-radius: var(--radius-xl);
    background: var(--c-panel);
}

.ticket+.ticket {
    margin-top: 12px;
}

.ticket>div:first-child {
    grid-area: meta;
}

.ticket>div:first-child>div:first-child {
    font-size: 14px;
    line-height: 1.35;
    font-weight: 500;
    color: var(--c-text-dark);
}

.ticket .name {
    font-size: 12px;
    line-height: 1.35;
    color: var(--c-text-muted);
}

.ticket .price {
    grid-area: price;
    margin: 0;
    font-size: 16px;
    font-weight: 900;
}

.ticket .qty {
    grid-area: qty;
    align-self: center;
    display: flex;
    gap: 10px;
}

.ticket .qbtn {
    width: 44px;
    height: 44px;
    border: none;
    background: transparent;
    color: var(--c-text-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    border-radius: var(--radius-md);
    cursor: pointer;
    user-select: none;
}

.ticket .qbtn:hover {
    color: var(--c-text-default);
    background: transparent;
}

.ticket .qty .qvalue {
    width: 60px;
    height: 44px;
    text-align: center;
    font-size: 18px;
    font-weight: 900;
    border-radius: 12px;
    border: 1px solid var(--c-border);
    background: var(--c-input-medium);
    color: var(--c-text-dark);
}

/* estado selecionado */
.ticket.is-selected {
    box-shadow: 0 0 0 2px var(--c-brand-accent), 0 6px 14px var(--c-shadow);
    border-radius: var(--radius-lg);
}

.ticket.is-selected .qvalue {
    background: var(--c-pill-selected-bg);
    color: var(--c-pill-selected-text);
    border-color: var(--c-brand-accent);
    font-weight: 900;
}

.ticket.is-selected .qbtn {
    color: var(--c-text-default);
}

/* CTA genérica */
.cta {
    display: block;
    width: 100%;
    text-align: center;
    font-weight: 900;
    padding: 12px 16px;
    margin-top: 20px;
    margin-bottom: 20px;
    border-radius: var(--radius-xl);
    background: var(--c-brand-accent);
    color: var(--c-text-inverse);
    border: 2px solid var(--c-primary);
    cursor: pointer;
    font-family: inherit;
    user-select: none;
}

.cta:hover {
    background: var(--c-primary);
    color: var(--c-primary-contrast);
}

.cta:active {
    transform: translateY(1px);
}

/* “Veja o regulamento” */
.rule {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 18px 22px;
    margin-top: 20px;
    background: var(--c-panel);
    border-radius: var(--radius-xl);
    color: var(--c-text-default);
    font-weight: 800;
    font-size: 16px;
    text-decoration: none;
    line-height: 1.2;
}

.rule::after {
    content: "";
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 10px;
    height: 3px;
    border-radius: 2px;
    background: var(--c-brand-accent);
}

.label {
    color: var(--c-primary);
    font-weight: 800;
    margin: 12px 0 4px;
}

.kv {
    color: var(--c-text-dark);
    font-size: 14px;
}

.map {
    margin-top: 8px;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--c-border);
}

.producer {
    display: flex;
    align-items: center;
    gap: 16px;
}

.producer-logo {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    object-fit: cover;
    display: block;
}

.producer-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.producer-label {
    color: var(--c-text-dark);
    font-size: 14px;
    line-height: 1.1;
    margin-bottom: 6px;
}

.producer-name {
    color: var(--c-text-default);
    font-weight: 900;
    font-size: 18px;
    line-height: 1.05;
}

/* Footer */
.footer {
    margin-top: 28px;
    padding: 18px 0 30px;
    border-top: 1px solid var(--c-border-strong);
    background: var(--c-bg-alt);
}

.footer-in {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 16px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    justify-items: center;
    color: var(--c-text-dark);
    font-size: 14px;
}

/* Summary (clamp + ver mais) */
.summary {
    margin: 0 0 var(--space-4);
}

.summary .title {
    margin: 0 0 2px;
}

.summary .date {
    color: var(--c-primary);
    font-weight: 800;
    margin: 2px 0 0;
}

.summary .place {
    color: var(--c-text-dark);
    margin-top: 2px;
}

.summary-body {
    position: relative;
    overflow: hidden;
    max-height: 10.5rem;
    transition: max-height .25s ease;
}

.summary-fade {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 36px;
    background: linear-gradient(to bottom, transparent, var(--c-bg));
    pointer-events: none;
}

.summary-toggle {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    width: 100%;
    margin-top: 8px;
    background: none;
    border: 0;
    color: var(--c-text-muted);
    font-weight: 800;
    cursor: pointer;
    padding: 0;
}

.summary-toggle::after {
    content: "";
    width: 12px;
    height: 12px;
    border: 2px solid currentColor;
    border-left: 0;
    border-top: 0;
    transform: rotate(45deg);
    transition: transform .2s ease;
}

.summary-toggle:hover {
    color: var(--c-primary);
}

.summary--expanded .summary-body {
    max-height: none;
}

.summary--expanded .summary-fade {
    display: none;
}

.summary--expanded .summary-toggle::after {
    transform: rotate(-135deg);
}

.side-title {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 800;
}

/* Form controls herdam tipografia */
button,
input,
select,
textarea {
    font: inherit;
    color: inherit;
    letter-spacing: inherit;
}

button {
    appearance: none;
    -webkit-appearance: none;
    background: none;
    border: none;
}

/* ===== Modal full-screen ===== */
.modal[aria-hidden="true"] {
    display: none;
}

.modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
}

.modal__overlay {
    position: absolute;
    inset: 0;
    /* escurece usando o próprio bg do tema (sem hardcode) */
    background: color-mix(in oklab, var(--c-bg) 55%, transparent);
    /* desfoca o conteúdo por trás (Safari/Chrome) */
    backdrop-filter: blur(6px) saturate(90%);
    -webkit-backdrop-filter: blur(6px) saturate(90%);
}

/* vinheta suave nas bordas para “matar” ainda mais o fundo */
.modal__overlay::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(120% 90% at 50% 0%,
            transparent 0 55%,
            color-mix(in oklab, var(--c-bg) 45%, transparent) 100%);
}

.modal__dialog {
    position: relative;
    z-index: 1;
    width: min(960px, 100%);
    max-height: 100%;
    margin: 0 auto;
    background: var(--c-bg);
    color: var(--c-text-default);
    display: flex;
    flex-direction: column;
    outline: none;
}

.modal__header {
    position: sticky;
    top: 0;
    background: var(--c-header-bg);
    color: var(--c-header-text);
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    box-shadow: 0 2px 0 rgba(0, 0, 0, .35);
}

.modal__title {
    margin: 0;
    font-size: 18px;
    font-weight: 900;
}

.modal__close {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: var(--c-panel);
    color: var(--c-text-default);
    border: 1px solid var(--c-border);
    cursor: pointer;
}

.modal__close:hover {
    border-color: var(--c-primary);
}

.modal__body {
    padding: 16px;
    overflow: auto;
}

/* ===== Section Tabs (stick abaixo do header) ===== */
.section-tabs {
    position: sticky;
    top: var(--header-h, 0px);
    z-index: 9;
    background: var(--c-bg);
    border-bottom: 1px solid var(--c-border);
}

.section-tabs__in {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 16px;
    display: flex;
    gap: 22px;
    align-items: center;
    overflow-x: auto;
    scrollbar-width: none;
}

.section-tabs__in::-webkit-scrollbar {
    display: none;
}

.section-tab {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    height: 70px;
    padding: 0 4px;
    color: var(--c-text-dark);
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: color .15s ease;
    font-size: 16px;
}

.section-tab i {
    font-size: 16px;
    opacity: .9;
}

.section-tab:hover {
    color: var(--c-text-default);
}

.section-tab.is-active {
    color: var(--c-primary);
}

.section-tab.is-active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    border-radius: 2px;
    background: var(--c-primary);
}

/* compensa header+tabs nas âncoras */
#sec-sobre,
#sec-local {
    scroll-margin-top: calc(var(--header-h, 0px) + 56px);
}

/* === Cards “flat”: removem o visual de card === */
.card.card--flat {
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    /* zera padding do .card */
}

/* === Divisor: aplica em TODO .card--flat exceto no primeiro === */
.page .card--flat {
    border-top: 1px solid var(--c-border, var(--c-border));
    padding-top: 35px;
    margin-top: 35px;
}

.page .card--flat:first-of-type {
    border-top: 0;
    padding-top: 0;
    margin-top: 0;
}

/* variante: produtor sem divisor e com mais respiro */
.page .card--flat.card--flat-producer {
    border-top: 0;
    padding-top: 0;
    margin-top: 24px;
    /* ajuste fino de distância em relação ao bloco anterior */
}

/* Espaços no mobile entre pôster + FAB e o título */
@media (max-width: 768px) {

    /* “empurra” o título para baixo um pouco (espaço pra cima do título) */
    .promo-hero__title {
        margin-top: 22px;
    }
}

/* ===== Mobile: ícone em cima, texto embaixo ===== */
@media (max-width: 768px) {
    .section-tabs__in {
        gap: 0;
        justify-content: space-between;
    }

    .section-tab {
        flex: 1 1 0;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 6px;
        padding: 10px 6px 12px;
        min-height: 64px;
        text-align: center;
    }

    .section-tab i {
        font-size: 16px;
        line-height: 1;
    }

}

/* ===== Mobile: FAB de Compartilhar (44x44, ícone centrado, canto direito) ===== */
@media (max-width: 768px) {
    .promo-hero__poster {
        overflow: visible;
    }

    .share-fab {
        position: absolute;
        right: 10px;
        bottom: 10px;

        /* reset do layout do desktop */
        left: auto;
        /* <<< importantíssimo */
        transform: none;
        /* <<< importantíssimo */

        inline-size: 44px;
        block-size: 44px;
        padding: 0;
        border-radius: 999px;

        display: grid;
        place-items: center;
        gap: 0;

        background: var(--c-primary-contrast);
        color: var(--c-primary);
        border: 1px solid var(--c-border);
        box-shadow: 0 6px 16px var(--c-shadow);

        font-size: 0;
        z-index: 3;
        cursor: pointer;
    }

    .share-fab i {
        font-size: 18px;
        line-height: 1;
        margin: 0;
    }

    .share-fab:hover {
        box-shadow: 0 8px 18px var(--c-shadow);
    }

    .share-fab:active {
        transform: scale(.97);
    }
}


.modal,
.modal__dialog,
.modal__body {
    overscroll-behavior: contain;
}

/* Badges "aplicado" */
.kv-badges {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-bottom: .5rem;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .375rem .625rem;
    border-radius: 999px;
    font-size: .8125rem;
    line-height: 1;
    background: var(--c-highlight);
    border: 1px solid var(--c-highlight-border);
    color: var(--c-text-default);
}

.badge--primary {
    /* usa a paleta do tema */
    background: color-mix(in oklab, var(--c-primary) 18%, transparent);
    border-color: var(--c-primary);
}

/* botão “remover” do badge */
.badge-clear {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .3rem .55rem;
    border-radius: .5rem;
    border: 1px solid var(--c-border-strong);
    background: var(--c-panel);
    color: var(--c-text-muted);
    font-size: .75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .02em;
    cursor: pointer;
    /* <- aqui o cursor */
}

.badge-clear:hover {
    border-color: var(--c-primary);
    color: var(--c-primary);
    background: color-mix(in oklab, var(--c-primary) 12%, var(--c-panel));
}

.badge-clear:focus-visible {
    outline: 2px solid color-mix(in oklab, var(--c-primary) 70%, white 30%);
    outline-offset: 2px;
}

.badge-clear i {
    font-size: 1rem;
    line-height: 1;
}

/* observação embaixo dos badges (opcional) */
.kv-note {
    margin-top: .25rem;
    color: var(--c-text-muted);
    font-size: .8125rem;
}

/* utilitária: deixa o texto na cor primária do tema */
.text-primary {
    color: var(--c-primary);
}

/* Mostrar o CTA só quando houver itens no form */
#buyNow {
    display: none;
}

#fing.has-items #buyNow {
    display: inline-block;
}


/******************* */

/* Gate de acesso */
.access-gate {
    background: var(--c-panel);
    border: 1px solid var(--c-border);
    border-radius: 10px;
    padding: 14px;
    margin: 14px 0 10px;
    box-shadow: 0 2px 10px var(--c-shadow);
}

.access-gate.is-hidden {
    display: none;
}

.access-gate__title {
    font-weight: 800;
    color: var(--c-text-dark);
    margin-bottom: 4px;
}

.access-gate__desc {
    color: var(--c-text-muted);
    margin-bottom: 10px;
}

.access-gate__form {
    display: flex;
    gap: 8px;
    align-items: center;
}

.access-gate__form input[type="text"] {
    flex: 1;
    border: 1px solid var(--c-border);
    border-radius: 8px;
    padding: 10px 12px;
    color: var(--c-text-default);
    background: #fff;
}

.btn.btn--primary {
    cursor: pointer;
    border: none;
    border-radius: 10px;
    padding: 10px 14px;
    background: var(--c-primary);
    color: var(--c-primary-contrast);
    font-weight: 700;
}

.btn.btn--primary:disabled {
    opacity: .55;
    cursor: not-allowed;
}

.access-gate__msg {
    margin-top: 8px;
    font-size: 14px;
}

.access-gate__msg--ok {
    color: var(--c-status-green);
}

.access-gate__msg--err {
    color: var(--c-status-red);
}