/* Souriana Hero Shelf — homepage only. Everything is scoped under .shs. */

/* Homepage, desktop: hide Woodmart's always-open "Browse categories" list.
   It still opens normally when the visitor hovers the "Browse categories" button. */
body.home .wd-header-cats:not(:hover) > .wd-dropdown-cats.wd-opened {
	opacity: 0 !important;
	visibility: hidden !important;
	pointer-events: none !important;
}

/* Homepage, desktop: the first banner section no longer needs the 300px it kept free
   for the category list. Stretch it to the same edges as the category section above
   (content width = min(viewport, 1320px) - 2 x 24px). shelf.js then scales the slider
   so its picture fills that width. Phones keep the original layout. */
@media (min-width: 821px) {
	body.home .elementor-element-636f584 {
		padding-left: 0 !important;
		margin-left: calc((100% - (min(100vw, 1320px) - 48px)) / 2) !important;
		margin-right: calc((100% - (min(100vw, 1320px) - 48px)) / 2) !important;
	}
	body.home .elementor-element-636f584 > .elementor-container { max-width: none !important; }
	body.home .elementor-element-636f584 .elementor-element-populated { padding: 0 !important; }
}
body.home .shs-fit-wrap { overflow: hidden; }

.shs {
	--u: min(calc(100vw / 1440), calc(100vh / 960));
	--bg: #F5F8EF;
	--green: #08482D;
	--mint: #DAE7C7;
	--ink: #101410;
	--sub: #5E5E61;
	position: relative;
	width: 100%;
	overflow: hidden;
	background: var(--bg);
	color: var(--ink);
	font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
	-webkit-font-smoothing: antialiased;
}
.shs *, .shs *::before, .shs *::after { box-sizing: border-box; }

.shs-frame {
	position: relative;
	width: calc(1440 * var(--u));
	height: calc(960 * var(--u));
	margin: 0 auto;
}

/* ---------- copy ---------- */
.shs-badge {
	position: absolute;
	left: calc(720 * var(--u));
	top: calc(35 * var(--u));
	transform: translateX(-50%);
	height: calc(37 * var(--u));
	padding: 0 calc(18 * var(--u));
	display: inline-flex;
	align-items: center;
	gap: calc(9 * var(--u));
	white-space: nowrap;
	border-radius: 999px;
	background: var(--mint);
	color: var(--green);
	font-weight: 500;
	font-size: calc(16.6 * var(--u));
	line-height: 1;
}
.shs-badge-dot {
	width: calc(7 * var(--u));
	height: calc(7 * var(--u));
	border-radius: 50%;
	background: var(--green);
}
.shs .shs-h1 {
	position: absolute;
	left: 0;
	right: 0;
	top: calc(96 * var(--u));
	margin: 0;
	padding: 0;
	text-align: center;
	font-family: "Inter Tight", "Inter", system-ui, sans-serif;
	font-weight: 700;
	font-size: calc(88 * var(--u));
	line-height: calc(92 * var(--u));
	letter-spacing: -0.035em;
	color: var(--ink);
	text-transform: none;
}
.shs-h1 span { display: block; }
.shs .shs-l2 { letter-spacing: -0.022em; }
.shs .shs-sub {
	position: absolute;
	left: 0;
	right: 0;
	top: calc(314 * var(--u));
	margin: 0;
	text-align: center;
	font-weight: 400;
	font-size: calc(20.8 * var(--u));
	line-height: calc(32 * var(--u));
	color: var(--sub);
}

/* ---------- hand-drawn notes ---------- */
.shs-doodles {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
	z-index: 3;
	overflow: visible;
}
.shs-doodles path {
	fill: none;
	stroke: var(--green);
	stroke-width: 3;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-dasharray: 1;
	stroke-dashoffset: 0;
}
.shs-note {
	position: absolute;
	z-index: 3;
	pointer-events: none;
	font-family: "Caveat", "Comic Sans MS", cursive;
	font-weight: 600;
	color: var(--green);
	line-height: 0.95;
	white-space: nowrap;
	transform-origin: left top;
}
.shs-note-a {
	left: calc(1212 * var(--u));
	top: calc(204 * var(--u));
	font-size: calc(38 * var(--u));
	transform: rotate(16deg);
}
.shs-note-ar {
	display: block;
	margin-top: calc(6 * var(--u));
	font-family: "Aref Ruqaa", "Caveat", serif;
	font-weight: 700;
	font-size: .82em;
	line-height: 1.25;
	direction: rtl;
	text-align: left;
	unicode-bidi: plaintext;
}
.shs-note-b {
	left: calc(483 * var(--u));
	top: calc(857 * var(--u));
	font-size: calc(32 * var(--u));
	transform: rotate(24deg);
}

/* ---------- curved row ---------- */
.shs-row {
	position: absolute;
	inset: 0;
	z-index: 2;
	cursor: grab;
	touch-action: pan-y;
	user-select: none;
	-webkit-user-select: none;
}
.shs-row.is-dragging { cursor: grabbing; }
.shs-card {
	position: absolute;
	left: 0;
	top: 0;
	display: block;
	will-change: transform;
	contain: layout paint;
	isolation: isolate;
	text-decoration: none !important;
	color: inherit;
	-webkit-tap-highlight-color: transparent;
	visibility: hidden;
}
.shs-row.is-dragging .shs-card { cursor: grabbing; }
.shs-in {
	position: absolute;
	left: 0;
	right: 0;
	top: 0;
	bottom: 0;
	display: block;
	overflow: hidden;
	background: #fff;
}
.shs-in img {
	position: absolute;
	left: 8%;
	top: 6%;
	width: 84%;
	height: 64%;
	max-width: none;
	object-fit: contain;
	pointer-events: none;
	opacity: 0;
	transition: opacity .5s ease;
}
.shs-in img.is-ready { opacity: 1; }
.shs-cap {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 26%;
	padding: 0 8% 0 9%;
	display: flex;
	align-items: center;
	gap: 7%;
	background: var(--mint);
}
.shs-ic {
	flex: 0 0 auto;
	width: calc(34 * var(--k, 1px));
	height: calc(34 * var(--k, 1px));
	border-radius: 50%;
	display: grid;
	place-items: center;
	background: rgba(255, 255, 255, .55);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
	border: 1px solid rgba(255, 255, 255, .8);
}
.shs-ic svg {
	width: 46%;
	height: 46%;
	fill: none;
	stroke: var(--green);
	stroke-width: 2.4;
	stroke-linecap: round;
	stroke-linejoin: round;
}
.shs-name {
	min-width: 0;
	font-size: calc(12.5 * var(--k, 1px));
	line-height: 1.25;
	font-weight: 500;
	color: var(--green);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* ---------- button ---------- */
.shs-cta {
	position: absolute;
	left: calc(591 * var(--u));
	top: calc(821 * var(--u));
	width: calc(258 * var(--u));
	height: calc(74 * var(--u));
	z-index: 3;
}
.shs-ring {
	position: absolute;
	inset: 0;
	border-radius: 999px;
	border: max(1.5px, calc(2 * var(--u))) dashed var(--green);
	opacity: .55;
}
.shs .shs-btn {
	position: absolute;
	left: calc(9 * var(--u));
	top: calc(8 * var(--u));
	width: calc(240 * var(--u));
	height: calc(58 * var(--u));
	border-radius: 999px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--green);
	color: #fff !important;
	font-family: "Inter", system-ui, sans-serif;
	font-weight: 500;
	font-size: calc(15.5 * var(--u));
	white-space: nowrap;
	text-decoration: none !important;
	transition: transform .2s ease, background .2s ease;
}
.shs .shs-btn:hover { background: #0b5c3a; transform: translateY(-2px); }

/* ---------- phones ---------- */
@media (max-width: 820px) {
	.shs-frame {
		width: auto;
		height: auto;
		padding: 26px 16px 30px;
		display: flex;
		flex-direction: column;
		align-items: center;
	}
	.shs-copy { text-align: center; order: 0; }
	.shs-row { order: 1; }
	.shs-cta { order: 2; }
	.shs-note-b { order: 3; }
	.shs-badge {
		position: static;
		transform: none;
		height: 32px;
		padding: 0 14px;
		gap: 8px;
		font-size: 13px;
		white-space: normal;
	}
	.shs-badge-dot { width: 6px; height: 6px; }
	.shs .shs-h1 {
		position: static;
		margin-top: 16px;
		font-size: clamp(38px, 10vw, 56px);
		line-height: 1.04;
	}
	.shs .shs-sub {
		position: static;
		margin: 14px auto 0;
		max-width: 520px;
		font-size: 16px;
		line-height: 1.55;
	}
	.shs-sub br { display: none; }
	.shs-doodles, .shs-note-a { display: none; }
	.shs-row {
		position: relative;
		inset: auto;
		width: calc(100% + 32px);
		height: 250px;
		margin: 22px -16px 0;
		overflow: hidden;
	}
	.shs-cta {
		position: relative;
		left: auto;
		top: auto;
		margin-top: 22px;
		width: 278px;
		height: 72px;
	}
	.shs-ring { border-width: 2px; }
	.shs .shs-btn {
		left: 9px;
		top: 8px;
		width: 260px;
		height: 56px;
		font-size: 16px;
	}
	.shs-note-b {
		position: static;
		margin-top: 8px;
		font-size: 26px;
		transform: rotate(-4deg);
	}
}

@media (prefers-reduced-motion: reduce) {
	.shs-in img { transition: none; }
}

/* Banner moved to the top of the homepage by shelf.js. */
body.home .shs-banner-top { padding: 22px 0 26px; }
body.home .shs-banner-top .elementor-element-636f584 { margin-top: 0 !important; margin-bottom: 0 !important; }
@media (max-width: 820px) {
	body.home .shs-banner-top { padding: 0 12px 14px; }
}
