/**
 * Catálogo / categorías: layout alineado a la maqueta aprobada del 21 de julio de 2026.
 */

.ht-catalog-banner {
	position: relative;
	overflow: hidden;
	background: #ece5d8;
	padding: 52px 0 50px;
	text-align: center;
	isolation: isolate;
}

.ht-catalog-banner::before,
.ht-catalog-banner::after {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	width: 34%;
	background-repeat: no-repeat;
	background-size: contain;
	background-position: center;
	opacity: 0.72;
	pointer-events: none;
	z-index: -1;
}

.ht-catalog-banner::before {
	left: -2.5%;
	background-image: url("../images/catalog/banner-fish-left.png");
	background-position: left center;
}

.ht-catalog-banner::after {
	right: -1.5%;
	background-image: url("../images/catalog/banner-fish-right.png");
	background-position: right center;
}

.ht-catalog-banner__title {
	margin: 0 0 10px;
	font-family: var(--ht-font-ui);
	font-size: clamp(3.6rem, 3rem + 1.4vw, 4.7rem);
	font-weight: 600;
	letter-spacing: -0.08em;
	line-height: 0.96;
	color: #4d4137;
}

.ht-catalog-banner .ht-breadcrumbs {
	display: flex;
	justify-content: center;
}

.ht-catalog-banner .ht-breadcrumbs__list {
	justify-content: center;
	gap: 0;
	font-family: var(--ht-font-ui);
	font-size: 0.96rem;
	font-weight: 700;
	color: #c8a15f;
}

.ht-catalog-banner .ht-breadcrumbs__item {
	gap: 0;
}

.ht-catalog-banner .ht-breadcrumbs__item a,
.ht-catalog-banner .ht-breadcrumbs__item span {
	color: inherit;
}

.ht-catalog-banner .ht-breadcrumbs__sep {
	font-size: 0;
	margin: 0 0.32rem;
}

.ht-catalog-banner .ht-breadcrumbs__sep::before {
	content: ">";
	font-size: 0.96rem;
}

.ht-catalog-layout {
	display: grid;
	grid-template-columns: 262px minmax(0, 1fr);
	gap: 28px;
	padding-block: 54px 96px;
	align-items: start;
}

.ht-catalog-sidebar__title {
	margin: 0 0 18px;
	font-family: var(--ht-font-ui);
	font-size: 2rem;
	font-weight: 600;
	letter-spacing: -0.07em;
	color: var(--ht-color-primary-dark);
}

.ht-catalog-sidebar {
	position: sticky;
	top: 148px;
}

.ht-catalog-sidebar::after {
	content: "";
	display: block;
	width: 100%;
	height: 0;
}

.ht-catalog-sidebar > .ht-catalog-sidebar__group:first-of-type,
.ht-catalog-sidebar > .ht-catalog-sidebar__group:first-of-type:last-of-type {
	margin-top: 0;
}

.ht-catalog-sidebar nav,
.ht-catalog-sidebar {
	background: transparent;
}

.ht-catalog-sidebar {
	border-radius: 0;
	padding: 0;
}

.ht-catalog-sidebar__title + .ht-catalog-sidebar__group,
.ht-catalog-sidebar__title + details.ht-catalog-sidebar__group {
	margin-top: 0;
}

.ht-catalog-sidebar > details.ht-catalog-sidebar__group:first-of-type {
	border-top-left-radius: 22px;
	border-top-right-radius: 22px;
}

.ht-catalog-sidebar__group {
	margin: 0;
	padding: 0;
	border: 0;
	background: var(--ht-color-surface);
	box-shadow: 0 6px 18px rgba(169, 154, 132, 0.12);
}

.ht-catalog-sidebar__group + .ht-catalog-sidebar__group {
	box-shadow: 0 6px 18px rgba(169, 154, 132, 0.12);
}

.ht-catalog-sidebar__group:first-of-type {
	border-top-left-radius: 22px;
	border-top-right-radius: 22px;
}

.ht-catalog-sidebar__group:last-of-type {
	border-bottom-left-radius: 22px;
	border-bottom-right-radius: 22px;
}

.ht-catalog-sidebar__group-title {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 16px 18px;
	list-style: none;
	cursor: pointer;
	font-family: var(--ht-font-ui);
	font-size: 0.98rem;
	font-weight: 600;
	color: #6d6257;
}

.ht-catalog-sidebar__group-title::-webkit-details-marker {
	display: none;
}

.ht-catalog-sidebar__group-title a {
	color: inherit;
}

.ht-catalog-sidebar__chevron {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: #8b7d67;
}

.ht-catalog-sidebar__chevron svg {
	width: 16px;
	height: 16px;
	transition: transform var(--ht-transition-base);
}

.ht-catalog-sidebar__group[open] .ht-catalog-sidebar__chevron svg {
	transform: rotate(90deg);
}

.ht-catalog-sidebar__list {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin: 0;
	padding: 0 18px 18px;
}

.ht-catalog-sidebar__radio {
	display: flex;
	align-items: center;
	gap: 10px;
	font-family: var(--ht-font-ui);
	font-size: 0.96rem;
	font-weight: 400;
	color: #8f8377;
}

.ht-catalog-sidebar__radio:hover {
	color: #6d6257;
}

.ht-catalog-sidebar__dot {
	width: 15px;
	height: 15px;
	border-radius: 50%;
	border: 1.5px solid #cfc3b4;
	background: var(--ht-color-surface);
	flex-shrink: 0;
}

.ht-catalog-sidebar__radio.is-active {
	color: #8f8377;
	font-weight: 500;
}

.ht-catalog-sidebar__radio.is-active .ht-catalog-sidebar__dot {
	border-color: #c8a15f;
	background: radial-gradient(circle, #c8a15f 38%, transparent 44%);
}

.ht-catalog-content {
	min-width: 0;
}

.ht-toolbar {
	display: flex;
	flex-direction: column;
	gap: 14px;
	margin-bottom: 24px;
}

.ht-toolbar__top,
.ht-toolbar__meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
}

.ht-toolbar__meta {
	justify-content: flex-start;
}

.ht-toolbar__heading {
	margin: 0;
	font-family: var(--ht-font-ui);
	font-size: 2.28rem;
	font-weight: 500;
	letter-spacing: -0.07em;
	line-height: 1;
	color: #65574b;
}

.ht-sort {
	display: inline-flex;
	align-items: center;
	gap: 0;
	border-radius: 999px;
}

.ht-sort__label {
	display: inline-flex;
	align-items: center;
	height: 38px;
	padding: 0 16px;
	border-radius: 999px 0 0 999px;
	background: #c8a15f;
	font-family: var(--ht-font-ui);
	font-size: 0.97rem;
	font-weight: 700;
	color: var(--ht-white);
}

.ht-sort select {
	height: 38px;
	min-width: 196px;
	border: 1px solid #e7dfd2;
	border-left: 0;
	border-radius: 0 999px 999px 0;
	padding: 0 46px 0 16px;
	background: var(--ht-color-surface);
	font-family: var(--ht-font-ui);
	font-size: 0.95rem;
	color: #8c7b67;
}

.ht-results-count {
	margin: 0;
	font-family: var(--ht-font-ui);
	font-size: 0.92rem;
	font-weight: 400;
	color: #aaa095;
}

.ht-catalog-pagination {
	display: inline-flex;
	align-items: center;
	gap: 10px;
}

.ht-catalog-pagination--bottom {
	width: 100%;
	justify-content: flex-end;
	margin-top: 24px;
}

.ht-catalog-pagination__item {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: #f1ede4;
	font-family: var(--ht-font-ui);
	font-size: 0.95rem;
	font-weight: 600;
	color: #9c8d76;
	transition: background-color var(--ht-transition-fast), color var(--ht-transition-fast);
}

.ht-catalog-pagination__item:hover {
	background: #e5dccd;
	color: #7b6b58;
}

.ht-catalog-pagination__item.is-current {
	background: #c8a15f;
	color: var(--ht-white);
}

.ht-catalog-pagination__next svg {
	width: 16px;
	height: 16px;
}

.ht-catalog-pagination__next.is-disabled {
	pointer-events: none;
	opacity: 0.56;
}

.ht-product-grid--catalog-demo {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	column-gap: 18px;
	row-gap: 24px;
}

.ht-catalog-content .ht-product-card {
	padding: 11px;
	border: 0;
	border-radius: 30px;
	background: var(--ht-color-surface);
	box-shadow: 0 8px 16px rgba(177, 165, 148, 0.18);
}

.ht-catalog-content .ht-product-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 12px 22px rgba(177, 165, 148, 0.22);
}

.ht-catalog-content .ht-product-card__media {
	position: relative;
	border-radius: 22px;
	background: transparent;
	aspect-ratio: 184 / 148;
}

.ht-catalog-content .ht-product-card__media a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	padding: 8px;
}

.ht-catalog-content .ht-product-card__media img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	filter: drop-shadow(0 9px 10px rgba(49, 73, 37, 0.12));
}

.ht-catalog-content .ht-product-card__badges {
	top: 10px;
	left: 10px;
	right: auto;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.ht-catalog-content .ht-badge {
	height: 20px;
	padding: 0 9px;
	border-radius: 999px;
	font-family: var(--ht-font-ui);
	font-size: 0.66rem;
	font-weight: 700;
	box-shadow: none;
}

.ht-catalog-content .ht-badge--new {
	background: #376b31;
}

.ht-catalog-content .ht-badge--sale {
	background: #db4027;
}

.ht-catalog-content .ht-badge--out {
	background: #8e857b;
}

.ht-catalog-content .ht-product-card__body {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-top: 6px;
	padding: 14px 10px 10px;
	border-radius: 22px;
	background: #f5eee7;
	text-align: center;
}

.ht-catalog-content .ht-product-card__category {
	font-family: var(--ht-font-ui);
	font-size: 0.76rem;
	font-weight: 400;
	color: #aea49a;
	text-transform: none;
	letter-spacing: 0;
}

.ht-catalog-content .ht-product-card__title {
	min-height: 70px;
	margin: 0;
	font-family: var(--ht-font-ui);
	font-size: 0.915rem;
	font-weight: 500;
	line-height: 1.46;
	color: #7e7369;
}

.ht-catalog-content .ht-product-card__title a {
	color: inherit;
}

.ht-catalog-content .ht-product-card__status {
	display: none;
}

.ht-catalog-content .ht-product-card__actions {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: auto;
}

.ht-catalog-content .ht-product-card__actions form {
	flex: 1;
}

.ht-catalog-content .ht-product-card__actions .ht-btn {
	width: 100%;
	height: 34px;
	padding: 0 12px;
	border-radius: 999px;
	font-family: var(--ht-font-ui);
	font-size: 0.74rem;
	font-weight: 700;
}

.ht-catalog-content .ht-product-card__actions .ht-btn svg {
	width: 14px;
	height: 14px;
}

.ht-catalog-content .ht-product-card__favorite {
	width: 34px;
	height: 34px;
	border-color: #d1ad69;
	background: #c8a15f;
	color: var(--ht-white);
}

.ht-catalog-content .ht-product-card__favorite:hover {
	background: #bb9450;
	border-color: #bb9450;
}

.ht-catalog-content .ht-product-card__favorite.is-active {
	background: #bb9450;
	border-color: #bb9450;
}

.ht-catalog-content .ht-product-card.is-out-of-stock .ht-product-card__actions .ht-btn {
	background: #efebe4;
	color: #b3a898;
}

.ht-catalog-content .ht-product-card.is-out-of-stock .ht-product-card__actions .ht-btn svg {
	opacity: 0.65;
}

@media (max-width: 1180px) {
	.ht-catalog-banner::before,
	.ht-catalog-banner::after {
		width: 29%;
		opacity: 0.58;
	}

	.ht-catalog-layout {
		grid-template-columns: 240px minmax(0, 1fr);
		gap: 24px;
	}

	.ht-product-grid--catalog-demo {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 900px) {
	.ht-catalog-banner {
		padding: 40px 0 34px;
	}

	.ht-catalog-banner::before,
	.ht-catalog-banner::after {
		width: 200px;
		opacity: 0.44;
	}

	.ht-catalog-layout {
		grid-template-columns: 1fr;
		padding-block: 36px 72px;
	}

	.ht-catalog-sidebar {
		position: static;
		top: auto;
	}

	.ht-toolbar__top,
	.ht-toolbar__meta {
		flex-wrap: wrap;
	}

	.ht-toolbar__top {
		align-items: flex-start;
	}

	.ht-product-grid--catalog-demo {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 599px) {
	.ht-catalog-banner::before,
	.ht-catalog-banner::after {
		display: none;
	}

	.ht-catalog-banner__title {
		font-size: 2.8rem;
	}

	.ht-catalog-sidebar__title {
		font-size: 1.75rem;
	}

	.ht-toolbar__heading {
		font-size: 1.9rem;
	}

	.ht-sort {
		width: 100%;
	}

	.ht-sort__label {
		flex-shrink: 0;
	}

	.ht-sort select {
		min-width: 0;
		flex: 1;
	}

	.ht-catalog-pagination {
		gap: 8px;
	}

	.ht-catalog-pagination__item {
		width: 34px;
		height: 34px;
	}

	.ht-product-grid--catalog-demo {
		grid-template-columns: 1fr;
	}
}
