/* v83-bord.css — painel de bordado na sala. Tudo atras de body.b2 (so existe se window.MB_BORD2 !== false). */
body.b2 { --b2-ease: cubic-bezier(.65, 0, .25, 1); }

/* fluxo antigo (#addb) fica so no modal "Trago a minha peça" (c3svc) */
body.b2:not(.c3svc) #sala #addb { display: none !important; }
body.b2.c3svc #sala #b2btn, body.b2.c3svc #sala #b2sw, body.b2.c3svc #sala #b2p { display: none !important; }
body.b2 #sala:not(.exp) #b2sw, body.b2 #sala:not(.exp) #b2p, body.b2 #sala:not(.exp) #b2btn { display: none; }

/* botão do produto */
#b2btn { display: flex; align-items: center; gap: 14px; margin-top: 18px; }
#b2btn #b2go { flex: 1; min-height: 44px; display: flex; align-items: center; justify-content: center; text-align: center; cursor: pointer; font-weight: 600; }
#b2btn #b2go.ok { background: var(--grafite, #2f3238); color: #fff; }
#b2btn #b2go u { text-underline-offset: 3px; opacity: .85; }
#b2rm { font-size: 13.5px; color: var(--suave, #666); text-decoration: underline; cursor: pointer; white-space: nowrap; }
#b2rm[hidden] { display: none; }

/* switch segmentado Produto | Bordado: sempre visivel no topo da sala */
#b2sw { position: absolute; top: 37px; right: 148px; z-index: 6; display: inline-flex; padding: 4px; gap: 2px; border-radius: 999px; background: #ffffffc4; border: 1px solid #fff; box-shadow: 0 4px 14px #0002; }
#b2sw button { min-height: 36px; padding: 0 20px; border: 0; border-radius: 999px; background: transparent; font: 600 15px var(--fonte, inherit); color: var(--grafite, #2f3238); cursor: pointer; transition: background .25s, color .25s; }
#b2sw button.on { background: var(--grafite, #2f3238); color: #fff; }
#b2sw button:focus-visible { outline: 3px solid #f8b818; outline-offset: 1px; }

/* produto recua para a esquerda e some; o painel entra pela direita (~.5s, mesma easing da sala) */
body.b2.b2tr #sala.exp .foto, body.b2.b2tr #sala.exp .info, body.b2.b2tr #sala.exp #st { transition: transform .5s var(--b2-ease), opacity .5s var(--b2-ease) !important; }
body.b2.b2on #sala.exp .foto, body.b2.b2on #sala.exp .info, body.b2.b2on #sala.exp #st { transform: translateX(-9vw) !important; opacity: 0 !important; pointer-events: none !important; }
#b2p { position: absolute; inset: 22px 26px 22px 56px; z-index: 4; display: grid; grid-template-columns: clamp(170px, 14vw, 250px) minmax(0, 1fr) clamp(340px, 27vw, 460px); gap: 28px; opacity: 0; transform: translateX(9vw); pointer-events: none; transition: opacity .5s var(--b2-ease), transform .5s var(--b2-ease); }
body.b2.b2on #b2p { opacity: 1; transform: none; pointer-events: auto; }
#b2p[aria-hidden="true"] * { visibility: hidden; }
body.b2.b2tr #b2p[aria-hidden="true"] * { visibility: visible; }

/* cartão-miniatura do produto (foto + nome + preço): clicável, volta ao produto */
#b2mini { display: flex; flex-direction: column; gap: 6px; align-self: start; margin-top: 32px; cursor: pointer; color: var(--grafite, #2f3238); min-height: 0; }
#b2mini .b2m-im { display: block; border-radius: 16px; overflow: hidden; aspect-ratio: 9/16; max-height: calc(100vh - 290px); box-shadow: 0 10px 28px #0003; border: 3px solid #fff; background: #fff; }
#b2mini img { width: 100%; height: 100%; object-fit: cover; display: block; }
#b2mini b { font-size: 15px; line-height: 1.2; margin-top: 6px; }
#b2mini .b2m-pr { font-weight: 700; color: var(--precoCor, #2b6f6a); }
#b2mini small { color: var(--suave, #666); font-size: 12.5px; }
#b2mini:hover .b2m-im { outline: 3px solid var(--grafite, #2f3238); outline-offset: 2px; }
#b2mini.pick, #b2mini.pick * { cursor: crosshair; }
#b2mini.pick .b2m-im { outline: 3px dashed #f8b818; outline-offset: 3px; }

/* cartão de tecido */
#b2card { display: flex; flex-direction: column; justify-content: center; align-items: stretch; min-width: 0; min-height: 0; }
#b2card .b2-cap { font: 700 13px var(--fonte, inherit); letter-spacing: .12em; text-transform: uppercase; color: var(--suave, #666); margin-bottom: 12px; text-align: center; white-space: nowrap; align-self: center; }
#b2card .bp { order: 1; }
#b2-aplab { order: 2; align-self: center; margin-top: 12px; font: 600 13px var(--fonte, inherit); color: var(--suave, #666); }
#b2card .bp { display: grid; place-items: center; min-height: 0; }
#b2card .peca { --t1: color-mix(in srgb, var(--b2-tec, #fbfcfd) 93%, #fff); --t2: color-mix(in srgb, var(--b2-tec, #dfe5ea) 84%, #000); width: 100% !important; max-width: 760px; }

/* coluna de campos: logo MB no topo, textos embaixo */
#b2f { display: flex; flex-direction: column; gap: 10px; margin-top: 66px; padding: 0 8px 12px 12px; overflow: auto; min-height: 0; }
#b2f::before { content: ""; display: block; flex: none; height: 84px; margin: 0 0 4px -6px; background: url(marca/logo-mb.svg) left center/contain no-repeat; opacity: .95; }
#b2f .k { font-size: 13px; letter-spacing: .12em; }
#b2f h3 { font-size: clamp(22px, 1.9vw, 30px); line-height: 1.12; margin: 0 0 4px; font-weight: 800; }
#b2f input { min-height: 44px; border-radius: 14px; border: 1px solid #fff; background: #ffffffb8; padding: 0 14px; font: 500 16px var(--fonte, inherit); color: var(--grafite, #2f3238); outline: none; }
#b2f input:focus { border-color: var(--grafite, #2f3238); background: #fff; }
#b2f small { font-size: 12.5px; color: var(--suave, #666); }
.b2-l { display: flex; flex-direction: column; gap: 7px; font-size: 13.5px; font-weight: 600; }
.b2-l em { font-style: normal; font-weight: 500; color: var(--suave, #666); margin-left: 6px; }
.b2-dots-row { display: flex; align-items: center; gap: 12px; }
.b2-dots { display: flex; gap: 9px; }
.b2-dots a { width: 34px; height: 34px; border-radius: 50%; border: 2px solid #ffffffd9; box-shadow: 0 2px 6px #0003; cursor: pointer; background: var(--c) !important; }
.b2-dots a.on { outline: 3px solid #2f3238; outline-offset: 2px; }
#b2-eye { width: 38px; height: 38px; border-radius: 50%; border: 1px solid #fff; background: #ffffffc4; color: var(--grafite, #2f3238); display: grid; place-items: center; cursor: pointer; box-shadow: 0 2px 6px #0002; }
#b2-eye:hover { background: #fff; }
.b2-tot { font-size: 15px; margin-top: 2px; } .b2-tot b { font-size: 20px; color: var(--precoCor, #2b6f6a); }
#b2-ok { align-self: flex-start; margin-top: 6px; }

@media (max-width: 860px) { body.b2 #sala #b2sw, body.b2 #sala #b2p, body.b2 #sala #b2btn { display: none !important; } body.b2:not(.c3svc) #sala #addb { display: flex !important; } }
@media (prefers-reduced-motion: reduce) { #b2p, body.b2.b2tr #sala.exp .foto, body.b2.b2tr #sala.exp .info { transition-duration: .01s !important; } }
#b2card .ponto { padding: 0 .3em .12em 0; }

/* aplicação / emblema */
#b2f select { appearance: none; -webkit-appearance: none; min-height: 44px; border-radius: 14px; border: 1px solid #fff; background: #ffffffb8 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='m1 1 6 6 6-6' fill='none' stroke='%232f3238' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right 14px center/14px no-repeat; padding: 0 38px 0 14px; font: 500 16px var(--fonte, inherit); color: var(--grafite, #2f3238); outline: none; cursor: pointer; width: 100%; backdrop-filter: blur(6px); }
#b2f select:focus { border-color: var(--grafite, #2f3238); background-color: #fff; }
#b2f select option, #b2f select optgroup { background: #fff; color: #2f3238; font-weight: 500; }
#b2f select optgroup { font-weight: 700; }
#b2-emgo { align-self: flex-start; font-weight: 600; font-size: 14.5px; color: var(--grafite, #2f3238); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
#b2-emgo[hidden], #b2-em[hidden], #b2-eprop[hidden], #b2-epos[hidden], #b2-enota[hidden] { display: none; }
#b2-em { display: flex; flex-direction: column; gap: 10px; padding: 12px; border-radius: 16px; background: #ffffff6e; border: 1px solid #fff; }
.b2-emh { display: flex; justify-content: space-between; align-items: center; }
#b2-emrm { font-size: 13px; color: var(--suave, #666); text-decoration: underline; cursor: pointer; }
#b2-epos { color: #8a5a00; font-weight: 600; }
#b2-eprop { padding: 10px 12px; border-radius: 12px; background: #fff3cd; border: 2px solid #f8b818; color: #5c3b00; font-size: 14px; font-weight: 700; line-height: 1.35; }
.b2-seal { color: #8a5a00; font-weight: 700; }
