/**
 * Ecomus Premium Product Cards
 * Component-only styles: no header, hero, footer, or theme layout styles.
 */

.ecomus-premium-products,
.ecomus-premium-products * {
	box-sizing: border-box;
}

.ecomus-premium-products {
	--eppc-blue: #132c91;
	--eppc-text: #687086;
	--eppc-star: #ffb21c;
	position: relative;
	width: 100%;
}

.ecomus-premium-products__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	column-gap: 24px;
	row-gap: 28px;
	align-items: stretch;
}

.ecomus-premium-products__swiper {
	position: relative;
	overflow: hidden;
	margin: -14px;
	padding: 14px 14px 48px;
}

.ecomus-premium-products__swiper .swiper-wrapper {
	display: flex;
	align-items: stretch;
}

.ecomus-premium-products__swiper .swiper-slide {
	display: flex;
	height: auto;
}

.ecomus-premium-products__swiper .swiper-slide > .ecomus-product-card {
	width: 100%;
}

.ecomus-product-card {
	--eppc-accent: #ff4945;
	--eppc-accent-soft: rgba(255, 73, 69, 0.1);
	position: relative;
	display: flex;
	flex-direction: column;
	min-width: 0;
	height: 100%;
	overflow: hidden;
	background: linear-gradient(155deg, #fff 0%, #fff 54%, var(--eppc-accent-soft) 145%);
	border: 1px solid rgba(26, 43, 105, 0.08);
	border-radius: 28px;
	box-shadow: 0 12px 32px rgba(31, 41, 86, 0.11), 0 2px 8px rgba(31, 41, 86, 0.05);
	transition: transform 300ms ease, box-shadow 300ms ease;
	isolation: isolate;
}

.ecomus-product-card::after {
	content: "";
	position: absolute;
	right: -80px;
	top: 30%;
	width: 170px;
	height: 170px;
	border-radius: 50%;
	background: var(--eppc-accent-soft);
	filter: blur(1px);
	opacity: 0.65;
	z-index: -1;
	pointer-events: none;
}

.ecomus-product-card:hover {
	transform: translateY(-6px);
	box-shadow: 0 19px 45px rgba(31, 41, 86, 0.16), 0 4px 12px rgba(31, 41, 86, 0.07);
}

.ecomus-product-card__badge {
	position: absolute;
	top: 0;
	left: 0;
	z-index: 4;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 96px;
	max-width: 52%;
	min-height: 48px;
	padding: 10px 18px 12px;
	background: var(--eppc-accent);
	border-radius: 0 0 25px 0;
	color: #fff;
	font-size: 11px;
	font-weight: 800;
	line-height: 1.15;
	letter-spacing: 0.055em;
	text-align: center;
	text-transform: uppercase;
}

.ecomus-product-card__media {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 330px;
	padding: 38px 22px 12px;
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.2));
	text-decoration: none;
	overflow: hidden;
}

.ecomus-product-card__image {
	display: block;
	width: 100%;
	height: 100%;
	max-width: 100%;
	max-height: 100%;
	margin: 0 auto;
	object-fit: contain;
	object-position: center;
	filter: drop-shadow(0 15px 15px rgba(27, 36, 72, 0.11));
	transition: transform 300ms ease;
}

.ecomus-product-card:hover .ecomus-product-card__image {
	transform: scale(1.03);
}

.ecomus-product-card__content {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	min-width: 0;
	padding: 26px 26px 22px;
}

.ecomus-product-card__intro {
	display: flex;
	align-items: flex-start;
	gap: 12px;
}

.ecomus-product-card__copy {
	flex: 1 1 auto;
	min-width: 0;
}

.ecomus-product-card__title {
	display: -webkit-box;
	overflow: hidden;
	min-height: 2.18em;
	margin: 0 0 10px;
	color: var(--eppc-blue);
	font-family: inherit;
	font-size: clamp(26px, 2.25vw, 36px);
	font-weight: 800;
	line-height: 1.09;
	letter-spacing: -0.035em;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
}

.ecomus-product-card__title a {
	color: inherit;
	text-decoration: none;
}

.ecomus-product-card__title a:hover,
.ecomus-product-card__title a:focus {
	color: var(--eppc-accent);
}

.ecomus-product-card__description {
	display: -webkit-box;
	overflow: hidden;
	min-height: 3em;
	margin: 0;
	color: var(--eppc-text);
	font-size: 15px;
	font-weight: 500;
	line-height: 1.5;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
}

.ecomus-product-card__decoration {
	flex: 0 0 78px;
	width: 78px;
	height: 78px;
	margin-top: 4px;
	object-fit: contain;
	filter: drop-shadow(0 8px 8px rgba(27, 36, 72, 0.14));
}

.ecomus-product-card__features {
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
	margin: 22px 0 18px;
}

.ecomus-product-card__feature {
	display: inline-flex;
	flex: 1 1 calc(33.333% - 6px);
	align-items: center;
	justify-content: center;
	min-width: 88px;
	min-height: 45px;
	padding: 8px 7px;
	gap: 6px;
	background: rgba(255, 255, 255, 0.92);
	border: 1px solid rgba(27, 52, 150, 0.1);
	border-radius: 12px;
	box-shadow: 0 5px 16px rgba(31, 41, 86, 0.06);
}

.ecomus-product-card__feature-icon {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	width: 17px;
	height: 17px;
	color: #17349a;
	font-size: 16px;
	line-height: 1;
}

.ecomus-product-card__feature-icon svg {
	width: 1em;
	height: 1em;
	fill: currentColor;
}

.ecomus-product-card__feature-text {
	color: #17349a;
	font-size: 9px;
	font-weight: 800;
	line-height: 1.15;
	letter-spacing: 0.015em;
	text-align: center;
	text-transform: uppercase;
	word-break: normal;
}

.ecomus-product-card__rating {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 9px;
	min-height: 28px;
	margin-top: auto;
	padding-top: 4px;
	font-size: 14px;
	line-height: 1.3;
}

.ecomus-product-card__stars {
	display: inline-flex;
	align-items: center;
	gap: 2px;
}

.ecomus-product-card__star {
	position: relative;
	display: inline-block;
	color: #d8dbe5;
	font-size: 18px;
	line-height: 1;
}

.ecomus-product-card__star::before {
	content: "\2605";
	position: absolute;
	left: 0;
	top: 0;
	width: var(--eppc-fill, 0%);
	overflow: hidden;
	color: var(--eppc-star);
}

.ecomus-product-card__rating-text {
	color: #33436f;
	font-weight: 700;
	white-space: nowrap;
}

.ecomus-product-card__review-count {
	font-weight: 500;
}

.ecomus-product-card__bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	margin-top: 18px;
}

.ecomus-product-card__price {
	flex: 0 1 auto;
	min-width: 0;
	color: var(--eppc-blue);
	font-size: clamp(26px, 2.1vw, 34px);
	font-weight: 850;
	line-height: 1.12;
	letter-spacing: -0.035em;
	white-space: nowrap;
}

.ecomus-product-card__price del {
	display: block;
	margin-bottom: 2px;
	color: #8a90a1;
	font-size: 0.46em;
	font-weight: 600;
	opacity: 0.75;
}

.ecomus-product-card__price ins {
	background: transparent;
	color: inherit;
	text-decoration: none;
}

.ecomus-product-card__cart,
.ecomus-product-card a.ecomus-product-card__cart,
.ecomus-product-card .button.ecomus-product-card__cart {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	min-width: 146px;
	min-height: 52px;
	padding: 14px 18px;
	gap: 10px;
	background: var(--eppc-accent);
	border: 0;
	border-radius: 12px;
	box-shadow: 0 9px 18px var(--eppc-accent-soft);
	color: #fff;
	font-family: inherit;
	font-size: 13px;
	font-weight: 800;
	line-height: 1.1;
	letter-spacing: 0.01em;
	text-align: center;
	text-decoration: none;
	text-transform: uppercase;
	transition: transform 280ms ease, box-shadow 280ms ease, filter 280ms ease, opacity 280ms ease;
	white-space: nowrap;
}

.ecomus-product-card__cart:hover,
.ecomus-product-card__cart:focus {
	transform: translateY(-2px);
	box-shadow: 0 13px 23px var(--eppc-accent-soft);
	color: #fff;
	filter: saturate(1.05) brightness(0.96);
}

.ecomus-product-card__cart.loading,
.ecomus-product-card__cart.eppc-is-loading {
	pointer-events: none;
	opacity: 0.76;
}

.ecomus-product-card__cart.eppc-is-added {
	filter: saturate(0.9) brightness(0.92);
}

.eppc-cart-button__icon {
	flex: 0 0 auto;
}

.ecomus-product-card__cart.loading .eppc-cart-button__icon,
.ecomus-product-card__cart.eppc-is-loading .eppc-cart-button__icon {
	animation: eppc-cart-pulse 850ms ease-in-out infinite alternate;
}

@keyframes eppc-cart-pulse {
	to { transform: scale(0.78); opacity: 0.55; }
}

.ecomus-product-card__meta {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 8px 14px;
	min-height: 16px;
	margin-top: 19px;
	color: #7b8293;
	font-size: 10px;
	font-weight: 650;
	line-height: 1.2;
	letter-spacing: 0.13em;
	text-align: center;
	text-transform: uppercase;
}

.ecomus-product-card__meta span + span::before {
	content: "\2022";
	margin-right: 14px;
}

.eppc-swiper-button {
	position: absolute;
	top: calc(50% - 24px);
	z-index: 5;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	background: #fff;
	border: 1px solid rgba(19, 44, 145, 0.12);
	border-radius: 50%;
	box-shadow: 0 9px 24px rgba(31, 41, 86, 0.15);
	color: var(--eppc-blue);
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	transition: transform 250ms ease, background-color 250ms ease, color 250ms ease;
}

.eppc-swiper-button:hover,
.eppc-swiper-button:focus {
	transform: translateY(-2px);
	background: var(--eppc-blue);
	color: #fff;
}

.eppc-swiper-button--prev { left: 2px; }
.eppc-swiper-button--next { right: 2px; }

.eppc-swiper-button.swiper-button-disabled {
	opacity: 0.35;
	pointer-events: none;
}

.eppc-swiper-pagination {
	position: absolute;
	left: 50% !important;
	bottom: 10px !important;
	display: flex;
	justify-content: center;
	width: auto !important;
	transform: translateX(-50%);
}

.eppc-swiper-pagination .swiper-pagination-bullet {
	width: 8px;
	height: 8px;
	margin: 0 4px !important;
	background: #c9ccda;
	opacity: 1;
	transition: width 250ms ease, background-color 250ms ease;
}

.eppc-swiper-pagination .swiper-pagination-bullet-active {
	width: 23px;
	border-radius: 10px;
	background: var(--eppc-blue);
}

.ecomus-premium-products__empty {
	padding: 24px;
	background: #f7f8fc;
	border: 1px dashed #cdd2e3;
	border-radius: 12px;
	color: #59617a;
	text-align: center;
}

@media (max-width: 1024px) {
	.ecomus-premium-products__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.ecomus-product-card__media {
		height: 300px;
	}

	.ecomus-product-card__title {
		font-size: 29px;
	}
}

@media (max-width: 767px) {
	.ecomus-premium-products__grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.ecomus-premium-products__swiper {
		margin: -9px;
		padding: 9px 9px 43px;
	}

	.ecomus-product-card {
		border-radius: 24px;
	}

	.ecomus-product-card__media {
		height: 280px;
		padding: 34px 16px 8px;
	}

	.ecomus-product-card__content {
		padding: 22px 20px 19px;
	}

	.ecomus-product-card__title {
		font-size: 29px;
	}

	.ecomus-product-card__description {
		font-size: 14px;
	}

	.ecomus-product-card__decoration {
		flex-basis: 68px;
		width: 68px;
		height: 68px;
	}

	.eppc-swiper-button {
		width: 38px;
		height: 38px;
	}
}

@media (max-width: 480px) {
	.ecomus-product-card__media {
		height: 255px;
	}

	.ecomus-product-card__title {
		font-size: 27px;
	}

	.ecomus-product-card__features {
		gap: 6px;
		margin-top: 18px;
	}

	.ecomus-product-card__feature {
		flex: 1 1 calc(33.333% - 4px);
		min-width: 78px;
		padding-inline: 5px;
	}

	.ecomus-product-card__feature-text {
		font-size: 8px;
	}

	.ecomus-product-card__bottom {
		align-items: stretch;
	}

	.ecomus-product-card__price {
		display: flex;
		align-items: center;
		font-size: 29px;
	}

	.ecomus-product-card__cart,
	.ecomus-product-card a.ecomus-product-card__cart,
	.ecomus-product-card .button.ecomus-product-card__cart {
		min-width: 136px;
		min-height: 50px;
		padding: 13px 14px;
		font-size: 12px;
	}
}

@media (max-width: 374px) {
	.ecomus-product-card__bottom {
		flex-direction: column;
	}

	.ecomus-product-card__price {
		justify-content: center;
	}

	.ecomus-product-card__cart,
	.ecomus-product-card a.ecomus-product-card__cart {
		width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ecomus-product-card,
	.ecomus-product-card__image,
	.ecomus-product-card__cart,
	.eppc-swiper-button {
		transition-duration: 0.01ms !important;
	}

	.ecomus-product-card:hover,
	.ecomus-product-card:hover .ecomus-product-card__image,
	.ecomus-product-card__cart:hover {
		transform: none;
	}
}

