/* ==========================================================================
   G&M Studio — página de loja virtual
   Base: styles.css. A cor só existe dentro da demonstração, no produto.
   ========================================================================== */

.btn--ink { background: #0a0a0a; color: #fff; }
.btn--ink:hover { background: #26262a; }

/* Hero: mais baixo que o da home, para a demonstração aparecer logo */
.hero--loja { min-height: 0; padding: 7.5rem 0 4.5rem; }
.display--loja { font-size: clamp(2.5rem, 6vw, 5rem); line-height: 1.02; }
.hero__content .display--loja { max-width: 19ch; }
.display--loja .serif { display: block; margin-top: 0.08em; }

/* --------------------------------------------------------------------------
   Demonstração: moldura e abas
   -------------------------------------------------------------------------- */
.dm-sec { padding-top: clamp(1rem, 3vw, 2.5rem); }
.dm-sec__title { max-width: 22ch; }
.dm-sec__lead { max-width: 44rem; }

.dm { --shop-cor: #6d2435; position: relative; }
.js .dm[data-reveal] { filter: none; } /* sem blur num bloco tão grande */

.dm__tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.35rem;
  margin-bottom: 0.75rem;
  padding: 0.35rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
}
.dm__tabs button {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  padding: 0.7rem 0.95rem;
  border: 0;
  border-radius: 15px;
  background: transparent;
  color: var(--muted);
  text-align: left;
  cursor: pointer;
  transition: background-color .3s var(--spring), color .2s, transform .4s var(--spring);
}
.dm__tabs b { display: flex; align-items: center; gap: 0.5rem; font-size: 0.975rem; font-weight: 600; letter-spacing: -0.015em; white-space: nowrap; }
.dm__tabs small { font-size: 0.78rem; line-height: 1.3; opacity: 0.85; }
.dm__tabs button:hover { color: var(--fg); background: rgba(255, 255, 255, 0.05); }
.dm__tabs button:active { transform: scale(0.98); }
.dm__tabs button[aria-selected="true"] { background: #fff; color: #0a0a0a; }
.dm__ping { width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: ping 1.6s var(--spring) infinite; }

.dm__frame { overflow: clip; }
.dm__frame .browser__status { flex: none; }
.dm__view:focus-visible { outline-offset: -3px; }
[data-dm-url] { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.dm__toast {
  position: sticky;
  bottom: 1rem;
  z-index: 5;
  width: fit-content;
  margin: -3.5rem auto 1rem;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  background: #0a0a0a;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 500;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 16px 40px -12px rgba(0, 0, 0, 0.7);
  pointer-events: none;
  animation: fadeUp .5s var(--spring);
}

/* --------------------------------------------------------------------------
   Loja: o lado do cliente é claro, o seu lado é escuro
   -------------------------------------------------------------------------- */
.shop {
  --ink: #111113;
  --ink-2: #5d5d66;
  --ink-line: rgba(10, 10, 12, 0.12);
  background: #f6f6f4;
  color: var(--ink);
  font-size: 0.975rem;
}
.shop strong { color: inherit; }
.shop ::selection { background: #0a0a0a; color: #fff; }
.shop:focus-visible, .shop :focus-visible { outline-color: #0a0a0a; }

.shop__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem clamp(1rem, 2.5vw, 1.75rem);
  background: #fff;
  border-bottom: 1px solid var(--ink-line);
}
.shop__brand { font-family: var(--serif); font-size: 1.4rem; line-height: 1; }
.shop__brand small { font-family: var(--font); font-size: 0.8rem; color: var(--ink-2); margin-left: 0.35rem; }
.shop__cart { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.85rem; color: var(--ink-2); }

.shop__step { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); align-items: start; }
.shop__step[hidden] { display: none; }
.shop__step--pay, .shop__step--ok { display: block; }

.shop__stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: min(38rem, calc(100svh - 7rem));
  padding: 2rem 1.5rem 3.75rem;
  overflow: clip;
}
.shop__tint {
  position: absolute;
  inset: 0;
  background: var(--shop-cor);
  opacity: 0.2;
  -webkit-mask-image: radial-gradient(60% 55% at 50% 50%, #000, transparent);
  mask-image: radial-gradient(60% 55% at 50% 50%, #000, transparent);
  transition: background-color .6s ease;
}
.shop__avail {
  position: absolute;
  left: 50%;
  bottom: 1.1rem;
  translate: -50% 0;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--ink-line);
  font-size: 0.82rem;
  font-weight: 500;
  white-space: nowrap;
}
.shop__avail i { width: 7px; height: 7px; border-radius: 50%; background: #111113; }
.shop__avail.is-made i { background: transparent; box-shadow: inset 0 0 0 1.5px #111113; }

.shop__mini { display: flex; align-items: center; gap: 1rem; padding: 0.75rem 1rem; border-radius: 14px; background: #f6f6f4; }
.shop__mini-nb { flex: none; display: grid; place-items: center; width: 8.75rem; font-size: 6px; }
.shop__mini-nb .nb__pages { box-shadow: 0 1em 1.6em -0.5em rgba(10, 10, 12, 0.4); }
.shop__mini-nb .nb--linho .nb__cover::before { opacity: 0.22; }
.shop__mini-txt span { display: block; font-size: 0.82rem; color: var(--ink-2); }
.shop__mini-txt strong { font-size: 1.35rem; font-weight: 600; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }

.shop__form {
  display: grid;
  gap: 1.35rem;
  padding: clamp(1.25rem, 2.5vw, 2rem);
  background: #fff;
  border-left: 1px solid var(--ink-line);
  align-self: stretch;
}
.shop__title h3 { margin: 0; font: 400 2.1rem/1.05 var(--serif); letter-spacing: -0.01em; }
.shop__price { margin: 0.4rem 0 0; font-size: 2rem; font-weight: 600; letter-spacing: -0.04em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.shop__or { margin: 0.15rem 0 0; font-size: 0.85rem; color: var(--ink-2); font-variant-numeric: tabular-nums; }

.f { min-width: 0; margin: 0; padding: 0; border: 0; display: grid; gap: 0.55rem; }
.f[hidden] { display: none; }
.f legend { padding: 0; margin-bottom: 0.55rem; font-size: 0.85rem; font-weight: 500; color: var(--ink-2); }
.f legend b { color: var(--ink); font-weight: 600; }

.opts { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.opts--catalog { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.opt { position: relative; cursor: pointer; }
.opt input, .swatch input, .shipopt input { position: absolute; opacity: 0; width: 100%; height: 100%; inset: 0; margin: 0; cursor: pointer; }
.opt span {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  height: 100%;
  padding: 0.5rem 0.8rem;
  border-radius: 11px;
  border: 1px solid var(--ink-line);
  font-size: 0.875rem;
  font-weight: 500;
  transition: background-color .2s, color .2s, border-color .2s, transform .35s var(--spring);
}
.opt small { font-size: 0.75rem; font-weight: 400; color: var(--ink-2); transition: color .2s; }
.opt--cat span { flex-direction: column; gap: 0.05rem; line-height: 1.25; }
.opt:hover span { border-color: rgba(10, 10, 12, 0.35); }
.opt input:checked + span { background: #111113; color: #fff; border-color: #111113; }
.opt input:checked + span small { color: rgba(255, 255, 255, 0.72); }
.opt input:active + span { transform: scale(0.97); }
.opt input:focus-visible + span, .swatch input:focus-visible ~ i, .shipopt:has(input:focus-visible) { outline: 2px solid #111113; outline-offset: 2px; }

.swatches { display: flex; flex-wrap: wrap; gap: 0.55rem; }
.swatch { position: relative; width: 2.25rem; height: 2.25rem; cursor: pointer; }
.swatch i {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--cor);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12);
  transition: transform .35s var(--spring), box-shadow .2s;
}
.swatch:hover i { transform: scale(1.07); }
.swatch input:checked ~ i { box-shadow: 0 0 0 2px #fff, 0 0 0 4px #111113; }

.field {
  width: 100%;
  height: 2.75rem;
  padding: 0 0.85rem;
  border-radius: 11px;
  border: 1px solid var(--ink-line);
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 1rem; /* evita o zoom automático no iPhone */
}
.field::placeholder { color: #85858d; }
.field:focus { outline: 2px solid #111113; outline-offset: 1px; border-color: transparent; }
.field--cep { max-width: 13rem; font-variant-numeric: tabular-nums; }

.pers { margin-top: 0.15rem; }
.pers[hidden] { display: none; }
.upload {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  height: 2.75rem;
  padding: 0 1rem;
  border-radius: 11px;
  border: 1px dashed rgba(10, 10, 12, 0.4);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color .2s;
}
.upload:hover { background: rgba(10, 10, 12, 0.04); }
.upload:has(input:focus-visible) { outline: 2px solid #111113; outline-offset: 2px; }
.upload--sm { height: 2.4rem; font-size: 0.85rem; justify-content: center; }
.hint { margin: 0.1rem 0 0; font-size: 0.8rem; line-height: 1.4; color: var(--ink-2); }
.hint.is-error { color: #a4161a; }

.ship { display: grid; gap: 0.35rem; }
.shipopt {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.6rem 0.85rem;
  border-radius: 11px;
  border: 1px solid var(--ink-line);
  cursor: pointer;
  transition: border-color .2s, box-shadow .2s;
}
.shipopt span { display: flex; flex-direction: column; line-height: 1.3; }
.shipopt b { font-size: 0.9rem; font-weight: 500; }
.shipopt small { font-size: 0.78rem; color: var(--ink-2); }
.shipopt em { font-style: normal; font-size: 0.9rem; font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; }
.shipopt:hover { border-color: rgba(10, 10, 12, 0.35); }
.shipopt:has(input:checked) { border-color: #111113; box-shadow: inset 0 0 0 1px #111113; }

.sbtn {
  width: 100%;
  height: 3.1rem;
  padding: 0 1.25rem;
  border: 0;
  border-radius: 999px;
  background: #111113;
  color: #fff;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: transform .4s var(--spring), background-color .2s;
}
.sbtn:hover { background: #2b2b30; }
.sbtn:active { transform: scale(0.98); transition-duration: .1s; }
.sbtn:disabled { background: #6a6a72; cursor: progress; }
.sbtn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px rgba(10, 10, 12, 0.3); }
.sbtn--ghost:hover { background: rgba(10, 10, 12, 0.05); }
.sbtn--sm { height: 2.4rem; font-size: 0.85rem; padding: 0 1rem; }

/* --------------------------------------------------------------------------
   O caderno — medidas em em: o mesmo desenho serve de produto e de miniatura
   -------------------------------------------------------------------------- */
.nb-holder { --rx: 3deg; --ry: -8deg; --foil: 50%; position: relative; font-size: clamp(14px, 1.45vw, 19px); perspective: 60em; }
.nb {
  --w: 14.8em;
  --h: 21em;
  position: relative;
  width: var(--w);
  height: var(--h);
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transform-style: preserve-3d;
  transition: transform .5s var(--spring), width .6s var(--spring), height .6s var(--spring);
}
.nb--a6 { --w: 11em; --h: 15.6em; }
.nb--pl { --w: 21em; --h: 14.8em; }
.nb__pages {
  position: absolute;
  inset: 0.35em -0.3em -0.35em 0.5em;
  border-radius: 0 0.45em 0.45em 0;
  background: repeating-linear-gradient(0deg, #f3f1ea 0 0.08em, #dcd9cf 0.08em 0.14em);
  box-shadow: 0 1.8em 2.6em -0.8em rgba(10, 10, 12, 0.45), 0 0.5em 1em -0.3em rgba(10, 10, 12, 0.3);
}
.nb__cover {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template: minmax(0, 1fr) / minmax(0, 1fr);
  place-items: center;
  overflow: hidden;
  border-radius: 0.25em 0.55em 0.55em 0.25em;
  background-color: var(--cor);
  box-shadow: inset 0 0 0 0.04em rgba(255, 255, 255, 0.1), inset 0 0.08em 0.1em rgba(255, 255, 255, 0.14);
  transition: background-color .45s ease;
}
/* textura de cada material */
.nb__cover::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.5;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .5 0 0 0 0 .5 0 0 0 1.2 -.1'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)'/%3E%3C/svg%3E");
}
.nb--linho .nb__cover::before {
  opacity: 0.55;
  background-image:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.5) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.55) 0 1px, transparent 1px 3px);
}
.nb--couro .nb__cover::before {
  opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='turbulence' baseFrequency='.22' numOctaves='3'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .5 0 0 0 0 .5 0 0 0 2 -.45'/%3E%3C/filter%3E%3Crect width='260' height='260' filter='url(%23n)'/%3E%3C/svg%3E");
}
.nb--couro .nb__cover { box-shadow: inset 0 0 0 0.04em rgba(255, 255, 255, 0.1), inset 0 0 2.4em rgba(0, 0, 0, 0.22); }
.nb__spine {
  position: absolute;
  inset: 0 auto 0 0;
  width: 1.15em;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.26), rgba(255, 255, 255, 0.07) 62%, rgba(0, 0, 0, 0.3) 66%, transparent 74%);
}
.nb__band {
  position: absolute;
  inset: 0 1.5em 0 auto;
  width: 0.5em;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.3));
  box-shadow: -0.04em 0 0.1em rgba(0, 0, 0, 0.25);
}
.nb--pl .nb__band { display: none; }
.nb__stamp {
  position: relative;
  font-family: var(--serif);
  line-height: 1.1;
  text-align: center;
  white-space: nowrap;
  /* acabamento: baixo relevo */
  color: rgba(0, 0, 0, 0.42);
  text-shadow: 0 0.025em 0 rgba(255, 255, 255, 0.2);
}
.nb--light .nb__stamp { color: rgba(0, 0, 0, 0.5); text-shadow: 0 0.025em 0 rgba(255, 255, 255, 0.45); }
.nb--dourado .nb__stamp, .nb--prateado .nb__stamp {
  color: transparent;
  text-shadow: none;
  background-size: 260% 100%;
  background-position: var(--foil, 50%) 0;
  -webkit-background-clip: text;
  background-clip: text;
}
.nb--dourado .nb__stamp { background-image: linear-gradient(100deg, #a97f2e, #f5dfa0 42%, #fff5d0 50%, #e2c070 58%, #9c7426); }
.nb--prateado .nb__stamp { background-image: linear-gradient(100deg, #8c9198, #e4e7ea 42%, #fff 50%, #cfd3d8 58%, #80858c); }
.nb--light.nb--dourado .nb__stamp { background-image: linear-gradient(100deg, #6e4f12, #a8812c 42%, #d2ad5a 50%, #96701f 58%, #5f430d); }
.nb--light.nb--prateado .nb__stamp { background-image: linear-gradient(100deg, #4a4e54, #7d8289 42%, #aab0b6 50%, #71767c 58%, #3e4247); }
.nb__logo { position: relative; max-width: 54%; max-height: 42%; object-fit: contain; border-radius: 0.15em; translate: -0.45em 0; }
.nb--pl .nb__logo { translate: 0.2em 0; }

/* --------------------------------------------------------------------------
   Pagamento e pedido pago
   -------------------------------------------------------------------------- */
.co { padding: clamp(1.25rem, 3vw, 2.25rem); background: #fff; }
.co__back { padding: 0.25rem 0; border: 0; background: none; color: var(--ink-2); font-size: 0.875rem; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.co__back:hover { color: var(--ink); }
.co__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); margin-top: 1rem; }
.co h3 { margin: 0 0 0.75rem; font: 400 1.75rem/1.1 var(--serif); }
.co__sum { padding: 1.25rem; border-radius: 16px; background: #f6f6f4; }
.co__nb { display: flex; justify-content: center; padding: 1rem 0 1.5rem; font-size: 8px; }
.co__lines { list-style: none; margin: 0 0 1rem; padding: 0; color: var(--ink-2); font-size: 0.9rem; }
.co__tot { margin: 0; padding-top: 0.75rem; border-top: 1px solid var(--ink-line); }
.co__tot div { display: flex; justify-content: space-between; gap: 1rem; padding: 0.2rem 0; font-size: 0.925rem; }
.co__tot dt { color: var(--ink-2); }
.co__tot dd { margin: 0; font-variant-numeric: tabular-nums; }
.co__total { margin-top: 0.4rem; padding-top: 0.6rem !important; border-top: 1px solid var(--ink-line); font-size: 1.15rem !important; font-weight: 600; }
.co__total dt { color: var(--ink) !important; }
.co__pay { display: grid; gap: 0.75rem; align-content: start; }
.co__pay h3 { margin-bottom: 0; }
.pays { display: grid; gap: 0.4rem; }
.parcelas { padding-left: 0.25rem; }

.ok { max-width: 34rem; margin-inline: auto; padding: clamp(2rem, 5vw, 3.5rem) 1.25rem 5rem; text-align: center; }
.ok__mark {
  display: grid;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: #111113;
  animation: pop .7s var(--spring);
}
.ok__mark svg { width: 1.5rem; height: 1.5rem; fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.ok h3 { margin: 0; font: 400 2.25rem/1.1 var(--serif); }
.ok h3:focus { outline: none; }
.ok p { margin: 0.5rem 0 0; color: var(--ink-2); }
.ok__nb { display: flex; justify-content: center; margin: 1.75rem 0; font-size: 9px; }
.ok p.ok__turn { color: var(--ink); font-size: 1.05rem; }
.ok__actions { display: grid; grid-template-columns: 1.3fr 1fr; gap: 0.5rem; margin-top: 1.25rem; }

/* --------------------------------------------------------------------------
   Painel: o seu lado
   -------------------------------------------------------------------------- */
.panel { display: grid; gap: 1.25rem; padding: clamp(1rem, 2.5vw, 1.75rem); background: #0e0e0f; font-size: 0.95rem; }
.panel[hidden] { display: none; }
.panel h3 { margin: 0 0 0.75rem; font-size: 1.05rem; font-weight: 600; letter-spacing: -0.015em; }
.panel__sub { margin: -0.45rem 0 0.75rem; font-size: 0.875rem; color: var(--muted); }
.panel__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.6rem; }
.panel__stats div { padding: 0.9rem 1rem; border-radius: 14px; background: #161617; border: 1px solid var(--line); }
.panel__stats span { display: block; font-size: 0.82rem; color: var(--muted); }
.panel__stats b { display: block; margin-top: 0.15rem; font-size: clamp(1.15rem, 2.4vw, 1.65rem); font-weight: 600; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.panel__notice { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.8rem 1rem; border-radius: 14px; border: 1px dashed var(--line-2); }
.panel__notice[hidden] { display: none; }
.panel__notice p { margin: 0; color: var(--fg-2); font-size: 0.9rem; }
.panel__notice .btn { flex: none; }

.orders, .prods, .lists { list-style: none; margin: 0; padding: 0; }
.order {
  display: grid;
  grid-template-columns: 3.75rem minmax(0, 1fr) 6rem minmax(0, 19rem);
  align-items: center;
  gap: 0.9rem;
  padding: 0.75rem 0.5rem;
  border-top: 1px solid var(--line);
  border-radius: 4px;
}
.order.is-mine { background: rgba(255, 255, 255, 0.05); border-radius: 12px; border-top-color: transparent; }
.order.is-mine + .order { border-top-color: transparent; }
.order.is-fresh { animation: arrive .9s var(--spring); }
@keyframes arrive { from { opacity: 0; transform: translateY(-16px) scale(0.98); background: rgba(255, 255, 255, 0.28); } }
.order__nb { display: grid; place-items: center; height: 3rem; font-size: 2.6px; }
.order__nb .nb__pages { box-shadow: none; }
.order__nb .nb__cover::before, .wcard__nb .nb__cover::before { display: none; } /* textura não funciona em miniatura */
.order__main { display: flex; flex-direction: column; line-height: 1.35; min-width: 0; }
.order__main b { font-weight: 600; }
.order__main span { color: var(--fg-2); font-size: 0.9rem; }
.order__main small { color: var(--muted); font-size: 0.8rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.order__total { font-weight: 500; font-variant-numeric: tabular-nums; text-align: right; }
.order__status { display: flex; align-items: center; justify-content: flex-end; gap: 0.5rem; flex-wrap: wrap; }
.pill { padding: 0.2rem 0.6rem; border-radius: 999px; font-size: 0.78rem; font-weight: 500; white-space: nowrap; border: 1px solid var(--line-2); color: var(--fg-2); }
.pill--pago { background: #fff; color: #0a0a0a; border-color: #fff; }
.pill--enviado { color: var(--muted); border-color: var(--line); }

.prod { display: grid; grid-template-columns: minmax(0, 1fr) auto 8.5rem; align-items: center; gap: 1rem; padding: 0.6rem 0.5rem; border-top: 1px solid var(--line); }
.prod b { font-weight: 500; }
.prod__price { display: flex; align-items: center; gap: 0.6rem; }
.prod__price > span:first-child { font-size: 0.8rem; color: var(--muted); }
.prod__money { color: var(--fg-2); font-size: 0.9rem; }
.prod input { width: 4.25rem; height: 2.2rem; padding: 0 0.5rem; border-radius: 9px; border: 1px solid var(--line-2); background: #161617; color: var(--fg); font: inherit; font-variant-numeric: tabular-nums; }
.pill-toggle { height: 2.2rem; padding: 0 0.8rem; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; color: var(--fg-2); font-size: 0.82rem; font-weight: 500; cursor: pointer; transition: background-color .2s, color .2s; }
.pill-toggle:hover { background: rgba(255, 255, 255, 0.07); }
.pill-toggle[aria-pressed="true"] { background: rgba(255, 255, 255, 0.12); color: var(--fg); }

/* --------------------------------------------------------------------------
   Área do lojista
   -------------------------------------------------------------------------- */
.whole[hidden] { display: none; }
.whole__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); }
.whole__qty { padding: clamp(1.25rem, 3vw, 2.25rem); }
.whole h3 { margin: 0 0 1rem; font: 400 1.75rem/1.1 var(--serif); }
.whole__label { display: block; margin-bottom: 0.5rem; font-size: 0.9rem; color: var(--ink-2); }
.whole__label b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.range {
  --fill: 0%;
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 2rem;
  margin: 0;
  background: transparent;
  cursor: grab;
}
.range:active { cursor: grabbing; }
.range::-webkit-slider-runnable-track { height: 6px; border-radius: 6px; background: linear-gradient(90deg, #111113 var(--fill), rgba(10, 10, 12, 0.14) var(--fill)); }
.range::-moz-range-track { height: 6px; border-radius: 6px; background: rgba(10, 10, 12, 0.14); }
.range::-moz-range-progress { height: 6px; border-radius: 6px; background: #111113; }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 1.6rem; height: 1.6rem; margin-top: calc(3px - 0.8rem); border-radius: 50%; background: #fff; border: 2px solid #111113; box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2); }
.range::-moz-range-thumb { width: 1.5rem; height: 1.5rem; border-radius: 50%; background: #fff; border: 2px solid #111113; }

.tiers { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.5rem; height: 11rem; margin: 1.25rem 0; padding: 0; }
.tiers li { display: flex; flex-direction: column; justify-content: flex-end; min-width: 0; color: var(--ink-2); }
.tiers i { display: block; order: 2; flex: none; height: calc((100% - 3.1rem) * var(--h, 1)); border-radius: 8px 8px 2px 2px; background: rgba(10, 10, 12, 0.1); transition: background-color .25s; }
.tiers b { order: 1; font-size: 0.82rem; font-weight: 500; margin-bottom: 0.3rem; font-variant-numeric: tabular-nums; }
.tiers span { order: 3; font-size: 0.78rem; margin-top: 0.3rem; }
.tiers .is-on { color: var(--ink); }
.tiers .is-on i { background: #111113; }
.tiers .is-on b { font-weight: 600; }

.whole__total { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; padding-top: 1rem; border-top: 1px solid var(--ink-line); }
.whole__total span { display: block; font-size: 0.82rem; color: var(--ink-2); }
.whole__total strong { display: block; font-size: clamp(1.35rem, 2.6vw, 1.85rem); font-weight: 600; letter-spacing: -0.035em; font-variant-numeric: tabular-nums; }
.whole__total small { font-size: 0.8rem; color: var(--ink-2); }

.whole__side { display: grid; gap: 0; align-content: start; background: #fff; border-left: 1px solid var(--ink-line); }
.wcard { padding: clamp(1.25rem, 2.5vw, 1.75rem); border-bottom: 1px solid var(--ink-line); }
.wcard:last-child { border-bottom: 0; }
.wcard h3 { margin-bottom: 0.35rem; font-size: 1.35rem; }
.wcard p { margin: 0; color: var(--ink-2); font-size: 0.9rem; }
.wcard__row { display: flex; align-items: center; gap: 1.25rem; margin-top: 1rem; }
.wcard__nb { flex: none; font-size: 5.5px; padding-right: 2px; }
.wcard__nb .nb__pages { box-shadow: 0 1em 1.6em -0.5em rgba(10, 10, 12, 0.4); }
.wcard__actions { flex: 1; display: grid; gap: 0.4rem; min-width: 0; }
.wcard p.wlink { margin-top: 0.75rem; padding: 0.65rem 0.8rem; border-radius: 11px; background: #f6f6f4; color: var(--ink-2); font-size: 0.82rem; line-height: 1.45; }
.wlink[hidden] { display: none; }
.wlink b { display: block; color: var(--ink); font-weight: 600; word-break: break-all; }
.wcard p.wbubble {
  margin-top: 0.75rem;
  width: fit-content;
  max-width: 90%;
  padding: 0.65rem 0.9rem;
  border-radius: 16px 16px 16px 4px;
  background: #111113;
  color: #fff;
}

/* --------------------------------------------------------------------------
   CRM
   -------------------------------------------------------------------------- */
.crm__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 18rem); gap: 1.25rem; }
.crm__grid--even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.funnel { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.6rem; }
.funnel__col { display: grid; gap: 0.5rem; align-content: start; min-height: 15rem; padding: 0.7rem; border-radius: 14px; background: #161617; border: 1px solid var(--line); }
.funnel__col h4 { margin: 0 0 0.15rem; font-size: 0.85rem; font-weight: 500; color: var(--fg-2); line-height: 1.3; }
.funnel__col h4 small { display: block; color: var(--muted); font-size: 0.8rem; font-weight: 400; font-variant-numeric: tabular-nums; }
.deal { border-radius: 11px; background: #1f1f21; border: 1px solid var(--line); overflow: hidden; transition: border-color .2s; }
.deal.is-on { border-color: rgba(255, 255, 255, 0.5); }
.deal.is-moved { animation: fadeUp .45s var(--spring); }
.deal__open { display: flex; flex-direction: column; width: 100%; padding: 0.6rem 0.7rem; border: 0; background: none; color: inherit; text-align: left; line-height: 1.3; cursor: pointer; }
.deal__open b { font-size: 0.875rem; font-weight: 600; }
.deal__open span { font-size: 0.8rem; color: var(--muted); }
.deal__open em { margin-top: 0.2rem; font-style: normal; font-size: 0.85rem; font-variant-numeric: tabular-nums; }
.deal__next { display: block; width: 100%; padding: 0.45rem 0.7rem; border: 0; border-top: 1px solid var(--line); background: none; color: var(--fg-2); font-size: 0.78rem; text-align: left; cursor: pointer; transition: background-color .2s; }
.deal__next:hover { background: rgba(255, 255, 255, 0.07); }

.crm__card { scroll-margin: 5rem 0 1rem; padding: 1rem 1.1rem 1.25rem; border-radius: 14px; background: #161617; border: 1px solid var(--line); }
.crm__card h3 { margin: 0; font: 400 1.6rem/1.1 var(--serif); letter-spacing: 0; }
.crm__org { margin: 0.15rem 0 0; color: var(--fg-2); font-size: 0.875rem; }
.crm__last { margin: 0.15rem 0 0; color: var(--muted); font-size: 0.82rem; }
.crm__card h4 { margin: 1rem 0 0.4rem; font-size: 0.82rem; font-weight: 500; color: var(--muted); }
.crm__hist { list-style: none; margin: 0; padding: 0; font-size: 0.85rem; }
.crm__hist li { padding: 0.35rem 0; border-top: 1px solid var(--line); }
.crm__none, .crm__rem { margin: 0; font-size: 0.85rem; color: var(--fg-2); }
.crm__rem { color: var(--fg); font-weight: 500; }
.crm__rem:focus { outline: none; }

.lists li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.55rem 0.15rem; border-top: 1px solid var(--line); font-size: 0.9rem; color: var(--fg-2); }
.lists b { font-weight: 500; color: var(--fg); font-variant-numeric: tabular-nums; }
.report { list-style: none; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0.4rem; height: 9.5rem; margin: 0; padding: 0; }
.report li { display: flex; flex-direction: column; justify-content: flex-end; align-items: stretch; min-width: 0; text-align: center; }
.report i { display: block; flex: none; height: calc((100% - 3.2rem) * var(--h, 1)); border-radius: 6px 6px 2px 2px; background: rgba(255, 255, 255, 0.16); transition: height .6s var(--spring); }
.report .is-now i { background: #fff; }
.report__v { margin-bottom: 0.25rem; font-size: 0.7rem; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.report .is-now .report__v { color: var(--fg); }
.report__w { margin-top: 0.25rem; font-size: 0.72rem; line-height: 1.2; color: var(--muted); }

/* --------------------------------------------------------------------------
   Hoje x com a sua loja
   -------------------------------------------------------------------------- */
.versus { margin-top: 2.5rem; border-bottom: 1px solid var(--line); }
.versus__head, .versus__row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.25rem, 4vw, 3.5rem); }
.versus__head { padding-bottom: 0.75rem; font-size: 0.875rem; color: var(--muted); }
.versus__head span:last-child { color: var(--fg); font-weight: 500; }
.versus__row { padding-block: 1.25rem; border-top: 1px solid var(--line); }
.versus__row p { margin: 0; font-size: clamp(1.05rem, 1.7vw, 1.3rem); line-height: 1.35; letter-spacing: -0.015em; text-wrap: pretty; }
.versus__row p:first-child { color: var(--muted); }
.versus__row p:last-child { color: var(--fg); font-weight: 500; }

/* --------------------------------------------------------------------------
   Planos
   -------------------------------------------------------------------------- */
.lplans {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.04fr) minmax(0, 1fr);
  align-items: stretch;
  margin-top: 4.5rem;
  margin-bottom: 3.5rem;
}
.lplan { display: flex; flex-direction: column; min-width: 0; padding: clamp(1.5rem, 2.6vw, 2.35rem); }
.lplan h3 { margin: 0; font: 400 clamp(2rem, 3.2vw, 2.7rem)/1.05 var(--serif); letter-spacing: -0.01em; }
.lplan__desc { margin: 0.9rem 0 1.5rem; color: var(--muted); font-size: 0.975rem; line-height: 1.5; min-height: 7.3em; text-wrap: pretty; }
.lplan__price { margin: 0; font-size: clamp(2.5rem, 4vw, 3.25rem); font-weight: 600; letter-spacing: -0.05em; line-height: 1; font-variant-numeric: tabular-nums; }
.lplan__price small { font-size: 0.36em; font-weight: 500; letter-spacing: 0; color: var(--fg-2); }
.lplan__time { margin: 0.55rem 0 1.5rem; font-size: 0.92rem; color: var(--muted); }
.lplan__list { flex: 1; list-style: none; margin: 0 0 1.75rem; padding: 0; }
.lplan__list li { padding: 0.65rem 0; border-top: 1px solid var(--line); color: var(--fg-2); font-size: 0.95rem; line-height: 1.4; }
.lplan__cta { display: grid; gap: 0.5rem; }
.lplan__try {
  padding: 0.45rem;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 0.875rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--line-2);
  cursor: pointer;
  transition: color .2s;
}
.lplan__try:hover { color: var(--fg); }

/* As laterais se encostam na do meio, que sobe e desce além delas */
.lplan.glass:first-child { border-radius: var(--radius) 0 0 var(--radius); border-right: 0; padding-right: clamp(1.75rem, 3vw, 2.75rem); }
.lplan.glass:last-child { border-radius: 0 var(--radius) var(--radius) 0; border-left: 0; padding-left: clamp(1.75rem, 3vw, 2.75rem); }

.lplan--featured {
  position: relative;
  z-index: 2;
  margin: -2.25rem 0;
  border-radius: 28px;
  background: #fff;
  color: #0a0a0a;
  box-shadow: 0 40px 110px -30px rgba(255, 255, 255, 0.28);
}
.lplan--featured :focus-visible { outline-color: #0a0a0a; }
.lplan__rec { margin: 0 0 0.5rem; font-size: 0.875rem; font-weight: 500; }
.lplan--featured .lplan__desc { color: #55555d; min-height: 5.5em; }
.lplan--featured .lplan__price small { color: #3a3a40; }
.lplan--featured .lplan__time { color: #55555d; }
.lplan--featured .lplan__list li { border-top-color: rgba(10, 10, 12, 0.13); color: #1c1c20; }
.lplan--featured .lplan__list li:first-child { font-weight: 600; }
.lplan__why { margin: -0.25rem 0 1.75rem; padding: 0.9rem 1rem; border-radius: 14px; background: #f1f1ef; color: #1c1c20; font-size: 0.925rem; line-height: 1.45; }
.lplan--featured .lplan__list { flex: 0 1 auto; margin-bottom: 1.25rem; }
.lplan--featured .lplan__cta { margin-top: auto; }
.lplan--featured .lplan__try { color: #55555d; text-decoration-color: rgba(10, 10, 12, 0.25); }
.lplan--featured .lplan__try:hover { color: #0a0a0a; }
.lplan.glass:last-child .lplan__list li:first-child { color: var(--fg); font-weight: 600; }

.loja-how { margin-top: 2rem; }

/* --------------------------------------------------------------------------
   Telas menores
   -------------------------------------------------------------------------- */
@media (max-width: 980px) {
  .lplans { grid-template-columns: 1fr; gap: 1rem; margin-top: 2.5rem; margin-bottom: 0; }
  .lplan.glass:first-child, .lplan.glass:last-child { border: 1px solid var(--glass-border); border-radius: var(--radius); padding: clamp(1.5rem, 4vw, 2.35rem); }
  .lplan--featured { margin: 0; }
  .lplan__desc, .lplan--featured .lplan__desc { min-height: 0; }

  .crm__grid { grid-template-columns: 1fr; }
  .whole__grid { grid-template-columns: 1fr; }
  .whole__side { border-left: 0; border-top: 1px solid var(--ink-line); }
}

@media (max-width: 860px) {
  .dm__tabs {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    overscroll-behavior-x: contain;
  }
  .dm__tabs::-webkit-scrollbar { display: none; }
  .dm__tabs button { flex: none; scroll-snap-align: start; padding: 0.55rem 0.85rem; }
  .dm__tabs small { white-space: nowrap; }

  .shop__step { grid-template-columns: minmax(0, 1fr); }
  .shop__stage { min-height: 0; height: min(24rem, 90svh); padding: 0.75rem 0.75rem 2.75rem; border-bottom: 1px solid var(--ink-line); }
  .shop__avail { bottom: 0.6rem; font-size: 0.75rem; padding: 0.3rem 0.7rem; }
  .nb-holder { font-size: min(13px, 3.6vw, 2.8svh); }
  .co__pay { order: -1; }

  /* alvos de toque */
  .swatch { width: 2.75rem; height: 2.75rem; }
  .opt span { min-height: 2.75rem; align-items: center; }
  .opt--cat span { align-items: flex-start; justify-content: center; }
  .upload--sm, .sbtn--sm { height: 2.75rem; }
  .co__back { padding-block: 0.75rem; }
  .prod input, .pill-toggle { height: 2.75rem; font-size: 1rem; }
  .deal__next { padding-block: 0.75rem; }
  .lplan__try { padding-block: 0.75rem; }
  .range { height: 2.75rem; }

  /* o botão flutuante não cobre as opções da demonstração */
  .dm-on .wa-float { opacity: 0; pointer-events: none; transform: translateY(140%); }
  .shop__form { border-left: 0; }
  .co__grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .browser__bar .tl { display: none; }
  .dm__frame .browser__url { max-width: none; margin: 0; }
  .ok__actions { grid-template-columns: 1fr; }
  .panel__notice { flex-direction: column; align-items: flex-start; }
  .panel__stats { grid-template-columns: 1fr 1fr; }
  .panel__stats div:first-child { grid-column: 1 / -1; }
  .panel__stats div { padding: 0.7rem 0.75rem; }
  .panel__stats b { font-size: 1.15rem; }

  .order { grid-template-columns: 3.5rem minmax(0, 1fr) auto; gap: 0.3rem 0.75rem; }
  .order__status { grid-column: 2 / -1; justify-content: flex-start; margin-top: 0.3rem; }
  .prod { grid-template-columns: minmax(0, 1fr) auto; gap: 0.4rem 0.75rem; }
  .pill-toggle { grid-column: 1 / -1; justify-self: start; }

  .funnel { grid-template-columns: 1fr; }
  .funnel__col { min-height: 0; }
  .crm__grid--even { grid-template-columns: 1fr; }
  .report__v { font-size: 0.62rem; }

  .versus__head { display: none; }
  .versus__row { grid-template-columns: 1fr; gap: 0.35rem; }
  .versus__row p:first-child { font-size: 0.975rem; }
}

@media (max-width: 360px) {
  .opts--catalog { grid-template-columns: 1fr; }
  .opt--cat span { flex-direction: row; justify-content: space-between; align-items: center; }
  .tiers b { font-size: 0.72rem; }
}

/* No toque, só o botão do controle deslizante responde: passar o dedo na trilha rola a página */
@media (pointer: coarse) {
  .range { pointer-events: none; }
  .range::-webkit-slider-thumb { pointer-events: auto; width: 2.25rem; height: 2.25rem; margin-top: calc(3px - 1.125rem); }
  .range::-moz-range-thumb { pointer-events: auto; width: 2.1rem; height: 2.1rem; }
}

@media (prefers-reduced-motion: reduce) {
  .nb, .nb__cover, .shop__tint, .order.is-fresh, .deal.is-moved { transition: none; animation: none; }
}
