/* ΜΟΡΦΗ · home hero slider (ported 1:1 from the approved prototype, class names prefixed). */
.morfi-hero {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
	min-height: clamp(560px, 72vh, 720px);
	background: var(--morfi-sand);
	overflow: hidden;
	container-type: inline-size;
}

.morfi-hero__copy {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 56px clamp(24px, 5vw, 80px) 40px max(var(--morfi-gut), calc((100vw - var(--morfi-wrap)) / 2 + var(--morfi-gut)));
	padding-left: max(var(--morfi-gut), calc((100cqw - var(--morfi-wrap)) / 2 + var(--morfi-gut)));
}

.morfi-hero__slides { display: grid; }

.morfi-hero__slide {
	grid-area: 1 / 1;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	visibility: hidden;
	opacity: 0;
	transition: opacity .5s ease, visibility 0s .5s;
}
.morfi-hero__slide.is-on {
	visibility: visible;
	opacity: 1;
	transition: opacity .7s ease .1s;
}
.morfi-hero__slide > * {
	transform: translateY(16px);
	transition: transform .9s var(--morfi-ease);
}
.morfi-hero__slide.is-on > * { transform: none; }
.morfi-hero__slide.is-on > :nth-child(2) { transition-delay: .06s; }
.morfi-hero__slide.is-on > :nth-child(3) { transition-delay: .12s; }
.morfi-hero__slide.is-on > :nth-child(4) { transition-delay: .18s; }
.morfi-hero__slide.is-on > :nth-child(5) { transition-delay: .24s; }

.morfi-hero .morfi-hero__eyebrow {
	display: flex;
	align-items: center;
	gap: 10px;
}
.morfi-hero .morfi-hero__eyebrow::before {
	content: "";
	width: 28px;
	height: 1.5px;
	background: var(--morfi-wine);
}

.morfi-hero .morfi-hero__title {
	margin: 22px 0 20px;
	padding: 0;
	font-family: var(--morfi-serif);
	font-size: clamp(40px, 4.4vw, 68px);
	font-weight: 400;
	font-style: normal;
	line-height: 1.04;
	letter-spacing: -.025em;
	text-transform: none;
	color: var(--morfi-ink);
}
.morfi-hero .morfi-hero__title em { font-style: italic; color: var(--morfi-wine); }

.morfi-hero .morfi-hero__lead {
	max-width: 460px;
	margin: 0;
	font-size: 17px;
	line-height: 1.8;
	color: var(--morfi-ink-2);
}

.morfi-hero__prod {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 24px;
	width: min(460px, 100%);
	margin-top: 28px;
	padding-top: 18px;
	border-top: 1px solid var(--morfi-line-2);
}
.morfi-hero__name { font: 400 22px/1.25 var(--morfi-serif); color: var(--morfi-ink); }
.morfi-hero__price {
	margin-left: auto;
	font-size: 18px;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
	color: var(--morfi-wine);
}
.morfi-hero__price del { color: var(--morfi-muted); font-weight: 400; margin-right: 6px; }
.morfi-hero__price ins { text-decoration: none; }
.morfi-hero__price .amount { color: inherit; }

.morfi-hero__cta {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 24px;
}
.morfi-hero__cta .added_to_cart { display: none; } /* WooCommerce's "view cart" link; WoodMart shows its own feedback. */

/* Controls */
.morfi-hero__ctrl {
	display: flex;
	align-items: center;
	gap: 22px;
	margin-top: 44px;
}
.morfi-hero:not(.is-ready) .morfi-hero__ctrl,
.morfi-hero:not(.is-ready) .morfi-hero__dots { visibility: hidden; }
.morfi-hero__count {
	min-width: 62px;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: .06em;
	font-variant-numeric: tabular-nums;
	color: var(--morfi-ink);
}
.morfi-hero__count-total { color: var(--morfi-muted); font-weight: 500; }
.morfi-hero__bar {
	flex: 1;
	max-width: 220px;
	height: 2px;
	background: var(--morfi-line-2);
	overflow: hidden;
}
.morfi-hero__bar i {
	display: block;
	height: 100%;
	background: var(--morfi-wine);
	transform-origin: 0 50%;
	transform: scaleX(0);
}
.morfi-hero__btns { display: flex; gap: 10px; margin-left: auto; }

/* Media */
.morfi-hero__media {
	position: relative;
	overflow: hidden;
	background: var(--morfi-stone);
	touch-action: pan-y;
}
.morfi-hero__imgs { position: absolute; inset: 0; }
.morfi-hero .morfi-hero__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	opacity: 0;
	transform: scale(1.06);
	transition: opacity 1s ease, transform 7s ease-out;
	user-select: none;
	-webkit-user-drag: none;
}
.morfi-hero .morfi-hero__img.is-contain {
	object-fit: contain;
	padding: 56px;
	mix-blend-mode: multiply;
}
.morfi-hero .morfi-hero__img.is-on { opacity: 1; transform: scale(1); }

.morfi-hero__seal {
	position: absolute;
	top: 28px;
	right: 28px;
	z-index: 2;
	width: 116px;
	height: 116px;
	display: grid;
	place-items: center;
	border: 1px solid #9c8a76;
	border-radius: 50%;
	background: rgba(246, 239, 226, .92);
	color: #5d4433;
	transform: rotate(12deg);
	pointer-events: none;
}
.morfi-hero__seal .morfi-hero__seal-ring {
	position: absolute;
	inset: 5px;
	width: calc(100% - 10px);
	height: calc(100% - 10px);
	font-family: var(--morfi-sans);
	letter-spacing: 0;
	animation: morfi-seal-spin 24s linear infinite;
}
.morfi-hero__seal .morfi-hero__seal-icon {
	position: relative;
	width: 30%;
	height: auto;
	color: #682d37;
	transform: rotate(-12deg); /* ίσιο, ενώ η σφραγίδα έχει κλίση */
}
@keyframes morfi-seal-spin { to { transform: rotate(360deg); } }

.morfi-hero__dots {
	position: absolute;
	left: 50%;
	bottom: 18px;
	z-index: 2;
	display: none;
	gap: 8px;
	transform: translateX(-50%);
}
.morfi-hero .morfi-hero__dots button,
.morfi-hero .morfi-hero__dots button:hover {
	width: 28px;
	height: 28px;
	min-height: 28px;
	display: grid;
	place-items: center;
	background: transparent;
}
.morfi-hero .morfi-hero__dots button::after {
	content: "";
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: rgba(255, 255, 255, .7);
	box-shadow: 0 0 0 1px rgba(0, 0, 0, .15);
	transition: width .3s var(--morfi-ease);
}
.morfi-hero .morfi-hero__dots button[aria-current="true"]::after {
	width: 22px;
	border-radius: 9px;
	background: var(--morfi-wine);
}

/* Tablet */
@media (max-width: 1100px) {
	.morfi-hero { grid-template-columns: 1fr 1fr; min-height: 560px; }
	.morfi-hero__copy { padding: 44px 32px 32px var(--morfi-gut); }
}

/* Mobile: image on top, dots visible */
@media (max-width: 860px) {
	.morfi-hero { grid-template-columns: 1fr; min-height: 0; }
	.morfi-hero__media { order: -1; aspect-ratio: 4 / 3.4; min-height: 0; }
	.morfi-hero__copy { padding: 30px var(--morfi-gut) 28px; }
	.morfi-hero .morfi-hero__title { margin: 16px 0 14px; }
	.morfi-hero__ctrl { margin-top: 28px; }
	.morfi-hero__bar { max-width: none; }
	.morfi-hero__dots { display: flex; }
	.morfi-hero__seal { top: 16px; right: 16px; width: 88px; height: 88px; }

}

@media (max-width: 560px) {
	.morfi-hero .morfi-hero__title { font-size: clamp(40px, 11.5vw, 54px); }
	.morfi-hero .morfi-hero__lead { font-size: 16px; }
	.morfi-hero__cta a.morfi-btn { flex: 1; padding: 0 16px; }
	/* The pause button stays visible on phones (WCAG 2.2.2), unlike the static prototype. */
	.morfi-hero__ctrl { gap: 14px; }
}

@media (prefers-reduced-motion: reduce) {
	.morfi-hero__seal .morfi-hero__seal-ring { animation: none; }
	.morfi-hero .morfi-hero__img { transform: none !important; }
	.morfi-hero__slide > * { transform: none !important; }
}
