/* Product Slider — frontend styles */

.ps-slider {
	--ps-accent: #1f6fb2;
	--ps-heading: #13284b;
	--ps-text: #5a6473;
	--ps-bg: transparent;
	--ps-border: transparent;
	--ps-border-width: 0;
	--ps-transition: 600ms;

	position: relative;
	max-width: 600px;
	margin: 0 auto;
	box-sizing: border-box;
}

.ps-slider *,
.ps-slider *::before,
.ps-slider *::after {
	box-sizing: border-box;
}

.ps-viewport {
	position: relative;
	overflow: hidden;
	background: var(--ps-bg);
	border: var(--ps-border-width) solid var(--ps-border);
	border-radius: 6px;
}

.ps-track {
	display: grid;
	grid-template-areas: "stack";
}

.ps-slide {
	grid-area: stack;
	opacity: 0;
	visibility: hidden;
	transition: opacity var(--ps-transition) ease;
	pointer-events: none;
}

.ps-slide.is-active {
	opacity: 1;
	visibility: visible;
	position: relative;
	pointer-events: auto;
}

.ps-slide-inner {
	display: flex;
	flex-direction: column;
	gap: 20px;
	padding: 4px;
}

/* Media (image on top, full width) */
.ps-media {
	position: relative;
	border-radius: 6px;
	overflow: hidden;
	background: var(--ps-image-bg, transparent);
}

.ps-media .ps-product-img,
.ps-media img {
	display: block;
	width: 100%;
	height: auto;
	margin: 0;
}

/* When an image height is set, cap the height and let the width scale to keep ratio. */
.ps-slider.ps-img-fixed .ps-media {
	text-align: center;
}

.ps-slider.ps-img-fixed .ps-media .ps-product-img,
.ps-slider.ps-img-fixed .ps-media img {
	width: auto;
	height: auto;
	max-width: 100%;
	max-height: var(--ps-img-height);
	margin: 0 auto;
}

/* Body: full-width stacked sections, with a two-column footer */
.ps-body {
	display: flex;
	flex-direction: column;
	gap: 18px;
	padding: 0 4px 6px;
}

.ps-info {
	width: 100%;
}

/* Footer: price (left) and button (right) in two columns */
.ps-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
}

.ps-actions {
	flex: 0 0 auto;
}

/* Title block */
.ps-eyebrow {
	margin: 0 0 8px;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--ps-accent);
}

.ps-title {
	margin: 0 0 8px;
	font-size: 30px;
	line-height: 1.1;
	font-weight: 800;
	text-transform: uppercase;
	color: var(--ps-heading);
}

.ps-subtitle {
	margin: 0;
	font-size: 16px;
	line-height: 1.4;
	color: var(--ps-text);
}

/* Feature checkmark list (full width, two balanced columns) */
.ps-features {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 12px 28px;
}

.ps-features li {
	position: relative;
	padding-left: 28px;
	font-size: 15px;
	line-height: 1.3;
	color: var(--ps-heading);
}

.ps-features li::before {
	content: "";
	position: absolute;
	left: 2px;
	top: 2px;
	width: 6px;
	height: 11px;
	border: solid var(--ps-accent);
	border-width: 0 2.5px 2.5px 0;
	transform: rotate(45deg);
}

/* Price */
.ps-price {
	font-size: 30px;
	font-weight: 800;
	color: var(--ps-heading);
}

.ps-price del {
	opacity: 0.55;
	font-weight: 500;
	font-size: 0.65em;
	margin-right: 6px;
}

/* Button */
.ps-button {
	display: inline-block;
	background: var(--ps-accent);
	color: #fff;
	text-decoration: none;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	padding: 14px 32px;
	border-radius: 4px;
	transition: filter 150ms ease, transform 150ms ease;
}

.ps-button:hover,
.ps-button:focus {
	filter: brightness(1.1);
	color: #fff;
	transform: translateY(-1px);
}

/* Arrows */
.ps-arrow {
	position: absolute;
	top: var(--ps-media-center, 38%);
	transform: translateY(-50%);
	z-index: 3;
	width: var(--ps-arrow-size, 40px);
	height: var(--ps-arrow-size, 40px);
	display: flex;
	align-items: center;
	justify-content: center;
	border: none;
	border-radius: 50%;
	background: rgba(19, 40, 75, 0.55);
	color: #fff;
	font-size: var(--ps-arrow-font, 26px);
	line-height: 1;
	cursor: pointer;
	transition: background 150ms ease;
}

.ps-arrow:hover {
	background: var(--ps-accent);
}

.ps-prev {
	left: 10px;
}

.ps-next {
	right: 10px;
}

/* Dots */
.ps-dots {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin-top: 16px;
}

.ps-dot {
	width: 10px;
	height: 10px;
	padding: 0;
	border: none;
	border-radius: 50%;
	background: rgba(19, 40, 75, 0.2);
	cursor: pointer;
	transition: background 150ms ease, transform 150ms ease;
}

.ps-dot.is-active {
	background: var(--ps-accent);
	transform: scale(1.2);
}

/* Stack into a single column on small screens */
@media (max-width: 540px) {
	.ps-features {
		grid-template-columns: 1fr;
	}

	.ps-title {
		font-size: 26px;
	}

	.ps-footer {
		gap: 14px;
	}
}
