/* ==========================================================================
   Patriotas Brasil — loja (carrinho, seletores, checkout, pedido)
   Complementa styles.css usando os mesmos tokens. Não sobrescreve o visual existente.
   ========================================================================== */

.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
body.cart-open { overflow: hidden; }
:where(a, button, input, select, textarea, [tabindex]):focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.button[aria-disabled="true"], .button:disabled { opacity: .45; pointer-events: none; transform: none; }
.text-button { padding: 0; border: 0; color: var(--green); background: none; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.pill-button { min-height: 44px; padding: 0 18px; border: 1px solid var(--ink); border-radius: 99px; color: var(--ink); background: white; font-size: .82rem; font-weight: 700; cursor: pointer; transition: .2s ease; }
@media (hover: hover) { .pill-button:hover { color: white; background: var(--ink); } }
.pill-button:disabled { opacity: .5; cursor: progress; }

/* ---------- Header: ações + carrinho ---------- */
.header-actions { justify-self: end; display: flex; align-items: center; gap: 12px; }
.header-actions .header-cta { justify-self: auto; }
.cart-button { position: relative; width: 46px; height: 46px; display: grid; place-items: center; padding: 0; border: 1px solid var(--ink); border-radius: 50%; color: var(--ink); background: transparent; cursor: pointer; transition: .2s ease; }
@media (hover: hover) { .cart-button:hover { color: white; background: var(--ink); } }
.cart-button svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.cart-badge { position: absolute; top: -5px; right: -5px; min-width: 21px; height: 21px; display: grid; place-items: center; padding: 0 5px; border: 2px solid var(--paper); border-radius: 99px; color: var(--ink); background: var(--gold); font-size: .66rem; font-weight: 800; line-height: 1; animation: badge-pop .3s ease both; }
.cart-badge[hidden] { display: none; }
@keyframes badge-pop { from { transform: scale(.4); } }

/* ---------- Modal: seletores de compra ---------- */
.purchase-options { margin: 26px 0 24px; padding: 18px 0 4px; border-block: 1px solid var(--line); }
.option-group { min-width: 0; margin: 0 0 18px; padding: 0; border: 0; }
.option-group legend, .option-label { display: block; margin-bottom: 10px; padding: 0; font-size: .79rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.option-selected { color: var(--green-2); text-transform: none; letter-spacing: 0; font-weight: 600; }
.option-subgroup + .option-subgroup { margin-top: 12px; }
.option-subgroup small { display: block; margin-bottom: 7px; color: var(--muted); font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.option-pills { display: flex; flex-wrap: wrap; gap: 7px; }
.option-pill { position: relative; cursor: pointer; }
.option-pill input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: inherit; }
.option-pill > span { display: inline-flex; align-items: center; min-height: 38px; padding: 7px 14px; border: 1px solid var(--line); border-radius: 99px; background: white; font-size: .8rem; font-weight: 600; transition: border-color .15s ease, background .15s ease, color .15s ease; }
.option-pill:hover > span { border-color: var(--green-2); }
.option-pill input:checked + span { border-color: var(--green); color: white; background: var(--green); }
.option-pill input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.option-pill.is-disabled { cursor: not-allowed; }
.option-pill.is-disabled > span { border-style: dashed; color: #9aa39e; background: #f4f5f2; text-decoration: line-through; }
.option-group.has-error .option-pill > span { border-color: #b3261e; }
.option-error { min-height: 1.2em; margin: 0 0 6px; color: #b3261e; font-size: .82rem; font-weight: 600; }
.option-error:empty { min-height: 0; margin: 0; }
.quantity-group { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.quantity-group .option-label { margin: 0; }
.qty-stepper { display: inline-flex; align-items: center; overflow: hidden; border: 1px solid var(--line); border-radius: 99px; background: white; }
.qty-stepper button { width: 40px; height: 40px; border: 0; color: var(--ink); background: transparent; font-size: 1.15rem; cursor: pointer; }
.qty-stepper button:hover:not(:disabled) { background: #f0f2ee; }
.qty-stepper button:disabled { color: #b8bfbb; cursor: not-allowed; }
.qty-stepper output { min-width: 28px; text-align: center; font-weight: 800; }
.modal-add { width: 100%; border: 0; cursor: pointer; }
.modal-help { display: inline-block; margin-top: 16px; color: var(--muted); font-size: .82rem; text-decoration: underline; text-underline-offset: 3px; }
.modal-help:hover { color: var(--green); }

/* Assistente de estilo: CTA de compra */
.chat-result-copy .chat-result-buy { width: 100%; min-height: 40px; padding: 10px 12px; border: 0; border-radius: 99px; color: white; background: var(--green); font-size: .78rem; font-weight: 800; cursor: pointer; }
.chat-result-copy .chat-result-buy:hover { background: var(--green-2); }
.chat-result-copy .chat-result-help { margin-top: 8px; padding: 4px; color: var(--muted); background: transparent; font-weight: 600; }

/* ---------- Drawer do carrinho ---------- */
.cart-drawer[hidden] { display: none; }
.cart-drawer { position: fixed; inset: 0; z-index: 90; }
.cart-backdrop { position: absolute; inset: 0; background: rgba(8,17,13,.62); backdrop-filter: blur(5px); animation: fade-in .2s ease both; }
.cart-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(440px, 100%); display: flex; flex-direction: column; background: var(--paper); box-shadow: -24px 0 80px rgba(0,0,0,.22); animation: drawer-in .28s cubic-bezier(.2,.8,.2,1) both; }
@keyframes drawer-in { from { transform: translateX(40px); opacity: 0; } }
@keyframes fade-in { from { opacity: 0; } }
.cart-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 22px; color: white; background: var(--green); }
.cart-header strong { display: block; font-family: "Manrope", sans-serif; font-size: 1.15rem; letter-spacing: -.02em; }
.cart-header-count { color: #c4d8cd; font-size: .74rem; }
.cart-close { width: 38px; height: 38px; flex: 0 0 auto; border: 0; border-radius: 50%; color: white; background: rgba(255,255,255,.1); font-size: 1.5rem; cursor: pointer; }
.cart-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 6px 22px 18px; }
.cart-drawer.is-loading .cart-line-price strong, .cart-drawer.is-loading .cart-totals dd { opacity: .45; transition: opacity .2s ease; }
.cart-lines { margin: 0; padding: 0; list-style: none; }
.cart-line { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.cart-line img { width: 72px; height: 96px; border-radius: 12px; background: #eceee9; object-fit: contain; }
.cart-line-info { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.cart-line-info strong { font-size: .9rem; line-height: 1.3; }
.cart-line-info > span { color: var(--muted); font-size: .78rem; }
.cart-line-info .cart-line-issue { color: #b3261e; font-weight: 700; }
.cart-line.has-issue img { opacity: .5; }
.cart-line-controls { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 14px; margin-top: 8px; }
.cart-line-controls .qty-stepper button { width: 34px; height: 34px; }
.cart-remove { padding: 4px 0; border: 0; color: var(--muted); background: none; font-size: .76rem; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.cart-remove:hover { color: #b3261e; }
.cart-line-price { display: flex; flex-direction: column; align-items: flex-end; text-align: right; font-size: .9rem; }
.cart-line-price del { color: #89918d; font-size: .74rem; }
.cart-line-price small { color: var(--muted); font-size: .7rem; }
.cart-messages { display: grid; gap: 8px; margin: 16px 0 0; padding: 0; list-style: none; }
.cart-message { display: flex; gap: 10px; align-items: flex-start; padding: 11px 14px; border-radius: 14px; font-size: .82rem; font-weight: 600; line-height: 1.4; }
.cart-message span { flex: 0 0 auto; font-weight: 800; }
.cart-message.is-progress { color: #5a4708; background: #fbf3d6; border: 1px solid #f0dc94; }
.cart-message.is-applied { color: var(--green); background: #e5f0e9; border: 1px solid #c3dccc; }
.cart-section { margin-top: 18px; }
.inline-form > label { display: block; margin-bottom: 7px; font-size: .74rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.inline-field { display: flex; gap: 8px; }
.inline-field input { flex: 1; min-width: 0; }
.field-error { margin: 6px 0 0; color: #b3261e; font-size: .78rem; font-weight: 600; }
.field-error:empty { display: none; }
.cart-hint { margin: 8px 0 0; color: var(--muted); font-size: .8rem; }
.cart-hint.is-error { color: #b3261e; }
.coupon-applied { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border: 1px dashed var(--green-2); border-radius: 14px; background: white; }
.coupon-applied strong { display: block; letter-spacing: .08em; }
.coupon-applied span { color: var(--green-2); font-size: .78rem; }
.coupon-applied.is-invalid { border-color: #b3261e; }
.coupon-applied.is-invalid span { color: #b3261e; }
.shipping-options { display: grid; gap: 8px; margin: 12px 0 0; padding: 0; border: 0; }
.shipping-option { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: white; font-size: .82rem; cursor: pointer; }
.shipping-option:has(input:checked) { border-color: var(--green); box-shadow: inset 0 0 0 1px var(--green); }
.shipping-option input { accent-color: var(--green); width: 18px; height: 18px; margin: 0; }
.cart-footer { padding: 16px 22px 20px; border-top: 1px solid var(--line); color: var(--ink); background: white; }
.cart-footer > .button { width: 100%; }
.cart-totals { display: grid; gap: 6px; margin: 0 0 12px; font-size: .86rem; }
.cart-totals div { display: flex; justify-content: space-between; gap: 12px; }
.cart-totals dt { color: var(--muted); }
.cart-totals dd { margin: 0; font-weight: 700; }
.cart-totals .is-discount dd { color: var(--green-2); }
.cart-totals .cart-total { margin-top: 4px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 1.05rem; }
.cart-totals .cart-total dt { color: var(--ink); font-weight: 800; }
.cart-totals .cart-total dd { font-family: "Manrope", sans-serif; font-weight: 800; }
.cart-notice { margin: 0 0 10px; padding: 10px 12px; border-radius: 12px; color: #5a4708; background: #fbf3d6; font-size: .78rem; }
.cart-continue { display: block; margin: 12px auto 0; font-size: .84rem; }
.cart-empty { display: grid; justify-items: center; gap: 8px; padding: 64px 12px; text-align: center; }
.cart-empty img { width: 64px; height: 64px; opacity: .8; }
.cart-empty strong { font-family: "Manrope", sans-serif; font-size: 1.15rem; }
.cart-empty p { margin: 0; color: var(--muted); font-size: .88rem; }

/* ---------- Campos de formulário (carrinho e checkout) ---------- */
.field input, .field select, .inline-field input { width: 100%; min-height: 46px; padding: 10px 14px; border: 1px solid #cfd6d1; border-radius: 12px; color: var(--ink); background: white; font: inherit; font-size: 16px; transition: border-color .15s ease, box-shadow .15s ease; }
.field input:focus, .field select:focus, .inline-field input:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(30,89,64,.15); }
.field input[aria-invalid="true"], .field select[aria-invalid="true"], .inline-field input[aria-invalid="true"] { border-color: #b3261e; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field[hidden] { display: none; }
.field > label { font-size: .8rem; font-weight: 700; }
.field > label small { color: var(--muted); font-weight: 500; }
.field .field-error { margin: 0; }

/* ---------- Páginas internas (checkout, pedido, políticas) ---------- */
.store-header { max-width: var(--max); margin: 0 auto; padding: 16px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); }
.store-header .secure-badge { display: inline-flex; align-items: center; gap: 8px; color: var(--green-2); font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.store-header .secure-badge svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
.back-link { font-size: .86rem; font-weight: 700; border-bottom: 1px solid var(--ink); }
.store-footer { margin-top: 72px; padding: 22px 24px; color: #819088; background: #0c1813; font-size: .74rem; text-align: center; }
.store-footer a { color: #d9e9df; text-decoration: underline; text-underline-offset: 3px; }
.store-footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; margin-bottom: 8px; }

.checkout { max-width: var(--max); margin: 0 auto; padding: 44px 24px 0; }
.checkout h1 { margin-bottom: 8px; font-size: clamp(2.2rem, 4.5vw, 3.4rem); line-height: 1; }
.checkout-lead { margin-bottom: 34px; color: var(--muted); }
.checkout-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 32px; align-items: start; }
.checkout-step { margin: 0 0 18px; padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: white; }
.checkout-step > legend, .checkout-step > h2 { float: left; width: 100%; display: flex; align-items: center; gap: 12px; margin: 0 0 20px; padding: 0; font-family: "Manrope", sans-serif; font-size: 1.15rem; font-weight: 800; letter-spacing: -.02em; }
.checkout-step > legend + *, .checkout-step > h2 + * { clear: both; }
.step-number { width: 30px; height: 30px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; color: var(--ink); background: var(--gold); font-size: .8rem; }
.field-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.span-1 { grid-column: span 1; } .span-2 { grid-column: span 2; } .span-3 { grid-column: span 3; } .span-4 { grid-column: span 4; } .span-6 { grid-column: span 6; }
.segmented { display: inline-flex; gap: 4px; margin-bottom: 18px; padding: 4px; border-radius: 99px; background: #eef0ec; }
.segmented label { position: relative; cursor: pointer; }
.segmented input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.segmented span { display: block; padding: 9px 18px; border-radius: 99px; font-size: .84rem; font-weight: 700; color: var(--muted); }
.segmented input:checked + span { color: white; background: var(--green); }
.segmented input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.checkbox-field { display: flex; gap: 12px; align-items: flex-start; font-size: .88rem; }
.checkbox-field input { width: 20px; height: 20px; flex: 0 0 auto; margin: 2px 0 0; accent-color: var(--green); }
.checkbox-field a { color: var(--green); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.privacy-note { margin: 14px 0 0; color: var(--muted); font-size: .78rem; }
.checkout-summary { position: sticky; top: 20px; padding: 24px; border-radius: var(--radius); color: white; background: var(--green); }
.checkout-summary h2 { margin-bottom: 16px; font-family: "Manrope", sans-serif; font-size: 1.2rem; letter-spacing: -.02em; }
.summary-lines { margin: 0 0 16px; padding: 0; list-style: none; }
.summary-line { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.12); font-size: .82rem; }
.summary-line img { width: 52px; height: 68px; border-radius: 9px; background: #e8e9e3; object-fit: contain; }
.summary-line span { display: block; color: #c4d8cd; font-size: .74rem; }
.summary-line del { display: block; color: #9fb5aa; font-size: .7rem; text-align: right; }
.checkout-summary .cart-totals dt { color: #c4d8cd; }
.checkout-summary .cart-totals .is-discount dd { color: var(--gold); }
.checkout-summary .cart-totals .cart-total { border-color: rgba(255,255,255,.2); }
.checkout-summary .cart-totals .cart-total dt { color: white; }
.checkout-summary .cart-messages .cart-message { margin-bottom: 4px; }
.checkout-summary .cart-hint { color: #c4d8cd; }
.checkout-submit { width: 100%; margin-top: 18px; border: 0; color: var(--ink); background: var(--gold); cursor: pointer; }
.checkout-submit:hover { background: #ecc957; }
.checkout-submit[aria-busy="true"] { cursor: progress; }
.checkout-alert { margin: 0 0 18px; padding: 14px 16px; border-radius: 14px; color: #6d1b16; background: #fbe4e2; border: 1px solid #f2c0bb; font-size: .88rem; font-weight: 600; }
.checkout-alert[hidden] { display: none; }
.checkout-alert.is-info { color: #5a4708; background: #fbf3d6; border-color: #f0dc94; }
.checkout-payment-note { margin: 12px 0 0; color: #c4d8cd; font-size: .76rem; text-align: center; }
.spinner { display: inline-block; width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.order-page { max-width: 640px; margin: 0 auto; padding: 56px 24px 0; }
.order-card { padding: 40px 34px; border: 1px solid var(--line); border-radius: var(--radius); background: white; text-align: center; }
.order-icon { width: 76px; height: 76px; display: grid; place-items: center; margin: 0 auto 20px; border-radius: 50%; color: white; background: var(--green); font-size: 2rem; font-weight: 800; }
.order-card[data-status="pending"] .order-icon { color: var(--ink); background: var(--gold); }
.order-card[data-status="failed"] .order-icon, .order-card[data-status="cancelled"] .order-icon { background: #8e2a23; }
.order-card[data-status="loading"] .order-icon { background: #e6eae7; color: var(--green); }
.order-card h1 { margin-bottom: 12px; font-size: clamp(2rem, 6vw, 2.8rem); line-height: 1.05; }
.order-card > p { color: var(--muted); }
.order-meta { display: grid; gap: 8px; margin: 26px 0; padding: 18px; border-radius: 16px; background: var(--paper); text-align: left; font-size: .88rem; }
.order-meta div { display: flex; justify-content: space-between; gap: 12px; }
.order-meta dt { color: var(--muted); }
.order-meta dd { margin: 0; font-weight: 700; text-align: right; }
.order-meta dd:not(.is-text), .cart-totals dd, .summary-line strong { white-space: nowrap; }
.order-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.order-actions .pill-button { display: inline-flex; align-items: center; }
.order-actions .text-button { flex-basis: 100%; margin-top: 4px; font-size: .84rem; }
.order-card[hidden] { display: none; }

.order-timeline { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); margin: 28px 0 0; padding: 0; list-style: none; counter-reset: step; }
.order-timeline li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 0 4px; color: var(--muted); font-size: .76rem; font-weight: 600; line-height: 1.25; text-align: center; }
.order-timeline li::before { content: ""; position: absolute; top: 9px; right: 50%; width: 100%; height: 2px; background: var(--line); }
.order-timeline li:first-child::before { display: none; }
.order-timeline-dot { position: relative; z-index: 1; width: 20px; height: 20px; border: 2px solid var(--line); border-radius: 50%; background: white; }
.order-timeline li[data-state="done"], .order-timeline li[data-state="current"] { color: var(--ink); }
.order-timeline li[data-state="done"]::before, .order-timeline li[data-state="current"]::before { background: var(--green); }
.order-timeline li[data-state="done"] .order-timeline-dot { border-color: var(--green); background: var(--green); }
.order-timeline li[data-state="current"] .order-timeline-dot { border-color: var(--green); background: white; box-shadow: inset 0 0 0 4px var(--green); }
.order-timeline li[data-key="cancelled"] .order-timeline-dot { border-color: #8e2a23; box-shadow: inset 0 0 0 4px #8e2a23; }
.order-timeline li[data-key="cancelled"]::before { background: #8e2a23; }
.order-timeline time { color: var(--muted); font-size: .7rem; font-weight: 500; }

.order-tracking { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 18px; margin: 24px 0 0; padding: 16px 18px; border: 1px solid var(--line); border-radius: 16px; text-align: left; }
.order-tracking span { display: block; color: var(--muted); font-size: .74rem; font-weight: 600; }
.order-tracking strong { font-size: .95rem; overflow-wrap: anywhere; }
.order-tracking-code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .02em; }
.order-tracking-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: .84rem; }

.order-lookup > p { color: var(--muted); }
.lookup-form { display: grid; gap: 16px; margin: 26px 0 0; text-align: left; }
.lookup-form .checkout-alert { margin: 0; }
.lookup-form .button, .order-actions button.button { border: 0; cursor: pointer; font: inherit; font-weight: 700; }
.lookup-form .button { width: 100%; }
.order-actions button.button[aria-busy="true"] { cursor: progress; opacity: .7; }
.lookup-note { margin: 18px 0 0; font-size: .78rem; }

.policy-page { max-width: 780px; margin: 0 auto; padding: 56px 24px 0; }
.policy-page h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); line-height: 1.05; }
.policy-page section { margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--line); scroll-margin-top: 20px; }
.policy-page h2 { font-size: 1.6rem; }
.pending-content { padding: 16px 18px; border-radius: 14px; color: #5a4708; background: #fbf3d6; border: 1px solid #f0dc94; font-size: .9rem; }

.dev-banner { padding: 8px 16px; color: var(--ink); background: var(--gold); font-size: .78rem; font-weight: 800; text-align: center; letter-spacing: .04em; }

@media (max-width: 980px) {
  .checkout-grid { grid-template-columns: 1fr; }
  .checkout-summary { position: static; }
}

@media (max-width: 760px) {
  .header-actions { gap: 6px; }
  .cart-button { width: 44px; height: 44px; border-color: transparent; }
  .modal-content .purchase-options { margin-top: 20px; }
  .option-pill > span { min-height: 42px; }
  .cart-panel { width: 100%; }
  .cart-header, .cart-body, .cart-footer { padding-inline: 18px; }
  .cart-line { grid-template-columns: 60px minmax(0, 1fr); }
  .cart-line img { width: 60px; height: 80px; }
  .cart-line-price { grid-column: 2; flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 8px; text-align: left; }
  .checkout { padding: 28px 16px 0; }
  .checkout-step { padding: 20px 16px; }
  .field-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .span-2, .span-3 { grid-column: span 1; } .span-4, .span-6, .field-grid .span-full-mobile { grid-column: span 2; }
  .store-header { padding: 12px 16px; }
  .store-header .brand span { font-size: .72rem; }
  .store-header .brand img { width: 44px; height: 44px; }
  .store-header .secure-badge { display: none; }
  .order-page, .policy-page { padding: 36px 16px 0; }
  .order-card { padding: 30px 18px; }
  .order-timeline { grid-template-columns: 1fr; gap: 0; text-align: left; }
  .order-timeline li { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 4px 12px; padding: 0 0 18px; text-align: left; }
  .order-timeline li::before { top: auto; bottom: calc(100% - 9px); right: auto; left: 9px; width: 2px; height: 100%; }
  .order-timeline time { margin-left: auto; }
  .order-tracking { grid-template-columns: 1fr; }
}

@media (max-width: 390px) {
  .inline-field { flex-direction: column; }
  .segmented { display: flex; }
  .segmented label { flex: 1; text-align: center; }
}
.footer-policies a { text-decoration: underline; text-underline-offset: 3px; }
.footer-policies a:hover { color: white; }

/* Card: "+" no lugar da seta (abre o modal para escolher opções e adicionar ao carrinho) */
.card-arrow { font-size: 1.6rem; font-weight: 500; line-height: 1; }

/* Modal no desktop: a coluna de conteúdo rola dentro do painel, deixando o botão
   "Adicionar ao carrinho" sempre alcançável mesmo em telas baixas. */
@media (min-width: 981px) {
  .modal-content { max-height: min(720px, calc(100vh - 48px)); overscroll-behavior: contain; }
}
