/* Loja Polarang — por cima de /styles.css (tokens, fontes, campos e o .stepper da pesquisa). */

:root { --shell: 1120px; --header-h: 64px; }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 30; padding: 8px 12px; background: var(--card); border-radius: var(--radius-s); }
.skip:focus { left: 8px; }
.muted { color: var(--muted); }
a { color: inherit; }

/* ---------- Cabeçalho ---------- */
.store-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgb(255 255 255 / 0.92);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line);
}
.store-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: var(--shell);
  min-height: var(--header-h);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.store-header__brand {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.01em;
}
.store-header__account { display: flex; align-items: center; gap: 4px; min-width: 0; font-size: var(--step--1); }
.topbar__email { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 46vw; color: var(--muted); }
.topbar__login {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
}
.topbar__login:hover { background: var(--ink); color: #fff; }

.link-btn {
  padding: 4px 2px;
  border: 0;
  background: none;
  color: var(--red);
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
}

/* Página em coluna: o conteúdo ocupa a altura que sobra e o rodapé fica sempre no fim da tela. */
body { display: flex; flex-direction: column; }

/* ---------- Área principal ---------- */
.view {
  flex: 1 0 auto;
  width: 100%;
  display: grid;
  gap: 32px;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 20px var(--gutter) 48px;
  outline: none;
}
.view:not(.view--product) { justify-items: center; align-content: start; padding-top: 40px; }
.view--product { gap: 56px; }

/* ---------- Produto: galeria + resumo ---------- */
.product-page { display: grid; gap: 24px; }
.product-page__side { min-width: 0; }

/* Foto do produto: a arte de divulgação, vertical (4:5), inteira. */
.gallery { display: grid; gap: 12px; align-content: start; }
.gallery__main {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  margin: 0;
  background: #fbf1f1;
  border-radius: var(--radius-m);
  border: 1px solid var(--line);
}
.gallery__main img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: contain; }

.summary { display: grid; gap: 14px; align-content: start; }
.summary__eyebrow {
  color: var(--red);
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.summary__title { font-size: clamp(2.25rem, 1.6rem + 2.6vw, 3.25rem); line-height: 1.05; }
.summary__lead { color: var(--muted); font-size: var(--step-1); max-width: 46ch; }

.price { display: grid; gap: 2px; padding: 4px 0 6px; }
.price__value { font-size: clamp(2rem, 1.7rem + 1.2vw, 2.5rem); line-height: 1.1; letter-spacing: -0.01em; }
.price__method { font-size: var(--step-1); font-weight: 600; }
.price__alt { color: var(--muted); }

/* ---------- Caixa de compra ---------- */
.buy {
  display: grid;
  gap: 16px;
  padding: 20px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.04), 0 8px 24px rgb(0 0 0 / 0.04);
}
.buy__stock { font-weight: 700; color: var(--red); }
.buy__stock--out { color: var(--ink); }
.buy__field { display: grid; gap: 8px; }
.buy__shipping { display: grid; gap: 4px; padding: 14px 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-s); }
.buy__note { color: var(--muted); font-size: var(--step--1); text-align: center; }

.field-label { font-weight: 600; }
.field-hint { color: var(--muted); font-size: var(--step--1); }
.form-error { color: var(--error); font-size: var(--step--1); font-weight: 500; }

/* Quantidade: usa o .stepper do formulário da pesquisa (/styles.css). */
.stepper input.stepper__value { padding: 0; min-height: 0; }

.cep { display: grid; gap: 8px; }
.cep__head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.cep__row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }

.totals { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.total {
  display: grid;
  gap: 2px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
}
.total--main { background: var(--red-soft); border-color: transparent; }
.total__label { font-size: var(--step--1); color: var(--muted); }
.total__value { font-size: var(--step-1); }
.total__extra { font-size: 0.8125rem; color: var(--muted); }

/* Selos */
.badges {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.badge { display: flex; align-items: flex-start; gap: 10px; font-size: var(--step--1); }
.badge strong { display: block; }
.badge__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--red);
  font-size: 0.875rem;
}
.badge__sub { color: var(--muted); }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 18px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-s);
  background: var(--card);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.btn:hover:not(:disabled) { border-color: var(--ink); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.btn--primary { background: var(--red); border-color: var(--red); color: #fff; font-size: var(--step-1); font-weight: 700; min-height: 56px; }
.btn--primary:hover:not(:disabled) { background: var(--red-hover); border-color: var(--red-hover); }
.btn--ghost { background: transparent; }
.btn--block { width: 100%; }

/* ---------- Como funciona · O que vem · Dúvidas ---------- */
.info { display: grid; gap: 48px; }
.info-section { display: grid; gap: 18px; align-content: start; }
.info-section__title { font-size: var(--step-2); }

.steps { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.step {
  display: flex;
  gap: 14px;
  padding: 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
}
.step__n {
  display: grid;
  place-items: center;
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-weight: 700;
}
.step__t { font-weight: 700; }
.step__d { color: var(--muted); font-size: var(--step--1); margin-top: 2px; }

.checklist { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.checklist li { display: flex; gap: 10px; }
.checklist li::before { content: "✓"; flex: none; color: var(--red); font-weight: 700; }

.faq__list { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 52px;
  padding: 10px 0;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q::after { content: "+"; flex: none; font-size: 1.375rem; font-weight: 400; color: var(--muted); transition: transform 0.15s; }
.faq__item[open] .faq__q::after { transform: rotate(45deg); }
.faq__a { padding: 0 0 16px; color: var(--muted); max-width: 70ch; }

/* ---------- Barra fixa de compra (celular) ---------- */
.sticky-buy {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 15;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: var(--card);
  border-top: 1px solid var(--line);
  box-shadow: 0 -6px 20px rgb(0 0 0 / 0.08);
}
.sticky-buy__total { display: grid; line-height: 1.25; min-width: 0; }
.sticky-buy__label { font-size: 0.8125rem; color: var(--muted); }
.sticky-buy__value { font-size: var(--step-1); white-space: nowrap; }
.sticky-buy .btn { min-height: 48px; padding: 0 22px; font-size: var(--step-0); }
body.has-sticky { padding-bottom: 76px; }

/* ---------- Avisos ---------- */
.notice { display: grid; gap: 12px; padding: 16px; border-radius: var(--radius-s); background: var(--card); border: 1px solid var(--line); }
.notice--error { border-color: var(--red); background: var(--red-soft); }
.notice--ok { border-left: 4px solid var(--red); }

/* ---------- Rodapé ---------- */
.store-footer { border-top: 1px solid var(--line); background: var(--card); color: var(--muted); font-size: var(--step--1); }
.store-footer__inner { display: grid; gap: 4px; max-width: var(--shell); margin: 0 auto; padding: 28px var(--gutter) 36px; }
.store-footer__brand { font-family: var(--serif); font-weight: 700; font-size: var(--step-1); color: var(--ink); }
.store-footer__links { display: flex; flex-wrap: wrap; gap: 4px 8px; }
.store-footer a { color: var(--ink); font-weight: 600; overflow-wrap: anywhere; }

/* ---------- Telas maiores ---------- */
@media (min-width: 720px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
  .step { flex-direction: column; }
}

@media (min-width: 960px) {
  .view { padding-top: 40px; }
  .product-page { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 48px; align-items: start; }
  .gallery { position: sticky; top: calc(var(--header-h) + 24px); }
  .info { grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); column-gap: 56px; }
  #how { grid-column: 1 / -1; }
  .sticky-buy { display: none !important; }
  body.has-sticky { padding-bottom: 0; }
}

@media (max-width: 380px) {
  .totals { grid-template-columns: 1fr; }
}

/* ---------- Conta ---------- */
.auth { display: grid; gap: 18px; width: 100%; max-width: 440px; }
.auth__title { font-size: var(--step-3); }
.auth__form { display: grid; gap: 16px; }
.auth-field { display: grid; gap: 8px; }
.auth__or {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: var(--step--1);
}
.auth__or::before, .auth__or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.auth__links { font-size: var(--step--1); color: var(--muted); }
.auth__links a { color: var(--red); font-weight: 600; }
.btn--google { gap: 10px; }
.notice__title { font-weight: 700; }

input[type="email"], input[type="password"], .password input[type="text"] {
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-s);
  font-size: var(--step-1);
  transition: border-color 0.15s;
}
input[type="email"]:hover, input[type="password"]:hover { border-color: var(--line-strong); }
input[type="email"]:focus-visible, input[type="password"]:focus-visible, .password input[type="text"]:focus-visible {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgb(159 8 17 / 0.18);
}
.password { position: relative; display: block; }
.password input { padding-right: 96px; }
.password__toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  min-height: 36px;
  padding: 0 10px;
  border: 0;
  border-radius: 8px;
  background: var(--paper);
  font-size: var(--step--1);
  font-weight: 600;
  cursor: pointer;
}
.turnstile:empty { display: none; }

/* ---------- Checkout ---------- */
.view--wide { justify-items: stretch; }
.topbar__orders { font-weight: 600; text-decoration: none; white-space: nowrap; }
.topbar__orders:hover { color: var(--red); }

.checkout { display: grid; gap: 24px; width: 100%; max-width: 1040px; margin: 0 auto; min-width: 0; }
.checkout__main { display: grid; gap: 20px; min-width: 0; }
.checkout__title, .order__title { font-size: var(--step-3); }
.co-section { display: grid; gap: 14px; margin: 0; padding: 18px; min-width: 0; border: 1px solid var(--line); border-radius: var(--radius-m); background: var(--card); }
/* Legend flutuante vira item comum do grid: o título fica dentro do cartão, não em cima da borda. */
.co-section > legend { float: left; width: 100%; margin: 0; }
.co-section__title { padding: 0; font-family: var(--serif); font-size: var(--step-1); font-weight: 700; }
.co-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
.co-field { display: grid; gap: 6px; min-width: 0; align-content: start; }
.co-field input, .co-field select { width: 100%; min-width: 0; }
.co-field select {
  min-height: 52px;
  padding: 0 12px;
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-s);
  font: inherit;
  color: var(--ink);
}
.co-field select:focus-visible { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgb(159 8 17 / 0.18); }
.co-field [aria-invalid="true"] { border-color: var(--error); }

.pay-options { display: grid; gap: 10px; }
.pay-option {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-s);
  cursor: pointer;
}
.pay-option:has(input:checked) { border-color: var(--red); background: var(--red-soft); }
.pay-option input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--red); flex: none; }
.pay-option__body { display: grid; gap: 2px; min-width: 0; }
.pay-option__name { font-weight: 700; }
.pay-option__unit, .pay-option__note { font-size: var(--step--1); color: var(--muted); }
.pay-option__total { font-weight: 600; }

.checkout__summary {
  display: grid;
  gap: 14px;
  align-content: start;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  background: var(--card);
}
.co-summary { display: grid; gap: 8px; margin: 0; }
.co-summary > div { display: flex; justify-content: space-between; gap: 12px; }
.co-summary dt { color: var(--muted); }
.co-summary dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.co-summary__total { padding-top: 10px; border-top: 1px solid var(--line); font-size: var(--step-1); }
.co-summary__total dt { color: var(--ink); font-weight: 700; }

/* ---------- Pedido e Meus pedidos ---------- */
.order, .orders { display: grid; gap: 18px; width: 100%; max-width: 720px; min-width: 0; }
.order__eyebrow { font-size: var(--step--1); color: var(--muted); }
.order__eyebrow a { color: var(--red); font-weight: 600; }
.order__status {
  justify-self: start;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--paper);
  border: 1px solid var(--line);
  font-size: var(--step--1);
  font-weight: 600;
}
.order__status--paid { background: #e7f4ea; border-color: #b9dcc2; color: #14532d; }
.order__status--awaiting_payment { background: #fff4d6; border-color: #f0d68a; color: #6b4e00; }
.order__status--expired, .order__status--canceled { color: var(--muted); }
.order__details { display: grid; gap: 14px; }
.order__block { display: grid; gap: 6px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius-m); background: var(--card); min-width: 0; overflow-wrap: anywhere; }
.order__block a { color: var(--red); font-weight: 600; }
.order-list { display: grid; gap: 12px; }
.orders__head { display: grid; gap: 6px; }

/* Cartão do pedido: miniatura estilo polaroide · detalhes e próximo passo · situação */
.order-card {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--line);
  border-radius: var(--radius-m);
  background: var(--card);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.order-card:hover { border-color: var(--ink); box-shadow: 0 4px 14px rgb(0 0 0 / 0.06); }
.order-card:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.order-card--awaiting_payment { border-left-color: #e0b84a; }
.order-card--awaiting_photos { border-left-color: var(--red); }
.order-card--photos_received, .order-card--in_production { border-left-color: #3f8f5a; }
.order-card--shipped, .order-card--delivered { border-left-color: #7a55b8; }
.order-card__thumb {
  display: block;
  padding: 4px 4px 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 3px;
  box-shadow: 0 1px 3px rgb(0 0 0 / 0.08);
  transform: rotate(-3deg);
}
/* height: auto é obrigatório: sem ele o atributo height="1464" da imagem vence e a miniatura estica o cartão. */
.order-card__thumb { width: 56px; min-width: 0; box-sizing: border-box; }
.order-card__img, .order-card__placeholder { display: block; width: 100%; height: auto; max-width: 100%; aspect-ratio: 1086 / 1464; object-fit: cover; }
.order-card__placeholder { display: grid; place-items: center; background: var(--paper); color: var(--muted); font-family: var(--serif); font-size: 1.25rem; }
.order-card__body { display: grid; gap: 3px; min-width: 0; }
.order-card__top { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.order-card__code { font-weight: 700; font-size: var(--step-1); }
.order-card__date, .order-card__meta { font-size: var(--step--1); color: var(--muted); }
.order-card__next { font-size: var(--step--1); font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.order-card__next--action { color: var(--red); }
.order-card__side { display: flex; align-items: center; gap: 10px; }
.order-card__chevron { font-size: 1.5rem; line-height: 1; color: var(--muted); }
.order-card .order__status { white-space: nowrap; }
.order__status--awaiting_photos { background: #fdecec; border-color: #f2c4c4; color: var(--red); }
.order__status--photos_received { background: #e7f4ea; border-color: #b9dcc2; color: #14532d; }
.order__status--in_production { background: var(--ink); border-color: var(--ink); color: #fff; }
.order__status--shipped, .order__status--delivered { background: #efe7fb; border-color: #d5c3f2; color: #4c2a85; }
@media (max-width: 520px) {
  .order-card { grid-template-columns: 48px minmax(0, 1fr); gap: 12px; padding: 12px; }
  .order-card__thumb { width: 48px; }
  .order-card__side { grid-column: 2; justify-content: space-between; }
}

@media (min-width: 720px) {
  .co-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .co-field--wide { grid-column: 1 / -1; }
}
@media (min-width: 960px) {
  .checkout { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; }
  .checkout__summary { position: sticky; top: calc(var(--header-h) + 16px); }
}
/* Celular: "Meus pedidos · Sair" sem o e-mail, para caber ao lado da marca. */
@media (max-width: 560px) {
  .topbar__email, .topbar__email + span[aria-hidden] { display: none; }
}

/* ---------- Fotos do pedido ---------- */
.photos { display: grid; gap: 16px; width: 100%; max-width: 860px; min-width: 0; }
.photos__progress { font-weight: 600; }
.photos__same { display: flex; gap: 10px; align-items: center; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--card); cursor: pointer; }
.photos__same input { width: 20px; height: 20px; accent-color: var(--red); flex: none; }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
/* Coluna: o botão desce para o fim do cartão, então todos ficam na mesma altura mesmo com o aviso de resolução. */
.slot { display: flex; flex-direction: column; gap: 8px; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius-m); background: var(--card); min-width: 0; }
.slot > .btn { margin-top: auto; }
/* No computador, cartões um pouco maiores para a moldura aparecer bem. */
@media (min-width: 720px) { .slots { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); } }
.slot--done { border-color: var(--line-strong); }
/* Moldura do Polarang (arte 980 × 1372). A janela da foto fica no lugar do vermelho "SUA FOTO AQUI". */
.slot__frame { border-radius: 4px; overflow: hidden; }
.slot__mockup { display: block; width: 100%; height: auto; aspect-ratio: 980 / 1372; }
.slot__window { position: absolute; left: 22.653%; top: 18.076%; width: 55.102%; height: 52.697%; background: #fff; }
.slot__img { display: block; width: 100%; height: 100%; object-fit: cover; }
.slot__label { font-weight: 600; font-size: var(--step--1); }
.slot__warn { font-size: 0.8125rem; color: var(--error); }
.slot__file { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
/* Botão do espaço: tamanho normal (não o do "Comprar"), texto numa linha só e centralizado. */
.slot .btn { min-height: 44px; padding: 0 10px; font-size: 0.9375rem; line-height: 1.2; text-align: center; white-space: nowrap; cursor: pointer; }
.slot__file:focus-visible + .btn, .slot .btn:focus-within { outline: 2px solid var(--ink); }

/* ---------- Editor de recorte ---------- */
.editor { width: min(100vw, 520px); max-width: 100vw; max-height: 100dvh; margin: auto; padding: 0; border: 0; border-radius: var(--radius-m); background: var(--card); color: var(--ink); }
.editor::backdrop { background: rgb(0 0 0 / 0.6); }
.editor__inner { display: grid; gap: 12px; padding: 16px; }
.editor__title { font-family: var(--serif); font-size: var(--step-1); }
.editor__frame { justify-self: center; width: min(100%, 300px, calc((100dvh - 300px) * 1086 / 1464)); min-width: 160px; padding: 10px 10px 30px; background: #fff; border: 1px solid var(--line); border-radius: 4px; box-shadow: 0 2px 10px rgb(0 0 0 / 0.12); }
.editor__canvas { display: block; width: 100%; aspect-ratio: 1086 / 1464; touch-action: none; cursor: grab; background: var(--paper); }
.editor__canvas:active { cursor: grabbing; }
.editor__canvas:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.editor__controls { display: flex; align-items: center; gap: 8px; }
.editor__zoom { flex: 1; min-width: 0; accent-color: var(--red); }
.editor__zoom-label { color: var(--muted); font-weight: 700; }
.editor__controls .btn { min-height: 44px; }
.editor__lowres { padding: 10px 12px; border-radius: var(--radius-s); background: var(--red-soft); color: var(--error); font-size: var(--step--1); }
.editor__actions { display: grid; grid-template-columns: 1fr 2fr; gap: 10px; }
@media (max-width: 560px) {
  .editor { width: 100vw; height: 100dvh; max-height: 100dvh; border-radius: 0; }
  .editor__inner { min-height: 100%; align-content: center; }
}
.photos > .btn { justify-self: start; }

/* Carregando ao trocar "mesma foto para todas": cartões esmaecidos com um aviso por cima. */
.slots { position: relative; }
.slots[aria-busy="true"] > .slot { opacity: 0.35; pointer-events: none; transition: opacity 0.15s; }
.slots__loading {
  position: absolute; inset: 0; z-index: 1;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  font-weight: 600; color: var(--ink);
}
.slots__loading::before {
  content: ""; width: 22px; height: 22px; flex: none;
  border: 3px solid var(--line); border-top-color: var(--red); border-radius: 50%;
  animation: slots-spin 0.8s linear infinite;
}
@keyframes slots-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .slots__loading::before { animation-duration: 2.4s; } }

/* Confirmar fotos: passo final, em destaque depois dos espaços. */
.photos__confirm { display: grid; gap: 10px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius-m); background: var(--card); }
@media (min-width: 720px) { .photos__confirm { grid-template-columns: 1fr minmax(220px, auto); align-items: center; } }

/* Carregando no cartão da foto: ao abrir, enviar e até a miniatura chegar. */
.slot__frame { position: relative; }
.slot__loading {
  position: absolute; inset: 0; z-index: 1;
  display: grid; place-content: center; justify-items: center; gap: 8px; padding: 8px;
  background: rgb(255 255 255 / 0.96);
  font-size: var(--step--1); font-weight: 600; color: var(--ink); text-align: center;
}
.slot__spinner {
  width: 26px; height: 26px;
  border: 3px solid var(--line); border-top-color: var(--red); border-radius: 50%;
  animation: slots-spin 0.8s linear infinite;
}
@media (prefers-reduced-motion: reduce) { .slot__spinner { animation-duration: 2.4s; } }
.slot--loading .btn { opacity: 0.55; pointer-events: none; }

/* Fotos confirmadas: aviso com o botão "Alterar fotos" ao lado (embaixo no celular). */
.photos__confirmed { display: grid; gap: 12px; }
@media (min-width: 720px) { .photos__confirmed { grid-template-columns: 1fr auto; align-items: center; } }

/* Preço único: explicação do Pix e do cartão (taxa repassada) no produto e no checkout. */
.price__note { display: block; margin-top: 4px; font-size: var(--step--1); }
.pay-info { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.pay-info__item { display: grid; gap: 2px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-s); }
.pay-info__note { font-size: var(--step--1); color: var(--muted); }

/* Prazo de produção sob encomenda, logo abaixo do resultado do frete. */
.buy__production { margin: -4px 0 0; font-size: var(--step--1); color: var(--muted); }

/* ---------- Frete: opções do Melhor Envio ---------- */
/* Produto: o frete mais barato num cartão; "Mais opções de frete" abre o modal. */
.ship-card__row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.ship-card__name { font-weight: 600; }
.ship-card__price { font-size: var(--step-1); white-space: nowrap; }
.ship-card__days { margin: 0; font-size: var(--step--1); color: var(--muted); }
.ship-card__more {
  justify-self: start; margin-top: 6px; padding: 4px 0; min-height: 32px; border: 0; background: none; cursor: pointer;
  font: inherit; font-size: var(--step--1); font-weight: 600; color: var(--red);
  text-decoration: underline; text-underline-offset: 3px;
}
.ship-card__more:hover { color: var(--ink); }
.ship-card__more:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 2px; }
/* Modal com todas as opções. */
.ship-modal { width: min(calc(100vw - 32px), 440px); max-height: calc(100dvh - 32px); margin: auto; padding: 0; border: 0; border-radius: var(--radius-m); background: var(--card); color: var(--ink); box-shadow: 0 12px 40px rgb(0 0 0 / 0.2); }
.ship-modal::backdrop { background: rgb(0 0 0 / 0.5); }
.ship-modal__inner { display: grid; gap: 12px; padding: 20px; }
.ship-modal__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ship-modal__title { margin: 0; font-family: var(--serif); font-size: var(--step-1); }
.ship-modal__close { width: 40px; height: 40px; flex: none; border: 1px solid var(--line); border-radius: 50%; background: var(--card); font-size: 1.375rem; line-height: 1; color: var(--ink); cursor: pointer; }
.ship-modal__close:hover { background: var(--paper); }
.ship-modal__sub { margin: -6px 0 0; font-size: var(--step--1); color: var(--muted); }
.ship-modal__list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.ship-modal__item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-s); }
.ship-modal__item--best { border-color: var(--red); background: var(--red-soft); }
.ship-modal__info { display: grid; gap: 2px; min-width: 0; }
.ship-modal__name { font-weight: 600; }
.ship-modal__days { font-size: var(--step--1); color: var(--muted); }
.ship-modal__tag { justify-self: start; margin-top: 4px; padding: 2px 8px; border-radius: 999px; background: var(--red); color: #fff; font-size: 0.75rem; font-weight: 700; }
.ship-modal__price { white-space: nowrap; font-size: 1rem; }
.ship-modal__note { margin: 0; font-size: var(--step--1); color: var(--muted); }
/* Checkout: um rádio por opção, a linha inteira é clicável. */
.ship-options { display: grid; gap: 8px; }
.ship-options[aria-busy="true"] { opacity: 0.5; pointer-events: none; }
.ship-option {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 2px 12px;
  padding: 12px 14px; min-height: 44px; border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--card); cursor: pointer;
}
.ship-option:has(.ship-option__radio:checked) { border-color: var(--red); box-shadow: inset 0 0 0 1px var(--red); background: var(--red-soft); }
.ship-option__radio { grid-row: span 2; width: 20px; height: 20px; margin: 0; accent-color: var(--red); }
.ship-option__name { font-weight: 600; }
.ship-option__price { grid-row: span 2; grid-column: 3; white-space: nowrap; }
.ship-option__days { grid-column: 2; font-size: var(--step--1); color: var(--muted); }
.ship-option:has(.ship-option__radio:focus-visible) { outline: 2px solid var(--ink); outline-offset: 2px; }
