@font-face { font-family: 'Oswald'; font-weight: 500; font-display: swap; src: url(/fonts/oswald-latin-500-normal.woff2) format('woff2'); }
@font-face { font-family: 'Oswald'; font-weight: 700; font-display: swap; src: url(/fonts/oswald-latin-700-normal.woff2) format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 400; font-display: swap; src: url(/fonts/inter-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 600; font-display: swap; src: url(/fonts/inter-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 800; font-display: swap; src: url(/fonts/inter-latin-800-normal.woff2) format('woff2'); }

:root {
  --roxo: #7a0fa8;
  --roxo-escuro: #4f0870;
  --roxo-claro: #f4e9fa;
  --amarelo: #ffd21f;
  --verde: #7ed957;
  --texto: #1f1029;
  --cinza: #6f6478;
  --borda: #e8dff0;
  --fundo: #faf7fc;
  --vermelho: #d93a3a;
  --raio: 16px;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: 'Inter', system-ui, sans-serif; color: var(--texto); background: var(--fundo); -webkit-font-smoothing: antialiased; }
button { font: inherit; cursor: pointer; }
input, textarea, select { font: inherit; }
.wrap { max-width: 720px; margin: 0 auto; padding: 0 16px; }

/* Topo */
.hero { background: radial-gradient(120% 140% at 100% 0%, #a01ddb 0%, var(--roxo) 45%, var(--roxo-escuro) 100%); color: #fff; padding: 28px 0 22px; position: relative; overflow: hidden; }
.hero::after { content: ''; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: rgba(255, 210, 31, .12); }
.brand { font-family: 'Oswald', sans-serif; font-weight: 700; font-size: 42px; line-height: 1; color: var(--amarelo); letter-spacing: .5px; text-transform: uppercase; margin: 0; text-shadow: 0 3px 0 rgba(0,0,0,.18); }
.hero .tag { margin: 6px 0 14px; opacity: .9; font-size: 14px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,.14); border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 600; }
.pill.open { background: var(--verde); color: #123b06; }
.pill.closed { background: var(--vermelho); color: #fff; }
.notice { margin-top: 12px; background: var(--amarelo); color: #3b2a00; padding: 10px 12px; border-radius: 12px; font-size: 14px; font-weight: 600; }

/* Categorias */
.cats { position: sticky; top: 0; z-index: 5; background: rgba(250,247,252,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--borda); }
.cats .wrap { display: flex; gap: 8px; overflow-x: auto; padding-top: 10px; padding-bottom: 10px; scrollbar-width: none; }
.cats .wrap::-webkit-scrollbar { display: none; }
.cat { flex: none; border: 1.5px solid var(--borda); background: #fff; border-radius: 999px; padding: 8px 14px; font-weight: 600; font-size: 14px; color: var(--texto); }
.cat.active { background: var(--roxo); border-color: var(--roxo); color: #fff; }

section.category { padding-top: 22px; scroll-margin-top: 60px; }
section.category h2 { font-family: 'Oswald', sans-serif; font-weight: 700; text-transform: uppercase; color: var(--roxo); font-size: 24px; margin: 0 0 10px; letter-spacing: .3px; }
.product { display: flex; gap: 14px; background: #fff; border: 1px solid var(--borda); border-radius: var(--raio); padding: 14px; margin-bottom: 12px; width: 100%; text-align: left; color: inherit; transition: transform .08s, box-shadow .15s; }
.product:hover { box-shadow: 0 6px 18px rgba(122,15,168,.10); }
.product:active { transform: scale(.99); }
.product .info { flex: 1; min-width: 0; }
.product h3 { margin: 0 0 4px; font-size: 17px; }
.product p { margin: 0 0 10px; color: var(--cinza); font-size: 13.5px; line-height: 1.4; }
.product .from { font-weight: 800; color: var(--roxo); }
.product .from small { font-weight: 600; color: var(--cinza); font-size: 12px; }
.product .thumb { width: 96px; height: 96px; border-radius: 12px; object-fit: cover; flex: none; background: var(--roxo); }
.thumb-text { display: grid; place-items: center; text-align: center; color: var(--amarelo); font-family: 'Oswald', sans-serif; font-weight: 700; font-size: 18px; line-height: 1.05; text-transform: uppercase; padding: 8px; background: linear-gradient(145deg, #9a16d1, var(--roxo-escuro)) !important; }
.product.off { opacity: .5; }
.badge-off { display: inline-block; background: #eee; color: #555; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 99px; margin-left: 6px; vertical-align: middle; }

footer { text-align: center; color: var(--cinza); font-size: 13px; padding: 30px 16px 120px; }
footer a { color: var(--roxo); font-weight: 600; text-decoration: none; }

/* Barra da sacola */
.cartbar { position: fixed; left: 0; right: 0; bottom: 0; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); z-index: 20; pointer-events: none; }
.cartbar button { pointer-events: auto; max-width: 688px; margin: 0 auto; width: 100%; display: flex; align-items: center; justify-content: space-between; background: var(--roxo); color: #fff; border: 0; border-radius: 14px; padding: 15px 18px; font-weight: 800; font-size: 16px; box-shadow: 0 10px 28px rgba(79,8,112,.35); }
.cartbar .count { background: var(--amarelo); color: var(--roxo-escuro); border-radius: 99px; min-width: 26px; height: 26px; display: inline-grid; place-items: center; font-size: 14px; margin-right: 10px; }

/* Folha (modal) */
.sheet-bg { position: fixed; inset: 0; background: rgba(25, 5, 35, .5); z-index: 30; display: none; }
.sheet { position: fixed; z-index: 31; left: 0; right: 0; bottom: 0; max-height: 92vh; background: #fff; border-radius: 22px 22px 0 0; display: none; flex-direction: column; max-width: 720px; margin: 0 auto; animation: up .22s ease-out; }
.sheet.show, .sheet-bg.show { display: flex; }
.sheet-bg.show { display: block; }
@keyframes up { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (min-width: 760px) { .sheet { bottom: 4vh; border-radius: 22px; max-height: 88vh; } }
.sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px 10px; border-bottom: 1px solid var(--borda); }
.sheet-head h3 { margin: 0; font-size: 18px; }
.x { border: 0; background: var(--roxo-claro); color: var(--roxo); width: 34px; height: 34px; border-radius: 50%; font-size: 20px; line-height: 1; }
.sheet-body { overflow-y: auto; padding: 4px 18px 18px; flex: 1; }
.sheet-foot { padding: 12px 18px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--borda); display: flex; gap: 12px; align-items: center; }
.hero-img { width: 100%; height: 190px; object-fit: cover; border-radius: 14px; margin-top: 12px; }
.desc { color: var(--cinza); font-size: 14px; line-height: 1.45; }

.group { margin-top: 18px; }
.group-head { display: flex; justify-content: space-between; align-items: baseline; background: var(--roxo-claro); margin: 0 -18px 8px; padding: 10px 18px; }
.group-head b { font-size: 15px; }
.group-head span { font-size: 12px; font-weight: 700; color: var(--roxo); }
.group-head .req { background: var(--roxo); color: #fff; padding: 2px 8px; border-radius: 99px; }
.opt { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid #f1ebf5; cursor: pointer; user-select: none; }
.opt:last-child { border-bottom: 0; }
.opt .name { flex: 1; font-size: 15px; }
.opt .price { color: var(--cinza); font-size: 13.5px; font-weight: 600; }
.opt.disabled { opacity: .4; cursor: default; }
.check { width: 24px; height: 24px; border-radius: 7px; border: 2px solid #cdbcd9; display: grid; place-items: center; flex: none; transition: all .1s; }
.check.radio { border-radius: 50%; }
.opt.on .check { background: var(--roxo); border-color: var(--roxo); }
.opt.on .check::after { content: ''; width: 10px; height: 6px; border: solid #fff; border-width: 0 0 2.5px 2.5px; transform: rotate(-45deg) translate(1px, -1px); }
.sizes { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.size { border: 2px solid var(--borda); border-radius: 12px; padding: 10px 12px; background: #fff; text-align: left; }
.size b { display: block; font-size: 15px; }
.size small { color: var(--cinza); font-size: 12.5px; }
.size .p { color: var(--roxo); font-weight: 800; font-size: 14px; }
.size.on { border-color: var(--roxo); background: var(--roxo-claro); }
.size:disabled { opacity: .4; }

.stepper { display: inline-flex; align-items: center; border: 1.5px solid var(--borda); border-radius: 10px; overflow: hidden; flex: none; }
.stepper button { border: 0; background: #fff; width: 34px; height: 34px; font-size: 18px; color: var(--roxo); font-weight: 800; }
.stepper button:disabled { color: #ccc; }
.stepper span { min-width: 26px; text-align: center; font-weight: 800; }

textarea, input[type=text], input[type=tel], input[type=number] { width: 100%; border: 1.5px solid var(--borda); border-radius: 12px; padding: 12px; outline: none; background: #fff; font-size: 16px; }
textarea:focus, input:focus { border-color: var(--roxo); }
label.lbl { display: block; font-weight: 600; font-size: 13.5px; margin: 14px 0 6px; }
.row { display: flex; gap: 10px; }
.row > * { flex: 1; }

.btn { border: 0; background: var(--roxo); color: #fff; border-radius: 12px; padding: 14px 16px; white-space: nowrap; font-weight: 800; font-size: 16px; flex: 1; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.btn:disabled { background: #c9b6d6; }
.btn.center { justify-content: center; }
.btn.ghost { background: var(--roxo-claro); color: var(--roxo); }
.btn.green { background: #1fae5b; }

.choice { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.choice.three { grid-template-columns: 1fr 1fr 1fr; }
.choice button { border: 2px solid var(--borda); background: #fff; border-radius: 12px; padding: 12px 8px; font-weight: 700; font-size: 14px; }
.choice button.on { border-color: var(--roxo); background: var(--roxo-claro); color: var(--roxo); }
.choice button small { display: block; font-weight: 600; color: var(--cinza); font-size: 12px; margin-top: 2px; }

.cart-item { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--borda); }
.cart-item .info { flex: 1; min-width: 0; }
.cart-item b { font-size: 15px; }
.cart-item .det { color: var(--cinza); font-size: 13px; line-height: 1.45; margin-top: 3px; }
.cart-item .val { font-weight: 800; white-space: nowrap; }
.link { border: 0; background: none; color: var(--vermelho); font-weight: 700; padding: 6px 0 0; font-size: 13px; }
.sum { margin-top: 14px; font-size: 15px; }
.sum div { display: flex; justify-content: space-between; padding: 4px 0; }
.sum .tot { font-weight: 800; font-size: 18px; border-top: 1px dashed var(--borda); margin-top: 6px; padding-top: 10px; }
.err { background: #fde8e8; color: #9b1c1c; border-radius: 12px; padding: 10px 12px; font-size: 14px; font-weight: 600; margin-top: 12px; display: none; }
.err.show { display: block; }
.empty { text-align: center; color: var(--cinza); padding: 40px 0; }
.toast { position: fixed; left: 50%; top: 18px; transform: translateX(-50%); background: var(--texto); color: #fff; padding: 10px 16px; border-radius: 12px; font-weight: 600; font-size: 14px; z-index: 50; display: none; }
.toast.show { display: block; animation: up .2s; }

/* Página de acompanhamento */
.track-card { background: #fff; border: 1px solid var(--borda); border-radius: var(--raio); padding: 18px; margin-top: -26px; position: relative; z-index: 2; box-shadow: 0 10px 30px rgba(79,8,112,.08); }
.big-num { font-family: 'Oswald', sans-serif; font-size: 44px; font-weight: 700; color: var(--roxo); line-height: 1; }
.steps { list-style: none; padding: 0; margin: 18px 0 0; }
.steps li { display: flex; gap: 12px; align-items: center; padding: 8px 0; color: #b3a6bd; font-weight: 600; }
.steps li .dot { width: 26px; height: 26px; border-radius: 50%; border: 2.5px solid #dccfe6; flex: none; display: grid; place-items: center; font-size: 13px; }
.steps li.done { color: var(--texto); }
.steps li.done .dot { background: var(--roxo); border-color: var(--roxo); color: #fff; }
.steps li.now .dot { box-shadow: 0 0 0 5px rgba(122,15,168,.18); }
.pix-box { background: var(--roxo-claro); border-radius: 12px; padding: 14px; margin-top: 14px; }
.pix-key { font-family: ui-monospace, monospace; font-size: 17px; font-weight: 700; margin: 6px 0 10px; word-break: break-all; }
