.catalog-image[data-product-open]{display:block;width:100%;padding:0;border:0;cursor:pointer;color:inherit}
.commerce-cart-toggle{display:flex;align-items:center;gap:7px;border:1px solid var(--border);border-radius:999px;padding:9px 12px;background:rgba(255,255,255,.08);color:inherit;cursor:pointer;font:inherit;font-size:12px}
.commerce-dialog{background:#101012;color:var(--fg,#f5f5f7);border:1px solid var(--border);border-radius:24px;padding:32px;width:min(900px,calc(100% - 32px));max-height:calc(100dvh - 32px);overflow:auto;margin:auto;box-shadow:0 24px 100px #0008}
.commerce-dialog::backdrop{background:#000b;backdrop-filter:blur(8px)}
html:has(.commerce-dialog[open]){overflow:hidden}
.commerce-dialog h2{font-size:30px;letter-spacing:-.04em;margin:0 0 20px}
.commerce-dialog h3{font-size:18px;margin:0 0 20px}
.commerce-close{border:0;border-radius:50%;width:36px;height:36px;background:#ffffff0d;color:inherit;font-size:26px;cursor:pointer;flex-shrink:0}
.commerce-product>.commerce-close{display:block;margin:0 0 16px auto}
.commerce-heading{display:flex;justify-content:space-between;align-items:start;gap:16px;margin-bottom:24px}
.commerce-heading h2{margin:0}
.commerce-product-grid,.commerce-checkout-grid{display:grid;grid-template-columns:1fr 1fr;gap:32px}
.commerce-product-image{width:100%;aspect-ratio:1;object-fit:contain;border-radius:16px;background:#ffffff05}
.commerce-thumbnails{display:flex;gap:8px;margin-top:12px;flex-wrap:wrap}
.commerce-thumbnails button{width:64px;height:48px;border:1px solid var(--border);background:transparent;border-radius:8px;overflow:hidden;padding:2px;cursor:pointer}
.commerce-thumbnails img{width:100%;height:100%;object-fit:contain}
.commerce-field{display:grid;gap:10px;font-size:14px;margin:20px 0}
.commerce-field input{min-width:0;width:100%;padding:13px 14px;border:1px solid var(--border);border-radius:10px;background:#ffffff06;color:inherit;font:inherit}
.commerce-field input[type=number]{width:100px}
.commerce-variants{padding:0;border:0;margin:24px 0}
.commerce-variants legend{font-size:14px;margin-bottom:12px}
.commerce-variant{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px;border:1px solid var(--border);border-radius:12px;cursor:pointer;margin-bottom:8px;font-size:14px}
.commerce-variant:has(input:checked){border-color:#fff;background:#ffffff0b}
.commerce-variant input,.commerce-terms input{accent-color:#fff}
.commerce-variant strong{margin-left:auto}
.commerce-variant>span{flex:1}
.commerce-method-note{display:block;color:var(--fg-50);font-size:12px;margin-top:5px}
.commerce-muted{font-size:13px;line-height:1.7;color:var(--fg-50,#98989e)}
.commerce-product-total{font-size:28px;font-weight:600;margin:20px 0}
.commerce-actions{display:flex;gap:10px;flex-wrap:wrap}
.commerce-cart{position:fixed;inset:0 0 0 auto;height:100dvh;max-height:100dvh;width:min(460px,100%);margin:0;border-radius:24px 0 0 24px;display:none}
.commerce-cart[open]{display:flex;flex-direction:column}
.commerce-cart [data-cart-items]{overflow:auto;flex:1;min-height:0}
.commerce-cart-footer{margin-top:auto;padding-top:24px}
.commerce-cart-footer .btn,.commerce-checkout form>.btn{margin-top:10px}
.commerce-item{display:grid;grid-template-columns:64px 1fr;gap:14px;padding:20px 0;border-bottom:1px solid var(--border)}
.commerce-item img{width:64px;height:64px;object-fit:contain;border-radius:8px}
.commerce-item h3{font-size:15px;margin:0 0 6px}
.commerce-item p{font-size:13px;color:var(--fg-50);margin:0 0 10px}
.commerce-quantity{display:flex;align-items:center;gap:10px;margin-top:12px}
.commerce-quantity button{border:1px solid var(--border);background:#ffffff08;border-radius:8px;color:inherit;padding:6px 10px;cursor:pointer}
.commerce-quantity button:last-child{margin-left:auto;font-size:12px}
.commerce-total{display:flex;justify-content:space-between;align-items:center;gap:16px;padding-top:20px;font-size:18px}
.commerce-order{padding:24px;border:1px solid var(--border);border-radius:16px;background:#ffffff03}
.commerce-order .commerce-item{grid-template-columns:1fr}
.commerce-terms{display:flex;align-items:start;gap:10px;font-size:13px;margin:24px 0}
.commerce-terms a{text-decoration:underline}
.commerce-error{color:#ff9292;font-size:14px}
.commerce-dialog button:disabled{opacity:.45;cursor:not-allowed}
.commerce-dialog :focus-visible,.commerce-cart-toggle:focus-visible{outline:2px solid #fff;outline-offset:3px}
.commerce-notice{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);z-index:9999;padding:14px 24px;border:1px solid var(--border);border-radius:12px;background:#161618;color:#fff;max-width:calc(100% - 32px);font-size:14px}
@media(max-width:700px){.commerce-dialog{padding:20px}.commerce-product-grid,.commerce-checkout-grid{grid-template-columns:1fr;gap:20px}.commerce-product-image{aspect-ratio:16/9}.commerce-checkout-grid form{order:2}.commerce-cart-toggle{padding:8px}.commerce-cart{border-radius:0}.commerce-order{padding:16px}}
.commerce-balance{margin:12px 0;padding:14px;border:1px solid var(--border,rgba(255,255,255,.08));border-radius:14px;background:var(--fg-05,rgba(255,255,255,.04))}
.commerce-balance[hidden]{display:none!important}
.commerce-balance p{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin:0 0 10px;font-size:13px;color:var(--fg-50,rgba(245,245,247,.5))}
.commerce-balance strong{font-size:16px;color:var(--fg,#f5f5f7)}
.commerce-balance .btn:disabled{opacity:.45;cursor:not-allowed}

.commerce-approved{position:fixed;inset:0;z-index:10001;display:grid;place-items:center;padding:24px;background:rgba(0,0,0,.72);backdrop-filter:blur(6px);animation:approved-in .25s ease-out}
.commerce-approved[hidden]{display:none!important}
.commerce-approved-card{max-width:420px;width:100%;padding:36px 32px;text-align:center;border:1px solid var(--border,rgba(255,255,255,.1));border-radius:24px;background:var(--bg-2,#0a0a0a);box-shadow:0 40px 100px rgba(0,0,0,.6);animation:approved-card .32s cubic-bezier(.2,.9,.3,1)}
.commerce-approved-mark{width:64px;height:64px;margin:0 auto 20px;display:grid;place-items:center;border-radius:50%;background:rgba(52,199,89,.14);color:#34c759}
.commerce-approved-mark svg{width:32px;height:32px}
.commerce-approved-mark path{stroke-dasharray:26;stroke-dashoffset:26;animation:approved-check .4s .18s ease-out forwards}
.commerce-approved h2{margin:0 0 10px;font-size:24px;font-weight:600;letter-spacing:-.03em}
.commerce-approved p{margin:0 0 8px;font-size:14px;line-height:1.6;color:var(--fg-50,rgba(245,245,247,.5))}
.commerce-approved-total{font-size:28px;font-weight:600;letter-spacing:-.03em;color:var(--fg,#f5f5f7);margin:16px 0}
.commerce-approved-items{margin:0 0 20px;font-size:13px;color:var(--fg-70,rgba(245,245,247,.72))}
.commerce-approved .btn{width:100%}
@keyframes approved-in{from{opacity:0}to{opacity:1}}
@keyframes approved-card{from{opacity:0;transform:translateY(16px) scale(.96)}to{opacity:1;transform:none}}
@keyframes approved-check{to{stroke-dashoffset:0}}
@media(prefers-reduced-motion:reduce){.commerce-approved,.commerce-approved-card{animation:none}.commerce-approved-mark path{animation:none;stroke-dashoffset:0}}

/* finalização com a equipe: o resumo fica na tela para o print; um passo por vez */
.commerce-finish[data-step="choose"] [data-finish-step="send"],.commerce-finish[data-step="send"] [data-finish-step="choose"]{display:none}
.commerce-finish-summary{text-align:left;margin:16px 0;padding:14px 16px;border:1px solid rgba(255,255,255,.12);border-radius:12px}
.commerce-finish-summary ul{margin:0 0 10px;padding-left:18px}
.commerce-finish-summary p{margin:4px 0;display:flex;justify-content:space-between;gap:12px}
.commerce-finish-summary p[hidden]{display:none}
.commerce-finish-actions{display:flex;gap:10px;justify-content:center;flex-wrap:wrap;margin-top:12px}
.commerce-finish-code{display:flex;flex-direction:column;gap:4px;margin:14px 0 0}
.commerce-finish-code strong{font-size:1.6rem;letter-spacing:.12em;font-variant-numeric:tabular-nums}
.commerce-finish-code small{opacity:.7}
