/**
 * Power to Move — product catalog (Figma "Produtos — Catálogo").
 *
 * Colours come from the Blocksy palette (Customize > General > Colors):
 *   1 green-500 · 2 grey-900 · 4 near-black · 5 light grey · 6 chip grey · 8 white
 *   9 muted text · 10 grey-500 · 11 surface · 12 green-600
 *
 * Breakpoints match Blocksy: tablet ≤ 999.98px, mobile ≤ 689.98px.
 */

/* ------------------------------------------------------------------ */
/* Hero                                                                 */
/* ------------------------------------------------------------------ */

.ptm-page-hero {
	position: relative;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	height: 408px;
	padding: 0 24px 112px;
	overflow: hidden;
	background-color: var(--theme-palette-color-2);
}

.ptm-page-hero__image {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ptm-page-hero__title {
	position: relative;
	margin: 0;
	text-align: center;
	color: var(--theme-palette-color-8);
}

/* When the page has its own h1, the hero title is a <p> with the H1 look. */
p.ptm-page-hero__title {
	font-size: 64px;
	font-weight: 600;
	line-height: 1;
}

@media (max-width: 999.98px) {
	p.ptm-page-hero__title {
		font-size: 48px;
		line-height: 1.1;
	}
}

@media (max-width: 689.98px) {
	p.ptm-page-hero__title {
		font-size: 32px;
	}
}

/* The breadcrumb lives in breadcrumb.css (a dependency of this file). */

/* ------------------------------------------------------------------ */
/* Page body                                                            */
/* ------------------------------------------------------------------ */

.ptm-catalog {
	display: flex;
	flex-direction: column;
	gap: 40px;
	padding-top: 64px;
	padding-bottom: 80px;
	color: var(--theme-palette-color-2);
}

.ptm-catalog h2,
.ptm-catalog p,
.ptm-filters-sheet h2 {
	margin: 0;
}

.ptm-catalog .ptm-icon,
.ptm-filters-sheet .ptm-icon {
	flex-shrink: 0;
}

.ptm-catalog > .woocommerce-notices-wrapper:empty {
	display: none;
}

.ptm-catalog__intro {
	display: flex;
	flex-direction: column;
	gap: 8px;
	max-width: 730px;
}

.ptm-catalog__intro h2 {
	letter-spacing: -0.01em;
	color: var(--theme-palette-color-2);
}

.ptm-catalog__intro p {
	font-size: 18px;
	line-height: 1.3;
	color: var(--theme-palette-color-9);
}

.ptm-catalog__layout {
	display: grid;
	grid-template-columns: 232px minmax(0, 1fr);
	align-items: start;
	gap: 40px;
}

/* ------------------------------------------------------------------ */
/* Sidebar: categories + help card                                      */
/* ------------------------------------------------------------------ */

.ptm-catalog__sidebar {
	display: flex;
	flex-direction: column;
	gap: 28px;
}

.ptm-catalog .ptm-catalog__sidebar-title {
	font-size: 24px;
	font-weight: 500;
	line-height: 1.2;
	letter-spacing: 0;
	color: var(--theme-palette-color-2);
}

.ptm-filter-list {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ptm-filter-list--sidebar {
	padding-bottom: 28px;
	border-bottom: 1px solid var(--theme-palette-color-6);
}

.ptm-filter-row {
	position: relative;
	display: flex;
	align-items: center;
	gap: 12px;
	min-height: 52px;
	padding: 12px;
	border-radius: 8px;
	background-color: var(--theme-palette-color-8);
	font-size: 16px;
	line-height: 1.3;
	letter-spacing: 0.0014em;
	color: var(--theme-palette-color-2);
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.15s ease;
}

.ptm-filter-row:hover {
	background-color: var(--theme-palette-color-11);
	color: var(--theme-palette-color-2);
}

.ptm-filter-row__radio {
	display: grid;
	place-items: center;
	flex-shrink: 0;
	width: 18px;
	height: 18px;
	border: 1.5px solid var(--theme-palette-color-10);
	border-radius: 50%;
}

.ptm-filter-row__radio::after {
	content: "";
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background-color: var(--theme-palette-color-2);
	transform: scale(0);
	transition: transform 0.15s ease;
}

.ptm-filter-row__name {
	flex: 1;
	min-width: 0;
}

.ptm-filter-row__count {
	font-variant-numeric: tabular-nums;
}

/* Current category (desktop: green row). */
.ptm-filter-row[aria-current="page"],
.ptm-filter-row[aria-current="page"]:hover {
	background-color: var(--theme-palette-color-1);
}

.ptm-filter-row[aria-current="page"] .ptm-filter-row__name {
	font-weight: 600;
}

.ptm-filter-row[aria-current="page"] .ptm-filter-row__radio {
	border-color: var(--theme-palette-color-2);
}

.ptm-filter-row[aria-current="page"] .ptm-filter-row__radio::after {
	transform: scale(1);
}

.ptm-help-card {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 16px;
	padding: 20px;
	border-radius: 12px;
	background-color: var(--theme-palette-color-11);
}

.ptm-help-card__icon {
	width: 22px;
	height: 22px;
	margin: 1px;
}

.ptm-catalog .ptm-help-card__title {
	font-size: 24px;
	line-height: 1.2;
}

.ptm-catalog .ptm-help-card__text {
	font-size: 16px;
	line-height: 1.3;
	letter-spacing: 0.0014em;
	color: var(--theme-palette-color-9);
}

/* ------------------------------------------------------------------ */
/* Buttons (bt_primary = Blocksy .ct-button, bt_secondary below)        */
/* ------------------------------------------------------------------ */

.ptm-button-primary,
.ptm-button-secondary {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	white-space: nowrap;
}

.ptm-button-primary .ptm-icon--arrow-right,
.ptm-button-secondary .ptm-icon--arrow-right {
	width: 18px;
	height: 15px;
}

.ptm-button-secondary {
	min-height: 52px;
	padding: 14px 16px;
	border: 1px solid var(--theme-palette-color-10);
	border-radius: 999px;
	font-size: var(--theme-button-font-size);
	font-weight: var(--theme-button-font-weight);
	line-height: var(--theme-button-line-height);
	letter-spacing: var(--theme-button-letter-spacing);
	color: var(--theme-palette-color-2);
	text-decoration: none;
	transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.ptm-button-secondary:hover {
	border-color: var(--theme-palette-color-2);
	background-color: var(--theme-palette-color-2);
	color: var(--theme-palette-color-8);
}

/* ------------------------------------------------------------------ */
/* Spec rows (icon circle + label/value): product specs, project details */
/* ------------------------------------------------------------------ */

.ptm-product-specs__icon {
	display: grid;
	place-items: center;
	flex-shrink: 0;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background-color: var(--theme-palette-color-11);
	color: var(--theme-palette-color-2);
}

.ptm-product-specs__icon .ptm-icon {
	width: 24px;
	height: 24px;
}

.ptm-product-specs__text {
	display: flex;
	flex-direction: column;
	min-width: 0;
	line-height: 1.3;
	letter-spacing: 0.0014em;
}

.ptm-product-specs__label {
	font-size: 14px;
	font-weight: 600;
}

.ptm-product-specs__value {
	font-size: 16px;
}

/* ------------------------------------------------------------------ */
/* Results: toolbar, grid, count, pagination                            */
/* ------------------------------------------------------------------ */

.ptm-catalog__results {
	display: flex;
	flex-direction: column;
	gap: 28px;
	min-width: 0;
}

.ptm-filters-toggle {
	display: none;
}

.ptm-catalog__toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: 52px;
}

.ptm-catalog__count,
.ptm-catalog__showing {
	font-size: 16px;
	line-height: 1.3;
	letter-spacing: 0.0014em;
	color: var(--theme-palette-color-9);
}

.ptm-sort {
	margin: 0;
}

.ptm-sort__control {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 16px;
	border: 1px solid var(--theme-palette-color-6);
	border-radius: 999px;
	font-size: 16px;
	line-height: 1.3;
	cursor: pointer;
}

.ptm-sort__control:focus-within {
	border-color: var(--theme-palette-color-2);
}

.ptm-sort__label {
	color: var(--theme-palette-color-9);
	white-space: nowrap;
}

.ptm-catalog .ptm-sort__select {
	appearance: none;
	height: auto;
	min-height: 0;
	margin: 0;
	padding: 0 22px 0 0;
	margin-right: -22px;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	font: inherit;
	font-weight: 500;
	color: var(--theme-palette-color-2);
	cursor: pointer;
}

.ptm-catalog .ptm-sort__select:focus {
	outline: none;
}

.ptm-sort .ptm-icon--chevron-down {
	width: 10px;
	height: 6px;
	margin: 0 3px;
	pointer-events: none;
}

.ptm-product-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 48px 24px;
	margin: 0 0 20px;
	padding: 0;
	list-style: none;
}

.ptm-product-card {
	margin: 0;
}

.ptm-product-card__link {
	display: flex;
	flex-direction: column;
	gap: 16px;
	color: var(--theme-palette-color-2);
	text-decoration: none;
}

.ptm-product-card__link:hover {
	color: var(--theme-palette-color-2);
}

.ptm-product-card__media {
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 320 / 340;
	padding: 7.5%;
	overflow: hidden;
	border-radius: 12px;
	background-color: var(--theme-palette-color-11);
}

.ptm-product-card__image {
	width: 100%;
	height: 100%;
	object-fit: contain;
	/* Product photos have white backgrounds; multiply blends them into the plate. */
	mix-blend-mode: multiply;
	transition: transform 0.3s ease;
}

.ptm-product-card__link:hover .ptm-product-card__image {
	transform: scale(1.04);
}

.ptm-product-card__info {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 10px;
}

.ptm-chip {
	padding: 4px 12px;
	border-radius: 999px;
	background-color: var(--theme-palette-color-6);
	font-size: 14px;
	line-height: 1;
	letter-spacing: 0.009em;
}

.ptm-product-card__name {
	font-size: 26px;
	line-height: 25px;
	letter-spacing: -0.023em;
	color: var(--theme-palette-color-4);
}

.ptm-product-card__link:hover .ptm-product-card__name {
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 4px;
}

.ptm-product-card__description {
	font-size: 16px;
	line-height: 1.3;
	letter-spacing: 0.0014em;
	color: var(--theme-palette-color-9);
}

.ptm-product-card__specs {
	font-size: 14px;
	line-height: 1.2;
}

.ptm-catalog__showing {
	padding-top: 12px;
	text-align: center;
}

.ptm-pagination {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 32px 0 12px;
}

.ptm-pagination .page-numbers,
.ptm-pagination__prev,
.ptm-pagination__next {
	display: grid;
	place-items: center;
	width: 56px;
	height: 56px;
	border: 1px solid var(--theme-palette-color-10);
	border-radius: 50%;
	background-color: var(--theme-palette-color-8);
	font-size: 16px;
	font-weight: 500;
	color: var(--theme-palette-color-2);
	text-decoration: none;
	transition: background-color 0.15s ease, border-color 0.15s ease;
}

.ptm-pagination a.page-numbers:hover {
	border-color: var(--theme-palette-color-2);
	color: var(--theme-palette-color-2);
}

.ptm-pagination .page-numbers.current {
	border-color: var(--theme-palette-color-6);
	background-color: var(--theme-palette-color-6);
	font-weight: 600;
}

.ptm-pagination .page-numbers.dots {
	font-weight: 600;
}

.ptm-pagination__prev {
	border-color: var(--theme-palette-color-2);
}

.ptm-pagination__next {
	border-color: var(--theme-palette-color-2);
	background-color: var(--theme-palette-color-2);
	color: var(--theme-palette-color-1);
}

.ptm-pagination a.ptm-pagination__prev:hover {
	background-color: var(--theme-palette-color-11);
	color: var(--theme-palette-color-2);
}

.ptm-pagination a.ptm-pagination__next:hover {
	color: var(--theme-palette-color-8);
}

.ptm-pagination [aria-disabled="true"] {
	opacity: 0.35;
}

.ptm-pagination .ptm-icon {
	width: 16px;
	height: 11px;
}

.ptm-catalog__empty {
	padding: 48px 0;
	color: var(--theme-palette-color-9);
}

/* ------------------------------------------------------------------ */
/* Proposal callout                                                     */
/* ------------------------------------------------------------------ */

.ptm-proposal-callout {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding: 32px;
	border-radius: 20px;
	background-color: var(--theme-palette-color-11);
}

.ptm-proposal-callout__copy {
	display: flex;
	flex-direction: column;
	gap: 10px;
	max-width: 840px;
}

.ptm-catalog .ptm-proposal-callout__title {
	font-size: 30px;
	font-weight: 400;
	line-height: 1.2;
	letter-spacing: 0;
	color: var(--theme-palette-color-2);
}

.ptm-catalog .ptm-proposal-callout__text {
	font-size: 16px;
	line-height: 1.3;
	letter-spacing: 0.0014em;
	color: var(--theme-palette-color-9);
}

/* ------------------------------------------------------------------ */
/* Mobile filters sheet                                                 */
/* ------------------------------------------------------------------ */

.ptm-filters-sheet {
	inset: auto 0 0;
	width: 100%;
	max-width: none;
	max-height: 90dvh;
	margin: auto 0 0;
	padding: 0;
	border: 0;
	border-radius: 24px 24px 0 0;
	background-color: var(--theme-palette-color-8);
	color: var(--theme-palette-color-2);
	transition: transform 0.25s ease, overlay 0.25s allow-discrete, display 0.25s allow-discrete;
}

.ptm-filters-sheet:not([open]) {
	transform: translateY(100%);
}

@starting-style {
	.ptm-filters-sheet[open] {
		transform: translateY(100%);
	}
}

.ptm-filters-sheet::backdrop {
	background-color: color-mix(in srgb, var(--theme-palette-color-4) 50%, transparent);
}

html:has(.ptm-filters-sheet[open]) {
	overflow: hidden;
}

.ptm-filters-sheet__panel {
	display: flex;
	flex-direction: column;
	gap: 24px;
	margin: 0;
	padding: 12px 24px 32px;
}

.ptm-filters-sheet__handle {
	align-self: center;
	width: 48px;
	height: 4px;
	border-radius: 99px;
	background-color: var(--theme-palette-color-5);
}

.ptm-filters-sheet__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 40px;
}

.ptm-filters-sheet .ptm-filters-sheet__title {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 20px;
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: 0.0014em;
	color: var(--theme-palette-color-2);
}

.ptm-filters-sheet .ptm-icon--sliders {
	width: 15px;
	height: 14px;
	margin: 0 2px;
}

.ptm-filters-sheet .ptm-filters-sheet__close {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	min-height: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background-color: var(--theme-palette-color-11);
	color: var(--theme-palette-color-2);
	cursor: pointer;
}

.ptm-filters-sheet .ptm-icon--close {
	width: 13px;
	height: 13px;
}

.ptm-filter-list--sheet {
	gap: 12px;
}

.ptm-filter-row__input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.ptm-filter-list--sheet .ptm-filter-row__radio {
	border-color: var(--theme-palette-color-4);
}

.ptm-filter-list--sheet .ptm-filter-row:has(:checked) {
	background-color: var(--theme-palette-color-11);
}

.ptm-filter-list--sheet .ptm-filter-row:has(:checked) .ptm-filter-row__name {
	font-weight: 600;
}

.ptm-filter-list--sheet .ptm-filter-row:has(:checked) .ptm-filter-row__radio {
	border-color: var(--theme-palette-color-2);
}

.ptm-filter-list--sheet .ptm-filter-row:has(:checked) .ptm-filter-row__radio::after {
	transform: scale(1);
}

.ptm-filter-list--sheet .ptm-filter-row:has(:focus-visible) {
	outline: 2px solid var(--theme-palette-color-2);
	outline-offset: 2px;
}

.ptm-filters-sheet__apply {
	width: 100%;
}

/* ------------------------------------------------------------------ */
/* Tablet                                                               */
/* ------------------------------------------------------------------ */

@media (max-width: 999.98px) {
	.ptm-page-hero {
		align-items: center;
		height: 300px;
		padding-bottom: 0;
	}

	.ptm-catalog__layout {
		grid-template-columns: minmax(0, 1fr);
	}

	.ptm-catalog__sidebar {
		display: none;
	}

	.ptm-catalog__results {
		gap: 32px;
	}

	.ptm-filters-toggle {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 12px;
		width: 100%;
		min-height: 48px;
		padding: 12px 16px;
		border: 0;
		border-radius: 8px;
		background-color: var(--theme-palette-color-1);
		font: inherit;
		color: var(--theme-palette-color-2);
		cursor: pointer;
	}

	.ptm-filters-toggle__label {
		display: flex;
		align-items: center;
		gap: 8px;
		font-size: 16px;
		font-weight: 600;
		line-height: 1.3;
	}

	.ptm-filters-toggle .ptm-icon--sliders {
		width: 15px;
		height: 14px;
		margin: 0 2px;
	}

	.ptm-filters-toggle__current {
		font-size: 12px;
		font-weight: 600;
		line-height: 1.3;
	}

	.ptm-catalog__toolbar {
		flex-direction: column-reverse;
		align-items: stretch;
		gap: 32px;
	}

	.ptm-sort__select {
		flex: 1;
	}

	.ptm-product-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 32px 24px;
		margin-bottom: 0;
	}

	.ptm-catalog__showing {
		padding-top: 0;
	}

	.ptm-pagination {
		padding-top: 0;
	}
}

/* ------------------------------------------------------------------ */
/* Mobile                                                               */
/* ------------------------------------------------------------------ */

@media (max-width: 689.98px) {
	.ptm-page-hero {
		height: 220px;
		padding: 24px 20px;
	}

	.ptm-catalog {
		gap: 32px;
		padding-top: 0;
		padding-bottom: 40px;
	}

	.ptm-catalog__intro h2 {
		font-size: 32px;
	}

	.ptm-catalog__intro p {
		font-size: 16px;
		letter-spacing: 0.0014em;
	}

	.ptm-product-grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 24px;
	}

	.ptm-product-card__media {
		aspect-ratio: 353 / 240;
		padding: 10px;
	}

	.ptm-pagination {
		gap: 6px;
	}

	.ptm-pagination .page-numbers,
	.ptm-pagination__prev,
	.ptm-pagination__next {
		width: 44px;
		height: 44px;
	}

	.ptm-pagination .ptm-icon {
		width: 13px;
		height: 9px;
	}

	.ptm-proposal-callout {
		flex-direction: column;
		align-items: flex-start;
		gap: 20px;
		padding: 32px 24px;
	}

	.ptm-catalog .ptm-proposal-callout__title {
		font-size: 24px;
	}
}
