/* Impressamente: catálogo. Mobile first. */

:root {
  --lilas: #E9E2FB;
  --lilas-medio: #A98AE8;
  --roxo: #6A4BD1;
  --roxo-escuro: #5237B0;
  --creme: #FBF8F3;
  --texto: #2A1F45;
  --texto-suave: #5E5478;
  --laranja: #F26418;
  --laranja-escuro: #C94E0C;
  --linha: rgba(42, 31, 69, .10);
  --sombra: 0 1px 2px rgba(42, 31, 69, .06), 0 8px 24px -12px rgba(42, 31, 69, .22);

  --f-titulo: "Bricolage Grotesque", system-ui, sans-serif;
  --f-texto: "IBM Plex Sans", system-ui, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, monospace;

  --r-card: 22px;
  --r-pill: 999px;
  --gutter: 16px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; touch-action: manipulation; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--lilas);
  color: var(--texto);
  font: 400 16px/1.5 var(--f-texto);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.no-scroll { overflow: hidden; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; }
a { color: var(--roxo); }
h1, h2, h3 { font-family: var(--f-titulo); line-height: 1.1; margin: 0; letter-spacing: -.01em; }
p { margin: 0; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 50;
  background: var(--roxo); color: #fff; padding: 10px 16px; border-radius: var(--r-pill);
}
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--roxo); outline-offset: 2px; }
.nowrap { white-space: nowrap; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 20px;
  border: 0; border-radius: var(--r-pill);
  background: var(--roxo); color: #fff;
  font-weight: 600; font-size: 15px; text-decoration: none;
  cursor: pointer; transition: background .15s, transform .1s;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { background: var(--roxo-escuro); }
.btn:active { transform: scale(.97); }
.btn-ghost { background: transparent; color: var(--roxo); box-shadow: inset 0 0 0 2px var(--roxo); }
.btn-ghost:hover { background: rgba(106, 75, 209, .08); }
.btn-block { width: 100%; }
.btn-lg { min-height: 54px; font-size: 16px; }

.icon-btn {
  width: 44px; height: 44px; flex: none;
  display: inline-grid; place-items: center;
  border: 0; border-radius: 50%;
  background: rgba(106, 75, 209, .1); color: var(--texto);
  cursor: pointer;
}
.icon-btn:hover { background: rgba(106, 75, 209, .18); }

/* ---------- Topo ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px var(--gutter);
  padding-top: max(10px, env(safe-area-inset-top));
  background: rgba(233, 226, 251, .86);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.topbar.scrolled { border-bottom-color: var(--linha); }
.brand {
  display: flex; align-items: center; gap: 10px;
  color: var(--texto); text-decoration: none;
  font: 800 20px/1 var(--f-titulo); letter-spacing: -.02em;
}
.brand img { width: 40px; height: 40px; border-radius: 50%; }

.cart-btn {
  position: relative;
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 16px;
  border: 0; border-radius: var(--r-pill);
  background: var(--roxo); color: #fff; font-weight: 600;
  cursor: pointer;
}
.cart-btn:hover { background: var(--roxo-escuro); }
.cart-count {
  min-width: 22px; height: 22px; padding: 0 6px;
  display: inline-grid; place-items: center;
  border-radius: var(--r-pill);
  background: var(--laranja); color: #fff;
  font: 600 12px/1 var(--f-mono);
}
.cart-btn.bump { animation: bump .45s ease; }
@keyframes bump { 30% { transform: scale(1.12); } 60% { transform: scale(.96); } }
/* Celular: o botão vira só ícone + número, para o nome da loja caber inteiro. */
.brand { min-width: 0; }
.brand span { white-space: nowrap; }
.cart-btn { flex: none; }
@media (max-width: 520px) { .cart-btn-label { display: none; } .cart-btn { padding: 0 14px; } }
@media (max-width: 340px) { .brand { font-size: 17px; } .brand img { width: 34px; height: 34px; } }

/* ---------- Hero ---------- */
.hero { padding: 20px var(--gutter) 12px; max-width: 1120px; margin: 0 auto; }
.eyebrow {
  display: inline-block; margin-bottom: 12px;
  padding: 6px 12px; border-radius: var(--r-pill);
  background: var(--creme); color: var(--roxo);
  font: 500 12px/1.2 var(--f-mono); letter-spacing: .02em;
}
.hero h1 { font-size: clamp(30px, 8.4vw, 60px); font-weight: 800; max-width: 16ch; }
.lede { margin-top: 12px; color: var(--texto-suave); max-width: 52ch; font-size: 16px; }

/* ---------- Faixa da promoção ---------- */
.promo {
  position: relative; overflow: hidden;
  display: grid; justify-items: start; gap: 6px;
  margin: 12px var(--gutter) 4px; padding: 18px 18px 20px;
  border-radius: 26px;
  background:
    radial-gradient(140% 120% at 100% 0%, rgba(169, 138, 232, .45) 0%, transparent 55%),
    var(--texto);
  color: var(--creme); text-decoration: none;
  box-shadow: 0 18px 40px -22px rgba(42, 31, 69, .8);
  transition: transform .15s;
}
.promo:hover { transform: translateY(-2px); }
.promo:active { transform: scale(.99); }
.promo-tag {
  padding: 5px 10px; border-radius: var(--r-pill);
  background: var(--laranja); color: #fff;
  font: 600 11px/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase;
}
.promo-title {
  margin-top: 6px; max-width: calc(100% - 96px);
  font: 800 clamp(24px, 7vw, 34px)/1.05 var(--f-titulo); letter-spacing: -.02em;
}
.promo-prices { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; margin-top: 2px; }
.promo-prices s { font: 500 14px/1 var(--f-mono); color: rgba(251, 248, 243, .6); }
.promo-prices strong { font: 600 clamp(24px, 7vw, 30px)/1 var(--f-mono); color: #FF8A4C; letter-spacing: -.02em; }
.promo-text { max-width: 40ch; font-size: 14px; line-height: 1.4; color: rgba(251, 248, 243, .82); }
.promo-cta {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 8px;
  min-height: 44px; padding: 0 18px; border-radius: var(--r-pill);
  background: var(--creme); color: var(--texto); font-weight: 600; font-size: 15px;
}
.promo:hover .promo-cta { background: #fff; }
.promo-save {
  position: absolute; top: 16px; right: 14px;
  width: 84px; height: 84px; border-radius: 50%;
  display: grid; place-content: center; text-align: center;
  background: radial-gradient(circle at 35% 30%, #FF9A5C, var(--laranja) 55%, var(--laranja-escuro));
  color: #fff; font: 600 15px/1.05 var(--f-mono); letter-spacing: -.02em;
  transform: rotate(10deg);
  box-shadow: 0 10px 20px -8px rgba(201, 78, 12, .8);
}
.promo-save small { display: block; font: 500 10px/1.2 var(--f-mono); letter-spacing: .04em; opacity: .9; }
@media (min-width: 760px) {
  .promo { padding: 26px 32px 28px; }
  .promo-title { max-width: none; }
  .promo-save { top: 50%; right: 40px; width: 116px; height: 116px; font-size: 20px; transform: translateY(-50%) rotate(10deg); }
  .promo-save small { font-size: 11px; }
}
@media (min-width: 1152px) { .promo { max-width: 1088px; margin-left: auto; margin-right: auto; } }

/* ---------- Vitrine ---------- */
.shop { max-width: 1120px; margin: 0 auto; padding: 8px 0 24px; }
.search {
  position: relative; display: flex; align-items: center;
  margin: 8px var(--gutter) 0;
  color: var(--texto-suave);
}
.search > svg { position: absolute; left: 16px; pointer-events: none; }
.search input {
  width: 100%; min-height: 50px; padding: 0 48px 0 46px;
  border: 0; border-radius: var(--r-pill);
  background: var(--creme); color: var(--texto);
  box-shadow: inset 0 0 0 1.5px var(--linha);
  font: 400 16px/1 var(--f-texto);
  -webkit-appearance: none; appearance: none;
}
.search input::placeholder { color: var(--texto-suave); opacity: .8; }
.search input::-webkit-search-cancel-button { display: none; }
.search input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--roxo); }
.search-clear {
  position: absolute; right: 6px; width: 40px; height: 40px;
  display: grid; place-items: center;
  border: 0; border-radius: 50%; background: rgba(106, 75, 209, .1); color: var(--texto); cursor: pointer;
}
@media (min-width: 760px) { .search { max-width: 480px; } }

.chips {
  display: flex; gap: 8px; overflow-x: auto;
  padding: 12px var(--gutter);
  scrollbar-width: none; scroll-snap-type: x proximity;
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; scroll-snap-align: start;
  min-height: 40px; padding: 0 16px;
  border: 0; border-radius: var(--r-pill);
  background: var(--creme); color: var(--texto);
  font-weight: 500; font-size: 15px; cursor: pointer;
  box-shadow: inset 0 0 0 1px var(--linha);
}
.chip:hover { box-shadow: inset 0 0 0 1.5px var(--lilas-medio); }
.chip[aria-pressed="true"] { background: var(--roxo); color: #fff; box-shadow: none; }
.chip small { font-family: var(--f-mono); font-size: 12px; opacity: .65; margin-left: 4px; }

.shop-status { padding: 4px var(--gutter) 12px; color: var(--texto-suave); font-size: 14px; }
.shop-status:empty { display: none; }
.shop-status a { font-weight: 600; }

.grid {
  display: grid; gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 0 var(--gutter);
}
@media (min-width: 640px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 1000px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; } }

.card {
  display: flex; flex-direction: column;
  background: var(--creme); border-radius: var(--r-card);
  box-shadow: var(--sombra); overflow: hidden;
  animation: rise .35s ease both;
}
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
.card-media {
  position: relative; display: block; width: 100%;
  aspect-ratio: 3 / 4; padding: 0; border: 0; cursor: pointer;
  background: none;
}
.card-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
/* Segunda foto aparece ao passar o mouse (só em aparelhos com mouse). */
.card-media .card-alt { position: absolute; inset: 0; opacity: 0; transition: opacity .45s ease; }
@media (hover: hover) and (pointer: fine) {
  .card:hover .card-alt, .card-media:focus-visible .card-alt { opacity: 1; }
  .card-media img:not(.card-alt) { transition: transform .6s ease; }
  .card:hover .card-media img { transform: scale(1.03); }
}
.card-badge {
  position: absolute; left: 8px; top: 8px;
  padding: 5px 9px; border-radius: var(--r-pill);
  background: var(--laranja); color: #fff;
  font: 600 11px/1 var(--f-mono);
}
.card-new {
  position: absolute; right: 8px; top: 8px;
  padding: 5px 10px; border-radius: var(--r-pill);
  background: var(--roxo); color: #fff;
  font: 600 11px/1 var(--f-mono); letter-spacing: .04em; text-transform: uppercase;
  box-shadow: 0 4px 10px -4px rgba(82, 55, 176, .6);
}
.card-new.card-hot { background: var(--laranja); box-shadow: 0 4px 10px -4px rgba(201, 78, 12, .6); }
.pd-new {
  display: inline-block; margin-left: 6px; padding: 3px 8px; border-radius: var(--r-pill);
  background: var(--roxo); color: #fff; letter-spacing: .04em;
}
.chip-new { display: inline-flex; align-items: center; gap: 6px; }
.chip-promo { background: #FDE8DB; color: #8A3409; box-shadow: inset 0 0 0 1px rgba(242, 100, 24, .35); }
.chip-promo[aria-pressed="true"] { background: var(--laranja); color: #fff; box-shadow: none; }
.chip-new::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: var(--laranja); box-shadow: 0 0 0 3px rgba(242, 100, 24, .2);
}
.chip-new[aria-pressed="true"]::before { box-shadow: 0 0 0 3px rgba(255, 255, 255, .3); }
.card-body { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px 12px; flex: 1; }
.card-cat { font: 500 11px/1.2 var(--f-mono); color: var(--texto-suave); text-transform: uppercase; letter-spacing: .06em; }
.card-title { font-size: 16px; font-weight: 600; line-height: 1.2; }
.card-title a { color: inherit; text-decoration: none; }
.card-title a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.card-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 8px; }
.card-foot .btn { min-height: 40px; padding: 0 14px; font-size: 14px; }
@media (max-width: 400px) { .card-foot .btn { width: 100%; } }

.price { font: 600 19px/1 var(--f-mono); color: var(--laranja); letter-spacing: -.02em; }
.price.price-ask { font-size: 14px; color: var(--roxo); letter-spacing: 0; }
.pd-price-row .price.price-ask { font-size: 18px; }
.pd-kit.pd-ask { color: var(--roxo); background: #F0EAFE; }
.price-old { font: 500 13px/1 var(--f-mono); color: var(--texto-suave); text-decoration: line-through; margin-left: 6px; }

/* Espaço reservado para foto */
.ph {
  position: relative; width: 100%; height: 100%;
  display: grid; place-items: center; overflow: hidden;
  background:
    radial-gradient(120% 90% at 30% 20%, #fff 0%, transparent 55%),
    linear-gradient(160deg, var(--lilas) 0%, var(--lilas-medio) 130%);
}
.ph[data-cat="games"]      { --ph-rot: -6deg; }
.ph[data-cat="musica"]     { --ph-rot: 4deg; }
.ph[data-cat="isqueiros"]  { --ph-rot: -2deg; }
.ph[data-cat="celular"]    { --ph-rot: 7deg; }
.ph[data-cat="escritorio"] { --ph-rot: -8deg; }
.ph[data-cat="carro"]      { --ph-rot: 3deg; }
.ph-letter {
  font: 800 clamp(64px, 22vw, 120px)/1 var(--f-titulo);
  color: var(--creme);
  text-shadow: 0 2px 0 #E4DACB, 0 4px 0 #D9CDBA, 0 12px 22px rgba(82, 55, 176, .35);
  transform: rotate(var(--ph-rot, 0deg));
}
.ph-dot {
  position: absolute; width: 18%; aspect-ratio: 1; border-radius: 50%;
  right: 22%; bottom: 22%;
  background: radial-gradient(circle at 35% 30%, #FF9A5C, var(--laranja) 55%, var(--laranja-escuro));
  box-shadow: 0 8px 14px -6px rgba(201, 78, 12, .6);
}
.ph-tag {
  position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%);
  padding: 4px 8px; border-radius: var(--r-pill);
  background: rgba(251, 248, 243, .8); color: var(--texto-suave);
  font: 500 10px/1 var(--f-mono); white-space: nowrap;
}

/* ---------- Como funciona ---------- */
.how { max-width: 1120px; margin: 8px auto 0; padding: 24px var(--gutter) 32px; }
.how h2 { font-size: 26px; font-weight: 800; margin-bottom: 16px; }
.how ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
@media (min-width: 760px) { .how ol { grid-template-columns: repeat(3, 1fr); } }
.how li { display: flex; gap: 12px; align-items: flex-start; background: var(--creme); border-radius: var(--r-card); padding: 16px; }
.how-n {
  flex: none; width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--lilas); color: var(--roxo); font: 600 16px/1 var(--f-mono);
}
.how strong { font-family: var(--f-titulo); font-size: 17px; }
.how p { color: var(--texto-suave); font-size: 14px; margin-top: 2px; }

/* ---------- Rodapé ---------- */
.footer {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
  max-width: 1120px; margin: 0 auto;
  padding: 24px var(--gutter) calc(32px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--linha); font-size: 14px; color: var(--texto-suave);
}
.footer img { border-radius: 50%; }
.footer strong { color: var(--texto); font-family: var(--f-titulo); font-size: 16px; }
.footer p { flex: 1 1 200px; }
.footer-ig {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 44px; padding: 0 16px; border-radius: var(--r-pill);
  background: var(--creme); font-weight: 600; text-decoration: none;
}

/* ---------- Diálogos (bottom sheet no celular) ---------- */
.sheet {
  width: 100%; max-width: 100%; max-height: 92dvh;
  margin: auto 0 0; padding: 0; border: 0;
  border-radius: 26px 26px 0 0;
  background: var(--creme); color: var(--texto);
  overflow: hidden;
}
.sheet::backdrop { background: rgba(42, 31, 69, .45); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }
.sheet[open] { animation: sheet-up .28s cubic-bezier(.2, .8, .2, 1); }
.sheet[open]::backdrop { animation: fade .28s ease; }
@keyframes sheet-up { from { transform: translateY(40px); opacity: 0; } }
@keyframes fade { from { opacity: 0; } }
.sheet-inner { max-height: 92dvh; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; }
.sheet-head {
  position: sticky; top: 0; z-index: 2;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px var(--gutter) 12px; background: var(--creme);
}
.sheet-head h2 { font-size: 22px; font-weight: 800; }

@media (min-width: 760px) {
  .sheet { margin: auto; border-radius: 28px; max-height: 88vh; box-shadow: 0 30px 80px -20px rgba(42, 31, 69, .5); }
  .sheet-inner { max-height: 88vh; }
  .sheet-product { width: min(920px, calc(100% - 48px)); }
  .sheet-cart { width: 460px; margin: 0 0 0 auto; height: 100dvh; max-height: 100dvh; border-radius: 28px 0 0 28px; }
  .sheet-cart .sheet-inner { max-height: 100dvh; height: 100%; }
  .sheet-cart[open] { animation: sheet-left .28s cubic-bezier(.2, .8, .2, 1); }
  @keyframes sheet-left { from { transform: translateX(40px); opacity: 0; } }
}

/* ---------- Produto ---------- */
.pd { display: grid; }
@media (min-width: 760px) { .pd { grid-template-columns: 1.05fr 1fr; } }
.pd-gallery { position: relative; background: var(--lilas); }
.pd-track {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  aspect-ratio: 4 / 5;
}
.pd-track::-webkit-scrollbar { display: none; }
@media (max-width: 759px) { .pd-track { aspect-ratio: auto; height: min(68dvh, 133.34vw); } }
.pd-slide { flex: 0 0 100%; min-width: 0; scroll-snap-align: center; }
.pd > * { min-width: 0; } /* sem isso a galeria cresce do tamanho de todas as fotos juntas no celular */
.pd-slide img { width: 100%; height: 100%; object-fit: contain; cursor: zoom-in; }
@media (min-width: 760px) { .pd-gallery { align-self: start; } }
.pd-dots { position: absolute; bottom: 12px; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; }
.pd-dots button {
  width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(251, 248, 243, .7); box-shadow: 0 1px 3px rgba(42, 31, 69, .35);
  transition: width .2s, background .2s;
}
.pd-dots button::after { content: ""; position: absolute; inset: -10px -4px; }
.pd-dots button { position: relative; }
.pd-dots button.on { width: 22px; border-radius: 4px; background: var(--creme); }
.pd-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(251, 248, 243, .92); color: var(--texto);
  box-shadow: 0 4px 14px -4px rgba(42, 31, 69, .45);
  transition: opacity .2s;
}
.pd-arrow:hover { background: var(--creme); }
.pd-arrow:disabled { opacity: 0; pointer-events: none; }
.pd-prev { left: 10px; }
.pd-next { right: 10px; }
.pd-illus { top: 16px; bottom: auto; left: 16px; transform: none; }
.pd-close { position: absolute; top: 12px; right: 12px; background: rgba(251, 248, 243, .92); }
.pd-close:hover { background: var(--creme); }

.pd-info { display: flex; flex-direction: column; gap: 14px; padding: 18px var(--gutter) 0; }
@media (min-width: 760px) { .pd-info { padding: 32px 28px 0; } }
.pd-info h2 { font-size: clamp(24px, 6vw, 32px); font-weight: 800; }
.pd-price-row { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.pd-price-row .price { font-size: 24px; }
.pd-kit { font: 500 12px/1.2 var(--f-mono); color: var(--laranja-escuro); background: #FDE8DB; padding: 5px 9px; border-radius: var(--r-pill); }
.pd-desc { color: var(--texto); }
.pd-details { margin: 0; padding: 14px 16px; list-style: none; background: #F3EEFF; border-radius: 16px; display: grid; gap: 8px; }
.pd-details li { display: flex; gap: 10px; font: 500 13px/1.4 var(--f-mono); color: var(--texto); }
.pd-details li::before { content: ""; flex: none; width: 8px; height: 8px; margin-top: 5px; border-radius: 50%; background: var(--laranja); }

.field-label { font: 600 14px/1.2 var(--f-texto); margin-bottom: 8px; display: block; }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opt {
  min-height: 42px; padding: 0 16px; border: 0; border-radius: var(--r-pill);
  background: #fff; box-shadow: inset 0 0 0 1.5px var(--linha);
  font-weight: 500; cursor: pointer;
}
.opt:hover { box-shadow: inset 0 0 0 1.5px var(--lilas-medio); }
.opt[aria-checked="true"] { background: var(--roxo); color: #fff; box-shadow: none; }
.opt-cor { display: inline-flex; align-items: center; gap: 8px; padding-left: 8px; }
.swatch { width: 26px; height: 26px; border-radius: 50%; background: var(--sw); box-shadow: inset 0 0 0 1px rgba(42, 31, 69, .25); }
.opt-cor[aria-checked="true"] .swatch { box-shadow: 0 0 0 2px #fff; }
.opt-chosen { font-weight: 400; color: var(--texto-suave); }
.address { display: grid; gap: 12px; }
.field-label.sub { font-weight: 500; font-size: 13px; color: var(--texto-suave); margin-bottom: 6px; }

.pd-buy {
  position: sticky; bottom: 0; margin-top: 8px;
  display: flex; align-items: center; gap: 12px;
  padding: 14px 0 calc(14px + env(safe-area-inset-bottom));
  background: linear-gradient(to bottom, rgba(251, 248, 243, 0), var(--creme) 22%);
}
@media (min-width: 760px) { .pd-buy { padding-bottom: 28px; } }
.pd-buy .btn { flex: 1; }

.stepper {
  display: inline-flex; align-items: center; flex: none;
  border-radius: var(--r-pill); background: #fff; box-shadow: inset 0 0 0 1.5px var(--linha);
}
.stepper button {
  width: 44px; height: 44px; border: 0; background: none; cursor: pointer;
  font: 600 20px/1 var(--f-mono); color: var(--roxo); border-radius: 50%;
}
.stepper button:disabled { color: rgba(42, 31, 69, .25); cursor: default; }
.stepper output { min-width: 26px; text-align: center; font: 600 16px/1 var(--f-mono); }
.stepper.sm button { width: 36px; height: 36px; font-size: 18px; }

/* ---------- Carrinho ---------- */
.cart-empty { padding: 24px var(--gutter) 40px; text-align: center; }
.cart-empty .ph-mini { width: 120px; height: 120px; margin: 8px auto 16px; border-radius: 50%; overflow: hidden; }
.cart-empty h3 { font-size: 22px; font-weight: 800; }
.cart-empty p { color: var(--texto-suave); margin: 6px 0 20px; }

.cart-list { list-style: none; margin: 0; padding: 0 var(--gutter); }
.cart-item { display: grid; grid-template-columns: 64px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--linha); }
.cart-thumb { width: 64px; height: 64px; border-radius: 14px; overflow: hidden; }
.cart-thumb .ph-letter { font-size: 34px; }
.cart-thumb .ph-tag { display: none; }
.cart-item h3 { font: 600 15px/1.25 var(--f-texto); }
.cart-item .variant { font: 500 12px/1.3 var(--f-mono); color: var(--texto-suave); margin-top: 2px; }
.cart-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; }
.cart-line-total { font: 600 15px/1 var(--f-mono); }
.link-btn { border: 0; background: none; padding: 6px 0; color: var(--texto-suave); font-size: 13px; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; min-height: 32px; }
.link-btn:hover { color: var(--laranja-escuro); }

.cart-hint { margin: 12px var(--gutter) 0; padding: 10px 14px; border-radius: 14px; background: #FDE8DB; color: #7A3208; font-size: 14px; }
.cart-sum { padding: 14px var(--gutter) 4px; display: grid; gap: 6px; font: 500 14px/1.3 var(--f-mono); }
.cart-sum div { display: flex; justify-content: space-between; gap: 12px; }
.cart-sum .discount { color: #1E7A4C; }
.cart-sum .total { font-size: 16px; font-weight: 600; margin-top: 4px; padding-top: 10px; border-top: 1px dashed rgba(42, 31, 69, .2); }
.cart-sum .total span:last-child { color: var(--laranja); font-size: 22px; }

.checkout { padding: 16px var(--gutter) calc(20px + env(safe-area-inset-bottom)); display: grid; gap: 16px; }
.checkout h3 { font-size: 18px; font-weight: 800; margin-top: 4px; }
.checkout fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.checkout legend { padding: 0; }
.input {
  width: 100%; min-height: 48px; padding: 12px 14px;
  border: 0; border-radius: 14px; background: #fff;
  box-shadow: inset 0 0 0 1.5px var(--linha);
  font: 400 16px/1.3 var(--f-texto); color: var(--texto);
}
.input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--roxo); }
textarea.input { min-height: 72px; resize: vertical; }
.radio-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.radio-pills label { position: relative; }
.radio-pills input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.radio-pills span {
  display: inline-flex; align-items: center; min-height: 42px; padding: 0 16px;
  border-radius: var(--r-pill); background: #fff; box-shadow: inset 0 0 0 1.5px var(--linha);
  font-weight: 500; font-size: 15px;
}
.radio-pills input:checked + span { background: var(--roxo); color: #fff; box-shadow: none; }
.radio-pills input:focus-visible + span { outline: 3px solid var(--roxo); outline-offset: 2px; }
.field-note { margin-top: 6px; font-size: 13px; color: var(--texto-suave); }
.field-error { margin-top: 6px; font-size: 13px; color: #B3261E; }
.optional { font-weight: 400; color: var(--texto-suave); }

.btn-wa { background: var(--roxo); }
.btn-wa svg { flex: none; }
.dev-note { font: 500 12px/1.4 var(--f-mono); background: #FFF4CC; color: #6B5200; padding: 10px 12px; border-radius: 12px; }

.sent { padding: 24px var(--gutter) 32px; text-align: center; display: grid; gap: 12px; justify-items: center; }
.sent h3 { font-size: 22px; font-weight: 800; }
.sent p { color: var(--texto-suave); max-width: 34ch; }
.sent .btn { min-width: 220px; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom)); z-index: 100;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  padding: 12px 18px; border-radius: var(--r-pill);
  background: var(--texto); color: var(--creme);
  font-weight: 500; font-size: 15px; text-align: center;
  width: max-content; max-width: calc(100% - 32px);
  box-shadow: 0 12px 30px -10px rgba(42, 31, 69, .6);
  transition: opacity .2s, transform .2s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.noscript { padding: 16px; text-align: center; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Fotos em tela cheia (celular) ---------- */
.lb { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: #120d22; color: #fff; overflow: hidden; }
.lb::backdrop { background: #120d22; }
.lb-track { display: flex; width: 100%; height: 100%; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior: contain; touch-action: pan-x; }
.lb-track::-webkit-scrollbar { display: none; }
.lb.zoomed .lb-track { overflow: hidden; touch-action: none; }
.lb-slide { flex: 0 0 100%; height: 100%; scroll-snap-align: center; overflow: hidden; display: grid; place-items: center; }
.lb-slide img { width: 100%; height: 100%; object-fit: contain; transform-origin: 0 0; user-select: none; -webkit-user-drag: none; }
.lb-close { position: fixed; top: max(14px, env(safe-area-inset-top)); right: 14px; background: rgba(255, 255, 255, .92); }
.lb-nav { position: fixed; top: 50%; transform: translateY(-50%); background: rgba(255, 255, 255, .85); }
.lb-prev { left: 12px; }
.lb-next { right: 12px; }
@media (pointer: coarse) { .lb-nav { display: none; } }
.lb-count { position: fixed; top: max(24px, env(safe-area-inset-top)); left: 18px; margin: 0; font: 600 13px var(--f-mono); color: rgba(255, 255, 255, .85); }
.lb-hint { position: fixed; bottom: max(18px, env(safe-area-inset-bottom)); left: 0; right: 0; margin: 0; text-align: center; font-size: 13px; color: rgba(255, 255, 255, .7); pointer-events: none; transition: opacity .2s; }
.lb.zoomed .lb-hint { opacity: 0; }

/* Toque rápido em botões não aproxima a tela (iPhone). Dentro das janelas o html não vale, então repete aqui. */
button, a, input, label, select, textarea, .card, .sheet-inner { touch-action: manipulation; }

/* Fotos WebP: o <picture> não interfere no tamanho da imagem. */
picture { display: contents; }

/* ---------- Esqueleto enquanto carrega ---------- */
.card.sk { aspect-ratio: 3 / 5.2; background: linear-gradient(100deg, var(--creme) 30%, #fff 50%, var(--creme) 70%) 0 0 / 300% 100%; animation: sk 1.2s linear infinite; box-shadow: none; }
@keyframes sk { to { background-position: -150% 0; } }

/* ---------- Prazo e compartilhar no produto ---------- */
.pd-prazo { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; padding: 7px 12px; border-radius: var(--r-pill); background: #E8F5EE; color: #1E5E3E; font-size: 13.5px; }
.pd-prazo svg { flex: none; }
.pd-title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.share-btn { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 12px; border: 0; border-radius: var(--r-pill); background: rgba(106, 75, 209, .1); color: var(--roxo); font-weight: 600; font-size: 13px; cursor: pointer; margin-top: 2px; }
.share-btn:hover { background: rgba(106, 75, 209, .18); }

/* ---------- Prévia do nome ---------- */
.nome-prev { margin-top: 10px; padding: 14px 16px; border-radius: 16px; background: linear-gradient(160deg, #fff, #EFEAE2); box-shadow: inset 0 0 0 1.5px var(--linha); text-align: center; }
.nome-prev small { display: block; font: 500 11px var(--f-mono); color: var(--texto-suave); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 4px; }
.nome-prev span { display: block; font-size: 34px; line-height: 1.1; color: #1F1D22; letter-spacing: .02em; overflow-wrap: anywhere; }

/* ---------- Não achou? ---------- */
.ideia { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin: 20px var(--gutter) 0; padding: 18px 20px; border-radius: var(--r-card); background: var(--creme); box-shadow: inset 0 0 0 1.5px rgba(106, 75, 209, .25); }
.ideia strong { font: 800 18px/1.2 var(--f-titulo); }
.ideia p { color: var(--texto-suave); font-size: 14px; margin-top: 4px; max-width: 46ch; }
.ideia .btn { flex: none; }

/* ---------- Carrinho: combina com o pedido ---------- */
.sug { margin: 14px var(--gutter) 0; }
.sug-tit { font: 600 14px var(--f-texto); margin-bottom: 8px; }
.sug-lista { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sug-item { display: grid; gap: 4px; text-align: left; padding: 8px; border: 0; border-radius: 16px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--linha); cursor: pointer; }
.sug-item:hover { box-shadow: inset 0 0 0 1.5px var(--lilas-medio); }
.sug-foto { display: block; aspect-ratio: 1; border-radius: 10px; overflow: hidden; }
.sug-foto img, .sug-foto .ph { width: 100%; height: 100%; object-fit: cover; }
.sug-foto .ph-tag { display: none; }
.sug-foto .ph-letter { font-size: 40px; }
.sug-nome { font-size: 13px; font-weight: 600; line-height: 1.25; }
.sug-preco { font: 600 13px var(--f-mono); color: var(--laranja-escuro); }
.cart-hint-btn { color: #7A3208; font-weight: 600; margin-left: 4px; padding: 0; min-height: 0; }

/* ---------- Barra fixa do carrinho (celular) ---------- */
.cart-bar {
  position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 30;
  display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 0 18px 0 10px;
  border: 0; border-radius: var(--r-pill); background: var(--roxo); color: #fff;
  font: 600 16px var(--f-texto); cursor: pointer;
  box-shadow: 0 14px 30px -12px rgba(42, 31, 69, .7);
  animation: sheet-up .3s cubic-bezier(.2, .8, .2, 1);
}
.cart-bar-qtd { min-width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: var(--laranja); font: 600 15px var(--f-mono); }
.cart-bar-total { margin-left: auto; font: 600 16px var(--f-mono); }
body.has-bar .footer { padding-bottom: calc(100px + env(safe-area-inset-bottom)); }
body.no-scroll .cart-bar { display: none; }
@media (min-width: 760px) { .cart-bar { display: none !important; } }

/* Zoom dentro da galeria (computador) */
.pd-slide { position: relative; overflow: hidden; }
@media (hover: hover) and (pointer: fine) and (min-width: 760px) {
  .pd-slide img { transition: transform .25s ease; will-change: transform; }
  .pd-slide.zoomed img { transform: scale(2.4); cursor: zoom-out; }
}

/* Galeria do produto: fundo com a própria foto desfocada (sem faixas lilás) e contador */
.pd-slide .pd-bg { position: absolute; inset: -8%; width: 116%; height: 116%; object-fit: cover; filter: blur(22px) brightness(.85) saturate(1.1); cursor: default; }
.pd-slide picture img, .pd-slide > img[data-zoom] { position: relative; }
.pd-count { position: absolute; left: 12px; top: 12px; padding: 4px 10px; border-radius: var(--r-pill); background: rgba(18, 13, 34, .55); color: #fff; font: 600 12px var(--f-mono); pointer-events: none; }

/* Moldura 3:4 das fotos: a foto preenche tudo e a prévia do nome fica no lugar certo */
.pd-frame { position: relative; height: 100%; aspect-ratio: 3 / 4; max-width: 100%; margin: 0 auto; overflow: hidden; container-type: inline-size; }
.pd-frame img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 760px) { .pd-track { aspect-ratio: 3 / 4; } }
.pers-over { position: absolute; display: grid; place-items: center; border-radius: 6px; background: var(--pers-bg); box-shadow: 0 0 6px 5px var(--pers-bg); line-height: 1; letter-spacing: .03em; white-space: nowrap; overflow: hidden; pointer-events: none; transition: opacity .2s; }
.pers-over span { display: block; max-width: 100%; overflow: hidden; text-overflow: clip; }
.pd-slide.zoomed .pers-over { opacity: 0; }
.pers-thumb { display: flex; gap: 12px; align-items: center; margin-top: 10px; padding: 8px; border-radius: 16px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--linha); }
.pers-thumb .pd-frame { flex: none; width: 104px; height: auto; border-radius: 10px; }
.pers-thumb p { font-size: 13px; line-height: 1.35; color: var(--texto); }
.pers-thumb small { display: block; color: var(--texto-suave); font-size: 12px; margin-top: 2px; }
