/**
 * Bloque HSA Shop (PrestaShop) en el front.
 */

.hsa-shop-block {
	margin-top: 1.6rem;
	padding-top: 0;
	border: none;
	max-width: 100%;
	box-sizing: border-box;
}

.hsa-shop-block__admin-note {
	font-size: 0.85rem;
	color: #b45309;
	margin: 0;
}

.hsa-shop-block__head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 0.75rem 1rem;
	margin-bottom: 0.9rem;
}

.hsa-shop-block__head-main {
	flex: 1 1 auto;
	min-width: 0;
}

.hsa-shop-block__title {
	margin: 0 0 0.35rem;
	font-size: var(--hsa-shop-title-size, 28px);
	font-weight: var(--hsa-shop-title-weight, 800);
	color: var(--hsa-shop-title-color, #0f172a);
	font-family: var(--hsa-shop-title-font, inherit);
	line-height: 1.2;
}

.hsa-shop-block__subtitle {
	margin: 0;
	font-size: var(--hsa-shop-subtitle-size, 16px);
	font-weight: var(--hsa-shop-subtitle-weight, 500);
	color: var(--hsa-shop-subtitle-color, #64748b);
	font-family: var(--hsa-shop-subtitle-font, inherit);
	line-height: 1.35;
}

.hsa-shop-block__head-main .hsa-shop-block__title + .hsa-shop-block__subtitle {
	margin-top: 0.2rem;
}

.hsa-shop-block__all {
	flex: 0 0 auto;
	align-self: center;
	margin: 0;
	padding: 0;
	font-size: var(--hsa-shop-link-size, 18px);
	font-weight: var(--hsa-shop-link-weight, 600);
	font-family: var(--hsa-shop-link-font, inherit);
	color: var(--hsa-shop-link-color, #0b5a4a);
	text-decoration: none;
	white-space: nowrap;
}

.hsa-shop-block__all:hover,
.hsa-shop-block__all:focus-visible {
	text-decoration: underline;
}

.hsa-shop-block__viewport {
	position: relative;
	max-width: 100%;
}

.hsa-shop-block__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	gap: 0.75rem;
}

.hsa-shop-block--grid .hsa-shop-block__list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr));
	flex-wrap: unset;
	overflow: visible;
}

.hsa-shop-block__carousel-bleed {
	width: 100vw;
	max-width: 100vw;
	position: relative;
	left: 50%;
	margin-left: -50vw;
	margin-right: -50vw;
	padding-left: var(--hsa-space, 1rem);
	padding-right: var(--hsa-space, 1rem);
	box-sizing: border-box;
}

.hsa-shop-block__carousel-shell {
	max-width: 100%;
}

.hsa-shop-block__carousel-viewport {
	overflow-x: auto;
	overflow-y: hidden;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	max-width: 100%;
	overscroll-behavior-x: contain;
	touch-action: pan-x;
	border: none;
	outline: none;
	box-shadow: none;
	padding-bottom: 0.5rem;
	margin-bottom: 0;
}

.hsa-shop-block__carousel-viewport::-webkit-scrollbar {
	display: none;
}

.hsa-shop-block__carousel-viewport.is-dragging {
	cursor: grabbing;
	user-select: none;
}

.hsa-shop-block__carousel-viewport .hsa-shop-block__list {
	overflow-x: visible;
	flex-wrap: nowrap;
	scroll-snap-type: none;
}

.hsa-shop-block--carousel .hsa-shop-block__item {
	flex: 0 0 min(78vw, 13.5rem);
	scroll-snap-align: unset;
}

.hsa-shop-block--slider .hsa-shop-block__list {
	overflow-x: auto;
	flex-wrap: nowrap;
	scroll-snap-type: x mandatory;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: thin;
	padding-bottom: 0.35rem;
	max-width: 100%;
	overscroll-behavior-x: contain;
}

.hsa-shop-block--slider .hsa-shop-block__item {
	scroll-snap-align: start;
	flex: 0 0 min(72vw, 12.5rem);
}

.hsa-shop-block__item {
	min-width: 0;
}

.hsa-shop-block__card {
	display: flex;
	flex-direction: column;
	height: 100%;
	padding: 0.75rem;
	border-radius: 14px;
	background: var(--hsa-shop-card-bg, #fff);
	border: var(--hsa-shop-card-border-width, 1px) solid var(--hsa-color-border, #e2e8f0);
	text-decoration: none;
	color: var(--hsa-shop-card-text, #0f172a);
	box-shadow: var(--hsa-shop-card-shadow, 0 1px 2px rgba(15, 23, 42, 0.05));
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.hsa-shop-block__card:hover {
	box-shadow: 0 6px 18px rgba(15, 23, 42, 0.1);
	transform: translateY(-2px);
}

.hsa-shop-block--cards-banner .hsa-shop-block__card--banner {
	position: relative;
	min-height: 11rem;
	justify-content: flex-end;
	align-items: stretch;
	padding: 0;
	overflow: hidden;
	background-size: cover;
	background-position: center;
	color: #fff;
	border-radius: 18px;
}

.hsa-shop-block__card--banner .hsa-shop-block__banner-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(105deg, rgba(15, 23, 42, 0.15) 0%, rgba(15, 23, 42, 0.55) 55%, rgba(15, 23, 42, 0.65) 100%);
	pointer-events: none;
}

.hsa-shop-block__card--banner .hsa-shop-block__banner-body {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	text-align: right;
	gap: 0.35rem;
	padding: 1rem 1.1rem 1.1rem;
	width: 100%;
	box-sizing: border-box;
}

.hsa-shop-block__card--banner .hsa-shop-block__name {
	color: #fff;
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.25;
	margin: 0;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.hsa-shop-block__card--banner .hsa-shop-block__price {
	color: rgba(255, 255, 255, 0.95);
	font-size: 0.92rem;
	font-weight: 700;
	margin: 0;
}

.hsa-shop-block__banner-cta {
	margin-top: 0.35rem;
	pointer-events: none;
}

.hsa-shop-block__banner-cta-inner {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.45rem 1.15rem;
	border-radius: 999px;
	background: var(--hsa-shop-banner-cta-bg, #fff);
	color: var(--hsa-shop-banner-cta-text, #00483a);
	font-size: 0.82rem;
	font-weight: 700;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
}

.hsa-shop-block__media {
	display: block;
	width: 100%;
	max-width: var(--hsa-shop-image-max, 160px);
	margin: 0 auto 0.5rem;
	aspect-ratio: 1;
	border-radius: 10px;
	overflow: hidden;
	background: #f1f5f9;
}

.hsa-shop-block__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.hsa-shop-block__media--placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: clamp(1.25rem, 5vw, 2rem);
	font-weight: 800;
	color: var(--hsa-color-primary, #00483a);
}

.hsa-shop-block__name {
	font-size: 0.88rem;
	font-weight: 600;
	line-height: 1.3;
	margin-bottom: 0.25rem;
}

.hsa-shop-block__price {
	font-size: 0.85rem;
	font-weight: 700;
	color: var(--hsa-shop-price-color, #00483a);
}

.hsa-shop-block__nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 2;
	width: 2.25rem;
	height: 2.25rem;
	border-radius: 999px;
	border: 1px solid var(--hsa-color-border, #e2e8f0);
	background: rgba(255, 255, 255, 0.95);
	color: #0f172a;
	font-size: 1.35rem;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}

.hsa-shop-block__nav--prev {
	left: 0;
}

.hsa-shop-block__nav--next {
	right: 0;
}

.hsa-shop-block__nav:hover {
	background: #fff;
}

.hsa-shop-block--slider .hsa-shop-block__viewport {
	padding: 0 2.5rem;
	max-width: 100%;
}

@media (max-width: 600px) {
	.hsa-shop-block--slider .hsa-shop-block__viewport {
		padding: 0 2rem;
	}
}
