.vida-products,
.vida-single-card {
	--vida-border: #dbe4f0;
	--vida-text: #202734;
	--vida-muted: #69768a;
	--vida-accent: #005bd3;
	--vida-success: #14b872;
	--vida-danger: #e83d35;
	--vida-surface: #fff;
	--vida-soft: #f8fafc;
	direction: rtl;
	font-family: inherit;
}

.vida-products {
	margin: 24px 0;
	border: 1px solid var(--vida-border);
	border-radius: 12px;
	background: var(--vida-surface);
	box-shadow: 0 14px 34px rgba(15, 23, 42, .06);
	overflow: hidden;
}

.vida-products--deal {
	--vida-accent: #b21620;
	--vida-border: #ffc9cd;
}

.vida-products__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 16px 18px;
	border-bottom: 1px solid var(--vida-border);
}

.vida-products__title {
	margin: 0;
	color: var(--vida-text);
	font-size: 20px;
	font-weight: 800;
	line-height: 1.4;
}

.vida-products__header-button,
.vida-feature-panel__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 36px;
	padding: 7px 14px;
	border: 1px solid var(--vida-accent);
	border-radius: 8px;
	color: var(--vida-accent);
	background: #fff;
	font-size: 13px;
	font-weight: 700;
	text-decoration: none;
	white-space: nowrap;
}

.vida-products__body {
	position: relative;
}

.vida-products__track {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: minmax(190px, calc(100% / var(--vida-cols)));
	overflow-x: auto;
	overscroll-behavior-inline: contain;
	scroll-snap-type: inline mandatory;
	scrollbar-width: none;
	cursor: grab;
	user-select: none;
	-webkit-user-select: none;
}

.vida-products__track.is-dragging {
	cursor: grabbing;
	scroll-snap-type: none;
}

.vida-products__track::-webkit-scrollbar {
	display: none;
}

.vida-product-card,
.vida-feature-panel {
	scroll-snap-align: start;
	min-height: 100%;
	border-inline-start: 1px solid var(--vida-border);
	background: #fff;
}

.vida-product-card {
	display: flex;
	flex-direction: column;
	padding: 22px 14px 16px;
	color: var(--vida-text);
}

.vida-product-card__media {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 160px;
	margin-bottom: 14px;
	text-decoration: none;
}

.vida-product-card__image {
	width: auto;
	max-width: 100%;
	max-height: 150px;
	object-fit: contain;
	transition: transform .2s ease;
}

.vida-product-card:hover .vida-product-card__image {
	transform: translateY(-3px);
}

.vida-product-card__content {
	display: flex;
	flex: 1;
	flex-direction: column;
	min-width: 0;
}

.vida-product-card__badge {
	align-self: flex-start;
	margin-bottom: 10px;
	padding: 5px 10px;
	border: 1px solid rgba(20, 184, 114, .35);
	border-radius: 6px;
	color: #07945a;
	background: #effdf6;
	font-size: 11px;
	font-weight: 700;
	line-height: 1.2;
}

.vida-product-card__name {
	margin: 0 0 10px;
	color: var(--vida-text);
	font-size: 13px;
	font-weight: 800;
	line-height: 1.75;
}

.vida-product-card__name a {
	color: inherit;
	text-decoration: none;
}

.vida-product-card__specs {
	display: grid;
	gap: 4px;
	margin: 0 0 12px;
	color: var(--vida-muted);
	font-size: 11px;
	line-height: 1.45;
}

.vida-product-card__spec {
	display: grid;
	grid-template-columns: 74px 1fr;
	gap: 8px;
	align-items: baseline;
}

.vida-product-card__spec dt,
.vida-product-card__spec dd {
	margin: 0;
}

.vida-product-card__spec dt {
	color: #7b8798;
	font-weight: 700;
}

.vida-product-card__spec dd {
	color: #526177;
	text-align: right;
}

.vida-product-card__footer {
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 10px;
	margin-top: auto;
}

.vida-product-card__price {
	color: #111827;
	font-size: 16px;
	font-weight: 900;
	line-height: 1.5;
}

.vida-product-card__price del {
	display: block;
	color: #8a97aa;
	font-size: 12px;
	font-weight: 500;
}

.vida-product-card__price ins {
	text-decoration: none;
}

.vida-product-card__discount {
	flex: 0 0 auto;
	padding: 5px 7px;
	border-radius: 6px;
	color: #fff;
	background: var(--vida-danger);
	font-size: 12px;
	font-weight: 900;
	line-height: 1;
}

.vida-product-card__action {
	margin-top: 12px;
}

.vida-product-card__action .button {
	width: 100%;
	min-height: 34px;
	border-radius: 7px;
}

.vida-products__nav {
	position: absolute;
	top: 50%;
	z-index: 3;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: 999px;
	color: #0b3b87;
	background: #fff;
	box-shadow: 0 10px 24px rgba(15, 23, 42, .12);
	cursor: pointer;
	transform: translateY(-50%);
	transition: color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.vida-products__nav span {
	margin-top: -3px;
	font-size: 34px;
	font-weight: 800;
	line-height: 1;
}

.vida-products__nav:hover {
	color: var(--vida-accent);
	box-shadow: 0 14px 30px rgba(15, 23, 42, .18);
	transform: translateY(-50%) scale(1.04);
}

.vida-products__nav--prev {
	right: 16px;
}

.vida-products__nav--next {
	left: 16px;
}

.vida-feature-panel {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 14px;
	padding: 24px 20px;
	background: var(--vida-soft);
	text-align: center;
}

.vida-feature-panel__image {
	max-width: 170px;
	max-height: 130px;
	object-fit: contain;
}

.vida-feature-panel__title {
	margin: 0;
	color: var(--vida-text);
	font-size: 18px;
	font-weight: 800;
	line-height: 1.7;
}

.vida-feature-panel__text {
	margin: 0;
	color: var(--vida-accent);
	font-size: 16px;
	font-weight: 700;
	line-height: 1.8;
}

.vida-single-card {
	max-width: 260px;
	border: 1px solid var(--vida-border);
	border-radius: 12px;
	overflow: hidden;
}

.vida-archive-product {
	display: flex;
}

.vida-archive-product .vida-products__track {
	cursor: default;
	user-select: auto;
}

.vida-archive-product .vida-product-card {
	width: 100%;
	min-height: 100%;
	border: 1px solid var(--vida-border);
	border-radius: 12px;
	box-shadow: 0 8px 24px rgba(15, 23, 42, .04);
	overflow: hidden;
}

.vida-archive-product .vida-product-card__media {
	height: 170px;
}

@media (max-width: 1024px) {
	.vida-products__nav {
		display: none;
	}

	.vida-products__track {
		grid-auto-columns: minmax(190px, 33.333%);
	}
}

@media (max-width: 768px) {
	.vida-products {
		border-radius: 10px;
		box-shadow: 0 10px 24px rgba(15, 23, 42, .045);
	}

	.vida-products__header {
		align-items: flex-start;
		padding: 14px;
	}

	.vida-products__title {
		font-size: 17px;
	}

	.vida-products__track {
		grid-auto-columns: minmax(220px, 80%);
		gap: 8px;
		padding: 8px 10px 12px;
	}

	.vida-product-card,
	.vida-feature-panel {
		border: 1px solid var(--vida-border);
		border-radius: 10px;
		box-shadow: 0 6px 16px rgba(15, 23, 42, .04);
		overflow: hidden;
	}

	.vida-product-card__media {
		height: 140px;
	}

}
