/**
 * EB Trailer Sales — Knights Beach Resort.
 * Brand knobs live in the :root block below; adjust there to match the theme.
 */

:root {
	--ebts-accent: #020122;        /* buttons / price badge */
	--ebts-accent-hover: #232253;
	--ebts-card-bg: #ffffff;
	--ebts-card-radius: 8px;
	--ebts-text: #333333;
	--ebts-gap: 30px;
}

/* ---------- Card ---------- */

.ebts-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	background: var(--ebts-card-bg);
	border-radius: var(--ebts-card-radius);
	overflow: hidden;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
	transition: transform 0.25s, box-shadow 0.25s;
}

.ebts-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);
}

.ebts-card__media {
	position: relative;
	display: block;
	aspect-ratio: 4 / 3;
	overflow: hidden;
}

.ebts-card__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.35s;
}

.ebts-card:hover .ebts-card__img {
	transform: scale(1.04);
}

.ebts-card__img--placeholder {
	background: linear-gradient(135deg, #d8e3e8, #b9cdd6);
}

.ebts-card__price {
	position: absolute;
	left: 12px;
	bottom: 12px;
	padding: 6px 14px;
	background: var(--ebts-accent);
	color: #ffffff;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.4;
	border-radius: 4px;
}

.ebts-card__body {
	display: flex;
	flex-direction: column;
	flex-grow: 1;
	gap: 12px;
	padding: 18px 20px 22px;
}

.ebts-card__title {
	margin: 0;
	font-size: 17px;
	font-weight: 600;
	line-height: 1.4;
}

.ebts-card__title a {
	color: var(--ebts-text);
	text-decoration: none;
}

.ebts-card__title a:hover {
	color: var(--ebts-accent);
}

.ebts-card__link {
	display: inline-block;
	margin-top: auto;
	align-self: flex-start;
	padding: 10px 22px;
	background: var(--ebts-accent);
	color: #ffffff;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	border-radius: 4px;
	transition: background-color 0.25s;
}

.ebts-card__link:hover {
	background: var(--ebts-accent-hover);
	color: #ffffff;
}

/* ---------- Grid (sale page) ---------- */

.ebts-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--ebts-gap);
}

@media (max-width: 991px) {
	.ebts-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 599px) {
	.ebts-grid {
		grid-template-columns: 1fr;
	}
}

.ebts-empty {
	text-align: center;
	font-size: 18px;
}

/* ---------- Slider (homepage) ---------- */

.ebts-slider {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.ebts-slider__nav {
	display: flex;
	justify-content: flex-end;
	gap: 10px;
}

.ebts-slider__track {
	display: flex;
	gap: var(--ebts-gap);
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	padding: 8px 4px 16px; /* room for card shadow/hover lift */
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
}

.ebts-slider__track::-webkit-scrollbar {
	display: none;
}

.ebts-slider__slide {
	flex: 0 0 calc((100% - (2 * var(--ebts-gap))) / 3);
	scroll-snap-align: start;
}

@media (max-width: 991px) {
	.ebts-slider__slide {
		flex-basis: calc((100% - var(--ebts-gap)) / 2);
	}
}

@media (max-width: 599px) {
	.ebts-slider__slide {
		flex-basis: 88%;
	}
}

.ebts-slider__arrow {
	width: 44px;
	height: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--ebts-accent);
	color: #ffffff;
	font-size: 16px;
	line-height: 1;
	border: none;
	border-radius: 50%;
	cursor: pointer;
	transition: background-color 0.25s, opacity 0.25s;
}

.ebts-slider__arrow:hover {
	background: var(--ebts-accent-hover);
}

.ebts-slider__arrow[disabled] {
	opacity: 0.35;
	cursor: default;
}

.ebts-slider__arrow[disabled]:hover {
	background: var(--ebts-accent);
}
