/* Elefante homepage — follows Elefante Website Style Guide */

body.efh-home {
	margin: 0;
	background: var(--efh-ivory) !important;
	color: var(--efh-navy);
	font-family: var(--efh-sans);
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

.efh-rtl .efh {
	--efh-serif: "IBM Plex Sans Arabic", Tahoma, sans-serif;
	--efh-sans: "IBM Plex Sans Arabic", Tahoma, sans-serif;
}

.efh,
.efh * {
	box-sizing: border-box;
}

.efh a {
	color: inherit;
	text-decoration: none;
}

.efh img {
	display: block;
	max-width: 100%;
	height: auto;
}

.efh svg {
	fill: none;
	stroke: currentColor;
	stroke-width: 1.5;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.efh svg .efh-fill,
.efh svg.efh-fill {
	fill: currentColor;
	stroke: none;
}

.efh-icon-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: clamp(36px, 5vw, 52px);
	height: clamp(36px, 5vw, 52px);
	padding: 0;
	border: 0;
	background: none;
	color: var(--efh-navy);
	cursor: pointer;
	position: relative;
}

.efh-icon-btn svg {
	width: 72%;
	height: 72%;
	stroke-width: 1.8;
}

.efh-icon-btn:focus-visible,
.efh a:focus-visible,
.efh button:focus-visible {
	outline: 2px solid var(--efh-blue);
	outline-offset: 3px;
	border-radius: 6px;
}

/* ---------- Hero ---------- */
.efh-hero {
	position: relative;
	z-index: 1;
	max-width: 1920px;
	margin: 0 auto;
	aspect-ratio: 1024 / 540;
	overflow: hidden;
	background: var(--efh-beige);
}

.efh-hero__track,
.efh-hero__slide {
	position: absolute;
	inset: 0;
}

.efh-hero__slide {
	opacity: 0;
	transition: opacity .9s ease;
}

.efh-hero__slide.is-active {
	opacity: 1;
	z-index: 1;
}

.efh-hero__slide img {
	width: 100%;
	height: 100% !important;
	object-fit: cover;
	object-position: 50% 12%;
}

.efh-hero__dots {
	position: absolute;
	z-index: 2;
	left: 50%;
	bottom: clamp(10px, 2vw, 20px);
	transform: translateX(-50%);
	display: flex;
	gap: clamp(10px, 1.9vw, 20px);
}

.efh-hero__dots button {
	width: clamp(8px, 1.3vw, 13px);
	height: clamp(8px, 1.3vw, 13px);
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(216, 211, 204, .85);
	cursor: pointer;
	transition: background .3s;
}

.efh-hero__dots button.is-active {
	background: var(--efh-blue);
}

/* ---------- Sections ---------- */
.efh-section {
	max-width: var(--efh-max);
	margin: 0 auto;
	padding: clamp(22px, 2.6vw, 36px) var(--efh-pad) clamp(28px, 3vw, 40px);
}

.efh-section__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: clamp(16px, 2.2vw, 26px);
}

.efh-section__head h2 {
	margin: 0;
	font-family: var(--efh-serif);
	font-size: clamp(28px, 3.9vw, 42px);
	font-weight: 500;
	line-height: 1.1;
	letter-spacing: 0;
	color: var(--efh-navy);
	text-transform: none;
}

.efh-rtl .efh-section__head h2 {
	font-weight: 500;
	font-size: clamp(24px, 3.3vw, 36px);
}

.efh-view-all {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	flex-shrink: 0;
	font-family: var(--efh-sans);
	font-size: clamp(14px, 1.6vw, 17px);
	font-weight: 400;
	color: var(--efh-navy);
	white-space: nowrap;
}

.efh-chev {
	width: 1.15em;
	height: 1.15em;
	stroke-width: 2 !important;
}

.efh-rtl .efh-chev {
	transform: scaleX(-1);
}

/* ---------- Categories ---------- */
.efh-cats__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: clamp(14px, 2.3vw, 28px);
}

.efh-cat {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
}

.efh-cat__img {
	display: block;
	width: 100%;
	aspect-ratio: 220 / 227;
	border-radius: clamp(12px, 1.5vw, 16px);
	overflow: hidden;
	background: var(--efh-beige);
}

.efh-cat__img img,
.efh-product__img img {
	width: 100%;
	height: 100% !important;
	object-fit: cover;
	transition: transform .6s ease;
}

.efh-cat:hover .efh-cat__img img,
.efh-product:hover .efh-product__img img {
	transform: scale(1.04);
}

.efh-cat__name {
	margin-top: clamp(10px, 1.5vw, 16px);
	font-family: var(--efh-serif);
	font-size: clamp(20px, 2.35vw, 26px);
	font-weight: 500;
	line-height: 1.1;
	color: var(--efh-navy);
}

.efh-cat__tag {
	margin-top: clamp(6px, .9vw, 10px);
	font-family: var(--efh-sans);
	font-size: clamp(10px, 1.2vw, 12.5px);
	font-weight: 400;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--efh-text-soft);
}

.efh-rtl .efh-cat__tag {
	letter-spacing: 0;
	font-size: clamp(11px, 1.3vw, 13px);
}

/* ---------- Features ---------- */
.efh-features {
	background: var(--efh-bg-alt);
	margin-top: clamp(0px, 1vw, 8px);
}

.efh-features__inner {
	max-width: var(--efh-max);
	margin: 0 auto;
	padding: clamp(18px, 2.5vw, 30px) var(--efh-pad);
	display: grid;
	grid-template-columns: repeat(4, 1fr);
}

.efh-feature {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: clamp(6px, 1vw, 12px);
	text-align: center;
	font-family: var(--efh-sans);
	font-size: clamp(12px, 1.6vw, 17px);
	font-weight: 400;
	line-height: 1.45;
	color: var(--efh-navy);
}

.efh-feature + .efh-feature::before {
	content: "";
	position: absolute;
	left: 0;
	top: 50%;
	height: clamp(34px, 4.8vw, 50px);
	border-left: 1px solid var(--efh-grey);
	transform: translateY(-40%);
}

.efh-rtl .efh-feature + .efh-feature::before {
	left: auto;
	right: 0;
}

.efh-feature svg {
	width: clamp(26px, 3.3vw, 34px);
	height: clamp(26px, 3.3vw, 34px);
	stroke-width: 1.3;
	color: var(--efh-navy);
}

/* ---------- New collection ---------- */
.efh-new {
	padding-bottom: calc(var(--efh-nav-h) + clamp(28px, 4vw, 48px));
}

.efh-new__row {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: calc((100% - 2 * clamp(12px, 1.4vw, 20px)) / 3);
	gap: clamp(12px, 1.4vw, 20px);
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	margin: 0 calc(-1 * var(--efh-pad));
	padding: 0 var(--efh-pad) 4px;
	scroll-padding: 0 var(--efh-pad);
}

.efh-new__row::-webkit-scrollbar {
	display: none;
}

.efh-product {
	display: flex;
	flex-direction: column;
	scroll-snap-align: start;
}

.efh-product__img {
	display: block;
	aspect-ratio: 306 / 330;
	border-radius: clamp(12px, 1.5vw, 16px);
	overflow: hidden;
	background: var(--efh-beige);
}

.efh-product__name {
	margin-top: 14px;
	font-family: var(--efh-serif);
	font-size: clamp(17px, 2vw, 22px);
	font-weight: 500;
	line-height: 1.2;
	color: var(--efh-navy);
}

.efh-product__price {
	margin-top: 6px;
	font-family: var(--efh-sans);
	font-size: clamp(13px, 1.4vw, 15px);
	font-weight: 500;
	color: var(--efh-blue);
}

.efh-product__price del {
	margin-inline-end: 6px;
	color: var(--efh-grey);
	font-weight: 400;
}

.efh-product__price ins {
	text-decoration: none;
}


/* ---------- Mobile ---------- */
@media (max-width: 600px) {
	.efh-hero {
		aspect-ratio: 16 / 9.4;
	}

	.efh-cats__grid {
		gap: 10px;
	}

	.efh-cat__img {
		border-radius: 10px;
	}

	.efh-cat__name {
		margin-top: 8px;
		font-size: 16px;
	}

	.efh-cat__tag {
		margin-top: 4px;
		font-size: 7px;
		letter-spacing: .1em;
	}

	.efh-features__inner {
		padding-left: 8px;
		padding-right: 8px;
	}

	.efh-feature {
		font-size: 10px;
	}

	.efh-new__row {
		gap: 10px;
		grid-auto-columns: calc((100% - 20px) / 3);
	}

	.efh-product__img {
		border-radius: 10px;
	}

	.efh-product__name {
		margin-top: 8px;
		font-size: 13.5px;
		line-height: 1.2;
		display: -webkit-box;
		-webkit-line-clamp: 3;
		-webkit-box-orient: vertical;
		overflow: hidden;
	}

	.efh-product__price {
		font-size: 12px;
	}
}

@media (min-width: 1280px) {
	.efh-new__row {
		grid-auto-columns: calc((100% - 3 * 20px) / 4);
	}
}

@media (prefers-reduced-motion: reduce) {
	.efh * {
		transition: none !important;
	}
}

/* Reset theme (Woodmart) button styling inside the homepage */
.efh button,
.efh button:hover,
.efh button:focus {
	min-height: 0 !important;
	min-width: 0;
	margin: 0;
	line-height: 1 !important;
	box-shadow: none !important;
	text-transform: none !important;
	letter-spacing: 0 !important;
}

.efh .efh-hero__dots button {
	width: clamp(8px, 1.3vw, 13px) !important;
	height: clamp(8px, 1.3vw, 13px) !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 50% !important;
	background: rgba(216, 211, 204, .9) !important;
}

.efh .efh-hero__dots button.is-active {
	background: var(--efh-blue) !important;
}

/* Wave transition from header into the hero */
.efh svg.efh-hero__wave {
	position: absolute;
	z-index: 3;
	left: 0;
	top: -1px;
	width: 100%;
	height: clamp(34px, 7.8vw, 96px);
	fill: var(--efh-ivory);
	stroke: none !important;
	pointer-events: none;
}

@media (max-width: 600px) {
	.efh svg.efh-hero__wave {
		height: 30px;
	}
}

/* ---------- All categories page ([elefante_categories]) ---------- */
.efh-catpage {
	max-width: var(--efh-max);
	margin: 0 auto;
	padding: clamp(8px, 2vw, 24px) 0 40px;
}

.efh-catpage .efh-section__head h1 {
	margin: 0;
	font-family: var(--efh-serif);
	font-size: clamp(28px, 3.9vw, 42px);
	font-weight: 500;
	line-height: 1.1;
	color: var(--efh-navy);
}

.efh-rtl .efh-catpage .efh-section__head h1 {
	font-size: clamp(24px, 3.3vw, 36px);
}

.efh-catpage .efh-cats__grid {
	row-gap: clamp(24px, 3vw, 40px);
}
