:root {
  --orange: #ff6e36;
  --orange-dark: #f0510f;
  --green: #17a05a;
  --ink: #1f2937;
  --muted: #6b7280;
  --line: #eceff3;
  --bg: #f2f3f5;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, "Segoe UI", Roboto, system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}
#app {
  max-width: 480px;
  margin: 0 auto;
  background: #fff;
  min-height: 100vh;
}
a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* Promo bar */
.promo-bar {
  background: var(--orange);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 7px 10px;
}

/* Top bar */
.topbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 20;
  border-bottom: 1px solid var(--line);
}
.icon-btn {
  font-size: 18px;
  color: var(--orange);
  width: 30px;
  height: 30px;
  line-height: 1;
  display: grid;
  place-items: center;
}
.icon-btn svg { width: 20px; height: 20px; }
.search {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 6px;
  background: #f1f2f4;
  border-radius: 20px;
  padding: 7px 12px;
}
.search-ico { color: var(--muted); font-size: 15px; }
.search input {
  border: none;
  background: none;
  outline: none;
  font-size: 14px;
  width: 100%;
  color: var(--ink);
}

/* Store header */
.store {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 14px 12px;
}
.store-logo {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--line);
  overflow: hidden;
  flex-shrink: 0;
}
.store-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.store-meta { flex: 1; min-width: 0; }
.store-meta h1 { font-size: 15px; margin: 0 0 2px; font-weight: 700; }
.store-meta span { font-size: 12px; color: var(--muted); }
.store-actions { display: flex; flex-direction: column; gap: 6px; }
.btn-primary {
  background: var(--orange);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  border-radius: 6px;
  padding: 7px 22px;
}
.btn-primary.sm { padding: 6px 16px; font-size: 12px; white-space: nowrap; }
.btn-primary.following { background: #3b82f6; }
.btn-primary.redeemed { background: #e5e7eb; color: #6b7280; cursor: default; }
.btn-outline {
  border: 1px solid #d6d9de;
  color: #444;
  font-weight: 600;
  font-size: 13px;
  border-radius: 6px;
  padding: 6px 20px;
  background: #fff;
}

/* Coupons */
.coupons {
  display: flex;
  gap: 10px;
  padding: 0 14px 12px;
}
.coupon {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: linear-gradient(135deg, #fff4ee, #ffe9dd);
  border: 1px solid #ffd9c4;
  border-radius: 10px;
  padding: 10px;
}
.coupon strong { display: block; font-size: 12px; color: var(--orange-dark); }
.coupon small { font-size: 10px; color: var(--muted); }

/* Tabs */
.tabs {
  display: flex;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 47px;
  background: #fff;
  z-index: 15;
}
.tab {
  flex: 1;
  padding: 12px 0;
  font-size: 14px;
  color: var(--muted);
  font-weight: 600;
  position: relative;
}
.tab.active { color: var(--orange); }
.tab.active::after {
  content: "";
  position: absolute;
  left: 25%;
  right: 25%;
  bottom: 0;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: var(--orange);
}

/* Blocks */
.block { padding: 14px 12px 6px; }
.block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.block-head.center { justify-content: center; }
.block-head h2 { font-size: 15px; margin: 0; font-weight: 700; }
.chev { color: var(--muted); font-size: 18px; }

/* Top scroll (principais produtos) */
.top-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: none;
}
.top-scroll::-webkit-scrollbar { display: none; }
.top-card {
  flex: 0 0 132px;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}

/* Card image */
.card-img {
  position: relative;
  aspect-ratio: 1 / 1;
  background: #fff;
}
.card-img img { width: 100%; height: 100%; object-fit: contain; display: block; }
.rank {
  position: absolute;
  top: 0;
  left: 0;
  background: var(--orange);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 0 0 8px 0;
  z-index: 2;
}

/* Card body */
.card-body { padding: 8px 9px 10px; }
.card-name {
  font-size: 12px;
  line-height: 1.35;
  margin: 0 0 6px;
  color: #333;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 32px;
}
.price-row { display: flex; align-items: baseline; }
.price { color: var(--green); font-size: 16px; font-weight: 800; }
.old-row { display: flex; align-items: center; gap: 6px; margin: 2px 0 6px; flex-wrap: wrap; }
.old { font-size: 11px; color: var(--muted); text-decoration: line-through; }
.discount { font-size: 11px; color: var(--orange-dark); font-weight: 700; }
.shipping {
  display: inline-block;
  font-size: 11px;
  color: var(--green);
  font-weight: 600;
}
.sales { display: block; font-size: 10px; color: var(--muted); margin-top: 4px; }

/* Recommended grid */
.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.grid-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}

/* Trust badges */
.trust {
  display: flex;
  justify-content: space-around;
  gap: 8px;
  padding: 22px 12px;
  margin-top: 8px;
}
.trust div {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--muted);
}
.trust-ico { display: block; }
.trust-ico svg { width: 24px; height: 24px; display: block; }
.promo-ico { display: inline-flex; flex-shrink: 0; }
.promo-ico svg { width: 12px; height: 12px; display: block; }

/* Categorias */
.cat-list {
  background: var(--bg);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cat-row {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #fff;
  padding: 14px;
}
.cat-thumb {
  width: 56px;
  height: 56px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  flex-shrink: 0;
}
.cat-thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }
.cat-meta { flex: 1; min-width: 0; }
.cat-meta strong { display: block; font-size: 15px; font-weight: 600; }
.cat-meta span { font-size: 13px; color: var(--muted); }
.cat-row .chev { color: #9ca3af; font-size: 20px; }

/* Página de produto */
body.pd #app { background: var(--bg); padding-top: 48px; }
.pd-sec {
  background: #fff;
  padding: 14px;
  margin-bottom: 8px;
}
.pd-sec-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.pd-h2 { font-size: 14px; font-weight: 700; margin: 0 0 12px; }
.pd-sec-head .pd-h2 { margin-bottom: 0; }
.pd-link { font-size: 12px; color: var(--muted); }

.pd-gallery {
  position: relative;
  background: #fff;
  aspect-ratio: 1 / 1;
}
.pd-gallery > img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: opacity 0.16s ease, transform 0.16s ease;
}
.img-out-left { opacity: 0; transform: translateX(-28px) scale(0.98); }
.img-out-right { opacity: 0; transform: translateX(28px) scale(0.98); }
.img-in-right { animation: img-in-right 0.22s ease; }
.img-in-left { animation: img-in-left 0.22s ease; }
@keyframes img-in-right {
  from { opacity: 0; transform: translateX(28px) scale(0.98); }
}
@keyframes img-in-left {
  from { opacity: 0; transform: translateX(-28px) scale(0.98); }
}
.pd-topbar {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  z-index: 140;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.pd-top-btn {
  display: grid;
  place-items: center;
  color: #1f2937;
  font-size: 17px;
  line-height: 1;
  padding: 2px;
}
.pd-top-btn svg { width: 20px; height: 20px; }
.pd-top-right { display: flex; align-items: center; gap: 18px; }
.pd-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(120, 126, 137, 0.45);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  display: grid;
  place-items: center;
  padding-bottom: 3px;
}
.pd-arrow.left { left: 10px; }
.pd-arrow.right { right: 10px; }
.pd-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  gap: 5px;
}
.pd-dots i {
  width: 8px;
  height: 3px;
  border-radius: 99px;
  background: #d1d5db;
  transition: all 0.2s;
}
.pd-dots i.active { width: 16px; background: var(--orange); }

.pd-price {
  background: linear-gradient(90deg, var(--orange-dark), #ff4d6b);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
}
.pd-badge {
  background: #fff;
  color: var(--orange-dark);
  font-size: 11px;
  font-weight: 800;
  border-radius: 4px;
  padding: 2px 6px;
  vertical-align: middle;
}
.pd-price-main { font-size: 26px; font-weight: 800; margin-left: 6px; }
.pd-price-old { font-size: 12px; text-decoration: line-through; opacity: 0.85; }
.pd-flash { text-align: right; font-size: 11px; }
.pd-flash strong { display: block; font-size: 12px; margin-bottom: 2px; }
.pd-flash b { font-variant-numeric: tabular-nums; }

.pd-save-wrap { background: #fff; padding: 8px 12px 0; }
.pd-save {
  display: flex;
  align-items: center;
  gap: 7px;
  background: #fff4ee;
  color: var(--orange-dark);
  font-size: 12px;
  font-weight: 700;
  border-radius: 12px;
  padding: 10px 14px;
}
.save-ico { width: 14px; height: 14px; flex-shrink: 0; }
.save-chev { margin-left: auto; font-size: 15px; font-weight: 400; }
.pd-chips { display: flex; gap: 8px; padding: 8px 14px; background: #fff; margin-bottom: 8px; }
.pd-chip {
  font-size: 10px;
  font-weight: 800;
  border-radius: 4px;
  padding: 4px 8px;
  background: #f1f5f9;
  color: #475569;
}
.pd-chip.hot { background: #fee2e2; color: #dc2626; }

.pd-title { font-size: 15px; font-weight: 600; line-height: 1.4; margin: 0 0 8px; }
.pd-rating { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.pd-dot { color: #d1d5db; }
.pd-shipping {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
  font-size: 12px;
  color: var(--ink);
}
.pd-free {
  background: #e8f8ef;
  color: var(--green);
  font-weight: 700;
  font-size: 11px;
  border-radius: 4px;
  padding: 3px 7px;
}
.pd-ship-old { color: var(--muted); text-decoration: line-through; font-size: 11px; }

.pd-vars { display: flex; gap: 12px; flex-wrap: wrap; }
.pd-vars .var {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 8px 0 0;
  background: none;
}
.var-box {
  display: block;
  width: 68px;
  height: 68px;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  background: #fff;
  padding: 6px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.var-box img { width: 100%; height: 100%; object-fit: contain; display: block; }
.pd-vars .var.active .var-box {
  border: 2px solid var(--orange);
  box-shadow: 0 2px 14px rgba(255, 110, 54, 0.5);
}
.var-name { font-size: 11px; color: var(--muted); }
.pd-vars .var.active .var-name { color: var(--ink); }
.var-tag {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  background: var(--orange);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.02em;
  border-radius: 6px;
  padding: 3px 9px;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(240, 81, 15, 0.35);
}
.pd-notice {
  margin-top: 12px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 8px;
  padding: 10px;
  font-size: 11px;
  line-height: 1.5;
  color: #92400e;
}

.pd-protect {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  font-size: 12px;
}
.pd-protect div { display: flex; align-items: flex-start; gap: 6px; }
.check-ico { width: 16px; height: 16px; color: #059669; flex-shrink: 0; margin-top: 1px; }
.pd-coupons { padding: 0; }

.rev-summary {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 12px;
}
.rev-score { text-align: center; }
.rev-score strong { display: block; font-size: 28px; }
.rev-score .stars { font-size: 11px; }
.rev-bars { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.rev-bar { display: flex; align-items: center; gap: 6px; font-size: 10px; color: var(--muted); }
.rev-bar .bar { flex: 1; height: 5px; background: #f1f5f9; border-radius: 99px; overflow: hidden; }
.rev-bar .bar i { display: block; height: 100%; background: var(--orange); border-radius: 99px; }
.rev-reco { text-align: center; font-size: 10px; color: var(--muted); max-width: 70px; }
.rev-reco strong { display: block; font-size: 16px; color: var(--green); }

.rev { padding: 12px 0; border-bottom: 1px solid var(--line); }
.rev:last-child { border-bottom: 0; padding-bottom: 0; }
.rev-head { display: flex; align-items: center; gap: 10px; }
.rev-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 700;
  color: #374151;
  flex-shrink: 0;
}
.rev-who strong { font-size: 12px; display: block; }
.rev-check { font-style: normal; color: var(--green); font-size: 10px; font-weight: 600; }
.stars { color: #f59e0b; font-size: 12px; }
.stars.sm { font-size: 10px; }
.stars.sm b { color: var(--muted); font-weight: 600; }
.rev-var {
  display: inline-block;
  margin: 8px 0 0;
  font-size: 10px;
  color: var(--muted);
  background: #f8fafc;
  border-radius: 4px;
  padding: 2px 6px;
}
.rev p { font-size: 12px; line-height: 1.55; margin: 8px 0; }
.rev-photo {
  width: 92px;
  height: 92px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
}
.rev-photos { display: flex; gap: 8px; }
.rev-foot { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 11px; color: var(--muted); }
.rev-like, .rev-reply { font-size: 11px; color: var(--muted); padding: 0; }
.rev-like.liked { color: var(--orange); font-weight: 700; }

.pd-about p { font-size: 12px; line-height: 1.6; margin: 0 0 10px; }
.pd-about ul { margin: 0 0 10px; padding-left: 18px; }
.pd-about li { font-size: 12px; line-height: 1.6; }

.pd-faq { border-bottom: 1px solid var(--line); }
.pd-faq:last-child { border-bottom: 0; }
.pd-faq summary {
  font-size: 13px;
  font-weight: 600;
  padding: 12px 0;
  cursor: pointer;
  list-style: none;
  position: relative;
}
.pd-faq summary::after {
  content: "›";
  position: absolute;
  right: 2px;
  color: #9ca3af;
  font-size: 16px;
  transform: rotate(90deg);
  transition: transform 0.2s;
}
.pd-faq[open] summary::after { transform: rotate(-90deg); }
.pd-faq p { font-size: 12px; line-height: 1.6; color: var(--muted); margin: 0 0 12px; }

.shop-card { display: flex; align-items: center; gap: 12px; }
.shop-logo {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line);
  object-fit: cover;
}
.shop-meta { flex: 1; min-width: 0; }
.shop-meta strong { display: block; font-size: 13px; }
.shop-meta span { font-size: 11px; color: var(--muted); display: flex; align-items: center; gap: 4px; }
.online-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  display: inline-block;
}
.shop-stats {
  display: flex;
  margin-top: 14px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}
.shop-stats div { flex: 1; text-align: center; }
.shop-stats strong { display: block; font-size: 15px; }
.shop-stats span { font-size: 11px; color: var(--muted); }

.pd-related { padding: 0; background: none; }
.add-btn {
  display: block;
  width: calc(100% - 20px);
  margin: 0 10px 12px;
  background: var(--orange);
  color: #fff;
  font-weight: 700;
  font-size: 12px;
  border-radius: 6px;
  padding: 8px;
}
body.pd .trust, body.pd .footer { background: #fff; }
body.pd .footer { border-top: 0; padding-bottom: 110px; }

.buy-bar {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  z-index: 120;
  display: flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  border-radius: 16px 16px 0 0;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.12);
  padding: 10px 12px calc(12px + env(safe-area-inset-bottom));
}
.buy-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  color: var(--ink);
  font-size: 10px;
  padding: 2px 8px;
  flex-shrink: 0;
}
.buy-action svg { width: 20px; height: 20px; }
.buy-btn {
  flex: 1;
  background: linear-gradient(90deg, var(--orange-dark), #ff4d6b);
  color: #fff;
  border-radius: 12px;
  padding: 9px 12px;
  text-align: center;
}
.buy-btn strong { display: block; font-size: 16px; font-weight: 800; }
.buy-btn span { display: block; font-size: 11px; opacity: 0.9; margin-top: 1px; }

/* Carrinho */
.cart-link { position: relative; }
.cart-badge {
  position: absolute;
  top: -4px;
  right: -6px;
  min-width: 15px;
  height: 15px;
  border-radius: 99px;
  background: var(--orange-dark);
  border: 1.5px solid #fff;
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  line-height: 1;
  display: grid;
  place-items: center;
  padding: 0 3px;
  box-sizing: content-box;
}
.cart-badge[hidden] { display: none; }
body.cart #app { background: var(--bg); }
.cart-head {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--orange);
  color: #fff;
  padding: 13px 16px;
}
.cart-head a { color: #fff; font-size: 18px; line-height: 1; }
.cart-head strong { font-size: 15px; flex: 1; text-align: center; }
.cart-head-spacer { width: 18px; }
.cart-store {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 12px 14px;
  font-size: 13px;
  font-weight: 600;
}
.cart-store > svg { width: 16px; height: 16px; color: var(--orange); flex-shrink: 0; }
.cart-free { margin-left: auto; color: var(--green); font-size: 12px; font-weight: 700; }
.cart-item {
  display: flex;
  gap: 14px;
  background: #fff;
  padding: 16px 14px;
  border-bottom: 1px solid var(--line);
}
.ci-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.ci-left img { width: 72px; height: 72px; object-fit: contain; }
.ci-del { color: #9ca3af; padding: 2px; }
.ci-del svg { width: 16px; height: 16px; }
.ci-info { flex: 1; min-width: 0; }
.ci-name { font-size: 13px; font-weight: 600; line-height: 1.45; margin: 0 0 6px; }
.ci-price { color: var(--green); font-size: 15px; font-weight: 800; }
.ci-qty {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}
.q-btn {
  width: 30px;
  height: 24px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f8f9fa;
  color: #555;
  font-size: 14px;
  line-height: 1;
  display: grid;
  place-items: center;
}
.q-num {
  min-width: 36px;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  font-size: 13px;
  padding: 3px 6px;
}
.cart-protect {
  background: #fff;
  margin-top: 8px;
  padding: 14px;
}
.cart-protect h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #b45309;
  margin: 0 0 12px;
}
.cart-protect h2 svg { width: 18px; height: 18px; color: var(--orange); }
.cart-protect-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 14px;
  font-size: 11px;
  color: #4b5563;
}
.cart-protect-grid div { display: flex; align-items: center; gap: 6px; }
.cart-protect-grid svg { width: 14px; height: 14px; color: var(--orange); flex-shrink: 0; }
#cart-filled-view { padding-bottom: 130px; }
.cart-total-bar {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  z-index: 120;
  background: #fff;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
  padding: 12px 16px calc(14px + env(safe-area-inset-bottom));
}
.cart-total-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: #4b5563;
  margin-bottom: 10px;
}
.cart-total-row strong { color: var(--green); font-size: 18px; font-weight: 800; }
.cart-finish {
  display: block;
  width: 100%;
  background: var(--orange);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  border-radius: 999px;
  padding: 14px;
}
.cart-empty {
  background: #fff;
  text-align: center;
  padding: 56px 16px 44px;
}
.cart-empty svg {
  width: 64px;
  height: 64px;
  color: #d1d5db;
  stroke-width: 1.5;
}
.cart-empty p { color: var(--muted); font-size: 14px; margin: 14px 0 22px; }
.cart-empty .btn-primary { display: inline-block; padding: 10px 26px; }
.cart-block { padding: 20px 12px 32px; }
.cart-block h2 { font-size: 14px; margin: 0 0 12px; }
.cart-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.mini-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-direction: column;
}
.mini-img { height: 110px; margin-bottom: 10px; }
.mini-img img { width: 100%; height: 100%; object-fit: contain; display: block; }
.mini-name { font-size: 12px; margin: 0 0 6px; }
.mini-price { color: var(--green); font-size: 18px; font-weight: 800; }
.mini-price small { font-size: 11px; font-weight: 700; vertical-align: 2px; }
.mini-off {
  color: var(--orange-dark);
  font-size: 11px;
  font-weight: 700;
  margin-top: 4px;
}
.mini-ship { font-size: 11px; color: var(--muted); margin-top: 4px; }

/* Checkout */
body.checkout #app {
  background: #f5f6f8;
  padding-bottom: 140px;
}
.ck-head {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}
.ck-head a { color: var(--ink); display: grid; place-items: center; }
.ck-head a svg { width: 20px; height: 20px; }
.ck-head strong { flex: 1; text-align: center; font-size: 15px; }
.ck-head-spacer { width: 20px; }
.ck-steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 10px;
  background: #fff;
  padding: 16px 20px 14px;
}
.ck-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}
.ck-step-circle {
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: #e5e7eb;
  color: #9ca3af;
  font-size: 12px;
  font-weight: 700;
  display: grid;
  place-items: center;
}
.ck-step-label { font-size: 10px; color: #9ca3af; font-weight: 600; }
.ck-step.active .ck-step-circle { background: var(--orange-dark); color: #fff; }
.ck-step.active .ck-step-label { color: var(--orange-dark); font-weight: 700; }
.ck-step-line {
  flex: 1;
  max-width: 64px;
  height: 2px;
  background: #e5e7eb;
  margin-top: 13px;
}
.ck-card {
  background: #fff;
  border-radius: 14px;
  margin: 12px;
  padding: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
.ck-card h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  margin: 0 0 4px;
}
.ck-card h2 svg { width: 17px; height: 17px; color: var(--orange-dark); flex-shrink: 0; }
.ck-label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #6b7280;
  margin: 14px 0 6px;
}
.ck-field { position: relative; }
.ck-field svg {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: #9ca3af;
  pointer-events: none;
}
.ck-field input {
  width: 100%;
  border: 1px solid #e2e5ea;
  border-radius: 10px;
  background: #fbfcfd;
  padding: 13px 13px 13px 40px;
  font-size: 14px;
  font-family: inherit;
  color: var(--ink);
  outline: none;
}
.ck-field.plain input { padding-left: 13px; }
.ck-field input::placeholder { color: #9ca3af; }
.ck-field input:focus { border-color: var(--orange); background: #fff; }
.ck-field input.invalid { border-color: #ef4444; }
.ck-row { display: flex; gap: 12px; }
.ck-row > div { width: 110px; }
.ck-row > div.grow { flex: 1; width: auto; }
.ck-bottom {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  z-index: 120;
  background: #fff;
  padding: 12px 16px calc(10px + env(safe-area-inset-bottom));
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.06);
}
.ck-continue {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  background: var(--orange-dark);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  border-radius: 999px;
  padding: 15px;
}
.ck-continue svg { width: 16px; height: 16px; }
.ck-ssl {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 11px;
  color: var(--green);
  margin: 9px 0 0;
}
.ck-ssl svg { width: 13px; height: 13px; }

/* Revisão do pedido */
.ck-step.done .ck-step-circle { background: var(--orange-dark); color: #fff; }
.ck-step.done .ck-step-label { color: var(--orange-dark); font-weight: 700; }
.ck-step-line.filled { background: var(--orange-dark); }
.rv-timer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin: 12px;
  background: linear-gradient(90deg, var(--orange-dark), #ff8a4d);
  color: #fff;
  border-radius: 12px;
  padding: 12px;
  font-size: 13px;
  font-weight: 600;
}
.rv-timer svg { width: 15px; height: 15px; }
.rv-timer b { font-size: 15px; font-variant-numeric: tabular-nums; }
.rv-store { display: flex; align-items: center; gap: 10px; }
.rv-store img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--line);
  object-fit: cover;
}
.rv-store strong { font-size: 13px; }
.rv-store span { margin-left: auto; font-size: 12px; color: var(--muted); }
.rv-free-banner {
  background: #e8f8ef;
  color: var(--green);
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  padding: 8px;
  margin: 12px -16px 0;
}
.rv-item { display: flex; align-items: center; gap: 12px; padding-top: 14px; }
.rv-item > img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 10px;
  flex-shrink: 0;
  background: #fff;
}
.rv-item-info { flex: 1; min-width: 0; }
.rv-item-info p { font-size: 13px; margin: 0 0 6px; }
.rv-item-info strong { color: var(--green); font-size: 17px; font-weight: 800; }
.rv-qty {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #f1f3f5;
  border-radius: 999px;
  padding: 6px 12px;
  flex-shrink: 0;
}
.rv-qty button { font-size: 15px; line-height: 1; color: #9ca3af; padding: 0; }
.rv-qty .rv-plus { color: var(--orange-dark); }
.rv-qty span { font-size: 13px; font-weight: 700; min-width: 14px; text-align: center; }
.rv-h2 { font-size: 14px; margin: 0; display: flex; align-items: center; gap: 8px; }
.rv-h2 svg { width: 16px; height: 16px; color: var(--orange-dark); }
.ship-opt {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  margin-top: 12px;
  cursor: pointer;
}
.ship-opt strong { display: block; font-size: 13px; margin-bottom: 4px; }
.ship-sub { font-size: 11px; color: var(--orange-dark); }
.ship-chip {
  display: inline-block;
  background: #e8f8ef;
  color: var(--green);
  font-size: 10px;
  font-weight: 700;
  border-radius: 4px;
  padding: 2px 6px;
}
.ship-price { margin-left: auto; font-size: 13px; font-weight: 800; }
.ship-price.free, #sum-frete.free { color: var(--green); }
.radio {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid #d1d5db;
  flex-shrink: 0;
  display: grid;
  place-items: center;
}
.ship-opt.active { border-color: var(--green); background: #f2fbf6; }
.ship-opt.active .radio { border-color: var(--green); }
.ship-opt.active .radio::after {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
}
.sum-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: #4b5563;
  padding: 9px 0 0;
}
.sum-row.sum-total {
  border-top: 1px solid var(--line);
  margin-top: 12px;
  padding-top: 14px;
  color: var(--ink);
  font-weight: 700;
  align-items: flex-start;
}
.sum-total-value { text-align: right; }
.sum-total-value b { display: block; color: var(--green); font-size: 20px; font-weight: 800; }
.sum-total-value small { font-size: 10px; color: var(--muted); font-weight: 400; }
.rv-savings {
  margin: 12px;
  background: #e8f8ef;
  border: 1px solid #c4eed4;
  border-radius: 12px;
  padding: 13px 14px;
  color: var(--green);
  font-size: 13px;
  font-weight: 600;
}
.pay-opt {
  display: flex;
  align-items: center;
  gap: 12px;
  border-radius: 12px;
  padding: 13px;
  margin-top: 12px;
}
.pay-opt.pix { border: 1.5px solid var(--orange-dark); background: #fff4ee; }
.pix-ico { width: 34px; height: 34px; color: #32bcad; flex-shrink: 0; }
.pay-opt.pix > div { flex: 1; min-width: 0; }
.pay-opt.pix strong { display: block; font-size: 14px; margin-bottom: 2px; }
.pay-opt.pix span { font-size: 11px; color: var(--muted); }
.pix-radio { border-color: var(--orange-dark); }
.pix-radio::after {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--orange-dark);
}
.pay-opt.card-disabled {
  border: 1px solid var(--line);
  color: #c3c8cf;
  font-size: 13px;
  gap: 10px;
}
.pay-opt.card-disabled svg { width: 18px; height: 18px; }
.pay-chev { margin-left: auto; font-size: 16px; }
.rv-addr-head { display: flex; align-items: center; justify-content: space-between; }
.rv-edit { color: var(--orange-dark); font-size: 14px; font-weight: 700; }
.rv-addr { margin-top: 12px; }
.rv-addr p { font-size: 13px; color: #4b5563; margin: 5px 0; }
.rv-addr strong { color: var(--ink); }
.rv-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  font-size: 11px;
  color: var(--muted);
}
.rv-badges span { display: inline-flex; align-items: center; gap: 5px; }
.rv-badges svg { width: 14px; height: 14px; }
.rv-badges svg.green { color: var(--green); }
.rv-badges svg.blue { color: #3b82f6; }
.rv-badges svg.star { color: #f59e0b; }
.rv-badges i { width: 1px; height: 14px; background: var(--line); }
.rv-bottom {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  z-index: 120;
  background: #fff;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
  padding: 12px 16px calc(10px + env(safe-area-inset-bottom));
}
.rv-expira {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 11px;
  color: var(--orange-dark);
  margin: 9px 0 0;
}
.rv-expira svg { width: 12px; height: 12px; }
.rv-expira b { font-variant-numeric: tabular-nums; }

/* Pagamento PIX */
.pg-card { padding: 0; overflow: hidden; }
.pg-timer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  background: linear-gradient(90deg, var(--orange-dark), #ff8a4d);
  color: #fff;
  padding: 13px;
  font-size: 13px;
  font-weight: 600;
}
.pg-timer svg { width: 15px; height: 15px; }
.pg-timer b { font-size: 16px; font-variant-numeric: tabular-nums; }
.pg-body { padding: 18px 16px 20px; text-align: center; }
.pg-sub { font-size: 14px; color: #4b5563; margin: 0 0 2px; }
.pg-strong { font-size: 15px; font-weight: 800; margin: 0; }
.pg-cam {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 12px;
  color: var(--muted);
  margin: 8px 0 14px;
}
.pg-cam svg { width: 13px; height: 13px; }
.pg-value { font-size: 14px; font-weight: 700; margin: 0; }
.pg-value span { color: var(--green); font-weight: 800; }
.pg-qr {
  display: block;
  width: 210px;
  height: 210px;
  margin: 16px auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px;
  background: #fff;
}
.pg-qr.pg-qr-loading {
  background:
    linear-gradient(90deg, #f1f3f5 25%, #e9ecef 37%, #f1f3f5 63%) #f1f3f5;
  background-size: 400% 100%;
  animation: pg-shimmer 1.2s ease infinite;
}
.pg-qr.pg-qr-error { background: #fef2f2; border-color: #fecaca; }
@keyframes pg-shimmer { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }
.pg-waiting.error {
  background: #fef2f2;
  border-color: #fecaca;
  color: #b91c1c;
}
.pg-waiting.error .pg-spin { display: none; }
.pg-waiting.error small { display: block; font-weight: 400; opacity: 0.85; margin-top: 2px; }
.pg-waiting.paid {
  background: #e8f8ef;
  border-color: #c4eed4;
  color: var(--green);
  font-weight: 700;
}
.pg-waiting.paid .pg-spin { display: none; }
.pg-how {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  text-align: left;
}
.pg-how h3 { font-size: 13px; text-align: center; margin: 0 0 12px; }
.pg-how-row { display: flex; gap: 10px; margin-top: 10px; }
.pg-how-row svg { width: 18px; height: 18px; color: #6b7280; flex-shrink: 0; margin-top: 2px; }
.pg-how-row p { font-size: 12px; line-height: 1.55; color: #4b5563; margin: 0; }
.pg-ou {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  margin: 18px 0;
}
.pg-ou i { flex: 1; height: 1px; background: var(--line); }
.pg-copy {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  background: var(--orange-dark);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.02em;
  border-radius: 999px;
  padding: 15px;
}
.pg-copy svg { width: 16px; height: 16px; }
.pg-code {
  margin-top: 12px;
  background: #f8f9fa;
  border: 1px dashed #d1d5db;
  border-radius: 10px;
  padding: 12px 14px;
  text-align: left;
}
.pg-code-label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.pg-code p {
  margin: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  line-height: 1.6;
  color: #4b5563;
  word-break: break-all;
}
.pg-waiting {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 12px 12px 24px;
  background: #fefce8;
  border: 1px solid #fef08a;
  border-radius: 12px;
  padding: 13px 14px;
  font-size: 13px;
  color: #b45309;
}
.pg-spin {
  width: 16px;
  height: 16px;
  border: 2px solid var(--orange-dark);
  border-top-color: transparent;
  border-radius: 50%;
  flex-shrink: 0;
  animation: pg-spin 0.9s linear infinite;
}
@keyframes pg-spin { to { transform: rotate(360deg); } }

/* Modal de compra */
.sheet-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.sheet-overlay[hidden] { display: none; }
.sheet {
  width: 100%;
  max-width: 480px;
  background: #fff;
  border-radius: 16px 16px 0 0;
  overflow: hidden;
  padding-bottom: calc(16px + env(safe-area-inset-bottom));
  animation: sheet-up 0.28s ease;
}
@keyframes sheet-up {
  from { transform: translateY(40%); opacity: 0.6; }
}
.sheet-head {
  background: var(--orange);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
}
.sheet-head strong { font-size: 14px; }
.sheet-head span { font-size: 11px; font-weight: 600; }
.sheet-product {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px 4px;
}
.sheet-product > img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 10px;
  flex-shrink: 0;
}
.sheet-product p { font-size: 14px; font-weight: 600; margin: 0 0 2px; }
.sheet-price { display: block; color: var(--green); font-size: 20px; font-weight: 800; }
.sheet-old { color: var(--muted); text-decoration: line-through; font-size: 12px; }
.sheet-model { padding: 0 16px; font-size: 13px; margin: 12px 0 4px; }
.sheet-vars { padding: 8px 16px 0; }
.sheet-vars .var-box { position: relative; }
.sheet-vars .var.active .var-box::after {
  content: "✓";
  position: absolute;
  top: -7px;
  right: -7px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  display: grid;
  place-items: center;
}
.var-tag.dark { background: #1f2937; }
.sheet-notice {
  margin: 16px 16px 12px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 10px;
  padding: 12px;
  font-size: 12px;
  line-height: 1.5;
}
.sheet-notice .hl { color: var(--orange-dark); }
.sheet-badges {
  display: flex;
  justify-content: center;
  gap: 22px;
  padding: 2px 16px 14px;
  font-size: 12px;
  color: #4b5563;
}
.sheet-badges span { display: inline-flex; align-items: center; gap: 5px; }
.badge-ico { width: 15px; height: 15px; }
.badge-ico.green { color: var(--green); }
.badge-ico.orange { color: var(--orange); }
.sheet-confirm {
  display: block;
  width: calc(100% - 32px);
  margin: 0 16px;
  background: var(--orange);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  border-radius: 12px;
  padding: 14px;
}

/* Chat */
.chat-modal {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: flex;
  flex-direction: column;
  background: #f5f7fa;
}
.chat-modal[hidden] { display: none; }
.chat-head {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--orange);
  color: #fff;
  padding: 12px 16px;
  flex-shrink: 0;
}
.chat-back, .chat-close {
  color: #fff;
  font-size: 20px;
  line-height: 1;
  padding: 4px;
}
.chat-close { margin-left: auto; }
.chat-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #fff;
  object-fit: cover;
}
.chat-title strong { display: block; font-size: 16px; }
.chat-title span { font-size: 12px; opacity: 0.85; }
.chat-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 14px;
}
.msg {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  margin-bottom: 12px;
}
.msg-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #fff;
  object-fit: cover;
  flex-shrink: 0;
}
.msg .bubble {
  background: #fff;
  border-radius: 14px;
  border-bottom-left-radius: 4px;
  padding: 12px 14px;
  max-width: 75%;
  font-size: 12px;
  line-height: 1.5;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}
.msg.user { justify-content: flex-end; }
.msg.user .bubble {
  background: var(--orange);
  color: #fff;
  border-bottom-left-radius: 14px;
  border-bottom-right-radius: 4px;
}
.msg-time {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 6px;
}
.msg.user .msg-time { color: rgba(255, 255, 255, 0.8); }
.typing { display: inline-flex; gap: 4px; padding: 4px 2px; }
.typing i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #b9c0c9;
  animation: typing-blink 1s infinite;
}
.typing i:nth-child(2) { animation-delay: 0.2s; }
.typing i:nth-child(3) { animation-delay: 0.4s; }
@keyframes typing-blink {
  0%, 80%, 100% { opacity: 0.3; }
  40% { opacity: 1; }
}
.chat-faq {
  background: #fff;
  padding: 14px 16px 22px;
  border-top: 1px solid var(--line);
  flex-shrink: 0;
}
.faq-label {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 10px;
}
.faq-pills { display: flex; flex-wrap: wrap; gap: 10px; }
.faq-pill {
  border: 1px solid #d6d9de;
  border-radius: 999px;
  background: #fff;
  padding: 8px 14px;
  font-size: 12px;
  color: var(--ink);
}

/* Toast */
.toast {
  position: fixed;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 24px);
  max-width: 456px;
  z-index: 100;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.18);
  padding: 18px 44px 18px 18px;
  animation: toast-in 0.25s ease;
}
.toast strong { font-size: 15px; }
.toast p { margin: 8px 0 0; font-size: 14px; }
.toast-close {
  position: absolute;
  top: 12px;
  right: 12px;
  color: #555;
  font-size: 14px;
  line-height: 1;
  padding: 4px;
}
.toast.hide { opacity: 0; transition: opacity 0.25s; }
@keyframes toast-in {
  from { transform: translate(-50%, -14px); opacity: 0; }
}

/* Footer */
.footer {
  background: #fafafa;
  border-top: 1px solid var(--line);
  text-align: center;
  padding: 24px 16px 40px;
}
.footer-logo {
  width: 44px;
  height: 44px;
  margin: 0 auto 10px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--line);
  overflow: hidden;
}
.footer-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.footer h3 { font-size: 14px; margin: 0 0 8px; }
.footer p { font-size: 12px; color: var(--muted); margin: 4px 0; }
.pay-title { font-size: 12px; font-weight: 700; margin: 16px 0 10px; }
.pay { display: flex; justify-content: center; gap: 10px; }
.pay-chip {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 6px 16px;
  font-size: 12px;
  font-weight: 600;
  background: #fff;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 14px;
  margin-top: 18px;
}
.footer-links a { font-size: 12px; color: var(--orange-dark); }
