.yantas-catalog {
	display: grid;
	grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
	gap: 1.5rem;
	align-items: start;
	margin: 1.5rem 0;
	--yantas-catalog-sticky-top: 1rem;
}

.yantas-catalog__main {
	min-width: 0;
}

.yantas-catalog__placa {
	margin-bottom: 1.25rem;
}

.yantas-catalog__placa .yantas-placa-card {
	max-width: none;
}

.yantas-catalog__chip--vehiculo {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	max-width: 100%;
	padding: 0;
	background: transparent;
	border: 0;
	border-radius: 0;
	color: #64748b !important;
	font-size: 0.8rem;
	font-weight: 500;
	line-height: 1.35;
	text-transform: none;
}

.yantas-catalog__chip--vehiculo:hover,
.yantas-catalog__chip--vehiculo:focus {
	background: transparent;
	color: #e30613 !important;
}

.yantas-catalog__chip--vehiculo .yantas-catalog__chip-label {
	text-transform: none;
}

.yantas-catalog__chip--vehiculo .yantas-catalog__chip-x {
	color: #94a3b8;
	font-size: 1rem;
	line-height: 1;
}

.yantas-catalog__sidebar {
	background: #fff;
	border-radius: 16px;
	padding: 1rem 1.1rem;
	box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

@media (min-width: 993px) {
	.yantas-catalog__sidebar {
		position: sticky;
		top: var(--yantas-catalog-sticky-top, 1rem);
		max-height: calc(100vh - var(--yantas-catalog-sticky-top, 1rem) - 1rem);
		overflow-x: hidden;
		overflow-y: auto;
		overscroll-behavior: contain;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: thin;
		scrollbar-color: rgba(148, 163, 184, 0.28) transparent;
	}
}

.yantas-catalog__sidebar::-webkit-scrollbar,
.yantas-catalog__list--scroll::-webkit-scrollbar {
	width: 4px;
	height: 0;
}

.yantas-catalog__sidebar::-webkit-scrollbar-track,
.yantas-catalog__list--scroll::-webkit-scrollbar-track {
	background: transparent;
}

.yantas-catalog__sidebar::-webkit-scrollbar-thumb,
.yantas-catalog__list--scroll::-webkit-scrollbar-thumb {
	background: rgba(148, 163, 184, 0.22);
	border-radius: 999px;
}

.yantas-catalog__sidebar::-webkit-scrollbar-thumb:hover,
.yantas-catalog__list--scroll::-webkit-scrollbar-thumb:hover {
	background: rgba(100, 116, 139, 0.38);
}

.yantas-catalog__sidebar-head {
	display: flex;
	align-items: center;
	gap: 0.45rem;
	margin-bottom: 0.75rem;
	line-height: 1;
}

.yantas-catalog__sidebar-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 1.1rem;
	height: 1.1rem;
	color: #64748b;
}

.yantas-catalog__sidebar-icon svg {
	display: block;
	width: 100%;
	height: 100%;
}

.yantas-catalog__sidebar-title {
	margin: 0;
	padding: 0;
	font-size: 1.1rem;
	font-weight: 700;
	line-height: 1.1;
	color: #1f2937;
}

.yantas-catalog__sidebar-subtitle {
	margin: 0 0 0.55rem;
	font-size: 0.78rem;
	line-height: 1.35;
	color: #64748b;
}

.yantas-catalog__measure-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 0.38rem;
	margin-bottom: 0.85rem;
}

.yantas-catalog__measure-tag {
	display: inline-block;
	padding: 0.3rem 0.55rem;
	border: 1px solid #cbd5e1;
	border-radius: 6px;
	background: #fff;
	color: #334155 !important;
	font-size: 0.76rem;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none !important;
	transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.yantas-catalog__measure-tag:hover,
.yantas-catalog__measure-tag:focus {
	border-color: #e30613;
	color: #e30613 !important;
}

.yantas-catalog__measure-tag.is-active {
	border-color: #e30613;
	background: #fff5f5;
	color: #e30613 !important;
}

.yantas-catalog__active {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.55rem;
	margin-bottom: 1rem;
}

.yantas-catalog__chip {
	display: inline-flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.65rem;
	max-width: 100%;
	padding: 0.4rem 0.75rem 0.4rem 0.85rem;
	background: #e30613;
	color: #fff !important;
	border-radius: 999px;
	text-decoration: none !important;
	font-size: 0.82rem;
	font-weight: 700;
	line-height: 1.2;
	transition: background 0.2s ease;
}

.yantas-catalog__chip:hover,
.yantas-catalog__chip:focus {
	background: #c50511;
	color: #fff !important;
}

.yantas-catalog__chip-label {
	text-transform: lowercase;
}

.yantas-catalog__chip--marca {
	padding: 0.35rem 0.65rem 0.35rem 0.55rem;
}

.yantas-catalog__chip--marca:has(.yantas-catalog__chip-logo) {
	padding: 0;
	gap: 0.35rem;
	background: transparent;
	border-radius: 0;
}

.yantas-catalog__chip--marca:has(.yantas-catalog__chip-logo):hover,
.yantas-catalog__chip--marca:has(.yantas-catalog__chip-logo):focus {
	background: transparent;
}

.yantas-catalog__chip-logo {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 78px;
	height: 32px;
	padding: 2px 4px;
	background: #fff;
	border-radius: 4px;
	box-sizing: border-box;
	overflow: hidden;
	flex-shrink: 0;
}

.yantas-catalog__chip--marca .yantas-catalog__chip-logo {
	width: auto;
	max-width: 96px;
	height: auto;
	max-height: 36px;
	padding: 0;
	background: transparent;
	border-radius: 0;
}

.yantas-catalog__chip-logo img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	object-position: center;
}

.yantas-catalog__chip--marca .yantas-catalog__chip-logo img {
	width: auto;
	height: auto;
	max-width: 96px;
	max-height: 36px;
}

.yantas-catalog__chip-x {
	font-size: 1.15rem;
	line-height: 1;
	font-weight: 400;
	opacity: 0.95;
	flex-shrink: 0;
}

.yantas-catalog__chip--marca:has(.yantas-catalog__chip-logo) .yantas-catalog__chip-x {
	color: #64748b;
	opacity: 0.85;
}

.yantas-catalog__chip--marca:has(.yantas-catalog__chip-logo):hover .yantas-catalog__chip-x,
.yantas-catalog__chip--marca:has(.yantas-catalog__chip-logo):focus .yantas-catalog__chip-x {
	color: #e30613;
	opacity: 1;
}

.yantas-catalog__clear-all {
	font-size: 0.88rem;
	font-weight: 600;
	color: #475569;
	text-decoration: underline;
}

.yantas-catalog__clear-all:hover {
	color: #1f2937;
}

.yantas-catalog__group {
	border-top: 1px solid #eef2f7;
	padding-top: 0.75rem;
	margin-top: 0.75rem;
}

.yantas-catalog__group:first-of-type {
	border-top: 0;
	padding-top: 0;
	margin-top: 0;
}

.yantas-catalog__group > summary {
	cursor: pointer;
	font-weight: 700;
	color: #334155;
	list-style: none;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.yantas-catalog__group > summary::-webkit-details-marker {
	display: none;
}

.yantas-catalog__list {
	list-style: none;
	margin: 0.75rem 0 0;
	padding: 0;
}

.yantas-catalog__list--scroll {
	max-height: 360px;
	overflow-x: hidden;
	overflow-y: auto;
	scrollbar-width: thin;
	scrollbar-color: rgba(148, 163, 184, 0.28) transparent;
}

.yantas-catalog__list li + li {
	margin-top: 0.35rem;
}

.yantas-catalog__link,
.yantas-catalog__check {
	display: flex;
	align-items: center;
	gap: 0.55rem;
	min-width: 0;
	max-width: 100%;
	color: #475569;
	text-decoration: none !important;
	font-size: 0.95rem;
	transition: color 0.18s ease;
}

.yantas-catalog__link:hover,
.yantas-catalog__link:focus-visible,
.yantas-catalog__check:hover,
.yantas-catalog__check:focus-visible {
	color: #e11d48 !important;
	text-decoration: none !important;
	box-shadow: none !important;
}

.yantas-catalog__link.is-active,
.yantas-catalog__check.is-active,
.yantas-catalog__link--all.is-active {
	color: #e11d48;
	font-weight: 700;
}

.yantas-catalog__link.is-disabled {
	opacity: 0.65;
}

.yantas-catalog__link small {
	margin-left: 0.35rem;
	font-size: 0.75rem;
	color: #94a3b8;
}

.yantas-catalog__box {
	width: 16px;
	height: 16px;
	border: 2px solid #cbd5e1;
	border-radius: 4px;
	flex: 0 0 16px;
}

.yantas-catalog__check.is-active .yantas-catalog__box {
	background: #e11d48;
	border-color: #e11d48;
	box-shadow: inset 0 0 0 2px #fff;
}

.yantas-catalog__main {
	min-width: 0;
}

.yantas-catalog__toolbar {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
	margin-bottom: 1rem;
}

.yantas-catalog__sort select {
	min-width: 220px;
	padding: 0.55rem 0.75rem;
	border: 1px solid #dbe3ee;
	border-radius: 999px;
	background: #fff;
}

.yantas-catalog__count {
	margin: 0;
	color: #64748b;
	font-size: 0.95rem;
}

.yantas-catalog__measure-notice {
	margin: 0 0 1rem;
	padding: 0.75rem 1rem;
	background: #fef2f2;
	border: 1px solid #fecaca;
	border-radius: 10px;
	color: #991b1b;
	font-size: 0.92rem;
}

.yantas-catalog__measure-clear {
	margin-left: 0.75rem;
	color: #e11d48;
	font-weight: 600;
	text-decoration: none;
}

.yantas-catalog__measure-clear:hover {
	text-decoration: underline;
}

.yantas-catalog__grid {
	display: grid !important;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1rem;
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
}

.yantas-catalog__grid > li.product {
	width: 100% !important;
	max-width: none !important;
	margin: 0 !important;
}

.yantas-catalog__notice {
	padding: 2rem;
	text-align: center;
	color: #64748b;
	background: #fff;
	border-radius: 16px;
}

.yantas-catalog__pagination {
	margin-top: 1.5rem;
	display: flex;
	justify-content: center;
}

.yantas-catalog__pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 38px;
	height: 38px;
	margin: 0 0.2rem;
	border-radius: 999px;
	background: #eef2f7;
	color: #334155;
	text-decoration: none;
	transition: background-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.yantas-catalog__pagination a.page-numbers:hover,
.yantas-catalog__pagination a.page-numbers:focus-visible {
	background: #dbe3ee;
	color: #1f2937;
	transform: translateY(-1px);
}

.yantas-catalog__pagination .page-numbers.current {
	background: #334155;
	color: #fff;
}

.yantas-catalog__pagination ul {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.25rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

/* Indicador de categoría activa (solo móvil/tablet). */
.yantas-catalog__current-category {
	display: none;
	align-items: center;
	justify-content: space-between;
	gap: 0.55rem;
	width: 100%;
	margin: 0 0 0.55rem;
	padding: 0.8rem 1rem;
	box-sizing: border-box;
	color: #1f2937;
	font-size: 0.95rem;
	font-weight: 600;
	line-height: 1.35;
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
}

.yantas-catalog__current-category-dot {
	flex: 0 0 auto;
	width: 8px;
	height: 8px;
	margin-left: auto;
	border-radius: 50%;
	background: #e30613;
	box-shadow: 0 0 0 3px rgba(227, 6, 19, 0.12);
}

.yantas-catalog__current-category-text {
	display: flex;
	flex: 1 1 auto;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.35rem;
	min-width: 0;
}

.yantas-catalog__current-category-label {
	font-weight: 700;
	color: #1f2937;
}

.yantas-catalog__current-category-name {
	font-weight: 500;
	color: #334155;
}

/* Botón "Filtrar por": solo existe en móvil/tablet. */
.yantas-catalog__filters-toggle {
	display: none;
	align-items: center;
	gap: 0.55rem;
	width: 100%;
	padding: 0.8rem 1rem;
	color: #1f2937;
	font-size: 0.95rem;
	font-weight: 600;
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
	cursor: pointer;
}

.yantas-catalog__filters-toggle-icon {
	width: 18px;
	height: 18px;
	color: #e30613;
}

.yantas-catalog__filters-toggle-count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 20px;
	height: 20px;
	padding: 0 6px;
	color: #fff;
	font-size: 0.72rem;
	font-weight: 700;
	background: #e30613;
	border-radius: 999px;
}

.yantas-catalog__filters-toggle-chevron {
	width: 18px;
	height: 18px;
	margin-left: auto;
	color: #64748b;
	transition: transform 0.2s ease;
}

.yantas-catalog__filters-toggle[aria-expanded='true'] .yantas-catalog__filters-toggle-chevron {
	transform: rotate(180deg);
}

@media (max-width: 992px) {
	.yantas-catalog {
		grid-template-columns: 1fr;
	}

	.yantas-catalog__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.yantas-catalog__current-category {
		display: flex;
	}

	.yantas-catalog__filters-toggle {
		display: flex;
	}

	.yantas-catalog__sort,
	.yantas-catalog__count {
		display: none;
	}

	.yantas-catalog__toolbar {
		display: none;
	}

	/* Los filtros arrancan ocultos; se abren con el botón. */
	.yantas-catalog__sidebar {
		display: none;
	}

	.yantas-catalog__sidebar.is-open {
		display: block;
	}
}

@media (max-width: 640px) {
	.yantas-catalog__grid {
		grid-template-columns: 1fr;
		justify-items: center;
	}

	.yantas-catalog__grid > .llw-product-card {
		width: 100%;
		max-width: min(280px, 88vw);
	}
}
