/**
 * Loja e categorias de produto — composição editorial inspirada no demo
 * Fashion Store do La Comète. Todo o escopo fica sob .ldc-product-catalog.
 */

.ldc-product-catalog {
	--ldc-catalog-ink: #2e2e2d;
	--ldc-catalog-muted: #77736e;
	--ldc-catalog-line: #e2ddd6;
	--ldc-catalog-paper: #fff;
	--ldc-catalog-canvas: #f8f5f0;
}

/* Hero da loja/categoria */
.ldc-product-catalog .ldc-catalog-title {
	position: relative;
	height: 320px !important;
	background-repeat: no-repeat;
	background-position: center;
	background-size: cover;
	overflow: hidden;
}

.ldc-product-catalog .ldc-catalog-title::before {
	position: absolute;
	inset: 0;
	z-index: 1;
	content: '';
	background: rgba(248, 245, 240, 0.56);
}

.ldc-product-catalog .ldc-catalog-title .edgtf-title-wrapper {
	position: relative;
	z-index: 2;
	height: 320px !important;
}

.ldc-product-catalog .ldc-catalog-title .edgtf-title-inner,
.ldc-product-catalog .ldc-catalog-title .edgtf-grid {
	height: 100%;
}

.ldc-product-catalog .ldc-catalog-title .edgtf-grid {
	display: flex;
	align-items: center;
	justify-content: center;
}

.ldc-product-catalog .ldc-catalog-title .edgtf-page-title {
	margin: 0;
	font-size: clamp(42px, 4vw, 66px);
	line-height: 1.05;
	font-weight: 400;
	text-align: center;
	color: var(--ldc-catalog-ink);
}

/* Área principal e barra de resultados */
.ldc-product-catalog .edgtf-content,
.ldc-product-catalog .edgtf-content .edgtf-container {
	background: var(--ldc-catalog-canvas);
}

.ldc-product-catalog .edgtf-content .edgtf-container-inner {
	padding-top: 92px;
	padding-bottom: 92px;
}

.ldc-product-catalog .edgtf-page-content-holder,
.ldc-product-catalog .edgtf-sidebar-holder {
	min-width: 0;
}

.ldc-product-catalog .woocommerce-result-count,
.ldc-product-catalog .woocommerce-ordering {
	width: 50%;
	margin-bottom: 42px;
}

.ldc-product-catalog .woocommerce-result-count {
	font-size: 18px;
	line-height: 58px;
	color: var(--ldc-catalog-muted);
}

.ldc-product-catalog .woocommerce-ordering .select2,
.ldc-product-catalog .woocommerce-ordering .orderby {
	min-width: 285px;
	background: transparent;
}

.ldc-product-catalog .woocommerce-ordering .select2-container .select2-selection--single,
.ldc-product-catalog .woocommerce-ordering select.orderby {
	height: 58px;
	border-color: #8e8982;
	border-radius: 8px;
}

/* Grade editorial: 3 / 2 / 1 colunas */
.ldc-product-catalog .edgtf-pl-main-holder > ul.products {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 34px 30px;
	width: 100%;
	margin: 0;
}

.ldc-product-catalog .edgtf-pl-main-holder > ul.products > li.product {
	position: relative;
	float: none;
	clear: none !important;
	display: flex;
	flex-direction: column;
	width: 100% !important;
	min-width: 0;
	margin: 0;
	padding: 0;
	overflow: hidden;
	text-align: left;
	background: var(--ldc-catalog-paper);
	border: 1px solid var(--ldc-catalog-line);
	border-radius: 12px;
	box-shadow: 0 6px 20px rgba(46, 46, 45, 0.03);
	transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.ldc-product-catalog .edgtf-pl-main-holder > ul.products > li.product:hover {
	transform: translateY(-4px);
	border-color: #d6d0c8;
	box-shadow: 0 18px 42px rgba(46, 46, 45, 0.1);
}

.ldc-product-catalog ul.products > li.product .edgtf-pl-inner {
	display: block;
	margin: -1px -1px 0;
	overflow: hidden;
	background: #f1eeea;
	border-radius: 12px 12px 0 0;
}

.ldc-product-catalog ul.products > li.product .edgtf-pl-image {
	display: block;
	aspect-ratio: 4 / 5;
	background: #f1eeea;
}

.ldc-product-catalog ul.products > li.product .edgtf-pl-image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	transform: none !important;
	transition: none !important;
}

/* Overlay com uma única ação: ir ao detalhe do produto. */
.ldc-product-catalog ul.products > li.product .edgtf-pl-inner .edgtf-pl-text {
	padding: 18px;
	background: rgba(20, 20, 19, 0.24);
	transition: opacity 0.24s ease;
}

.ldc-product-catalog ul.products > li.product .edgtf-pl-text-wrapper {
	position: absolute;
	top: auto;
	right: 0;
	bottom: 0;
	left: 0;
}

.ldc-product-catalog ul.products > li.product .button.ldc-catalog-view-product {
	position: relative;
	z-index: 5;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 56px;
	margin: 0;
	padding: 0 20px;
	font-family: Montserrat, sans-serif;
	font-size: 11px;
	line-height: 1;
	font-weight: 500;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: #fff;
	background: rgba(16, 16, 15, 0.92);
	border: 1px solid rgba(255, 255, 255, 0.18);
	border-radius: 6px;
	box-sizing: border-box;
}

.ldc-product-catalog ul.products > li.product .button.ldc-catalog-view-product:hover,
.ldc-product-catalog ul.products > li.product .button.ldc-catalog-view-product:focus-visible {
	color: var(--ldc-catalog-ink);
	background: #fff;
	border-color: #fff;
}

.ldc-product-catalog ul.products > li.product .ldc-catalog-card-content {
	display: grid;
	flex: 1 1 auto;
	grid-template-columns: minmax(0, 1fr) 44px;
	grid-template-areas:
		'title title'
		'price action';
	align-content: start;
	align-items: end;
	gap: 14px 16px;
	min-height: 126px;
	padding: 22px 22px 20px;
	box-sizing: border-box;
}

.ldc-product-catalog ul.products > li.product .edgtf-product-list-title {
	grid-area: title;
	display: -webkit-box;
	min-height: 2.4em;
	margin: 0;
	overflow: hidden;
	font-size: 21px;
	line-height: 1.2;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.ldc-product-catalog ul.products > li.product .edgtf-product-list-title a {
	color: var(--ldc-catalog-ink);
}

.ldc-product-catalog ul.products > li.product .price {
	grid-area: price;
	align-self: center;
	min-width: 0;
	min-height: 1.35em;
	margin: 0;
	font-size: 16px;
	line-height: 1.35;
	color: var(--ldc-catalog-muted);
}

/* Acesso ao detalhe no lugar da antiga ação de wishlist. */
.ldc-product-catalog ul.products > li.product .ldc-catalog-product-link {
	grid-area: action;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	margin: 0;
	padding: 0;
	color: var(--ldc-catalog-ink);
	border: 1px solid var(--ldc-catalog-line);
	border-radius: 50%;
	background: #fff;
	box-sizing: border-box;
	transition: color 0.22s ease, background-color 0.22s ease, border-color 0.22s ease;
}

.ldc-product-catalog ul.products > li.product .ldc-catalog-product-link svg {
	width: 22px;
	height: 22px;
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 1.7;
}

.ldc-product-catalog ul.products > li.product .ldc-catalog-product-link:hover,
.ldc-product-catalog ul.products > li.product .ldc-catalog-product-link:focus-visible {
	border-color: var(--ldc-catalog-ink);
	color: #fff;
	background: var(--ldc-catalog-ink);
	outline: none;
}

.ldc-product-catalog ul.products > li.product .edgtf-onsale,
.ldc-product-catalog ul.products > li.product .edgtf-new-product,
.ldc-product-catalog ul.products > li.product .edgtf-sold {
	top: 18px;
	right: auto;
	left: 18px;
	min-width: 0;
	padding: 7px 13px;
	font-family: Montserrat, sans-serif;
	font-size: 10px;
	line-height: 1.4;
	letter-spacing: 0.12em;
	color: var(--ldc-catalog-ink);
	background: rgba(248, 245, 240, 0.94);
	border-radius: 999px;
}

/* Sidebar: navegação e filtros */
.ldc-product-catalog .edgtf-sidebar {
	font-size: 16px;
	color: #5e5a55;
}

.ldc-product-catalog .edgtf-sidebar .widget {
	margin-bottom: 34px;
}

.ldc-product-catalog .edgtf-sidebar > .widget:not(#block-11),
.ldc-product-catalog .edgtf-sidebar > .edgtf-social-icon-widget-holder {
	display: none;
}

.ldc-product-catalog .edgtf-sidebar h6,
.ldc-product-catalog .edgtf-sidebar .wp-block-heading {
	margin: 0 0 18px !important;
	font-family: Montserrat, sans-serif;
	font-size: 11px;
	line-height: 1.5;
	font-weight: 600;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: #8b857d;
}

.ldc-product-catalog .ldc-category-nav {
	margin-bottom: 36px;
}

.ldc-product-catalog .edgtf-sidebar .wp-block-shortcode {
	margin: 0;
}

.ldc-product-catalog .ldc-category-nav__list,
.ldc-product-catalog .ldc-category-nav__children {
	margin: 0;
	padding: 0;
	list-style: none;
}

.ldc-product-catalog .ldc-category-nav__children {
	padding: 5px 0 3px 18px;
}

.ldc-product-catalog .ldc-category-nav__children[hidden] {
	display: none;
}

.ldc-product-catalog .ldc-category-nav__item {
	margin: 0;
}

.ldc-product-catalog .ldc-category-nav__row {
	display: flex;
	align-items: center;
	gap: 8px;
	min-height: 39px;
}

.ldc-product-catalog .ldc-category-nav__link {
	position: relative;
	display: inline-block;
	flex: 1 1 auto;
	width: fit-content;
	padding: 4px 0;
	line-height: 1.42;
	color: #4b4844;
}

.ldc-product-catalog .ldc-category-nav__link::after {
	position: absolute;
	right: 0;
	bottom: 2px;
	left: 0;
	height: 1px;
	content: '';
	background: currentColor;
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.35s ease;
}

.ldc-product-catalog .ldc-category-nav__link:hover,
.ldc-product-catalog .ldc-category-nav__link:focus-visible,
.ldc-product-catalog .ldc-category-nav__item.is-current > .ldc-category-nav__row > .ldc-category-nav__link,
.ldc-product-catalog .ldc-category-nav__item.is-ancestor > .ldc-category-nav__row > .ldc-category-nav__link {
	color: var(--ldc-catalog-ink);
}

.ldc-product-catalog .ldc-category-nav__link:hover::after,
.ldc-product-catalog .ldc-category-nav__link:focus-visible::after,
.ldc-product-catalog .ldc-category-nav__item.is-current > .ldc-category-nav__row > .ldc-category-nav__link::after {
	transform: scaleX(1);
}

.ldc-product-catalog .ldc-category-nav__item.is-current > .ldc-category-nav__row > .ldc-category-nav__link {
	font-weight: 600;
}

.ldc-product-catalog .ldc-category-nav__toggle {
	position: relative;
	flex: 0 0 34px;
	width: 34px;
	height: 34px;
	margin: 0;
	padding: 0;
	color: var(--ldc-catalog-ink);
	background: transparent;
	border: 0;
	border-radius: 50%;
	cursor: pointer;
}

.ldc-product-catalog .ldc-category-nav__toggle:hover,
.ldc-product-catalog .ldc-category-nav__toggle:focus-visible {
	background: #eee9e2;
	outline: none;
}

.ldc-product-catalog .ldc-category-nav__arrow {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 7px;
	height: 7px;
	border-right: 1px solid currentColor;
	border-bottom: 1px solid currentColor;
	transform: translate(-65%, -50%) rotate(-45deg);
	transition: transform 0.22s ease;
}

.ldc-product-catalog .ldc-category-nav__toggle[aria-expanded='true'] .ldc-category-nav__arrow {
	transform: translate(-50%, -70%) rotate(45deg);
}

.ldc-product-catalog .edgtf-sidebar .wc-block-product-filter-chips__item {
	border-color: #c9c4bd;
	border-radius: 999px;
	background: transparent;
	color: #625e59;
}

.ldc-product-catalog .edgtf-sidebar .wc-block-product-filter-chips__item:hover,
.ldc-product-catalog .edgtf-sidebar .wc-block-product-filter-chips__item[aria-checked='true'] {
	border-color: var(--ldc-catalog-ink);
	background: var(--ldc-catalog-ink);
	color: #fff;
}

.ldc-product-catalog .edgtf-sidebar input[type='range'],
.ldc-product-catalog .edgtf-sidebar .wc-block-components-price-slider__range-input {
	accent-color: var(--ldc-catalog-ink);
}

/* Mantem Caracteristicas compacto; o botao nativo continua revelando tudo. */
.ldc-product-catalog .wc-block-product-filter-checkbox-list.ldc-characteristics-filter:not(.is-ldc-expanded)
	.wc-block-product-filter-checkbox-list__items
	> .wc-block-product-filter-checkbox-list__item:nth-child(n + 8):not(:has(input:checked)) {
	display: none;
}

.ldc-product-catalog .wc-block-product-filter-checkbox-list__show-more-button {
	position: relative;
	margin-top: 12px;
	padding: 0 0 3px;
	font-family: Montserrat, sans-serif;
	font-size: 10px;
	font-weight: 500;
	letter-spacing: 0.12em;
	text-decoration: none;
	text-transform: uppercase;
	color: var(--ldc-catalog-ink);
	background: transparent;
	border: 0;
	cursor: pointer;
}

.ldc-product-catalog .wc-block-product-filter-checkbox-list__show-more-button::after {
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	height: 1px;
	content: '';
	background: currentColor;
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.25s ease;
}

.ldc-product-catalog .wc-block-product-filter-checkbox-list__show-more-button:hover::after,
.ldc-product-catalog .wc-block-product-filter-checkbox-list__show-more-button:focus-visible::after {
	transform: scaleX(1);
}

@media (hover: none) {
	.ldc-product-catalog ul.products > li.product .edgtf-pl-inner .edgtf-pl-text {
		opacity: 1;
		background: transparent;
	}

	.ldc-product-catalog ul.products > li.product .button.ldc-catalog-view-product {
		background: rgba(16, 16, 15, 0.92);
	}
}

@media only screen and (min-width: 1025px) {
	.ldc-product-catalog .edgtf-sidebar {
		position: sticky;
		top: 120px;
	}
}

@media only screen and (max-width: 1024px) {
	.ldc-product-catalog .ldc-catalog-title,
	.ldc-product-catalog .ldc-catalog-title .edgtf-title-wrapper {
		height: 240px !important;
	}

	.ldc-product-catalog .edgtf-content .edgtf-container-inner {
		padding-top: 64px;
	}

	.ldc-product-catalog .edgtf-content .edgtf-container-inner > .edgtf-grid-row {
		display: flex;
		align-items: flex-start;
	}

	.ldc-product-catalog .edgtf-page-content-holder {
		left: auto;
		order: 2;
		float: none;
		width: 72%;
	}

	.ldc-product-catalog .edgtf-sidebar-holder {
		left: auto;
		order: 1;
		float: none;
		width: 28%;
	}

	.ldc-product-catalog .edgtf-pl-main-holder > ul.products {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 28px 22px;
	}

	.ldc-product-catalog ul.products > li.product .edgtf-product-list-title {
		font-size: 20px;
	}
}

@media only screen and (max-width: 768px) {
	.ldc-product-catalog .edgtf-content .edgtf-container-inner > .edgtf-grid-row {
		flex-direction: column;
	}

	.ldc-product-catalog .edgtf-page-content-holder,
	.ldc-product-catalog .edgtf-sidebar-holder {
		width: 100%;
	}

	.ldc-product-catalog .edgtf-sidebar-holder {
		margin-bottom: 20px;
	}

	.ldc-product-catalog .edgtf-sidebar {
		padding: 0;
		overflow: hidden;
		background: #fff;
		border: 1px solid var(--ldc-catalog-line);
		border-radius: 10px;
	}

	.ldc-product-catalog .edgtf-sidebar #block-11,
	.ldc-product-catalog .edgtf-sidebar #block-11.widget {
		margin-bottom: 0;
	}

	.ldc-product-catalog .edgtf-sidebar > .wc-block-product-filters {
		display: block;
		width: 100%;
	}

	.ldc-product-catalog .edgtf-sidebar .wc-block-product-filters__open-overlay {
		width: 100% !important;
		min-height: 56px;
		padding: 14px 18px;
		box-sizing: border-box;
	}
}

@media only screen and (max-width: 680px) {
	.ldc-product-catalog .ldc-catalog-title,
	.ldc-product-catalog .ldc-catalog-title .edgtf-title-wrapper {
		height: 180px !important;
	}

	.ldc-product-catalog .ldc-catalog-title .edgtf-page-title {
		font-size: 38px;
	}

	.ldc-product-catalog .edgtf-content .edgtf-container-inner {
		width: calc(100% - 32px);
		padding-top: 28px !important;
		padding-bottom: 58px !important;
	}

	.ldc-product-catalog .woocommerce-result-count,
	.ldc-product-catalog .woocommerce-ordering {
		display: block;
		float: none;
		width: 100%;
	}

	.ldc-product-catalog .woocommerce-result-count {
		margin-bottom: 10px;
		font-size: 15px;
		line-height: 1.5;
	}

	.ldc-product-catalog .woocommerce-ordering {
		margin-bottom: 18px;
	}

	.ldc-product-catalog .woocommerce-ordering .select2,
	.ldc-product-catalog .woocommerce-ordering .orderby {
		width: 100% !important;
		min-width: 0;
	}

	.ldc-product-catalog .edgtf-pl-main-holder > ul.products {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 18px 12px;
	}

	.ldc-product-catalog .edgtf-pl-main-holder > ul.products > li.product {
		margin-bottom: 0 !important;
	}

	.ldc-product-catalog ul.products > li.product .edgtf-product-list-title {
		min-height: 2.35em;
		font-size: 16px;
		line-height: 1.18;
	}

	.ldc-product-catalog ul.products > li.product .ldc-catalog-card-content {
		grid-template-columns: minmax(0, 1fr) 34px;
		gap: 9px 8px;
		min-height: 108px;
		padding: 13px 12px 12px;
	}

	.ldc-product-catalog ul.products > li.product .price {
		font-size: 13px;
		line-height: 1.25;
	}

	.ldc-product-catalog ul.products > li.product .ldc-catalog-product-link {
		width: 34px;
		height: 34px;
	}

	.ldc-product-catalog ul.products > li.product .ldc-catalog-product-link svg {
		width: 17px;
		height: 17px;
	}

	.ldc-product-catalog ul.products > li.product .edgtf-pl-inner .edgtf-pl-text {
		padding: 9px;
	}

	.ldc-product-catalog ul.products > li.product .button.ldc-catalog-view-product {
		height: 40px;
		padding: 0 8px;
		font-size: 9px;
		letter-spacing: 0.13em;
	}

}

/* Preview do campo administrativo */
.ldc-category-banner-preview img {
	display: block;
	width: min(420px, 100%);
	height: auto;
	margin: 8px 0 12px;
}
