/* QR-DOG · checkout e página do pedido */
.qd-shop .app { max-width: 1240px; margin: 0 auto }
.shop-top { display: flex; align-items: center; gap: 14px }
.shop-lock { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--mute) }
.shop-lock svg { width: 15px; height: 15px; color: var(--limeTxt,var(--lime2)) }
.shop { position: relative; z-index: 2; padding: 26px 4px 10px }
.shop-head { margin-bottom: 22px }
.shop-head .h-xl { font-size: clamp(34px, 4.6vw, 54px); margin: 10px 0 8px }
.shop-head p { color: var(--mute); margin: 0; max-width: 620px }
.shop-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; align-items: start }
.shop-steps { display: grid; gap: 20px; min-width: 0 }
.shop-card { background: var(--glass); backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px); border: 1px solid var(--glassEdge); border-radius: 24px; padding: 24px; box-shadow: 0 14px 42px -24px #141a2e55 }
.shop-card h2 { font: 600 19px var(--head); margin: 0 0 16px; display: flex; align-items: center; gap: 10px }
.shop-card h2 i { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--lime); color: var(--limeInk); font: 700 13px var(--sans); font-style: normal }
.shop-card.sticky { position: sticky; top: 16px }
.shop-colors { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px }
.shop-color { border: 1.5px solid var(--line2); border-radius: 20px; padding: 14px 10px 12px; display: grid; justify-items: center; gap: 8px; background: var(--card2); transition: border-color .2s, transform .2s }
.shop-color.on { border-color: var(--lime2); box-shadow: 0 0 0 3px #b8d33530 }
.shop-color img { width: 76px; height: 76px; object-fit: contain; filter: drop-shadow(0 8px 14px rgba(0, 0, 0, .18)) }
.shop-color b { font-size: 14px }
.qty { display: flex; align-items: center; gap: 4px; background: var(--chip); border-radius: 999px; padding: 3px }
.qty button { width: 30px; height: 30px; border-radius: 50%; border: 0; background: var(--card2); color: var(--ink); font-size: 17px; cursor: pointer }
.qty button:hover { background: var(--lime); color: var(--limeInk) }
.qty output { min-width: 22px; text-align: center; font-weight: 700 }
.shop-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px }
.shop-fields label { display: grid; gap: 6px; font-size: 13px; color: var(--mute) }
.shop-fields .full { grid-column: 1/-1 }
.shop-fields .span2 { grid-column: span 2 }
.shop-fields input { width: 100%; border: 1px solid var(--line2); border-radius: 12px; padding: 12px; background: var(--card2); color: var(--ink); font-size: 15px; min-width: 0 }
.shop-fields input:focus { outline: 2px solid var(--lime2); outline-offset: 1px }
.shop-note { font-size: 12.5px; color: var(--mute); margin: 12px 0 0; line-height: 1.5 }
.shop-note a { color: var(--ink); text-decoration: underline }
.sum-items { display: grid; gap: 2px }
.sum-row { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px }
.sum-row span { color: var(--mute) }
.sum-row.item { align-items: center }
.sum-row.item img { width: 36px; height: 36px; object-fit: contain }
.sum-row.item span { flex: 1; color: var(--ink) }
.sum-row .addr { text-align: right; font-weight: 500; max-width: 200px }
.sum-total { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 0 6px; font-size: 15px }
.sum-total b { font: 600 28px var(--head) }
.pay-methods { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 14px }
.pay-methods span { display: inline-flex; align-items: center; gap: 6px; padding: 7px 11px; border-radius: 999px; background: var(--chip); border: 1px solid var(--line2); font-size: 12.5px; font-weight: 600 }
.pay-methods svg { width: 15px; height: 15px; color: var(--limeTxt,var(--lime2)) }
.pay-methods small { font-weight: 400; color: var(--mute) }
.shop-go { display: flex !important; justify-content: center; align-items: center; gap: 8px; padding: 15px; font-size: 16px; width: 100% }
.shop-go svg { width: 18px; height: 18px }
.shop-go:disabled { opacity: .55; cursor: not-allowed }
.btn-block { width: 100%; justify-content: center; margin-top: 10px }
.shop-off { display: grid; gap: 6px; justify-items: start; padding: 20px; border-radius: 20px; border: 1px dashed var(--coral); margin-bottom: 20px }
.shop-off[hidden] { display: none }
.shop-empty { max-width: 560px }
.track { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 0; padding: 0; counter-reset: s }
.track li { display: grid; justify-items: center; gap: 8px; text-align: center; font-size: 12.5px; color: var(--mute); position: relative }
.track li::before { content: ""; position: absolute; top: 17px; left: -50%; width: 100%; height: 2px; background: var(--line2); z-index: 0 }
.track li:first-child::before { display: none }
.track li.done::before, .track li.now::before { background: var(--lime2) }
.track i { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--chip); border: 2px solid var(--line2); font-style: normal; font-weight: 700; color: var(--ink); position: relative; z-index: 1 }
.track li.done i, .track li.now i { background: var(--lime); border-color: var(--lime); color: var(--limeInk) }
.track li.now span { color: var(--ink); font-weight: 700 }
.track-code { margin: 16px 0 0; font-size: 14px }
.hist { list-style: none; margin: 0; padding: 0 0 0 16px; border-left: 2px solid var(--line2); display: grid; gap: 14px }
.hist li { position: relative }
.hist li::before { content: ""; position: absolute; left: -22px; top: 5px; width: 10px; height: 10px; border-radius: 50%; background: var(--lime2) }
.hist b { display: block; font-weight: 600; font-size: 14px }
.hist small { color: var(--mute); font-size: 12px }
.st { display: inline-block; padding: 6px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 700; background: var(--chip) }
.st-approved, .st-delivered { background: #3e9a5c22; color: #2f8a4e }
.st-shipped { background: #2f6fd622; color: #2f6fd6 }
.st-pending, .st-in_process { background: #e0a31a26; color: #a76f00 }
.st-cancelled, .st-refunded, .st-rejected, .st-expired { background: #d74d631f; color: #c23d55 }
html[data-qd-theme=dark] .st-approved, html[data-qd-theme=dark] .st-delivered { color: #6fd795 }
html[data-qd-theme=dark] .st-shipped { color: #7fb0ff }
html[data-qd-theme=dark] .st-pending, html[data-qd-theme=dark] .st-in_process { color: #ffc95a }
html[data-qd-theme=dark] .st-cancelled, html[data-qd-theme=dark] .st-refunded, html[data-qd-theme=dark] .st-rejected, html[data-qd-theme=dark] .st-expired { color: #ff8fa3 }
@media (max-width: 960px) {
	.shop-grid { grid-template-columns: minmax(0, 1fr) }
	.shop-card.sticky { position: static }
	.shop-colors { grid-template-columns: repeat(2, minmax(0, 1fr)) }
	.shop-lock { display: none }
}
@media (max-width: 560px) {
	.shop-fields { grid-template-columns: 1fr 1fr }
	.shop-fields .span2, .shop-fields label:first-child { grid-column: 1/-1 }
	.shop-card { padding: 18px }
	.track span { font-size: 11px }
}
.sum-disc b { color: #2f8a4e }
html[data-qd-theme=dark] .sum-disc b { color: #6fd795 }
.sum-promo { margin: 12px 0 4px; font-size: 13.5px }
.sum-promo summary { cursor: pointer; color: var(--ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px }
.sum-promo-in { display: flex; gap: 6px; margin-top: 8px }
.sum-promo-in input { flex: 1; min-width: 0; border: 1px solid var(--line2); border-radius: 12px; padding: 10px 12px; background: var(--card2); color: var(--ink); text-transform: uppercase; font-weight: 700; letter-spacing: 1px }
#promo-msg { display: block; margin-top: 6px; font-size: 12.5px }
#promo-msg.ok { color: #2f8a4e } #promo-msg.bad { color: var(--coral) }
.sum-hint { margin: 10px 0 0; padding: 10px 12px; border-radius: 12px; background: #b8d33526; font-size: 13px; color: var(--ink) }
.sum-hint[hidden] { display: none }
.shop-camp { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 14px 18px; margin-bottom: 18px; border-radius: 18px; background: linear-gradient(110deg, #141a2e, #24325a); color: #fff }
.shop-camp[hidden] { display: none }
.shop-camp b { font: 600 18px var(--head) } .shop-camp span { color: #c6cde0; font-size: 14px }
.shop-camp em { margin-left: auto; font-style: normal; font-size: 12px; font-weight: 700; padding: 5px 11px; border-radius: 999px; background: var(--lime); color: var(--limeInk) }
.shop-grid[hidden] { display: none }
.shop-pix { padding: 24px; border-radius: 22px; background: var(--card2); border: 1px solid var(--line); margin-bottom: 20px }
.shop-pix[hidden] { display: none }
.shop-pix h2 { font-family: var(--head); font-size: 24px; margin: 0 }
.shop-pix-v { margin: 6px 0 18px; color: var(--mute); font-size: 14.5px }
.shop-pix-v b { color: var(--ink); font-size: 18px }
.shop-pix-g { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 24px; align-items: start }
.shop-pix-qr { background: #fff; padding: 14px; border-radius: 18px; border: 1px solid var(--line) }
.shop-pix-qr svg { width: 100%; height: auto; display: block }
.shop-pix-d { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; min-width: 0 }
.shop-pix-d ol { margin: 0; padding-left: 20px; display: grid; gap: 6px; font-size: 14.5px; line-height: 1.45 }
.shop-pix-f { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; font-size: 13px; color: var(--mute) }
.shop-pix-f select, .shop-pix-f textarea { box-sizing: border-box; width: 100%; padding: 11px 12px; border-radius: 12px; border: 1px solid var(--line2); background: var(--card); color: var(--ink); font: 13px/1.4 var(--sans); resize: none; word-break: break-all }
.shop-pix-b { display: flex; gap: 10px; flex-wrap: wrap }
.shop-pix-wa { justify-self: start; max-width: 100%; box-sizing: border-box; white-space: normal; text-align: center; height: auto; min-height: 48px }
@media (max-width: 720px) { .shop-pix-g { grid-template-columns: minmax(0, 1fr) } .shop-pix-qr { max-width: 240px; justify-self: center } }
.shop-metodos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 12px 0 14px }
.shop-metodos > div { display: flex; align-items: center; gap: 10px; min-height: 62px; padding: 10px 12px; border-radius: 16px; border: 1px dashed var(--line2); color: var(--mute) }
.shop-metodos > div.on { border: 2px solid var(--lime2); background: rgba(184, 211, 53, .16); color: var(--ink) }
.shop-metodos svg { width: 20px; height: 20px; flex: none }
.shop-metodos b { display: block; font-size: 14px; line-height: 1.2 }
.shop-metodos small { display: block; font-size: 12px; line-height: 1.2; color: var(--mute) }
@media (max-width: 620px) { .shop-metodos { grid-template-columns: 1fr } .shop-metodos > div { min-height: 54px } }

/* Compra por Pix em 3 passos (quando o Mercado Pago não está ligado) */
.px-step { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; padding: 20px 0; border-top: 1px dashed var(--line2) }
.px-n { width: 40px; height: 40px; border-radius: 14px; background: var(--lime); color: #1b2745; display: grid; place-items: center; font: 800 18px var(--head) }
.px-b h3 { margin: 6px 0 14px; font: 600 20px var(--head) }
.px-cores { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px }
.px-cores label { position: relative; cursor: pointer }
.px-cores input { position: absolute; opacity: 0; inset: 0 }
.px-cores span { display: grid; justify-items: center; gap: 6px; padding: 12px 6px 10px; border-radius: 18px; border: 1.5px solid var(--line2); background: var(--card); transition: transform .2s, border-color .2s, box-shadow .2s }
.px-cores img { width: 64px; height: 64px; object-fit: contain; transition: transform .3s cubic-bezier(.2, .9, .3, 1.4) }
.px-cores b { font-size: 13.5px }
.px-cores label:hover span { transform: translateY(-2px) }
.px-cores input:checked + span { border-color: var(--lime2, #9fbb1f); box-shadow: 0 0 0 3px rgba(184, 211, 53, .3) }
.px-cores input:checked + span img { transform: scale(1.12) rotate(-6deg) }
.px-cores input:focus-visible + span { outline: 3px solid var(--lime2, #9fbb1f); outline-offset: 2px }
.px-qtd { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 16px; font-size: 14.5px; color: var(--mute) }
.px-qtd[hidden] { display: none }
.px-stepper { display: flex; align-items: center; gap: 4px; padding: 4px; border-radius: 99px; border: 1px solid var(--line2); background: var(--card) }
.px-stepper button { width: 40px; height: 40px; border-radius: 50%; border: 0; background: transparent; color: var(--ink); font-size: 22px; font-weight: 700; cursor: pointer }
.px-stepper button:hover:not(:disabled) { background: var(--lime); color: #1b2745 }
.px-stepper button:disabled { opacity: .3; cursor: default }
.px-stepper output { min-width: 28px; text-align: center; font: 700 18px var(--head); color: var(--ink) }
.px-total { margin-left: auto; font: 800 26px var(--head); color: var(--ink) }
.px-info { margin: 0; font-size: 14.5px; line-height: 1.5 }
#px-qr img, #px-qr canvas { width: 100% !important; height: auto !important; display: block }
.px-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px }
.px-form label { display: grid; gap: 6px; font-size: 13px; font-weight: 600; color: var(--mute) }
.px-form input { box-sizing: border-box; width: 100%; height: 48px; padding: 0 14px; border-radius: 14px; border: 1px solid var(--line2); background: var(--card); color: var(--ink); font: 500 15px var(--sans, inherit) }
.px-form input:focus { outline: none; border-color: var(--lime2, #9fbb1f); box-shadow: 0 0 0 4px rgba(184, 211, 53, .25) }
.px-form input.px-erro { border-color: var(--coral, #d74d63); box-shadow: 0 0 0 4px rgba(215, 77, 99, .14) }
.px-w2 { grid-column: 1 / -1 }
.px-msg { grid-column: 1 / -1; margin: 0; min-height: 18px; color: var(--coral, #d74d63); font-size: 13.5px; font-weight: 600 }
.px-go { height: auto; min-height: 54px; white-space: normal; justify-content: center; gap: 10px; font-size: 15.5px }
.px-go svg { width: 20px; height: 20px; flex: none }
.px-nota { margin: 0; font-size: 13px; color: var(--mute); text-align: center }
.px-cartao { margin: 8px 0 0; padding-top: 16px; border-top: 1px dashed var(--line2); font-size: 13.5px; color: var(--mute); text-align: center }
@media (max-width: 560px) { .px-step { grid-template-columns: 1fr; gap: 6px } .px-n { width: 34px; height: 34px; border-radius: 12px; font-size: 16px } .px-cores { gap: 8px } .px-cores img { width: 52px; height: 52px } .px-total { font-size: 22px } }
@media (prefers-reduced-motion: reduce) { .px-cores span, .px-cores img { transition: none } }

/* Como funciona a entrega (página do pedido) */
.ent-passos { margin: 6px 0 0; padding-left: 20px; display: grid; gap: 8px; font-size: 14.5px; line-height: 1.5; color: var(--ink) }
.ent-passos li::marker { color: var(--limeTxt, var(--lime2)); font-weight: 700 }
.ship-note { margin: 12px 0 0; font-size: 13.5px; color: var(--mute); line-height: 1.45 }
