/* BY JPHOTOGRAPHY — loja */
:root {
  --bg: #0b0b0c;
  --surface: #141416;
  --surface-2: #1b1b1e;
  --line: #2a2a2f;
  --text: #f4f0e8;
  --muted: #a39f96;
  --gold: #d6b370;
  --gold-strong: #e6c483;
  --gold-ink: #1a1408;
  --ok: #43d193;
  --warn: #f2b84b;
  --err: #f27272;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 18px 50px rgba(0, 0, 0, .45);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Montserrat", "Inter", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 15px/1.55 var(--font); min-height: 100vh; display: flex; flex-direction: column;
  -webkit-font-smoothing: antialiased;
}
main { flex: 1; }
a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-strong); }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--display); letter-spacing: .01em; line-height: 1.15; margin: 0 0 .4em; }
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.small { font-size: 13.5px; }
.tiny { font-size: 12px; }
[hidden] { display: none !important; }

/* logo */
.logo { height: 38px; width: auto; color: var(--text); overflow: visible; }
.logo .logo-mark { color: var(--gold); }
.logo .logo-core { fill: var(--gold); stroke: none; opacity: .18; }
.logo .logo-by { font: 600 11px var(--display); letter-spacing: .5em; fill: var(--gold); }
.logo .logo-word { font: 600 22px var(--display); letter-spacing: .16em; }
.logo-sm { height: 30px; }
.logo-xl { height: 84px; }

/* topo */
.topbar { position: sticky; top: 0; z-index: 40; background: rgba(11, 11, 12, .86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid rgba(255,255,255,.06); }
.topbar-in { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 12px; }
.brand { display: flex; min-width: 0; }
.topnav { display: flex; align-items: center; gap: 4px; }
.topnav a { color: var(--muted); font-weight: 500; padding: 8px 12px; border-radius: 999px; white-space: nowrap; font-size: 14px; }
.topnav a:hover, .topnav a.on { color: var(--text); background: var(--surface-2); }
.cart-link { position: relative; display: inline-flex; align-items: center; gap: 6px; }
.badge { background: var(--gold); color: var(--gold-ink); font-weight: 700; font-size: 11px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px; display: inline-grid; place-items: center; }
@media (max-width: 640px) {
  .logo { height: 30px; }
  .topnav a:not(.cart-link) { display: none; }
  .topnav a.show-sm { display: inline-flex; }
  .cart-label { display: none; }
}

/* botões */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid var(--line); background: var(--surface-2); color: var(--text);
  font: 600 14.5px var(--font); padding: 12px 18px; border-radius: 999px; cursor: pointer;
  transition: transform .12s ease, background .15s ease, border-color .15s ease; text-align: center; min-height: 46px;
}
.btn:hover { border-color: #3a3a40; background: #232327; color: var(--text); }
.btn:active { transform: scale(.98); }
.btn-gold { background: var(--gold); color: var(--gold-ink); border-color: var(--gold); }
.btn-gold:hover { background: var(--gold-strong); border-color: var(--gold-strong); color: var(--gold-ink); }
.btn-ghost { background: transparent; }
.btn-lg { font-size: 16px; padding: 15px 24px; min-height: 54px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn svg { flex: none; }

/* hero */
.hero { padding: 56px 0 20px; text-align: center; position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: -40% -10% auto; height: 420px; background: radial-gradient(closest-side, rgba(214,179,112,.16), transparent); pointer-events: none; }
.hero .logo-xl { margin: 0 auto 22px; max-width: 92%; }
.hero h1 { font-size: clamp(22px, 3.6vw, 34px); font-weight: 600; margin-bottom: 10px; }
.hero p { color: var(--muted); max-width: 560px; margin: 0 auto; }
.steps { display: flex; justify-content: center; gap: 10px 26px; flex-wrap: wrap; margin: 26px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: 13.5px; }
.steps li { display: flex; align-items: center; gap: 8px; }
.steps b { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); color: var(--gold); font-size: 12px; border: 1px solid var(--line); }

/* filtros */
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin: 20px 0 18px; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { border: 1px solid var(--line); background: transparent; color: var(--muted); padding: 7px 14px; border-radius: 999px; font: 500 13.5px var(--font); cursor: pointer; white-space: nowrap; }
.chip.on, .chip:hover { color: var(--gold-ink); background: var(--gold); border-color: var(--gold); }
.search { position: relative; flex: 1 1 240px; max-width: 360px; }
.search input { width: 100%; }
.search svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search input[type=search] { padding-left: 40px; }

input[type=text], input[type=search], input[type=tel], input[type=number], select, textarea {
  background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: 12px;
  padding: 12px 14px; font: 15px var(--font); width: 100%; outline: none; min-height: 46px;
}
input:focus, select:focus, textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(214,179,112,.18); }
label.field { display: block; margin-bottom: 14px; }
label.field span { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; font-weight: 500; }

/* eventos */
.events { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; padding-bottom: 60px; }
.event-card { position: relative; display: block; border-radius: var(--radius); overflow: hidden; background: var(--surface); border: 1px solid rgba(255,255,255,.05); color: var(--text); transition: transform .2s ease, border-color .2s ease; }
.event-card:hover { transform: translateY(-3px); border-color: rgba(214,179,112,.45); color: var(--text); }
.event-cover { aspect-ratio: 4 / 3; background: var(--surface-2); position: relative; overflow: hidden; }
.event-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.event-card:hover .event-cover img { transform: scale(1.04); }
.event-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.72) 0%, transparent 55%); }
.event-tag { position: absolute; top: 12px; left: 12px; z-index: 2; background: rgba(11,11,12,.72); backdrop-filter: blur(6px); color: var(--gold); font: 600 11px var(--display); letter-spacing: .12em; text-transform: uppercase; padding: 6px 10px; border-radius: 999px; }
.event-title { position: absolute; left: 16px; right: 16px; bottom: 12px; z-index: 2; font: 700 18px/1.2 var(--display); text-transform: uppercase; letter-spacing: .03em; }
.event-meta { padding: 12px 16px 16px; display: flex; justify-content: space-between; gap: 10px; align-items: center; font-size: 13.5px; color: var(--muted); }
.event-meta .price { color: var(--text); font-weight: 600; white-space: nowrap; }
.empty { text-align: center; padding: 60px 16px; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--radius); }
.empty-sm { padding: 28px 16px; }

/* página do evento */
.event-hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.event-hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; filter: blur(26px) brightness(.35); transform: scale(1.2); }
.event-hero .wrap { position: relative; padding-top: 34px; padding-bottom: 28px; display: grid; gap: 22px; grid-template-columns: 1fr; }
@media (min-width: 820px) { .event-hero .wrap { grid-template-columns: 280px 1fr; align-items: end; } }
.event-hero-cover { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; box-shadow: var(--shadow); max-width: 420px; }
.event-hero-cover img { width: 100%; height: 100%; object-fit: cover; }
.back { display: inline-flex; gap: 6px; align-items: center; color: var(--muted); font-size: 13.5px; margin-bottom: 10px; }
.event-hero h1 { font-size: clamp(24px, 4vw, 40px); text-transform: uppercase; letter-spacing: .02em; }
.meta-row { display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--muted); font-size: 14px; margin-bottom: 10px; }
.meta-row span { display: inline-flex; align-items: center; gap: 6px; }
.event-desc { color: #d6d1c6; max-width: 720px; margin: 0 0 14px; white-space: pre-line; }
.promo-list { display: flex; flex-wrap: wrap; gap: 8px; }
.promo-pill { border: 1px solid rgba(214,179,112,.5); color: var(--gold); background: rgba(214,179,112,.08); padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; }
.promo-pill.base { border-color: var(--line); color: var(--text); background: rgba(255,255,255,.04); }

/* galeria */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px; padding-bottom: 120px; }
@media (min-width: 900px) { .gallery { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; } }
.tile { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--surface-2); cursor: zoom-in; outline: 2px solid transparent; transition: outline-color .15s; }
.tile.in-cart { outline-color: var(--gold); }
.tile .ph { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease, opacity .3s; opacity: 0; pointer-events: none; -webkit-user-drag: none; }
.tile .ph.loaded { opacity: 1; }
.tile:hover .ph { transform: scale(1.03); }
.tile .shield { position: absolute; inset: 0; }
.tile .tname { position: absolute; left: 8px; bottom: 8px; font-size: 11.5px; background: rgba(0,0,0,.6); padding: 3px 8px; border-radius: 999px; color: #eee; max-width: calc(100% - 56px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile .add { position: absolute; right: 8px; bottom: 8px; width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(11,11,12,.78); color: #fff; display: grid; place-items: center; cursor: pointer; transition: background .15s, transform .15s; }
.tile .add:hover { transform: scale(1.08); }
.tile.in-cart .add { background: var(--gold); color: var(--gold-ink); }
.tile .ribbon { position: absolute; top: 8px; left: 8px; background: var(--gold); color: var(--gold-ink); font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 999px; }
.loader { display: flex; justify-content: center; padding: 26px; color: var(--muted); }
.spin { width: 26px; height: 26px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--gold); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* barra do carrinho */
.cartbar { position: fixed; left: 50%; bottom: 16px; transform: translate(-50%, 140%); z-index: 45; width: calc(100% - 24px); max-width: 560px; background: var(--surface-2); border: 1px solid rgba(214,179,112,.4); border-radius: 18px; box-shadow: var(--shadow); padding: 10px 10px 10px 18px; display: flex; align-items: center; gap: 12px; transition: transform .3s cubic-bezier(.2,.8,.2,1); padding-bottom: calc(10px + env(safe-area-inset-bottom) * .4); }
.cartbar.show { transform: translate(-50%, 0); }
.cartbar-info { flex: 1; min-width: 0; line-height: 1.3; }
.cartbar-info b { display: block; font-size: 15px; }
.cartbar-info small { color: var(--muted); }

/* lightbox */
.lb { position: fixed; inset: 0; z-index: 60; background: rgba(5,5,6,.985); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); display: grid; grid-template-rows: auto 1fr auto; opacity: 0; pointer-events: none; transition: opacity .2s; }
.lb.open { opacity: 1; pointer-events: auto; }
.lb-top { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; gap: 12px; }
.lb-name { font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-close, .lb-nav { background: rgba(255,255,255,.08); border: 0; color: #fff; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; flex: none; }
.lb-close:hover, .lb-nav:hover { background: rgba(255,255,255,.16); }
.lb-stage { position: relative; display: flex; align-items: center; justify-content: center; min-height: 0; padding: 0 60px; }
.lb-imgwrap { position: relative; max-width: 100%; max-height: 100%; display: flex; }
.lb-img { max-width: 100%; max-height: calc(100vh - 190px); max-height: calc(100dvh - 190px); object-fit: contain; border-radius: 6px; user-select: none; -webkit-user-drag: none; pointer-events: none; }
.lb-shield { position: absolute; inset: 0; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); }
.lb-prev { left: 10px; } .lb-next { right: 10px; }
.lb-bottom { display: flex; align-items: center; justify-content: center; gap: 10px 14px; flex-wrap: wrap; padding: 14px 16px calc(16px + env(safe-area-inset-bottom)); }
.lb-price { font: 700 22px var(--display); margin-right: 6px; }
.lb-price s { color: var(--muted); font-size: 15px; font-weight: 500; margin-right: 6px; }
.lb-spin { position: absolute; }
@media (max-width: 640px) {
  .lb-stage { padding: 0 8px; }
  .lb-nav { width: 38px; height: 38px; background: rgba(0,0,0,.5); }
  .lb-bottom .btn { flex: 1 1 40%; }
  .lb-price { width: 100%; text-align: center; margin: 0; }
}

/* carrinho */
.page-title { padding-top: 30px; padding-bottom: 8px; }
.page-title h1 { font-size: clamp(24px, 3.4vw, 32px); }
.cart-grid { display: grid; gap: 22px; grid-template-columns: 1fr; padding-bottom: 60px; align-items: start; }
@media (min-width: 900px) { .cart-grid { grid-template-columns: 1fr 380px; } }
.card { background: var(--surface); border: 1px solid rgba(255,255,255,.06); border-radius: var(--radius); padding: 18px; }
.cart-list { list-style: none; margin: 0; padding: 0; }
.cart-item { display: grid; grid-template-columns: 76px 1fr auto; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.cart-item:last-child { border-bottom: 0; }
.cart-thumb { width: 76px; height: 76px; border-radius: 10px; background: var(--surface-2) center/cover; position: relative; }
.cart-item .nm { font-weight: 600; word-break: break-word; }
.cart-item .ev { color: var(--muted); font-size: 13px; }
.cart-item .qty { color: var(--muted); font-size: 12.5px; }
.cart-item .pr { text-align: right; font-weight: 600; white-space: nowrap; }
.cart-item .pr s { display: block; color: var(--muted); font-weight: 400; font-size: 12.5px; }
.link-btn { background: none; border: 0; color: var(--muted); font: 13px var(--font); cursor: pointer; padding: 4px 0; text-decoration: underline; text-underline-offset: 3px; }
.link-btn:hover { color: var(--err); }
.sum-row { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; color: var(--muted); }
.sum-row.disc { color: var(--ok); }
.sum-row.total { color: var(--text); font: 700 22px var(--display); border-top: 1px solid var(--line); margin-top: 8px; padding-top: 14px; }
.stack { display: grid; gap: 10px; }
.note { font-size: 13px; color: var(--muted); display: flex; gap: 8px; align-items: flex-start; }
.note svg { flex: none; margin-top: 2px; color: var(--gold); }
.alert { border-radius: 12px; padding: 12px 14px; font-size: 14px; border: 1px solid; }
.alert-err { border-color: rgba(242,114,114,.5); background: rgba(242,114,114,.08); color: #ffc9c9; }
.alert-warn { border-color: rgba(242,184,75,.5); background: rgba(242,184,75,.08); color: #ffe2a8; }
.alert-ok { border-color: rgba(67,209,147,.5); background: rgba(67,209,147,.08); color: #bff3da; }
.checkout-step { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }

/* pedido / pix */
.pix-wrap { max-width: 552px; margin: 0 auto; padding-top: 30px; padding-bottom: 70px; text-align: center; }
.pix-card { background: var(--surface); border: 1px solid rgba(255,255,255,.06); border-radius: 20px; padding: 26px 20px; }
.pix-amount { font: 700 34px var(--display); margin: 4px 0 2px; }
.qr-box { background: #fff; border-radius: 16px; padding: 12px; width: min(290px, 100%); margin: 20px auto 16px; }
.qr-box svg { width: 100%; height: auto; display: block; }
.copy-row { display: flex; gap: 8px; margin: 10px 0 6px; }
.copy-row input { font: 12.5px ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--muted); }
.waiting { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 20px 0 6px; font-weight: 600; }
.pulse { width: 12px; height: 12px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 0 rgba(214,179,112,.7); animation: pulse 1.6s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(214,179,112,.6); } 70% { box-shadow: 0 0 0 14px rgba(214,179,112,0); } 100% { box-shadow: 0 0 0 0 rgba(214,179,112,0); } }
.howto { text-align: left; margin: 18px 0 0; padding: 0; list-style: none; counter-reset: s; color: var(--muted); font-size: 14px; }
.howto li { counter-increment: s; padding: 6px 0 6px 34px; position: relative; }
.howto li::before { content: counter(s); position: absolute; left: 0; top: 5px; width: 22px; height: 22px; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--line); color: var(--gold); font-size: 12px; display: grid; place-items: center; font-weight: 700; }
.order-code { font: 600 13px ui-monospace, monospace; color: var(--muted); letter-spacing: .08em; }

.success-head { text-align: center; padding-top: 38px; padding-bottom: 18px; }
.check { width: 76px; height: 76px; border-radius: 50%; margin: 0 auto 16px; display: grid; place-items: center; background: rgba(67,209,147,.14); color: var(--ok); animation: pop .5s cubic-bezier(.2,1.4,.4,1); }
@keyframes pop { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.success-head h1 { font-size: clamp(26px, 4vw, 38px); }
.dl-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 18px 0 8px; }
.dl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; padding: 18px 0 70px; }
.dl-item { background: var(--surface); border: 1px solid rgba(255,255,255,.06); border-radius: 12px; overflow: hidden; }
.dl-item .dl-thumb { aspect-ratio: 1; background: var(--surface-2) center/cover; }
.dl-item .dl-body { padding: 10px; display: grid; gap: 8px; }
.dl-item .nm { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dl-item .btn { min-height: 40px; padding: 8px 12px; font-size: 13.5px; }
.save-link { max-width: 640px; margin: 0 auto; }

.orders-list { display: grid; gap: 10px; padding-bottom: 60px; }
.order-row { display: flex; align-items: center; gap: 14px; justify-content: space-between; background: var(--surface); border: 1px solid rgba(255,255,255,.06); border-radius: 12px; padding: 14px 16px; color: var(--text); }
.order-row:hover { border-color: rgba(214,179,112,.45); color: var(--text); }
.status { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; }
.st-paid { background: rgba(67,209,147,.15); color: var(--ok); }
.st-pending { background: rgba(242,184,75,.15); color: var(--warn); }
.st-expired, .st-canceled, .st-refunded { background: rgba(255,255,255,.07); color: var(--muted); }

/* rodapé */
.footer { border-top: 1px solid var(--line); padding: 30px 0 calc(30px + env(safe-area-inset-bottom)); text-align: center; }
.footer-in { display: grid; gap: 6px; justify-items: center; }
.footer-brand { margin-bottom: 6px; }
.footer p { margin: 0; max-width: 560px; }

.toast { position: fixed; left: 50%; top: 76px; transform: translate(-50%, -20px); background: var(--text); color: #111; padding: 10px 16px; border-radius: 999px; font-weight: 600; font-size: 14px; opacity: 0; pointer-events: none; transition: all .25s; z-index: 80; box-shadow: var(--shadow); max-width: calc(100% - 32px); text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* proteção das prévias */
.protect, .protect * { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
body.privacy-blur .gallery, body.privacy-blur .lb-imgwrap, body.privacy-blur .event-hero-cover { filter: blur(22px); }
@media print { .gallery, .lb, .event-hero-cover, .cart-thumb, .dl-thumb { display: none !important; } }
