/* ==========================================================================
   Aline Print — loja (PROTÓTIPO)
   Complementa /assets/css/style.css: usa as mesmas cores, fontes e botões.
   ========================================================================== */

/* ---------- 1. Utilitários e base ---------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.section--tight { padding: clamp(40px, 5vw, 72px) 0 clamp(64px, 8vw, 104px); }

.proto-bar {
  padding: 9px var(--gutter);
  background: var(--yellow);
  color: var(--ink);
  font-size: .875rem;
  line-height: 1.35;
  text-align: center;
}
.proto-bar a { color: inherit; font-weight: 700; text-underline-offset: 3px; }
.proto-bar b {
  margin-right: .6em;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.icon-btn {
  display: inline-grid;
  flex: none;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  transition: background-color .2s, border-color .2s;
}
.icon-btn:hover { border-color: var(--line-strong); background: var(--paper-2); }
.icon-btn .i { width: 20px; height: 20px; }

.btn[disabled],
.btn[aria-disabled="true"] { opacity: .45; pointer-events: none; box-shadow: none; }
.btn--dark { --btn-bg: var(--ink); --btn-fg: #fff; }
.btn--dark:hover { --btn-bg: #000; }
.btn--outline { --btn-fg: var(--ink); border-color: var(--line-strong); }
.btn--outline:hover { border-color: var(--ink); }
.btn--block { width: 100%; }

.link { font-weight: 700; color: var(--magenta-deep); text-underline-offset: 3px; }

/* Botão do carrinho no cabeçalho */
.cart-btn {
  position: relative;
  display: inline-grid;
  flex: none;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgb(255 255 255 / .16);
  border-radius: 12px;
  background: transparent;
  color: #fff;
  cursor: pointer;
  transition: background-color .2s, border-color .2s;
}
.cart-btn:hover { border-color: rgb(255 255 255 / .4); background: rgb(255 255 255 / .06); }
.cart-btn .i { width: 22px; height: 22px; }
.cart-btn__count {
  position: absolute;
  top: -7px;
  right: -7px;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--magenta-btn);
  color: #fff;
  font: 700 .75rem/18px var(--font-display);
  text-align: center;
}
.cart-btn.is-bump { animation: bump .4s var(--ease); }
@keyframes bump { 40% { transform: scale(1.18); } }

/* Aviso */
.notice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper-2);
  font-size: .9375rem;
  line-height: 1.5;
}
.notice .i { margin-top: 2px; color: var(--text-muted); }
.notice--proto { border-color: #e6d600; background: #fffbd0; }
.notice--proto .i { color: var(--ink); }
.notice--ok { border-color: #a9dfbf; background: #eafaf0; }
.notice--ok .i { color: var(--whatsapp-hover); }
.notice--warn { border-color: #f4b8d4; background: #fde7f2; }
.notice--warn .i { color: var(--magenta-deep); }

/* Toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: calc(100vw - 32px);
  padding: 14px 20px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  transform: translate(-50%, 0);
  animation: toast-in .35s var(--ease);
}
.toast .i { color: #6fe39a; }
.toast.is-leaving { opacity: 0; transform: translate(-50%, 12px); transition: opacity .3s, transform .3s; }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 16px); } }

/* Estado vazio */
.empty-state { display: grid; justify-items: center; gap: 14px; padding: clamp(40px, 8vw, 96px) 0; text-align: center; }
.empty-state__icon {
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: var(--paper-2);
  color: var(--text-muted);
}
.empty-state__icon .i { width: 36px; height: 36px; stroke-width: 1.6; }
.empty-state h1,
.empty-state h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); }
.empty-state p { max-width: 32rem; color: var(--text-muted); }
.empty-state .btn { margin-top: 8px; }

/* ---------- 2. Topo da loja ---------- */
.shop-hero {
  --focus: var(--yellow);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(40px, 6vw, 76px) 0 clamp(40px, 6vw, 68px);
  background: var(--ink);
  color: #fff;
}
.shop-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(circle, var(--magenta) 1.6px, transparent 2.2px);
  background-size: 16px 16px;
  -webkit-mask-image: radial-gradient(55% 110% at 100% 0%, #000, transparent 70%);
          mask-image: radial-gradient(55% 110% at 100% 0%, #000, transparent 70%);
  opacity: .5;
}
.shop-hero h1 {
  max-width: 17ch;
  font-size: clamp(2rem, 1.3rem + 2.8vw, 3.4rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -.03em;
}
.shop-hero p:not(.eyebrow) { max-width: 40rem; margin-top: 18px; font-size: 1.125rem; color: var(--on-dark-muted); }

.crumbs { display: flex; flex-wrap: wrap; gap: 6px 10px; margin-bottom: 28px; font-size: .9375rem; color: var(--text-muted); list-style: none; }
.crumbs li + li::before { content: "›"; margin-right: 10px; color: var(--line-strong); }
.crumbs a { color: inherit; text-underline-offset: 3px; }
.crumbs a:hover { color: var(--ink); }
.crumbs [aria-current] { color: var(--ink); font-weight: 500; }

/* ---------- 3. Catálogo ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.filter {
  padding: 11px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font: 600 .9375rem/1 var(--font-display);
  cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s;
}
.filter:hover { border-color: var(--ink); }
.filter[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: #fff; }
.filter span { margin-left: 6px; font-weight: 500; opacity: .6; }

.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 264px), 1fr)); gap: 24px; }

/* Painel com o desenho do produto */
.art {
  --art-bg: var(--paper-2);
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--art-bg);
}
.art::after {                     /* retícula */
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgb(32 30 30 / .16) 1.4px, transparent 2px);
  background-size: 14px 14px;
  -webkit-mask-image: linear-gradient(135deg, transparent 45%, #000);
          mask-image: linear-gradient(135deg, transparent 45%, #000);
  pointer-events: none;
}
.art svg { position: relative; z-index: 1; width: 78%; height: auto; }
.art--grafica { --art-bg: #d9f2fd; }
.art--brindes { --art-bg: #fde0ee; }
.art--personalizados { --art-bg: #fff8b8; }
.art--grande-formato { --art-bg: var(--ink); }
.art--grande-formato::after { background-image: radial-gradient(circle, rgb(255 255 255 / .2) 1.4px, transparent 2px); }

.product-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: inherit;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.product-card .art { aspect-ratio: 4 / 3; }
.product-card .art svg { transition: transform .5s var(--ease); }
.product-card:hover .art svg { transform: scale(1.05) rotate(-2deg); }
.product-card__body { display: flex; flex: 1; flex-direction: column; gap: 6px; padding: 20px 22px 22px; }
.product-card__cat {
  font: 600 .6875rem/1.2 var(--font-display);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--magenta-deep);
}
.product-card__name { font: 700 1.1875rem/1.25 var(--font-display); letter-spacing: -.01em; }
.product-card__desc { font-size: .9375rem; line-height: 1.5; color: var(--text-muted); }
.product-card__foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 14px;
}
.product-card__go {
  display: grid;
  flex: none;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--magenta-btn);
  color: #fff;
  transition: transform .3s var(--ease), background-color .2s;
}
.product-card:hover .product-card__go { background: var(--magenta-deep); transform: translateX(3px); }
.product-card__go .i { width: 20px; height: 20px; }

.price-from small {
  display: block;
  margin-bottom: 3px;
  font: 600 .6875rem/1.2 var(--font-display);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.price-from strong { font: 800 1.375rem/1 var(--font-display); letter-spacing: -.02em; }
.price-from em { font-style: normal; font-size: .875rem; font-weight: 500; color: var(--text-muted); }

/* ---------- 4. Página do produto ---------- */
.product { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.product__art { position: sticky; top: calc(var(--header-h) + 24px); }
.product__art .proof { --proof-pad: clamp(16px, 2.4vw, 28px); }
.product__art .art { aspect-ratio: 1; border-radius: var(--radius); }
.product__title { margin-top: 4px; font-size: clamp(1.9rem, 1.3rem + 2vw, 2.75rem); font-weight: 800; letter-spacing: -.03em; }
.product__desc { margin-top: 14px; font-size: 1.0625rem; color: var(--text-muted); }
.product__meta { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 18px; font-size: .9375rem; color: var(--text-muted); list-style: none; }
.product__meta li { display: inline-flex; align-items: center; gap: 8px; }
.product__meta .i { width: 18px; height: 18px; color: var(--magenta-deep); }
.product__form { display: grid; gap: 28px; margin-top: 32px; padding-top: 32px; border-top: 1px solid var(--line); }

.group { min-width: 0; margin: 0; padding: 0; border: 0; }
.group__title,
.label {
  display: block;
  margin-bottom: 10px;
  padding: 0;
  font: 600 .8125rem/1.3 var(--font-display);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink);
}

.options { display: grid; gap: 10px; }
.options--compact { grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); }
.options--cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.option { position: relative; display: block; cursor: pointer; }
.option input { position: absolute; opacity: 0; pointer-events: none; }
.option__box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 52px;
  padding: 12px 16px;
  border: 1.5px solid var(--line-strong);
  border-radius: 14px;
  background: #fff;
  font-weight: 500;
  line-height: 1.3;
  transition: border-color .2s, background-color .2s, box-shadow .2s;
}
.options--compact .option__box { justify-content: center; padding: 12px 8px; text-align: center; }
.option:hover .option__box { border-color: var(--ink); }
.option input:checked + .option__box { border-color: var(--magenta-btn); background: #fff5fa; box-shadow: 0 0 0 1.5px var(--magenta-btn); }
.option input:focus-visible + .option__box { outline: 3px solid var(--focus); outline-offset: 3px; }
.option__extra { flex: none; font-size: .875rem; font-weight: 700; color: var(--text-muted); white-space: nowrap; }
.option__sub { display: block; font-size: .8125rem; font-weight: 400; color: var(--text-muted); }

.measures { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.fit { margin-top: 12px; }

.tiers { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; list-style: none; }
.tiers li {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper-2);
  font-size: .875rem;
  line-height: 1.3;
  color: var(--text-muted);
}
.tiers li b { display: block; color: var(--ink); }
.tiers li.is-current { border-color: var(--magenta-btn); background: #fff5fa; }

.stepper { display: inline-flex; align-items: center; border: 1.5px solid var(--line-strong); border-radius: 14px; background: #fff; }
.stepper button {
  display: grid;
  place-items: center;
  width: 46px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}
.stepper button:hover { background: var(--paper-2); }
.stepper button:disabled { opacity: .3; cursor: default; }
.stepper input {
  width: 64px;
  height: 48px;
  padding: 0;
  border: 0;
  background: transparent;
  font: 700 1.0625rem/1 var(--font-display);
  text-align: center;
  color: var(--ink);
  -moz-appearance: textfield;
       appearance: textfield;
}
.stepper input::-webkit-outer-spin-button,
.stepper input::-webkit-inner-spin-button { margin: 0; -webkit-appearance: none; }
.stepper--sm button { width: 36px; height: 36px; }
.stepper--sm input { width: 44px; height: 36px; font-size: .9375rem; }
.stepper--sm { border-radius: 11px; }

/* Campos de formulário */
.field { display: grid; align-content: start; min-width: 0; }
.field .label span { font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--text-muted); }
.input,
.select,
.textarea {
  width: 100%;
  min-height: 52px;
  padding: 13px 16px;
  border: 1.5px solid var(--line-strong);
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  transition: border-color .2s, box-shadow .2s;
}
.textarea { min-height: 96px; resize: vertical; }
.select {
  padding-right: 44px;
  -webkit-appearance: none;
          appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23201E1E' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
.input:hover,
.select:hover,
.textarea:hover { border-color: var(--ink); }
.input:focus,
.select:focus,
.textarea:focus { outline: none; border-color: var(--magenta-btn); box-shadow: 0 0 0 3px rgb(225 24 127 / .2); }
.input[aria-invalid="true"],
.textarea[aria-invalid="true"] { border-color: #c81e1e; }
.input[readonly] { background: var(--paper-2); color: var(--text-muted); cursor: not-allowed; }
.input-suffix { position: relative; }
.input-suffix .input { padding-right: 48px; }
.input-suffix span { position: absolute; top: 50%; right: 16px; color: var(--text-muted); font-weight: 500; transform: translateY(-50%); pointer-events: none; }
.hint { margin-top: 8px; font-size: .875rem; color: var(--text-muted); }
.error { margin-top: 8px; font-size: .875rem; font-weight: 500; color: #b91c1c; }
.error:empty { display: none; }

.upload {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 12px;
  padding: 16px;
  border: 1.5px dashed var(--line-strong);
  border-radius: 14px;
  background: var(--paper-2);
}
.upload .i { width: 26px; height: 26px; color: var(--text-muted); }
.upload input { max-width: 100%; font: inherit; font-size: .9375rem; }

/* Total e botão de comprar */
.buy {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  padding: 20px 22px;
  border-radius: var(--radius);
  background: var(--ink);
  color: #fff;
}
.buy__label { font: 600 .6875rem/1.2 var(--font-display); letter-spacing: .12em; text-transform: uppercase; color: var(--on-dark-muted); }
.buy__price { margin-top: 4px; font: 800 clamp(1.75rem, 1.4rem + 1.4vw, 2.25rem)/1 var(--font-display); letter-spacing: -.03em; }
.buy__unit { margin-top: 6px; font-size: .875rem; color: var(--on-dark-muted); }
.buy .btn { --focus: var(--yellow); }

/* ---------- 5. Carrinho (gaveta) ---------- */
.drawer {
  width: min(100%, 460px);
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0 0 0 auto;
  padding: 0;
  border: 0;
  background: #fff;
  color: var(--ink);
  box-shadow: -24px 0 60px rgb(0 0 0 / .25);
}
.drawer[open] { display: flex; flex-direction: column; animation: drawer-in .35s var(--ease); }
.drawer::backdrop { background: rgb(32 30 30 / .55); animation: fade-in .3s; }
@keyframes drawer-in { from { transform: translateX(100%); } }
@keyframes fade-in { from { opacity: 0; } }
.drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
}
.drawer__head h2 { font-size: 1.375rem; }
.drawer__body { flex: 1; overflow-y: auto; padding: 8px 24px; overscroll-behavior: contain; }
.drawer__foot { display: grid; gap: 12px; padding: 20px 24px 24px; border-top: 1px solid var(--line); background: var(--paper-2); }
.drawer__total { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.drawer__total span { color: var(--text-muted); }
.drawer__total strong { font: 800 1.5rem/1 var(--font-display); letter-spacing: -.02em; }

.cart-item { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.cart-item:last-child { border-bottom: 0; }
.cart-item .art { width: 76px; height: 76px; border-radius: 14px; }
.cart-item .art::after { display: none; }
.cart-item__name { font: 700 1rem/1.3 var(--font-display); }
.cart-item__opts { margin-top: 4px; font-size: .875rem; line-height: 1.45; color: var(--text-muted); list-style: none; }
.cart-item__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; }
.cart-item__price { font: 700 1.0625rem/1 var(--font-display); white-space: nowrap; }
.cart-item__remove {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--text-muted);
  font: inherit;
  font-size: .875rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.cart-item__remove:hover { color: #b91c1c; }
.cart-item__remove .i { width: 15px; height: 15px; }

/* ---------- 6. Checkout ---------- */
.page-title { margin-bottom: clamp(24px, 3vw, 36px); font-size: clamp(1.9rem, 1.3rem + 2vw, 2.75rem); font-weight: 800; letter-spacing: -.03em; }
.checkout { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.checkout__steps { display: grid; gap: 20px; }

.panel { padding: clamp(20px, 2.6vw, 30px); border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.panel__head { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.panel__head h2 { font-size: 1.3125rem; }
.panel__num {
  display: grid;
  flex: none;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--cyan);
  color: var(--ink);
  font: 800 1rem/1 var(--font-display);
}
.panel--m .panel__num { background: var(--magenta); }
.panel--y .panel__num { background: var(--yellow); }

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.form-grid .field--full { grid-column: 1 / -1; }
.field--spaced { margin-top: 18px; }
.panel__actions { margin-top: 24px; }
.admin-note { margin-bottom: 24px; }

.choice .option__box { align-items: flex-start; padding: 16px; }
.choice__icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--paper-2);
}
.choice__text { flex: 1; }
.choice__text b { display: block; font-family: var(--font-display); font-weight: 600; }
.choice__text span { display: block; margin-top: 2px; font-size: .875rem; font-weight: 400; color: var(--text-muted); }
.choice .option__box { justify-content: flex-start; gap: 14px; }
.choice .option__extra { align-self: center; color: var(--ink); }

.pay-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.pay-tab {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 16px 8px;
  border: 1.5px solid var(--line-strong);
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  font: 600 .9375rem/1.2 var(--font-display);
  cursor: pointer;
  transition: border-color .2s, background-color .2s, box-shadow .2s;
}
.pay-tab .i { width: 26px; height: 26px; stroke-width: 1.7; }
.pay-tab:hover { border-color: var(--ink); }
.pay-tab[aria-selected="true"] { border-color: var(--magenta-btn); background: #fff5fa; box-shadow: 0 0 0 1.5px var(--magenta-btn); }
.pay-panel { display: grid; gap: 16px; margin-top: 18px; }
.pay-panel[hidden] { display: none; }
.pay-panel > p { color: var(--text-muted); }

.cardmock { display: grid; gap: 14px; }
.cardmock__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }

.secure { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 14px; font-size: .875rem; color: var(--text-muted); }
.secure .i { width: 16px; height: 16px; }

/* Resumo do pedido */
.summary { position: sticky; top: calc(var(--header-h) + 24px); }
.summary h2 { margin-bottom: 8px; font-size: 1.3125rem; }
.summary__items { list-style: none; }
.summary__item { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 14px; align-items: start; padding: 16px 0; border-bottom: 1px solid var(--line); }
.summary__item .art { width: 56px; height: 56px; border-radius: 12px; }
.summary__item .art::after { display: none; }
.summary__item b { display: block; font-family: var(--font-display); font-weight: 600; line-height: 1.3; }
.summary__item small { display: block; margin-top: 3px; font-size: .8125rem; line-height: 1.45; color: var(--text-muted); }
.summary__item > strong { font: 700 .9375rem/1.3 var(--font-display); white-space: nowrap; }
.summary__rows { display: grid; gap: 10px; padding: 18px 0; }
.summary__row { display: flex; justify-content: space-between; gap: 16px; color: var(--text-muted); }
.summary__row b { color: var(--ink); font-weight: 600; }
.summary__total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-top: 18px;
  border-top: 2px solid var(--ink);
}
.summary__total span { font: 600 1rem/1 var(--font-display); }
.summary__total strong { font: 800 1.75rem/1 var(--font-display); letter-spacing: -.03em; }
.summary .btn { margin-top: 22px; }

/* ---------- 7. Pedido confirmado / acompanhamento ---------- */
.order { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.order__main { display: grid; gap: 20px; }

.order-hero { display: flex; align-items: center; gap: 22px; padding: clamp(24px, 3vw, 36px); border-radius: var(--radius); background: var(--ink); color: #fff; }
.order-hero__icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--ink);
}
.order-hero__icon .i { width: 34px; height: 34px; stroke-width: 2.4; }
.order-hero.is-paid .order-hero__icon { background: #35d07f; animation: pop .5s var(--ease); }
.order-hero__num { font: 600 .8125rem/1.3 var(--font-display); letter-spacing: .12em; text-transform: uppercase; color: var(--on-dark-muted); }
.order-hero h1 { margin-top: 6px; font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.25rem); font-weight: 800; letter-spacing: -.02em; }
.order-hero p { margin-top: 8px; color: var(--on-dark-muted); }
@keyframes pop { 0% { transform: scale(.6); } 60% { transform: scale(1.12); } }

.spinner {
  width: 34px;
  height: 34px;
  border: 4px solid rgb(32 30 30 / .2);
  border-top-color: var(--ink);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.timeline { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); list-style: none; }
.timeline__step { position: relative; display: grid; justify-items: center; gap: 10px; padding-top: 2px; text-align: center; font-size: .875rem; line-height: 1.3; color: var(--text-muted); }
.timeline__step::before {            /* linha até o passo anterior */
  content: "";
  position: absolute;
  top: 17px;
  right: 50%;
  width: 100%;
  height: 3px;
  background: var(--line);
}
.timeline__step:first-child::before { display: none; }
.timeline__dot {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 3px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: transparent;
}
.timeline__dot .i { width: 16px; height: 16px; stroke-width: 3; }
.timeline__step.is-done { color: var(--ink); }
.timeline__step.is-done::before,
.timeline__step.is-current::before { background: var(--magenta-btn); }
.timeline__step.is-done .timeline__dot { border-color: var(--magenta-btn); background: var(--magenta-btn); color: #fff; }
.timeline__step.is-current { color: var(--ink); font-weight: 700; }
.timeline__step.is-current .timeline__dot { border-color: var(--magenta-btn); box-shadow: 0 0 0 5px rgb(225 24 127 / .16); }

.paybox { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 24px; align-items: center; }
.paybox--stack { grid-template-columns: 1fr; }
.qr { position: relative; width: 188px; padding: 10px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.qr svg { display: block; width: 100%; height: auto; }
.qr__tag {
  position: absolute;
  top: 50%;
  left: 50%;
  padding: 6px 12px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--yellow);
  color: var(--ink);
  font: 800 .75rem/1 var(--font-display);
  letter-spacing: .12em;
  transform: translate(-50%, -50%) rotate(-8deg);
}
.copy { display: flex; gap: 8px; margin-top: 12px; }
.copy code {
  flex: 1;
  min-width: 0;
  padding: 12px 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper-2);
  font: 500 .8125rem/1.4 ui-monospace, "Cascadia Mono", Consolas, monospace;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.barcode { width: 100%; height: 64px; }
.waiting { display: flex; align-items: center; gap: 12px; margin-top: 16px; font-weight: 500; }
.waiting .spinner { width: 22px; height: 22px; border-width: 3px; }

.next-steps { display: grid; gap: 14px; counter-reset: passo; list-style: none; }
.next-steps li { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 14px; align-items: start; counter-increment: passo; }
.next-steps li::before {
  content: counter(passo);
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--paper-2);
  font: 700 .875rem/1 var(--font-display);
}
.next-steps b { font-family: var(--font-display); font-weight: 600; }
.next-steps span { display: block; color: var(--text-muted); }

/* ---------- 8. Painel de pedidos ---------- */
.admin-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 24px; margin-bottom: 24px; }
.admin-head .page-title { margin-bottom: 0; }
.admin-head p { margin-top: 8px; color: var(--text-muted); }
.admin-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 24px; }
.tile { padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.tile__label { font: 600 .6875rem/1.3 var(--font-display); letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted); }
.tile__value { margin-top: 10px; font: 800 clamp(1.5rem, 1.2rem + 1.2vw, 2.125rem)/1 var(--font-display); letter-spacing: -.03em; }
.tile__bar { width: 36px; height: 5px; margin-bottom: 14px; border-radius: 3px; background: var(--cyan); }
.tile--m .tile__bar { background: var(--magenta); }
.tile--y .tile__bar { background: var(--yellow); }
.tile--k .tile__bar { background: var(--ink); }

.orders-wrap { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.orders { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.orders th {
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--paper-2);
  font: 600 .6875rem/1.3 var(--font-display);
  letter-spacing: .12em;
  text-align: left;
  text-transform: uppercase;
  color: var(--text-muted);
}
.orders td { padding: 16px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
.orders tr:last-child td { border-bottom: 0; }
.orders tr.is-new td { animation: flash 2.4s ease-out; }
@keyframes flash { from { background: #fff5b0; } }
.orders b { font-family: var(--font-display); font-weight: 600; }
.orders small { display: block; margin-top: 2px; font-size: .8125rem; color: var(--text-muted); }
.orders ul { list-style: none; }
.orders .num { font: 700 1rem/1.3 var(--font-display); color: var(--ink); text-underline-offset: 3px; white-space: nowrap; }
.orders .num + .tag-exemplo + small,
.orders .num + small { white-space: nowrap; }
.orders .money { font: 700 1rem/1.3 var(--font-display); white-space: nowrap; }
.orders .select { min-width: 216px; min-height: 42px; padding: 8px 40px 8px 12px; border-radius: 10px; font-size: .9375rem; }
.orders th:nth-child(2),
.orders td:nth-child(2) { min-width: 190px; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--paper-2);
  font: 600 .75rem/1.2 var(--font-display);
  white-space: nowrap;
}
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill--aguardando { background: #fff3c4; color: #7a5b00; }
.pill--pago { background: #dcf7e8; color: #136c3a; }
.tag-exemplo {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 7px;
  border-radius: 6px;
  background: var(--paper-2);
  font: 600 .625rem/1.4 var(--font-display);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-muted);
  vertical-align: middle;
}

/* ---------- 9. Responsivo ---------- */
@media (max-width: 980px) {
  .checkout,
  .order { grid-template-columns: 1fr; }
  .summary { position: static; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .product { grid-template-columns: 1fr; }
  .product__art { position: static; width: 100%; max-width: 520px; margin-inline: auto; }

  /* Tabela de pedidos vira cartões */
  .orders thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .orders,
  .orders tbody,
  .orders tr,
  .orders td { display: block; width: 100%; }
  .orders tr { padding: 8px 0; border-bottom: 1px solid var(--line); }
  .orders tr:last-child { border-bottom: 0; }
  .orders td { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 12px; padding: 8px 18px; border: 0; }
  .orders td:nth-child(2),
  .orders .select { min-width: 0; }
  .orders td::before {
    content: attr(data-rotulo);
    padding-top: 3px;
    font: 600 .6875rem/1.3 var(--font-display);
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--text-muted);
  }
}

@media (max-width: 640px) {
  .proto-bar { font-size: .8125rem; }
  .proto-bar b { display: block; margin: 0 0 2px; }

  /* Catálogo em duas colunas, com cartões mais enxutos */
  .products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .product-card { border-radius: 16px; }
  .product-card__body { gap: 4px; padding: 14px 14px 16px; }
  .product-card__cat { font-size: .625rem; letter-spacing: .08em; }
  .product-card__name { font-size: 1rem; }
  .product-card__desc { display: none; }
  .product-card__foot { padding-top: 10px; }
  .product-card__go { display: none; }
  .price-from small { font-size: .625rem; letter-spacing: .06em; }
  .price-from strong { font-size: 1.125rem; }

  .options--cols,
  .form-grid,
  .cardmock__row { grid-template-columns: 1fr; }
  .buy .btn { width: 100%; }

  .pay-tab { padding: 14px 4px; font-size: .875rem; }

  .order-hero { flex-direction: column; align-items: flex-start; }
  .paybox { grid-template-columns: 1fr; justify-items: start; }

  /* Linha do tempo em pé */
  .timeline { grid-template-columns: 1fr; gap: 0; }
  .timeline__step { grid-template-columns: 34px minmax(0, 1fr); justify-items: start; align-items: center; gap: 14px; padding: 10px 0; text-align: left; font-size: .9375rem; }
  .timeline__step::before { top: auto; right: auto; bottom: 50%; left: 15.5px; width: 3px; height: 100%; }

  .tiles { gap: 12px; }
  .tile { padding: 16px; }

  .drawer__head,
  .drawer__foot { padding-inline: 18px; }
  .drawer__body { padding-inline: 18px; }

  .toast { bottom: 92px; border-radius: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .spinner { animation-duration: 2s !important; animation-iteration-count: infinite !important; }
}
