/* Interbikes BR — camada "luxo": checkout, página do pedido e área do cliente.
   Marfim + preto + dourado discreto; o vermelho da marca fica só nas ações principais. Carregado depois do app.css. */
:root { --ivory: #FAF8F4; --hair: #E7E1D6; --gold: #B08D57; --gold-700: #7C5E2E; --gold-100: #F3ECDD; --ink-soft: #3B4047; }

.luxe { background: var(--ivory); background-image: radial-gradient(60rem 24rem at 90% -8%, rgba(176, 141, 87, .12), transparent 70%); padding-block: clamp(1.5rem, 3vw, 3rem); }
.eyebrow { font-size: .6875rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-700); }
.lux-title { font-family: 'Barlow Condensed', Oswald, Impact, sans-serif; font-weight: 800; text-transform: uppercase; letter-spacing: .01em; line-height: .95; font-size: clamp(2rem, 4.2vw, 3.4rem); }
.lux-h2 { font-family: 'Barlow Condensed', Oswald, Impact, sans-serif; font-weight: 700; text-transform: uppercase; letter-spacing: .02em; font-size: 1.6rem; line-height: 1; }
.lux-card { background: #fff; border: 1px solid var(--hair); border-radius: .875rem; box-shadow: 0 1px 0 rgba(17, 20, 24, .03), 0 22px 44px -32px rgba(17, 20, 24, .35); }
.lux-rule { height: 1px; border: 0; background: linear-gradient(90deg, var(--gold), transparent); }
.gold-ring { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 2.75rem; height: 2.75rem; border-radius: 999px; color: var(--gold-700); background: var(--gold-100); box-shadow: inset 0 0 0 1px rgba(176, 141, 87, .55); }

/* Campos */
.luxe .lbl { font-size: .75rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: .35rem; }
.field { display: block; width: 100%; min-height: 3rem; padding: .65rem .95rem; border: 1.5px solid #D9D3C7; border-radius: .625rem; background: #fff; font-size: .9375rem; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.field:hover { border-color: #B9B1A1; }
.field:focus, .field:focus-visible { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(17, 20, 24, .1); }
.field[readonly], .field:disabled { background: #F3F1EC; color: #4b5563; }
textarea.field { min-height: 5rem; line-height: 1.45; }
.field-error { color: #b91c1c; font-size: .8125rem; font-weight: 600; margin-top: .25rem; }
.field[aria-invalid="true"] { border-color: #b91c1c; background: #fef2f2; }

/* Botões */
.btn-cta { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; min-height: 3.5rem; padding: .75rem 1.6rem; border-radius: .75rem; cursor: pointer; color: #fff; font-weight: 800; font-size: .9375rem; letter-spacing: .06em; text-transform: uppercase; text-align: center;
  background: linear-gradient(180deg, #EC1B24, #C30C14); box-shadow: 0 14px 28px -14px rgba(225, 14, 23, .75), inset 0 1px 0 rgba(255, 255, 255, .25); transition: transform .15s, box-shadow .15s; }
.btn-cta:hover { transform: translateY(-1px); box-shadow: 0 18px 30px -14px rgba(225, 14, 23, .85), inset 0 1px 0 rgba(255, 255, 255, .25); }
.btn-cta[disabled] { opacity: .55; cursor: not-allowed; transform: none; }
.btn-ink { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 3rem; padding: .5rem 1.4rem; border-radius: .75rem; cursor: pointer; background: var(--ink); color: #fff; font-weight: 700; font-size: .8125rem; letter-spacing: .1em; text-transform: uppercase; transition: background-color .15s; }
.btn-ink:hover { background: #2a3038; }
.btn-ghost { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 3rem; padding: .5rem 1.25rem; border-radius: .75rem; cursor: pointer; background: #fff; color: var(--ink); border: 1.5px solid #D9D3C7; font-weight: 700; font-size: .8125rem; letter-spacing: .08em; text-transform: uppercase; transition: border-color .15s, background-color .15s; }
.btn-ghost:hover { border-color: var(--ink); background: #fff; }
.btn-ink[disabled], .btn-ghost[disabled] { opacity: .5; cursor: not-allowed; }

/* Checkout: etapas */
.stepper { display: grid; grid-template-columns: repeat(3, 1fr); list-style: none; padding: 0; margin: 1.75rem 0 2rem; }
.stepper li { position: relative; text-align: center; }
.stepper li:not(:last-child)::after { content: ""; position: absolute; top: 1.375rem; left: calc(50% + 1.9rem); right: calc(-50% + 1.9rem); height: 2px; background: var(--hair); }
.stepper li.is-done:not(:last-child)::after { background: var(--gold); }
.step-pill { display: flex; flex-direction: column; align-items: center; gap: .5rem; width: 100%; background: none; border: 0; padding: 0; font: inherit; color: #6b7280; cursor: default; }
.step-pill:not(:disabled) { cursor: pointer; }
.step-num { width: 2.75rem; height: 2.75rem; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; background: #fff; border: 1.5px solid var(--hair); color: #6b7280; font-family: 'Barlow Condensed', Oswald, sans-serif; font-weight: 800; font-size: 1.3rem; transition: background-color .2s, box-shadow .2s; }
.step-label { font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.stepper li.is-active .step-num { background: var(--ink); border-color: var(--ink); color: #fff; box-shadow: 0 0 0 5px rgba(176, 141, 87, .28); }
.stepper li.is-active .step-label { color: var(--ink); }
.stepper li.is-done .step-num { background: var(--gold-700); border-color: var(--gold-700); color: #fff; font-size: 0; }
.stepper li.is-done .step-num::after { content: "\2713"; font-size: 1.2rem; font-family: system-ui, sans-serif; }
.stepper li.is-done .step-label { color: var(--gold-700); }
.step-card { padding: clamp(1.25rem, 3vw, 2rem); scroll-margin-top: 9rem; }
.step-card[hidden] { display: none; }
.step-head { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 1.5rem; padding-bottom: 1.25rem; border-bottom: 1px solid var(--hair); }
.step-ico { flex: none; width: 3rem; height: 3rem; border-radius: .875rem; background: var(--ink); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: inset 0 0 0 1px rgba(176, 141, 87, .7); }
.perk { display: inline-flex; align-items: center; gap: .4rem; padding: .35rem .75rem; border-radius: 999px; background: var(--gold-100); color: var(--gold-700); font-size: .75rem; font-weight: 700; }

/* Opções (entrega, tipo de endereço, pagamento) */
.luxe .opt-row { border: 1.5px solid var(--hair); border-radius: .75rem; background: #fff; transition: border-color .15s, background-color .15s; }
.luxe .opt-row:hover { border-color: #CFC7B7; }
.luxe .opt-row:has(input:checked) { border-color: var(--ink); background: #FCFAF6; }
.luxe .opt-row input, .luxe .pay-card input, .type-opt input { accent-color: var(--ink); }
.type-opt { display: inline-flex; align-items: center; gap: .45rem; min-height: 2.75rem; padding: 0 1rem; border: 1.5px solid var(--hair); border-radius: 999px; cursor: pointer; font-weight: 600; font-size: .875rem; background: #fff; transition: background-color .15s, color .15s; }
.type-opt:has(input:checked) { border-color: var(--ink); background: var(--ink); color: #fff; }
.type-opt:has(input:checked) input { accent-color: #fff; }
.pay-card { position: relative; display: flex; gap: .9rem; align-items: flex-start; padding: 1.25rem 1.15rem; border: 1.5px solid var(--hair); border-radius: .875rem; background: #fff; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.pay-card:hover { border-color: #CFC7B7; }
.pay-card:has(input:checked) { border-color: var(--ink); background: linear-gradient(180deg, #fff, #FCFAF6); box-shadow: 0 0 0 4px rgba(17, 20, 24, .07), 0 20px 34px -26px rgba(17, 20, 24, .55); }
.pay-card input { margin-top: .3rem; width: 1.15rem; height: 1.15rem; flex: none; }
.pay-ribbon { position: absolute; top: -.7rem; right: 1rem; padding: .25rem .65rem; border-radius: 999px; background: var(--gold-700); color: #fff; font-size: .6875rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.brand-row { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .6rem; }
.brand-row img { height: 1.5rem; width: auto; }

.review-box { background: var(--ivory); border: 1px solid var(--hair); border-radius: .75rem; padding: 1rem 1.15rem; }
.hair-list > li + li { border-top: 1px solid var(--hair); }

/* Resumo do pedido (com miniatura do produto) */
.sum-item { display: flex; gap: .9rem; align-items: center; padding: .9rem 0; }
.sum-thumb { position: relative; flex: none; width: 4rem; height: 4rem; border-radius: .75rem; background: var(--ivory); border: 1px solid var(--hair); }
.sum-thumb img { width: 100%; height: 100%; object-fit: contain; border-radius: .75rem; padding: .25rem; }
.sum-qty { position: absolute; top: -.45rem; right: -.45rem; min-width: 1.4rem; height: 1.4rem; padding: 0 .3rem; border-radius: 999px; background: var(--ink); color: #fff; font-size: .7rem; font-weight: 800; display: flex; align-items: center; justify-content: center; border: 2px solid #fff; }
.save-pill { display: flex; justify-content: space-between; align-items: center; gap: .5rem; background: var(--gold-100); color: var(--gold-700); border: 1px solid #E6D9BC; border-radius: .625rem; padding: .55rem .8rem; font-size: .8125rem; font-weight: 700; }
.save-pill[hidden] { display: none; }
.ship-bar { height: .4rem; border-radius: 999px; background: #ece7dc; overflow: hidden; }
.ship-bar > span { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--gold), var(--pix)); transform: scaleX(0); transform-origin: left; transition: transform .3s; }
.mini-sum { display: flex; align-items: center; gap: .9rem; padding: .75rem 1rem; margin-bottom: 1.25rem; }
.mini-sum .sum-thumb { width: 2.6rem; height: 2.6rem; margin-left: -.55rem; box-shadow: 0 0 0 2px #fff; }
.mini-sum .sum-thumb:first-child { margin-left: 0; }
.sec-card { overflow: hidden; border-radius: .875rem; color: #fff; background: #111418; border: 1px solid rgba(176, 141, 87, .5); }
.sec-card img { width: 100%; height: 9rem; object-fit: cover; display: block; }
@media (min-width: 640px) { .sec-card--row img { height: 100%; min-height: 9rem; } }
.trust-row { display: flex; flex-wrap: wrap; gap: .4rem; }
.trust-row img { height: 1.6rem; width: auto; }

/* Página do pedido: Pix */
.pix-timer { font-variant-numeric: tabular-nums; font-weight: 800; }
.pix-qr { width: 14rem; height: 14rem; padding: .75rem; background: #fff; border: 1px solid var(--hair); border-radius: .75rem; display: flex; align-items: center; justify-content: center; text-align: center; font-size: .75rem; color: #4b5563; }
.pix-qr canvas, .pix-qr img { max-width: 100%; height: auto; }
.pix-box { border: 1.5px solid var(--pix); }

/* Oferta exclusiva (página aberta pelo chat) */
.gallery-main { aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center; background: var(--ivory); }
.gallery-main img { max-width: 100%; max-height: 100%; object-fit: contain; padding: 1.5rem; }
.gallery-thumb { width: 4.5rem; height: 4.5rem; padding: .25rem; border: 1.5px solid var(--hair); border-radius: .75rem; background: #fff; cursor: pointer; }
.gallery-thumb[aria-pressed="true"] { border-color: var(--ink); }
.offer-panel { color: #fff; border-radius: 1.1rem; padding: clamp(1.25rem, 3vw, 2rem); border: 1px solid rgba(176, 141, 87, .7);
  background: radial-gradient(24rem 11rem at 100% -10%, rgba(176, 141, 87, .35), transparent 65%), linear-gradient(160deg, #1b1f25, #0B0D10); box-shadow: 0 30px 60px -34px rgba(17, 20, 24, .8); }
.offer-panel .eyebrow { color: #D9BE8A; }
.offer-timer { font-family: 'Barlow Condensed', Oswald, sans-serif; font-weight: 800; font-size: 2.5rem; line-height: 1; font-variant-numeric: tabular-nums; }
.offer-bar { height: .3rem; border-radius: 999px; background: rgba(255, 255, 255, .14); overflow: hidden; }
.offer-bar > span { display: block; height: 100%; width: 100%; transform-origin: left; background: linear-gradient(90deg, var(--gold), #D9BE8A); transition: transform 1s linear; }
.offer-old { color: rgba(255, 255, 255, .55); text-decoration: line-through; }
.offer-price { font-family: 'Barlow Condensed', Oswald, sans-serif; font-weight: 800; font-size: clamp(3.2rem, 6vw, 4.2rem); line-height: .95; }
.offer-pill { padding: .25rem .65rem; border-radius: 999px; background: var(--gold); color: #1a1405; font-size: .75rem; font-weight: 800; letter-spacing: .08em; }
.offer-list li { display: flex; gap: .6rem; font-size: .875rem; color: rgba(255, 255, 255, .85); }

/* Área do cliente */
.acct-hero { position: relative; overflow: hidden; border-radius: 1rem; color: #fff; padding: clamp(1.25rem, 3vw, 2.25rem);
  background: radial-gradient(40rem 18rem at 92% -10%, rgba(176, 141, 87, .32), transparent 60%), linear-gradient(135deg, #171A1F, #0B0D10); }
.acct-avatar { flex: none; width: 4.5rem; height: 4.5rem; border-radius: 999px; display: flex; align-items: center; justify-content: center; font-family: 'Barlow Condensed', Oswald, sans-serif; font-weight: 800; font-size: 1.9rem; letter-spacing: .04em; color: #fff;
  background: linear-gradient(135deg, #2a2f36, #14171b); box-shadow: 0 0 0 2px var(--gold), 0 0 0 7px rgba(176, 141, 87, .18); }
.acct-hero .eyebrow { color: #D9BE8A; }
.acct-hero .lux-title { font-size: clamp(1.75rem, 3.4vw, 2.6rem); }
.acct-hero .acct-out { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .35); }
.acct-hero .acct-out:hover { background: rgba(255, 255, 255, .08); border-color: #fff; }
.acct-stat { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .13); border-radius: .75rem; padding: .85rem 1rem; }
.acct-stat dt { font-size: .6875rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #D9BE8A; }
.acct-stat dd { margin-top: .2rem; font-family: 'Barlow Condensed', Oswald, sans-serif; font-weight: 800; font-size: 1.9rem; line-height: 1; font-variant-numeric: tabular-nums; }
.luxe .conta-tab { min-height: 3rem; padding: 0 1.25rem; font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #5b6168; border-bottom: 3px solid transparent; }
.luxe .conta-tab:hover { color: var(--ink); }
.luxe .conta-tab.is-active { color: var(--ink); border-bottom-color: var(--gold); }
.ord-card { display: grid; grid-template-columns: auto 1fr auto; gap: 1rem 1.25rem; align-items: center; padding: 1.1rem 1.25rem; }
@media (max-width: 640px) { .ord-card { grid-template-columns: 1fr; } }
.ord-thumbs { display: flex; padding-left: .6rem; }
.ord-thumbs .sum-thumb { width: 3.6rem; height: 3.6rem; margin-left: -.6rem; box-shadow: 0 0 0 2px #fff; }
.ord-more { display: flex; align-items: center; justify-content: center; font-size: .75rem; font-weight: 800; color: var(--gold-700); background: var(--gold-100); }
.ord-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: .25rem; margin-top: .6rem; max-width: 16rem; }
.ord-steps span { height: .25rem; border-radius: 999px; background: #e5dfd2; }
.ord-steps span.on { background: var(--gold); }
.dot { display: inline-block; width: .45rem; height: .45rem; border-radius: 999px; background: currentColor; }
.addr-card { padding: 1.1rem 1.25rem; display: flex; gap: .9rem; align-items: flex-start; }
.addr-tag { display: inline-block; margin-left: .5rem; padding: .1rem .5rem; border-radius: 999px; background: var(--ink); color: #fff; font-size: .625rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; vertical-align: middle; }

/* Rastreio de entrega: trajeto (vertical no celular, horizontal no desktop) e histórico */
.trk-route { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; }
.trk-node { position: relative; display: grid; grid-template-columns: 1.5rem 1fr; column-gap: .85rem; padding-bottom: 1.15rem; }
.trk-node:last-child { padding-bottom: 0; }
.trk-node::before { content: ''; position: absolute; left: .6875rem; top: 1.5rem; bottom: 0; width: 2px; background: #E5DFD2; }
.trk-node:last-child::before { display: none; }
.trk-node.is-done::before { background: var(--gold); }
.trk-dot { display: grid; place-items: center; width: 1.5rem; height: 1.5rem; border-radius: 999px; border: 2px solid #D9D3C7; background: #fff; }
.trk-node.is-done .trk-dot { border-color: var(--ink); background: var(--ink); }
.trk-node.is-done .trk-dot::after { content: ''; width: .4rem; height: .4rem; border-radius: 999px; background: #fff; }
.trk-node.is-current .trk-dot { border-color: var(--gold); background: var(--gold-100); box-shadow: 0 0 0 4px rgba(176, 141, 87, .28); }
.trk-node.is-current .trk-dot::after { content: ''; width: .55rem; height: .55rem; border-radius: 999px; background: var(--gold-700); }
.trk-txt { display: flex; flex-direction: column; min-width: 0; }
.trk-name { font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); }
.trk-place { font-size: .9375rem; font-weight: 600; color: var(--ink-soft); overflow-wrap: anywhere; }
.trk-at { margin-top: .1rem; font-size: .75rem; color: #5b6168; font-variant-numeric: tabular-nums; }
.trk-node.is-current .trk-at { color: var(--gold-700); font-weight: 700; }
.trk-node.is-todo .trk-name, .trk-node.is-todo .trk-place { color: #6b7280; font-weight: 500; }
@media (min-width: 768px) {
  .trk-route { flex-direction: row; }
  .trk-node { flex: 1 1 0; grid-template-columns: 1fr; row-gap: .6rem; padding: 0 .5rem 0 0; }
  .trk-node::before { left: 1.5rem; right: 0; top: .6875rem; bottom: auto; width: auto; height: 2px; }
}
.trk-ev { display: grid; grid-template-columns: 5.75rem 1fr; gap: .15rem 1rem; padding: .9rem 0; border-top: 1px solid var(--hair); }
.trk-ev:first-child { border-top: 0; }
.trk-ev time { font-size: .8125rem; line-height: 1.4; color: #5b6168; font-variant-numeric: tabular-nums; }
.trk-ev time strong { display: block; color: var(--ink); }
.trk-ev h3 { font-size: .9375rem; font-weight: 800; line-height: 1.3; }
.trk-ev.is-latest h3 { color: var(--gold-700); }
.trk-where { margin-top: .1rem; font-size: .8125rem; font-weight: 700; color: var(--ink-soft); }
.trk-detail { margin-top: .15rem; font-size: .8125rem; line-height: 1.45; color: #4b5563; }
.trk-ev.is-todo { opacity: .62; }
@media (max-width: 480px) { .trk-ev { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) { .ship-bar > span, .btn-cta { transition: none; } }
