/* ===== conta, checkout e animações ===== */

/* ---------- animações globais ---------- */
@keyframes pageIn{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:none}}
@keyframes popIn{0%{transform:scale(.4);opacity:0}60%{transform:scale(1.18)}100%{transform:scale(1);opacity:1}}
@keyframes shimmer{to{background-position:200% 0}}
@keyframes spin{to{transform:rotate(360deg)}}
@keyframes flyCart{0%{transform:translate(0,0) scale(1);opacity:1}70%{opacity:1}100%{transform:translate(var(--dx),var(--dy)) scale(.15);opacity:0}}
@keyframes pulseRing{0%{box-shadow:0 0 0 0 rgba(255,0,128,.45)}100%{box-shadow:0 0 0 14px rgba(255,0,128,0)}}

@media (prefers-reduced-motion:no-preference){
  #app{animation:pageIn .38s cubic-bezier(.22,.9,.3,1)}
  .reveal{opacity:0;transform:translateY(18px)}
  .reveal.in{opacity:1;transform:none;transition:opacity .55s ease,transform .55s cubic-bezier(.22,.9,.3,1)}
  .card{transition:transform .25s cubic-bezier(.22,.9,.3,1)}
  .card:active{transform:scale(.975)}
  .card .pimg img:not(.seal){transition:transform .55s cubic-bezier(.22,.9,.3,1)}
  .card:hover .pimg img:not(.seal){transform:scale(1.07)}
  button,.tile,.pills a,.lk,.acc summary{transition:transform .16s ease,background .2s ease,color .2s ease,opacity .2s ease,box-shadow .25s ease}
  button:active,.tile:active{transform:scale(.96)}
  .tile:hover{box-shadow:0 8px 20px rgba(255,0,128,.13);transform:translateY(-2px)}
  .pills a:active{transform:scale(.94)}
  .cartw i.bump{animation:popIn .45s cubic-bezier(.22,.9,.3,1)}
  .dots span,.gdots span{transition:opacity .3s,transform .3s}
  .dots span.on,.gdots span.on{transform:scale(1.25)}
  .qty button:active{transform:scale(.85)}
  .ci{animation:pageIn .3s ease}
  .acc details[open] p{animation:pageIn .3s ease}
}
.tr i{transition:width .6s cubic-bezier(.22,.9,.3,1)}
.fly{position:fixed;z-index:80;width:62px;height:62px;border-radius:10px;object-fit:cover;pointer-events:none;box-shadow:0 10px 26px rgba(0,0,0,.2);animation:flyCart .75s cubic-bezier(.4,.1,.5,1) forwards}
.sk{background:linear-gradient(90deg,#f3f3f3 25%,#fafafa 37%,#f3f3f3 63%);background-size:200% 100%;animation:shimmer 1.3s infinite;border-radius:8px;height:14px;margin:8px 0}
.spin{display:inline-block;width:15px;height:15px;border:2px solid rgba(255,255,255,.45);border-top-color:#fff;border-radius:50%;animation:spin .7s linear infinite;vertical-align:-2px;margin-right:7px}

/* ---------- área de conta ---------- */
.acct{padding:0 16px 40px}
.ahead{display:flex;align-items:center;gap:12px;padding:18px 0 14px}
.ahead .av{width:52px;height:52px;border-radius:50%;background:var(--soft);display:flex;align-items:center;justify-content:center;flex:0 0 auto;border:1.5px solid #f6a8cf}
.ahead .av svg{width:28px;height:28px;stroke:var(--pink);fill:none;stroke-width:1.6}
.ahead h1{font-size:22px;color:var(--ink);font-weight:700;line-height:1.2}
.ahead small{color:var(--grey);font-size:12px;display:block;margin-top:2px}
.anav{display:flex;gap:8px;overflow-x:auto;padding:4px 0 14px;scrollbar-width:none;border-bottom:1px solid var(--line);margin-bottom:18px}
.anav::-webkit-scrollbar{display:none}
.anav a{flex:0 0 auto;font-size:14px;padding:8px 15px;border-radius:20px;background:#f7f7f7;color:var(--grey);white-space:nowrap;font-weight:500}
.anav a.on{background:var(--pink);color:#fff;font-weight:700}
.sect{animation:pageIn .3s ease}
.sect h2{font-size:19px;color:var(--ink);margin-bottom:4px;font-weight:700}
.sect .sub{color:var(--grey);font-size:13px;margin-bottom:16px}
.box{border:1px solid var(--line);border-radius:12px;padding:16px;margin-bottom:14px;background:#fff}
.box h3{font-size:13px;color:var(--pink);font-weight:700;margin-bottom:12px;text-transform:uppercase;letter-spacing:.4px}
.g2{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.fld label{display:block;color:var(--pink);font-size:13px;font-weight:600;margin:0 0 6px}
.fld input,.fld select,.fld textarea{width:100%;border:1px solid #d8d8d8;border-radius:8px;padding:11px 12px;font:14px Montserrat,sans-serif;background:#fff;color:var(--ink)}
.fld input:focus,.fld select:focus,.fld textarea:focus{outline:none;border-color:var(--pink);box-shadow:0 0 0 3px rgba(255,0,128,.12)}
.fld{margin-bottom:12px}
.btn{width:100%;background:var(--pink);color:#fff;border:0;border-radius:24px;padding:13px;font-weight:700;font-size:15px}
.btn.gh{background:#fff;color:var(--pink);border:1.5px solid var(--pink)}
.btn.sm{width:auto;padding:9px 18px;font-size:13px}
.btn[disabled]{opacity:.6}
.chk{display:flex;align-items:flex-start;gap:9px;font-size:13.5px;line-height:1.4;margin:6px 0 2px;cursor:pointer}
.chk input{width:18px;height:18px;accent-color:var(--pink);flex:0 0 auto;margin-top:1px}
.msg{font-size:13px;border-radius:8px;padding:10px 12px;margin-bottom:12px;animation:pageIn .25s ease}
.msg.err{background:#fff0f3;color:#c3004f;border:1px solid #ffc9dc}
.msg.ok{background:#f1fbf4;color:#1a7f42;border:1px solid #c6ecd3}

/* ---------- login ---------- */
.auth{max-width:420px;margin:0 auto}
.atabs{display:flex;background:#f7f7f7;border-radius:24px;padding:4px;margin:8px 0 20px}
.atabs button{flex:1;border:0;background:transparent;padding:10px;border-radius:20px;font-weight:700;font-size:14px;color:var(--grey)}
.atabs button.on{background:var(--pink);color:#fff;box-shadow:0 4px 12px rgba(255,0,128,.25)}
.sep{display:flex;align-items:center;gap:10px;color:var(--grey);font-size:12px;margin:18px 0}
.sep:before,.sep:after{content:"";flex:1;height:1px;background:var(--line)}
.codein{letter-spacing:8px;text-align:center;font-size:20px;font-weight:700}

/* ---------- encomendas ---------- */
.ord{border:1px solid var(--line);border-radius:12px;padding:14px;margin-bottom:12px;background:#fff}
.ord .oh{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:10px}
.ord .oh b{font-size:14px}
.ord .oh small{color:var(--grey);font-size:12px;display:block;font-weight:400}
.st{font-size:11px;font-weight:700;padding:5px 11px;border-radius:14px;white-space:nowrap;background:var(--soft);color:var(--pink)}
.st.env{background:#eef5ff;color:#1b63d8}.st.ent{background:#f1fbf4;color:#1a7f42}.st.can{background:#f5f5f5;color:#888}
.oi{display:flex;gap:10px;align-items:center;padding:7px 0}
.oi img{width:46px;height:46px;border-radius:8px;object-fit:cover;border:1px solid var(--line)}
.oi p{font-size:13px;line-height:1.35}.oi small{color:var(--grey);font-size:12px;display:block}
.oi b{margin-left:auto;font-size:13px;white-space:nowrap}
.otot{display:flex;justify-content:space-between;border-top:1px solid var(--line);margin-top:10px;padding-top:10px;font-weight:700}
.trk{background:var(--soft);border:1px dashed #f6a8cf;border-radius:10px;padding:12px;margin-top:10px;text-align:center}
.trk small{display:block;color:var(--grey);font-size:11px}
.trk b{color:var(--pink);font-size:17px;letter-spacing:1px}
.tl{margin-top:12px}
.tl div{display:flex;gap:10px;align-items:center;font-size:12.5px;color:var(--grey);padding:3px 0}
.tl i{width:9px;height:9px;border-radius:50%;background:#e2e2e2;flex:0 0 auto}
.tl div.on i{background:var(--pink);animation:pulseRing 1.6s infinite}
.tl div.on{color:var(--ink);font-weight:600}

/* ---------- checkout ---------- */
.ck{padding:0 16px 40px}
.ck h1{font-size:26px;color:var(--pink);font-weight:700;margin:16px 0 4px}
.cksteps{display:flex;gap:6px;margin:14px 0 20px}
.cksteps div{flex:1;height:4px;border-radius:3px;background:var(--line);transition:background .4s}
.cksteps div.on{background:var(--pink)}
.ckres{border:1px solid var(--line);border-radius:12px;padding:14px;margin-bottom:16px;background:#fff}
.ckres .ln{display:flex;justify-content:space-between;font-size:14px;padding:3px 0}
.ckres .ln.tot{border-top:1px solid var(--line);margin-top:8px;padding-top:9px;font-weight:700;font-size:17px;color:var(--pink)}
.metodos{display:grid;gap:10px}
.metodos label{display:flex;align-items:center;gap:11px;border:1.5px solid var(--line);border-radius:10px;padding:13px;cursor:pointer;font-size:14px;font-weight:600;transition:border-color .2s,background .2s}
.metodos label.on{border-color:var(--pink);background:var(--soft)}
.metodos input{accent-color:var(--pink);width:18px;height:18px}
.metodos span{color:var(--grey);font-weight:400;font-size:12px;display:block}
.mbref{background:var(--soft);border-radius:12px;padding:16px;text-align:center;margin:14px 0}
.mbref div{display:flex;justify-content:space-between;font-size:14px;padding:4px 0}
.mbref b{color:var(--pink)}
.okmark{width:64px;height:64px;border-radius:50%;background:var(--pink);display:flex;align-items:center;justify-content:center;margin:10px auto 14px;animation:popIn .5s cubic-bezier(.22,.9,.3,1)}
.okmark svg{width:32px;height:32px;stroke:#fff;fill:none;stroke-width:3}
.addr{border:1.5px solid var(--line);border-radius:10px;padding:12px;font-size:13.5px;line-height:1.45;margin-bottom:10px;cursor:pointer;transition:border-color .2s,background .2s}
.addr.on{border-color:var(--pink);background:var(--soft)}
.addr b{display:block;margin-bottom:3px}
.addr .del{float:right;color:var(--grey);font-size:12px;text-decoration:underline}

/* ---------- pedido de pagamento no checkout ---------- */
.pgw{text-align:center;padding:26px 4px 40px;animation:pageIn .35s ease}
.pgw h1{font-size:26px;color:var(--pink);font-weight:700;margin:16px 0 8px}
.pgw .pgsub{font-size:14.5px;line-height:1.55;color:#555;max-width:380px;margin:0 auto 18px}
.pgw .btn{max-width:360px;margin-left:auto;margin-right:auto;display:block}
.pgw .mbref{max-width:360px;margin:0 auto 16px;text-align:left}
.pgw .pgnota{font-size:12px;color:var(--grey);margin-top:16px;line-height:1.5}
.pgstate{display:flex;align-items:center;justify-content:center;gap:9px;font-size:13.5px;color:var(--grey);
 background:var(--soft);border-radius:22px;padding:11px 16px;margin:0 auto 18px;max-width:360px}
.pgstate.mau{background:#fff0f3;color:#c3004f}
.tel{width:84px;height:84px;border-radius:50%;background:var(--soft);display:flex;align-items:center;justify-content:center;margin:0 auto;
 animation:pulseRing 1.8s infinite}
.tel svg{width:40px;height:40px;stroke:var(--pink);fill:none;stroke-width:1.7}

/* ---------- barra superior ---------- */
.hbusca, .hlink { display: none; }           /* só a partir do tablet */
header .hic svg { width: 24px; height: 24px; }
.pills a.hot { gap: 6px; }

/* busca do topo */
.hbusca { position: relative; align-items: center; gap: 10px; background: #fff; border: 1.5px solid var(--line); border-radius: 26px; padding: 0 18px; height: 46px; flex: 1; max-width: 640px; }
.hbusca:focus-within { border-color: #f6a8cf; box-shadow: 0 0 0 4px rgba(255, 0, 128, .07); }
.hbusca svg { width: 19px; height: 19px; stroke: var(--pink); fill: none; stroke-width: 2; flex: 0 0 auto; }
.hbusca input { flex: 1; border: 0; outline: none; font: 15px Montserrat, sans-serif; color: var(--ink); background: transparent; }
.hbusca input::placeholder { color: #9a9a9a; }
.hres { display: none; position: absolute; top: 54px; left: 0; right: 0; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 18px 44px rgba(0, 0, 0, .12); overflow: hidden; z-index: 40; max-height: 60vh; overflow-y: auto; }
.hres.on { display: block; animation: pageIn .18s ease }
.hres a { display: flex; gap: 12px; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.hres a:last-child { border-bottom: 0 }
.hres a:hover { background: var(--soft) }
.hres img { width: 42px; height: 42px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line) }
.hres p { flex: 1; font-size: 13.5px; line-height: 1.3 }
.hres b { color: var(--pink); font-size: 13.5px; white-space: nowrap }
.hres .nada { padding: 16px; color: var(--grey); font-size: 13.5px; text-align: center }

/* atalhos de rastreio e trocas */
.hlink { align-items: center; gap: 7px; font-size: 14.5px; font-weight: 500; color: var(--ink); white-space: nowrap }
.hlink svg { width: 22px; height: 22px; stroke: var(--ink); fill: none; stroke-width: 1.7 }
.hlink:hover { color: var(--pink) }
.hlink:hover svg { stroke: var(--pink) }
