/* 16/11: botão "adicionar ao carrinho" nos cards + painel do carrinho (ver carrinho.js) */
.prod-acoes{margin-top:auto;display:flex;gap:8px}
.prod-acoes .btn{flex:1;margin-top:0}
.add{flex:none;width:46px;height:46px;border:0;border-radius:50%;display:grid;place-items:center;cursor:pointer;color:var(--tinta);
  background:linear-gradient(160deg,var(--ouro-2),var(--ouro));box-shadow:4px 8px 12px -6px rgb(12 20 48/.45),inset 0 1px 0 rgb(255 255 255/.6);transition:scale .2s var(--sai),translate .2s var(--sai)}
.add:hover{translate:0 -2px}.add:active{scale:.92}
.add svg{width:21px;height:21px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.add .v{display:none}
.add.ok{background:var(--luz-marinho);color:#fff}.add.ok .c{display:none}.add.ok .v{display:block}
.add.carregando{opacity:.6;cursor:progress}
.acoes .add{width:56px;height:56px}.acoes .add svg{width:24px;height:24px}

.carrinho .cnt{font:inherit;min-width:1ch;text-align:center}
.carrinho.tem .cnt{display:inline-grid;place-items:center;min-width:24px;height:24px;padding:0 7px;border-radius:999px;background:var(--tinta);color:#fff;font-size:13px}
.carrinho.pula{animation:cx-pula .5s var(--sai)}
@keyframes cx-pula{30%{scale:1.12}}

.cx{border:0;padding:0;margin:0 0 0 auto;height:100%;max-height:none;width:min(440px,100vw);background:transparent;color:var(--tinta)}
.cx::backdrop{background:rgb(6 10 26/.5)}
.cx[open]{animation:cx-entra .38s var(--sai)}
@keyframes cx-entra{from{translate:40px 0;opacity:0}}
.cx-in{height:100%;display:flex;flex-direction:column;background:#eef0f3 url(linho-claro.jpg) 0 0/350px;background-blend-mode:multiply;box-shadow:-20px 0 50px -20px rgb(3 6 18/.6)}
.cx-topo{display:flex;align-items:center;justify-content:space-between;padding:24px 24px 6px}
.cx-topo h2{font-family:var(--font-display);font-size:24px;margin:0;letter-spacing:-.01em}
.cx-x{width:42px;height:42px;border:0;border-radius:50%;background:#fff;display:grid;place-items:center;cursor:pointer;box-shadow:var(--placa)}
.cx-x svg{width:18px;height:18px;stroke:var(--tinta);stroke-width:2;fill:none;stroke-linecap:round}
.cx-msg{min-height:20px;margin:0;padding:0 24px;font-size:13.5px;color:var(--cinza)}
.cx-lista{flex:1;overflow:auto;padding:8px 24px 16px;display:flex;flex-direction:column;gap:12px}
.cx-vazio{color:var(--cinza);margin:20px 0}
.cx-item{display:grid;grid-template-columns:64px 1fr auto;gap:12px;align-items:start;background:#fff;border-radius:16px;padding:12px;box-shadow:4px 8px 12px -8px rgb(12 20 48/.3)}
.cx-item img{width:64px;height:64px;object-fit:contain;border-radius:10px;background:#fff}
.cx-item a{font-size:14.5px;font-weight:500;line-height:1.3;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.cx-item small{display:block;color:var(--cinza);font-size:13px;margin-top:2px}
.cx-item>b{font-size:15px;white-space:nowrap}
.cx-qtd{display:flex;align-items:center;gap:6px;margin-top:8px}
.cx-qtd button{width:30px;height:30px;border:0;border-radius:50%;background:#e9ecf1;font-size:17px;cursor:pointer;color:var(--tinta)}
.cx-qtd button:disabled{opacity:.4;cursor:default}
.cx-qtd span{min-width:22px;text-align:center;font-weight:600}
.cx-qtd .cx-tira{width:auto;height:auto;background:none;font-size:13px;color:var(--cinza);text-decoration:underline;text-underline-offset:3px;margin-left:8px}
.cx-pe{padding:16px 24px 24px;border-top:1px solid rgb(12 20 48/.12);display:flex;flex-direction:column;gap:10px}
.cx-total{display:flex;justify-content:space-between;align-items:baseline;margin:0;font-size:16px}
.cx-total b{font-family:var(--font-display);font-size:26px;letter-spacing:-.02em}
.cx-pix{margin:-6px 0 4px;font-size:13px;color:var(--cinza)}
.cx-pe .bt{width:100%}.cx-pe .bt:disabled{opacity:.5;cursor:default}

.cx-op{margin:auto;height:auto;max-height:min(640px,90vh);width:min(420px,calc(100vw - 32px))}
.cx-op[open]{animation:cx-sobe .3s var(--sai)}
@keyframes cx-sobe{from{translate:0 16px;opacity:0}}
.cx-op .cx-in{border-radius:24px;max-height:inherit}
.cx-prod{margin:0;padding:0 24px 12px;color:var(--cinza);font-size:14.5px}
.cx-ops{overflow:auto;padding:0 24px 24px;display:flex;flex-direction:column;gap:8px}
.cx-ops button{display:flex;justify-content:space-between;align-items:center;gap:12px;border:0;border-radius:14px;background:#fff;padding:14px 16px;font:inherit;font-size:15px;color:var(--tinta);cursor:pointer;box-shadow:4px 8px 12px -8px rgb(12 20 48/.3);text-align:left}
.cx-ops button:hover{box-shadow:inset 0 0 0 1.5px var(--tinta),4px 8px 12px -8px rgb(12 20 48/.3)}

.cx-aviso{position:fixed;left:50%;bottom:24px;z-index:60;translate:-50% 20px;opacity:0;pointer-events:none;display:flex;align-items:center;gap:14px;max-width:calc(100vw - 110px);
  padding:10px 10px 10px 20px;border-radius:999px;background:var(--tinta);color:#fff;font-size:14.5px;box-shadow:0 14px 30px -10px rgb(3 6 18/.6);transition:opacity .25s,translate .3s var(--sai)}
.cx-aviso.on{opacity:1;translate:-50% 0;pointer-events:auto}
.cx-aviso span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cx-aviso button{flex:none;border:0;border-radius:999px;padding:8px 14px;background:linear-gradient(160deg,var(--ouro-2),var(--ouro));color:var(--tinta);font:inherit;font-weight:700;font-size:13.5px;cursor:pointer}
@media (max-width:640px){
  .add{width:42px;height:42px}.prod-acoes .btn{height:42px}
  .cx-aviso{left:16px;right:84px;translate:0 20px;max-width:none}.cx-aviso.on{translate:0 0}
  .carrinho.tem .cnt{min-width:20px;height:20px;font-size:12px;padding:0 5px}
}
@media (prefers-reduced-motion:reduce){.cx[open],.carrinho.pula{animation:none}}
