/* Loja TOC — carrinho, entrega e checkout. */
:root { --demo-bar-h: 0px; }
select, textarea { font: inherit; }
:where(select, textarea):focus-visible { outline: 3px solid #b35a00; outline-offset: 3px; }
button:disabled { cursor: not-allowed; opacity: .55; transform: none !important; }
.demo-bar { min-height: var(--demo-bar-h); padding: 7px 20px; display: flex; justify-content: center; align-items: center; gap: 12px; background: #fff0d8; color: #6e3d03; font-size: 11px; line-height: 1.5; text-align: center; }
.demo-bar strong { font-size: 10px; letter-spacing: .08em; }
.campaign-hero { height: auto; }
.header-motto { display: none; }
.header-orders { font-size: 11px; font-weight: 600; margin-right: 8px; }
.cart-trigger { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 13px; border: 1px solid #d8d2c8; border-radius: 30px; background: #fff; font-size: 12px; font-weight: 700; white-space: nowrap; }
.cart-count { display: grid; place-items: center; background: #ef8700; color: #111; min-width: 21px; height: 21px; padding: 0 5px; border-radius: 20px; font-size: 11px; }
.commerce-alert { color: #6c3b00; background: #fff0d8; border-radius: 7px; margin-block: 12px; padding: 12px 16px; font-size: 13px; }
.commerce-alert:empty, .checkout-status:empty { display: none; }
.commerce-page { padding-top: 30px; padding-bottom: 72px; min-height: 60vh; }
.commerce-page h1 { font: 600 clamp(29px, 4vw, 45px)/1.15 Inter, system-ui, sans-serif; margin: 12px 0 28px; letter-spacing: -.04em; }
.commerce-page h2 { font-size: 19px; line-height: 1.45; margin: 0 0 20px; }
.commerce-page h3 { font-size: 14px; margin: 0 0 6px; }
.commerce-title { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.cart-layout { display: grid; grid-template-columns: minmax(0,1.65fr) minmax(320px,1fr); gap: 28px; align-items: start; }
.panel { background: #fff; border: 1px solid #ddd8ce; border-radius: 14px; padding: clamp(18px, 2.2vw, 30px); margin-bottom: 22px; min-width: 0; }
.order-summary { position: sticky; top: calc(var(--header-h) + 20px); }
.muted { color: #696258; font-size: 12px; }
.demo-note { font-size: 12px; color: #705435; background: #fff6e9; padding: 12px 14px; border-radius: 6px; line-height: 1.65; margin: 16px 0; }
.commerce-page .btn, .cart-drawer .btn, .purchase-form .btn, .cep-form .btn { text-transform: none; letter-spacing: 0; font-size: 14px; border-radius: 7px; min-height: 48px; }
.btn.secondary { background: #fff; color: #30281e; border-color: #bdb3a6; }
.btn.secondary:hover { background: #f4f1eb; }
.text-action { display: inline-flex; align-items: center; min-height: 36px; border: 0; padding: 3px 0; color: #8b4700; background: none; text-decoration: underline; text-underline-offset: 3px; font-size: 12px; }
.cart-line { display: grid; grid-template-columns: 80px minmax(0,1fr) auto; gap: 16px; border-bottom: 1px solid #ece7df; padding: 18px 0; align-items: start; }
.cart-line:first-child { padding-top: 0; }
.cart-line img { width: 80px; height: 100px; object-fit: contain; border-radius: 7px; background: #f3f0eb; border: 1px solid #e8e2d8; }
.cart-line-title { font-size: 13px; font-weight: 650; line-height: 1.6; display: block; }
.cart-line-info { min-width: 0; }
.cart-line-info p { margin: 4px 0; }
.cart-line-end { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; font-size: 14px; white-space: nowrap; }
.quantity-control { display: inline-flex; border: 1px solid #cfc6b8; border-radius: 6px; margin-top: 8px; overflow: hidden; }
.quantity-button { border: 0; width: 36px; height: 38px; background: #f8f6f2; font-size: 19px; }
.quantity-control input { border: 0; width: 46px; padding: 4px; text-align: center; -moz-appearance: textfield; appearance: textfield; }
.quantity-control input::-webkit-inner-spin-button, .quantity-control input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.summary-row { display: flex; justify-content: space-between; align-items: baseline; gap: 18px; margin: 14px 0; font-size: 13px; }
.summary-row > strong { text-align: right; }
.summary-total { border-top: 1px solid #e4ded3; padding-top: 20px; margin-top: 20px; font-size: 19px; }
.saving { color: #17614b; }
.shipping-progress-copy { color: #6d5436; font-size: 12px; margin: 12px 0 9px; }
progress { width: 100%; height: 7px; border: 0; border-radius: 20px; background: #ece6dc; overflow: hidden; accent-color: #b66913; }
progress::-webkit-progress-bar { background: #ece6dc; }
progress::-webkit-progress-value { background: #b66913; }
progress::-moz-progress-bar { background: #b66913; }
.field-with-button { display: flex; gap: 9px; align-items: stretch; margin: 7px 0; }
.field-with-button input { min-width: 0; width: 100%; }
.field-with-button .btn { padding: 10px 16px; flex-shrink: 0; }
.field label, .cep-form > label, .coupon-form > label, .purchase-quantity label { display: block; font-size: 12px; font-weight: 650; margin-bottom: 7px; }
.field input, .field select, .cep-form input, .coupon-form input, .purchase-quantity input { width: 100%; min-height: 46px; padding: 11px 13px; border: 1px solid #bfb7aa; border-radius: 6px; background: #fff; color: #111; font-size: 14px; }
.field input:focus, .field select:focus, .cep-form input:focus, .coupon-form input:focus { border-color: #9e5b14; }
.coupon-form { margin-top: 22px; }
.delivery-option, .payment-option { display: flex; align-items: center; gap: 12px; border: 1px solid #d6cec2; border-radius: 8px; padding: 15px; margin: 10px 0; cursor: pointer; line-height: 1.6; font-size: 13px; }
.delivery-option:has(input:checked), .payment-option:has(input:checked) { border-color: #b16716; box-shadow: inset 0 0 0 1px #b16716; background: #fffaf2; }
.delivery-option input, .payment-option input, .demo-consent input { accent-color: #a85a08; width: 17px; height: 17px; flex-shrink: 0; }
.delivery-option > span, .payment-option > span { flex: 1; min-width: 0; }
.delivery-option small, .payment-option small { display: block; color: #716454; font-size: 11px; font-weight: 400; }
.delivery-option > strong { flex-shrink: 0; font-size: 12px; }
.payment-option .payment-tag { flex: 0; background: #e6f3e9; color: #205e35; padding: 3px 7px; border-radius: 4px; white-space: nowrap; font-size: 12px; font-weight: 700; }
.payment-heading { margin-top: 30px !important; }
.empty-cart { padding: 44px 24px; text-align: center; }
.empty-cart h2 { max-width: 520px; margin: 12px auto; }
.empty-cart p { color: #776e62; font-size: 14px; }
.empty-bag { display: block; font-size: 56px; color: #a46521; }
.cart-drawer { width: min(540px,100vw); max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0 0 0 auto; padding: 0; border: 0; background: #fff; color: #171410; box-shadow: -20px 0 60px #0003; }
.cart-drawer::backdrop { background: #0008; }
.drawer-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 24px; border-bottom: 1px solid #e9e1d4; position: sticky; top: 0; background: #fff; z-index: 1; }
.drawer-header h2 { margin: 6px 0 0; font-size: 23px; }
.drawer-body { padding: 24px; }
.drawer-body > [data-cart-filled] > .btn { margin-top: 12px; }
.cart-drawer .summary-total { font-size: 20px; }
.catalog-price { margin-top: 10px; }
.catalog-price strong { display: block; font-size: 18px; }
.catalog-price small { color: #256548; font-size: 12px; }
.pix-price { color: #226248; }
.purchase-form { margin: 24px 0; }
.purchase-form fieldset { margin: 0; padding: 0; border: 0; }
.purchase-form legend { font-size: 14px; font-weight: 700; margin-bottom: 12px; }
.size-options { display: flex; flex-wrap: wrap; gap: 10px; }
.size-option { position: relative; cursor: pointer; }
.size-option input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.size-option span { display: grid; place-items: center; min-width: 53px; min-height: 44px; border: 1px solid #c5bdb0; border-radius: 5px; padding: 8px 15px; font-size: 13px; }
.size-option input:checked + span { background: #171510; color: #fff; border-color: #171510; }
.size-option input:focus-visible + span { outline: 3px solid #b35a00; outline-offset: 4px; }
.size-option input:disabled + span { opacity: .45; text-decoration: line-through; }
.purchase-quantity { margin: 18px 0; max-width: 120px; }
.purchase-actions { display: grid; gap: 10px; }
.product-share-actions { display: flex; flex-wrap: wrap; gap: 16px; border-top: 1px solid #e7e1d7; padding-top: 8px; }
.product-share-actions .pdp-text-button { min-height: 36px; font-size: 11px; }
.pdp-delivery .cep-form { margin-top: 12px; }
.checkout-steps { list-style: none; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; padding: 0; margin: 8px 0 30px; max-width: 780px; }
.checkout-steps li { display: flex; align-items: center; gap: 9px; padding: 12px 0; border-bottom: 2px solid #d4cbbc; color: #756c60; font-size: 12px; }
.checkout-steps li > span { width: 26px; height: 26px; flex-shrink: 0; background: #dfd9cf; color: #423b31; border-radius: 100%; display: grid; place-items: center; font-size: 12px; font-weight: 750; }
.checkout-steps li[aria-current=step] { border-color: #ad650f; color: #16130e; font-weight: 650; }
.checkout-steps li[aria-current=step] > span { background: #1b1710; color: #fff; }
.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
.field { min-width: 0; }
.field.wide { grid-column: 1 / -1; }
.next-step { margin-top: 28px; }
.checkout-actions { display: flex; align-items: stretch; justify-content: space-between; gap: 12px; margin-top: 26px; }
.checkout-actions > .primary { flex: 1; }
.checkout-status { border: 1px solid #dcac68; border-radius: 8px; background: #fff5e8; padding: 12px; font-size: 13px; }
.checkout-layout { grid-template-columns: minmax(0,1.55fr) minmax(320px,1fr); }
.checkout-layout aside .cart-line { grid-template-columns: 54px minmax(0,1fr); gap: 10px; }
.checkout-layout aside .cart-line img { width: 54px; height: 72px; }
.checkout-layout aside .cart-line-end { grid-column: 2; align-items: flex-start; margin-top: -5px; }
.review-address { background: #f8f6f1; padding: 18px; border-radius: 8px; margin-bottom: 20px; font-size: 13px; }
.review-address p { margin: 0 0 12px; }
.review-address p:last-child { margin: 0; }
.demo-consent { display: flex; align-items: flex-start; gap: 10px; font-size: 12px; padding: 16px 0; }
.demo-consent input { margin-top: 3px; }
.order-page { max-width: 1000px; }
.order-card { margin-top: 24px; }
.order-card h2 { margin-top: 16px; }
.order-badge { display: inline-flex; padding: 5px 10px; border-radius: 5px; background: #fff0d5; color: #74501e; font-size: 12px; font-weight: 650; }
.order-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin: 22px 0; }
.noscript-store { padding: 16px; background: #fff0d8; color: #65421b; font-size: 13px; }
@media (max-width: 1200px) { .header-orders { display: none; } .cart-trigger-text { display: none; } }
@media (max-width: 900px) {
  .cart-layout, .checkout-layout { grid-template-columns: minmax(0,1fr); gap: 0; }
  .order-summary { position: static; }
  .commerce-title { align-items: flex-start; }
  .commerce-title > .text-action { margin-top: 8px; }
  .checkout-layout .checkout-form { order: 1; }
  .checkout-layout aside { order: 2; }
}
@media (max-width: 620px) {
  :root { --demo-bar-h: 0px; }
  .demo-bar { flex-direction: column; gap: 0; padding: 5px 12px; font-size: 10px; }
  .commerce-page { padding-top: 22px; }
  .commerce-title { display: block; margin-bottom: 20px; }
  .commerce-title h1 { margin-bottom: 10px; }
  .commerce-title > .text-action { margin-top: 0; }
  .cart-line { grid-template-columns: 64px minmax(0,1fr); gap: 12px; }
  .cart-line img { width: 64px; height: 88px; }
  .cart-line-end { grid-column: 2; flex-direction: row; align-items: center; justify-content: space-between; margin-top: -5px; }
  .cart-line-title { font-size: 12px; }
  .quantity-button { width: 40px; height: 42px; }
  .quantity-control input { width: 46px; }
  .field-with-button .btn { padding: 10px 12px; font-size: 12px; }
  .checkout-steps li { font-size: 10px; gap: 6px; }
  .checkout-steps li > span { width: 22px; height: 22px; font-size: 10px; }
  .form-grid { gap: 16px 12px; }
  .field input, .field select, .cep-form input, .coupon-form input { font-size: 16px; }
  .checkout-actions { flex-wrap: wrap; }
  .checkout-actions [data-place-order] { flex-basis: 100%; }
  .drawer-header, .drawer-body { padding: 20px; }
  .drawer-header h2 { font-size: 21px; }
  .delivery-option { gap: 8px; padding: 13px 10px; }
  .cart-trigger { padding: 6px 10px; gap: 6px; }
}
@media print {
  .site-header, .announcement, .demo-bar, .site-footer, .mobile-bottom, .scroll-top, .order-actions, .cart-drawer, .commerce-alert { display: none !important; }
  body { background: #fff; color: #000; }
  .order-page { width: 100%; padding: 0; }
  .order-card { break-inside: avoid; border: 1px solid #aaa; box-shadow: none; }
}

.address-fields{border:0;padding:0;margin:28px 0}.address-fields legend{font-weight:700;margin-bottom:16px}.fulfillment-note{padding:16px;background:#f6f2e9;border-left:3px solid #ec681c}.preserve-lines{white-space:pre-line}.delivery-option:has(input:checked){border-color:#e96e28;background:#fff5ec}.delivery-option:focus-within{outline:2px solid #d15a15;outline-offset:2px}

.store-notice{padding:12px 20px;text-align:center;background:#f3eee5;color:#352d20;font-size:14px}.checkout-form textarea{font:inherit;width:100%;padding:12px;border:1px solid #c8c8c1;border-radius:8px}.order-card details{margin:18px 0}.order-card details textarea{font:inherit;padding:12px;margin:12px 0;border:1px solid #ccc;border-radius:8px}.order-badge{max-width:100%}
