/* Visual "Shop" aplicado à Repo: tela branca-gelo, cartões de 28px com sombra suave, pílulas, tipografia compacta
   com tracking negativo. A única cor viva é o azul da Repo (no lugar do violeta do original). Carrega depois dos
   demais estilos e antes do dark.css. */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap");

:root {
  --color-canvas-mist: #f2f4f5;
  --color-pure-white: #ffffff;
  --color-ink-black: #000000;
  --color-faint-border: #ebebeb;
  --color-muted-gray: #787574;
  --color-cool-stone: #cccccc;
  --color-accent: #1677f4;
  --color-accent-wash: #b9d6fb;
  --font-gt-standard: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --radius-cards: 28px;
  --radius-inner: 20px;
  --shadow-sm: rgba(0, 0, 0, 0.06) 0px 2px 8px 0px;
  --shadow-sm-2: rgba(0, 0, 0, 0.1) 0px 4px 6px -1px, rgba(0, 0, 0, 0.1) 0px 2px 4px -2px;
  --shadow-lg: rgba(0, 0, 0, 0.12) 0px 4px 24px 0px;
  --shadow-accent: rgba(22, 119, 244, 0.34) 0px 4px 24px 0px;
  --section-gap: 64px;

  /* a Repo inteira passa a usar a paleta nova */
  --ink: #000000;
  --ink-soft: #3d3a38;
  --muted: #787574;
  --line: #ebebeb;
  --line-strong: #e1e1e1;
  --paper: #ffffff;
  --mist: #f2f4f5;
  --font: var(--font-gt-standard);
  --container: min(1200px, calc(100% - 48px));
}

html, body { font-family: var(--font-gt-standard); }
body { background: var(--color-canvas-mist); color: var(--color-ink-black); font-size: 16px; line-height: 1.38; letter-spacing: -0.031em; }
h1, h2, h3, h4 { font-family: var(--font-gt-standard); font-weight: 600; letter-spacing: -0.05em; }
button, input, select, textarea { font-family: inherit; letter-spacing: inherit; }
b, strong { font-weight: 600; }

/* ── Cabeçalho: faixa branca flutuante, pílulas ───────────────────────── */
.site-header { background: #fff; border-bottom: 0; box-shadow: var(--shadow-sm); }
body.header-over-hero:not(.header-solid) .site-header { background: transparent; box-shadow: none; }
.header-shell { min-height: 4.4rem; }
.mode-switch { padding: 4px; border: 1px solid var(--color-faint-border); border-radius: 9999px; background: #fff; box-shadow: var(--shadow-sm); }
.site-header .mode-switch { border-radius: 9999px; }
.site-header .mode-switch a, .site-header .mode-pill { border-radius: 9999px; font-weight: 500; letter-spacing: -0.017em; }
.mode-switch a.is-on { background: var(--color-canvas-mist); color: #000; }
.header-nav .nav-link { border-radius: 9999px; font-weight: 500; letter-spacing: -0.014em; color: #000; }
.nav-link:hover { background: var(--color-canvas-mist); }
.nav-announce { border-radius: 9999px; background: var(--color-accent); color: #fff; font-weight: 500; letter-spacing: -0.014em; box-shadow: var(--shadow-accent); }
.nav-announce:hover { background: #1264cf; color: #fff; }
.header-auth-link { border: 1px solid var(--color-faint-border); border-radius: 9999px; background: #fff; box-shadow: var(--shadow-sm); color: #000; font-weight: 500; }
.icon-button { border-radius: 9999px; box-shadow: var(--shadow-sm); }
.category-popover { border: 0; border-radius: var(--radius-cards); box-shadow: var(--shadow-lg); padding: 10px; }
.category-popover a, .category-popover button { border-radius: 16px; }

/* ── Busca: pílula branca com botão circular azul ────────────────────── */
.global-search { border: 1px solid rgba(0, 0, 0, 0.1); border-radius: 9999px; background: #fff; box-shadow: none; padding-block: 4px; padding-left: 20px; }
.global-search input { font-size: 16px; letter-spacing: -0.031em; color: #000; }
.global-search input::placeholder { color: var(--color-muted-gray); }
.global-search button[type="submit"] { width: 48px; height: 48px; padding: 0; flex: 0 0 auto; border-radius: 50%; background: var(--color-accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / 22px no-repeat; color: transparent; font-size: 0; box-shadow: var(--shadow-accent); }
.global-search button[type="submit"]:hover { background-color: #1264cf; }
.hero-search { height: auto; min-height: 56px; max-width: 640px; margin-inline: auto; box-shadow: var(--shadow-sm); }

/* ── Hero: tela limpa, nome em destaque, sem efeitos ─────────────────── */
.hero { background: var(--color-canvas-mist); }
.hero__lights, .hero__silks { display: none; }
.hero__headline { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 600; letter-spacing: -0.06em; color: #000; }
.hero__headline strong { font-weight: 600; letter-spacing: -0.06em; }
.hero__bracket { color: var(--color-accent); }
.hero__description { color: var(--color-muted-gray); font-size: 16px; }
.hero__hint { color: var(--color-muted-gray); font-size: 12px; }

/* ── Títulos de seção ────────────────────────────────────────────────── */
.section, .marketplace-section { margin-block: 0; }
.marketplace-section--shelf { margin-top: var(--section-gap); }
.section-kicker { color: var(--color-muted-gray); font-size: 12px; font-weight: 500; letter-spacing: -0.017em; text-transform: none; }
.section-heading h2, .shelf-heading h2, .marketplace-section h2 { font-size: 20px; line-height: 1.1; font-weight: 600; letter-spacing: -0.05em; color: #000; }
.section-heading > p { color: var(--color-muted-gray); font-size: 14px; }
.shelf-heading { margin-bottom: 24px; }
.shelf-dots span { background: var(--color-cool-stone); }
.shelf-dots span.is-active { background: #000; }

/* ── Cartões de produto: brancos, 28px, sombra dupla, capa com 20px ──── */
:is(.product-row, .category-product-grid, .packs-catalog__grid, .open-code-grid, .skills-catalog__grid) .product-card { padding: 8px 8px 0; overflow: hidden; border: 0; border-radius: var(--radius-cards); background: #fff; box-shadow: var(--shadow-sm-2); transition: transform .18s ease, box-shadow .18s ease; }
:is(.product-row, .category-product-grid, .packs-catalog__grid, .open-code-grid, .skills-catalog__grid) .product-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
:is(.product-row, .category-product-grid, .packs-catalog__grid, .open-code-grid, .skills-catalog__grid) .product-card__preview { aspect-ratio: 1 / 1; overflow: hidden; border-radius: var(--radius-inner); background: var(--color-canvas-mist); }
.product-card__preview .product-cover, .product-card__preview img { border-radius: 0; }
.product-card__body { padding: 10px 8px 10px; gap: 4px; }
.product-type { color: var(--color-muted-gray); font-size: 11px; font-weight: 500; letter-spacing: -0.018em; text-transform: none; }
.product-badge { padding: 3px 9px; border-radius: 9999px; background: var(--color-canvas-mist); color: #000; font-size: 11px; font-weight: 500; letter-spacing: -0.018em; }
.product-title { color: #000; font-size: 14px; font-weight: 600; line-height: 1.25; letter-spacing: -0.036em; }
.product-description { color: var(--color-muted-gray); font-size: 12px; letter-spacing: -0.017em; }
.product-price { color: #000; font-size: 16px; font-weight: 600; letter-spacing: -0.04em; }
.product-open { border-radius: 50%; background: var(--color-canvas-mist); color: #000; }
.product-card__seller { color: var(--color-muted-gray); font-size: 11px; letter-spacing: -0.018em; }
.product-card__seller img { border-radius: 50%; }
.shelf-arrow { width: 32px; height: 32px; border: 0; border-radius: 50%; background: #fff; color: #000; box-shadow: var(--shadow-lg); }

/* ── Categorias populares: cartões de imagem com rótulo branco ───────── */
.category-card { overflow: hidden; border: 0; border-radius: var(--radius-cards); background: #fff; box-shadow: var(--shadow-sm-2); }
.category-card__media-frame { border-radius: var(--radius-cards); }
.category-card__caption { border-radius: 12px; background: rgba(255, 255, 255, 0.88); color: #000; backdrop-filter: blur(6px); }
.category-card__caption span { color: var(--color-muted-gray); font-size: 12px; font-weight: 500; letter-spacing: -0.017em; }
.category-card__caption b { font-size: 14px; font-weight: 600; letter-spacing: -0.014em; }

/* ── Como funciona / confiança / rodapé ──────────────────────────────── */
.how-it-works, .trust-strip { background: transparent; }
.how-it-works { margin-top: var(--section-gap); }
.steps { gap: 14px; }
.steps li, .steps li:last-child { align-items: center; padding: 18px 24px; border: 0; border-radius: 24px; background: #fff; box-shadow: var(--shadow-sm-2); }
.steps li b { line-height: 1; }
.steps li h3 { margin: 0 0 4px; }
.steps li b { color: var(--color-accent); font-weight: 600; }
.trust-strip__grid { gap: 14px; border: 0; border-radius: 0; background: transparent; }
.trust-strip__grid article, .trust-strip article:first-child { align-items: center; padding: 18px 22px; border: 0; border-radius: 24px; background: #fff; box-shadow: var(--shadow-sm-2); }
@media (max-width: 760px) { .trust-strip__grid { grid-template-columns: 1fr; } .steps li, .steps li:last-child { padding: 16px 18px; } }
.trust-icon { border-radius: 50%; background: var(--color-canvas-mist); color: #000; }
.site-footer { margin-top: var(--section-gap); background: #000; color: #fff; }
.site-footer a { color: rgba(255, 255, 255, 0.72); }
.site-footer a:hover { color: #fff; }
.site-footer h3 { color: #fff; font-size: 14px; font-weight: 600; letter-spacing: -0.014em; }

/* ── Botões e campos em pílula (a Repo inteira) ──────────────────────── */
.button { border-radius: 9999px; font-weight: 500; letter-spacing: -0.014em; }
.button--primary { background: var(--color-accent); color: #fff; box-shadow: var(--shadow-accent); }
.button--ghost { border: 1px solid var(--color-faint-border); background: #fff; color: #000; box-shadow: var(--shadow-sm); }
input[type="text"], input[type="email"], input[type="password"], input[type="search"], input[type="tel"], input[type="number"], select, textarea { border-radius: 20px; }

:is(.product-row, .category-product-grid, .packs-catalog__grid, .open-code-grid, .skills-catalog__grid) .product-card, .product-row--shelf > .product-card { border-radius: var(--radius-cards); }

/* ── Home: busca, pílulas de categoria e banner central ──────────────── */
.hero { padding: 24px 0 0; }
.hero__content { text-align: left; display: flex; flex-direction: column; align-items: center; gap: 16px; padding-block: 0; }
.hero-search { width: 100%; }
.category-pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.category-pill { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px 0 2px; border-radius: 9999px; background: #fff; color: #000; font-size: 14px; font-weight: 500; letter-spacing: -0.017em; box-shadow: var(--shadow-sm); transition: box-shadow .18s ease, transform .18s ease; }
.category-pill:hover { box-shadow: var(--shadow-lg); transform: translateY(-1px); }
.category-pill img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; background: var(--color-canvas-mist); }
.hero-banner { position: relative; width: 100%; min-height: 440px; overflow: hidden; border-radius: 36px; background: #fff; box-shadow: var(--shadow-lg); }
.hero-banner__text { position: absolute; left: 32px; bottom: 104px; max-width: 460px; }
.hero-banner__title { margin: 0 0 12px; font-size: clamp(2.2rem, 4.6vw, 3.6rem); line-height: 1; font-weight: 600; letter-spacing: -0.06em; color: #000; }
.hero-banner__desc { margin: 0; color: var(--color-muted-gray); font-size: 16px; }
.hero-banner__actions { position: absolute; left: 32px; bottom: 32px; display: flex; gap: 8px; }
.hero-banner__actions .button { min-height: 48px; padding-inline: 24px; }
.hero-banner__cards { position: absolute; inset: 0 0 0 46%; pointer-events: none; }
.hero-banner__card { position: absolute; margin: 0; width: 168px; padding: 6px 6px 0; border-radius: 24px; background: #fff; box-shadow: var(--shadow-sm-2), var(--shadow-lg); }
.hero-banner__card img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 18px; background: var(--color-canvas-mist); }
.hero-banner__card figcaption { padding: 8px 6px 10px; font-size: 13px; font-weight: 600; letter-spacing: -0.03em; }
.hero-banner__card--1 { left: 6%; top: 12%; transform: rotate(-6deg); }
.hero-banner__card--2 { left: 38%; top: 5%; transform: rotate(4deg); }
.hero-banner__card--3 { right: 4%; top: 14%; transform: rotate(-3deg); }
.hero-banner__card--4 { left: 20%; bottom: -8%; transform: rotate(5deg); }
.hero-banner__card--5 { right: 24%; bottom: -10%; transform: rotate(-5deg); }
@media (max-width: 760px) {
  .hero-banner { min-height: 520px; border-radius: 28px; }
  .hero-banner__text, .hero-banner__actions { left: 20px; right: 20px; }
  .hero-banner__text { bottom: 96px; }
  .hero-banner__actions { bottom: 20px; }
  .hero-banner__cards { inset: 0; }
  .hero-banner__card { width: 112px; }
  .hero-banner__card--1 { left: 5%; top: 5%; }
  .hero-banner__card--2 { left: 36%; top: 3%; }
  .hero-banner__card--3 { right: 4%; top: 8%; }
  .hero-banner__card--4, .hero-banner__card--5 { display: none; }
  .category-pills { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; width: 100%; scrollbar-width: none; }
  .category-pill { flex: 0 0 auto; }
}
.hero { padding: 16px 0 0 !important; min-height: 0 !important; }
.hero-banner__actions .button { text-transform: none; font-size: 15px; letter-spacing: -0.017em; }
.hero__content > * { min-width: 0; max-width: 100%; }
.hero__content { width: var(--container); }
.hero { grid-template-columns: minmax(0, 1fr); }
.hero__content { width: min(1200px, calc(100% - 48px)); margin-inline: auto; }
@media (max-width: 760px) { .hero__content { width: calc(100% - 32px); } }

/* ── Barra de atalhos: trilho com efeito de dock à esquerda no desktop, barra embaixo no celular (só na home) ── */
.side-rail { display: none; }
body.header-over-hero .side-rail { display: flex; }
.side-rail__group { position: relative; display: flex; align-items: center; gap: 4px; padding: 6px; }
.dk-fundo { position: absolute; inset: 0; pointer-events: none; filter: drop-shadow(0 4px 14px rgba(0,0,0,.12)); }
.dk-fundo i { position: absolute; left: 0; right: 0; background: #fff; }
.dk-cima { top: 0; height: 50%; border-radius: 32px 32px 0 0; }
.dk-baixo { bottom: 0; height: 50%; border-radius: 0 0 32px 32px; }
.dk-meio { top: 25%; height: 50%; }
.side-rail a { position: relative; z-index: 1; flex: none; display: block; width: 52px; height: 52px; border-radius: 50%; color: #a3a09f; transform-origin: 0 50%; -webkit-tap-highlight-color: transparent; transition: background .15s, color .15s; }
.side-rail a:hover, .side-rail a.is-perto { color: #000; }
.side-rail a.is-on { color: #000; background: rgba(0,0,0,.05); }
.dk-pulo { position: absolute; inset: 0; display: grid; place-items: center; transform-origin: 0 50%; }
.side-rail svg { width: 22px; height: 22px; }
.side-rail__label { display: none; font-style: normal; font-size: 10px; font-weight: 500; letter-spacing: -0.01em; }
.dk-nome { position: absolute; left: calc(100% + 12px); top: 50%; width: 0; height: 0; transform-origin: 0 50%; pointer-events: none; display: none; }
.dk-nome span { position: absolute; left: 0; top: 0; transform: translateY(-50%) translateX(-6px) scale(.92); transform-origin: 0 50%; padding: 6px 12px; border-radius: 10px; white-space: nowrap; background: #000; color: #fff; font-size: 13px; font-weight: 500; opacity: 0; transition: opacity .16s, transform .3s cubic-bezier(.22,1,.36,1); }
.side-rail a.is-perto .dk-nome span { opacity: 1; transform: translateY(-50%); }
.side-rail a.is-pulando .dk-nome span { opacity: 0; }
@media (min-width: 1100px) {
  body.header-over-hero { padding-left: 92px; }
  body.header-over-hero .side-rail { position: fixed; z-index: 40; left: 20px; top: 0; bottom: 20px; flex-direction: column; justify-content: space-between; padding-top: 20vh; pointer-events: none; }
  .side-rail__group { flex-direction: column; align-items: flex-start; pointer-events: auto; }
  .dk-nome { display: block; }
  .hero { padding-top: 92px !important; }
}
@media (max-width: 1099px) {
  body.header-over-hero { padding-bottom: 84px; }
  body.header-over-hero .side-rail { position: fixed; z-index: 40; left: 0; right: 0; bottom: 0; justify-content: space-around; padding: 8px 8px calc(8px + env(safe-area-inset-bottom)); border-radius: 28px 28px 0 0; background: #fff; box-shadow: var(--shadow-lg); }
  .dk-fundo { display: none; }
  .side-rail__group { padding: 0; gap: 0; }
  .side-rail a { width: 60px; height: 52px; border-radius: 16px; transform-origin: 50% 50%; }
  .side-rail a:active { background: rgba(0,0,0,.06); }
  .dk-pulo { grid-auto-flow: row; align-content: center; justify-items: center; gap: 2px; }
  .side-rail__label { display: block; }
}
/* destaque do atalho de IAs: estrela azul da marca e uma bolinha vermelha de aviso que pulsa devagar */
.side-rail a[href="/ias"] svg { color: #1677f4; fill: currentColor; fill-opacity: .18; transform-origin: 50% 50%; animation: ias-brilha 3.2s ease-in-out infinite; }
.side-rail a[href="/ias"]:hover svg, .side-rail a[href="/ias"].is-perto svg, .side-rail a[href="/ias"].is-on svg { color: #1264cf; }
.side-rail a[href="/ias"] .dk-pulo::after { content: ""; position: absolute; top: 9px; right: 9px; width: 8px; height: 8px; border-radius: 50%; background: #ef4444; border: 2px solid #fff; box-sizing: content-box; animation: ias-selo 2.4s ease-out infinite; }
.side-rail a[href="/ias"].is-on .dk-pulo::after { animation: none; }
@media (max-width: 1099px) { .side-rail a[href="/ias"] .dk-pulo::after { top: 3px; right: 14px; } }
@keyframes ias-brilha { 0%, 100% { transform: scale(1); filter: drop-shadow(0 0 0 rgba(22,119,244,0)); } 50% { transform: scale(1.1); filter: drop-shadow(0 0 4px rgba(22,119,244,.5)); } }
@keyframes ias-selo { 0% { box-shadow: 0 0 0 0 rgba(239,68,68,.55); } 70%, 100% { box-shadow: 0 0 0 6px rgba(239,68,68,0); } }
@media (prefers-reduced-motion: reduce) { .side-rail a[href="/ias"] svg, .side-rail a[href="/ias"] .dk-pulo::after { animation: none; } }
body.header-over-hero .site-header .global-search, body.header-over-hero .site-header .search-toggle { display: none !important; }
body.header-over-hero .hero-search { display: flex !important; }
body.header-over-hero .site-header .mode-switch, body.header-over-hero .site-header .category-menu { display: none !important; }
@media (max-width: 1099px) { .hero { padding-top: 76px !important; } }
.dk-bola { position: absolute; z-index: 0; left: 6px; top: 6px; width: 52px; height: 52px; border-radius: 50%; background: rgba(0,0,0,.06); transform-origin: 0 50%; opacity: 0; pointer-events: none; transition: opacity .2s; }
.dk-bola.is-visivel { opacity: 1; }
@media (min-width: 1100px) { .side-rail a.is-on { background: none; } }
@media (max-width: 1099px) { .dk-bola { display: none; } }
@media (min-width: 1100px) { .side-rail__group--end { display: none; } }
body.header-over-hero .site-header .header-nav { margin-left: auto; }
body.header-over-hero .site-header .header-shell { grid-template-columns: 1fr auto auto; }
body.header-over-hero .site-header .header-nav { margin-left: 0; }

/* vídeo do banner: ocupa o lado direito no lugar dos cartões soltos */
.hero-banner__video { position: absolute; top: 0; right: 0; bottom: 0; width: 62%; height: 100%; object-fit: cover; object-position: center; pointer-events: none; -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%); mask-image: linear-gradient(90deg, transparent, #000 14%); }
@media (max-width: 760px) {
  .hero-banner__video { top: 0; bottom: auto; width: 100%; height: 250px; -webkit-mask-image: none; mask-image: none; }
}
@media (min-width: 761px) { .hero-banner__text { max-width: min(460px, 40%); } .hero-banner__video { width: 58%; } }
/* celular: Anunciar fica no canto superior direito (ao lado de Entrar), fora da barra de baixo */
.side-rail__group--end { display: none; }
@media (max-width: 1099px) {
  body.header-over-hero .site-header .header-nav { display: flex; }
  body.header-over-hero .site-header .nav-announce { min-height: 2.5rem; padding: 0 1rem; }
  body.header-over-hero .side-rail { justify-content: center; gap: 8px; }
}
.category-pill.is-copia { display: none; }
@media (max-width: 760px) { .category-pill.is-copia { display: inline-flex; } }
/* páginas de produto: cabeçalho sem Loja/Claude e sem Categorias */
body.is-product-page .site-header .mode-switch, body.is-product-page .site-header .category-menu { display: none !important; }
@media (min-width: 761px) { body.is-product-page .site-header .header-shell { grid-template-columns: auto minmax(16rem, 1fr) auto auto; } }

/* ── Página do produto: estilo GGMAX adaptado (título, galeria, cartões, coluna lateral com checkout rápido) ── */
body.is-product-page article.product-page.detail-shell { padding: 8px 0 64px; }
body.is-product-page article.product-page .detail-shell__container { width: min(1240px, calc(100% - 40px)); max-width: none; }
body.is-product-page article.product-page .breadcrumbs { margin: 8px 0 20px; font-size: 13px; color: #8c8c8c; }
body.is-product-page article.product-page .breadcrumbs a { color: #6b6b6b; }
body.is-product-page article.product-page .breadcrumbs a:hover { color: var(--brand, #1677f4); }
body.is-product-page article.product-page .product-detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 24px; align-items: start; }
body.is-product-page article.product-page .product-detail-main { min-width: 0; display: flex; flex-direction: column; gap: 16px; }
body.is-product-page article.product-page .detail-top { display: flex; flex-direction: column; gap: 16px; padding: 0; border: 0; }
body.is-product-page article.product-page .detail-summary { display: contents; }
body.is-product-page article.product-page .detail-summary__head { order: 1; }
body.is-product-page article.product-page .detail-gallery { order: 2; }
body.is-product-page article.product-page .detail-summary__facts { order: 3; }
body.is-product-page article.product-page .detail-demo { order: 4; align-self: flex-start; }
body.is-product-page article.product-page .detail-summary__admin-slot { order: 5; }
body.is-product-page article.product-page .detail-summary__admin-slot:empty { display: none; }
body.is-product-page article.product-page .detail-summary__description { display: none; }
body.is-product-page article.product-page .detail-summary__head .section-kicker { display: none; }
body.is-product-page article.product-page .detail-summary__title-row { flex-direction: column; align-items: flex-start; gap: 10px; }
body.is-product-page article.product-page .detail-summary h1 { max-width: none; font-size: clamp(24px, 2.4vw, 32px); font-weight: 700; letter-spacing: -0.04em; line-height: 1.15; color: #000; }
/* galeria */
body.is-product-page article.product-page .detail-gallery { padding: 20px; border-radius: 28px; background: #fff; }
body.is-product-page article.product-page .detail-gallery__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
body.is-product-page article.product-page .detail-gallery__head h2 { margin: 0; font-size: 18px; letter-spacing: -0.03em; text-transform: none; color: #000; }
body.is-product-page article.product-page .detail-gallery__head span { padding: 4px 12px; border-radius: 999px; background: var(--color-canvas-mist, #f2f4f5); color: #555; font-size: 12px; font-weight: 600; }
body.is-product-page article.product-page .detail-gallery__stage { height: auto !important; aspect-ratio: 16 / 9 !important; border: 0; border-radius: 20px; box-shadow: none; background: #f2f4f5; }
body.is-product-page article.product-page .gallery-control { border-radius: 50%; }
body.is-product-page article.product-page .gallery-thumb { border-radius: 12px; }
/* cartões de dados */
body.is-product-page article.product-page .detail-summary__facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; border: 0; }
body.is-product-page article.product-page .detail-summary__facts div, body.is-product-page article.product-page .detail-summary__facts div + div { min-width: 0; padding: 16px 18px; border: 0; border-radius: 24px; background: #fff; }
body.is-product-page article.product-page .detail-summary__facts dt { font-size: 12px; font-weight: 600; letter-spacing: 0; text-transform: none; color: #8c8c8c; }
body.is-product-page article.product-page .detail-summary__facts dd { margin-top: 2px; font-size: 15px; font-weight: 700; color: #000; }
/* seções viram cartões brancos */
body.is-product-page article.product-page .detail-section { margin: 0; padding: 24px; border-radius: 28px; background: #fff; }
body.is-product-page article.product-page .detail-section__eyebrow { display: none; }
body.is-product-page article.product-page .detail-section h2 { margin: 0 0 14px; font-size: 18px; letter-spacing: -0.03em; text-transform: none; color: #000; }
body.is-product-page article.product-page .detail-section .detail-card, body.is-product-page article.product-page .detail-section .characteristics-table, body.is-product-page article.product-page .detail-section .feature-list { border: 0; border-radius: 0; background: transparent; box-shadow: none; }
body.is-product-page article.product-page .detail-section .detail-card { padding: 0; }
body.is-product-page article.product-page .characteristics-row { display: flex; justify-content: space-between; gap: 16px; min-height: 0; padding: 12px 0; border: 0; border-top: 1px solid #f0f0f0; }
body.is-product-page article.product-page .characteristics-row:first-child { border-top: 0; }
body.is-product-page article.product-page .characteristics-row dt, body.is-product-page article.product-page .characteristics-row dd { display: block; padding: 0; border: 0; background: transparent; font-size: 14px; }
body.is-product-page article.product-page .characteristics-row dt { color: #8c8c8c; font-weight: 500; }
body.is-product-page article.product-page .characteristics-row dd { color: #000; font-weight: 600; text-align: right; }
/* coluna lateral */
body.is-product-page article.product-page .detail-sidebar--desktop { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 16px; }
body.is-product-page article.product-page .trust-card { padding: 22px; border: 0; border-radius: 28px; background: #fff; text-align: left; }
body.is-product-page article.product-page .trust-card__icon { margin: 0 0 10px; border-radius: 50%; }
body.is-product-page article.product-page .trust-card h2 { font-size: 16px; text-transform: none; }
.checkout-card { overflow: hidden; border-radius: 28px; background: #fff; }
.checkout-card__head { display: flex; align-items: center; gap: 10px; padding: 14px 22px; background: var(--brand, #1677f4); color: #fff; font-size: 14px; letter-spacing: 0.02em; text-transform: uppercase; }
.checkout-card__head svg { width: 18px; height: 18px; fill: currentColor; }
.checkout-card__body { display: flex; flex-direction: column; gap: 6px; padding: 22px; }
.checkout-card__label { margin: 0; color: #8c8c8c; font-size: 13px; }
.checkout-card .detail-price { margin: 0; color: #000; font-size: 38px; font-weight: 700; letter-spacing: -0.05em; line-height: 1.05; }
.checkout-card .detail-price-note { margin: 0 0 12px; color: #8c8c8c; font-size: 12px; }
.checkout-card .detail-buy { width: 100%; min-height: 52px; border-radius: 999px; box-shadow: 0 0 0 4px rgba(22,119,244,.16); font-size: 14px; }
.checkout-card__secure { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 12px 0 0; color: #1a8f4c; font-size: 13px; font-weight: 600; }
.checkout-card__secure svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.checkout-sheet { display: none; }
body.is-product-page article.product-page .related-products { margin-top: 40px; }
@media (max-width: 1000px) {
  body.is-product-page article.product-page .product-detail-layout { grid-template-columns: minmax(0, 1fr); }
  body.is-product-page article.product-page .detail-sidebar--desktop { display: none; }
  body.is-product-page article.product-page .detail-sidebar--mobile { display: flex; flex-direction: column; gap: 12px; margin: 0; }
  body.is-product-page { padding-bottom: 96px; }
  .checkout-sheet { position: fixed; z-index: 60; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 14px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); border-radius: 24px 24px 0 0; background: #fff; box-shadow: 0 -8px 30px rgba(0,0,0,.12); }
  .checkout-sheet__info { min-width: 0; flex: 1; display: flex; flex-direction: column; }
  .checkout-sheet__info small { color: var(--brand, #1677f4); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
  .checkout-sheet__info b { overflow: hidden; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
  .checkout-sheet .checkout-sheet__buy { flex: none; width: auto; min-width: 0; min-height: 48px; padding: 0 22px; border-radius: 999px; font-size: 14px; }
}
@media (max-width: 760px) {
  body.is-product-page article.product-page .detail-shell__container { width: calc(100% - 32px); }
  body.is-product-page article.product-page .detail-gallery, body.is-product-page article.product-page .detail-section { padding: 16px; border-radius: 24px; }
  body.is-product-page article.product-page .detail-summary__facts { gap: 8px; }
  body.is-product-page article.product-page .detail-summary__facts div { padding: 12px; border-radius: 18px; }
}
body.is-product-page article.product-page .detail-top { align-items: stretch !important; }
body.is-product-page article.product-page .detail-gallery { width: 100%; height: auto !important; min-height: 0 !important; }
@media (max-width: 1000px) {
  body.is-product-page article.product-page .checkout-sheet .checkout-sheet__buy { flex: none; width: auto !important; min-width: 0; padding: 0 22px; white-space: nowrap; }
}
/* rodapé preto: logo em branco e links legíveis */
.site-footer .brand__logo { filter: brightness(0) invert(1); }
html[data-theme="dark"] .site-footer a:not(.brand), .site-footer a:not(.brand) { color: rgba(255, 255, 255, 0.72); }
html[data-theme="dark"] .site-footer a:not(.brand):hover, .site-footer a:not(.brand):hover { color: #fff; }
/* checkout em linha (celular) + contador de fotos só com ícone */
.checkout-card--inline { display: none; }
body.is-product-page article.product-page .checkout-card--inline { order: 3; }
body.is-product-page article.product-page .detail-summary__facts { order: 4; }
body.is-product-page article.product-page .detail-demo { order: 5; }
body.is-product-page article.product-page .detail-summary__admin-slot { order: 6; }
body.is-product-page article.product-page .detail-gallery__head span { display: inline-flex; align-items: center; gap: 6px; background: #4b4f55; color: #fff; }
@media (max-width: 1000px) {
  .checkout-card--inline { display: block; }
  .checkout-sheet { transform: translateY(110%); transition: transform .25s ease; }
  .checkout-sheet.is-on { transform: none; }
}

/* ── Páginas de categoria (SaaS, Assinaturas, Landing Pages…): mesmo estilo Shop da home ── */
.category-hero-shell { margin: 12px auto 40px; }
.category-hero-breadcrumbs { margin-bottom: 16px; font-size: 13px; color: #8c8c8c; }
.category-hero-breadcrumbs a { color: #6b6b6b; }
.category-hero-shell .category-cinematic-hero { border-radius: var(--radius-cards, 28px); }
.category-cinematic-hero__content h1, .category-cinematic-hero h1 { letter-spacing: -0.05em; }
.category-cinematic-hero .button, .category-cinematic-hero a.button { border-radius: 9999px; }
.category-catalog__heading h2 { margin: 0; font-size: clamp(26px, 3vw, 36px); font-weight: 600; letter-spacing: -0.05em; color: #000; }
.category-catalog__heading .section-kicker, .category-catalog__heading span { color: #8c8c8c; font-size: 13px; letter-spacing: 0; text-transform: none; font-weight: 500; }
.category-catalog__heading > p { color: var(--color-muted-gray, #8c8c8c); font-size: 14px; }
.category-search { gap: 10px; margin-bottom: 18px; }
.category-search input, .category-search select { min-height: 48px; border: 0; border-radius: 9999px; background: #fff; box-shadow: var(--shadow-sm-2); padding: 0 20px; font-size: 14px; }
.category-search button { min-height: 48px; border-radius: 9999px; padding: 0 26px; }
.category-catalog__count { color: #8c8c8c; font-size: 13px; }
.category-product-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.category-product-card { padding: 8px 8px 0; border: 0; border-radius: var(--radius-cards, 28px); background: #fff; box-shadow: var(--shadow-sm-2); }
.category-product-card:hover { transform: translateY(-3px); border: 0; box-shadow: var(--shadow-lg); }
.category-product-card .category-product-card__media { aspect-ratio: 1 / 1; border-radius: var(--radius-inner, 20px); background: var(--color-canvas-mist); }
.category-product-card__body { padding: 14px 10px 12px; }
.category-product-card__meta { color: var(--color-muted-gray, #8c8c8c); font-size: 11px; font-weight: 500; letter-spacing: -0.018em; text-transform: none; }
.category-product-card__meta strong { color: #000; font-size: 16px; font-weight: 600; letter-spacing: -0.04em; }
.category-product-card h3 { margin: 8px 0 6px; color: #000; font-size: 14px; font-weight: 600; line-height: 1.25; letter-spacing: -0.036em; }
.category-product-card p { min-height: 0; margin: 0 0 10px; color: var(--color-muted-gray, #8c8c8c); font-size: 12px; line-height: 1.4; }
.category-product-card__footer { font-size: 11px; }
.category-product-card__footer b { color: var(--brand, #1677f4); font-size: 11px; letter-spacing: 0; text-transform: none; }
@media (max-width: 1250px) { .category-product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 980px) { .category-product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .category-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .category-hero-shell .category-cinematic-hero { margin-inline: 0; border-radius: 24px; } }
body:has(article.category-page) .site-header .mode-switch, body:has(article.category-page) .site-header .category-menu { display: none !important; }
@media (min-width: 761px) { body:has(article.category-page) .site-header .header-shell { grid-template-columns: auto minmax(16rem, 1fr) auto auto; } }

/* ── Packs, Open Code e Skills: busca em pílula, filtros e títulos no estilo Shop ── */
:is(.packs-search, .open-code-search, .skills-search) { gap: 10px; }
:is(.packs-search, .open-code-search, .skills-search) input { min-height: 48px; border: 0; border-radius: 9999px; background: #fff; box-shadow: var(--shadow-sm-2); padding: 0 20px; font-size: 14px; }
:is(.packs-search, .open-code-search, .skills-search) button { min-height: 48px; border-radius: 9999px; padding: 0 26px; }
:is(.packs-filter, .open-code-filter) { border: 0; border-radius: 9999px; background: #fff; color: #000; box-shadow: var(--shadow-sm-2); font-size: 13px; font-weight: 500; }
:is(.packs-filter, .open-code-filter).is-active { background: #000; color: #fff; }
:is(.packs-catalog__heading, .open-code-catalog__heading) h2 { font-size: clamp(26px, 3vw, 36px); font-weight: 600; letter-spacing: -0.05em; color: #000; }
:is(.packs-catalog__heading, .open-code-catalog__heading) .section-kicker { color: #8c8c8c; font-size: 13px; letter-spacing: 0; text-transform: none; font-weight: 500; }
.skills-hero h1 { letter-spacing: -0.05em; color: #000; }
.skills-pagination__page { border: 0; border-radius: 50%; background: #fff; box-shadow: var(--shadow-sm-2); }
.skills-pagination__page.is-active { background: #000; color: #fff; }
:is(.packs-catalog__grid, .open-code-grid) { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1250px) { :is(.packs-catalog__grid, .open-code-grid) { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 980px) { :is(.packs-catalog__grid, .open-code-grid) { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { :is(.packs-catalog__grid, .open-code-grid) { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }
body:has(article.packs-page, article.open-code-page, article.skills-page) .site-header .mode-switch, body:has(article.packs-page, article.open-code-page, article.skills-page) .site-header .category-menu { display: none !important; }
@media (min-width: 761px) { body:has(article.packs-page, article.open-code-page, article.skills-page) .site-header .header-shell { grid-template-columns: auto minmax(16rem, 1fr) auto auto; } }

/* ── Detalhes de Open Code, Skills, Landing Pages e Packs: cartões brancos de 28px, títulos sem caixa-alta ── */
body:has(article.detail-shell:not(.product-page)) .site-header .mode-switch, body:has(article.detail-shell:not(.product-page)) .site-header .category-menu { display: none !important; }
@media (min-width: 761px) { body:has(article.detail-shell:not(.product-page)) .site-header .header-shell { grid-template-columns: auto minmax(16rem, 1fr) auto auto; } }
article.detail-shell:not(.product-page) .breadcrumbs { font-size: 13px; color: #8c8c8c; }
article.detail-shell:not(.product-page) .detail-shell__hero { border-bottom: 0 !important; padding-bottom: 24px !important; }
article.detail-shell:not(.product-page) .detail-shell__title { color: #000 !important; letter-spacing: -0.05em !important; }
article.detail-shell:not(.product-page) .detail-section { padding: 24px; border-radius: 28px; background: #fff; margin-top: 16px !important; }
article.detail-shell:not(.product-page) .detail-section__eyebrow { display: none; }
article.detail-shell:not(.product-page) .detail-section h2 { margin: 0 0 14px; font-size: 18px !important; text-transform: none; color: #000; letter-spacing: -0.03em; }
article.detail-shell:not(.product-page) .detail-section .detail-card, article.detail-shell:not(.product-page) .detail-section .characteristics-table { border: 0 !important; border-radius: 0 !important; background: transparent; box-shadow: none; padding: 0; }
article.detail-shell:not(.product-page) .trust-card, article.detail-shell:not(.product-page) .open-code-expansion, article.detail-shell:not(.product-page) .skill-pack-offer { border: 0 !important; border-radius: 28px !important; background: #fff; text-align: left; }
article.detail-shell:not(.product-page) .detail-shell__media, article.detail-shell:not(.product-page) .detail-gallery__stage { border-radius: 28px !important; }
article.detail-shell:not(.product-page) .button--primary, article.detail-shell:not(.product-page) .button--ghost { border-radius: 9999px !important; }
/* resultado da busca: título e botão de voltar à loja */
.search-back { display: inline-flex; align-items: center; justify-content: center; margin-top: 10px; padding: 0 20px; min-height: 40px; border-radius: 9999px; background: #fff; color: #000; box-shadow: var(--shadow-sm-2); font-size: 14px; font-weight: 500; }
.search-back.button--primary { background: var(--brand, #1677f4); color: #fff; }
#global-search-results-title { color: #000; }
body.is-global-search .marketplace-section--hero-title, body.is-global-search .home-shelves-kicker { display: none; }
/* capas dos cartões: formato 16:10, mais largo e achatado */
:is(.product-row, .category-product-grid, .packs-catalog__grid, .open-code-grid, .skills-catalog__grid) .product-card__preview { aspect-ratio: 16 / 10 !important; height: auto !important; }
:is(.product-row, .category-product-grid, .packs-catalog__grid, .open-code-grid, .skills-catalog__grid) .product-card__preview :is(img, .product-cover) { width: 100%; height: 100%; object-fit: cover; }

/* home rolada: o cabeçalho ocupa a largura toda (sem faixa escura ao lado do trilho) e a busca volta quando a do banner sai da tela */
@media (min-width: 1100px) {
  body.header-over-hero .site-header { margin-left: -92px; padding-left: 92px; }
}
@media (min-width: 761px) {
  body.header-over-hero.header-solid:not(.header-search-quiet) .site-header .global-search { display: flex !important; }
  body.header-over-hero.header-solid:not(.header-search-quiet) .site-header .header-shell { grid-template-columns: auto minmax(16rem, 1fr) auto auto; }
}

/* categoria carregando: esqueleto no lugar da tela vazia */
.category-skeleton__card { pointer-events: none; }
.category-skeleton__card .product-card__preview { background: #e9ecef; }
.category-skeleton__card .product-card__body { display: grid; gap: 10px; padding: 14px 6px 18px; }
.category-skeleton__card .product-card__body i { display: block; height: 12px; border-radius: 6px; background: #e9ecef; }
.category-skeleton__card .product-card__body i.is-curto { width: 45%; }
.category-skeleton__card .product-card__preview, .category-skeleton__card .product-card__body i { background-image: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.7) 50%, transparent 70%); background-size: 200% 100%; animation: category-skeleton 1.2s linear infinite; }
@keyframes category-skeleton { from { background-position: 120% 0; } to { background-position: -120% 0; } }
@media (prefers-reduced-motion: reduce) { .category-skeleton__card .product-card__preview, .category-skeleton__card .product-card__body i { animation: none; } }

/* categorias com poucos produtos (2 a 4) herdavam um max-width antigo de styles.css e espremiam as colunas: a grade segue o mesmo padrão de 5/4/3/2 colunas em qualquer quantidade */
.category-product-grid[class*="--count-"] { max-width: none; }

/* o título do banner do Open Code na home é branco sobre o fundo escuro (a regra de títulos de seção acima deixava ele preto) */
.marketplace-section .open-code-shelf-hero__content h2 { color: #fff; }

/* versão nova: o seletor Loja/Claude e o menu Categorias saem do cabeçalho em todas as páginas da loja (conta, vendas, compras, afiliação…); inclusive a área do Claude (que será refeita como área própria da REPO, com outras IAs) */
.site-header :is(.mode-switch, .category-menu) { display: none !important; }
@media (min-width: 761px) { body:not(.header-over-hero) .site-header .header-shell { grid-template-columns: auto minmax(16rem, 1fr) auto auto; } }
