/* ─── Header ─────────────────────────────────────────────────────────────── */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 70; background: rgba(8, 9, 13, 0.82); backdrop-filter: blur(14px); border-bottom: 1px solid var(--border); }
.header-main { display: flex; align-items: center; gap: 16px; height: var(--header-h); }
.logo { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; font-size: 16px; letter-spacing: -0.03em; flex: none; }
.logo img { height: 20px; width: auto; }
.wordmark { display: inline-flex; gap: 5px; font-size: 15px; letter-spacing: -0.02em; white-space: nowrap; }
.wordmark strong { font-weight: 700; }
.wordmark span { font-weight: 400; color: var(--text-2); }
.status-banner { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; padding: 6px 16px; background: var(--warning-soft); color: #f4d596; font-size: 12.5px; text-align: center; }
.status-banner .link { color: inherit; text-decoration: underline; }
.search { position: relative; flex: 1; max-width: 560px; }
.search .input { height: 36px; padding-left: 34px; background: var(--surface); }
.search .prefix { position: absolute; left: 11px; top: 10px; color: var(--text-3); pointer-events: none; }
.search-results { position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 60; background: var(--surface-2); border: 1px solid var(--border-strong); border-radius: var(--r-lg); box-shadow: var(--shadow-2); overflow: hidden; text-align: left; }
.search-result { display: flex; gap: 10px; align-items: center; padding: 9px 12px; }
.search-result:hover, .search-result:focus { background: var(--surface-3); outline: 0; }
.header-actions { display: flex; align-items: center; gap: 4px; margin-left: auto; flex: none; min-width: 0; }
.icon-btn { position: relative; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; color: var(--text-2); transition: background 0.14s, color 0.14s; }
.icon-btn:hover { background: var(--surface-2); color: var(--text); }
.count-dot { position: absolute; top: 3px; right: 2px; min-width: 15px; height: 15px; padding: 0 4px; display: grid; place-items: center; border-radius: 8px; background: var(--accent); color: #fff; font: 600 10px/1 var(--mono); }
.count-dot.inline { position: static; margin-left: auto; }
.header-sell { margin: 0 4px; gap: 5px; }
.header-sell svg { width: 15px; height: 15px; }
.header-cats { gap: 6px; color: var(--text-2); }
.header-cats svg { width: 15px; height: 15px; }
.header-cats .caret { width: 13px; height: 13px; transition: transform 0.16s; }
.header-cats[aria-expanded='true'] .caret { transform: rotate(180deg); }
.avatar-btn { margin-left: 2px; }

/* Menus: o painel abre abaixo do gatilho, alinhado à direita; o JS o mantém dentro da tela. */
.menu-wrap { position: relative; }
.menu-wrap > .menu { top: calc(100% + 8px); right: 0; }
.notif-panel { width: min(360px, calc(100vw - 24px)); padding: 0; }
.notif-item { display: block; padding: 11px 13px; border-bottom: 1px solid var(--border); }
.notif-item:hover { background: var(--surface-3); }
.notif-item.unread { box-shadow: inset 2px 0 0 var(--accent); }
.notif-item strong { display: block; font-weight: 500; font-size: 13px; }
.notif-item span { font-size: 12.5px; color: var(--text-2); }
.notif-item time { display: block; font-size: 11.5px; color: var(--text-3); margin-top: 3px; }

@media (max-width: 720px) {
  .header-main { gap: 8px; }
  .search { order: 3; flex-basis: 100%; max-width: none; }
  .site-header:has(.search) .header-main { flex-wrap: wrap; height: auto; padding-block: 10px; }
  .header-cats .label, .header-cats .caret, .header-signup { display: none; }
  .header-cats { width: 36px; padding: 0; justify-content: center; }
  .hide-mobile { display: none !important; }
}
@media (max-width: 400px) {
  .wordmark { display: none; }
  .header-sell { margin: 0 2px; padding-inline: 10px; }
}
@media (max-width: 360px) {
  .header-sell svg { display: none; }
  .header-main { gap: 4px; }
  .icon-btn { width: 32px; }
}
/* ─── Footer ─────────────────────────────────────────────────────────────── */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-raised); padding-block: 44px 28px; margin-top: 8px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 32px; }
.footer-grid h4 { font-size: 12.5px; font-weight: 500; color: var(--text-3); margin-bottom: 11px; }
.footer-grid li { margin-bottom: 7px; }
.footer-grid a { color: var(--text-2); font-size: 13px; }
.footer-grid a:hover { color: var(--text); }
.footer-bottom { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; border-top: 1px solid var(--border); margin-top: 32px; padding-top: 18px; font-size: 12.5px; color: var(--text-3); }
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

.env-banner { background: var(--warning-soft); color: #f4d596; text-align: center; padding: 5px 16px; font-size: 12.5px; }

/* ─── Homepage ───────────────────────────────────────────────────────────── */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.hero { position: relative; isolation: isolate; overflow-x: clip; padding-block: clamp(40px, 9vh, 92px) clamp(28px, 5vh, 48px); text-align: center; }
/* Brilho azul discreto atrás da busca; o resto do fundo segue preto. */
.hero::before { content: ''; position: absolute; z-index: -1; left: 50%; top: 52%; width: min(980px, 130%); height: 340px; transform: translate(-50%, -50%); background: radial-gradient(closest-side, rgba(37, 99, 235, 0.16), rgba(37, 99, 235, 0.05) 55%, transparent); pointer-events: none; }
.hero h1 { font-size: clamp(36px, 7vw, 68px); font-weight: 800; line-height: 1.04; letter-spacing: -0.045em; }
.hero-sub { margin: 14px auto 0; max-width: 560px; color: var(--electric); font-size: clamp(15px, 2vw, 18px); line-height: 1.45; }
.search-hero { max-width: 850px; margin: clamp(26px, 4.5vh, 40px) auto 0; text-align: left; }
.search-hero .input { height: 56px; padding-left: 52px; border-radius: 16px; background: var(--surface); border-color: var(--border); font-size: 16px; transition: border-color 0.16s, box-shadow 0.16s; }
.search-hero .input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.2); outline: 0; }
.search-hero .prefix { left: 19px; top: 17px; }
.search-hero .prefix svg { width: 22px; height: 22px; }
.search-hero .search-results { border-radius: 16px; }

.quick { margin-top: 26px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.quick-label { font-size: 12.5px; color: var(--text-3); letter-spacing: 0.02em; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 760px; }
.chip { display: inline-flex; align-items: center; gap: 7px; padding: 7px 14px 7px 11px; border: 1px solid var(--border); border-radius: 999px; background: rgba(21, 25, 34, 0.6); color: var(--text-2); font-size: 13px; transition: border-color 0.16s, color 0.16s, background 0.16s; }
.chip svg { width: 15px; height: 15px; color: var(--text-3); transition: color 0.16s; }
.chip:hover { border-color: var(--accent-line); background: var(--accent-soft); color: var(--text); }
.chip:hover svg { color: var(--electric); }
.how-link { margin-top: 22px; display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--text-2); }
.how-link:hover { color: var(--text); }
.how-link svg { width: 15px; height: 15px; }
@media (max-width: 520px) {
  .search-hero .input { height: 52px; padding-left: 46px; font-size: 15px; }
  .search-hero .prefix { left: 16px; top: 15px; }
  .chip { padding: 6px 12px 6px 9px; font-size: 12.5px; }
}

.promo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 12px; }
.promo { position: relative; display: flex; align-items: flex-end; min-height: 150px; padding: 20px; border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface); overflow: hidden; }
.promo > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.4; }
.promo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, var(--surface) 8%, transparent 85%); }
.promo-copy { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; min-width: 0; }
.promo-copy h2 { font-size: 18px; letter-spacing: -0.02em; }
.promo-copy p { font-size: 13.5px; color: var(--text-2); }
.how { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; counter-reset: step; }
.how-step { position: relative; padding: 18px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); }
.how-step .num { display: inline-grid; place-items: center; width: 28px; height: 28px; margin-bottom: 12px; border-radius: 9px; background: var(--accent-soft); color: var(--electric); font: 600 13px var(--mono); }
.how-step strong { display: block; font-weight: 600; font-size: 14.5px; margin-bottom: 5px; }
.how-step p { font-size: 13px; color: var(--text-2); line-height: 1.5; }
.how-more { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 13px; }
.how-more a { color: var(--electric); }
@media (max-width: 900px) { .how { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .how { grid-template-columns: minmax(0, 1fr); } }
.section { padding-block: clamp(24px, 4vw, 40px); scroll-margin-top: calc(var(--header-h) + 12px); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.section-head a { font-size: 12.5px; color: var(--text-2); display: inline-flex; gap: 4px; align-items: center; }
.section-head a:hover { color: var(--text); }

.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(218px, 1fr)); gap: 12px; }
@media (max-width: 520px) { .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } }
.product-card { display: flex; flex-direction: column; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; transition: border-color 0.16s, transform 0.2s var(--ease); min-width: 0; }
.product-card:hover { border-color: var(--accent-line); transform: translateY(-3px); box-shadow: 0 14px 30px -18px rgba(37, 99, 235, 0.5); }
.product-card .media { position: relative; aspect-ratio: 16 / 10; background: var(--surface-3); overflow: hidden; }
.product-card .media img { width: 100%; height: 100%; object-fit: cover; }
.product-card .media .tag { position: absolute; left: 7px; top: 7px; }
.media-empty { width: 100%; height: 100%; display: grid; place-items: center; color: var(--text-3); }
.product-card .body { padding: 13px 14px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product-card .title { font-size: 13.5px; font-weight: 500; line-height: 1.35; min-height: 2.7em; }
.product-card .meta { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-3); min-width: 0; }
.product-card .price-row { display: flex; align-items: baseline; gap: 7px; flex-wrap: wrap; margin-top: auto; padding-top: 3px; }
.price { font: 500 16px/1.2 var(--mono); letter-spacing: -0.04em; }
.price-old { font: 400 12px/1 var(--mono); color: var(--text-3); text-decoration: line-through; }

.category-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.category-tile { display: flex; align-items: center; gap: 13px; padding: 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); transition: border-color 0.16s, background 0.16s, transform 0.2s var(--ease); min-width: 0; }
.category-tile:hover { border-color: var(--accent-line); background: var(--surface-2); }
.category-tile .ico { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: var(--accent-soft); color: var(--electric); flex: none; }
.category-tile strong { font-weight: 500; font-size: 14.5px; display: block; }
.category-tile .grow > span { font-size: 12.5px; color: var(--text-3); }
.category-tile .arrow { width: 16px; height: 16px; color: var(--text-3); flex: none; transition: transform 0.18s var(--ease), color 0.16s; }
.category-tile:hover .arrow { transform: translateX(3px); color: var(--electric); }
.seller-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 12px; }
.seller-card { display: flex; gap: 11px; padding: 13px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); transition: border-color 0.15s; min-width: 0; }
.seller-card:hover { border-color: var(--border-strong); }

.trust { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: clamp(20px, 4vw, 36px); }
.trust-list { display: grid; gap: 16px; }
.trust-item { display: flex; gap: 11px; }
.trust-item .ico { width: 32px; height: 32px; display: grid; place-items: center; border-radius: var(--r); background: var(--info-soft); color: #8cc6ff; flex: none; }
.trust-item strong { font-weight: 500; display: block; margin-bottom: 2px; }
.trust-item p { font-size: 13px; color: var(--text-2); }
@media (max-width: 820px) { .trust { grid-template-columns: 1fr; } }

.stat-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--bg-raised); overflow: hidden; }
.stat-strip > div { padding: 18px; border-right: 1px solid var(--border); }
.stat-strip > div:last-child { border-right: 0; }
.stat-strip .value { font: 500 25px/1.15 var(--mono); letter-spacing: -0.05em; }
.stat-strip .label { font-size: 12.5px; color: var(--text-3); margin-top: 3px; }

.faq { display: grid; gap: 8px; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); }
.faq summary { padding: 12px 14px; font-weight: 500; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { transition: transform 0.18s var(--ease); color: var(--text-3); }
.faq details[open] summary svg { transform: rotate(180deg); }
.faq details p { padding: 0 14px 13px; color: var(--text-2); font-size: 13.5px; }

/* ─── Busca ──────────────────────────────────────────────────────────────── */
.catalog { display: grid; grid-template-columns: 228px minmax(0, 1fr); gap: 24px; align-items: start; }
.catalog-side { position: sticky; top: calc(var(--header-h) + 52px); display: flex; flex-direction: column; gap: 18px; }
.catalog-side h3 { font-size: 12.5px; color: var(--text-3); font-weight: 500; margin-bottom: 7px; }
.cat-link { display: flex; justify-content: space-between; padding: 5px 8px; font-size: 13px; color: var(--text-2); border-radius: var(--r); }
.cat-link:hover { background: var(--surface-2); color: var(--text); }
.cat-link.active { background: var(--accent-soft); color: #bcd4ff; }
.cat-link.sub { padding-left: 18px; font-size: 12.5px; }
@media (max-width: 860px) { .catalog { grid-template-columns: minmax(0, 1fr); } .catalog-side { position: static; } .catalog-side .cat-list { display: flex; flex-wrap: wrap; gap: 4px; } .cat-link.sub { display: none; } }

/* ─── Produto ────────────────────────────────────────────────────────────── */
.product-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 26px; align-items: start; }
.buy-box { position: sticky; top: calc(var(--header-h) + 52px); display: flex; flex-direction: column; gap: 12px; }
@media (max-width: 920px) { .product-layout { grid-template-columns: minmax(0, 1fr); } .buy-box { position: static; } }
.gallery-main { aspect-ratio: 16 / 10; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; }
.gallery-main img, .gallery-main video { width: 100%; height: 100%; object-fit: contain; background: var(--bg-raised); }
.gallery-thumbs { display: flex; gap: 6px; margin-top: 7px; overflow-x: auto; }
.gallery-thumbs button { width: 66px; height: 46px; flex: none; border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; background: var(--surface-2); display: grid; place-items: center; color: var(--text-2); }
.gallery-thumbs button[aria-current='true'] { border-color: var(--accent); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.spec-list { display: grid; grid-template-columns: minmax(110px, 170px) 1fr; font-size: 13px; }
.spec-list dt { padding: 7px 0; color: var(--text-3); border-bottom: 1px solid var(--border); }
.spec-list dd { padding: 7px 0; border-bottom: 1px solid var(--border); overflow-wrap: anywhere; min-width: 0; }
.qa-item { padding-block: 13px; border-bottom: 1px solid var(--border); }
.qa-item:last-child { border-bottom: 0; }
.review-item { padding-block: 13px; border-bottom: 1px solid var(--border); }
.review-item:last-child { border-bottom: 0; }
.seller-reply { margin-top: 8px; padding: 8px 11px; background: var(--surface-2); border-radius: var(--r); font-size: 13px; color: var(--text-2); }
.rating-bar { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-3); }
.rating-bar .track { flex: 1; height: 5px; background: var(--surface-3); border-radius: 3px; overflow: hidden; }
.rating-bar .track i { display: block; height: 100%; background: var(--warning); }

/* ─── Painéis ────────────────────────────────────────────────────────────── */
.panel { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 26px; align-items: start; }
.panel-nav { position: sticky; top: calc(var(--header-h) + 52px); display: flex; flex-direction: column; gap: 1px; }
.panel-nav .nav-title { font-size: 12px; color: var(--text-3); padding: 10px 10px 4px; }
.panel-nav a { display: flex; align-items: center; gap: 9px; padding: 7px 10px; font-size: 13px; color: var(--text-2); border-radius: var(--r); }
.panel-nav a:hover { background: var(--surface); color: var(--text); }
.panel-nav a[aria-current='page'] { background: var(--surface-2); color: var(--text); }
.panel-nav .pill { margin-left: auto; font: 500 11px/1 var(--mono); padding: 3px 5px; border-radius: var(--r-sm); background: var(--accent-soft); color: var(--electric); }
@media (max-width: 860px) {
  .panel { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .panel-nav { position: static; flex-direction: row; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--border); padding-bottom: 6px; }
  .panel-nav a { white-space: nowrap; }
  .panel-nav .nav-title { display: none; }
}

/* ─── Autenticação ───────────────────────────────────────────────────────── */
.auth-page { display: grid; place-items: center; padding: 48px 16px 72px; flex: 1; background: radial-gradient(640px 320px at 50% -60px, rgba(26, 82, 224, 0.16), transparent 70%); }
.auth-card { width: min(420px, 100%); padding: 30px; gap: 18px; box-shadow: var(--shadow-3); }
.auth-head { align-items: center; text-align: center; }
.auth-logo { display: block; margin-bottom: 8px; }
.auth-logo img { height: 34px; width: auto; }
.auth-card h1 { font-size: 21px; margin-bottom: 2px; }
.auth-sep { display: flex; align-items: center; gap: 12px; color: var(--text-3); font-size: 12px; }
.auth-sep::before, .auth-sep::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.social-list { display: grid; gap: 8px; }
.btn-social { height: 42px; gap: 10px; background: var(--surface-2); border-color: var(--border-strong); }
.btn-social:hover { border-color: var(--accent-line); background: var(--surface-3); }
.btn-social[disabled] { opacity: 0.45; pointer-events: none; }
.social-note { text-align: center; margin-top: -8px; }
.provider-chip { justify-content: center; padding: 8px 10px; border-radius: var(--r); background: var(--surface-2); }
.provider-mark { width: 32px; height: 32px; display: grid; place-items: center; border-radius: var(--r); background: var(--surface-2); border: 1px solid var(--border); flex: none; }

/* ─── Carrinho e checkout ────────────────────────────────────────────────── */
.checkout-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 22px; align-items: start; }
.summary { position: sticky; top: calc(var(--header-h) + 52px); }
.summary-line { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; font-size: 13.5px; color: var(--text-2); }
.summary-line.total { color: var(--text); font-size: 15px; font-weight: 500; border-top: 1px solid var(--border); margin-top: 7px; padding-top: 12px; }
.line-item { display: flex; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.line-item:last-child { border-bottom: 0; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--border-strong); border-radius: var(--r); }
.qty button { width: 28px; height: 28px; color: var(--text-2); display: grid; place-items: center; }
.qty button:hover { color: var(--text); background: var(--surface-2); }
.qty span { min-width: 26px; text-align: center; font-family: var(--mono); font-size: 13px; }
.pix-box { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 20px; align-items: start; }
.pix-qr { background: #fff; padding: 10px; border-radius: var(--r); width: 220px; max-width: 100%; }
.pix-code { font: 12px/1.5 var(--mono); background: var(--bg-raised); border: 1px solid var(--border); padding: 9px 11px; border-radius: var(--r); word-break: break-all; max-height: 92px; overflow-y: auto; }
@media (max-width: 860px) { .checkout-grid { grid-template-columns: minmax(0, 1fr); } .summary { position: static; } }
@media (max-width: 560px) { .pix-box { grid-template-columns: minmax(0, 1fr); } .pix-qr { margin-inline: auto; } }

.timeline { display: flex; flex-direction: column; }
.timeline-item { display: flex; gap: 10px; padding-bottom: 13px; position: relative; font-size: 13px; }
.timeline-item:not(:last-child)::before { content: ''; position: absolute; left: 4px; top: 13px; bottom: 0; width: 1px; background: var(--border-strong); }
.timeline-item .mark { width: 9px; height: 9px; margin-top: 5px; border-radius: 50%; background: var(--border-strong); flex: none; }
.timeline-item.current .mark { background: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.timeline-item time { font-size: 12px; color: var(--text-3); display: block; }

/* ─── Chat ───────────────────────────────────────────────────────────────── */
.chat { display: grid; grid-template-columns: 290px minmax(0, 1fr); height: calc(100dvh - var(--header-h) - 150px); min-height: 480px; overflow: hidden; }
.chat-list { border-right: 1px solid var(--border); overflow-y: auto; }
.chat-row { display: flex; gap: 10px; width: 100%; padding: 11px 13px; text-align: left; border-bottom: 1px solid var(--border); }
.chat-row:hover { background: var(--surface-2); }
.chat-row[aria-current='true'] { background: var(--surface-2); box-shadow: inset 2px 0 0 var(--accent); }
.chat-main { display: flex; flex-direction: column; min-width: 0; }
.chat-head { display: flex; align-items: center; gap: 10px; padding: 11px 15px; border-bottom: 1px solid var(--border); }
.chat-log { flex: 1; overflow-y: auto; padding: 15px; display: flex; flex-direction: column; gap: 5px; }
.bubble { max-width: min(72%, 560px); padding: 7px 11px; border-radius: var(--r-lg); background: var(--surface-2); font-size: 13.5px; overflow-wrap: anywhere; align-self: flex-start; }
.bubble-text { white-space: pre-wrap; }
.bubble.own { background: var(--accent-soft); align-self: flex-end; border: 1px solid var(--accent-line); }
.bubble.staff { border: 1px solid rgba(56, 163, 255, 0.45); }
.bubble-meta { font-size: 11px; color: var(--text-3); margin-top: 2px; display: flex; gap: 8px; align-items: center; }
.bubble img { max-width: 240px; max-height: 240px; border-radius: var(--r); margin-top: 4px; }
.chat-form { display: flex; gap: 7px; padding: 11px; border-top: 1px solid var(--border); align-items: flex-end; }
.chat-form .textarea { min-height: 38px; height: 38px; max-height: 120px; resize: none; }
@media (max-width: 760px) {
  .chat { grid-template-columns: minmax(0, 1fr); height: auto; }
  .chat[data-open='true'] .chat-list { display: none; }
  .chat:not([data-open='true']) .chat-main { display: none; }
  .chat-log { height: 56dvh; }
}
.back-mobile { display: none; }
@media (max-width: 760px) { .back-mobile { display: inline-flex; } }

.deal-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 18px; align-items: start; }
@media (max-width: 960px) { .deal-layout { grid-template-columns: minmax(0, 1fr); } }
.deal-log { height: 420px; }

.media-editor { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 8px; }
.media-tile { position: relative; aspect-ratio: 16 / 10; border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; background: var(--surface-2); display: grid; place-items: center; }
.media-tile img { width: 100%; height: 100%; object-fit: cover; }
.media-tile .remove { position: absolute; right: 3px; top: 3px; background: rgba(0, 0, 0, 0.72); border-radius: var(--r-sm); width: 24px; height: 24px; display: grid; place-items: center; color: #fff; }
.media-cover { position: absolute; left: 4px; bottom: 4px; height: 22px; padding: 0 6px; font-size: 11px; }
.media-add { border-style: dashed; color: var(--text-3); cursor: pointer; }
.media-add:hover { color: var(--text); border-color: var(--border-strong); }

.legal h2 { margin: 26px 0 8px; }
.legal p, .legal li { color: var(--text-2); margin-bottom: 8px; }
.legal ul { list-style: disc; padding-left: 20px; }

/* ─── Checkout em etapas ─────────────────────────────────────────────────── */
.checkout-steps { display: flex; flex-direction: column; position: relative; min-width: 0; }
.checkout-step { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 12px; padding-bottom: 12px; position: relative; }
.checkout-step:not(:last-child)::before { content: ''; position: absolute; left: 12px; top: 28px; bottom: 0; width: 2px; background: var(--border); }
.checkout-step.done:not(:last-child)::before { background: var(--accent); }
.step-mark { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font: 500 12px/1 var(--mono); background: var(--surface-2); border: 1px solid var(--border-strong); color: var(--text-3); z-index: 1; margin-top: 9px; }
.step-mark svg { width: 13px; height: 13px; }
.checkout-step.active .step-mark { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 0 0 4px var(--accent-soft); }
.checkout-step.done .step-mark { background: var(--accent); border-color: var(--accent); color: #fff; }
.checkout-step.future .step-card { opacity: 0.55; }
.step-card { min-width: 0; }
.step-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; padding: 13px 16px; text-align: left; flex-wrap: wrap; }
.step-head strong { display: block; font-weight: 600; font-size: 14.5px; }
.step-head:disabled { cursor: default; }
.step-body { padding: 4px 16px 16px; border-top: 1px solid var(--border); padding-top: 14px; }
.method-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(136px, 1fr)); gap: 10px; }
.method-card { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 16px 10px 13px; text-align: center; background: var(--surface-2); border: 1px solid var(--border-strong); border-radius: var(--r-lg); transition: border-color 0.14s, background 0.14s, transform 0.14s var(--ease); }
.method-card:hover:not([disabled]) { border-color: var(--accent-line); transform: translateY(-1px); }
.method-card.selected { border-color: var(--accent-hover); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent-hover); }
.method-card[disabled] { opacity: 0.5; cursor: not-allowed; }
.method-card strong { font-weight: 600; font-size: 13.5px; }
.method-text { font-size: 12px; color: var(--text-2); line-height: 1.35; min-height: 2.7em; }
.method-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: var(--r); background: var(--accent-soft); color: var(--electric); flex: none; }
.method-icon.small-icon { width: 34px; height: 34px; }
.method-flag { position: absolute; top: -9px; right: 10px; padding: 2px 8px; border-radius: 10px; background: var(--accent); color: #fff; font-size: 10px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.points-box input[type='range'] { width: 100%; accent-color: var(--accent-hover); }
.points-hint { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: var(--r); background: var(--accent-soft); color: #cfe0ff; font-size: 13px; }
.points-hint svg { color: var(--electric); }
.discount { color: var(--success); }
.total-value { color: var(--electric); font-size: 17px; }

/* ─── Página do pedido ───────────────────────────────────────────────────── */
.order-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 14px; align-items: stretch; }
.order-thumb { width: 72px; height: 54px; }
.delivery-card { display: flex; flex-direction: column; min-height: 100%; }
.delivery-card.tone-success { border-color: rgba(47, 191, 139, 0.55); }
.delivery-card.tone-danger { border-color: rgba(239, 90, 111, 0.5); }
.delivery-card.tone-warning { border-color: rgba(229, 169, 61, 0.5); }
.delivery-card.tone-info, .delivery-card.tone-accent { border-color: var(--accent-line); }
.delivery-title strong { font-size: 15px; font-weight: 600; }
.delivery-card.tone-success .delivery-title { color: var(--success); }
.delivery-foot { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; padding: 0 18px 16px; }
.report-btn { display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: var(--r); background: var(--danger-soft); color: #ff9dab; text-align: left; }
.report-btn strong { display: block; font-weight: 500; font-size: 12.5px; }
.report-btn small { font-size: 11px; opacity: 0.8; }
.report-btn:hover { background: rgba(239, 90, 111, 0.2); }
.ticket-list { display: grid; gap: 6px; padding: 10px 18px; border-bottom: 1px solid var(--border); }
.order-chat-log { height: 340px; background: var(--bg-raised); }
.presence { font-size: 12px; color: var(--text-3); }
.presence.on { color: var(--success); }
.review-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.review-box { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 18px; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-lg); min-width: 0; }
.review-quote { margin: 0; padding: 12px 14px; width: 100%; border-radius: var(--r); background: var(--surface-3); font-style: italic; overflow-wrap: anywhere; }
.crumb-sep { width: 12px; height: 12px; display: inline-block; vertical-align: -2px; }
.period-tabs .btn[aria-pressed='true'] { background: var(--accent); border-color: transparent; color: #fff; }
.summary > .divider { margin-block: 2px; }
@media (max-width: 860px) { .order-grid { grid-template-columns: minmax(0, 1fr); } }

/* ─── Home: hero com título em primeiro plano, CTA de vendedores e cards refinados ─── */
.hero { padding-block: clamp(48px, 11vh, 112px) clamp(32px, 6vh, 56px); }
.hero::before { top: 42%; height: 420px; background: radial-gradient(closest-side, rgba(37, 99, 235, 0.24), rgba(37, 99, 235, 0.07) 58%, transparent); }
.hero-eyebrow { display: inline-block; margin-bottom: 18px; padding: 5px 13px; border: 1px solid var(--accent-line); border-radius: 999px; background: var(--accent-soft); color: var(--electric); font-size: 12px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; }
.hero h1 { max-width: 15ch; margin-inline: auto; font-size: clamp(38px, 7.4vw, 76px); font-weight: 800; line-height: 1.02; letter-spacing: -0.05em; text-wrap: balance; }
.hero h1 em { font-style: normal; background: linear-gradient(100deg, var(--electric), var(--accent) 70%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { max-width: 600px; color: var(--text-2); }
.search-hero { max-width: 780px; }
.search-hero .input { height: 60px; padding-right: 132px; border-radius: 18px; background: var(--surface-2); border-color: var(--border-strong); box-shadow: 0 18px 50px -24px rgba(37, 99, 235, 0.6); }
.search-hero .prefix { top: 19px; }
.search-hero .search-go { position: absolute; right: 8px; top: 8px; margin: 0; height: 44px; padding-inline: 22px; border-radius: 12px; }
.quick { margin-top: 30px; }
.quick-label { font-size: 13px; color: var(--text-2); }
.chip { background: var(--surface); }
.how-link { margin-top: 26px; }

.category-tile { background: linear-gradient(160deg, var(--surface-2), var(--surface)); border-radius: var(--r-lg); transition: border-color 0.16s, transform 0.2s var(--ease), box-shadow 0.2s; }
.category-tile:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -20px rgba(37, 99, 235, 0.7); }
.category-tile .ico { background: var(--accent-soft); color: var(--electric); border: 1px solid var(--accent-line); }

.product-card { background: linear-gradient(180deg, var(--surface-2), var(--surface)); }
.product-card .title { font-size: 14px; }
.product-card .price { font-size: 19px; font-weight: 600; color: var(--text); }
.product-card .buy { margin-left: auto; padding: 5px 12px; border-radius: 8px; background: var(--accent-soft); border: 1px solid var(--accent-line); color: var(--electric); font: 500 12px/1 var(--font); letter-spacing: 0; transition: background 0.16s, color 0.16s; }
.product-card:hover .buy { background: var(--accent); border-color: var(--accent); color: #fff; }

.sell-cta { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: clamp(24px, 4vw, 40px); border: 1px solid var(--accent-line); border-radius: var(--r-lg); background: radial-gradient(90% 140% at 100% 0%, rgba(37, 99, 235, 0.28), transparent 60%), var(--surface); }
.sell-cta h2 { font-size: clamp(22px, 3.4vw, 30px); letter-spacing: -0.03em; }
.sell-cta p { max-width: 54ch; color: var(--text-2); }
.sell-cta .btn { flex: none; }
@media (max-width: 520px) { .search-hero .input { height: 54px; padding-right: 100px; } .search-hero .search-go { height: 38px; padding-inline: 14px; top: 8px; } .search-hero .prefix { top: 16px; } .sell-cta .btn { width: 100%; justify-content: center; } }