/* NÚCLEO dos temas de cartão por profissão (32+): só funcionamento comum (mídia, janelas, carrinho, revelar ao rolar).
   Cores vêm do tema: --cn-cor (destaque), --cn-cor-txt (texto sobre o destaque), --cn-fundo-jan (janelas), --cn-txt-jan. */
:root { --cn-cor: #333; --cn-cor-txt: #fff; --cn-fundo-jan: #fff; --cn-txt-jan: #1a1a1a; --cn-midia-prop: 125%; }

/* mídia do topo */
.cn-midia { position: relative; width: 100%; overflow: hidden; background: #000; -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; }
.cn-m-palco { position: relative; width: 100%; padding-top: var(--cn-midia-prop); }
.cn-m-item { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .25s; background: #000; }
.cn-m-item.on { opacity: 1; visibility: visible; }
.cn-m-item img, .cn-m-item iframe, .cn-m-item video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; background: #000; }
.cn-m-item img { object-fit: cover; }
.cn-m-item video { object-fit: cover; }
.cn-m-barras { position: absolute; top: 8px; left: 8px; right: 8px; display: flex; gap: 4px; z-index: 5; pointer-events: none; }
.cn-m-barras span { flex: 1; height: 3px; background: rgba(255,255,255,.35); border-radius: 2px; overflow: hidden; }
.cn-m-barras i { display: block; height: 100%; width: 0; background: #fff; }
.cn-m-toque { position: absolute; top: 0; bottom: 0; z-index: 4; cursor: pointer; }
.cn-m-ant { left: 0; width: 30%; } .cn-m-prox { right: 0; width: 70%; }
.cn-midia.cn-inter .cn-m-toque { display: none; }
.cn-m-seta { display: none; position: absolute; top: 50%; margin-top: -28px; z-index: 6; width: 34px; height: 56px; padding: 0; border: 0; background: rgba(0,0,0,.5); color: #fff; font-size: 28px; line-height: 1; cursor: pointer; align-items: center; justify-content: center; }
.cn-midia.cn-inter .cn-m-seta { display: flex; }
.cn-m-seta-ant { left: 0; border-radius: 0 8px 8px 0; } .cn-m-seta-prox { right: 0; border-radius: 8px 0 0 8px; }
.cn-midia.cn-um .cn-m-barras, .cn-midia.cn-um .cn-m-toque, .cn-midia.cn-um .cn-m-seta { display: none !important; }
.cn-m-som { position: absolute; bottom: 12px; right: 12px; z-index: 7; background: rgba(0,0,0,.6); color: #fff; border: 0; border-radius: 50%; width: 38px; height: 38px; font-size: 16px; cursor: pointer; }

/* revelar ao rolar (só com JS; sem JS tudo aparece) */
.cn-js .cn-rev { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .55s ease; }
.cn-js .cn-rev.cn-vis { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .cn-js .cn-rev { opacity: 1; transform: none; transition: none; } *, *::before, *::after { animation: none !important; } }

/* leia mais */
.cn-texto-cheio { display: none; }
.cn-aberto .cn-texto-curto { display: none; } .cn-aberto .cn-texto-cheio { display: block; }
.cn-leia { background: none; border: 0; padding: 0; font: inherit; font-weight: 700; color: inherit; text-decoration: underline; cursor: pointer; }

/* janelas (portfólio, foto ampliada, produto, carrinho, pedido, política) */
.cn-jan { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.8); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); z-index: 99999; align-items: center; justify-content: center; padding: 20px; }
.cn-jan.open { display: flex; }
.cn-caixa { background: var(--cn-fundo-jan); color: var(--cn-txt-jan); border-radius: 16px; width: 100%; max-width: 500px; max-height: 90vh; overflow-y: auto; position: relative; animation: cnSobe .28s ease; }
@keyframes cnSobe { from { transform: translateY(26px); opacity: 0; } to { transform: none; opacity: 1; } }
.cn-fechar { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; background: rgba(0,0,0,.55); color: #fff; border: 0; border-radius: 50%; font-size: 22px; line-height: 1; cursor: pointer; z-index: 3; }
.cn-nav { position: absolute; top: 140px; transform: translateY(-50%); width: 40px; height: 40px; background: rgba(0,0,0,.5); color: #fff; border: 0; border-radius: 50%; font-size: 18px; cursor: pointer; z-index: 3; display: flex; align-items: center; justify-content: center; }
.cn-nav-ant { left: 12px; } .cn-nav-prox { right: 12px; }
.cn-pf-img { width: 100%; height: 280px; object-fit: cover; display: block; background: #eee; border-radius: 16px 16px 0 0; }
.cn-pf-txt { padding: 20px; text-align: center; }
.cn-pf-txt h3 { font-size: 20px; font-weight: 800; margin: 0 0 10px; color: inherit; }
.cn-pf-txt p { font-size: 14px; line-height: 1.6; margin: 0 0 18px; opacity: .85; white-space: pre-line; }
.cn-btn-jan { display: inline-block; background: var(--cn-cor); color: var(--cn-cor-txt) !important; text-decoration: none !important; padding: 12px 28px; border-radius: 8px; font-weight: 700; font-size: 14px; border: 0; cursor: pointer; }
.cn-luz { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.92); z-index: 999999; align-items: center; justify-content: center; padding: 20px; }
.cn-luz.open { display: flex; }
.cn-luz img { max-width: 95%; max-height: 88vh; object-fit: contain; border-radius: 8px; transition: opacity .2s; }
.cn-luz .cn-fechar { top: 18px; right: 18px; background: rgba(255,255,255,.2); }
.cn-luz .cn-nav { top: 50%; background: rgba(255,255,255,.2); }
@media (max-width: 576px) { .cn-pf-img { height: 220px; } .cn-nav { top: 110px; } .cn-jan { padding: 10px; } }

.cn-prod-caixa { position: relative; width: 100%; max-width: 800px; height: 85vh; max-height: 800px; background: #fff; border-radius: 16px; overflow: hidden; }
#cnProdutoIframe { width: 100%; height: 100%; border: 0; display: block; background: #ebebeb; }
.cn-cx { background: #fff; color: #1a1a1a; border-radius: 16px; max-width: 480px; width: 100%; max-height: 90vh; display: flex; flex-direction: column; overflow: hidden; animation: cnSobe .25s ease; }
.cn-cx-lg { max-width: 620px; }
.cn-cx-topo { padding: 16px 20px; border-bottom: 1px solid #eee; display: flex; align-items: center; justify-content: space-between; background: #fafafa; }
.cn-cx-topo h3 { margin: 0; font-size: 17px; font-weight: 800; color: #1a1a1a; }
.cn-cx-x { width: 32px; height: 32px; border: 0; background: transparent; font-size: 26px; line-height: 1; color: #999; cursor: pointer; border-radius: 50%; }
.cn-cx-corpo { padding: 16px 20px; overflow-y: auto; flex: 1; font-size: 14px; color: #444; line-height: 1.6; }
.cn-cx-pe { padding: 16px 20px; border-top: 1px solid #eee; background: #fafafa; }
.cn-total { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; font-size: 15px; }
.cn-total strong { font-size: 20px; color: var(--cn-cor); }
.cn-cx-btn { width: 100%; padding: 14px; border: 0; border-radius: 10px; font-size: 15px; font-weight: 700; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; background: var(--cn-cor); color: var(--cn-cor-txt); }
.cn-cx-btn.zap { background: #1ebe5b; color: #fff; }
.cn-cx-btn:disabled { opacity: .7; cursor: wait; }
.cn-item { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid #f0f0f0; }
.cn-item-img { width: 60px; height: 60px; border-radius: 8px; background: #f5f5f5 center/cover; flex-shrink: 0; display: flex; align-items: center; justify-content: center; color: #ccc; }
.cn-item-info { flex: 1; min-width: 0; } .cn-item-tit { font-weight: 700; color: #1a1a1a; line-height: 1.3; } .cn-item-preco { color: var(--cn-cor); font-weight: 700; font-size: 13px; }
.cn-qtd { display: flex; align-items: center; gap: 4px; background: #f5f5f5; border-radius: 8px; padding: 3px; }
.cn-qtd button { width: 26px; height: 26px; border: 0; background: #fff; border-radius: 6px; cursor: pointer; font-weight: 700; }
.cn-qtd input { width: 32px; text-align: center; border: 0; background: transparent; font-weight: 700; }
.cn-tira { background: none; border: 0; color: #c0392b; cursor: pointer; padding: 6px; }
.cn-vazio { text-align: center; padding: 36px 16px; color: #999; }
.cn-lin { display: flex; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.cn-campo { flex: 1; min-width: 140px; display: flex; flex-direction: column; }
.cn-campo label { font-size: 12px; font-weight: 700; color: #555; margin-bottom: 4px; text-transform: uppercase; letter-spacing: .4px; }
.cn-campo input, .cn-campo textarea { padding: 10px 12px; border: 2px solid #eee; border-radius: 8px; font-size: 14px; font-family: inherit; color: #333; outline: none; width: 100%; box-sizing: border-box; }
.cn-campo input:focus, .cn-campo textarea:focus { border-color: var(--cn-cor); }
.cn-lgpd { flex-direction: row !important; align-items: flex-start; gap: 10px; background: #f9f9f9; padding: 12px; border-radius: 8px; border: 2px solid #eee; }
.cn-lgpd input { width: 20px; height: 20px; flex-shrink: 0; margin-top: 2px; }
.cn-lgpd label { text-transform: none; font-weight: 500; letter-spacing: 0; font-size: 13px; line-height: 1.5; margin: 0; }
@media (max-width: 575px) {
  .cn-prod-caixa { max-width: 100%; height: 100vh; max-height: 100vh; border-radius: 0; }
  #cnProduto { padding: 0; }
  .cn-jan.cn-baixo { padding: 0; align-items: flex-end; }
  .cn-cx { max-width: 100%; border-radius: 16px 16px 0 0; max-height: 95vh; }
  .cn-campo { min-width: 100%; }
}
.cn-anuncio { display: flex; justify-content: center; margin: 10px auto; max-width: 100%; overflow: hidden; }
