:root {
  --pink: #fe2c55;
  --pink-soft: #fff1f3;
  --ink: #161823;
  --muted: #5c6370;
  --line: #ececec;
  --bg: #f3f4f6;
  --card: #ffffff;
  --green: #128a3e;
  --radius: 14px;
  --shop: 480px;
  --bar: calc(72px + env(safe-area-inset-bottom));
  color-scheme: light;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: Inter, system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.45;
}

button, input { font-family: inherit; }

img { max-width: 100%; }

.baixar-pasta {
  display: block;
  background: #fe2c55;
  color: #fff;
  text-align: center;
  text-decoration: none;
  font-weight: 800;
  font-size: 18px;
  padding: 14px 16px;
}
.baixar-pasta:active { background: #e11d48; }

.shop {
  max-width: var(--shop);
  margin: 0 auto;
  background: var(--card);
  min-height: 100dvh;
  padding-bottom: var(--bar);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.04);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand strong { display: block; font-size: 16px; letter-spacing: -0.03em; }
.brand small { display: block; color: var(--muted); font-size: 12px; margin-top: 1px; }
.brand-logo {
  width: 34px;
  height: 34px;
  object-fit: contain;
  flex: none;
}

.top-score {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #fff8eb;
  color: #8a5a00;
  font-weight: 700;
  font-size: 13px;
  padding: 6px 10px;
  border-radius: 999px;
  flex: none;
}

.top-score svg { width: 14px; height: 14px; fill: #f5a524; }

.gallery {
  position: relative;
  background: #f7f7f8;
  overflow: hidden;
}

.slides {
  display: flex;
  transition: transform 0.35s ease;
  touch-action: pan-y;
}

.slide {
  min-width: 100%;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(22, 24, 35, 0.45);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.nav svg { width: 22px; height: 22px; }
.nav.prev { left: 10px; }
.nav.next { right: 10px; }

.dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12px;
  display: flex;
  justify-content: center;
  gap: 6px;
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 99px;
  background: rgba(22, 24, 35, 0.25);
  border: 0;
  padding: 0;
}

.dot.active { background: var(--pink); width: 16px; }

.slide-count {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(22, 24, 35, 0.62);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 999px;
}

.offer-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  background: var(--pink);
  color: #fff;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 700;
}

.offer-bar .timer { font-weight: 500; font-size: 13px; }
.offer-bar strong {
  background: #fff;
  color: var(--pink);
  border-radius: 6px;
  padding: 2px 6px;
  margin-left: 4px;
  font-variant-numeric: tabular-nums;
}

.block { padding: 16px; border-bottom: 8px solid var(--bg); }
.block h2 { margin: 0 0 12px; font-size: 18px; letter-spacing: -0.02em; }

.price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.price {
  font-size: 32px;
  font-weight: 800;
  color: var(--pink);
  letter-spacing: -0.04em;
  line-height: 1;
}

.price-old { color: #9aa0a6; text-decoration: line-through; font-size: 14px; }

.off {
  background: var(--pink-soft);
  color: var(--pink);
  font-weight: 800;
  font-size: 13px;
  padding: 3px 7px;
  border-radius: 6px;
}

.coupon-note { margin: 8px 0 0; color: var(--green); font-size: 13px; font-weight: 600; }

h1 {
  margin: 10px 0 0;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.02em;
}

.rating-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
  font-size: 13px;
  color: var(--muted);
}

.rating-row em { font-style: normal; color: #2563eb; }

.stars { display: inline-flex; gap: 1px; }
.stars svg { width: 14px; height: 14px; fill: #f5a524; }
.stars.mini { color: #f5a524; letter-spacing: 1px; font-size: 12px; }

.dot-sep {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #c5c8ce;
}

.trust {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 16px 0 0;
  padding: 0;
}

.trust li {
  background: #fafafa;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 6px;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.25;
}

.trust svg { width: 22px; height: 22px; display: block; margin: 0 auto 6px; color: var(--ink); }

.ship-row { display: flex; gap: 12px; }
.ship-row svg { width: 28px; height: 28px; flex: none; color: #2563eb; }
.ship-row p { margin: 0 0 4px; font-size: 14px; }
.muted { color: var(--muted); }

.return-line {
  margin: 14px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 14px;
}

.section-head { display: flex; justify-content: space-between; align-items: center; }
.section-head h2 { margin: 0 0 12px; }

.coupon {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #f3fffe;
  border: 1px solid #cfeedd;
  border-radius: 12px;
  padding: 14px;
}

.coupon strong { display: block; font-size: 15px; }
.coupon p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }

.redeem, .store button, .cart-btn, .buy-btn, .pix-btn-pagar, .pix-btn-ghost, .pix-copy-row button {
  cursor: pointer;
}

.redeem {
  border: 0;
  background: #11b5a4;
  color: #fff;
  font-weight: 700;
  border-radius: 8px;
  padding: 10px 14px;
  flex: none;
}

.redeem.redeemed { background: #fff; color: #0f9b8c; border: 1px solid #11b5a4; }

.review { padding: 14px 0; border-top: 1px solid var(--line); }
.review:first-of-type { border-top: 0; padding-top: 0; }
.review header { display: flex; gap: 10px; align-items: center; }
.review header img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.review header strong { display: block; font-size: 15px; }
.review p { margin: 10px 0 0; font-size: 15px; }
.review-lead { margin: -6px 0 12px; font-size: 13px; }
.review-photo {
  width: 100%;
  max-height: 280px;
  object-fit: cover;
  border-radius: 12px;
  margin-top: 10px;
  background: #f3f4f6;
}

.store { display: flex; align-items: center; gap: 12px; }
.store img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }
.store strong { font-size: 16px; }
.store p { margin: 2px 0 0; color: var(--muted); font-size: 13px; }
.store button {
  margin-left: auto;
  border: 0;
  background: #f2f3f5;
  border-radius: 8px;
  padding: 10px 16px;
  font-weight: 700;
}
.store button.following { color: var(--muted); }

.about .lead { margin-top: 0; font-size: 15px; }
.card {
  background: #f8fafc;
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 12px;
}
.card h3 { margin: 14px 0 6px; font-size: 16px; }
.card h3:first-child { margin-top: 0; }
.card p, .card li { font-size: 15px; color: #2a2e35; }
.card ul { margin: 8px 0 0; padding-left: 18px; }
.card li { margin: 6px 0; }

.buybar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  background: #fff;
  border-top: 1px solid var(--line);
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
  box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.05);
}

.buybar-inner {
  max-width: var(--shop);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 48px 48px 1fr 1.35fr;
  gap: 8px;
  align-items: stretch;
}

.icon-btn {
  border: 0;
  background: transparent;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-size: 11px;
  font-weight: 600;
  padding: 0;
}

.icon-btn svg { width: 22px; height: 22px; }

.cart-btn, .buy-btn {
  border-radius: 8px;
  font-size: 14px;
  font-weight: 800;
  min-height: 48px;
  border: 0;
}

.cart-btn { background: var(--pink-soft); color: var(--pink); }
.buy-btn { background: var(--pink); color: #fff; }

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--bar) + 12px);
  transform: translateX(-50%) translateY(12px);
  background: #161823;
  color: #fff;
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transition: 0.2s ease;
  z-index: 40;
  max-width: calc(100% - 32px);
  text-align: center;
}

.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.pix-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 12, 0.55);
  z-index: 50;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.pix-overlay[hidden] { display: none; }

.pix-modal {
  background: #fff;
  width: min(100%, 480px);
  max-height: 94dvh;
  border-radius: 18px 18px 0 0;
  display: flex;
  flex-direction: column;
  animation: pixUp 0.28s ease-out;
}

@keyframes pixUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.pix-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 8px 12px 16px;
  background: var(--pink);
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  border-radius: 18px 18px 0 0;
}

.pix-close {
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.pix-close svg { width: 22px; height: 22px; }

.pix-scroll {
  overflow-y: auto;
  padding: 16px 16px 8px;
  -webkit-overflow-scrolling: touch;
}

.pix-produto {
  display: flex;
  gap: 12px;
  padding-bottom: 14px;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--line);
}

.pix-produto img {
  width: 72px;
  height: 72px;
  border-radius: 10px;
  object-fit: cover;
  background: #f3f4f6;
  flex: none;
}

.pix-prod-nome { margin: 0 0 6px; font-size: 14px; line-height: 1.35; }
.pix-prod-precos { display: flex; align-items: center; gap: 8px; }
.pix-prod-preco { color: var(--pink); font-weight: 800; font-size: 20px; }
.pix-prod-old { color: #9aa0a6; text-decoration: line-through; font-size: 13px; }

.pix-section-title {
  margin: 16px 0 4px;
  font-size: 14px;
  font-weight: 800;
}

.pix-label {
  display: block;
  margin: 12px 0 6px;
  font-size: 13px;
  font-weight: 600;
  color: #3c4250;
}

.pix-input {
  width: 100%;
  min-height: 48px;
  padding: 12px;
  border: 1px solid #d5d8de;
  border-radius: 10px;
  font-size: 16px;
  outline: none;
  background: #fff;
}

.pix-input:focus { border-color: var(--pink); box-shadow: 0 0 0 3px rgba(254, 44, 85, 0.15); }
.pix-input.pix-invalid { border-color: #ef4444; }

.pix-err { color: #dc2626; font-size: 12px; margin: 4px 0 0; min-height: 0; }
.pix-err:empty { display: none; }

.pix-two-col { display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px; }
.pix-cep-row { display: flex; align-items: center; gap: 8px; }
.pix-cep-row .pix-input { flex: 1; }
.pix-cep-status { font-size: 12px; color: var(--muted); white-space: nowrap; }
.pix-cep-status.ok { color: var(--green); }
.pix-cep-status.err { color: #dc2626; }

.pix-frete-opt {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1.5px solid #d5d8de;
  border-radius: 12px;
  padding: 12px;
  margin-top: 8px;
  cursor: pointer;
}

.pix-frete-opt input { width: 18px; height: 18px; accent-color: var(--pink); }
.pix-frete-opt.sel { border-color: var(--pink); background: var(--pink-soft); }
.pix-frete-info { flex: 1; display: flex; flex-direction: column; }
.pix-frete-nome { font-size: 14px; font-weight: 700; }
.pix-frete-prazo { font-size: 12px; color: var(--muted); }
.pix-frete-preco { font-size: 14px; font-weight: 800; }
.pix-frete-free { color: var(--green); }

.pix-form-error {
  color: #dc2626;
  font-size: 13px;
  text-align: center;
  margin: 12px 0 0;
}

.pix-dock {
  border-top: 1px solid var(--line);
  padding: 10px 16px calc(12px + env(safe-area-inset-bottom));
  background: #fff;
}

.pix-dock[hidden] { display: none; }

.pix-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  color: var(--muted);
}

.pix-total-val { color: var(--pink); font-size: 22px; font-weight: 800; }

.pix-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.35;
  cursor: pointer;
}

.pix-check input {
  width: 22px;
  height: 22px;
  margin: 0;
  accent-color: var(--pink);
  flex: none;
}

.pix-check.missing span { color: #dc2626; }

.pix-btn-pagar, .pix-btn-ghost {
  width: 100%;
  min-height: 50px;
  border: 0;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 800;
  margin-top: 10px;
}

.pix-btn-pagar { background: var(--pink); color: #fff; }
.pix-btn-pagar:disabled,
.pix-btn-pagar.is-locked { opacity: 0.45; }
.pix-btn-ghost { background: #f3f4f6; color: var(--ink); }
.pix-secure { text-align: center; color: #9aa0a6; font-size: 12px; margin: 8px 0 0; }

#pixPixStep, .pix-success { text-align: center; padding-bottom: 16px; }

.pix-timer-badge {
  display: inline-block;
  background: #fef9c3;
  color: #854d0e;
  font-size: 13px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.pix-step-title { font-size: 18px; font-weight: 800; margin: 0; }
.pix-step-sub { color: var(--muted); font-size: 14px; margin: 4px 0 14px; }

.pix-qr-wrap {
  display: inline-block;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}

.pix-qr-wrap img { width: min(220px, 70vw); height: min(220px, 70vw); object-fit: contain; display: block; }

.pix-copy-label { font-size: 13px; color: var(--muted); }
.pix-copy-row { display: flex; gap: 8px; }
.pix-copy-row input {
  flex: 1;
  min-width: 0;
  border: 1px solid #d5d8de;
  border-radius: 10px;
  padding: 12px;
  font-size: 12px;
  background: #f8fafc;
}
.pix-copy-row button {
  border: 0;
  background: var(--pink);
  color: #fff;
  border-radius: 10px;
  padding: 0 16px;
  font-weight: 700;
}

.pix-checking {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  margin-top: 14px;
}

.pix-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid #e5e7eb;
  border-top-color: var(--pink);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.pix-success-svg { width: 88px; height: 88px; margin: 12px auto; display: block; }
.pix-success-circle { transform-origin: center; animation: pop 0.4s ease-out; }
@keyframes pop { 0% { transform: scale(0); } 80% { transform: scale(1.08); } 100% { transform: scale(1); } }
.pix-success-check { stroke-dasharray: 100; stroke-dashoffset: 100; animation: draw 0.5s ease-out 0.25s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.pix-success-title { font-size: 22px; font-weight: 800; margin: 0 0 8px; }
.pix-success-sub { color: var(--muted); margin: 0; }

@media (min-width: 720px) {
  body { padding: 24px 0 40px; }
  .shop { border-radius: 16px; overflow: hidden; min-height: auto; }
  .pix-overlay { align-items: center; padding: 24px; }
  .pix-modal { border-radius: 18px; max-height: min(88dvh, 760px); }
  .pix-modal-header { border-radius: 18px 18px 0 0; }
  .buybar { left: 50%; right: auto; transform: translateX(-50%); width: min(100%, var(--shop)); border-radius: 16px 16px 0 0; }
}

@media (max-width: 360px) {
  .price { font-size: 28px; }
  .buybar-inner { grid-template-columns: 42px 42px 0.9fr 1.2fr; gap: 6px; }
  .cart-btn, .buy-btn { font-size: 13px; padding: 0 4px; }
}
