body.page-products main {
	padding-top: calc(var(--header-height) + var(--value-strip-h, 0px));
}

.catalog-hero {
	position: relative;
	overflow: hidden;
	padding: 72px 0 56px;
	border-bottom: 1px solid var(--border);
	background: linear-gradient(to bottom, var(--background), var(--card));
}

.catalog-hero-content {
	position: relative;
	z-index: 1;
	text-align: center;
	max-width: 960px;
	margin: 0 auto;
}

.catalog-title {
	margin: 0;
	font-family: "Playfair Display", serif;
	font-weight: 800;
	font-size: clamp(2rem, 0.5rem + 4.5vw, 4.5rem);
	line-height: 1.1;
	letter-spacing: -0.02em;
}

.catalog-title .gold-gradient {
	background: linear-gradient(90deg, var(--primary), rgb(var(--primary-rgb) / 0.70));
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.catalog-subtitle {
	margin: 16px auto 0;
	max-width: 780px;
	font-size: 16px;
	color: var(--muted-foreground);
}

.filters-bar {
	margin-top: 26px;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
}

.filter-chip {
	border: 1px solid var(--border);
	background: rgb(var(--card-rgb) / 0.55);
	color: var(--foreground);
	border-radius: 9999px;
	padding: 10px 14px;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	cursor: pointer;
	transition: transform 180ms ease, background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}

.filter-chip:hover {
	color: var(--primary);
	border-color: rgb(var(--primary-rgb) / 0.35);
	background: rgb(var(--primary-rgb) / 0.08);
	transform: translateY(-1px);
}

.filter-chip.is-active {
	background: var(--primary);
	border-color: var(--primary);
	color: var(--primary-foreground);
}

.filter-chip.is-active:hover {
	background: rgb(var(--primary-rgb) / 0.90);
	border-color: rgb(var(--primary-rgb) / 0.90);
	color: var(--primary-foreground);
}

.products-meta {
	margin-top: 14px;
	color: var(--muted-foreground);
	font-size: 13px;
}

.catalog-empty {
	grid-column: 1 / -1;
	padding: 30px 14px;
	border-radius: 16px;
	border: 1px solid var(--border);
	background: rgb(var(--card-rgb) / 0.60);
	text-align: center;
	color: var(--muted-foreground);
}

.pagination {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 28px;
}

.page-btn {
	border: 1px solid var(--border);
	background: rgb(var(--card-rgb) / 0.55);
	color: var(--foreground);
	border-radius: 9999px;
	padding: 10px 14px;
	font-size: 12px;
	font-weight: 650;
	cursor: pointer;
	transition: transform 180ms ease, background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}

.page-btn:hover {
	color: var(--primary);
	border-color: rgb(var(--primary-rgb) / 0.35);
	background: rgb(var(--primary-rgb) / 0.08);
	transform: translateY(-1px);
}

.page-btn.is-active {
	background: var(--primary);
	border-color: var(--primary);
	color: var(--primary-foreground);
}

.page-btn:disabled {
	opacity: 0.45;
	cursor: not-allowed;
	transform: none;
}

@media (min-width: 768px) {
	.catalog-subtitle {
		font-size: 18px;
	}
}


/* ===== Catalog control refinement (V78) ===== */
.page-btn,
.catalog-page .btn,
.catalog-page .icon-btn,
.catalog-page button{
	border-radius: 8px !important;
}


/* ===== Warm catalog refresh V106 ===== */
.catalog-hero {
	background:
		radial-gradient(680px 380px at 50% 0%, rgb(var(--primary-rgb) / 0.18), transparent 68%),
		linear-gradient(180deg, rgb(33 25 19 / 0.96), rgb(25 19 14 / 0.98));
	border-bottom-color: rgb(var(--primary-rgb) / 0.14);
}

.filter-chip {
	background: linear-gradient(180deg, rgb(255 248 234 / 0.08), rgb(255 248 234 / 0.03)), rgb(var(--card-rgb) / 0.58);
	border-color: rgb(var(--primary-rgb) / 0.12);
	box-shadow: 0 12px 24px rgb(9 5 2 / 0.12);
}


/* ===== Editorial catalog refresh V107 ===== */
.catalog-page {
	background: transparent;
}

.catalog-hero {
	background: linear-gradient(180deg, rgb(236 223 208 / 0.96), rgb(226 210 190 / 0.96));
	border-bottom-color: rgb(var(--primary-rgb) / 0.12);
}

.catalog-hero-title,
.catalog-hero-subtitle,
.filters-title,
.sort-title {
	color: var(--foreground);
}

.catalog-hero-subtitle,
.filters-subtitle {
	color: #655241;
}

.catalog-sidebar,
.filter-group,
.sort-box,
.filter-chip,
.products-empty,
.catalog-toolbar {
	background: rgb(243 233 220 / 0.88);
	border-color: rgb(var(--primary-rgb) / 0.14);
	box-shadow: 0 16px 36px rgb(60 36 9 / 0.10);
}


/* ===== B&W editorial blend refresh V109 ===== */
.catalog-hero {
	background: linear-gradient(180deg, #16120f 0%, #1a1511 58%, #221c15 100%);
	border-bottom-color: rgb(var(--primary-rgb) / 0.16);
}

.catalog-title,
.catalog-title .gold-gradient,
.catalog-hero-title,
.catalog-hero-subtitle,
.filters-title,
.sort-title { color: #f8f5ef; }

.catalog-title .gold-gradient {
	background: linear-gradient(180deg, #f6d68b 0%, #c9973d 100%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.catalog-subtitle,
.catalog-hero-subtitle,
.filters-subtitle,
.products-meta { color: rgb(248 243 235 / 0.74); }

.catalog-sidebar,
.filter-group,
.sort-box,
.filter-chip,
.products-empty,
.catalog-toolbar {
	background: #ffffff;
	border-color: #e7ddcf;
	box-shadow: 0 14px 34px rgb(20 15 10 / 0.06);
}

/* =====================================================================
   ========== RESPONSIVE — PRODUTOS (catálogo) =========================
   ===================================================================== */

@media (max-width: 1023.98px) {
	/* Move o offset do header+strip do <main> para o próprio .catalog-hero,
	   assim o gradiente escuro do hero preenche a área toda (sem gap branco
	   entre o value-strip e o início do hero). */
	body.page-products main {
		padding-top: 0;
	}
	.catalog-hero {
		padding: calc(var(--header-height) + var(--value-strip-h, 0px) + 32px) 0 40px;
	}
	.filters-bar {
		margin-top: 20px;
	}
}

@media (max-width: 767.98px) {
	.catalog-hero {
		padding: calc(var(--header-height) + var(--value-strip-h, 0px) + 20px) 0 28px;
	}
	.catalog-subtitle {
		font-size: 14px;
		line-height: 1.5;
	}
	.filters-bar {
		gap: 8px;
		margin-top: 16px;
		overflow-x: auto;
		flex-wrap: nowrap;
		justify-content: flex-start;
		padding-bottom: 8px;
		scrollbar-width: none;
		-ms-overflow-style: none;
		scroll-snap-type: x mandatory;
		/* Esquerda ancorada (sem bleed) com 24px de respiro do container.
		   Direita bleeding pra fora do container + mask fade reforçando
		   o peek como indicador de scroll. */
		margin-left: 0;
		margin-right: -16px;
		padding-left: 24px;
		padding-right: 48px;
		scroll-padding-left: 24px;
		-webkit-mask-image: linear-gradient(
			to right,
			black 0,
			black calc(100% - 56px),
			transparent 100%
		);
		mask-image: linear-gradient(
			to right,
			black 0,
			black calc(100% - 56px),
			transparent 100%
		);
	}
	.filters-bar::-webkit-scrollbar {
		display: none;
	}
	.filter-chip {
		flex: 0 0 auto;
		font-size: 11px;
		padding: 10px 14px;
		min-height: 36px;
		scroll-snap-align: start;
	}
	.products-meta {
		margin-top: 10px;
		font-size: 12px;
	}
	.pagination {
		gap: 6px;
		margin-top: 20px;
	}
	.page-btn {
		padding: 8px 12px;
		font-size: 12px;
		min-height: 36px;
	}
}

@media (max-width: 575.98px) {
	.catalog-hero {
		padding: calc(var(--header-height) + var(--value-strip-h, 0px) + 16px) 0 24px;
	}
	.filter-chip {
		font-size: 10.5px;
		padding: 9px 12px;
		letter-spacing: 0.1em;
	}
}

/* ═══════════════════════════════════════════════════════════════════
   Catálogo (produtos.html) — layout "Netflix shelves":
   #productsGrid empilha múltiplas .products-row verticalmente, cada
   linha contendo até 3 cards. Em mobile cada .products-row rola
   horizontalmente independente (cards no tamanho compacto da home,
   ~1.15 visíveis + peek do próximo). Em tablet/desktop cada linha
   é um row estático de 3 cards (sem scroll, todos visíveis).

   O grouping em chunks de 3 é feito no produtos.js (renderProducts).
   PER_PAGE = 9 → exatamente 3 linhas por página.
   ═══════════════════════════════════════════════════════════════════ */
body.page-products .products-grid {
	display: flex;
	flex-direction: column;
	grid-template-columns: none;
	gap: 24px;
}

/* Cada linha-carrossel: por default flex row de 3 cards iguais. */
body.page-products .products-row {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
}

/* Tablet (576-1023px): 3-col fixo, cards compactos. */
@media (min-width: 576px) and (max-width: 1023.98px) {
	body.page-products .products-grid {
		gap: 16px;
	}
	body.page-products .products-row {
		gap: 12px;
	}
	body.page-products .products-row .product-media {
		height: clamp(170px, 26vw, 240px);
	}
	body.page-products .products-row .product-body {
		padding: 14px;
	}
	body.page-products .products-row .product-name {
		font-size: 16px;
	}
	body.page-products .products-row .product-cta .btn {
		font-size: 12px;
		padding: 8px 10px;
	}
}

/* Mobile (≤575px): cada .products-row vira carrossel horizontal
   alinhado ao home compact (commit d6cae96). 1.15 cards visíveis,
   scroll-snap, peek do próximo. Cards mantêm o padding/imagem
   "fortes" da home — categoria e CTA ficam VISÍVEIS porque agora
   há espaço (cards de ~322px em vez de ~110px). */
@media (max-width: 575.98px) {
	body.page-products .products-grid {
		gap: 16px;
	}
	body.page-products .products-row {
		display: flex;
		flex-wrap: nowrap;
		grid-template-columns: none;
		overflow-x: auto;
		overflow-y: hidden;
		gap: 12px;
		padding: 6px 16px 12px;
		margin-left: -16px;
		margin-right: -16px;
		scroll-snap-type: x mandatory;
		scroll-padding: 16px;
		scrollbar-width: none;
	}
	body.page-products .products-row::-webkit-scrollbar {
		display: none;
	}
	body.page-products .products-row > .product-card {
		flex: 0 0 calc((100% - 16px) / 1.15);
		min-width: 0;
		scroll-snap-align: start;
	}
	body.page-products .products-row > .product-card .product-media {
		height: clamp(210px, 52vw, 280px);
	}
}

