.ecn-product-rail {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: minmax(230px, 1fr);
	gap: 18px;
	overflow-x: auto;
	padding-bottom: 6px;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	cursor: grab;
	-webkit-overflow-scrolling: touch;
}

@media (min-width: 769px) {
	.ecn-product-rail--single {
		grid-auto-columns: minmax(230px, 320px);
		justify-content: start;
	}
}

.ecn-product-rail::-webkit-scrollbar {
	display: none;
}

.ecn-product-rail.is-dragging {
	cursor: grabbing;
	scroll-snap-type: none;
	user-select: none;
}

.ecn-product-rail.is-dragging a {
	pointer-events: none;
}

.ecn-product-rail-scroll {
	position: relative;
	height: 12px;
	margin-top: 8px;
	cursor: pointer;
}

.ecn-product-rail-scroll[hidden] {
	display: none;
}

.ecn-product-rail-scroll__thumb {
	position: absolute;
	top: 5px;
	inset-inline-start: 0;
	width: 48px;
	height: 2px;
	border-radius: 999px;
	background: var(--ecn-accent-dark);
	box-shadow: 0 1px 4px rgba(44, 36, 30, 0.16);
}

.ecn-product-rail-scroll.is-dragging .ecn-product-rail-scroll__thumb {
	height: 3px;
}

.ecn-product-card {
	position: relative;
	display: grid;
	grid-template-rows: auto 48px 22px 26px 20px;
	align-items: start;
	scroll-snap-align: start;
	padding: 0 0 18px;
	border-radius: 8px;
	background:
		linear-gradient(155deg, rgba(255, 255, 255, 0.42), rgba(250, 247, 242, 0.16) 46%, rgba(217, 207, 193, 0.18)),
		rgba(255, 250, 245, 0.2);
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, 0.62),
		inset 0 0 0 1px rgba(255, 255, 255, 0.22),
		0 16px 34px rgba(44, 36, 30, 0.06);
	backdrop-filter: blur(18px) saturate(1.18);
	-webkit-backdrop-filter: blur(18px) saturate(1.18);
	transition: box-shadow 180ms ease, transform 180ms ease, background 180ms ease;
}

.ecn-product-card:hover,
.ecn-product-card:focus-within {
	background:
		linear-gradient(155deg, rgba(255, 255, 255, 0.54), rgba(250, 247, 242, 0.22) 46%, rgba(217, 207, 193, 0.2)),
		rgba(255, 250, 245, 0.26);
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, 0.74),
		inset 0 0 0 1px rgba(255, 255, 255, 0.28),
		0 22px 44px rgba(44, 36, 30, 0.1);
	transform: translateY(-2px);
}

.ecn-product-card__media-frame {
	position: relative;
	overflow: hidden;
	width: 100%;
	aspect-ratio: 0.78;
	border-radius: 8px 8px 3px 3px;
	box-shadow:
		inset 0 0 0 1px rgba(255, 255, 255, 0.18),
		0 10px 24px rgba(44, 36, 30, 0.08);
}

.ecn-product-card__media {
	display: block;
	overflow: hidden;
	width: 100%;
	height: 100%;
	background: var(--ecn-panel);
}

.ecn-product-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 240ms ease;
}

.ecn-product-card:hover .ecn-product-card__media img,
.ecn-product-card:focus-within .ecn-product-card__media img,
.ecn-product-card.is-touch-active .ecn-product-card__media img {
	transform: scale(1.025);
}

.ecn-product-card__add {
	position: absolute;
	top: 12px;
	inset-inline-end: 12px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border: 1px solid rgba(255, 255, 255, 0.54);
	border-radius: 50%;
	background:
		linear-gradient(145deg, rgba(255, 255, 255, 0.74), rgba(250, 247, 242, 0.34));
	color: var(--ecn-text);
	box-shadow: 0 10px 24px rgba(47, 36, 29, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.76);
	backdrop-filter: blur(18px) saturate(1.28);
	-webkit-backdrop-filter: blur(18px) saturate(1.28);
	line-height: 0;
}

.ecn-product-card__add .ecn-icon,
.ecn-product-card__actions .ecn-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	line-height: 0;
}

.ecn-product-card__add .ecn-icon svg,
.ecn-product-card__actions .ecn-icon svg {
	display: block;
	width: 100%;
	height: 100%;
	filter: drop-shadow(0 1px 1px rgba(44, 36, 30, 0.24));
}

.ecn-product-card__cart-badge {
	position: absolute;
	top: -4px;
	inset-inline-end: -4px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 16px;
	height: 16px;
	padding: 0 4px;
	border: 1px solid rgba(255, 250, 245, 0.96);
	border-radius: 999px;
	background: var(--ecn-accent);
	color: var(--ecn-cream);
	font-size: 9px;
	font-weight: 800;
	line-height: 1;
}

.ecn-product-card__cart-badge[hidden] {
	display: none;
}

.ecn-product-card__actions {
	position: absolute;
	top: 12px;
	inset-inline-end: 54px;
	display: flex;
	gap: 8px;
	opacity: 1;
	pointer-events: auto;
}

.ecn-product-card__actions > span,
.ecn-product-card__actions > a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, 0.54);
	border-radius: 50%;
	background:
		linear-gradient(145deg, rgba(255, 255, 255, 0.74), rgba(250, 247, 242, 0.34));
	color: var(--ecn-text);
	box-shadow: 0 10px 24px rgba(47, 36, 29, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.76);
	backdrop-filter: blur(18px) saturate(1.28);
	-webkit-backdrop-filter: blur(18px) saturate(1.28);
	line-height: 0;
}

.ecn-product-card__actions .ecn-wishlist-card-toggle .ecn-icon,
.ecn-product-card__actions > span .ecn-icon {
	width: 18px;
	height: 18px;
}

.ecn-product-card__actions .ecn-wishlist-card-toggle,
.ecn-product-card__actions > span {
	border-color: rgba(255, 255, 255, 0.68);
	background:
		linear-gradient(145deg, rgba(255, 255, 255, 0.76), rgba(242, 235, 225, 0.4));
	color: #6f5344;
}

.ecn-wishlist-card-toggle.is-active {
	background:
		linear-gradient(145deg, rgba(255, 255, 255, 0.78), rgba(191, 166, 125, 0.38));
	color: var(--ecn-accent-dark);
}

.ecn-wishlist-card-toggle.is-loading {
	opacity: 0.55;
	pointer-events: none;
}

.ecn-product-card__quick-view {
	position: absolute;
	inset-inline: 6px;
	bottom: 6px;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 42px;
	border: 1px solid rgba(255, 255, 255, 0.5);
	border-radius: 7px;
	background:
		linear-gradient(145deg, rgba(255, 255, 255, 0.62), rgba(250, 247, 242, 0.3));
	color: var(--ecn-text);
	box-shadow: 0 14px 30px rgba(47, 36, 29, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.68);
	backdrop-filter: blur(18px) saturate(1.24);
	-webkit-backdrop-filter: blur(18px) saturate(1.24);
	font-size: 12px;
	font-weight: 900;
	text-transform: uppercase;
	opacity: 0;
	pointer-events: none;
	transform: translateY(8px);
	transition: opacity 160ms ease, transform 160ms ease;
}

.ecn-product-card:hover .ecn-product-card__quick-view,
.ecn-product-card:focus-within .ecn-product-card__quick-view,
.ecn-product-card.is-touch-active .ecn-product-card__quick-view {
	opacity: 1;
	pointer-events: auto;
}

.ecn-product-card:hover .ecn-product-card__quick-view,
.ecn-product-card:focus-within .ecn-product-card__quick-view,
.ecn-product-card.is-touch-active .ecn-product-card__quick-view {
	transform: translateY(0);
}

.ecn-product-card h3 a::after {
	content: '';
	position: absolute;
	inset: 0;
	z-index: 1;
}

.ecn-product-card__add,
.ecn-product-card__actions,
.ecn-product-card__quick-view {
	z-index: 2;
}

.ecn-product-card h3 {
	height: 48px;
	margin-inline: 14px;
	padding-top: 13px;
	color: var(--ecn-soft);
	font-size: 20px;
	line-height: 1.15;
	overflow: hidden;
}

.ecn-product-card p {
	margin: 0 14px;
	color: var(--ecn-text);
	font-weight: 700;
	line-height: 22px;
}

.ecn-swatches {
	display: inline-flex;
	align-items: center;
	align-self: start;
	gap: 6px;
	height: 26px;
	margin: 0 14px;
}

.ecn-swatches span {
	width: 18px;
	height: 18px;
	border: 2px solid rgba(255, 255, 255, 0.82);
	border-radius: 50%;
	box-shadow: 0 0 0 1px rgba(129, 104, 88, 0.18);
}

.ecn-swatches span:first-child {
	box-shadow: 0 0 0 2px rgba(191, 166, 125, 0.36);
}

.ecn-sizes {
	display: flex;
	align-self: end;
	justify-content: flex-start;
	gap: 8px;
	margin: 0 14px;
	color: var(--ecn-muted);
	font-size: 13px;
	font-weight: 700;
	line-height: 20px;
	transform: translateY(8px);
}
