/* ================================================================
   Telas internas (topo, Meus chás, editor, página pública, produto)
   Usa os tokens de tema de theme.css. Carregado depois de theme.css.
   ================================================================ */

html,body { background:var(--ivory); }
h1,h2,h3 { font-weight:400; letter-spacing:-.02em; }
/* Fraunces em corpo grande usa o corte "cartaz" (traços finos demais); fixa um tamanho óptico legível */
h1,.pub-progress-text strong,.gift-count strong { font-variation-settings:'opsz' 60; }

/* ---------- botões ---------- */
.btn {
  min-height:44px;
  padding:0 20px;
  border:1px solid transparent;
  border-radius:999px;
  gap:8px;
  font-size:14px;
  font-weight:700;
  letter-spacing:-.005em;
  white-space:nowrap;
  transition:background .16s ease,border-color .16s ease,box-shadow .16s ease,transform .16s ease;
}
.btn:hover:not(:disabled) { transform:none; }
.btn:focus-visible { outline:3px solid rgba(var(--accent-rgb),.3); outline-offset:2px; }
.btn-primary { color:#fff; background:var(--accent); box-shadow:0 8px 20px -10px rgba(var(--accent-rgb),.7); }
.btn-primary:hover:not(:disabled) { background:var(--accent-dark); }
.btn-ghost,.btn-secondary,.btn-soft { color:var(--ink); background:transparent; border-color:var(--line); }
.btn-ghost:hover:not(:disabled),.btn-secondary:hover:not(:disabled),.btn-soft:hover:not(:disabled) { background:#fff; border-color:var(--accent-line); }
.btn-dark { color:#fff; background:var(--ink); }
.btn-dark:hover { background:#000; }
.btn-whatsapp { color:#fff; background:#1fa855; }
.btn-whatsapp:hover { background:#178a45; }
.btn-small { min-height:36px; padding:0 14px; font-size:13px; }
.link-button { color:var(--accent-dark); }

/* ---------- topo ---------- */
.topbar {
  min-height:64px;
  padding-top:max(10px,env(safe-area-inset-top));
  padding-bottom:10px;
  background:rgba(255,255,255,.72);
  border-bottom:1px solid var(--line);
}
.brand { font-size:21px; letter-spacing:-.02em; }
.brand img { width:32px; height:32px; }
.topbar-actions { gap:6px; }
.topbar-link {
  padding:8px 12px; border:0; border-radius:999px; background:none; cursor:pointer;
  color:var(--muted); font:inherit; font-size:14px; font-weight:600; text-decoration:none;
}
.topbar-link:hover { color:var(--ink); background:rgba(0,0,0,.04); }
.user-chip { display:inline-flex; align-items:center; gap:8px; margin:0 6px; color:var(--ink); font-size:14px; font-weight:600; }
.user-avatar {
  width:30px; height:30px; border-radius:50%;
  display:grid; place-items:center;
  color:var(--accent-dark); background:var(--accent-soft);
  font-family:var(--display); font-size:15px; text-transform:uppercase;
}
.user-chip-guest { padding:5px 11px; border-radius:999px; color:var(--muted); background:rgba(0,0,0,.04); font-size:12px; }
@media (max-width:680px) {
  .user-name,.topbar-actions .topbar-link[href="#!/meus-chas"] { display:none; }
  .user-chip-guest { display:none; }
}

/* ---------- avisos ---------- */
.guest-banner { margin:0 0 28px; padding:14px 16px; border-color:var(--accent-line); border-radius:16px; }
.guest-banner-icon { width:36px; height:36px; color:var(--accent-dark); }
.guest-banner-icon svg { width:20px; height:20px; }

.toast {
  position:fixed; z-index:120;
  left:50%; bottom:max(20px,env(safe-area-inset-bottom));
  max-width:calc(100% - 32px);
  padding:12px 20px;
  border-radius:999px;
  color:#fff; background:var(--ink);
  box-shadow:0 18px 40px -16px rgba(0,0,0,.45);
  font-size:14px; font-weight:600;
  transform:translateX(-50%);
  cursor:pointer;
  animation:toast-in .25s ease;
}
@keyframes toast-in { from { opacity:0; transform:translate(-50%,10px); } }

/* ================================================================
   EDITOR
   ================================================================ */
.ed-hero {
  position:relative;
  margin:0;
  padding:26px 0 34px;
  display:block;
  overflow:hidden;
  border-bottom:1px solid var(--line);
  background:linear-gradient(140deg,var(--hero-from),var(--hero-to));
}
.ed-hero-motif {
  position:absolute; inset:0;
  background:var(--motif) 0 0/180px auto;
  opacity:.55;
  -webkit-mask-image:linear-gradient(90deg,transparent 30%,#000 100%);
  mask-image:linear-gradient(90deg,transparent 30%,#000 100%);
}
.ed-hero-inner,.ed-wrap { position:relative; width:min(1180px,calc(100% - 40px)); margin:0 auto; }
.ed-back { display:inline-block; margin-bottom:22px; color:var(--muted); font-size:13px; font-weight:600; text-decoration:none; }
.ed-back:hover { color:var(--ink); }
.ed-hero-row { display:flex; flex-wrap:wrap; align-items:flex-end; justify-content:space-between; gap:20px 28px; }
.ed-hero-copy { min-width:0; }
.ed-status {
  display:inline-flex; align-items:center; gap:8px;
  padding:5px 12px 5px 10px;
  border-radius:999px;
  background:rgba(255,255,255,.75);
  color:var(--ink); font-size:12px; font-weight:700;
}
.ed-status:before { content:''; width:8px; height:8px; border-radius:50%; background:#d5a03f; }
.ed-status.is-live:before { background:#3f9a62; box-shadow:0 0 0 3px rgba(63,154,98,.18); }
.ed-hero h1 { margin:14px 0 8px; font-size:clamp(34px,4.6vw,56px); line-height:1.02; overflow-wrap:anywhere; }
.ed-hero-meta { margin:0; color:var(--muted); font-size:14px; }
.ed-hero-meta span + span:before { content:'·'; margin:0 8px; opacity:.6; }
.ed-hero-actions { display:flex; gap:8px; }
.ed-hero-actions .btn-ghost { background:rgba(255,255,255,.6); }

.ed-wrap { padding:32px 0 100px; }
.ed-grid { display:grid; grid-template-columns:minmax(0,1fr) 360px; gap:44px; align-items:start; }
.ed-side { position:sticky; top:84px; display:grid; gap:16px; }

/* lista */
.ed-list-head { display:flex; align-items:flex-end; justify-content:space-between; gap:16px; margin-bottom:14px; }
.ed-list-head h2 { margin:0 0 4px; font-size:30px; }
.ed-progress-text { margin:0; color:var(--muted); font-size:14px; }
.ed-progress-text strong { color:var(--ink); }
.ed-progress { height:6px; margin-bottom:6px; overflow:hidden; border-radius:999px; background:var(--line); }
.ed-progress span { display:block; height:100%; border-radius:inherit; background:var(--accent); transition:width .4s ease; }

.ed-empty {
  margin-top:18px; padding:44px 24px;
  border:1.5px dashed var(--accent-line); border-radius:22px;
  text-align:center;
}
.ed-empty img { width:64px; margin-bottom:10px; }
.ed-empty h3 { margin:0 0 6px; font-size:24px; }
.ed-empty p { max-width:420px; margin:0 auto 20px; color:var(--muted); font-size:14px; line-height:1.6; }

.gift-list { margin:10px 0 0; padding:0; list-style:none; }
.gift { padding:16px 0; border-bottom:1px solid var(--line); }
.gift-row { display:grid; grid-template-columns:72px minmax(0,1fr) auto 82px; gap:18px; align-items:center; }
.gift-img { width:72px; height:72px; padding:6px; border:1px solid var(--line); border-radius:14px; object-fit:contain; background:#fff; }
.gift.is-full .gift-img { opacity:.55; }
.gift-title { display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; font-size:15px; font-weight:600; line-height:1.4; }
.gift-tags { display:flex; flex-wrap:wrap; align-items:center; gap:6px; margin-top:6px; }
.gift-tag { padding:2px 9px; border-radius:999px; color:var(--accent-dark); background:var(--accent-soft); font-size:12px; font-weight:700; }
.gift-tag.is-done { color:#2f7a4c; background:#e2f1e7; }
.gift-note { color:var(--muted); font-size:13px; font-style:italic; }

.gift-qty { display:inline-flex; align-items:center; border:1px solid var(--line); border-radius:999px; background:#fff; }
.gift-qty button {
  width:34px; height:34px; border:0; border-radius:50%; background:none; cursor:pointer;
  color:var(--ink); font-size:18px; line-height:1;
}
.gift-qty button:hover:not(:disabled) { background:var(--accent-soft); }
.gift-qty button:disabled { color:var(--line); cursor:default; }
.gift-qty span { min-width:24px; text-align:center; font-weight:700; }
.gift-count { text-align:right; }
.gift-count strong { display:block; font-family:var(--display); font-size:22px; font-weight:400; }
.gift-count span { color:var(--muted); font-size:11px; }

.gift-more { margin:8px 0 0 90px; }
.gift-more summary {
  display:inline-flex; align-items:center; gap:6px;
  list-style:none; cursor:pointer;
  color:var(--accent-dark); font-size:13px; font-weight:700;
}
.gift-more summary::-webkit-details-marker { display:none; }
.gift-more summary:after { content:''; width:6px; height:6px; border-right:2px solid currentColor; border-bottom:2px solid currentColor; transform:rotate(45deg) translateY(-2px); transition:transform .2s ease; }
.gift-more[open] summary:after { transform:rotate(-135deg) translateY(-1px); }
.gift-more-body { margin-top:12px; padding:18px; display:grid; gap:16px; border:1px solid var(--line); border-radius:16px; background:var(--paper); }
.gift-field { display:grid; gap:7px; }
.gift-field > span { color:var(--muted); font-size:12px; font-weight:700; }
.gift-field input { padding:10px 12px; font-size:14px; }
.seg { display:inline-flex; flex-wrap:wrap; justify-self:start; padding:3px; border:1px solid var(--line); border-radius:999px; background:#fff; }
.seg button { padding:7px 13px; border:0; border-radius:999px; background:none; cursor:pointer; color:var(--ink); font:inherit; font-size:13px; font-weight:600; }
.seg button.on { color:#fff; background:var(--accent); }
.gift-more-actions { display:flex; flex-wrap:wrap; align-items:center; gap:10px 16px; }
.gift-link { color:var(--ink); font-size:13px; font-weight:600; }
.gift-remove { margin-left:auto; padding:0; border:0; background:none; cursor:pointer; color:#b0463b; font:inherit; font-size:13px; font-weight:700; }

.purchase-list { margin:10px 0 0 90px; padding:0; list-style:none; display:grid; gap:6px; }
.purchase-list li { padding:8px 12px; border-left:3px solid var(--accent); border-radius:0 10px 10px 0; background:var(--accent-soft); color:var(--ink); font-size:13px; line-height:1.45; }
.purchase-list small { color:var(--muted); font-size:12px; }
.purchase-list q { display:block; margin-top:2px; color:var(--muted); font-style:italic; }

/* lateral */
.ed-panel { padding:22px; border:1px solid var(--line); border-radius:20px; background:var(--paper); }
.ed-panel h3 { margin:0 0 6px; font-size:22px; }
.ed-panel > p { margin:0 0 14px; color:var(--muted); font-size:14px; line-height:1.55; }
.ed-share-link { display:flex; gap:6px; margin:12px 0 10px; }
.ed-share-link input { min-width:0; padding:9px 12px; border-radius:999px; color:var(--muted); background:#fff; font-size:12px; }
.ed-share-actions { display:grid; grid-template-columns:repeat(3,1fr); gap:6px; }
.ed-share-actions .btn { min-height:40px; padding:0 8px; font-size:13px; }
.ed-unpublish { display:block; margin:14px auto 0; padding:0; border:0; background:none; cursor:pointer; color:var(--muted); font:inherit; font-size:12px; text-decoration:underline; text-underline-offset:3px; }
.ed-panel .theme-picker { margin:16px 0 14px; }
.ed-panel .theme-picker > span { display:none; }
.ed-panel .theme-swatch { height:46px; }
.ed-panel .theme-option small { display:none; }
.ed-panel .cover-box { min-height:0; margin-bottom:10px; border-radius:14px; }
.ed-panel .cover-box img { height:170px; }
.ed-panel .cover-placeholder { min-height:120px; padding:16px; }
.ed-panel .cover-placeholder strong { font-size:18px; }
.ed-panel .cover-placeholder small { font-size:12px; }
.upload-button { min-height:40px; margin-bottom:18px; border:1px solid var(--line); color:var(--ink); background:#fff; font-size:13px; font-weight:700; }
.upload-button:hover { border-color:var(--accent-line); }
.ed-form { gap:12px; }
.ed-form label { font-size:12px; color:var(--muted); }
.ed-form input,.ed-form textarea { padding:11px 13px; font-size:14px; color:var(--ink); }
.ed-form textarea { min-height:84px; }

/* painel do catálogo */
.sheet-backdrop { position:fixed; inset:0; z-index:105; background:rgba(38,31,28,.38); animation:fade-in .2s ease; }
@keyframes fade-in { from { opacity:0; } }
.sheet {
  position:fixed; z-index:110; top:0; right:0; bottom:0;
  width:min(600px,100%);
  display:flex; flex-direction:column;
  background:var(--ivory);
  box-shadow:-30px 0 60px -30px rgba(0,0,0,.35);
  transform:translateX(102%);
  visibility:hidden;
  transition:transform .3s cubic-bezier(.2,.8,.2,1),visibility 0s linear .3s;
}
.sheet.open { transform:none; visibility:visible; transition:transform .3s cubic-bezier(.2,.8,.2,1); }
.sheet-head { padding:24px 24px 12px; display:flex; align-items:flex-start; justify-content:space-between; gap:16px; }
.sheet-head h2 { margin:0 0 6px; font-size:30px; }
.sheet-head p { margin:0; color:var(--muted); font-size:14px; line-height:1.5; }
.sheet-close { flex:none; width:40px; height:40px; border:1px solid var(--line); border-radius:50%; background:#fff; cursor:pointer; color:var(--ink); font-size:22px; line-height:1; }
.sheet .search-box { margin:8px 24px 6px; }
.sheet .search-box input { border-radius:999px; background:#fff; }
.sheet-body { flex:1; overflow:auto; padding:6px 24px 40px; -webkit-overflow-scrolling:touch; }
.sheet-section { margin:22px 0 12px; font-size:20px; }
.sheet .catalog-results { max-height:none; overflow:visible; grid-template-columns:repeat(auto-fill,minmax(160px,1fr)); gap:12px; }
.catalog-product { border-radius:16px; }
.catalog-image img { padding:12px; }
.catalog-body { gap:6px; padding:10px 12px 12px; }
.catalog-body strong { font-size:12.5px; font-weight:600; }
.catalog-category { font-size:10px; letter-spacing:.03em; text-transform:none; }
.btn-add { width:100%; margin-top:4px; color:var(--accent-dark); background:var(--accent-soft); }
.btn-add:hover:not(:disabled) { color:#fff; background:var(--accent); }
.btn-add.added,.btn-add:disabled { color:#2f7a4c; background:#e2f1e7; opacity:1; }
.badge { font-weight:700; }

@media (max-width:980px) {
  .ed-grid { grid-template-columns:1fr; gap:32px; }
  .ed-side { position:static; }
}
@media (max-width:640px) {
  .ed-hero { padding:18px 0 22px; }
  .ed-back { margin-bottom:14px; }
  .ed-hero-actions { width:100%; }
  .ed-hero-actions .btn { flex:1; }
  .ed-hero-inner,.ed-wrap { width:calc(100% - 32px); }
  .ed-wrap { padding-top:22px; }
  .ed-list-head { flex-direction:column; align-items:stretch; }
  .ed-list-head h2 { font-size:26px; }
  .gift-row { grid-template-columns:58px minmax(0,1fr) auto; grid-template-areas:"img info info" "img qty count"; gap:10px 14px; align-items:start; }
  .gift-img { grid-area:img; width:58px; height:58px; }
  .gift-info { grid-area:info; }
  .gift-qty { grid-area:qty; justify-self:start; }
  .gift-count { grid-area:count; }
  .gift-count strong { display:inline; font-size:18px; }
  .gift-count span { margin-left:4px; }
  .gift-more,.purchase-list { margin-left:72px; }
  .gift-more-body { margin-left:-72px; }
  .gift-remove { margin-left:0; }
  .sheet { top:6vh; width:100%; border-radius:24px 24px 0 0; transform:translateY(102%); }
  .sheet-head { padding:20px 18px 10px; }
  .sheet-head h2 { font-size:26px; }
  .sheet .search-box { margin:6px 18px; grid-template-columns:minmax(0,1fr) auto; }
  .sheet-body { padding:4px 18px 40px; }
  .sheet .catalog-results { grid-template-columns:1fr 1fr; }
}

/* ================================================================
   MEUS CHÁS
   ================================================================ */
.db { width:min(1180px,calc(100% - 40px)); margin:0 auto; padding:44px 0 100px; }
.db-head { margin-bottom:28px; display:flex; align-items:flex-end; justify-content:space-between; gap:16px; }
.db-hello { margin:0 0 4px; color:var(--muted); font-size:15px; font-weight:600; }
.db-head h1 { margin:0; font-size:clamp(42px,5vw,62px); line-height:1; }

.db-create {
  margin-bottom:32px; padding:34px;
  display:grid; grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr); gap:44px;
  border:1px solid var(--line); border-radius:26px;
  background:radial-gradient(ellipse at 0% 0%,var(--accent-soft),transparent 60%),var(--paper);
}
.db-create-intro h2 { margin:0 0 10px; font-size:clamp(28px,3vw,38px); line-height:1.08; }
.db-create-intro p { margin:0; color:var(--muted); font-size:15px; line-height:1.6; }
.db-cancel { width:auto; margin-top:14px; padding:0; }
.db-form { gap:14px; }
.db-form-row { display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.db-form .theme-picker { margin:4px 0; }
.db-submit { justify-self:start; min-width:180px; min-height:50px; }

.db-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(270px,1fr)); gap:20px; }
.db-card {
  position:relative;
  overflow:hidden;
  display:flex; flex-direction:column;
  border:1px solid var(--line); border-radius:22px;
  color:var(--ink); background:#fff; text-decoration:none;
  transition:transform .2s ease,box-shadow .2s ease;
}
.db-card:hover { transform:translateY(-3px); box-shadow:0 26px 50px -30px rgba(60,40,30,.45); }
.db-card-cover {
  position:relative; height:150px;
  background:var(--motif) 0 0/160px auto,linear-gradient(140deg,var(--hero-from),var(--hero-to));
  border-bottom:3px solid var(--accent);
}
.db-card-cover img { width:100%; height:100%; object-fit:cover; }
.db-card-status {
  position:absolute; top:12px; left:12px;
  display:inline-flex; align-items:center; gap:6px;
  padding:4px 10px 4px 8px; border-radius:999px;
  background:rgba(255,255,255,.92); color:var(--ink); font-size:12px; font-weight:700;
}
.db-card-status:before { content:''; width:7px; height:7px; border-radius:50%; background:#d5a03f; }
.db-card-status.is-live:before { background:#3f9a62; }
.db-card-body { padding:16px 18px 4px; display:grid; gap:4px; }
.db-card-body strong { font-family:var(--display); font-size:22px; font-weight:400; line-height:1.15; letter-spacing:-.015em; }
.db-card-body span { color:var(--muted); font-size:13px; }
.db-card-go { margin-top:auto; padding:10px 18px 16px; color:var(--accent-dark); font-size:13px; font-weight:700; }
.db-card-new {
  min-height:250px; padding:24px;
  align-items:center; justify-content:center; gap:6px;
  border:1.5px dashed var(--accent-line); background:transparent;
  font:inherit; text-align:center; cursor:pointer;
}
.db-card-new span { width:48px; height:48px; margin-bottom:8px; border-radius:50%; display:grid; place-items:center; color:var(--accent-dark); background:var(--accent-soft); font-size:26px; }
.db-card-new strong { font-family:var(--display); font-size:21px; font-weight:400; }
.db-card-new small { color:var(--muted); font-size:13px; }

@media (max-width:820px) {
  .db { width:calc(100% - 32px); padding-top:28px; }
  .db-create { grid-template-columns:1fr; gap:22px; padding:24px 20px; }
  .db-form-row { grid-template-columns:1fr; }
  .db-submit { justify-self:stretch; }
}

/* ================================================================
   PÁGINA PÚBLICA
   ================================================================ */
.public-hero { min-height:440px; padding:90px 24px 96px; }
.public-brand { color:var(--ink); text-decoration:none; }
.public-hero.with-cover .public-brand { color:#fff; }
.pub-kicker { margin:0 0 10px; color:var(--accent-dark); font-family:var(--display); font-size:clamp(18px,2vw,22px); font-style:italic; }
.public-hero.with-cover .pub-kicker { color:#fff2ea; }
.public-hero-copy h1 { margin:0 auto 20px; font-size:clamp(44px,8vw,96px); line-height:1; letter-spacing:-.02em; text-wrap:balance; }
.public-hero:not(.with-cover) .date-chip { color:var(--ink); background:rgba(255,255,255,.8); }
.date-chip { font-size:13px; font-weight:600; }

.pub-summary {
  position:relative; z-index:3;
  width:min(1000px,calc(100% - 32px));
  margin:-46px auto 0;
  padding:20px 26px;
  display:grid; grid-template-columns:minmax(0,1fr) auto; gap:20px 36px; align-items:center;
  border:1px solid var(--line); border-radius:22px;
  background:var(--paper);
  box-shadow:0 24px 50px -36px rgba(60,40,30,.5);
}
.pub-progress-text { display:flex; flex-wrap:wrap; align-items:baseline; gap:8px; margin-bottom:10px; }
.pub-progress-text strong { font-family:var(--display); font-size:26px; font-weight:400; }
.pub-progress-text span { color:var(--muted); font-size:14px; }
.pub-bar { height:8px; overflow:hidden; border-radius:999px; background:var(--line); }
.pub-bar span { display:block; height:100%; border-radius:inherit; background:var(--accent); transition:width .5s ease; }
.pub-steps { margin:0; padding:0; list-style:none; display:grid; gap:8px; color:var(--ink); font-size:13px; font-weight:600; }
.pub-steps b { width:22px; height:22px; margin-right:8px; border-radius:50%; display:inline-grid; place-items:center; color:var(--accent-dark); background:var(--accent-soft); font-size:12px; }

.public-content { padding:56px 0 90px; }
.pub-note { max-width:680px; margin:0 auto 52px; text-align:center; }
.pub-note p { margin:0 0 10px; color:var(--ink); font-family:var(--display); font-size:clamp(21px,2.4vw,27px); font-style:italic; line-height:1.4; white-space:pre-line; }
.pub-note cite { color:var(--muted); font-size:14px; font-style:normal; }
.pub-title { margin:0 0 24px; font-size:clamp(28px,3.6vw,42px); }

.public-products { gap:20px; }
.public-product { display:flex; flex-direction:column; border-radius:20px; box-shadow:none; transition:transform .2s ease,box-shadow .2s ease; }
.public-product:hover { transform:translateY(-3px); box-shadow:0 24px 46px -30px rgba(60,40,30,.45); }
.public-product-image { display:grid; aspect-ratio:1.15; padding:22px; background:#fff; border-bottom:1px solid var(--line); }
.priority-tag { padding:5px 10px; color:#fff; background:var(--accent); font-size:11px; font-weight:700; }
.public-product-body { flex:1; display:flex; flex-direction:column; padding:16px 18px 18px; }
.public-product-body h3 { min-height:0; margin:0 0 6px; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; font-family:var(--sans); font-size:14.5px; font-weight:600; line-height:1.45; letter-spacing:0; }
.pub-item-note { margin:0 0 6px; color:var(--muted); font-size:13px; font-style:italic; }
.availability { margin:0 0 14px; color:var(--accent-dark); font-size:13px; font-weight:700; }
.availability span { color:var(--muted); font-weight:500; }
.pub-actions { margin-top:auto; display:grid; gap:4px; }
.bought-link { margin-top:4px; color:var(--ink); font-weight:600; text-decoration-color:var(--accent-line); }
.bought-link:hover { color:var(--accent-dark); }
.bought-mine { margin:10px 0 0; text-align:left; }
.public-product.is-full { background:var(--paper); }
.public-product.is-full .public-product-image img { opacity:.55; filter:grayscale(.3); }
.public-product.is-full:hover { transform:none; box-shadow:none; }
.gifted-done { margin-top:auto; color:#2f7a4c; background:#e2f1e7; }
.gifted-done:before { content:'✓ '; }

.public-footer { min-height:0; padding:44px 20px 56px; flex-direction:column; gap:14px; text-align:center; }
.public-footer p { max-width:520px; margin:0; color:var(--muted); font-size:12px; line-height:1.6; }
.pub-footer-cta { display:inline-flex; align-items:center; gap:10px; color:var(--ink); font-size:14px; text-decoration:none; }
.pub-footer-cta img { width:30px; opacity:1; }
.pub-footer-cta strong { color:var(--accent-dark); }

.gift-modal { border-radius:26px; }
.gift-modal h2 { margin:0 0 8px; font-size:28px; line-height:1.1; }
.bought-modal .eyebrow { display:none; }
.bought-heart svg { width:28px; height:28px; }

@media (max-width:760px) {
  .public-hero { min-height:380px; padding:84px 18px 84px; }
  .pub-summary { grid-template-columns:1fr; padding:18px 18px; }
  .pub-steps { grid-template-columns:1fr; }
  .public-content { padding-top:40px; }
  .pub-note { margin-bottom:36px; }
}
@media (max-width:680px) {
  .public-products { grid-template-columns:1fr 1fr; gap:10px; }
  .public-product-image { padding:12px; }
  .public-product-body { padding:12px; }
  .public-product-body h3 { font-size:13px; }
  .public-product .btn { min-height:40px; padding:0 10px; font-size:12px; }
  .bought-link { font-size:12px; }
}

/* ================================================================
   PRODUTO
   ================================================================ */
.pd { width:min(1100px,calc(100% - 40px)); margin:0 auto; padding:28px 0 100px; }
.pd-back { margin-bottom:24px; }
.pd-loading { padding:80px 20px; text-align:center; color:var(--muted); }
.pd-spinner { width:34px; height:34px; margin:0 auto 14px; display:block; border:3px solid var(--line); border-top-color:var(--accent); border-radius:50%; animation:spin 1s linear infinite; }
@keyframes spin { to { transform:rotate(360deg); } }
.pd-card { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:52px; align-items:start; }
.pd-media { position:sticky; top:90px; padding:32px; border:1px solid var(--line); border-radius:26px; background:#fff; }
.pd-media img { display:block; width:100%; aspect-ratio:1; object-fit:contain; }
.pd-crumb { margin:0 0 10px; color:var(--muted); font-size:13px; font-weight:600; }
.pd-info h1 { margin:0; font-size:clamp(26px,2.6vw,34px); line-height:1.18; }
.pd-buy { margin:26px 0 30px; padding:22px; border:1px solid var(--line); border-radius:20px; background:var(--paper); }
.pd-price { margin:0 0 4px; font-family:var(--display); font-size:40px; line-height:1.1; }
.pd-price-missing { font-size:24px; color:var(--muted); }
.pd-availability { margin:0 0 14px; color:#2f7a4c; font-size:13px; font-weight:700; }
.pd-stale { margin:0 0 14px; color:var(--muted); font-size:13px; }
.pd-cta { min-height:52px; margin-top:6px; font-size:15px; }
.pd-buy small { display:block; margin-top:10px; color:var(--muted); font-size:12px; text-align:center; }
.pd-desc h2 { margin:0 0 10px; font-family:var(--sans); font-size:15px; font-weight:700; letter-spacing:0; }
.pd-desc p { margin:0; color:var(--ink); font-size:14.5px; line-height:1.75; white-space:pre-line; }
@media (max-width:780px) {
  .pd { width:calc(100% - 32px); }
  .pd-card { grid-template-columns:1fr; gap:22px; }
  .pd-media { position:static; padding:18px; }
}

@media (prefers-reduced-motion:reduce) {
  .sheet,.sheet.open,.db-card,.public-product,.ed-progress span,.pub-bar span { transition:none; }
  .toast,.sheet-backdrop,.pd-spinner { animation:none; }
}

/* ---------- Pix: presente em dinheiro ---------- */
.ed-pix select { padding:11px 13px; font-size:14px; }
.pix-hint { margin:-4px 0 0; color:var(--muted); font-size:12px; line-height:1.5; }
.pix-summary { margin:12px 0 10px; display:grid; grid-template-columns:96px minmax(0,1fr); gap:14px; align-items:center; }
.pix-summary strong { display:block; font-size:15px; }
.pix-summary small { display:block; overflow:hidden; text-overflow:ellipsis; color:var(--muted); font-size:12px; }
.pix-summary .pix-test { margin-top:6px; color:var(--accent-dark); }
.pix-summary-actions { display:flex; align-items:center; justify-content:space-between; gap:10px; }
.pix-summary-actions .ed-unpublish { margin:0; }
.pix-qr-mini { padding:6px; border:1px solid var(--line); border-radius:12px; background:#fff; }
.pix-qr-mini svg { display:block; width:100%; height:auto; }
.pix-qr-preview { width:150px; margin:0 auto; }

.pub-pix {
  margin-top:64px;
  padding:clamp(24px,4vw,44px);
  border:1px solid var(--line);
  border-radius:28px;
  display:grid;
  grid-template-columns:minmax(0,1fr) 260px;
  gap:clamp(24px,4vw,48px);
  align-items:center;
  background:radial-gradient(ellipse at 100% 0%,var(--accent-soft),transparent 60%),var(--paper);
}
.pub-pix h2 { margin:0 0 10px; font-size:clamp(28px,3.4vw,40px); }
.pub-pix-copy > p { margin:0 0 22px; max-width:520px; color:var(--muted); font-size:16px; line-height:1.6; }
.pub-pix-amounts { margin-bottom:18px; display:flex; flex-wrap:wrap; gap:8px; }
.pub-pix-amounts button {
  min-height:42px; padding:0 18px;
  border:1px solid var(--line); border-radius:999px;
  background:#fff; color:var(--ink);
  font:inherit; font-size:14px; font-weight:700; cursor:pointer;
  transition:border-color .15s ease,background .15s ease,color .15s ease;
}
.pub-pix-amounts button:hover { border-color:var(--accent-line); }
.pub-pix-amounts button.on { border-color:var(--accent); background:var(--accent); color:#fff; }
.pub-pix-buttons { display:flex; flex-wrap:wrap; gap:10px; }
.pub-pix-info { margin:22px 0 0; display:grid; gap:6px; font-size:13px; }
.pub-pix-info div { display:flex; gap:10px; }
.pub-pix-info dt { min-width:48px; color:var(--muted); }
.pub-pix-info dd { margin:0; overflow-wrap:anywhere; font-weight:700; }
.pub-pix-qr { margin:0; text-align:center; }
.pub-pix-qr-box { padding:14px; border-radius:22px; background:#fff; box-shadow:0 24px 50px -30px rgba(var(--accent-rgb),.6); }
.pub-pix-qr-box svg { display:block; width:100%; height:auto; }
.pub-pix-qr figcaption { margin-top:12px; color:var(--muted); font-size:13px; }
@media (max-width:760px) {
  .pub-pix { grid-template-columns:1fr; text-align:center; }
  .pub-pix-copy > p { margin-left:auto; margin-right:auto; }
  .pub-pix-amounts,.pub-pix-buttons { justify-content:center; }
  .pub-pix-buttons .btn { flex:1 1 100%; }
  .pub-pix-info { justify-content:center; text-align:left; }
  /* no celular o convidado usa o copia e cola; o QR fica embaixo, para escanear de outro aparelho */
  .pub-pix-qr { width:min(200px,62%); margin:0 auto; }
}
