/**
 * [tb_product_loop] — grid de tours estilo archivo Parchil.
 */

.tb-product-loop-wrap {
	width: 100%;
	max-width: 100%;
	margin-top: 0;
	padding-top: 0;
	overflow: visible;
}

.tb-product-loop-wrap--booting {
	opacity: 0;
	visibility: hidden;
}

.tb-product-loop-wrap.is-ready {
	opacity: 1;
	visibility: visible;
}

.tb-product-loop-wrap--loading .tb-product-loop {
	opacity: 0.5;
	pointer-events: none;
	transition: opacity 0.15s ease;
}

.tb-product-loop-wrap--loading .tb-product-loop__toolbar {
	pointer-events: none;
	opacity: 0.72;
}

.tb-product-loop-layout {
	display: block;
	width: 100%;
}

.tb-product-loop__main {
	min-width: 0;
}

/* —— Sidebar filtros (escritorio) —— */
.tb-product-loop__filters-sidebar {
	display: none !important;
}

@media (min-width: 1024px) {
	.tb-product-loop-layout:has(.tb-product-loop__filters-sidebar) {
		display: grid;
		grid-template-columns: minmax(220px, 260px) minmax(0, 1fr);
		gap: 24px;
		align-items: start;
	}

	.tb-product-loop-layout:has(.tb-product-loop__filters-sidebar) .tb-product-loop--cols-5,
	.tb-product-loop-layout:has(.tb-product-loop__filters-sidebar) .tb-product-loop--cols-6 {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.tb-product-loop-layout:has(.tb-product-loop__filters-sidebar) .tb-product-loop {
		gap: 28px 22px;
	}

	.tb-product-loop-layout:has(.tb-product-loop__filters-sidebar) .tb-product-loop__body {
		padding: 14px 14px 16px;
	}

	.tb-product-loop-layout:has(.tb-product-loop__filters-sidebar) .tb-product-loop__title {
		font-size: 15px;
		line-height: 1.4;
	}

	.tb-product-loop__filters-sidebar {
		display: block !important;
		align-self: start;
		padding: 18px 16px;
		border: 1px solid #e5e7eb;
		border-radius: 16px;
		background: #fff;
		box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
	}

	.tb-product-loop-wrap .tb-product-loop__toolbar-item--filter,
	.tb-product-loop-wrap .tb-product-loop__toolbar-item--category {
		display: none !important;
	}

	.tb-product-loop-layout:has(.tb-product-loop__filters-sidebar) .tb-product-loop__toolbar:not(.tb-product-loop__toolbar--has-map) {
		grid-template-columns: 1fr;
	}

	.tb-product-loop-layout:has(.tb-product-loop__filters-sidebar) .tb-product-loop__toolbar--has-map {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* —— Panel filtros móvil —— */
.tb-product-loop__filters-sheet {
	position: fixed;
	inset: 0;
	z-index: 100500;
	display: flex;
	align-items: flex-end;
	justify-content: center;
}

.tb-product-loop__filters-sheet[hidden] {
	display: none !important;
}

.tb-product-loop__filters-sheet .tb-product-loop__filters-sheet-backdrop {
	position: absolute;
	inset: 0;
	border: 0 !important;
	padding: 0;
	background: rgba(15, 23, 42, 0.45) !important;
	background-color: rgba(15, 23, 42, 0.45) !important;
	background-image: none !important;
	box-shadow: none !important;
	cursor: pointer;
}

.tb-product-loop__filters-sheet .tb-product-loop__filters-sheet-panel {
	position: relative;
	z-index: 1;
	width: 100%;
	max-height: min(92vh, 720px);
	display: flex;
	flex-direction: column;
	min-height: 0;
	border-radius: 16px 16px 0 0;
	background: #fff !important;
	background-color: #fff !important;
	box-shadow: 0 -8px 32px rgba(15, 23, 42, 0.16);
}

.tb-product-loop__filters-sheet .tb-product-loop__filters-sheet-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 14px 16px;
	border-bottom: 1px solid #eef2f7;
	background: #fff !important;
	background-color: #fff !important;
}

.tb-product-loop__filters-sheet .tb-product-loop__filters-sheet-title {
	margin: 0;
	font-size: 17px;
	font-weight: 600;
	color: #111827;
}

.tb-product-loop__filters-sheet .tb-product-loop__filters-sheet-close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	min-width: 36px;
	min-height: 36px;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 999px;
	background: #f3f4f6 !important;
	background-color: #f3f4f6 !important;
	background-image: none !important;
	box-shadow: none !important;
	color: #111827 !important;
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
}

.tb-product-loop__filters-sheet .tb-product-loop__filters-sheet-close:hover,
.tb-product-loop__filters-sheet .tb-product-loop__filters-sheet-close:focus-visible {
	background: #e5e7eb !important;
	background-color: #e5e7eb !important;
	color: #111827 !important;
}

.tb-product-loop__filters-sheet .tb-product-loop__filters-sheet-body {
	flex: 1 1 auto;
	min-height: 0;
	overflow-y: auto;
	padding: 16px;
	background: #fff !important;
	background-color: #fff !important;
	-webkit-overflow-scrolling: touch;
}

.tb-product-loop__filters-sheet .tb-product-loop__filters-sheet-footer {
	flex-shrink: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 12px 16px calc(16px + env(safe-area-inset-bottom, 0px));
	border-top: 1px solid #eef2f7;
	background: #fff !important;
	background-color: #fff !important;
}

@media (max-width: 767px) {
	.tb-product-loop__filters-sheet .tb-product-loop__filters-sheet-footer {
		padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
	}
}

.tb-product-loop__filters-sheet .tb-product-loop__filters-sheet-footer .tb-loop-filter__apply,
.tb-product-loop__filters-sheet .tb-product-loop__filters-sheet-footer .tb-loop-filter__clear {
	margin-top: 0;
}

body.tb-loop-filters-sheet-open {
	overflow: hidden;
}

body.tb-loop-categories-sheet-open {
	overflow: hidden;
}

body.tb-loop-filters-sheet-open .tb-product-loop-wrap .tb-product-loop__toolbar,
body.tb-loop-filters-sheet-open .tb-product-loop-wrap .tb-product-loop__toolbar.is-toolbar-floating,
body.tb-loop-categories-sheet-open .tb-product-loop-wrap .tb-product-loop__toolbar,
body.tb-loop-categories-sheet-open .tb-product-loop-wrap .tb-product-loop__toolbar.is-toolbar-floating {
	visibility: hidden;
	pointer-events: none;
}

body.tb-loop-filters-sheet-open .tb-destination-search,
body.tb-loop-filters-sheet-open .tb-destination-search__mobile-layer,
body.tb-loop-categories-sheet-open .tb-destination-search,
body.tb-loop-categories-sheet-open .tb-destination-search__mobile-layer {
	visibility: hidden !important;
	pointer-events: none !important;
}

@media (min-width: 1024px) {
	.tb-product-loop__filters-sheet {
		display: none !important;
	}
}

.tb-loop-filter + .tb-loop-filter {
	margin-top: 22px;
	padding-top: 22px;
	border-top: 1px solid #eef2f7;
}

.tb-loop-filter__title {
	margin: 0 0 12px;
	font-size: 15px;
	font-weight: 600;
	color: #111827;
}

.tb-loop-filter__range-dual {
	position: relative;
	height: 28px;
	margin-bottom: 10px;
}

.tb-loop-filter__range-track {
	position: absolute;
	top: 50%;
	left: 0;
	right: 0;
	height: 4px;
	margin-top: -2px;
	border-radius: 999px;
	background: #e5e7eb;
	pointer-events: none;
}

.tb-loop-filter__range-fill {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	width: 100%;
	border-radius: inherit;
	background: #0d9488;
}

.tb-loop-filter__range-input {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 28px;
	margin: 0;
	padding: 0;
	background: transparent;
	pointer-events: none;
	-webkit-appearance: none;
	appearance: none;
}

.tb-loop-filter__range-input::-webkit-slider-runnable-track {
	height: 4px;
	background: transparent;
}

.tb-loop-filter__range-input::-moz-range-track {
	height: 4px;
	background: transparent;
}

.tb-loop-filter__range-input::-webkit-slider-thumb {
	-webkit-appearance: none;
	width: 18px;
	height: 18px;
	margin-top: -7px;
	border: 2px solid #fff;
	border-radius: 50%;
	background: #0d9488;
	box-shadow: 0 1px 4px rgba(15, 23, 42, 0.2);
	pointer-events: auto;
	cursor: pointer;
}

.tb-loop-filter__range-input::-moz-range-thumb {
	width: 18px;
	height: 18px;
	border: 2px solid #fff;
	border-radius: 50%;
	background: #0d9488;
	box-shadow: 0 1px 4px rgba(15, 23, 42, 0.2);
	pointer-events: auto;
	cursor: pointer;
}

.tb-loop-filter__range-input--max {
	z-index: 2;
}

.tb-loop-filter__range-input--min {
	z-index: 1;
}

.tb-loop-filter__range-values {
	display: flex;
	align-items: flex-end;
	gap: 8px;
}

.tb-loop-filter__money {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.tb-loop-filter__money-label {
	font-size: 12px;
	font-weight: 500;
	color: #6b7280;
}

.tb-loop-filter__number {
	width: 100%;
	padding: 8px 10px;
	border: 1px solid #d1d5db;
	border-radius: 10px;
	font-size: 14px;
}

.tb-loop-filter__range-sep {
	color: #9ca3af;
}

.tb-loop-filter__pax-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 12px;
}

.tb-loop-filter__pax-label {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.tb-loop-filter__pax-label strong {
	font-size: 14px;
	font-weight: 600;
	color: #111827;
}

.tb-loop-filter__pax-label span {
	font-size: 12px;
	color: #6b7280;
}

.tb-loop-filter__pax-controls {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	flex-shrink: 0;
}

.tb-product-loop-wrap .tb-loop-filter__pax-btn,
.tb-product-loop__filters-sheet .tb-loop-filter__pax-btn {
	width: 32px;
	height: 32px;
	min-width: 32px;
	min-height: 32px;
	padding: 0 !important;
	border: 1px solid #d1d5db !important;
	border-radius: 999px !important;
	background: #fff !important;
	background-color: #fff !important;
	background-image: none !important;
	box-shadow: none !important;
	color: #111827 !important;
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
}

.tb-product-loop-wrap .tb-loop-filter__pax-btn:hover,
.tb-product-loop-wrap .tb-loop-filter__pax-btn:focus-visible,
.tb-product-loop__filters-sheet .tb-loop-filter__pax-btn:hover,
.tb-product-loop__filters-sheet .tb-loop-filter__pax-btn:focus-visible {
	background: #f3f4f6 !important;
	background-color: #f3f4f6 !important;
	color: #111827 !important;
}

.tb-loop-filter__pax-value {
	min-width: 1.5em;
	text-align: center;
	font-size: 15px;
	font-weight: 600;
}

.tb-product-loop-wrap .tb-loop-filter__apply,
.tb-product-loop-wrap .tb-loop-filter__clear,
.tb-product-loop__filters-sheet .tb-loop-filter__apply,
.tb-product-loop__filters-sheet .tb-loop-filter__clear {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	margin-top: 12px;
	padding: 10px 14px;
	border-radius: 999px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	box-shadow: none !important;
}

.tb-product-loop-wrap .tb-loop-filter__apply,
.tb-product-loop__filters-sheet .tb-loop-filter__apply {
	border: 1px solid #0d9488 !important;
	background: #0d9488 !important;
	background-color: #0d9488 !important;
	background-image: none !important;
	color: #fff !important;
}

.tb-product-loop-wrap .tb-loop-filter__apply:hover,
.tb-product-loop-wrap .tb-loop-filter__apply:focus-visible,
.tb-product-loop__filters-sheet .tb-loop-filter__apply:hover,
.tb-product-loop__filters-sheet .tb-loop-filter__apply:focus-visible {
	background: #0f766e !important;
	background-color: #0f766e !important;
	border-color: #0f766e !important;
	color: #fff !important;
}

.tb-product-loop-wrap .tb-loop-filter__clear,
.tb-product-loop__filters-sheet .tb-loop-filter__clear {
	margin-top: 18px;
	border: 1px solid #d1d5db !important;
	background: #fff !important;
	background-color: #fff !important;
	color: #374151 !important;
}

.tb-loop-filter__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.tb-product-loop-wrap .tb-loop-filter__chip,
.tb-product-loop__filters-sheet .tb-loop-filter__chip {
	padding: 8px 12px;
	border: 1px solid #d1d5db !important;
	border-radius: 999px;
	background: #fff !important;
	background-color: #fff !important;
	background-image: none !important;
	box-shadow: none !important;
	color: #374151 !important;
	font-size: 13px;
	cursor: pointer;
}

.tb-product-loop-wrap .tb-loop-filter__chip:hover,
.tb-product-loop-wrap .tb-loop-filter__chip:focus-visible,
.tb-product-loop__filters-sheet .tb-loop-filter__chip:hover,
.tb-product-loop__filters-sheet .tb-loop-filter__chip:focus-visible {
	background: #f9fafb !important;
	background-color: #f9fafb !important;
	color: #111827 !important;
}

.tb-product-loop-wrap .tb-loop-filter__chip.is-active,
.tb-product-loop__filters-sheet .tb-loop-filter__chip.is-active {
	border-color: #0d9488 !important;
	background: #ecfeff !important;
	background-color: #ecfeff !important;
	color: #0f766e !important;
	font-weight: 600;
}

.tb-loop-filter__checks {
	margin: 0;
	padding: 0;
	list-style: none;
}

.tb-loop-filter__checks li + li {
	margin-top: 8px;
}

.tb-loop-filter__check {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	font-size: 14px;
	color: #374151;
	cursor: pointer;
}

.tb-loop-filter__check input {
	margin-top: 2px;
	accent-color: #0d9488;
}

.tb-loop-filter__count {
	color: #9ca3af;
	font-size: 13px;
}

/* Evitar que Elementor recorte las tarjetas del loop */
.elementor-widget.tb-elementor-product-loop-widget > .elementor-widget-container,
.elementor-widget-shortcode:has(.tb-product-loop-wrap) > .elementor-widget-container {
	overflow: visible;
	max-width: 100%;
	padding-top: 0 !important;
	padding-bottom: 0 !important;
	margin-top: 0 !important;
	margin-bottom: 0 !important;
}

.elementor-element.tb-elementor-product-loop-widget {
	margin-block: 0 !important;
}

.e-con:has(.tb-elementor-product-loop-widget),
.e-con:has(.tb-product-loop-wrap) {
	--padding-top: 0px;
	--padding-bottom: 0px;
	--padding-block-start: 0px;
	--padding-block-end: 0px;
}

.elementor-section:has(.tb-elementor-product-loop-widget),
.elementor-section:has(.tb-product-loop-wrap) {
	padding-block: 0 !important;
}

/* Pegar toolbar al bloque superior (breadcrumb / título Elementor) */
.elementor-widget-shortcode:has(.tb-product-loop-wrap) > .elementor-widget-container,
.elementor-widget-text-editor:has(+ .elementor-element.tb-elementor-product-loop-widget) > .elementor-widget-container,
.elementor-widget-text-editor:has(+ .elementor-widget-shortcode .tb-product-loop-wrap) > .elementor-widget-container {
	padding-bottom: 0 !important;
	margin-bottom: 0 !important;
}

.elementor-widget-shortcode:has(.tb-product-loop-wrap) > .elementor-widget-container {
	padding-top: 0 !important;
	margin-top: 0 !important;
}

@media (min-width: 768px) {
	.elementor-widget-shortcode:has(.tb-product-loop-wrap) > .elementor-widget-container {
		margin-top: 0 !important;
	}
}

/* —— Toolbar Ordenar / Mapa / Filtrar —— */
.tb-product-loop-wrap .tb-product-loop__toolbar {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	align-items: stretch;
	margin: 0 0 16px;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	background: #fff !important;
	overflow: visible;
}

.tb-product-loop-wrap .tb-product-loop__toolbar--has-map {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tb-product-loop-wrap .tb-product-loop__toolbar--has-categories:not(.tb-product-loop__toolbar--has-map) {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tb-product-loop-wrap .tb-product-loop__toolbar--has-map.tb-product-loop__toolbar--has-categories {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.tb-product-loop-wrap .tb-product-loop__toolbar-item {
	position: relative;
	display: flex;
	flex-direction: column;
	min-height: 0;
	background: #fff !important;
}

.tb-product-loop-wrap .tb-product-loop__toolbar-item + .tb-product-loop__toolbar-item {
	border-left: 1px solid #e5e7eb;
}

.tb-product-loop-wrap .tb-product-loop__toolbar-btn {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 6px;
	width: 100%;
	min-height: 48px;
	padding: 8px 8px;
	border: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
	background-color: transparent !important;
	background-image: none !important;
	box-shadow: none !important;
	color: #6b7280 !important;
	font-size: 13px;
	font-weight: 500;
	line-height: 1.2;
	cursor: pointer;
	transition: color 0.2s ease, background 0.2s ease;
}

.tb-product-loop-wrap .tb-product-loop__toolbar-btn:hover,
.tb-product-loop-wrap .tb-product-loop__toolbar-btn[aria-expanded="true"],
.tb-product-loop-wrap a.tb-product-loop__toolbar-btn--link:hover,
.tb-product-loop-wrap a.tb-product-loop__toolbar-btn--link:focus-visible {
	color: #111827 !important;
	background: #f9fafb !important;
	background-color: #f9fafb !important;
}

.tb-product-loop-wrap a.tb-product-loop__toolbar-btn--link {
	text-decoration: none !important;
}

.tb-product-loop-wrap .tb-product-loop__toolbar-icon {
	flex-shrink: 0;
	color: #9ca3af;
}

.tb-product-loop-wrap .tb-product-loop__toolbar-menu {
	position: absolute;
	top: calc(100% + 6px);
	left: 0;
	z-index: 30;
	min-width: 180px;
	max-height: 280px;
	overflow-y: auto;
	padding: 6px;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	background: #fff !important;
	box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
}

.tb-product-loop-wrap .tb-product-loop__toolbar-menu[hidden] {
	display: none !important;
}

.tb-product-loop-wrap .tb-product-loop__toolbar-item--filter .tb-product-loop__toolbar-menu {
	right: 0;
	left: auto;
}

.tb-product-loop-wrap .tb-product-loop__toolbar-item--category .tb-product-loop__toolbar-menu {
	right: 0;
	left: auto;
	min-width: 220px;
	max-width: min(92vw, 320px);
	max-height: min(60vh, 400px);
	padding: 8px 10px;
}

.tb-product-loop-wrap .tb-product-loop__toolbar-menu--categories .tb-loop-filter--categories {
	margin: 0;
	padding: 0;
	border: 0;
}

.tb-product-loop-wrap .tb-product-loop__toolbar-menu--categories .tb-loop-filter__checks {
	margin: 0;
	padding: 0;
	list-style: none;
}

.tb-product-loop-wrap .tb-product-loop__toolbar-menu--categories .tb-loop-filter__check {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	padding: 8px 6px;
	font-size: 14px;
	line-height: 1.35;
	color: #374151;
	cursor: pointer;
}

.tb-product-loop-wrap .tb-product-loop__toolbar-menu--categories .tb-loop-filter__check input {
	margin-top: 2px;
}

@media (max-width: 1023px) {
	.tb-product-loop-wrap .tb-product-loop__toolbar-item--category .tb-product-loop__toolbar-menu--categories {
		display: none !important;
	}
}

.tb-product-loop__categories-sheet .tb-loop-filter--categories {
	margin: 0;
	padding: 0;
	border: 0;
}

.tb-product-loop__categories-sheet .tb-loop-filter__checks {
	margin: 0;
	padding: 0;
	list-style: none;
}

.tb-product-loop__categories-sheet .tb-loop-filter__check {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	padding: 12px 8px;
	font-size: 15px;
	line-height: 1.4;
	color: #374151;
	cursor: pointer;
}

.tb-product-loop__categories-sheet .tb-loop-filter__check input {
	width: 18px;
	height: 18px;
	margin-top: 2px;
	flex-shrink: 0;
}

.tb-product-loop-wrap .tb-product-loop__toolbar-btn span {
	display: block;
	max-width: 100%;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

@media (max-width: 767px) {
	.tb-product-loop-wrap--toolbar-floating {
		padding-bottom: calc(92px + env(safe-area-inset-bottom, 0px));
	}

	.tb-product-loop__toolbar-placeholder {
		display: none;
		width: 100%;
		pointer-events: none;
	}

	.tb-product-loop-wrap--toolbar-floating .tb-product-loop__toolbar-placeholder {
		display: block;
	}

	.tb-product-loop-wrap .tb-product-loop__toolbar {
		position: relative;
		top: auto;
		z-index: 40;
		width: 100%;
		margin: 0 0 16px;
		border: 1px solid rgba(15, 23, 42, 0.1) !important;
		border-radius: 12px;
		background: #fff !important;
		background-color: #fff !important;
		box-shadow:
			0 4px 20px rgba(15, 23, 42, 0.1),
			0 1px 4px rgba(15, 23, 42, 0.06);
		overflow: visible;
	}

	.tb-product-loop-wrap .tb-product-loop__toolbar.is-toolbar-floating {
		position: fixed;
		top: auto;
		left: 8px;
		right: 8px;
		bottom: calc(10px + env(safe-area-inset-bottom, 0px));
		z-index: 100040;
		width: auto;
		margin: 0;
		border-radius: 999px;
		box-shadow:
			0 10px 36px rgba(15, 23, 42, 0.22),
			0 2px 10px rgba(15, 23, 42, 0.1);
		transition:
			transform 0.28s ease,
			opacity 0.28s ease,
			visibility 0.28s ease;
	}

	.tb-product-loop-wrap .tb-product-loop__toolbar.is-toolbar-floating.is-toolbar-hidden {
		opacity: 0;
		visibility: hidden;
		pointer-events: none;
		transform: translateY(calc(100% + 20px));
	}

	.tb-product-loop-wrap .tb-product-loop__toolbar-item {
		overflow: visible;
	}

	.tb-product-loop-wrap .tb-product-loop__toolbar.is-toolbar-floating .tb-product-loop__toolbar-item:last-child .tb-product-loop__toolbar-btn {
		border-radius: 0 999px 999px 0;
	}

	.tb-product-loop-wrap .tb-product-loop__toolbar.is-toolbar-floating .tb-product-loop__toolbar-item:only-child .tb-product-loop__toolbar-btn {
		border-radius: 999px;
	}

	.tb-product-loop-wrap .tb-product-loop__toolbar-item--sort {
		display: none !important;
	}

	.tb-product-loop-wrap .tb-product-loop__toolbar--has-map.tb-product-loop__toolbar--has-categories {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.tb-product-loop-wrap .tb-product-loop__toolbar.is-toolbar-floating .tb-product-loop__toolbar-item--sort + .tb-product-loop__toolbar-item .tb-product-loop__toolbar-btn {
		border-radius: 999px 0 0 999px;
	}

	.tb-product-loop-wrap .tb-product-loop__toolbar-btn {
		min-height: 56px;
		padding: 10px 8px;
		gap: 6px;
		font-size: 12px;
	}

	.tb-product-loop-wrap .tb-product-loop__toolbar-icon {
		width: 22px;
		height: 22px;
	}

	.tb-product-loop-wrap .tb-product-loop__toolbar.is-toolbar-floating .tb-product-loop__toolbar-menu {
		top: auto;
		bottom: calc(100% + 8px);
		z-index: 100150;
		box-shadow: 0 -10px 28px rgba(15, 23, 42, 0.14);
	}

	.tb-product-loop-wrap .tb-product-loop__toolbar-menu.is-floating {
		bottom: auto;
	}

	.tb-product-loop-wrap .tb-product-loop__toolbar-btn span {
		font-size: 12px;
	}
}

.tb-product-loop-wrap .tb-product-loop__menu-option {
	display: block;
	width: 100%;
	padding: 10px 12px;
	border: 0 !important;
	border-radius: 8px;
	background: transparent !important;
	color: #374151 !important;
	font-size: 14px;
	text-align: left;
	cursor: pointer;
	box-shadow: none !important;
}

.tb-product-loop-wrap .tb-product-loop__menu-option:hover,
.tb-product-loop-wrap .tb-product-loop__menu-option.is-active {
	background: #f3f4f6 !important;
	color: #111827 !important;
	font-weight: 600;
}

@media (min-width: 1024px) {
	.tb-product-loop-wrap .tb-product-loop__toolbar {
		display: flex;
		width: 100%;
		margin: 0 0 20px;
	}

	.tb-product-loop-wrap .tb-product-loop__toolbar-item--filter,
	.tb-product-loop-wrap .tb-product-loop__toolbar-item--category {
		display: none !important;
	}

	.tb-product-loop-wrap .tb-product-loop__toolbar-item {
		flex: 1 1 0;
		min-width: 0;
	}

	.tb-product-loop-wrap .tb-product-loop__toolbar-btn {
		flex: 1 1 auto;
		flex-direction: row;
		justify-content: center;
		gap: 8px;
		min-height: 44px;
		min-width: 0;
		padding: 10px 18px;
		white-space: nowrap;
	}

	.tb-product-loop-wrap .tb-product-loop__toolbar-btn span {
		overflow: visible;
		text-overflow: clip;
	}
}

/* —— Grid —— */
.tb-product-loop {
	display: grid;
	gap: 28px 24px;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	overflow: visible;
}

.tb-product-loop--cols-1 { grid-template-columns: 1fr; }
.tb-product-loop--cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tb-product-loop--cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tb-product-loop--cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tb-product-loop--cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.tb-product-loop--cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }

@media (min-width: 768px) and (max-width: 1023px) {
	.tb-product-loop--cols-5,
	.tb-product-loop--cols-6 {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (min-width: 768px) {
	.tb-product-loop--cols-4 {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

@media (min-width: 1024px) {
	.tb-product-loop-layout .tb-product-loop--cols-4,
	.tb-product-loop--cols-4 {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}

	.tb-product-loop-layout .tb-product-loop--cols-5,
	.tb-product-loop--cols-5 {
		grid-template-columns: repeat(5, minmax(0, 1fr));
	}

	.tb-product-loop-layout .tb-product-loop--cols-6,
	.tb-product-loop--cols-6 {
		grid-template-columns: repeat(6, minmax(0, 1fr));
	}
}

/* —— Card —— */
.tb-product-loop__item {
	position: relative;
	display: flex;
	flex-direction: column;
	min-width: 0;
	width: 100%;
	background: #fff;
	border-radius: 16px;
	overflow: visible;
	box-shadow: 0 2px 10px rgba(15, 23, 42, 0.07);
	transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.tb-product-loop__item:hover {
	box-shadow: 0 8px 22px rgba(15, 23, 42, 0.1);
	transform: translateY(-2px);
}

.tb-product-loop__link {
	position: absolute;
	inset: 0;
	z-index: 1;
	display: block;
	border-radius: inherit;
	text-indent: -9999px;
	overflow: hidden;
}

/* —— Media / gallery —— */
.tb-product-loop__media {
	position: relative;
	flex-shrink: 0;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	border-radius: 16px 16px 0 0;
	background: #eef2f7;
}

@media (max-width: 767px) {
	.tb-product-loop__media {
		aspect-ratio: 3 / 2;
	}
}

.tb-product-loop__slides,
.tb-product-loop__slide {
	width: 100%;
	height: 100%;
}

.tb-product-loop__slide {
	position: absolute;
	inset: 0;
}

.tb-product-loop__slide[hidden] {
	display: none;
}

.tb-product-loop__slide img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.35s ease;
}

.tb-product-loop__item:hover .tb-product-loop__slide:not([hidden]) img {
	transform: scale(1.03);
}

.tb-product-loop-wrap .tb-product-loop__gallery-nav {
	position: absolute;
	top: 50%;
	z-index: 4;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	min-width: 24px;
	min-height: 24px;
	margin-top: -12px;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
	background-color: transparent !important;
	background-image: none !important;
	box-shadow: none !important;
	color: #fff !important;
	filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.45));
	cursor: pointer;
	pointer-events: auto;
	opacity: 0.92;
	transition: opacity 0.2s ease, transform 0.2s ease;
	appearance: none;
	-webkit-appearance: none;
}

.tb-product-loop-wrap .tb-product-loop__gallery-nav svg {
	width: 18px;
	height: 18px;
}

.tb-product-loop-wrap .tb-product-loop__gallery-nav--prev { left: 4px; }
.tb-product-loop-wrap .tb-product-loop__gallery-nav--next { right: 4px; }

.tb-product-loop-wrap .tb-product-loop__item:hover .tb-product-loop__gallery-nav,
.tb-product-loop-wrap .tb-product-loop__gallery-nav:focus-visible {
	opacity: 1;
}

.tb-product-loop-wrap .tb-product-loop__gallery-nav:hover {
	background: transparent !important;
	background-color: transparent !important;
	color: #fff !important;
	transform: scale(1.08);
}

/* —— Chips sobre imagen —— */
.tb-product-loop__media-chips {
	position: absolute;
	right: 6px;
	bottom: 6px;
	left: 6px;
	z-index: 3;
	display: flex;
	flex-wrap: nowrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 4px;
	pointer-events: none;
}

.tb-product-loop__chip {
	display: inline-flex;
	align-items: center;
	gap: 3px;
	flex: 0 0 auto;
	max-width: none;
	padding: 4px 8px;
	border-radius: 999px;
	background: rgba(17, 24, 39, 0.78);
	color: #fff;
	font-size: 11px;
	font-weight: 400;
	line-height: 1.15;
	white-space: nowrap;
}

.tb-product-loop__chip--duration {
	flex-shrink: 1;
	min-width: 0;
}

.tb-product-loop__chip-icon {
	flex-shrink: 0;
	width: 13px;
	height: 13px;
	opacity: 0.92;
}

.tb-product-loop__badge {
	position: absolute;
	top: 10px;
	left: 10px;
	z-index: 2;
	max-width: calc(100% - 56px);
	padding: 5px 10px;
	border-radius: 999px;
	color: #fff;
	font-size: 11px;
	font-weight: 400;
	line-height: 1.2;
	pointer-events: none;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.tb-product-loop__badge--featured { background: #1e3a8a; }
.tb-product-loop__badge--new { background: #0f766e; }
.tb-product-loop__badge--hot { background: #b91c1c; }
.tb-product-loop__badge--skip { background: #334155; }

.tb-product-loop__wishlist {
	position: absolute;
	top: 8px;
	right: 8px;
	z-index: 5;
	width: 32px;
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.96);
	box-shadow: 0 2px 8px rgba(15, 23, 42, 0.12);
	pointer-events: auto;
}

.tb-product-loop__wishlist .yith-wcwl-add-to-wishlist {
	margin: 0;
}

.tb-product-loop__wishlist .yith-wcwl-add-button a,
.tb-product-loop__wishlist .yith-wcwl-wishlistaddedbrowse a,
.tb-product-loop__wishlist .yith-wcwl-wishlistexistsbrowse a {
	width: 32px;
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	box-shadow: none;
}

/* —— Body —— */
.tb-product-loop__body {
	position: relative;
	z-index: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
	min-width: 0;
	padding: 12px 12px 14px;
	flex: 1 1 auto;
	overflow: visible;
}

.tb-product-loop__title {
	margin: 0;
	font-size: 14px;
	line-height: 1.35;
	font-weight: 400;
	color: #0f172a;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* —— Rating —— */
.tb-product-loop__rating {
	line-height: 1;
}

.tb-product-loop__rating-row {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	max-width: 100%;
}

.tb-product-loop__stars-inner {
	display: inline-flex;
	gap: 1px;
	flex-shrink: 0;
}

.tb-product-loop__star {
	font-size: 13px;
	line-height: 1;
	color: #d1d5db;
}

.tb-product-loop__star.is-full {
	color: #facc15;
}

.tb-product-loop__star.is-partial {
	position: relative;
	color: #d1d5db;
}

.tb-product-loop__star.is-partial::before {
	content: '★';
	position: absolute;
	left: 0;
	top: 0;
	width: var(--tb-star-fill, 50%);
	overflow: hidden;
	color: #facc15;
}

.tb-product-loop__rating-value {
	font-size: 12px;
	font-weight: 400;
	color: #64748b;
	line-height: 1;
	white-space: nowrap;
}

/* —— Location —— */
.tb-product-loop__location {
	display: flex;
	align-items: center;
	gap: 4px;
	min-width: 0;
	margin: 0;
	font-size: 11px;
	line-height: 1.25;
	color: #0d9488;
	font-weight: 400;
}

.tb-product-loop__location span {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.tb-product-loop__location-icon {
	flex-shrink: 0;
	width: 12px;
	height: 12px;
	color: #0d9488;
}

/* —— Price —— */
.tb-product-loop__price {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 4px;
	margin-top: 2px;
	padding-top: 0;
}

.tb-product-loop__price-label {
	font-size: 11px;
	color: #94a3b8;
	line-height: 1.2;
}

.tb-product-loop__price-row {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 2px 5px;
	width: 100%;
	min-width: 0;
	overflow: visible;
}

.tb-product-loop__price-main {
	display: inline-flex;
	align-items: baseline;
	flex: 0 1 auto;
	gap: 4px;
	min-width: 0;
	max-width: 100%;
}

.tb-product-loop__price-currency {
	font-size: 12px;
	font-weight: 400;
	color: #0f172a;
	line-height: 1;
	letter-spacing: 0.02em;
	text-transform: uppercase;
}

.tb-product-loop__price-amount {
	font-size: clamp(16px, 4.2vw, 22px);
	font-weight: 400;
	color: #0f172a;
	line-height: 1;
	letter-spacing: -0.02em;
}

.tb-product-loop__price-regular {
	display: inline-flex;
	align-items: baseline;
	gap: 3px;
	width: 100%;
	font-size: 12px;
	color: #94a3b8;
	text-decoration: line-through;
	line-height: 1.2;
}

.tb-product-loop__price-regular .tb-product-loop__price-currency,
.tb-product-loop__price-regular .tb-product-loop__price-amount {
	font-size: inherit;
	font-weight: 400;
	color: inherit;
	text-decoration: line-through;
}

.tb-product-loop__price-unit {
	flex: 1 1 auto;
	min-width: 0;
	font-size: 11px;
	color: #94a3b8;
	line-height: 1.2;
}

.tb-product-loop__empty {
	margin: 0;
	padding: 24px 0;
	color: #6b7280;
}

.tb-product-loop__sentinel {
	width: 100%;
	height: 4px;
	margin-top: 8px;
	pointer-events: none;
}

.tb-product-loop__load-more-wrap {
	display: flex;
	justify-content: center;
	margin-top: 32px;
}

.tb-product-loop__load-more {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 180px;
	padding: 12px 28px;
	border: 1px solid #d1d5db;
	border-radius: 999px;
	background: #fff;
	color: #111827;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.tb-product-loop__load-more:hover:not(:disabled) {
	background: #f9fafb;
	border-color: #9ca3af;
}

.tb-product-loop__load-more:disabled {
	opacity: 0.72;
	cursor: wait;
}

@media (max-width: 767px) {
	.elementor-widget-shortcode:has(.tb-product-loop-wrap) > .elementor-widget-container {
		margin-top: 0 !important;
	}

	.tb-product-loop-wrap .tb-product-loop__toolbar-btn {
		min-height: 52px;
		font-size: 11px;
		gap: 5px;
		padding: 10px 6px;
	}

	.tb-product-loop-wrap .tb-product-loop__toolbar-icon {
		width: 18px;
		height: 18px;
	}

	.tb-product-loop {
		gap: 18px 10px;
	}

	.tb-product-loop--cols-2,
	.tb-product-loop--cols-3,
	.tb-product-loop--cols-4,
	.tb-product-loop--cols-5,
	.tb-product-loop--cols-6 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.tb-product-loop__item {
		border-radius: 12px;
		box-shadow: 0 2px 10px rgba(15, 23, 42, 0.07);
	}

	.tb-product-loop__media {
		border-radius: 12px 12px 0 0;
	}

	.tb-product-loop__item:hover {
		transform: none;
	}

	.tb-product-loop__body {
		padding: 10px 8px 12px;
		gap: 6px;
	}

	.tb-product-loop__title {
		font-size: 12.5px;
		line-height: 1.28;
		-webkit-line-clamp: 3;
		line-clamp: 3;
	}

	.tb-product-loop__star {
		font-size: 12px;
	}

	.tb-product-loop__rating-value {
		font-size: 11px;
	}

	.tb-product-loop__location {
		font-size: 11px;
	}

	.tb-product-loop__price-label {
		font-size: 10px;
	}

	.tb-product-loop__price-currency {
		font-size: 11px;
	}

	.tb-product-loop__price-amount {
		font-size: clamp(15px, 4.8vw, 18px);
	}

	.tb-product-loop__price-unit {
		font-size: 10px;
		flex-basis: auto;
	}

	.tb-product-loop__chip {
		font-size: 10px;
		padding: 3px 7px;
		gap: 2px;
	}

	.tb-product-loop__chip-icon {
		width: 12px;
		height: 12px;
	}

	.tb-product-loop__media-chips {
		right: 5px;
		bottom: 5px;
		left: 5px;
		gap: 4px;
	}

	.tb-product-loop-wrap .tb-product-loop__gallery-nav {
		opacity: 0.92;
		width: 20px;
		height: 20px;
		min-width: 20px;
		min-height: 20px;
		margin-top: -10px;
	}

	.tb-product-loop-wrap .tb-product-loop__gallery-nav svg {
		width: 16px;
		height: 16px;
	}

	.tb-product-loop-wrap .tb-product-loop__gallery-nav--prev { left: 2px; }
	.tb-product-loop-wrap .tb-product-loop__gallery-nav--next { right: 2px; }
}
