/* 5th Axis — Product Slider V1 (simple bordered card layout) */

.axis5th-ps-v1 {
	--axis5th-ps-v1-card-bg: #ffffff;
	--axis5th-ps-v1-card-border: #e2e2e2;
	--axis5th-ps-v1-active-border: var( --e-global-color-primary, #DD2828 );
	--axis5th-ps-v1-title-color: #18181b;
	--axis5th-ps-v1-title-active-color: var( --e-global-color-primary, #DD2828 );
	--axis5th-ps-v1-price-color: #6c6c6c;
	--axis5th-ps-v1-price-active-color: #18181b;
	--axis5th-ps-v1-desc-color: #9a9a9a;
	--axis5th-ps-v1-nav-color: var( --e-global-color-primary, #DD2828 );
	--axis5th-ps-v1-nav-border: var( --e-global-color-primary, #DD2828 );
	--axis5th-ps-v1-nav-hover-bg: var( --e-global-color-primary, #DD2828 );

	position: relative;
	padding-bottom: 64px;
}

.axis5th-ps-v1 *,
.axis5th-ps-v1 *::before,
.axis5th-ps-v1 *::after {
	box-sizing: border-box;
}

.axis5th-ps-v1 .axis5th-product-slider__swiper {
	width: 100%;
	overflow: hidden;
}

.axis5th-ps-v1 .swiper-wrapper {
	align-items: stretch;
}

.axis5th-ps-v1 .swiper-slide {
	height: auto;
}

/* Every card looks the same regardless of active state — no scale/opacity
   animation in this layout (unlike the original widget); only the border,
   title color, and price weight change on the active slide, below. */
.axis5th-ps-v1__card {
	display: flex;
	flex-direction: column;
	height: 100%;
	background: var( --axis5th-ps-v1-card-bg );
	border-radius: 0;
	transition: border-color 0.3s ease;
	/* The card is an <a> (the whole thing links to the product page —
	   there's no separate button in this layout) — reset link defaults. */
	text-decoration: none;
	color: inherit;
	cursor: pointer;
}

.axis5th-ps-v1__image {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	aspect-ratio: 1 / 1;
	border: 1px solid var( --axis5th-ps-v1-card-border );
}

.axis5th-ps-v1__image img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.axis5th-ps-v1__body {
	padding: 12px;
}

.axis5th-ps-v1__title {
	font-family: var( --e-global-typography-primary-font-family ), sans-serif;
	text-transform: none;
	letter-spacing: normal;
	font-size: 18px;
	font-weight: 500;
	line-height: 1.3;
	margin: 0 0 8px;
	color: var( --axis5th-ps-v1-title-color );
	transition: color 0.3s ease;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
	line-clamp: 3;
	height: 72px;

}

.axis5th-ps-v1__price {
	font-size: 16px;
	font-weight: 700;
	margin: 0 0 8px;
	color: var( --axis5th-ps-v1-price-color );
	transition: color 0.3s ease, font-weight 0.3s ease;
}

.axis5th-ps-v1__price .amount {
	color: inherit;
	font-weight: inherit;
}

.axis5th-ps-v1__desc {
	font-family: var( --e-global-typography-text-font-family ), sans-serif;
	font-size: 16px;
	line-height: 1.5;
	margin: 0;
	color: var( --axis5th-ps-v1-title-color );
	display: -webkit-box;
	-webkit-line-clamp: 1;
	-webkit-box-orient: vertical;  
	overflow: hidden;
}

/* ── Hover ──────────────────────────────────────────────────────────── */
/* Deliberately NOT tied to .swiper-slide-active — whichever slide is
   currently centered by Swiper gets no special styling of its own here.
   Only :hover applies the accent border/title, on whichever card the
   cursor is actually over. */

.axis5th-ps-v1__card:hover .axis5th-ps-v1__image{
	border-color: var( --axis5th-ps-v1-active-border );
	box-shadow: 0px 4px 6px -1px #0000001A;

}

.axis5th-ps-v1__card:hover .axis5th-ps-v1__title {
	color: var( --axis5th-ps-v1-title-active-color );
}

/* ── Navigation arrows ──────────────────────────────────────────────── */

.axis5th-ps-v1 .axis5th-product-slider__nav {
	position: absolute;
	right: 0;
	bottom: 0;
	display: flex;
	gap: 8px;
}

.axis5th-ps-v1 .axis5th-product-slider__btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	background: #ffffff;
	border: 1px solid var( --axis5th-ps-v1-nav-border );
	border-radius: 0;
	color: var( --axis5th-ps-v1-nav-color );
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease;
}

.axis5th-ps-v1 .axis5th-product-slider__btn:hover {
	background: var( --axis5th-ps-v1-nav-hover-bg );
	color: #ffffff;
}

.axis5th-ps-v1 .axis5th-product-slider__btn.swiper-button-disabled {
	opacity: 0.35;
	cursor: default;
	pointer-events: none;
}

/* ── Responsive ─────────────────────────────────────────────────────── */

@media ( max-width: 767px ) {
	.axis5th-ps-v1__image {
		padding: 16px;
	}

}
