@font-face { font-family: 'Fredoka'; src: url('/fonts/site/fredoka-latin-wght-normal.woff2') format('woff2'); font-weight: 300 700; font-display: swap; }
@font-face { font-family: 'Nunito'; src: url('/fonts/site/nunito-latin-wght-normal.woff2') format('woff2'); font-weight: 200 1000; font-display: swap; }

:root {
  --bg: #fffaf5;
  --surface: #ffffff;
  --surface-2: #fdf1ea;
  --ink: #221d19;
  --ink-soft: #6b625a;
  --on-primary: #1f1608;
  --line: #efe2d8;
  --primary: #e8912d;
  --primary-dark: #a85f12;
  --primary-soft: #fdebd1;
  --primary-light: #f6ac47;
  --blue: #5b8def;
  --blue-soft: #e4edff;
  --mint: #4fc9a4;
  --mint-soft: #dcf7ee;
  --sun: #ffc857;
  --sun-soft: #fff3d1;
  --danger: #d6334a;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 6px 24px rgba(74, 44, 90, .09);
  --shadow-lg: 0 14px 44px rgba(74, 44, 90, .16);
  --maxw: 1200px;
  --head: 'Fredoka', 'Nunito', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; font-family: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif; font-size: 16px; line-height: 1.55;
  color: var(--ink); background: var(--bg); min-height: 100vh; display: flex; flex-direction: column;
}
#app { flex: 1; display: flex; flex-direction: column; }
h1, h2, h3, h4 { font-family: var(--head); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
a { color: var(--primary-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 16px; }
.muted { color: var(--ink-soft); }
.small { font-size: .875rem; }
.center { text-align: center; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 6px; }

/* ---------- botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .7rem 1.3rem; border: 2px solid transparent; border-radius: 999px;
  background: linear-gradient(180deg, var(--primary-light), var(--primary)); color: var(--on-primary); font-weight: 800; cursor: pointer; text-decoration: none !important; transition: transform .12s, box-shadow .12s, background .12s;
  box-shadow: 0 4px 0 var(--primary-dark); min-height: 44px; font-size: 1rem; white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); background: linear-gradient(180deg, #ffbd5e, #f19a3a); }
.btn:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--primary-dark); }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }
.btn.secondary { background: var(--surface); color: var(--ink); border-color: var(--line); box-shadow: 0 3px 0 var(--line); }
.btn.secondary:hover { background: var(--surface-2); }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: none; border-color: var(--line); }
.btn.danger { background: var(--danger); box-shadow: 0 4px 0 #a31f33; }
.btn.small { padding: .4rem .9rem; min-height: 36px; font-size: .9rem; box-shadow: 0 3px 0 var(--primary-dark); }
.btn.secondary.small { box-shadow: 0 2px 0 var(--line); }
.btn.big { padding: .95rem 1.8rem; font-size: 1.1rem; }
.btn.block { width: 100%; }
.link-btn { background: none; border: 0; padding: 0; color: var(--primary-dark); cursor: pointer; text-decoration: underline; }

/* ---------- formulários ---------- */
label.field { display: block; margin-bottom: 14px; font-weight: 700; font-size: .92rem; }
label.field > span.lbl { display: block; margin-bottom: 4px; }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=number], input[type=search], input[type=url], select, textarea {
  width: 100%; padding: .65rem .85rem; border: 2px solid var(--line); border-radius: var(--radius-sm); background: #fff; font-weight: 600; min-height: 44px;
}
textarea { min-height: 90px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
input[type=range] { width: 100%; accent-color: var(--primary); }
input[type=checkbox], input[type=radio] { accent-color: var(--primary); width: 18px; height: 18px; }
.check { display: flex; gap: .6rem; align-items: center; font-weight: 700; cursor: pointer; margin: 8px 0; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 14px; }
.err { color: var(--danger); font-weight: 700; font-size: .92rem; margin: 6px 0 12px; }
.note { background: var(--sun-soft); border-radius: var(--radius-sm); padding: 10px 14px; font-size: .92rem; }
.note.warn { background: #fff0e0; border: 1px solid #ffcf9d; }
.note.info { background: var(--blue-soft); }
.note.ok { background: var(--mint-soft); }
.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .75rem; font-weight: 800; background: var(--primary-soft); color: var(--primary-dark); }
.badge.green { background: var(--mint-soft); color: #167a5e; }
.badge.gray { background: #eee; color: #555; }
.badge.blue { background: var(--blue-soft); color: #2f5cc0; }
.badge.warn { background: #ffe9c7; color: #955c00; }

/* ---------- cabeçalho ---------- */
.topbar { background: var(--ink); color: #fff; font-size: .85rem; text-align: center; padding: 6px 12px; }
.header { position: sticky; top: 0; z-index: 50; background: rgba(255, 250, 245, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header .wrap { display: flex; align-items: center; gap: 14px; height: 68px; }
.logo { font-family: var(--head); font-weight: 700; font-size: 1.6rem; color: var(--ink); display: flex; align-items: center; gap: 8px; text-decoration: none !important; }
.logo b { color: var(--primary-dark); }
.logo svg { width: 34px; height: 34px; }
.nav { display: flex; gap: 4px; margin-left: 12px; flex: 1; }
.nav a { padding: 8px 12px; border-radius: 999px; color: var(--ink); font-weight: 800; text-decoration: none !important; }
.nav a:hover, .nav a.active { background: var(--primary-soft); color: var(--primary-dark); }
.head-actions { display: flex; gap: 6px; align-items: center; margin-left: auto; }
.icon-btn { position: relative; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: none; border: 0; cursor: pointer; color: var(--ink); text-decoration: none !important; }
.icon-btn:hover { background: var(--primary-soft); }
.icon-btn svg { width: 24px; height: 24px; }
.cart-count { position: absolute; top: 2px; right: 0; background: var(--primary); color: var(--on-primary); font-size: .7rem; font-weight: 800; min-width: 20px; height: 20px; border-radius: 10px; display: grid; place-items: center; padding: 0 5px; }
.menu-btn { display: none; }
.head-search { display: flex; }
@media (max-width: 860px) {
  .menu-btn { display: grid; }
  .nav { position: absolute; top: 68px; left: 0; right: 0; background: var(--bg); flex-direction: column; padding: 10px 16px 16px; border-bottom: 1px solid var(--line); display: none; margin: 0; }
  .nav.open { display: flex; }
  .nav a { padding: 12px; }
  .head-actions { margin-left: auto; }
}

/* ---------- rodapé ---------- */
.footer { background: var(--ink); color: #eee6dc; margin-top: 60px; padding: 40px 0 24px; }
.footer a { color: #ffd9a3; }
.footer h4 { color: #fff; font-size: 1.05rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.1fr 1.2fr; gap: 28px; }
@media (max-width: 1000px) { .footer-grid { grid-template-columns: 1fr 1fr 1fr; } }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin: 6px 0; }
.socials { display: flex; gap: 10px; }
.socials a { width: 42px; height: 42px; border-radius: 50%; background: rgba(255, 255, 255, .12); display: grid; place-items: center; color: #fff; transition: background .15s, transform .15s; }
.socials a:hover { background: var(--primary); transform: translateY(-2px); }
.socials svg { width: 20px; height: 20px; fill: currentColor; }
.pay-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.pay { display: inline-block; padding: 3px 9px; border-radius: 6px; font-size: .72rem; font-weight: 900; background: #fff; color: #333; letter-spacing: .02em; border: 1px solid #ddd; }
.pay.visa { color: #1a1f71; font-style: italic; } .pay.mastercard { color: #eb001b; } .pay.amex { background: #1f72cd; color: #fff; border-color: #1f72cd; }
.pay.google_pay { color: #3c4043; } .pay.klarna { background: #ffb3c7; color: #17120f; border-color: #ffb3c7; } .pay.multibanco { background: #0a5aa5; color: #fff; border-color: #0a5aa5; }
.pay.mbway { background: #d40000; color: #fff; border-color: #d40000; } .pay.shop_pay { background: #5a31f4; color: #fff; }
.footer .copy { border-top: 1px solid rgba(255, 255, 255, .15); margin-top: 28px; padding-top: 16px; font-size: .85rem; color: #b9ada0; }

/* ---------- home ---------- */
.hero { position: relative; overflow: hidden; padding: 36px 0 56px; background: radial-gradient(1200px 500px at 85% -10%, var(--primary-soft), transparent 60%), radial-gradient(900px 400px at -10% 90%, var(--blue-soft), transparent 60%); }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 36px; align-items: center; }
.hero h1 span { color: var(--primary-dark); }
.hero p.lead { font-size: 1.2rem; color: var(--ink-soft); max-width: 34em; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
.hero-img { position: relative; }
.hero-img { max-width: 460px; justify-self: center; width: 100%; }
.hero-img img { border-radius: 28px; box-shadow: var(--shadow-lg); aspect-ratio: 3/4; object-fit: cover; width: 100%; transform: rotate(1.5deg); border: 6px solid #fff; }
.hero-tag { position: absolute; left: -10px; bottom: 24px; background: #fff; padding: 10px 16px; border-radius: 16px; box-shadow: var(--shadow); font-weight: 800; transform: rotate(-3deg); }
@media (max-width: 800px) { .hero .wrap { grid-template-columns: 1fr; } .hero-img { max-width: 420px; margin: 0 auto; } }
.section { padding: 44px 0 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.section-head h2 { margin: 0; }
.cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }
.cat-card { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--surface-2); aspect-ratio: 4/3; display: block; color: #fff; text-decoration: none !important; box-shadow: var(--shadow); transition: transform .15s; }
.cat-card:hover { transform: translateY(-3px) rotate(-.4deg); }
.cat-card img { width: 100%; height: 100%; object-fit: cover; }
.cat-card .ph { width: 100%; height: 100%; display: grid; place-items: center; font-size: 3rem; background: linear-gradient(135deg, var(--blue-soft), var(--primary-soft)); }
.cat-card .cap { position: absolute; inset: auto 0 0 0; padding: 30px 14px 12px; background: linear-gradient(transparent, rgba(30, 15, 45, .78)); font-family: var(--head); font-weight: 600; font-size: 1.15rem; }
.cat-card .cap small { display: block; font-family: 'Nunito'; font-weight: 700; opacity: .85; font-size: .8rem; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; counter-reset: s; }
.step { background: var(--surface); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); position: relative; }
.step::before { counter-increment: s; content: counter(s); position: absolute; top: -14px; left: 18px; background: var(--primary); color: var(--on-primary); width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-family: var(--head); font-weight: 700; }
.step h3 { margin-top: 6px; }
.step p { margin: 0; color: var(--ink-soft); }
.cta-band { background: linear-gradient(120deg, #1b1a19, #3b2a17); color: #fff; border-radius: 28px; padding: 34px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.cta-band h2 { margin: 0; }

/* ---------- produtos ---------- */
.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
.card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; transition: transform .15s, box-shadow .15s; color: inherit; text-decoration: none !important; }
a.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card .img { aspect-ratio: 1; background: var(--surface-2); overflow: hidden; }
.card .img img { width: 100%; height: 100%; object-fit: cover; }
.card .body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card .cat { font-size: .78rem; font-weight: 800; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .05em; }
.card .name { font-family: var(--head); font-weight: 500; font-size: 1.1rem; line-height: 1.2; }
.card .price { margin-top: auto; padding-top: 6px; font-weight: 900; font-size: 1.15rem; color: var(--primary-dark); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 20px; }
.chip { padding: 7px 14px; border-radius: 999px; border: 2px solid var(--line); background: #fff; font-weight: 800; cursor: pointer; font-size: .92rem; text-decoration: none !important; color: var(--ink); }
.chip:hover { border-color: var(--primary); }
.chip.on { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.page-head { padding: 30px 0 10px; }
.crumbs { font-size: .9rem; color: var(--ink-soft); margin-bottom: 10px; }
.empty { text-align: center; padding: 50px 16px; color: var(--ink-soft); background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); }
.empty .big { font-size: 3rem; }

.pdp { display: grid; grid-template-columns: 1.1fr 1fr; gap: 36px; padding-top: 24px; }
@media (max-width: 820px) { .pdp { grid-template-columns: 1fr; gap: 20px; } }
.gallery .main { border-radius: var(--radius); overflow: hidden; background: var(--surface-2); aspect-ratio: 1; box-shadow: var(--shadow); }
.gallery .main img { width: 100%; height: 100%; object-fit: contain; }
.gallery .thumbs { display: flex; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.gallery .thumbs button { width: 72px; height: 72px; border-radius: 12px; overflow: hidden; border: 3px solid transparent; padding: 0; cursor: pointer; background: none; }
.gallery .thumbs button.on { border-color: var(--primary); }
.gallery .thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pdp .price { font-family: var(--head); font-size: 2rem; color: var(--primary-dark); font-weight: 600; margin: 4px 0 14px; }
.pdp .desc { white-space: pre-line; color: var(--ink-soft); }
.qty { display: inline-flex; align-items: center; border: 2px solid var(--line); border-radius: 999px; overflow: hidden; background: #fff; }
.qty button { width: 40px; height: 40px; border: 0; background: none; font-size: 1.2rem; cursor: pointer; font-weight: 900; }
.qty button:hover { background: var(--primary-soft); }
.qty span { min-width: 34px; text-align: center; font-weight: 900; }
.perks { display: grid; gap: 8px; margin-top: 20px; font-size: .92rem; color: var(--ink-soft); }

/* ---------- carrinho/checkout ---------- */
.two-col { display: grid; grid-template-columns: 1.6fr 1fr; gap: 28px; align-items: start; padding-top: 10px; }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; } }
.panel { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; margin-bottom: 18px; }
.panel h3 { margin-bottom: 14px; }
.line { display: grid; grid-template-columns: 84px 1fr auto; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: start; }
.line:last-child { border-bottom: 0; }
.line img { width: 84px; height: 84px; object-fit: cover; border-radius: 12px; background: var(--surface-2); }
.line .t { font-weight: 800; }
.line .d { font-size: .85rem; color: var(--ink-soft); }
.line .amt { font-weight: 900; text-align: right; }
.summary { position: sticky; top: 84px; }
.sum-row { display: flex; justify-content: space-between; padding: 5px 0; }
.sum-row.total { font-family: var(--head); font-size: 1.3rem; border-top: 2px dashed var(--line); margin-top: 8px; padding-top: 12px; }
.pm-list { display: grid; gap: 10px; }
.pm { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 2px solid var(--line); border-radius: var(--radius-sm); cursor: pointer; background: #fff; }
.pm.on { border-color: var(--primary); background: var(--primary-soft); }
.pm .lbl { font-weight: 800; flex: 1; }
.pm small { color: var(--ink-soft); display: block; font-weight: 600; }

/* ---------- conta / encomenda ---------- */
.tabs { display: flex; gap: 6px; margin-bottom: 18px; flex-wrap: wrap; }
.status { display: inline-block; padding: 3px 12px; border-radius: 999px; font-weight: 800; font-size: .8rem; }
.status.awaiting_payment { background: #fff0cc; color: #8a5a00; } .status.paid { background: var(--mint-soft); color: #167a5e; }
.status.in_production { background: var(--blue-soft); color: #2f5cc0; } .status.shipped, .status.delivered { background: #e5dcff; color: #5a3fc0; }
.status.cancelled { background: #eee; color: #666; }
.ref-box { background: var(--blue-soft); border-radius: var(--radius-sm); padding: 14px 18px; font-family: var(--head); font-size: 1.3rem; letter-spacing: .05em; }
.auth-card { max-width: 440px; margin: 30px auto; }

/* ---------- toast ---------- */
.toasts { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 200; display: grid; gap: 8px; width: min(92vw, 420px); }
.toast { background: var(--ink); color: #fff; padding: 12px 16px; border-radius: 14px; box-shadow: var(--shadow-lg); font-weight: 700; display: flex; gap: 10px; align-items: center; animation: pop .25s ease-out; }
.toast.error { background: var(--danger); } .toast.ok { background: #1f9d76; }
@keyframes pop { from { transform: translateY(10px) scale(.97); opacity: 0; } to { transform: none; opacity: 1; } }
.spinner { width: 22px; height: 22px; border: 3px solid var(--line); border-top-color: var(--primary); border-radius: 50%; animation: spin .7s linear infinite; display: inline-block; vertical-align: middle; }
@keyframes spin { to { transform: rotate(360deg); } }
.loading { display: grid; place-items: center; padding: 70px 0; }

/* ---------- configurador 3D ---------- */
.builder { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(340px, 1fr); gap: 20px; padding: 18px 0 0; align-items: start; }
@media (max-width: 960px) { .builder { grid-template-columns: 1fr; } }
.stage { position: relative; background: linear-gradient(#fdf3ea, #f4e6dc); border-radius: 24px; box-shadow: var(--shadow); overflow: hidden; border: 4px solid #fff; }
.stage.night { background: linear-gradient(#171224, #0c0a14); }
@media (max-width: 960px) { .stage-col { top: 68px; z-index: 5; background: var(--bg); padding-bottom: 4px; } .stage-foot .muted { display: none; } }
.stage-canvas { width: 100%; height: min(72vh, 640px); min-height: 380px; touch-action: none; cursor: grab; }
@media (max-width: 960px) { .stage-canvas { height: 46vh; min-height: 300px; } }
.stage-canvas canvas { display: block; width: 100%; height: 100%; }
.stage-bar { position: absolute; left: 10px; right: 10px; top: 10px; display: flex; gap: 8px; flex-wrap: wrap; pointer-events: none; }
.stage-bar > * { pointer-events: auto; }
.stage-btn { background: rgba(255, 255, 255, .9); border: 0; border-radius: 999px; padding: 6px 12px; font-weight: 800; font-size: .82rem; cursor: pointer; box-shadow: var(--shadow); }
.stage-btn.on { background: var(--ink); color: #fff; }
.stage-col { position: sticky; top: 76px; }
.stage-col .stage { position: relative; top: 0; }
.stage-foot { display: flex; flex-wrap: wrap; gap: 4px 14px; justify-content: space-between; padding: 8px 6px 0; font-size: .82rem; }
.stage-loading { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(255, 250, 245, .7); font-weight: 800; }
.b-step { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; margin-bottom: 14px; }
.b-step > h3 { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.b-step > h3 .n { background: var(--primary); color: var(--on-primary); width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: .95rem; flex: none; }
.b-step > h3 small { margin-left: auto; font-family: 'Nunito'; font-weight: 800; color: var(--ink-soft); font-size: .8rem; }
.b-row { display: flex; gap: 12px; align-items: end; }
.letter-input { width: 84px !important; flex: none; text-align: center; font-family: var(--head); font-size: 2rem !important; padding: 0 !important; min-height: 60px !important; text-transform: uppercase; }
.fonts { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 8px; margin: 10px 0; }
.font-btn { border: 2px solid var(--line); background: #fff; border-radius: var(--radius-sm); padding: 6px 8px 4px; cursor: pointer; text-align: center; line-height: 1.1; }
.font-btn .sample { font-size: 1.7rem; display: block; height: 44px; overflow: hidden; white-space: nowrap; }
.font-btn .fname { font-size: .68rem; font-weight: 800; color: var(--ink-soft); display: block; }
.font-btn.on { border-color: var(--primary); background: var(--primary-soft); }
.swatches { display: flex; flex-wrap: wrap; gap: 7px; margin: 6px 0; }
.sw { width: 32px; height: 32px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 2px var(--line); cursor: pointer; padding: 0; position: relative; }
.sw.on { box-shadow: 0 0 0 3px var(--ink); }
.sw.def { background: repeating-linear-gradient(45deg, #fff, #fff 4px, #eee 4px, #eee 8px); }
.acc-groups { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.acc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; max-height: 330px; overflow: auto; padding: 2px; }
.acc { border: 2px solid var(--line); background: #fff; border-radius: var(--radius-sm); padding: 6px; cursor: pointer; text-align: center; font-size: .78rem; font-weight: 800; line-height: 1.15; }
.acc:hover { border-color: var(--primary); transform: translateY(-1px); }
.acc img { width: 100%; aspect-ratio: 1; object-fit: contain; background: linear-gradient(#fff8f1, #fdeee2); border-radius: 8px; }
.acc .p { color: var(--primary-dark); display: block; margin-top: 2px; }
.placed { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.placed-item { display: flex; align-items: center; gap: 6px; padding: 4px 6px 4px 4px; border: 2px solid var(--line); border-radius: 999px; background: #fff; cursor: pointer; font-size: .82rem; font-weight: 800; }
.placed-item.on { border-color: var(--primary); background: var(--primary-soft); }
.placed-item img { width: 30px; height: 30px; border-radius: 50%; object-fit: contain; background: #fdeee2; }
.placed-item button { border: 0; background: rgba(0, 0, 0, .08); width: 22px; height: 22px; border-radius: 50%; cursor: pointer; line-height: 1; }
.inspector { background: var(--surface-2); border-radius: var(--radius-sm); padding: 12px 14px; }
.inspector h4 { margin-bottom: 8px; font-size: 1rem; }
.b-total { position: sticky; bottom: 0; background: var(--surface); border-radius: var(--radius); box-shadow: 0 -6px 26px rgba(74, 44, 90, .14); padding: 14px 16px; margin-top: 8px; z-index: 6; }
.b-total .row { display: flex; align-items: center; gap: 12px; }
.b-total .price { font-family: var(--head); font-size: 1.7rem; font-weight: 600; color: var(--primary-dark); flex: 1; }
.b-total details { margin-top: 8px; font-size: .88rem; }
.b-total summary { cursor: pointer; color: var(--ink-soft); font-weight: 800; }
.b-total table { width: 100%; margin-top: 6px; border-collapse: collapse; }
.b-total td { padding: 2px 0; } .b-total td:last-child { text-align: right; font-weight: 800; }

/* ---------- admin ---------- */
.admin { display: grid; grid-template-columns: 220px 1fr; gap: 24px; padding: 24px 0; align-items: start; }
@media (max-width: 860px) { .admin { grid-template-columns: 1fr; } }
.admin-nav { position: sticky; top: 84px; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 10px; display: grid; gap: 2px; }
@media (max-width: 860px) { .admin-nav { position: static; grid-auto-flow: column; overflow-x: auto; } }
.admin-nav a { padding: 9px 12px; border-radius: 10px; color: var(--ink); font-weight: 800; text-decoration: none !important; white-space: nowrap; }
.admin-nav a:hover { background: var(--surface-2); } .admin-nav a.on { background: var(--primary); color: var(--on-primary); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; margin-bottom: 20px; }
.stat { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; }
.stat b { display: block; font-family: var(--head); font-size: 1.9rem; color: var(--primary-dark); }
table.tbl { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.tbl th, .tbl td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl th { background: var(--surface-2); font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-soft); }
.tbl tr:last-child td { border-bottom: 0; }
.tbl img.th { width: 48px; height: 48px; object-fit: cover; border-radius: 8px; background: var(--surface-2); }
.tbl-wrap { overflow-x: auto; border-radius: var(--radius); }
.toolbar { display: flex; gap: 10px; align-items: center; margin-bottom: 14px; flex-wrap: wrap; }
.toolbar h2 { margin: 0; flex: 1; }
.modal-bg { position: fixed; inset: 0; background: rgba(30, 15, 45, .5); z-index: 100; display: grid; place-items: center; padding: 16px; overflow: auto; }
.modal { background: var(--bg); border-radius: 22px; width: min(720px, 100%); max-height: 92vh; overflow: auto; padding: 22px; box-shadow: var(--shadow-lg); }
.modal h2 { margin-bottom: 14px; }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 16px; flex-wrap: wrap; }
.toggle { position: relative; display: inline-block; width: 48px; height: 28px; flex: none; vertical-align: middle; }
.toggle input { opacity: 0; width: 100%; height: 100%; position: absolute; margin: 0; cursor: pointer; z-index: 1; }
.toggle i { position: absolute; inset: 0; background: #ccc; border-radius: 999px; transition: background .15s; }
.toggle i::after { content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; background: #fff; border-radius: 50%; transition: transform .15s; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); }
.toggle input:checked + i { background: var(--mint); } .toggle input:checked + i::after { transform: translateX(20px); }
.toggle input:disabled { cursor: not-allowed; } .toggle input:disabled + i { opacity: .5; }
.pm-admin { display: flex; align-items: center; gap: 14px; padding: 14px; background: var(--surface); border-radius: var(--radius-sm); box-shadow: var(--shadow); margin-bottom: 10px; }
.pm-admin .info { flex: 1; }
.img-list { display: flex; gap: 10px; flex-wrap: wrap; margin: 8px 0; }
.img-list .it { position: relative; }
.img-list img { width: 84px; height: 84px; object-fit: cover; border-radius: 10px; }
.img-list .it button { position: absolute; top: -6px; right: -6px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: var(--danger); color: #fff; cursor: pointer; }
.rot-btns { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.kv { display: grid; grid-template-columns: 150px 1fr; gap: 4px 12px; font-size: .95rem; }
.kv dt { color: var(--ink-soft); font-weight: 700; } .kv dd { margin: 0; font-weight: 700; }
@media print { .header, .footer, .topbar, .no-print { display: none !important; } body { background: #fff; } }

/* ---------- controlos segmentados / hub de personalização ---------- */
.seg { display: flex; gap: 8px; flex-wrap: wrap; }
.seg-btn { flex: 1; min-width: 96px; padding: 10px 12px; border: 2px solid var(--line); background: #fff; border-radius: var(--radius-sm); font-weight: 800; cursor: pointer; }
.seg-btn:hover { border-color: var(--primary); }
.seg-btn.on { border-color: var(--primary); background: var(--primary-soft); color: var(--primary-dark); }
.hub { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 20px; margin-top: 10px; }
.hub-card { background: var(--surface); border-radius: 24px; box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; color: inherit; text-decoration: none !important; transition: transform .15s, box-shadow .15s; }
.hub-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.hub-card .img { aspect-ratio: 4/3; background: var(--surface-2); overflow: hidden; }
.hub-card .img img { width: 100%; height: 100%; object-fit: cover; }
.hub-card .body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.hub-card h3 { margin: 0; font-size: 1.4rem; }
.hub-card .price { font-weight: 900; color: var(--primary-dark); }

.acc.sel { border-color: var(--primary); background: var(--primary-soft); }

/* ---------- logótipo e banner ---------- */
.logo img { height: 58px; width: auto; display: block; mix-blend-mode: multiply; }
@media (max-width: 520px) { .logo img { height: 44px; } }
.home-banner { display: block; max-width: 1040px; margin: 18px auto 0; padding: 0 16px; }
.home-banner img { width: 100%; height: auto; border-radius: 26px; box-shadow: var(--shadow-lg); }

/* ---------- informação e apoio ao cliente ---------- */
.footer-contact { margin-top: 14px !important; font-size: .92rem; color: #d8d0ea; }
.info-layout { display: grid; grid-template-columns: 240px 1fr; gap: 24px; align-items: start; }
@media (max-width: 800px) { .info-layout { grid-template-columns: 1fr; } }
.info-nav { display: flex; flex-direction: column; gap: 6px; position: sticky; top: 84px; }
@media (max-width: 800px) { .info-nav { position: static; flex-direction: row; flex-wrap: wrap; } }
.info-nav a { padding: 10px 14px; border-radius: 12px; font-weight: 700; color: var(--ink); background: var(--surface); box-shadow: var(--shadow); }
.info-nav a.on { background: var(--primary-soft); color: var(--primary-dark, var(--primary)); }
.prose { padding: 26px 28px; line-height: 1.7; }
.prose h2 { font-size: 1.2rem; margin: 26px 0 8px; }
.prose h2:first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 22px; margin: 8px 0 12px; }
.prose li { margin: 5px 0; }
.prose .seller { list-style: none; padding: 12px 16px; background: var(--bg, #fffaf5); border-radius: 12px; border: 1px solid var(--line); }
.prose .seller li { margin: 2px 0; }
.contact-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; margin: 18px 0; }
.contact-card { border: 1px solid var(--line); border-radius: 16px; padding: 16px; background: var(--bg, #fffaf5); }
.contact-card .ico { font-size: 1.6rem; }
.contact-card h3 { margin: 6px 0 4px; font-size: 1rem; }
.contact-card p { margin: 0; overflow-wrap: anywhere; }

/* ---------- ícones de pagamento e redes no menu ---------- */
.pay-ico { width: 60px; height: 38px; border-radius: 5px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .18); flex: none; }
.nav-socials { display: flex; gap: 8px; align-items: center; margin-left: 6px; }
.nav-socials a { width: 36px; height: 36px; padding: 0; background: var(--primary-soft); color: var(--primary-dark); }
.nav-socials a:hover { background: var(--primary); color: var(--on-primary); transform: translateY(-1px); }
.nav-socials svg { width: 18px; height: 18px; fill: currentColor; }
@media (max-width: 800px) { .nav-socials { margin: 6px 12px; } }
.pay-ico { object-fit: cover; display: block; }
.pay-badges { gap: 8px; }
.pay-ico.pm-logo { width: 64px; height: 40px; box-shadow: 0 0 0 1px var(--line); }

/* ---------- modo de manutenção ---------- */
.maint { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 32px 20px; text-align: center; background: radial-gradient(900px 500px at 50% -10%, var(--primary-soft), transparent 70%), var(--bg); }
.maint-logo { max-width: 260px; height: auto; mix-blend-mode: multiply; margin-bottom: 8px; }
.maint h1 { margin: 6px 0 0; }
.maint .lead { font-size: 1.2rem; color: var(--ink-soft); max-width: 32em; margin: 0 0 14px; }
.maint-contact { list-style: none; padding: 0; margin: 0 0 14px; display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: center; font-weight: 700; }
.maint-socials { justify-content: center; }
.maint-socials a { background: var(--primary-soft); color: var(--primary-dark); }
.maint-bar { background: var(--ink); color: #fff; padding: 8px 14px; text-align: center; font-weight: 700; font-size: .9rem; }
.maint-bar a { color: #ffd9a3; text-decoration: underline; }

/* conteúdo inicial para motores de pesquisa (substituído pela app) */
.prerender { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- opções com fotografia (ex.: modelo da caixa) ---------- */
.opt-pics { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; margin-top: 6px; }
.opt-pic { background: var(--surface); border: 2px solid var(--line); border-radius: 14px; padding: 6px; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 4px; font: inherit; font-size: .78rem; font-weight: 800; color: var(--ink); text-align: center; line-height: 1.15; }
.opt-pic img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 9px; }
.opt-pic:hover { border-color: var(--primary); }
.opt-pic.on { border-color: var(--primary); background: var(--primary-soft); box-shadow: 0 0 0 2px var(--primary); }
.img-list .it { display: flex; flex-direction: column; gap: 4px; }
.img-list .it input.variant { width: 84px; font-size: .75rem; padding: 3px 6px; border-radius: 8px; }
