/* Wishlist: caderno de capa dura com abinhas por categoria, fachada de lojinha no topo da página e desejos como adesivos recortados. */
.wishlist { display: flex; flex-direction: column; gap: 18px; }
.wishlist-topo { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.wishlist-resumo { margin: 6px 0 0; font-size: 15px; color: var(--tinta); }
.wishlist-botoes { display: flex; gap: 10px; flex-wrap: wrap; }
.wishlist-botoes .botao { text-decoration: none; }

/* ---------- caderno ---------- */
.caderno-wish { position: relative; max-width: 980px; width: 100%; margin: 0 auto; }
.caderno-abas { position: relative; z-index: 0; display: flex; gap: 4px; padding: 0 28px; margin-bottom: -8px; overflow-x: auto; scrollbar-width: none; }
.caderno-abas::-webkit-scrollbar { display: none; }
.aba-wish {
  flex: 0 0 auto; display: inline-flex; align-items: baseline; gap: 7px; padding: 10px 16px 18px; border: 0; border-radius: 12px 12px 0 0;
  background: var(--cat); color: #3A3426; font: inherit; font-size: 14.5px; font-weight: 600; cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 -2px 6px -3px rgba(0,0,0,.25);
  transform: translateY(6px); transition: transform .18s ease, filter .18s;
  filter: saturate(.85) brightness(.97);
}
.aba-wish:hover { transform: translateY(2px); }
.aba-wish.ativa { transform: translateY(0); filter: none; z-index: 2; position: relative; }
.aba-num { font-size: 12.5px; font-weight: 700; color: var(--cat-forte); }
.aba-nova { min-width: 46px; justify-content: center; background: color-mix(in srgb, var(--cartao, #fff) 88%, transparent); color: var(--tinta); font-size: 18px; box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--tinta) 25%, transparent); }
.aba-wish:focus-visible { outline: 2px solid var(--destaque); outline-offset: 2px; }

.caderno-capa {
  position: relative; z-index: 1; padding: 14px 34px 16px 18px; border-radius: 8px 18px 18px 8px;
  background:
    radial-gradient(circle at 20% 10%, rgba(255,255,255,.08), transparent 60%),
    color-mix(in srgb, var(--destaque) 62%, #2A2220);
  box-shadow: inset 0 0 0 2px rgba(0,0,0,.12), inset 6px 0 10px -6px rgba(0,0,0,.4), 0 26px 34px -24px rgba(25, 15, 5, .75);
}
.caderno-elastico { position: absolute; top: 0; bottom: 0; right: 12px; width: 12px; border-radius: 3px; background: linear-gradient(90deg, rgba(0,0,0,.35), color-mix(in srgb, var(--destaque) 40%, #1A1412) 30%, color-mix(in srgb, var(--destaque) 55%, #2A2220) 70%, rgba(0,0,0,.3)); box-shadow: 1px 0 2px rgba(0,0,0,.3); }

.caderno-folha {
  position: relative; border-radius: 4px 10px 10px 4px; color: #3A3426; overflow: hidden;
  background:
    linear-gradient(90deg, rgba(0,0,0,.07), transparent 22px),
    radial-gradient(circle, rgba(90, 80, 60, .2) 1.1px, transparent 1.3px) 0 0 / 22px 22px,
    #FFFDF8;
  box-shadow: 2px 0 0 #EFE9DD, 4px 0 0 #E4DDCF, 0 1px 2px rgba(0,0,0,.2);
  transform-origin: 0 50%;
}
.efeitos-ativos .caderno-folha.virando-frente { animation: virar-frente .45s cubic-bezier(.3, .7, .3, 1); }
.efeitos-ativos .caderno-folha.virando-tras { animation: virar-tras .45s cubic-bezier(.3, .7, .3, 1); }
@keyframes virar-frente { from { transform: perspective(1600px) rotateY(-24deg); filter: brightness(.92); } }
@keyframes virar-tras { from { transform: perspective(1600px) rotateY(18deg); filter: brightness(.92); } }
.caderno-folha.vazia { padding: 80px 20px; text-align: center; font-size: 22px; }

/* ---------- fachada da lojinha ---------- */
.fachada { position: relative; padding: 0 20px 6px; text-align: center; }
.toldo {
  display: block; height: 54px; margin: 0 -20px;
  background: repeating-linear-gradient(90deg, var(--cat) 0 34px, #FFFDF8 34px 68px);
  -webkit-mask: radial-gradient(17px at 17px calc(100% - 17px), #000 98%, transparent) 0 0 / 34px 100% repeat-x, linear-gradient(#000, #000) 0 0 / 100% calc(100% - 17px) no-repeat;
  mask: radial-gradient(17px at 17px calc(100% - 17px), #000 98%, transparent) 0 0 / 34px 100% repeat-x, linear-gradient(#000, #000) 0 0 / 100% calc(100% - 17px) no-repeat;
  filter: drop-shadow(0 4px 3px rgba(0,0,0,.18));
  box-shadow: inset 0 8px 10px -6px rgba(0,0,0,.2);
}
.letreiro {
  position: relative; display: inline-block; margin: 14px auto 0; padding: 10px 30px 12px; border: 0; border-radius: 10px; cursor: pointer;
  background: var(--cat-forte); color: #FFFDF6; font: inherit;
  box-shadow: inset 0 0 0 3px rgba(255,255,255,.25), inset 0 0 0 5px var(--cat-forte), inset 0 0 0 6px rgba(255,255,255,.4), 0 6px 10px -6px rgba(0,0,0,.45);
}
.letreiro::before, .letreiro::after { /* corrente do letreiro */
  content: ''; position: absolute; top: -14px; width: 2px; height: 14px; background: repeating-linear-gradient(#8E8C88 0 3px, transparent 3px 5px);
}
.letreiro::before { left: 22%; } .letreiro::after { right: 22%; }
.letreiro-nome { font-family: 'Pacifico', serif; font-size: 26px; line-height: 1.1; letter-spacing: .2px; }
.letreiro:hover { filter: brightness(1.05); }
.letreiro:focus-visible { outline: 2px solid var(--destaque); outline-offset: 3px; }
.fachada-conta { margin: 10px 0 0; font-size: 14px; color: #5A5242; }

/* ---------- adesivos ---------- */
.folha-adesivos { position: relative; container-type: inline-size; aspect-ratio: 100 / var(--alt, 150); margin-top: -6px; }
.adesivo {
  --r: 0deg; --esc: 1;
  position: absolute; width: 24cqw; transform: translate(-50%, -50%) rotate(var(--r)) scale(var(--esc));
  cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; outline: none;
  transition: filter .2s;
}
.adesivo:focus-visible .adesivo-recorte { outline: 2px solid var(--destaque); outline-offset: 3px; }
.adesivo.segurando, .adesivo.arrastando { cursor: grabbing; z-index: 5; }
.adesivo.arrastando .adesivo-recorte { box-shadow: 0 2px 3px rgba(0,0,0,.15), 0 22px 24px -12px rgba(0,0,0,.45); transform: translateY(-2%); }
.adesivo-recorte {
  display: block; padding: 1.3cqw; border-radius: 2.6cqw; background: #fff;
  box-shadow: 0 0 0 .2cqw rgba(0,0,0,.05), 0 1px 2px rgba(0,0,0,.18), 0 8px 12px -8px rgba(0,0,0,.4);
  transition: transform .18s, box-shadow .18s;
}
.adesivo-foto { display: block; aspect-ratio: 1; border-radius: 1.6cqw; background: #EEE7DA center / cover no-repeat; pointer-events: none; }
.adesivo-sem-foto { display: flex; align-items: center; justify-content: center; aspect-ratio: 1; padding: 2cqw; border-radius: 1.6cqw; background: var(--cat); color: #3A3426; font-size: 3.6cqw; line-height: 1.15; text-align: center; overflow-wrap: anywhere; pointer-events: none; }
.etiqueta-preco {
  position: absolute; top: 6%; right: -9%; padding: .8cqw 1.6cqw .8cqw 3cqw; transform: rotate(9deg);
  background: #FFFDF4; color: #3A3426; font-size: 3.1cqw; line-height: 1.1; white-space: nowrap; pointer-events: none;
  clip-path: polygon(1.8cqw 0, 100% 0, 100% 100%, 1.8cqw 100%, 0 50%);
  filter: drop-shadow(0 1px 1px rgba(0,0,0,.25));
  box-shadow: inset 0 0 0 .25cqw color-mix(in srgb, var(--cat-forte) 45%, transparent);
}
.etiqueta-preco::before { content: ''; position: absolute; left: 1.4cqw; top: 50%; width: .9cqw; height: .9cqw; margin-top: -.45cqw; border-radius: 50%; background: var(--cat-forte); opacity: .6; }
.adesivo-nome { display: block; margin-top: 1.2cqw; text-align: center; font-size: 3.2cqw; line-height: 1.15; color: #3A3426; overflow-wrap: anywhere; pointer-events: none; }
.adesivo-nome { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.desejo-estrelas { display: inline-flex; gap: .2cqw; margin-left: .8cqw; vertical-align: -.2cqw; }
.desejo-estrelas svg { width: 2.6cqw; height: 2.6cqw; fill: var(--cat-forte); }
.adesivo.conquistado .adesivo-foto, .adesivo.conquistado .adesivo-sem-foto { filter: saturate(.55) brightness(1.04); }
.carimbo-desejo {
  position: absolute; left: 50%; top: 40%; transform: translate(-50%, -50%) rotate(-14deg);
  padding: .8cqw 2.6cqw; border: .55cqw solid #B23A48; border-radius: 1.4cqw; background: rgba(255, 253, 248, .55);
  color: #B23A48; font-family: 'Pacifico', serif; font-size: 4.4cqw; line-height: 1.1; pointer-events: none;
  box-shadow: inset 0 0 0 .3cqw rgba(255,255,255,.6);
  -webkit-mask: radial-gradient(circle at 30% 40%, #000 60%, rgba(0,0,0,.75) 61%, #000 70%);
}
.efeitos-ativos .adesivo.carimbando .carimbo-desejo { animation: carimbar .45s cubic-bezier(.3, 1.6, .5, 1) both; }
@keyframes carimbar { from { transform: translate(-50%, -50%) rotate(-14deg) scale(2); opacity: 0; } }
.efeitos-ativos .adesivo.chegando { animation: colar .7s cubic-bezier(.25, 1.3, .5, 1) both; }
@keyframes colar { 0% { transform: translate(-50%, -80%) rotate(calc(var(--r) - 12deg)) scale(calc(var(--esc) * 1.25)); opacity: 0; } 60% { opacity: 1; } }
.efeitos-ativos .adesivo.colou .adesivo-recorte { animation: alisar .35s ease-out; }
@keyframes alisar { 40% { transform: scale(.97); } }
.adesivo-vazio {
  position: absolute; left: 50%; top: 16cqw; transform: translateX(-50%) rotate(-2deg); width: min(70%, 320px); padding: 26px 18px;
  border: 2px dashed rgba(90, 80, 60, .35); border-radius: 18px; background: rgba(255,255,255,.6); color: #4A4234; font: inherit; cursor: pointer;
}
.adesivo-vazio .mao { font-size: 20px; line-height: 1.3; }
.adesivo-vazio:hover { background: #fff; }

/* ---------- janela do desejo ---------- */
.form-desejo { max-width: 680px; }
.desejo-corpo { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 20px; align-items: start; margin-top: 12px; }
.desejo-foto { position: relative; display: block; cursor: pointer; }
.desejo-foto .adesivo-recorte { padding: 8px; border-radius: 16px; transform: rotate(-2deg); }
.desejo-foto .adesivo-foto { border-radius: 10px; }
.sem-foto-convite { display: flex; align-items: center; justify-content: center; aspect-ratio: 1; border: 2px dashed color-mix(in srgb, var(--tinta) 30%, transparent); border-radius: 16px; background: color-mix(in srgb, var(--cat) 35%, transparent); font-weight: 600; color: var(--tinta); }
.desejo-foto:hover .sem-foto-convite { background: color-mix(in srgb, var(--cat) 55%, transparent); }
.desejo-trocar { display: block; margin-top: 10px; text-align: center; font-size: 13.5px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; color: var(--tinta); }
.desejo-campos { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.desejo-prioridade, .desejo-status { border: 0; padding: 0; margin: 2px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.desejo-prioridade legend, .desejo-status legend { font-weight: 700; font-size: 14px; margin-bottom: 6px; padding: 0; }
.desejo-prioridade label, .desejo-status label { position: relative; cursor: pointer; }
.desejo-prioridade input, .desejo-status input { position: absolute; opacity: 0; pointer-events: none; }
.desejo-prioridade span, .desejo-status span { display: inline-flex; align-items: center; gap: 2px; min-height: 38px; padding: 0 12px; border-radius: 10px; background: color-mix(in srgb, var(--tinta) 6%, transparent); font-size: 14px; font-weight: 600; color: var(--tinta); }
.desejo-prioridade svg { width: 15px; height: 15px; fill: var(--cat-forte); }
.desejo-prioridade em { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.desejo-prioridade input:checked + span, .desejo-status input:checked + span { box-shadow: inset 0 0 0 2px var(--tinta); background: color-mix(in srgb, var(--cat) 45%, transparent); }
.desejo-prioridade input:focus-visible + span, .desejo-status input:focus-visible + span { outline: 2px solid var(--destaque); outline-offset: 2px; }
.ver-loja { align-self: flex-start; text-decoration: underline; }
.cores-categoria { border: 0; padding: 0; margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.cores-categoria legend { font-weight: 700; font-size: 14px; margin-bottom: 8px; padding: 0; }
.cores-categoria label { position: relative; cursor: pointer; }
.cores-categoria input { position: absolute; opacity: 0; pointer-events: none; }
.cores-categoria span { display: block; width: 44px; height: 34px; border-radius: 10px 10px 2px 2px; background: linear-gradient(var(--cat) 70%, var(--cat-forte) 70%); box-shadow: inset 0 0 0 1px rgba(0,0,0,.1); }
.cores-categoria input:checked + span { outline: 2.5px solid var(--tinta); outline-offset: 3px; }
.cores-categoria input:focus-visible + span { outline: 2.5px solid var(--destaque); outline-offset: 3px; }

/* ---------- celular ---------- */
@media (max-width: 640px) {
  .caderno-abas { padding: 0 12px; }
  .aba-wish { padding: 9px 13px 17px; font-size: 13.5px; }
  .caderno-capa { padding: 8px 22px 10px 8px; border-radius: 6px 14px 14px 6px; }
  .caderno-elastico { right: 6px; width: 9px; }
  .toldo { height: 40px; }
  .letreiro { padding: 8px 22px 10px; }
  .letreiro-nome { font-size: 21px; }
  .fachada { padding: 0 12px 4px; }
  .desejo-corpo { grid-template-columns: minmax(0, 1fr); }
  .desejo-foto { width: min(200px, 70%); margin: 0 auto; }
  .wishlist-botoes { width: 100%; }
  .wishlist-botoes .botao { flex: 1; white-space: nowrap; }
}

/* letra de mão fina nas estéticas elegantes (como na Cozinha) */
body:is([data-tema="linho"], [data-tema="oliva"], [data-tema="noite"]) .wishlist .mao { font-family: 'Caveat', cursive !important; font-style: normal !important; font-weight: 500 !important; font-size-adjust: none; }
body:is([data-tema="linho"], [data-tema="oliva"], [data-tema="noite"]) .wishlist .adesivo-nome { font-size: 4cqw; }
body:is([data-tema="linho"], [data-tema="oliva"], [data-tema="noite"]) .wishlist .etiqueta-preco { font-size: 3.8cqw; }
@media (prefers-reduced-motion: reduce) { .caderno-folha, .adesivo, .carimbo-desejo { animation: none !important; } }

.form-desejo .dupla { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.form-desejo .dupla :is(input, select), .form-desejo .desejo-campos :is(input, select) { width: 100%; min-width: 0; box-sizing: border-box; }
.form-desejo select { min-height: 46px; padding: 0 12px; border: 2px solid var(--suave); border-radius: 14px; background: #fff; color: #3A3426; font: inherit; font-size: 16px; }

/* ---------- adesivo recortado no formato do produto ---------- */
.adesivo.recortado .adesivo-recorte, .desejo-foto .adesivo-recorte.recortado { padding: 0; background: none; box-shadow: none; border-radius: 0; filter: drop-shadow(0 1px 1px rgba(0,0,0,.22)) drop-shadow(0 6px 6px rgba(0,0,0,.16)); }
.adesivo.recortado .adesivo-foto, .desejo-foto .recortado .adesivo-foto { background-size: contain; background-color: transparent; border-radius: 0; }
.adesivo.recortado .etiqueta-preco { top: 2%; right: -4%; }
.desejo-recortar { display: block; margin: 8px auto 0; font-size: 13.5px; }
.desejo-recortar:disabled { opacity: .6; cursor: default; }
.desejo-link { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: end; }
.desejo-link .botao { min-height: 46px; white-space: nowrap; padding-inline: 14px; }
.desejo-link .botao:disabled { opacity: .7; }

/* ---------- enfeites ---------- */
.enfeite { --r: 0deg; --esc: 1; position: absolute; transform: translate(-50%, -50%) rotate(var(--r)) scale(var(--esc)); cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; line-height: 0; }
.enfeite.enf-washi { width: 30cqw; }
.enfeite.enf-washi svg { width: 100%; height: 7.5cqw; filter: drop-shadow(0 1px 1px rgba(0,0,0,.15)); }
.enfeite.enf-rabisco { width: 14cqw; }
.enfeite.enf-rabisco svg { width: 100%; height: auto; }
.enfeite.enf-mimo { width: 10cqw; }
.enfeite.enf-mimo svg { width: 100%; height: auto; filter: drop-shadow(0 2px 1.5px rgba(0,0,0,.3)); }
.enfeite.segurando, .enfeite.arrastando { cursor: grabbing; z-index: 6; }
.enfeite:focus-visible { outline: 2px dashed var(--destaque); outline-offset: 3px; }
.efeitos-ativos .enfeite.chegando { animation: colar .6s cubic-bezier(.25, 1.3, .5, 1) both; }


.form-enfeites { max-width: 560px; }
.grade-enfeites { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.escolher-enfeite { display: flex; align-items: center; justify-content: center; aspect-ratio: 1; padding: 8px; border: 0; border-radius: 12px; background: color-mix(in srgb, var(--tinta) 6%, transparent); cursor: pointer; line-height: 0; }
.escolher-enfeite:hover { background: color-mix(in srgb, var(--tinta) 12%, transparent); }
.escolher-enfeite svg { width: 100%; height: auto; max-height: 100%; }
.escolher-enfeite.enf-washi svg { height: 18px; transform: rotate(-12deg); }
.escolher-enfeite.enf-mimo svg { width: 70%; filter: drop-shadow(0 2px 1px rgba(0,0,0,.25)); }

/* ---------- abinhas no celular: menores e deslizando ---------- */
@media (max-width: 640px) {
  .caderno-abas { gap: 3px; }
  .aba-wish { padding: 8px 11px 16px; font-size: 13px; gap: 5px; }
  .caderno-abas.desliza { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 34px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 34px), transparent); padding-right: 30px; }

  .grade-enfeites { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .desejo-link { grid-template-columns: minmax(0, 1fr); }
}
.escolher-enfeite { overflow: hidden; min-width: 0; }
.escolher-enfeite svg { pointer-events: none; display: block; }
.escolher-enfeite.enf-rabisco svg { width: 76%; height: 76%; }

/* ---------- recorte de revista: papel cortado à tesoura ---------- */
.adesivo-recorte, .desejo-foto .adesivo-recorte {
  display: block; padding: 0; border-radius: 0; background: none; box-shadow: none;
  filter: drop-shadow(0 .6px .6px rgba(0,0,0,.28)) drop-shadow(0 5px 6px rgba(0,0,0,.18));
}
.adesivo-papel {
  display: block; padding: 1.7cqw; line-height: 0;
  background:
    radial-gradient(circle at 20% 15%, rgba(255,255,255,.9), transparent 60%),
    linear-gradient(135deg, #FDFBF6, #F4EFE4);
}
.adesivo-foto, .desejo-foto .adesivo-foto { border-radius: 0; box-shadow: inset 0 0 0 .2cqw rgba(0,0,0,.05); }
.adesivo-sem-foto { border-radius: 0; line-height: 1.15; }
.adesivo.arrastando .adesivo-recorte { box-shadow: none; transform: translateY(-2%); filter: drop-shadow(0 1px 1px rgba(0,0,0,.25)) drop-shadow(0 16px 14px rgba(0,0,0,.25)); }
.adesivo-recorte.recortado .adesivo-papel { padding: 0; background: none; }
.adesivo-recorte.recortado .adesivo-foto { background-size: contain; background-color: transparent; box-shadow: none; }
.desejo-foto .adesivo-papel { padding: 9px; }
.desejo-foto .adesivo-recorte { transform: rotate(-2deg); }

/* ---------- botão de enfeitar: discreto, no canto da página ---------- */
.fachada .botao-enfeitar {
  position: absolute; top: 60px; right: 16px; display: inline-flex; align-items: center; gap: 4px;
  min-height: 34px; padding: 2px 6px; margin: 0; border: 0; border-radius: 8px; background: transparent;
  color: var(--cat-forte); font: inherit; cursor: pointer; -webkit-appearance: none; appearance: none; box-shadow: none;
  transform: rotate(-4deg); transition: transform .18s ease;
}
.fachada .botao-enfeitar svg { width: 22px; height: 22px; }
.fachada .botao-enfeitar .mao { font-size: 18px; line-height: 1; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.fachada .botao-enfeitar:hover { transform: rotate(-4deg) translateY(-1px); }
.fachada .botao-enfeitar:focus-visible { outline: 2px solid var(--destaque); outline-offset: 2px; }
@media (max-width: 640px) { .fachada .botao-enfeitar { top: 44px; right: 6px; } .fachada .botao-enfeitar .mao { font-size: 16px; } .fachada .botao-enfeitar svg { width: 19px; height: 19px; } }
.desejo-link { grid-template-columns: minmax(0, 1fr); }
.desejo-link .botao { justify-self: start; }
.desejo-coluna-foto { min-width: 0; }
