/* Carrinho local de seleção de peças, sem preços inventados. */
body { padding-bottom: 96px; }
.cart-bar { position: fixed; z-index: 10; right: 24px; bottom: 20px; left: 24px; display: flex; justify-content: center; pointer-events: none; }
.cart-bar-button { display: flex; align-items: center; gap: 12px; width: min(760px, 100%); padding: 12px 16px; background: #fffaf3; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 10px 28px rgba(40, 27, 29, .16); color: var(--ink); text-align: left; pointer-events: auto; }
.cart-bar-icon { display: grid; place-items: center; width: 34px; height: 34px; background: #f5e9eb; border-radius: 50%; font-size: 16px; }
.cart-bar-button span:nth-child(2) { flex: 1; min-width: 0; }
.cart-bar-button strong, .cart-bar-button small { display: block; }
.cart-bar-button strong { font-size: 12px; }
.cart-bar-button small { margin-top: 2px; color: var(--muted); font-size: 10px; }
.cart-bar-button b { display: grid; place-items: center; min-width: 28px; height: 28px; padding: 0 7px; background: var(--wine); border-radius: 50%; color: #fff; font-size: 11px; }
.cart-dialog { width: min(92vw, 560px); max-height: 82vh; padding: 26px; overflow: auto; background: #fbf8f3; border: 0; box-shadow: 0 20px 60px rgba(40, 27, 29, .28); }
.cart-dialog::backdrop { background: rgba(40, 27, 29, .58); }
.cart-dialog-head { display: flex; justify-content: space-between; gap: 16px; align-items: start; }
.cart-dialog h2 { margin: 0; font-family: "Playfair Display", serif; font-size: 2.2rem; font-weight: 500; line-height: 1; }
.cart-close { display: grid; place-items: center; width: 32px; height: 32px; padding: 0; background: transparent; border: 1px solid var(--line); border-radius: 50%; color: var(--ink); font-size: 22px; }
.cart-empty { margin: 28px 0 4px; color: var(--muted); font-size: 13px; text-align: center; }
.cart-items { display: grid; gap: 12px; margin-top: 24px; }
.cart-item { display: grid; grid-template-columns: 68px minmax(0, 1fr) auto; gap: 13px; align-items: center; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.cart-item img { width: 68px; height: 68px; object-fit: contain; background: #fff; }
.cart-item strong, .cart-item small { display: block; }
.cart-item strong { font-size: 12px; }
.cart-item small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.cart-item-controls { display: flex; align-items: center; gap: 7px; }
.cart-item-controls button, .cart-clear { background: transparent; border: 1px solid var(--line); color: var(--wine); font-size: 12px; font-weight: 700; }
.cart-item-controls button { width: 25px; height: 25px; padding: 0; }
.cart-item-controls span { min-width: 16px; text-align: center; font-size: 12px; font-weight: 700; }
.cart-item-controls .cart-remove { width: auto; margin-left: 4px; padding: 0 7px; color: var(--muted); font-size: 10px; }
.cart-item-subtotal { grid-column: 2 / -1; color: var(--wine); font-size: 12px; text-align: right; }
.cart-total { margin: 20px 0 0; color: var(--wine); font-family: "Playfair Display", serif; font-size: 25px; font-weight: 600; text-align: right; }
.cart-clear { display: block; margin: 24px auto 0; padding: 10px 14px; }
.product-detail-actions { margin-top: 34px; }
.quantity-picker { display: inline-flex; align-items: center; gap: 14px; padding: 6px; border: 1px solid var(--line); }
.quantity-picker button { display: grid; place-items: center; width: 30px; height: 30px; padding: 0; background: transparent; border: 0; color: var(--wine); font-size: 20px; }
.quantity-picker output { min-width: 18px; font-size: 13px; font-weight: 700; text-align: center; }
.add-to-cart { display: block; width: 100%; margin-top: 18px; padding: 15px 18px; background: var(--wine); border: 1px solid var(--wine); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .04em; }
.quick-cart-controls { display: inline-flex; align-items: center; gap: 9px; margin-top: 10px; padding: 4px 7px; border: 1px solid var(--line); }
.quick-cart-controls button { display: grid; place-items: center; width: 20px; height: 20px; padding: 0; background: transparent; border: 0; color: var(--wine); font-size: 17px; line-height: 1; }
.quick-cart-controls span { min-width: 13px; color: var(--ink); font-size: 11px; font-weight: 700; text-align: center; }
@media (max-width: 619px) { body { padding-bottom: 88px; } .cart-bar { right: 12px; bottom: 12px; left: 12px; } .cart-bar-button { padding: 10px 12px; } .cart-dialog { width: calc(100% - 24px); padding: 22px 16px; } }
