@charset "utf-8";
/**
 * Ferro Velho Online - site público (mobile-first).
 * Identidade do site original: preto, amarelo do logo, vermelho de apoio,
 * títulos numa fonte condensada e inclinada, de corrida (Barlow Condensed
 * itálica), e o hot-rod em aquarela.
 * @author Sandro Jordão.
 */

/* ------------------------------------------------------------ Fontes (auto-hospedadas, SIL OFL) */

/* Títulos: um arquivo só (700 itálico). Declarada como normal e para todos
   os pesos, para o navegador não inclinar nem engrossar de novo. */
@font-face {
	font-family: "Barlow Condensed";
	src: url("../fontes/barlow-condensed-700-italic.woff2") format("woff2");
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
}

/* Texto: Montserrat variável (todos os pesos num arquivo só). */
@font-face {
	font-family: "Montserrat";
	src: url("../fontes/montserrat-variable.woff2") format("woff2");
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
}

:root {
	--black: #0b0b0b;
	--ink: #161616;
	--text: #2a2a2a;
	--muted: #66625a;
	--line: #e2ddd0;
	--bg: #f6f4ee;
	--white: #fff;
	--yellow: #f1cf0b;
	--yellow-light: #fbefa6;
	--yellow-dark: #8a7500;
	--red: #df453e;
	--red-dark: #b62d25;
	--green: #1b7f45;
	--whatsapp: #128c4a;

	--font: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--font-title: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;

	--radius: 12px;
	--shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 8px 22px rgba(0, 0, 0, .07);
	--shadow-lg: 0 2px 6px rgba(0, 0, 0, .1), 0 18px 40px rgba(0, 0, 0, .14);
	--stripe: repeating-linear-gradient(-45deg, var(--yellow) 0 18px, var(--black) 18px 36px);
	--container: 1200px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 1rem; }

body {
	margin: 0;
	font-family: var(--font);
	font-size: 1.05rem;
	line-height: 1.55;
	color: var(--text);
	background: var(--bg);
}

body.nav-open { overflow: hidden; }

img, svg { display: block; max-width: 100%; height: auto; }

a { color: inherit; }

h1, h2, h3 { margin: 0 0 .5em; line-height: 1.15; color: var(--ink); }

p { margin: 0 0 1em; }

button, input, select, textarea { font: inherit; color: inherit; }

/* Padrão do projeto: textarea sem alça de redimensionar (a altura vem do rows). */
textarea { resize: none; }

:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }

.container {
	width: 100%;
	max-width: var(--container);
	margin: 0 auto;
	padding: 0 16px;
}

@media (min-width: 768px) { .container { padding: 0 24px; } }

.visually-hidden {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.skip-link {
	position: absolute;
	left: 16px; top: -100px;
	z-index: 100;
	padding: .6em 1em;
	background: var(--yellow);
	color: var(--black);
	font-weight: 700;
}

.skip-link:focus { top: 8px; }

main:focus { outline: none; }

.icon {
	width: 1.15em;
	height: 1.15em;
	flex: none;
	display: inline-block;
	vertical-align: -.2em;
}

.eyebrow {
	display: inline-block;
	margin-bottom: .8em;
	padding: .25em .8em;
	border-radius: 4px;
	background: var(--yellow);
	color: var(--black);
	font-size: .82rem;
	font-weight: 800;
	letter-spacing: .06em;
	text-transform: uppercase;
}

.eyebrow--dark { background: var(--black); color: var(--yellow); }

/* Faixa zebrada amarelo/preto (pátio, oficina). */
.stripe { height: 14px; background: var(--stripe); }

/* ------------------------------------------------------------ Botões e etiquetas */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .5em;
	min-height: 48px;
	padding: .6em 1.4em;
	border: 2px solid transparent;
	border-radius: 999px;
	font-weight: 800;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	transition: background-color .15s, color .15s, border-color .15s, transform .15s;
}

.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .6; cursor: wait; }
.btn--block { display: flex; width: 100%; }
.btn--sm { min-height: 36px; padding: .3em .9em; font-size: .9rem; }
.btn--lg { min-height: 54px; font-size: 1.1rem; }

.btn--primary { background: var(--yellow); color: var(--black); }
.btn--primary:hover { background: #ffe03a; box-shadow: 0 0 0 4px rgba(241, 207, 11, .3); }

.btn--dark { background: var(--black); color: var(--yellow); }
.btn--dark:hover { background: #2a2a2a; color: var(--white); }

.btn--outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--outline:hover { background: var(--ink); color: var(--white); }

.btn--whatsapp { background: var(--whatsapp); color: var(--white); }
.btn--whatsapp:hover { background: #0d6e3a; }

.tag {
	display: inline-block;
	padding: .2em .7em;
	border-radius: 4px;
	font-size: .75rem;
	font-weight: 800;
	text-decoration: none;
	text-transform: uppercase;
	letter-spacing: .05em;
	background: var(--black);
	color: var(--white);
}

.tag--new { background: var(--green); }
.tag--used { background: var(--black); color: var(--yellow); }
.tag--scrap { background: var(--red-dark); }
.tag--ok { background: var(--green); text-transform: none; letter-spacing: 0; }

/* Selo "Anunciante verificado" (cadastro aprovado pela equipe) */
.verified { display: inline-flex; align-items: center; gap: .35em; margin: 0 0 .4em; color: var(--green); font-size: .88rem; font-weight: 800; }
.verified .icon { width: 1.25em; height: 1.25em; padding: .2em; border-radius: 50%; background: var(--green); color: var(--white); }
.tag--link { background: var(--yellow); color: var(--black); }

.chip {
	display: inline-block;
	padding: .35em .95em;
	border: 1px solid rgba(255, 255, 255, .3);
	border-radius: 999px;
	color: var(--white);
	font-size: .92rem;
	font-weight: 600;
	text-decoration: none;
	transition: background-color .15s, color .15s, border-color .15s;
}

.chip:hover { background: var(--yellow); border-color: var(--yellow); color: var(--black); }

/* ------------------------------------------------------------ Cabeçalho */

.site-header {
	position: relative;
	z-index: 20;
	background: var(--black);
	color: var(--white);
}

.site-header__top {
	display: grid;
	grid-template-columns: 1fr auto;
	grid-template-areas: "brand toggle";
	align-items: center;
	gap: 10px 12px;
	padding-top: 10px;
	padding-bottom: 12px;
}

.brand {
	grid-area: brand;
	display: flex;
	align-items: center;
	gap: 8px;
	min-width: 0;
	text-decoration: none;
}

/* Logo pela largura (nunca altura fixa): no celular ocupa o que sobra ao lado do menu. */
.brand__icon { width: 64px; flex: none; }
.brand__name { width: min(300px, 100%); min-width: 0; flex: 1 1 auto; }

.search {
	grid-area: search;
	display: flex;
	width: 100%;
	background: var(--white);
	border-radius: 999px;
	overflow: hidden;
}

.search__input {
	flex: 1;
	min-width: 0;
	padding: .7em 1.1em;
	border: 0;
	background: transparent;
	color: var(--ink);
}

.search__input::placeholder { color: #8a857a; }
.search__input:focus { outline: none; }
.search:focus-within { outline: 3px solid var(--yellow); outline-offset: 2px; }

@media (max-width: 959px) {
	/* Cabeçalho fixo no celular: o botão e o menu ficam à vista depois de rolar. */
	.site-header { position: sticky; top: 0; }

}

.search__btn {
	padding: 0 1.2em;
	border: 0;
	background: var(--yellow);
	color: var(--black);
	cursor: pointer;
}

.search__btn:hover { background: #ffe03a; }

.nav-toggle {
	grid-area: toggle;
	width: 48px;
	height: 48px;
	border: 0;
	border-radius: 8px;
	background: transparent;
	color: var(--yellow);
	cursor: pointer;
}

.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
	display: block;
	width: 26px;
	height: 3px;
	margin: 0 auto;
	border-radius: 2px;
	background: currentColor;
	transition: transform .2s, background-color .2s;
}

.nav-toggle__bars { position: relative; }
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -8px; }
.nav-toggle__bars::after { top: 8px; }

.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-8px) rotate(-45deg); }

.site-nav {
	display: none;
	position: absolute;
	left: 0; right: 0; top: 100%;
	max-height: calc(100vh - 130px);
	overflow-y: auto;
	padding: 8px 0 28px;
	background: var(--black);
	border-top: 1px solid #262626;
	box-shadow: 0 20px 30px rgba(0, 0, 0, .4);
}

.site-nav.is-open { display: block; }

.site-nav ul { margin: 0; padding: 0; list-style: none; }

.site-nav__title {
	margin: .6em 0 .3em;
	color: #9c978b;
	font-size: .78rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .1em;
}

.site-nav__cats {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0 16px;
}

.site-nav a {
	display: block;
	padding: .6em 0;
	color: var(--yellow);
	font-weight: 800;
	text-decoration: none;
	text-transform: uppercase;
	font-size: .92rem;
	letter-spacing: .02em;
}

.site-nav a:hover,
.site-nav a[aria-current] { color: var(--white); }

/* Ícone da categoria: só no menu do celular (no desktop a faixa é só texto). */
.site-nav__cats a { display: flex; align-items: center; gap: .55em; }
.site-nav__cats .icon { width: 22px; height: 22px; }

.site-nav__pages {
	margin-top: 12px !important;
	padding-top: 12px !important;
	border-top: 1px solid #262626;
}

.site-nav__pages a { color: var(--white); text-transform: none; font-size: 1.05rem; font-weight: 600; }
.site-nav__pages a:hover, .site-nav__pages a[aria-current] { color: var(--yellow); }

@media (min-width: 960px) {
	.site-header__top {
		grid-template-columns: auto 1fr;
		grid-template-areas: "brand pages";
		gap: 28px;
		padding-top: 14px;
		padding-bottom: 14px;
	}

	.brand__icon { width: 64px; }
	.brand__name { width: 220px; flex: none; }
	.search { max-width: 520px; justify-self: center; }
	.nav-toggle { display: none; }

	.site-nav {
		display: block;
		position: static;
		max-height: none;
		overflow: visible;
		padding: 0;
		border-top: 1px solid #222;
		box-shadow: none;
	}

	.site-nav .container { display: flex; align-items: center; }
	.site-nav__title { display: none; }
	.site-nav__cats { display: flex; flex-wrap: wrap; gap: 0 20px; }
	.site-nav__cats a { display: block; position: relative; padding: .85em 0; font-size: .82rem; }
	.site-nav__cats .icon { display: none; }

	.site-nav__cats a[aria-current]::after {
		content: "";
		position: absolute;
		left: 0; right: 0; bottom: 0;
		height: 3px;
		background: var(--yellow);
	}

	/* No desktop as páginas ficam ao lado da busca (.site-header__links). */
	.site-nav__pages { display: none; }
}

@media (min-width: 1100px) {
	.brand__icon { width: 84px; }
	.brand__name { width: 300px; }
	.site-nav__cats { gap: 0 26px; }
	.site-nav__cats a { font-size: .86rem; }
}

/* Atalhos das páginas no desktop (à direita do logo). */
.site-header__links { display: none; }

@media (min-width: 960px) {
	.site-header__links {
		grid-area: pages;
		justify-self: end;
		display: flex;
		gap: 18px;
		margin: 0;
		padding: 0;
		list-style: none;
		font-weight: 700;
		font-size: .95rem;
	}

	.site-header__links { align-items: center; }
	.site-header__links a { text-decoration: none; white-space: nowrap; }
	.site-header__links a:hover, .site-header__links a[aria-current] { color: var(--yellow); }

	/* Favoritos e conta do comprador: só o ícone (logado: círculo amarelo). */
	.site-header__icon { position: relative; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 2px solid currentColor; }
	.site-header__icon .icon { width: 20px; height: 20px; }
	.site-header__icon .fav-count { position: absolute; top: -6px; right: -8px; }
	.site-header__links .site-header__icon.is-logged { border-color: var(--yellow); background: var(--yellow); color: var(--black); }
}

/* Quantos favoritos (topo e menu). */
.fav-count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--yellow); color: var(--black); font-size: .75rem; font-weight: 800; line-height: 1; }
.fav-count[hidden] { display: none; }

/* ------------------------------------------------------------ Seções */

.section { padding: 44px 0; }
.section--tight { padding-top: 28px; }
.section--alt { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section--dark { background: var(--black); color: #d9d6cc; }
.section--dark .section__title { color: var(--yellow); }
.section--yellow { background: var(--yellow); color: var(--black); }

@media (min-width: 768px) { .section { padding: 64px 0; } }

.section__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 20px;
}

.section__title {
	font-family: var(--font-title);
	font-size: clamp(1.6rem, 4vw, 2.3rem);
	font-weight: 400;
	letter-spacing: .01em;
}

.section__lead { max-width: 52ch; font-size: 1.1rem; }

.section__more { flex: none; font-weight: 800; text-decoration: none; white-space: nowrap; }
.section__more:hover { text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 3px; }

.split { display: grid; gap: 32px; }

@media (min-width: 900px) {
	.split { grid-template-columns: 1fr 1fr; align-items: start; gap: 56px; }
	.split--form { grid-template-columns: 3fr 2fr; }
}

/* ------------------------------------------------------------ Home: topo */

.hero {
	position: relative;
	overflow: hidden;
	padding: 36px 0 44px;
	background:
		radial-gradient(circle at 85% 30%, rgba(241, 207, 11, .22), transparent 45%),
		linear-gradient(180deg, var(--black) 0%, #17150d 100%);
	color: var(--white);
}

.hero__inner { display: grid; gap: 36px; align-items: center; }

.hero__title {
	max-width: 16ch;
	margin-bottom: .35em;
	color: var(--white);
	font-family: var(--font-title);
	font-size: clamp(2.2rem, 7.5vw, 4rem);
	font-weight: 400;
	line-height: 1.05;
}

.hero__title span { color: var(--yellow); }

.hero__lead { max-width: 46ch; margin-bottom: 1.4em; color: #d6d3c8; font-size: 1.12rem; }

.search--hero { max-width: 600px; padding: 5px; }
.search--hero .search__input { font-size: 1.05rem; }
.search__submit { min-height: 50px; padding: .5em 1.2em; }
.search__label { display: none; }

@media (min-width: 420px) { .search__label { display: inline; } }

.hero__cats {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 20px 0 0;
	padding: 0;
	list-style: none;
}

/* Colagem: fotos com moldura de "polaroide" e o hot-rod em aquarela do logo. */
.hero__art {
	position: relative;
	min-height: 290px;
	max-width: 520px;
	width: 100%;
	margin: 0 auto;
}

.hero__photo {
	position: absolute;
	padding: 8px 8px 26px;
	background: #f4f1e8;
	border-radius: 4px;
	box-shadow: var(--shadow-lg);
}

.hero__photo img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }

.hero__photo::before {
	content: "";
	position: absolute;
	top: -10px; left: 50%;
	width: 70px; height: 22px;
	margin-left: -35px;
	background: rgba(241, 207, 11, .85);
	transform: rotate(-3deg);
}

.hero__photo--1 { top: 0; left: 0; width: 62%; transform: rotate(-4deg); }
.hero__photo--2 { top: 70px; right: 0; width: 52%; transform: rotate(5deg); }

.hero__car {
	position: absolute;
	left: 8%;
	bottom: -14px;
	width: 58%;
	filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .55));
}

@media (min-width: 600px) { .hero__art { min-height: 380px; } }

@media (min-width: 960px) {
	.hero { padding: 64px 0 72px; }
	.hero__inner { grid-template-columns: 1.1fr 1fr; gap: 48px; }
	.hero__art { min-height: 430px; max-width: none; }
	.hero__car { width: 62%; bottom: -20px; }
}

@media (prefers-reduced-motion: no-preference) {
	.hero__car { animation: hero-car 1s cubic-bezier(.2, .8, .2, 1) both; }

	@keyframes hero-car {
		from { transform: translateX(-40px); opacity: 0; }
		to { transform: none; opacity: 1; }
	}
}

/* ------------------------------------------------------------ Home: categorias */

.cats {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

@media (min-width: 640px) { .cats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 900px) { .cats { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 1100px) { .cats { grid-template-columns: repeat(6, minmax(0, 1fr)); } }

.cats__link {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	aspect-ratio: 1 / 1;
	padding: 12px;
	border-radius: var(--radius);
	overflow: hidden;
	background: var(--black);
	color: var(--white);
	text-decoration: none;
	isolation: isolate;
}

.cats__img { position: absolute; inset: 0; z-index: -1; }
.cats__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.cats__img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 35%, rgba(0, 0, 0, .85) 100%); }
.cats__link:hover .cats__img img { transform: scale(1.06); }

.cats__name { font-family: var(--font-title); font-size: 1.35rem; line-height: 1.1; color: var(--yellow); }
.cats__name .icon { display: block; width: 26px; height: 26px; margin-bottom: 4px; }
.cats__count { font-size: .85rem; color: #ddd; }

/* ------------------------------------------------------------ Home: como funciona, mural, promo */

.steps {
	display: grid;
	gap: 16px;
	margin: 8px 0 0;
	padding: 0;
	list-style: none;
}

@media (min-width: 768px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 24px; } }

.steps__item {
	position: relative;
	padding: 22px 22px 18px 82px;
	border: 1px solid #2c2a24;
	border-radius: var(--radius);
	background: #151410;
}

.steps__num {
	position: absolute;
	left: 20px; top: 20px;
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--yellow);
	color: var(--black);
	font-family: var(--font-title);
	font-size: 1.5rem;
}

.steps__title { color: var(--white); font-size: 1.2rem; font-weight: 800; }
.steps__item p { margin: 0; }

.section--yellow .section__title { color: var(--black); }

.board__title {
	margin-bottom: .6em;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: .06em;
	font-size: .85rem;
}

.promo {
	display: grid;
	gap: 0;
	border-radius: var(--radius);
	overflow: hidden;
	background: var(--white);
	box-shadow: var(--shadow);
}

.promo__img img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.promo__text { padding: 28px 22px; align-self: center; }

.promo--dark { margin-top: 32px; background: var(--black); color: #d9d6cc; }
.promo--dark .section__title { color: var(--yellow); }

@media (min-width: 900px) {
	.promo { grid-template-columns: 1fr 1fr; }
	.promo__text { padding: 40px 48px; }
}

/* ------------------------------------------------------------ Cartões dos anúncios */

.grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
}

@media (min-width: 640px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 1000px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; } }
@media (min-width: 1000px) { .grid--catalog { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.card {
	position: relative;
	background: var(--white);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	overflow: hidden;
	transition: transform .2s, box-shadow .2s;
}

/* Compartilhar e favoritar, sobre a foto (canto direito). */
.card__actions { position: absolute; top: 8px; right: 8px; display: flex; gap: 6px; }
.card__actions[hidden] { display: none; }

.card__btn {
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, .92);
	color: var(--ink);
	box-shadow: 0 1px 4px rgba(0, 0, 0, .25);
	cursor: pointer;
}

.card__btn:hover { background: var(--yellow); }
.card__btn .icon { width: 18px; height: 18px; vertical-align: 0; }

/* Estrela: vazia ou cheia conforme aria-pressed. */
[data-fav] .icon + .icon { display: none; }
[data-fav][aria-pressed="true"] .icon:first-child { display: none; }
[data-fav][aria-pressed="true"] .icon + .icon { display: inline-block; color: #e0a800; }
.card__btn--fav[aria-pressed="true"] { background: var(--white); }

.product__actions { display: flex; flex-wrap: wrap; gap: 8px; margin: -.2em 0 1em; }
.product__actions[hidden] { display: none; }

/* Diálogo de compartilhar (sem o compartilhamento do sistema). */
.share-list { display: grid; gap: 8px; margin: 0 0 12px; padding: 0; list-style: none; text-align: left; }
.share-list .btn { justify-content: flex-start; }
.share-copied { color: var(--green); font-weight: 700; min-height: 1.4em; margin: 0 0 8px; }

.favorites__loading { color: var(--muted); }
.favorites__login { display: flex; align-items: center; gap: .5em; margin: 20px 0 0; padding: .8em 1em; border-left: 4px solid var(--yellow); border-radius: 0 8px 8px 0; background: var(--white); }
.favorites__login .icon { flex: none; width: 20px; height: 20px; }

.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }

.card__link { display: flex; flex-direction: column; height: 100%; text-decoration: none; }

.card__media { position: relative; aspect-ratio: 4 / 3; background: #ece8dc; overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card:hover .card__media img { transform: scale(1.04); }
/* Etiqueta da condição embaixo à esquerda: em cima ficam compartilhar e favoritar. */
.card__media .tag { position: absolute; left: 8px; bottom: 8px; }

.card__body { display: flex; flex-direction: column; flex: 1; padding: 10px 12px 12px; border-top: 4px solid var(--yellow); }

.card__price { margin: 0 0 .15em; color: var(--ink); font-family: var(--font-title); font-size: 1.35rem; line-height: 1.2; }
.card__price--ask { color: var(--muted); font-size: 1.1rem; }

.card__title {
	margin: 0 0 .25em;
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.25;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.card__vehicle { margin: 0 0 .5em; color: var(--muted); font-size: .85rem; line-height: 1.35; }
.card__meta { margin: auto 0 0; color: var(--muted); font-size: .82rem; }

/* ------------------------------------------------------------ Cabeçalho das páginas e trilha */

.page-head {
	padding: 22px 0 26px;
	background: var(--black);
	color: #cfcabd;
	border-bottom: 10px solid transparent;
	border-image: var(--stripe) 10;
}

.page-head__title {
	margin-bottom: .2em;
	color: var(--yellow);
	font-family: var(--font-title);
	font-size: clamp(2rem, 5vw, 3rem);
	font-weight: 400;
}

.page-head__lead { max-width: 70ch; margin: 0; font-size: 1.08rem; }

.breadcrumb ol {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	margin: 0 0 12px;
	padding: 18px 0 0;
	list-style: none;
	font-size: .88rem;
	color: var(--muted);
}

.page-head .breadcrumb ol { padding-top: 0; color: #9c978b; }
.breadcrumb li + li::before { content: "›"; margin-right: 4px; }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* ------------------------------------------------------------ Catálogo */

.catalog { display: grid; gap: 20px; padding-top: 24px; padding-bottom: 56px; }

@media (min-width: 960px) {
	.catalog { grid-template-columns: 270px 1fr; gap: 32px; align-items: start; padding-top: 32px; }
	.filters { position: sticky; top: 16px; }
}

.filters__box { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); }

.filters__toggle {
	display: flex;
	align-items: center;
	gap: .5em;
	padding: 14px 16px;
	font-family: var(--font-title);
	font-size: 1.25rem;
	cursor: pointer;
	list-style: none;
}

.filters__toggle::-webkit-details-marker { display: none; }
.filters__toggle::after { content: "+"; margin-left: auto; font-family: var(--font); font-size: 1.4rem; font-weight: 800; line-height: 1; }
.filters__box[open] .filters__toggle::after { content: "–"; }

@media (min-width: 960px) {
	.filters__toggle { pointer-events: none; }
	.filters__toggle::after { display: none; }
}

.filters__form { padding: 0 16px 16px; }
.filters__clear { display: block; margin-top: 10px; text-align: center; font-size: .92rem; }

.catalog__bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px 16px;
	margin-bottom: 14px;
}

.catalog__count { margin: 0; font-weight: 700; }

.catalog__sort { display: flex; align-items: center; gap: 8px; font-size: .92rem; }
.catalog__sort select { padding: .45em .7em; border: 1px solid var(--line); border-radius: 8px; background: var(--white); }
.catalog__sort .custom-select-wrapper { width: 170px; }
.catalog__sort .custom-select-input { min-height: 38px; padding-top: .4em; padding-bottom: .4em; border-color: var(--line); }

/* Subcategorias no topo da página da categoria */
.subcats ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 4px; padding: 0; list-style: none; }
/* O chip padrão é para fundo escuro (banner): aqui o fundo é claro. */
.subcats .chip { border-color: #cfc8b3; background: var(--white); color: var(--ink); }
.subcats .chip:hover { border-color: var(--yellow); background: var(--yellow); color: var(--black); }
.subcats .chip span { color: var(--muted); font-weight: 400; }
.subcats .chip[aria-current] { background: var(--black); border-color: var(--black); color: var(--yellow); }
.subcats .chip[aria-current] span { color: #cfcabd; }

.empty {
	padding: 36px 20px;
	border: 2px dashed #d4cdb8;
	border-radius: var(--radius);
	background: var(--white);
	text-align: center;
	color: var(--muted);
}

.empty__title { color: var(--ink); font-weight: 800; font-size: 1.1rem; }

.pager {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px;
	margin-top: 32px;
}

.pager__link {
	min-width: 44px;
	padding: .55em .85em;
	border-radius: 8px;
	background: var(--white);
	text-align: center;
	text-decoration: none;
	font-weight: 800;
	box-shadow: var(--shadow);
}

.pager__link:hover { background: var(--yellow); }
.pager__link.is-current { background: var(--black); color: var(--yellow); }

/* ------------------------------------------------------------ Anúncio */

.product {
	display: grid;
	gap: 24px;
	padding-bottom: 40px;
}

@media (min-width: 960px) {
	.product { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 32px 48px; }
	.product__details { grid-column: 1; }
	.product__info { grid-column: 2; grid-row: 1 / span 2; align-self: start; position: sticky; top: 16px; }
}

.product__main {
	display: block;
	aspect-ratio: 4 / 3;
	border-radius: var(--radius);
	overflow: hidden;
	background: #ece8dc;
	box-shadow: var(--shadow);
	cursor: zoom-in;
}

.product__main img { width: 100%; height: 100%; object-fit: cover; }

.product__thumbs {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 8px;
	margin: 8px 0 0;
	padding: 0;
	list-style: none;
}

.product__thumbs a { display: block; aspect-ratio: 4 / 3; border-radius: 8px; overflow: hidden; cursor: zoom-in; }
.product__thumbs img { width: 100%; height: 100%; object-fit: cover; }

.product__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: .7em; }

.product__title { font-size: clamp(1.5rem, 3.5vw, 2.1rem); font-weight: 800; }

.product__price {
	display: inline-block;
	margin-bottom: .5em;
	padding: .05em .45em;
	background: var(--yellow);
	color: var(--black);
	font-family: var(--font-title);
	font-size: 2.2rem;
	line-height: 1.3;
	transform: rotate(-1.5deg);
}

.product__price--ask { background: var(--line); font-size: 1.6rem; }

.product__vehicle { padding: .75em 1em; border-left: 4px solid var(--yellow); background: var(--white); border-radius: 0 8px 8px 0; }
.product__sku { margin: -.35em 0 .6em; color: var(--muted); font-size: .78rem; letter-spacing: .02em; }
.product__code { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .02em; word-break: break-word; }
.product__vehicle-type { display: inline-block; margin-left: .35em; padding: .05em .55em; border-radius: 999px; background: var(--bg); color: var(--muted); font-size: .8rem; font-weight: 700; vertical-align: .1em; }
.product__stock { color: var(--muted); font-size: .92rem; }

.product__subtitle { font-family: var(--font-title); font-size: 1.5rem; font-weight: 400; }
.product__details section + section { margin-top: 32px; }
.product__text { max-width: 70ch; }

.seller {
	padding: 20px;
	border-radius: var(--radius);
	background: var(--white);
	box-shadow: var(--shadow);
	border-top: 6px solid var(--black);
}

.seller__label { margin: 0; color: var(--muted); font-size: .8rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.seller__name { display: inline-block; margin: .1em 0 .2em; font-size: 1.3rem; font-weight: 800; text-decoration-color: var(--yellow); text-decoration-thickness: 3px; }
.seller__city { color: var(--muted); font-size: .95rem; }
.seller__actions { display: grid; gap: 8px; margin: 14px 0; }

.specs { margin: 0; border-top: 1px solid var(--line); }
.specs__row { display: grid; grid-template-columns: 40% 1fr; gap: 12px; padding: .6em 0; border-bottom: 1px solid var(--line); }
.specs dt { color: var(--muted); }
.specs dd { margin: 0; font-weight: 700; }

.product__form { padding: 22px; border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); }

/* ------------------------------------------------------------ Anunciantes */

.sellers {
	display: grid;
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}

@media (min-width: 640px) { .sellers { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .sellers { grid-template-columns: repeat(3, 1fr); } }

.sellers__link {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 2px 14px;
	height: 100%;
	padding: 20px;
	border-radius: var(--radius);
	background: var(--white);
	box-shadow: var(--shadow);
	text-decoration: none;
	transition: transform .2s, box-shadow .2s;
}

.sellers__link:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }

.sellers__avatar {
	grid-row: span 3;
	display: grid;
	place-items: center;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: var(--black);
	color: var(--yellow);
	font-family: var(--font-title);
	font-size: 1.7rem;
}

/* Logo do anunciante: a imagem inteira (sem recortar) num quadrado branco. */
.has-logo { overflow: hidden; background: var(--white) !important; border: 1px solid var(--line); }
.has-logo img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.sellers__avatar.has-logo { border-radius: 10px; }

.seller__logo { display: grid; place-items: center; width: 120px; height: 120px; margin-bottom: 12px; border-radius: 12px; }
.seller__logo--sm { width: 52px; height: 52px; margin: 0; border-radius: 8px; flex: none; }
.seller__head { display: flex; align-items: center; gap: 10px; }

/* Nome, selo e cidade sempre na coluna ao lado do logo. */
.sellers__link > .sellers__name,
.sellers__link > .verified,
.sellers__link > .sellers__city { grid-column: 2; }
.sellers__link > .verified { margin: 0; }

.sellers__name { font-weight: 800; font-size: 1.1rem; color: var(--ink); }
.sellers__city { color: var(--muted); font-size: .9rem; }
.sellers__desc, .sellers__count { grid-column: 1 / -1; font-size: .95rem; }
.sellers__desc { margin-top: 10px; }
.sellers__count { margin-top: 8px; font-weight: 800; }

.seller-page { display: grid; gap: 24px; padding-top: 28px; padding-bottom: 56px; }

@media (min-width: 960px) {
	.seller-page { grid-template-columns: 310px 1fr; gap: 36px; align-items: start; }
	.seller--page { position: sticky; top: 16px; }
}

.seller--page .seller__label { margin-top: 18px; }

.hours { margin: 8px 0 0; font-size: .95rem; }
.hours__row { display: flex; justify-content: space-between; padding: .35em 0; border-bottom: 1px solid var(--line); }
.hours__row.is-today { font-weight: 800; background: var(--yellow-light); margin: 0 -8px; padding-left: 8px; padding-right: 8px; border-radius: 4px; }
.hours dd { margin: 0; }

/* ------------------------------------------------------------ Pedidos (procuro uma peça) */

.requests { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }

.request {
	position: relative;
	padding: 14px 16px 14px 18px;
	border-radius: 6px;
	background: var(--white);
	box-shadow: var(--shadow);
	border-left: 6px solid var(--yellow);
}

.section--yellow .request { border-left-color: var(--black); }

.request__part { margin: 0; font-weight: 800; font-size: 1.08rem; color: var(--ink); }
.request__vehicle { margin: 0; }
.request__details { margin: .3em 0 0; color: var(--muted); font-size: .95rem; }
.request__meta { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: .5em 0 0; color: var(--muted); font-size: .88rem; }

/* ------------------------------------------------------------ Anuncie, contato, 404 */

.benefits {
	display: grid;
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}

@media (min-width: 640px) { .benefits { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .benefits { grid-template-columns: repeat(4, 1fr); } }

.benefits__item { padding: 22px; border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); }
.benefits__item .icon { width: 44px; height: 44px; margin-bottom: 12px; padding: 9px; border-radius: 10px; background: var(--yellow); color: var(--black); }
.benefits__item h2 { font-size: 1.2rem; font-weight: 800; }
.benefits__item p { margin: 0; color: var(--muted); }

.contact-box { padding: 22px; border-radius: var(--radius); background: var(--black); color: #d9d6cc; }
.contact-box .section__title { color: var(--yellow); }
.contact-box a { color: var(--white); }
.contact-box__list { margin: 0 0 1em; padding: 0; list-style: none; }
.contact-box__list li { display: flex; align-items: center; gap: .6em; padding: .35em 0; }
.contact-box__list .icon { color: var(--yellow); }

.not-found { padding: 56px 16px 72px; text-align: center; }
.not-found__code { margin: 0; font-family: var(--font-title); color: var(--black); font-size: clamp(5rem, 20vw, 9rem); line-height: 1; text-shadow: 6px 6px 0 var(--yellow); }
.not-found .page-head__title { color: var(--ink); }
.not-found .search { margin: 24px auto; }

/* ------------------------------------------------------------ Formulários */

.form__row { display: grid; gap: 0 16px; }

@media (min-width: 640px) { .form__row { grid-template-columns: repeat(2, 1fr); } }

.field { margin: 0 0 14px; padding: 0; border: 0; min-width: 0; }
.field--row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.field--row legend { margin-bottom: 6px; }
.field--row-2-1 { grid-template-columns: 2fr 1fr; }

.field label,
.field legend { display: block; margin-bottom: 4px; font-weight: 700; font-size: .95rem; }

.field__optional { color: var(--muted); font-weight: 400; }

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field input[type="search"],
.field input[type="password"],
.field select,
.field textarea {
	width: 100%;
	min-height: 46px;
	padding: .6em .8em;
	border: 1px solid #cfc8b3;
	border-radius: 8px;
	background: var(--white);
}

.field textarea { min-height: 110px; }

.field input:focus,
.field select:focus,
.field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(241, 207, 11, .6); }

.field .check { display: flex; align-items: center; gap: .5em; margin: 0; padding: .25em 0; font-weight: 400; }
.field .check input { width: 18px; height: 18px; accent-color: var(--ink); }

.field__error { display: none; margin: 4px 0 0; color: #b42318; font-size: .88rem; }
.field.has-error .field__error { display: block; }
.field.has-error input, .field.has-error textarea { border-color: #b42318; }

.field__counter { display: block; margin-top: 4px; color: var(--muted); font-size: .82rem; text-align: right; }

/* ------------------------------------------------------------ Select customizado (www/js/select.js) */

.custom-select-wrapper { position: relative; display: block; width: 100%; }

/* Seta do campo (desenhada em CSS: o campo é um input). */
.custom-select-wrapper::after {
	content: "";
	position: absolute;
	right: 14px; top: 50%;
	width: 8px; height: 8px;
	margin-top: -6px;
	border-right: 2px solid var(--ink);
	border-bottom: 2px solid var(--ink);
	transform: rotate(45deg);
	transition: transform .15s;
	pointer-events: none;
}

.custom-select-wrapper.is-open::after { margin-top: -2px; transform: rotate(-135deg); }

.custom-select-input {
	width: 100%;
	min-height: 46px;
	padding: .6em 2.4em .6em .8em;
	border: 1px solid #cfc8b3;
	border-radius: 8px;
	background: var(--white);
	text-overflow: ellipsis;
	cursor: pointer;
}

.field input.custom-select-input { padding-right: 2.4em; }
.custom-select-input:not([readonly]) { cursor: text; }
.custom-select-input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(241, 207, 11, .6); }
.custom-select-input[aria-invalid="true"],
.field.has-error .custom-select-input { border-color: #b42318; }

.custom-select-wrapper.disabled { opacity: .6; cursor: not-allowed; }
.custom-select-input:disabled { background: var(--bg); cursor: not-allowed; }

.custom-select-dropdown {
	position: fixed;
	z-index: 1000;
	display: none;
	max-height: 290px;
	overflow-y: auto;
	padding: 4px 0;
	border: 1px solid var(--line);
	border-radius: 8px;
	background: var(--white);
	box-shadow: var(--shadow-lg);
	overscroll-behavior: contain;
}

.custom-select-item { padding: .5em .8em; cursor: pointer; }
.custom-select-item:hover,
.custom-select-item.is-active { background: var(--yellow-light); }

.custom-select-item.selected .custom-select-item-text { font-weight: 700; }
.custom-select-item.selected .custom-select-item-text::after { content: " ✓"; color: var(--green); }

.custom-select-item-content { display: flex; align-items: center; gap: .65em; }
.custom-select-item-icon { display: grid; place-items: center; width: 30px; height: 30px; flex: none; border-radius: 6px; background: var(--bg); color: var(--ink); }
.custom-select-item-icon .icon { width: 20px; height: 20px; vertical-align: 0; }
.custom-select-item-text { line-height: 1.25; }
.custom-select-item-type { margin-top: 1px; color: var(--muted); font-size: .8rem; }

.custom-select-group {
	padding: .7em .8em .3em;
	color: var(--muted);
	font-size: .74rem;
	font-weight: 800;
	letter-spacing: .06em;
	text-transform: uppercase;
}

.custom-select-empty { padding: .6em .8em; color: var(--muted); }

/*
 * Painel de opções no celular/tablet (sheet em www/js/select.js): sobe de
 * baixo, com título, botão de fechar, busca no topo e lista para o dedo.
 * Em tablet (> 640px) aparece centralizado. Também mostra o relógio dos
 * campos de hora.
 */
html.select-sheet-lock { overflow: hidden; }

.select-sheet { position: fixed; inset: 0; z-index: 10000; display: flex; align-items: flex-end; justify-content: center; }
.select-sheet[hidden] { display: none; }

.select-sheet__backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .5); opacity: 0; transition: opacity .25s ease; }

.select-sheet__panel {
	position: relative;
	display: flex;
	flex-direction: column;
	width: 100%;
	max-width: 520px;
	max-height: 80vh;
	max-height: 80dvh;
	padding-bottom: env(safe-area-inset-bottom);
	border-radius: 20px 20px 0 0;
	background: var(--white);
	box-shadow: 0 -12px 40px rgba(0, 0, 0, .25);
	transform: translateY(100%);
	transition: transform .3s cubic-bezier(.2, .8, .2, 1);
	outline: none;
}

/* Alça no topo, como nos apps. */
.select-sheet__panel::before { content: ""; flex: none; width: 40px; height: 4px; margin: 10px auto 0; border-radius: 2px; background: var(--line); }

.select-sheet.is-shown .select-sheet__backdrop { opacity: 1; }
.select-sheet.is-shown .select-sheet__panel { transform: none; }

.select-sheet__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px 8px 20px; }
.select-sheet__title { color: var(--ink); font-size: 1.05rem; font-weight: 700; }

.select-sheet__close {
	display: grid;
	place-items: center;
	flex: none;
	width: 40px; height: 40px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--bg);
	color: var(--ink);
	cursor: pointer;
}

.select-sheet__search { position: relative; flex: none; margin: 4px 16px 8px; }
.select-sheet__search svg { position: absolute; top: 50%; left: 14px; color: var(--muted); transform: translateY(-50%); pointer-events: none; }

/* 16px: abaixo disso o iOS dá zoom na página ao focar o campo. */
.select-sheet__search input {
	width: 100%;
	height: 48px;
	padding: 0 14px 0 44px;
	border: 1px solid #cfc8b3;
	border-radius: 12px;
	background: var(--white);
	font: inherit;
	font-size: 16px;
	-webkit-appearance: none;
	appearance: none;
}

.select-sheet__search input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(241, 207, 11, .6); }

.select-sheet__list { flex: 1; min-height: 0; padding: 4px 8px 16px; overflow-y: auto; overscroll-behavior: contain; }
.select-sheet__list .custom-select-item { display: flex; align-items: center; min-height: 52px; padding: 12px; border-radius: 12px; font-size: 16px; }

.select-sheet__body { flex: 1; min-height: 0; padding: 4px 16px 16px; overflow-y: auto; }
.select-sheet__body[hidden] { display: none; }

@media (min-width: 641px) {
	.select-sheet { align-items: center; padding: 24px; }
	.select-sheet__panel { max-height: 70vh; border-radius: 20px; opacity: 0; transform: translateY(24px) scale(.97); transition: transform .25s ease, opacity .25s ease; }
	.select-sheet__panel::before { display: none; }
	.select-sheet.is-shown .select-sheet__panel { opacity: 1; }
}

/* Campo de hora (data-picker="time"): botão do relógio à direita. */
.picker-field { position: relative; display: block; width: 100%; }
.picker-field input { width: 100%; padding-right: 2.4em; }

.picker-open {
	position: absolute;
	top: 50%; right: 4px;
	display: grid;
	place-items: center;
	width: 34px; height: 34px;
	padding: 0;
	border: 0;
	border-radius: 8px;
	background: transparent;
	color: var(--muted);
	cursor: pointer;
	transform: translateY(-50%);
}

.picker-open:hover { background: var(--yellow-light); color: var(--ink); }

/* Relógio: coluna de horas e de minutos. */
.picker-time { display: flex; align-items: center; justify-content: center; gap: 10px; }
.picker-time__sep { color: var(--muted); font-size: 1.75rem; font-weight: 700; }

.picker-column {
	position: relative;
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 4px;
	max-width: 140px;
	height: 264px;
	padding: 4px;
	overflow-y: auto;
	overscroll-behavior: contain;
	border: 1px solid var(--line);
	border-radius: 14px;
}

.picker-cell {
	flex: none;
	height: 48px;
	padding: 0;
	border: 0;
	border-radius: 10px;
	background: transparent;
	color: var(--ink);
	font: inherit;
	font-size: 1.25rem;
	font-weight: 600;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
}

.picker-cell:hover { background: var(--yellow-light); }
.picker-cell.selected, .picker-cell.selected:hover { background: var(--yellow); font-weight: 800; }

.picker-actions { margin-top: 14px; }

/* No toque o :hover fica "preso" no último item tocado. */
@media (hover: none) {
	.picker-cell:not(.selected):hover { background: transparent; }
}
.field__counter.is-near { color: #b42318; }

.form__note { color: var(--muted); font-size: .9rem; }
.form__alert { margin: 0 0 16px; padding: .7em .9em; border-radius: 8px; background: #fde8e7; color: #8d1f19; font-weight: 700; }

/* Autocadastro do anunciante (/anuncie) */
.signup { max-width: 820px; padding: 24px 20px; border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); }
.signup__group { margin: 0 0 8px; padding: 0; border: 0; min-width: 0; }
.signup__group legend { margin-bottom: 10px; font-family: var(--font-title); font-size: 1.3rem; color: var(--ink); }
.signup .check { align-items: flex-start; }
.signup .check input { margin-top: 3px; }

@media (min-width: 768px) { .signup { padding: 32px; } }

.promo__steps { margin: 0 0 1em; padding-left: 1.2em; display: grid; gap: 6px; }
.form__status { margin: 10px 0 0; color: #b42318; font-weight: 700; }
.form__status:empty { display: none; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.split--form .form { padding: 22px; border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); }

/* ------------------------------------------------------------ Diálogos */

.modal {
	width: min(420px, calc(100% - 32px));
	padding: 0;
	border: 0;
	border-radius: 14px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, .35);
	overflow: hidden;
}

.modal::backdrop { background: rgba(0, 0, 0, .65); }

.modal__body { padding: 30px 24px 24px; text-align: center; border-top: 10px solid transparent; border-image: var(--stripe) 10; }
.modal--error .modal__body { border-image: none; border-top-color: var(--red); }

.modal__icon {
	display: grid;
	place-items: center;
	width: 60px;
	height: 60px;
	margin: 0 auto 12px;
	border-radius: 50%;
	background: var(--yellow);
	color: var(--black);
	font-size: 1.9rem;
	font-weight: 900;
}

.modal--error .modal__icon { background: var(--red); color: var(--white); }
.modal__title { font-family: var(--font-title); font-weight: 400; font-size: 1.6rem; }

.lightbox {
	width: 100%;
	max-width: none;
	height: 100%;
	max-height: none;
	margin: 0;
	padding: 0;
	border: 0;
	background: rgba(0, 0, 0, .94);
	color: var(--white);
}

.lightbox::backdrop { background: rgba(0, 0, 0, .9); }

.lightbox__figure { display: grid; place-items: center; height: calc(100% - 60px); margin: 0; padding: 16px; }
.lightbox__img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lightbox__caption { display: flex; justify-content: center; gap: 16px; padding: 0 16px; font-size: .92rem; }
.lightbox__counter { color: #aaa; }

.lightbox__btn {
	position: absolute;
	width: 48px;
	height: 48px;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, .12);
	color: var(--white);
	font-size: 2rem;
	line-height: 1;
	cursor: pointer;
}

.lightbox__btn:hover { background: var(--yellow); color: var(--black); }
.lightbox__btn--close { right: 12px; top: 12px; }
.lightbox__btn--prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lightbox__btn--next { right: 12px; top: 50%; transform: translateY(-50%); }

/* ------------------------------------------------------------ Rodapé */

.site-footer { background: var(--black); color: #c9c5b9; font-size: .95rem; }
.site-footer::before { content: ""; display: block; height: 14px; background: var(--stripe); }

.site-footer__grid {
	display: grid;
	gap: 28px;
	padding-top: 44px;
	padding-bottom: 32px;
}

@media (min-width: 768px) { .site-footer__grid { grid-template-columns: 1.3fr 1fr 1fr; } }
@media (min-width: 1000px) { .site-footer__grid { grid-template-columns: 1.4fr 1.2fr 1fr 1.2fr; } }

.site-footer__brand img { width: 250px; margin-bottom: 14px; }

.site-footer__title { margin-bottom: .6em; color: var(--yellow); font-family: var(--font-title); font-size: 1.3rem; }

.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer li { padding: .22em 0; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--yellow); }
.site-footer__cols { columns: 2; column-gap: 16px; }
.site-footer__contact li { display: flex; align-items: center; gap: .55em; }
.site-footer__contact .icon { color: var(--yellow); }

/* Redes sociais (ícones) */
.social { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; padding: 0; list-style: none; }
.social a { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: #222; color: var(--yellow); }
.social a:hover { background: var(--yellow); color: var(--black); }
.social .icon { width: 20px; height: 20px; vertical-align: 0; }

/* Página Sobre nós */
.prose { max-width: 70ch; }
.prose .section__title { margin-top: 1.2em; }
.prose .section__title:first-child { margin-top: 0; }
.about-numbers { display: grid; gap: 10px; margin: 0 0 1em; padding: 0; list-style: none; }
.about-numbers strong { display: block; font-family: var(--font-title); font-size: 2rem; color: var(--yellow); line-height: 1; }

@media (min-width: 900px) { .split--about { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); } }

.site-footer__bottom { padding: 18px 0; border-top: 1px solid #222; font-size: .85rem; color: #8f8b80; }
.site-footer__bottom p { margin: .2em 0; }
.site-footer__note a { color: var(--yellow); }

/* Créditos: © de um lado, "Desenvolvido por" do outro (empilha no celular). */
.site-footer__credits { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0 24px; }
.site-footer__credits a { color: var(--white); }
.site-footer__credits a:hover { color: var(--yellow); }
.site-footer__credits + .site-footer__note { margin-top: .6em; }

/* ------------------------------------------------------------ Login */

.auth {
	display: grid;
	place-items: center;
	min-height: 100vh;
	padding: 24px 16px;
	background:
		radial-gradient(circle at 50% 20%, rgba(241, 207, 11, .18), transparent 50%),
		var(--black);
}

.auth__card {
	width: min(380px, 100%);
	padding: 28px 24px;
	border-radius: 14px;
	background: var(--white);
	border-top: 10px solid transparent;
	border-image: var(--stripe) 10;
}

.auth__logo { width: 140px; margin: 0 auto 8px; }
.auth__title { text-align: center; font-family: var(--font-title); font-weight: 400; font-size: 1.7rem; }
.auth__back { display: block; margin-top: 14px; text-align: center; font-size: .92rem; }
.auth__lead { color: var(--muted); text-align: center; font-size: .95rem; }

/* Entrada da equipe (painel), discreta no pé da tela do anunciante. */
.auth__restricted { display: block; margin-top: 18px; padding-top: 12px; border-top: 1px solid var(--line); color: var(--muted); text-align: center; font-size: .82rem; }
.auth__links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 12px; margin-top: 14px; font-size: .92rem; }

/* Aviso da tela de entrar (erro ou sucesso), vindo do servidor. */
.auth__alert { margin: 0 0 14px; padding: .7em .9em; border-radius: 8px; background: #fde8e7; color: #8d1f19; font-size: .95rem; }
.auth__alert--ok { background: #e3f4ea; color: #145c33; }
.auth__alert a { color: inherit; font-weight: 700; overflow-wrap: anywhere; }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; }
}
