:root { --container: 1040px; }
body {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	margin: 0; padding: 0;
	background: #f9f9f9;
	color: #111;
}
header {
	background: #fff;
	border-bottom: 1px solid #eee;
	position: sticky;
	top: 0;
	z-index: 100;
}
.templates-hero {
  padding: 80px 20px 40px;
  text-align: center;
  background: #fff;
}
.hero-title {
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 700;
  margin: 0 0 16px;
  line-height: 1.2;
}
.hero-subtitle {
  max-width: 680px;
  margin: 0 auto 30px;
  font-size: 16px;
  color: #444;
}
.search-bar, .sign-up {
  display: flex;
  justify-content: center;
  max-width: 400px;
  margin: 0 auto;
  border: 1px solid #ddd;
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
}
	.sign-up {
		margin-bottom: 20px;
	}
.search-bar input, .sign-up input {
  flex: 1;
  padding: 12px 16px;
  border: none;
  outline: none;
  font-size: 15px;
}
.search-bar button, .sign-up button {
  background: #111;
  color: #fff;
  border: none;
  padding: 0 20px;
  font-size: 18px;
  cursor: pointer;
}
.search-bar button:hover, .sign-up button:hover {
  background: #333;
}
.nav {
	max-width: var(--container);
	margin: 0 auto;
	height: 74px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0 20px;
}
.logo {
	height: 46px;
	display: block;
}
.nav-left, .nav-center, .nav-right {
	display: flex;
	align-items: center;
}
.nav-center {
	justify-content: center;
	gap: 20px;
    font-size: small;
	font-weight: 600;
}
.nav-center .link{
	padding: 5px 10px;
	border-radius: 4px;
}
.nav-center .link:hover{
	background: #f2f2f2;
}
.nav-right {
	justify-content: flex-end;
	gap: 10px;
}
.nav-right .link {
	color: #333;
	text-decoration: none;
	font-size: 15px;
}
.nav-right .link:hover {
	text-decoration: underline;
}
.cta-btn {
	background: #3A5877; /* cor da sua paleta */
	color: #fff;
	padding: 10px 16px;
	border-radius: 6px;
	font-weight: 600;
	text-decoration: none;
	transition: background 0.2s;
	font-size: small;
}
.cta-btn:hover {
	background: #2c4360;
}
.login-btn{
    border: 1px solid #3A5877;
    padding: 10px 16px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s;
    font-size: small;
}
.container { max-width: var(--container); margin: 0 auto; padding: 20px; }
h1 { font-size: 28px; margin: 0 0 20px; }
.grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 20px;
}
.card {
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  overflow: hidden;               /* garante que o cover arredonde junto */
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  text-decoration: none;
  color: inherit;
  transition: box-shadow .2s ease;
}
.card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
.cover {
  width: 100%;
  width: 100%;
  height: 300px;
  background-image: var(--cover), linear-gradient(0deg, rgba(223,226,228,1) 0%, rgba(255,255,255,1) 100%);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}
.cover[style*="url('')"], 
.cover[style*="url(&quot;&quot;)"] {
  background-image: linear-gradient(0deg, rgba(223,226,228,1) 0%, rgba(255,255,255,1) 100%);
}
.cover[data-empty="1"] {
  background-image: linear-gradient(0deg, rgba(223,226,228,1) 0%, rgba(255,255,255,1) 100%);
}
.card-content {
	padding: 16px;
}
.card-content h3 { margin: 0 0 8px; font-size: 18px; }
.card-content p { margin: 0; color: #555; font-size: 14px; }
.tag {
	display: inline-block;
	padding: 4px 8px;
	font-size: 12px;
	border-radius: 4px;
	background: #f1f3f5;
	margin-bottom: 8px;
	color: #444;
}
	.tag.min{
		font-size: 10px;
	}
.pagination {
	display: flex;
	justify-content: flex-end;
	margin-top: 40px;
}
.pagination a {
	padding: 10px 18px;
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 6px;
	text-decoration: none;
	font-size: 14px;
	color: #333;
	transition: background 0.2s;
}
.pagination a:hover {
	background: #f1f1f1;
}
.state {
	text-align: center;
	padding: 60px 20px;
	color: #555;
}
.state h2 {
	font-size: 20px;
	margin-bottom: 8px;
	color: #333;
}
.state p { margin: 0; font-size: 14px; }
.author-inline {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 22px 0 26px;
  flex-wrap: wrap;
}

.author-photo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid #e5e5e5;
}

.author-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.author-name {
  font-weight: 600;
  font-size: 15px;
  color: #0b1320;
}

/* Ícones de contato/datas */
.author-meta a,
.author-date {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #3A5877;
  font-size: 14px;
  text-decoration: none;
}

.author-meta a:hover { color: #2c4360; }

/* Normaliza os ícones */
.author-meta svg,
.author-date svg {
  width: 18px;
  height: 18px;
  stroke-width: 1.8;   /* deixa todos com espessura consistente */
  flex-shrink: 0;
}


.share-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 12px 0 16px;
}

.share-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #6b7280;
  margin-right: 2px;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  background: #fff;
  cursor: pointer;
  padding: 0;
  transition: background .15s ease, border-color .15s ease, transform .04s ease;
}

.share-btn:hover { background: #f3f4f6; border-color: #d1d5db; }
.share-btn:active { transform: translateY(1px); }

.share-btn .icon {
  width: 18px;
  height: 18px;
  color: #6b7280;
}

@media (prefers-color-scheme: dark) {
  .share-btn { background: #0f172a; border-color: #1f2937; }
  .share-btn .icon { color: #9ca3af; }
  .share-btn:hover { background: #111827; }
  .share-label { color: #9ca3af; }
}
.gutter { padding-left: 20px; padding-right: 20px; }

.author-email {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 4px; /* leve respiro abaixo do nome */
}

.author-email:hover .icon-mail {
  color: #2c4360;
}
.author-contact {
  display: inline-flex;
  align-items: center;
  color: #3A5877;
  gap: 6px;
  text-decoration: none;
}

.author-contact:hover .icon-mail {
  color: #2c4360;
}
.icon-mail,
.icon-date {
  stroke-width: 2;       /* mesma espessura */
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle; /* garante alinhamento ao texto */
}

.icon-mail {
  width: 22px;
  height: 18px;
}
.icon-date {
  width: 18px;
  height: 18px;
}
.related { margin-top: 32px; }
.related-title { font-size: 20px; margin: 0 0 14px; color: #0b1320; }

.related-track{
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0 0 8px 0;
  margin: 0;                       /* zera margens parasitas */
  overscroll-behavior-x: contain;  /* evita puxar a página */
  scrollbar-gutter: stable both-edges; /* mantém a largura estável */
}
.related-track::-webkit-scrollbar{
  height: 6px;               /* menor */
  background: transparent;   /* some o trilho */
}
.related-track::-webkit-scrollbar-thumb{
  background: #d1d5db;
  border-radius: 999px;
}
.related-track:hover::-webkit-scrollbar-thumb{
  background: #c0c6cf;       /* aparece só no hover */
}

.related-card{
  flex: 0 0 320px;   /* ajuste para 300, 320 ou 360 se quiser */
  scroll-snap-align: start;
  min-width: 0;      /* impede o flex item de forçar overflow por conteúdo interno */
}
@media (max-width: 720px) { .related-card { min-width: 280px; } }

.related-controls {
  display: flex; align-items: center; justify-content: center;
  gap: 10px; margin-top: 10px;
}
.rel-btn {
  width: 34px; height: 34px; border-radius: 8px;
  border: 1px solid #e5e7eb; background: #fff; cursor: pointer;
}
.rel-btn:hover { background: #f3f4f6; }

.rel-dots { display: inline-flex; gap: 6px; }
.rel-dots i {
  width: 6px; height: 6px; border-radius: 999px; background: #d1d5db; display: inline-block;
}
.rel-dots i.is-active { background: #3A5877; }

.related-footer { display: flex; justify-content: center; margin-top: 20px; }
.related-footer .btn { padding: 10px 14px; border: 1px solid #e5e5e5; border-radius: 8px; background: #fff; font-weight: 600; }
.related-footer .btn:hover { background: #f3f4f6; }





/* Deixa a seção menor e mais discreta */
.related { margin-top: 24px; }
.related-title { font-size: 18px; margin-bottom: 10px; color: #111; }

/* Cards menores que os da listagem */
.related .related-card { 
  flex: 0 0 238px;         /* antes 320px */
  border-radius: 8px;
}
@media (max-width: 720px){
  .related .related-card { flex-basis: 220px; }
}

/* Cover mais baixo só aqui */
.related .cover { height: 140px; }   /* antes 300px */

/* Conteúdo mais denso */
.related .card-content { padding: 12px; }
.related .card-content h3 { font-size: 16px; margin: 0 0 6px; }
.related .card-content p  { font-size: 13px; color: #606f7b; }

/* Tag compacta */
.related .tag {
  font-size: 11px;
  padding: 3px 6px;
  margin-bottom: 6px;
}

/* Controles com menos respiro */
.related-controls { gap: 8px; margin-top: 6px; }
.related-footer .btn { padding: 8px 12px; font-size: 14px; }

/* Clampeia o resumo para 2 linhas para não “pesar” visualmente */
.related .card-content p {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}




/* Categorias na listagem */
.cats { margin: 8px 0 60px; }
.cats-title { font-size: 18px; margin: 0 0 10px; color: #111; }

.cats-grid{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 16px;
}

/* Card da categoria, estilo leve, secundário */
.cat-card{
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  align-items: center;
  gap: 6px 10px;
  padding: 18px;
  border-radius: 16px;
  background: #f5f5f5;
  border: 1px solid #eee;
  text-decoration: none;
  color: inherit;
  transition: transform .06s ease, background .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.cat-card:hover{
  transform: translateY(-1px);
  background: #f2f2f2;
  border-color: #e6e6e6;
  box-shadow: 0 6px 18px rgba(0,0,0,.04);
}

/* Ícone redondo discreto */
.cat-ico{
  width: 28px; height: 28px;
  display: inline-grid; place-items: center;
  font-size: 18px; line-height: 1;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 10px;
}

/* Título e contagem */
.cat-name{
  font-weight: 700; color: #111;
}
.cat-count{
  grid-column: 2;
  font-size: 13px; color: #6b7280;
}

/* Estado ativo com base no slug da URL */
.cat-card.is-active{
  background: #eef2f7;
  border-color: #c9d6e6;
  box-shadow: 0 6px 18px rgba(58,88,119,.08);
}


.templates-footer {
  margin-top: 60px;
  padding: 40px 20px;
  border-top: 1px solid #eee;
  font-size: 15px;
  color: #444;
}

.footer-help {
  text-align: center;
  margin-bottom: 40px;
}

.help-link {
  color: #3A5877;
  text-decoration: underline;
}
.help-link:hover {
  text-decoration: none;
}

.footer-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.footer-cta .cta-text {
  flex: 1;
  min-width: 280px;
}

.footer-cta h2 {
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 12px;
  color: #0b1320;
}

.footer-cta p {
  margin: 0 0 20px;
  font-size: 16px;
  color: #555;
}

.footer-cta .cta-btn {
  display: inline-block;
  padding: 10px 18px;
  background: #3A5877;
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: background .2s;
}
.footer-cta .cta-btn:hover {
  background: #2c4360;
}

.footer-cta .cta-image {
  flex: 1;
  min-width: 260px;
  text-align: center;
}

.footer-cta .cta-image img {
  max-width: 100%;
  height: auto;
}

.templates-footer-link {
  display: flex;
  justify-content: flex-end;
  margin: 40px 0 20px;
}

.browse-link {
  font-weight: 600;
  color: #111;
  text-decoration: none;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color .2s;
}

.browse-link:hover {
  color: #3A5877;
}

.browse-link::after {
  content: "→";
  font-size: 14px;
}


		/* Base, parecido com Conversion */
		html, body {
		  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
		  color: #0b1320;
		  -webkit-font-smoothing: antialiased;
		  -moz-osx-font-smoothing: grayscale;
		  letter-spacing: 0;
		  font-variant-numeric: tabular-nums; 
		  overflow-x: hidden;
		}
		html{
			overflow-y: scroll;
		}

		/* Escala de títulos, pesos fortes e tracking levemente negativo */
		h1, .hero-title, .detail-title {
		  font-weight: 800;
		  font-size: clamp(32px, 5vw, 44px);
		  line-height: 1.15;
		  letter-spacing: -0.015em;
		  color: #0b1320;
		  margin: 0 0 .5rem;
		}

		h2 {
		  font-weight: 700;
		  font-size: clamp(22px, 3vw, 26px);
		  line-height: 1.25;
		  letter-spacing: -0.01em;
		  color: #0f172a;
		  margin: 1.2rem 0 .5rem;
		}

		h3 {
		  font-weight: 700;
		  font-size: 18px;
		  line-height: 1.3;
		  letter-spacing: -0.005em;
		  color: #111827;
		  margin: 1rem 0 .5rem;
		}

		/* Corpo do texto, parágrafos longos confortáveis */
		p, li {
		  font-size: 16px;
		  line-height: 1.7;
		  color: #334155;
		  margin-bottom: 10px;
		}

		/* Metadados, breadcrumb, chips */
		.breadcrumb,
		.meta-row,
		.tag,
		.muted {
		  color: #64748b;
		  font-size: 14px;
		}

		/* Links em texto, discretos porém visíveis ao hover */
		a {
		  color: #0b1320;
		  text-decoration: none;
		}
		a:hover {
		  text-decoration: none;
		  text-underline-offset: 2px;
		}

		/* Botões, peso médio e altura equilibrada */
		.btn, .cta-btn {
		  font-weight: 600;
		  letter-spacing: 0;
		  line-height: 1.2;
		}

		/* Ajustes finos do seu layout de template */
		.cover-banner { margin-bottom: 24px; } /* mantém respiro abaixo do banner */
		.section{ padding:20px; }
		.section p{ margin:0 0 10px; color:#555; }
		.section h2 { margin-top: .2rem; } /* aproxima título do card no detalhe */


/* container do botão */
.cats-actions {
  margin-top: 10px;
  display: flex;
  justify-content: flex-end;
}

/* botão texto, leve */
.cats-toggle {
  appearance: none;
  border: 1px solid #e5e7eb;
  background: #fff;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 600;
  color: #111;
  cursor: pointer;
}
.cats-toggle:hover { background: #f7f7f7; }

/* estado colapsado, uma linha apenas, com fade no final opcional */
.cats-grid.cats-collapsed {
  overflow: hidden;
  position: relative;
}
.cats-grid.cats-collapsed::after {
  content: "";
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: 80px;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(255,255,255,0) 0%, #fff 70%);
}


/* Carrossel de screenshots, escopado */
.shots { margin-top: 22px; }
.shots .section-title { font-size: 18px; margin-bottom: 10px; }

.shots-viewport {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
}

.shots-track{
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 8px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.shots-track::-webkit-scrollbar{ height: 8px; }
.shots-track::-webkit-scrollbar-thumb{ background:#d1d5db; border-radius:999px; }

.shot-card{
  flex: 0 0 320px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
  padding: 0;
  cursor: zoom-in;
  scroll-snap-align: start;
  box-shadow: 0 2px 10px rgba(0,0,0,.04);
  transition: transform .08s ease, box-shadow .2s ease, border-color .2s ease;
}
.shot-card:hover{ transform: translateY(-1px); box-shadow: 0 6px 18px rgba(0,0,0,.06); }

.shot-card img{
  display: block;
  width: 100%;
  height: 180px;
  object-fit: cover;
  background: linear-gradient(0deg, rgba(223,226,228,1) 0%, rgba(255,255,255,1) 100%);
}

@media (max-width: 720px){
  .shot-card{ flex-basis: 260px; }
  .shot-card img{ height: 150px; }
}

/* botões do carrossel */
.shots-nav{
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 2;
  width: 36px; height: 36px; border-radius: 18px;
  border: 1px solid #e5e7eb; background: #fff; color: #111;
  box-shadow: 0 6px 16px rgba(0,0,0,.08);
  cursor: pointer;
}
.shots-nav:hover{ background:#f7f7f7; }
.shots-nav.prev{ left: 8px; }
.shots-nav.next{ right: 8px; }

/* barra de progresso */
.shots-thumb{ position:absolute; top:0; left:0; height:8px; width:80px; background:#c6cdd6; border-radius:999px; }

/* modal */
/* modal */
.lightbox{
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(2,6,23,.75);
  display: none;
  padding: 20px 72px; /* espaço para os botões laterais */
  overflow-y: auto;   /* permite rolagem vertical do modal */
  overflow-x: hidden;
}

.lightbox.is-open{
  display: block;
}

/* imagem ampliada */
.lb-img{
  display: block;
  width: 100%;
  max-width: min(1100px, 100%);
  height: auto;
  margin: 24px auto;
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0,0,0,.35);
  background: #111;
}

/* botões do modal */
.lb-close, .lb-prev, .lb-next{
  position: fixed;
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #111;
  width: 36px;
  height: 36px;
  border-radius: 18px;
  cursor: pointer;
  display: grid;
  place-items: center;
  z-index: 1001;
}

.lb-close{
  top: 16px;
  right: 16px;
}

.lb-prev{
  top: 50%;
  left: 16px;
  transform: translateY(-50%);
}

.lb-next{
  top: 50%;
  right: 16px;
  transform: translateY(-50%);
}

.lb-prev:hover, .lb-next:hover, .lb-close:hover{
  background:#f3f4f6;
}

@media (max-width: 720px){
  .lightbox{
    padding: 16px 56px;
  }

  .lb-img{
    max-width: 100%;
    margin: 16px auto;
  }

  .lb-close, .lb-prev, .lb-next{
    width: 34px;
    height: 34px;
  }

  .lb-prev{ left: 10px; }
  .lb-next{ right: 10px; }
  .lb-close{ top: 10px; right: 10px; }
}
.lb-prev:hover, .lb-next:hover, .lb-close:hover{ background:#f3f4f6; }

/* 1) Garanta que a 1ª coluna do grid possa encolher */
.detail-grid > div:first-child { min-width: 0; }

/* se a 1ª coluna tiver wrappers internos genéricos, reforça */
.detail-grid > div:first-child * { min-width: 0; }

/* segurança extra para não vazar largura no grid inteiro */
.detail-grid { overflow-x: clip; }

/* 2) Carrossel nunca passa da calha do texto */
.shots,
.shots-viewport,
.shots-track {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.shots-viewport { overflow: hidden; }

.shots-track {
  display: flex;
  overflow-x: auto;      /* cria a barra horizontal em vez de esticar a página */
  padding: 8px;
  scroll-snap-type: x mandatory;
}

.shot-card {
  flex: 0 0 300px;       /* slide com largura fixa */
  min-width: 0;          /* não força a linha a alargar */
}

@media (max-width: 720px){
  .shot-card { flex-basis: 260px; }
}

.shot-card img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 180px;
  object-fit: cover;
}

.terms, .validation-error{
	margin: 0 auto;
	max-width: 400px;
	margin-bottom: 20px;
	text-align: left;
	color: #555;
	font-size: 14px;
}
	.terms a{
		color: #555;
	}
	.terms a:hover{
		text-decoration: underline;
	}
.validation-error{
	color: red;
}
