/* SCOMAT Equipments Products — frontend */

.eqp-products {
	--eqp-columns: 3;
	--eqp-gap: 12px;
	--eqp-card-pad: 22px;
	--eqp-badge-h: 42px;
	--eqp-img-h: 320px;
	--eqp-arrow-size: 90px;
	--eqp-arrow-icon: 34px;
	--eqp-arrow-gap: 26px;
	--eqp-yellow: #ffcd00;
	--eqp-grey: #e3e4e8;
	--eqp-muted: #8a8a8a;
	width: 100%;
}

@media (max-width: 1024px) {
	.eqp-products { --eqp-columns: 2; --eqp-arrow-size: 60px; --eqp-arrow-icon: 26px; --eqp-arrow-gap: 16px; --eqp-img-h: 260px; }
}
@media (max-width: 767px) {
	.eqp-products { --eqp-columns: 1; --eqp-arrow-size: 44px; --eqp-arrow-icon: 20px; --eqp-arrow-gap: 10px; --eqp-img-h: 220px; }
}

/* ---------- Grid ---------- */
.eqp-grid {
	display: grid;
	grid-template-columns: repeat(var(--eqp-columns), minmax(0, 1fr));
	gap: var(--eqp-gap);
}

/* ---------- Card ---------- */
.eqp-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	box-sizing: border-box;
	padding: 20px 0 22px;
	background: #fff;
	text-align: center;
}
.eqp-card *,
.eqp-card *::before,
.eqp-card *::after { box-sizing: border-box; }

.eqp-products .eqp-card__title {
	margin: 0 var(--eqp-card-pad) 16px;
	padding: 0;
	color: #000;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.3;
	text-transform: uppercase;
}

.eqp-card__badge-row {
	display: flex;
	justify-content: flex-end;
	min-height: var(--eqp-badge-h);
}
.eqp-products--collapse-badge .eqp-card__badge-row--empty { display: none; }

.eqp-card__badge {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40%;
	min-width: max-content;
	min-height: var(--eqp-badge-h);
	padding: 6px 20px;
	background: var(--eqp-yellow);
	color: #000;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.2;
	text-transform: uppercase;
}
.eqp-card__badge--out_of_stock {
	background: var(--eqp-grey);
	color: #555;
}

.eqp-card__image {
	flex: 1 1 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px var(--eqp-card-pad);
}
.eqp-products .eqp-card__image img {
	display: block;
	width: 100%;
	max-width: 100%;
	height: var(--eqp-img-h);
	object-fit: contain;
	border: 0;
	box-shadow: none;
}
.eqp-card__no-image {
	display: block;
	width: 100%;
	height: var(--eqp-img-h);
	background: #f4f4f5;
}

.eqp-card__specs {
	margin: 0 var(--eqp-card-pad) 20px;
	line-height: 1.35;
}
.eqp-spec + .eqp-spec { margin-top: 14px; }
.eqp-spec__label {
	display: block;
	color: #000;
	font-size: 16px;
	font-weight: 600;
}
.eqp-spec__value {
	display: block;
	color: var(--eqp-muted);
	font-size: 16px;
	font-weight: 400;
}

.eqp-products .eqp-card__button {
	display: block;
	margin: auto var(--eqp-card-pad) 0;
	padding: 12px 16px;
	background: var(--eqp-grey);
	color: #000;
	font-size: 17px;
	font-weight: 400;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	text-transform: uppercase;
	border: 0;
	transition: background-color .2s ease, color .2s ease;
}
.eqp-products .eqp-card__button:hover,
.eqp-products .eqp-card__button:focus-visible {
	background: var(--eqp-yellow);
	color: #000;
}
.eqp-card .screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

/* ---------- Carousel ---------- */
.eqp-carousel {
	display: flex;
	align-items: center;
	gap: var(--eqp-arrow-gap);
}
.eqp-viewport {
	flex: 1 1 auto;
	min-width: 0;
	overflow: hidden;
	touch-action: pan-y;
}
.eqp-track {
	display: flex;
	gap: var(--eqp-gap);
	transition: transform .45s ease;
	will-change: transform;
}
.eqp-slide {
	flex: 0 0 calc((100% - (var(--eqp-columns) - 1) * var(--eqp-gap)) / var(--eqp-columns));
	min-width: 0;
}

.eqp-products .eqp-arrow {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	width: var(--eqp-arrow-size);
	height: var(--eqp-arrow-size);
	margin: 0;
	padding: 0;
	background: #000;
	color: #fff;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	cursor: pointer;
	transition: background-color .2s ease, color .2s ease;
}
.eqp-products .eqp-arrow svg {
	display: block;
	width: var(--eqp-arrow-icon);
	height: auto;
}
.eqp-products .eqp-arrow:not(:disabled):hover,
.eqp-products .eqp-arrow:focus-visible {
	background: var(--eqp-yellow);
	color: #000;
}
.eqp-products .eqp-arrow:disabled {
	background: #b3b3b3;
	color: #fff;
	cursor: default;
}
.eqp-carousel--static .eqp-arrow { display: none; }
.eqp-carousel.is-dragging .eqp-track { transition: none; }

@media (prefers-reduced-motion: reduce) {
	.eqp-track { transition: none; }
}

/* Editor notice */
.eqp-empty {
	padding: 24px;
	background: #f4f4f5;
	border: 1px dashed #c3c4c7;
	color: #50575e;
	text-align: center;
}
