/* Catálogo: paleta oscura de origen (breadcrumb, facets, drawer, cards). */

body.tdl-catalog #main-container,
body.woocommerce.archive #main-container {
	min-height: unset !important;
	height: auto !important;
}
body.tdl-catalog #main-container .site-main,
body.woocommerce.archive #main-container .site-main,
body.tdl-catalog #main.site-main {
	flex-grow: 0 !important;
	min-height: 0 !important;
}
body.tdl-catalog [data-vertical-spacing*="bottom"],
body.woocommerce.archive [data-vertical-spacing*="bottom"] {
	padding-bottom: 8px !important;
}
body.tdl-catalog #main > .ct-container,
body.tdl-catalog #main > .ct-container-full,
body.woocommerce.archive #main > .ct-container {
	padding-top: 36px !important;
}

body.tdl-catalog #main,
body.tdl-catalog .ct-container,
body.woocommerce.archive #main {
	box-sizing: border-box;
}

@media (max-width: 999px) {
	body.tdl-catalog .ct-container,
	body.woocommerce.archive .ct-container {
		padding-left: max(16px, env(safe-area-inset-left, 0px)) !important;
		padding-right: max(16px, env(safe-area-inset-right, 0px)) !important;
	}
}

@media (min-width: 1000px) {
	body.tdl-catalog .ct-container,
	body.tdl-catalog #main > .ct-container,
	body.tdl-catalog #main > .ct-container-full,
	body.woocommerce.archive .ct-container {
		width: calc(100% - 80px) !important;
		max-width: 1140px !important;
		padding-left: 0 !important;
		padding-right: 0 !important;
		margin-left: auto;
		margin-right: auto;
		box-sizing: border-box;
	}
	body.tdl-catalog #sidebar,
	body.tdl-catalog #sidebar.ct-hidden-sm,
	body.tdl-catalog #sidebar.ct-hidden-md {
		display: block !important;
		position: relative !important;
		transform: none !important;
		visibility: visible !important;
		pointer-events: auto !important;
		width: 260px;
		max-width: 280px;
		flex: 0 0 260px;
		align-self: flex-start;
		padding-top: 0;
	}
	.tdl-filter-btn {
		display: none !important;
	}
}

body.tdl-catalog .ct-breadcrumbs,
body.woocommerce.archive .ct-breadcrumbs,
body.tdl-catalog .shop-sort-row {
	display: none !important;
}
body.tdl-catalog .woo-listing-top .woocommerce-result-count,
body.tdl-catalog .woo-listing-top .ct-sort-icon {
	display: none !important;
}
body.tdl-catalog .woo-listing-top {
	display: none !important;
}

.tdl-cat-head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	justify-content: space-between;
	gap: 10px 16px;
	margin: 0 0 10px;
}
.tdl-cat-head__text {
	min-width: 0;
	flex: 1 1 auto;
}
.tdl-cat-bc {
	font-size: 13px;
	color: #e8e8e8;
	margin: 0 0 6px;
	line-height: 1.4;
}
.tdl-cat-bc a {
	color: #e8e8e8;
	text-decoration: none;
}
.tdl-cat-bc a:hover {
	color: #f59a57;
}
.tdl-bc-sep {
	margin: 0 4px;
	color: #8a8a8a;
}
.tdl-bc-current {
	color: #f5f5f5;
}
.tdl-cat-h1 {
	margin: 0 0 6px;
	font-size: 28px;
	font-weight: 800;
	line-height: 1.15;
	color: #ffffff;
	letter-spacing: 0.01em;
}
.tdl-cat-count {
	margin: 4px 0 0;
	font-size: 13px;
	color: #c4c4c4;
}

body.tdl-catalog #sidebar .widget {
	display: none !important;
}

.tdl-facets {
	margin: 0 0 16px;
}
.tdl-facet-search {
	position: relative;
	display: block;
	margin: 0 0 22px;
}
.tdl-facet-search input[type="search"] {
	display: block;
	width: 100%;
	height: 40px;
	padding: 0 40px 0 2px;
	border: 0;
	border-bottom: 1px solid #3a3a3a;
	border-radius: 0;
	font-size: 14px;
	font-weight: 400;
	background: transparent;
	color: #f2f2f2;
	box-shadow: none;
	outline: none;
	-webkit-appearance: none;
}
.tdl-facet-search input[type="search"]::placeholder {
	color: #8a8a8a;
	font-weight: 400;
}
.tdl-facet-search input[type="search"]:focus {
	border-bottom-color: #f59a57;
}
.tdl-facet-search input[type="search"]::-webkit-search-decoration,
.tdl-facet-search input[type="search"]::-webkit-search-cancel-button {
	-webkit-appearance: none;
}
.tdl-facet-search button {
	position: absolute;
	right: 0;
	top: 0;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: #cfcfcf;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
}
.tdl-facet-search button:hover {
	color: #f59a57;
}
.tdl-facet {
	margin: 0 0 18px;
}
.tdl-facet__title {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #f59a57;
	margin: 0 0 10px;
}
.tdl-facet__cats {
	list-style: none;
	margin: 0;
	padding: 0;
}
.tdl-facet__cats li {
	margin: 0;
	padding: 4px 0;
	font-size: 14px;
	line-height: 1.35;
}
.tdl-facet__cats a {
	color: #e8e8e8;
	text-decoration: none;
}
.tdl-facet__cats a:hover,
.tdl-facet__cats a.is-on {
	color: #f59a57;
}
.tdl-facet__cats span {
	color: #9a9a9a;
	font-size: 12px;
}
.tdl-facet__colors {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.tdl-color-chip {
	width: 22px;
	height: 22px;
	border-radius: 50%;
	border: 1px solid rgba(255, 255, 255, 0.35);
	box-sizing: border-box;
	display: inline-block;
	background-size: cover;
	background-position: center;
	text-decoration: none;
	overflow: hidden;
}
.tdl-color-chip.is-on {
	box-shadow: 0 0 0 2px #111, 0 0 0 4px #f59a57;
	border-color: #f59a57;
}

.tdl-filter-btn {
	display: none;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin: 0;
	padding: 10px 0;
	border: 0;
	background: transparent;
	color: #f4f4f4;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	line-height: 1;
	cursor: pointer;
	box-shadow: none;
}
.tdl-filter-btn__icon {
	display: block;
	flex: 0 0 auto;
}
.tdl-filter-overlay {
	display: none;
}
.tdl-filter-close {
	display: none;
}

body.tdl-catalog ul.products,
body.tdl-catalog [data-products],
body.woocommerce.archive ul.products {
	display: grid !important;
	grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	--shop-columns: repeat(2, minmax(0, 1fr)) !important;
	gap: 16px 12px !important;
	margin: 0 !important;
	padding: 0 !important;
	list-style: none;
}
body.tdl-catalog ul.products > li.product,
body.woocommerce.archive ul.products > li.product {
	width: auto !important;
	max-width: none !important;
	margin: 0 !important;
	float: none !important;
}

@media (min-width: 700px) {
	body.tdl-catalog ul.products,
	body.tdl-catalog [data-products],
	body.woocommerce.archive ul.products {
		grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
		--shop-columns: repeat(4, minmax(0, 1fr)) !important;
		gap: 20px 16px !important;
	}
}
@media (min-width: 1100px) {
	body.tdl-catalog ul.products,
	body.tdl-catalog [data-products],
	body.woocommerce.archive ul.products {
		grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
		--shop-columns: repeat(5, minmax(0, 1fr)) !important;
		gap: 22px 18px !important;
	}
}

body.tdl-catalog .product .ct-media-container,
body.tdl-catalog .product figure {
	aspect-ratio: 1 / 1;
	background-color: #161616;
	background-image: none;
	background-size: 200% 100%;
	animation: none;
	overflow: hidden;
}
body.tdl-catalog .product .ct-media-container img,
body.tdl-catalog .product figure img {
	object-fit: contain;
	object-position: center;
	background: transparent;
	padding: 6%;
	box-sizing: border-box;
}
@keyframes tdl-img-skel {
	0% { background-position: 100% 0; }
	100% { background-position: -100% 0; }
}

body.tdl-catalog .woocommerce-loop-product__title,
body.tdl-catalog .product h2,
body.tdl-catalog .product .ct-woo-card-title,
body.tdl-catalog [data-products] .woocommerce-loop-product__title {
	font-size: 13px !important;
	line-height: 1.3 !important;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
	min-height: calc(1.3em * 3);
}

body.tdl-catalog .woocommerce-result-count,
body.tdl-catalog .woocommerce-pagination,
body.tdl-catalog .ct-pagination {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	margin: 0 !important;
	padding: 0 !important;
}

.tdl-infinite-sent {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	margin: 12px 0 8px;
	font-size: 13px;
	font-weight: 600;
	color: #9a9a9a;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}
.tdl-infinite-sent.is-end {
	color: #b0b0b0;
	text-transform: none;
	letter-spacing: 0;
}

@media (max-width: 999.98px) {
	.tdl-cat-head {
		flex-direction: column;
		flex-wrap: nowrap;
		align-items: center;
		justify-content: flex-start;
		text-align: center;
		gap: 4px;
		margin: 0 0 8px;
	}
	.tdl-cat-head__text {
		width: 100%;
	}
	.tdl-cat-h1 {
		font-size: 32px;
	}
	.tdl-cat-bc {
		margin: 0 0 8px;
	}
	.tdl-cat-count {
		display: none;
	}
	.tdl-filter-btn {
		display: inline-flex !important;
		align-self: center;
	}
	body.tdl-catalog .woo-listing-top {
		display: flex !important;
		justify-content: center;
		align-items: center;
		margin: 0 0 18px;
		padding: 0;
	}
	body.tdl-catalog .woocommerce-ordering {
		display: block !important;
		width: 100%;
		max-width: 280px;
		margin: 0;
	}
	body.tdl-catalog .woocommerce-ordering select.orderby {
		width: 100%;
		height: 48px;
		padding: 0 36px 0 12px;
		border: 1px solid #3a3a3a;
		border-radius: 2px;
		background-color: #1c1c1c;
		background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23cfcfcf' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
		background-repeat: no-repeat;
		background-position: right 12px center;
		color: #e8e8e8;
		font-size: 15px;
		appearance: none;
		-webkit-appearance: none;
	}
	body.tdl-has-filters #sidebar,
	body.tdl-has-filters #sidebar.ct-hidden-sm,
	body.tdl-has-filters #sidebar.ct-hidden-md {
		display: block !important;
		position: fixed;
		z-index: 120;
		top: 0;
		left: 0;
		width: min(320px, 86vw);
		height: 100%;
		margin: 0;
		padding: 56px 16px 24px;
		background: #1a1a1a;
		box-shadow: 8px 0 24px rgba(0, 0, 0, 0.45);
		overflow: auto;
		transform: translateX(-105%);
		transition: transform 0.22s ease, visibility 0.22s ease;
		visibility: hidden;
		pointer-events: none;
	}
	body.tdl-has-filters.tdl-filters-open #sidebar,
	body.tdl-has-filters.tdl-filters-open #sidebar.ct-hidden-sm,
	body.tdl-has-filters.tdl-filters-open #sidebar.ct-hidden-md {
		transform: none !important;
		visibility: visible;
		pointer-events: auto;
	}
	body.tdl-filters-open {
		overflow: hidden;
	}
	body.tdl-filters-open #main-container {
		overflow: visible !important;
	}
	body.tdl-filters-open .tdl-filter-overlay {
		display: block;
		position: fixed;
		inset: 0;
		z-index: 119;
		background: rgba(0, 0, 0, 0.4);
	}
	.tdl-filter-close {
		display: flex;
		position: absolute;
		top: 8px;
		right: 8px;
		align-items: center;
		justify-content: center;
		width: 36px;
		height: 36px;
		padding: 0;
		border: 0;
		background: transparent;
		color: #cfcfcf;
		font-size: inherit;
		font-weight: 400;
		letter-spacing: 0;
		text-transform: none;
		border-radius: 0;
		cursor: pointer;
		box-shadow: none;
	}
	.tdl-filter-close:hover {
		color: #f59a57;
	}
}

body.single-product .ct-container {
	padding-left: max(16px, env(safe-area-inset-left, 0px));
	padding-right: max(16px, env(safe-area-inset-right, 0px));
	box-sizing: border-box;
}
@media (min-width: 900px) {
	body.single-product .ct-container {
		padding-left: 24px;
		padding-right: 24px;
	}
}
