/* ==========================================================================
   Electrical supplies demo — VOLTA / فولتا
   Clean and bright: white, midnight navy and volt yellow; marker highlights;
   Chakra Petch + Plus Jakarta Sans (English), Baloo Bhaijaan 2 (Arabic); a
   light-switch intro and a hero slider that flickers on like a lamp. Every rule is under .el-body, every
   class starts with el-. Layout answers to the demo's width (container
   "demo").

   1. Fonts   2. Tokens & base   3. Buttons   4. Topbar & header   5. Hero slider
   6. Categories   7. Catalog   8. Load calculator   9. Quote
   10. Branches   11. Footer & toast   12. Motion   13. Narrower widths
   ========================================================================== */

/* 1. Fonts (SIL Open Font License): Chakra Petch + Plus Jakarta Sans in
   English, Baloo Bhaijaan 2 in Arabic (400–600 only). ---------------------- */
@font-face {
	font-family: "EL Chakra";
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url("../fonts/chakrapetch-500-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: "EL Chakra";
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url("../fonts/chakrapetch-600-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: "EL Jakarta";
	font-style: normal;
	font-weight: 400 700;
	font-display: swap;
	src: url("../fonts/plusjakartasans-400-700-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: "EL Baloo";
	font-style: normal;
	font-weight: 400 600;
	font-display: swap;
	src: url("../fonts/baloobhaijaan2-400-600-arabic.woff2") format("woff2");
	unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}

/* 2. Tokens & base ----------------------------------------------------------- */
.el-body {
	--el-white: #fff;
	--el-grey: #f2f4f9;
	--el-grey-2: #e2e6f0;
	--el-ink: #0e1530;
	--el-ink-2: #1a2342;
	--el-yellow: #ffd60a;
	--el-yellow-2: #f2c200;
	--el-muted: #5a6380;
	--el-green: #1fae5b;
	--el-red: #e5484d;
	--el-line: rgb(14 21 48 / 0.1);
	--el-font: "EL Jakarta", "Segoe UI", Arial, sans-serif;
	--el-display: "EL Chakra", "EL Jakarta", Arial, sans-serif;
	--el-enter: 1.6s;
	--el-start: left;
	--el-ease: cubic-bezier(0.25, 0.9, 0.3, 1);
	--el-dir: 1;

	margin: 0;
	font-family: var(--el-font);
	font-size: 15.5px;
	line-height: 1.65;
	color: var(--el-ink);
	background: var(--el-white);
	-webkit-font-smoothing: antialiased;
	font-synthesis-weight: none;
}

[dir="rtl"] .el-body {
	--el-dir: -1;
	--el-start: right;
}

[lang="ar"] .el-body {
	--el-font: "EL Baloo", "EL Jakarta", Tahoma, sans-serif;
	--el-display: "EL Baloo", "EL Chakra", Tahoma, sans-serif;

	line-height: 1.85;
}

[lang="ar"] .el-body * {
	letter-spacing: 0 !important;
	text-transform: none !important;
}

:where(.el-body) *,
:where(.el-body) *::before,
:where(.el-body) *::after {
	box-sizing: border-box;
}

:where(.el-body) h1,
:where(.el-body) h2,
:where(.el-body) h3,
:where(.el-body) p,
:where(.el-body) ul,
:where(.el-body) figure,
:where(.el-body) fieldset {
	margin: 0;
	padding: 0;
}

:where(.el-body) ul {
	list-style: none;
}

:where(.el-body) fieldset {
	border: 0;
}

:where(.el-body) a {
	color: inherit;
	text-decoration: none;
}

:where(.el-body) button,
:where(.el-body) input,
:where(.el-body) select {
	font: inherit;
	color: inherit;
}

:where(.el-body) button {
	cursor: pointer;
}

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

.el-body :focus-visible {
	outline: 3px solid var(--el-yellow-2);
	outline-offset: 2px;
}

.el-sr {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

.el-ltr {
	text-align: start;
}

[dir="rtl"] .el-icon--arrow {
	scale: -1 1;
}

.el-wrap {
	width: min(100%, 1260px);
	margin-inline: auto;
	padding-inline: clamp(16px, 3cqi, 32px);
}

.el-icon {
	width: 20px;
	height: 20px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.9;
	stroke-linecap: round;
	stroke-linejoin: round;
	flex: none;
}

.el-kicker {
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--el-muted);
}

.el-body h1,
.el-body h2,
.el-body h3 {
	font-family: var(--el-display);
	font-weight: 600;
	line-height: 1.12;
	letter-spacing: -0.025em;
}

[lang="ar"] .el-body :is(h1, h2, h3) {
	font-weight: 600;
	line-height: 1.45;
}

.el-body h2 {
	font-size: clamp(1.9rem, 1.1rem + 2.4cqi, 3rem);
}

/* Marker highlight behind key words. */
.el-mark {
	padding-inline: 0.12em;
	background: linear-gradient(transparent 58%, var(--el-yellow) 58%, var(--el-yellow) 92%, transparent 92%);
	-webkit-box-decoration-break: clone;
	box-decoration-break: clone;
}

/* 3. Buttons ------------------------------------------------------------------ */
.el-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 52px;
	padding: 0 24px;
	font-weight: 700;
	border: 0;
	border-radius: 12px;
	transition: background-color 0.2s, transform 0.2s var(--el-ease), box-shadow 0.2s;
}

.el-btn:hover {
	transform: translateY(-2px);
}

.el-btn .el-icon {
	transition: translate 0.3s var(--el-ease);
}

.el-btn:hover .el-icon--arrow {
	translate: calc(4px * var(--el-dir)) 0;
}

.el-btn--yellow {
	color: var(--el-ink);
	background: var(--el-yellow);
	box-shadow: 0 10px 24px -12px rgb(242 194 0 / 0.9);
}

.el-btn--yellow:hover {
	background: var(--el-yellow-2);
}

.el-btn--dark {
	color: var(--el-white);
	background: var(--el-ink);
}

.el-btn--dark .el-icon {
	color: var(--el-yellow);
	fill: var(--el-yellow);
}

.el-btn--block {
	width: 100%;
}

.el-btn:disabled {
	opacity: 0.6;
	cursor: default;
	transform: none;
}

/* 4. Topbar & header ----------------------------------------------------------- */
.el-topbar {
	font-size: 0.82rem;
	font-weight: 600;
	color: var(--el-ink);
	background: var(--el-yellow);
}

.el-topbar p {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 36px;
}

.el-topbar .el-icon {
	width: 17px;
	height: 17px;
}

.el-header {
	position: sticky;
	top: 0;
	z-index: 40;
	background: rgb(255 255 255 / 0.95);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--el-line);
}

.el-header__in {
	display: flex;
	align-items: center;
	gap: 22px;
	min-height: 74px;
}

.el-logo {
	display: inline-flex;
	align-items: center;
	gap: 10px;
}

.el-logo__mark {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	color: var(--el-ink);
	background: var(--el-yellow);
	border-radius: 12px;
	transform: rotate(-8deg);
}

.el-logo__mark .el-icon {
	fill: var(--el-ink);
	stroke-width: 1.4;
}

.el-logo b {
	font-size: 1.5rem;
	font-weight: 800;
	letter-spacing: 0.04em;
}

.el-search {
	position: relative;
	flex: 1;
	max-width: 420px;
}

.el-search .el-icon {
	position: absolute;
	top: 50%;
	inset-inline-start: 14px;
	color: var(--el-muted);
	transform: translateY(-50%);
	pointer-events: none;
}

.el-search input {
	width: 100%;
	min-height: 46px;
	padding-inline: 44px 14px;
	background: var(--el-grey);
	border: 2px solid transparent;
	border-radius: 12px;
	transition: border-color 0.2s, background-color 0.2s;
}

.el-search input:focus {
	background: var(--el-white);
	border-color: var(--el-yellow-2);
	outline: none;
}

.el-nav {
	display: flex;
	gap: 22px;
	margin-inline-start: auto;
	font-size: 0.92rem;
	font-weight: 600;
}

.el-nav a {
	color: var(--el-muted);
	transition: color 0.2s;
}

.el-nav a:hover {
	color: var(--el-ink);
}

.el-tools {
	display: flex;
	align-items: center;
	gap: 8px;
}

.el-lang {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 9px 12px;
	font-size: 0.86rem;
	font-weight: 700;
	background: var(--el-grey);
	border-radius: 10px;
}

.el-lang .el-icon {
	width: 17px;
	height: 17px;
}

.el-quotebtn {
	position: relative;
	display: grid;
	place-items: center;
	width: 46px;
	height: 46px;
	color: var(--el-white);
	background: var(--el-ink);
	border-radius: 12px;
}

.el-quotebtn span {
	position: absolute;
	top: -6px;
	inset-inline-end: -6px;
	display: grid;
	place-items: center;
	min-width: 22px;
	height: 22px;
	padding: 0 5px;
	font-size: 0.72rem;
	font-weight: 800;
	color: var(--el-ink);
	background: var(--el-yellow);
	border: 2px solid var(--el-white);
	border-radius: 999px;
}

.el-quotebtn.is-bumped {
	animation: el-bump 0.45s var(--el-ease);
}

@keyframes el-bump {
	40% {
		transform: scale(1.15) rotate(-6deg);
	}
}

.el-burger {
	display: none;
	place-items: center;
	width: 46px;
	height: 46px;
	padding: 0;
	background: var(--el-grey);
	border: 0;
	border-radius: 12px;
}

.el-burger .el-icon:last-child,
.el-burger[aria-expanded="true"] .el-icon:first-child {
	display: none;
}

.el-burger[aria-expanded="true"] .el-icon:last-child {
	display: block;
}

/* 5. Hero slider ------------------------------------------------------------------ */
/* Three slides: panels, lighting, cables. On a midnight board with a faint
   circuit grid, each photo flickers on like a lamp inside a rounded panel, the
   words rise from masks, and the tabs are little rocker switches. Without
   JavaScript only the first slide shows. */
.el-hero {
	padding-block: clamp(36px, 4.6cqi, 72px) clamp(30px, 3.6cqi, 52px);
	color: var(--el-white);
	background:
		radial-gradient(40% 60% at 85% 20%, rgb(255 214 10 / 0.14), transparent 70%),
		linear-gradient(rgb(255 255 255 / 0.04) 1px, transparent 1px) 0 0 / 34px 34px,
		linear-gradient(90deg, rgb(255 255 255 / 0.04) 1px, transparent 1px) 0 0 / 34px 34px,
		var(--el-ink);
}

.el-hero__stage {
	position: relative;
	display: grid;
}

/* Only the first slide waits for the intro. */
.el-slide:not(:first-child),
.el-hero.is-started {
	--el-enter: 0s;
}

.el-slide {
	grid-area: 1 / 1;
	display: grid;
	grid-template-columns: 1.1fr 0.9fr;
	align-items: center;
	gap: clamp(30px, 5cqi, 70px);
	visibility: hidden;
}

.el-slide.is-active {
	z-index: 1;
	visibility: visible;
}

.el-slide.is-leaving {
	z-index: 0;
	visibility: visible;
	transition: visibility 0s 0.9s;
}

.el-slide.is-leaving .el-hero__text {
	opacity: 0;
	transition: opacity 0.3s;
}

.el-slide.is-leaving .el-slide__media {
	opacity: 0;
	transition: opacity 0.5s 0.3s;
}

.el-slide__media {
	position: relative;
	overflow: hidden;
	width: min(100%, 487px);
	aspect-ratio: 10 / 11.5;
	margin-inline-start: auto;
	border-radius: 28px;
	box-shadow: 0 0 0 1px rgb(255 214 10 / 0.25), 0 40px 80px -40px rgb(0 0 0 / 0.8);
}

.el-slide__media .el-photo {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transform: scale(1.1);
	transition: transform 6.5s cubic-bezier(0.2, 0.6, 0.3, 1);
}

.el-slide.is-active .el-slide__media .el-photo {
	transform: scale(1.02);
}

/* The lamp flickers on: dark, a stutter of light, then steady and bright. */
.el-slide.is-active .el-slide__media {
	animation: el-flicker 0.9s steps(1, end) var(--el-enter) both;
}

@keyframes el-flicker {
	0% {
		opacity: 0;
		filter: brightness(0.2);
	}

	18% {
		opacity: 1;
		filter: brightness(1.6);
	}

	28% {
		opacity: 0.25;
		filter: brightness(0.4);
	}

	44% {
		opacity: 1;
		filter: brightness(1.3);
	}

	56% {
		opacity: 0.6;
		filter: brightness(0.8);
	}

	70%,
	100% {
		opacity: 1;
		filter: none;
	}
}

.el-chip {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 7px 14px;
	font-size: 0.84rem;
	font-weight: 600;
	color: var(--el-white);
	background: rgb(255 255 255 / 0.08);
	border: 1px solid rgb(255 255 255 / 0.14);
	border-radius: 999px;
}

.el-chip .el-icon {
	width: 17px;
	height: 17px;
	color: var(--el-yellow);
}

.el-hero .el-slide__title {
	margin-block: 20px 18px;
	font-size: clamp(2.4rem, 1.1rem + 3.8cqi, 4.4rem);
	line-height: 1.05;
	color: var(--el-white);
}

.el-hero .el-slide__title em {
	font-style: normal;
	color: var(--el-yellow);
	text-shadow: 0 0 28px rgb(255 214 10 / 0.35);
}

[lang="ar"] .el-hero .el-slide__title {
	font-size: clamp(2.2rem, 1.1rem + 3.4cqi, 3.9rem);
	line-height: 1.4;
}

.el-mask {
	display: block;
	overflow: hidden;
	padding-block: 0.04em 0.1em;
}

.el-mask > * {
	display: inline-block;
}

.el-lead {
	max-width: 36em;
	font-size: 1.06rem;
	color: rgb(255 255 255 / 0.72);
}

.el-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 28px;
}

.el-btn--ghost {
	color: var(--el-white);
	background: transparent;
	border: 1px solid rgb(255 255 255 / 0.3);
}

.el-btn--ghost .el-icon {
	color: var(--el-yellow);
	fill: var(--el-yellow);
}

.el-btn--ghost:hover {
	background: rgb(255 255 255 / 0.08);
}

.el-slide.is-active .el-chip,
.el-slide.is-active .el-lead,
.el-slide.is-active .el-hero__actions {
	animation: el-rise 0.8s var(--el-ease) both;
}

.el-slide.is-active .el-mask > * {
	animation: el-line 0.9s var(--el-ease) both;
}

.el-slide.is-active .el-chip {
	animation-delay: calc(var(--el-enter) + 0.15s);
}

.el-slide.is-active .el-mask:nth-child(1) > * {
	animation-delay: calc(var(--el-enter) + 0.25s);
}

.el-slide.is-active .el-mask:nth-child(2) > * {
	animation-delay: calc(var(--el-enter) + 0.37s);
}

.el-slide.is-active .el-lead {
	animation-delay: calc(var(--el-enter) + 0.5s);
}

.el-slide.is-active .el-hero__actions {
	animation-delay: calc(var(--el-enter) + 0.62s);
}

@keyframes el-line {
	from {
		transform: translateY(105%);
	}
}

@keyframes el-rise {
	from {
		opacity: 0;
		transform: translateY(22px);
	}
}

/* The deal card and the spark ride over the photo column. */
.el-hero__floats {
	position: absolute;
	inset-block: 0;
	inset-inline-end: 0;
	z-index: 2;
	width: min(calc((100% - clamp(30px, 5cqi, 70px)) * 0.45), 487px);
	pointer-events: none;
	animation: el-rise 0.8s var(--el-ease) calc(var(--el-enter) + 0.8s) both;
}

.el-hero__deal {
	position: absolute;
	bottom: 30px;
	inset-inline-start: -30px;
	display: grid;
	padding: 16px 20px;
	color: var(--el-ink);
	background: var(--el-yellow);
	border-radius: 18px;
	box-shadow: 0 24px 40px -18px rgb(0 0 0 / 0.6);
}

.el-hero__deal small {
	font-size: 0.75rem;
	opacity: 0.75;
}

.el-hero__deal b {
	font-size: 1.15rem;
}

.el-hero__deal span {
	font-weight: 700;
}

.el-spark {
	position: absolute;
	top: -18px;
	inset-inline-end: -14px;
	width: 70px;
	height: 70px;
	fill: var(--el-yellow);
	filter: drop-shadow(0 0 12px rgb(255 214 10 / 0.6));
	animation: el-spin 9s linear infinite;
}

@keyframes el-spin {
	to {
		transform: rotate(360deg);
	}
}

/* The foot: stats on the start side, the switches and arrows on the end. */
.el-hero__foot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 20px 40px;
	margin-top: clamp(26px, 3cqi, 44px);
	padding-top: 22px;
	border-top: 1px dashed rgb(255 255 255 / 0.18);
	animation: el-rise 0.8s var(--el-ease) calc(var(--el-enter) + 0.9s) both;
}

.el-hero__stats {
	display: flex;
	flex-wrap: wrap;
	gap: 14px 40px;
}

.el-hero__stats b {
	display: block;
	font-family: var(--el-display);
	font-size: 1.9rem;
	font-weight: 600;
	line-height: 1.1;
	color: var(--el-yellow);
}

.el-hero__stats span {
	font-size: 0.85rem;
	color: rgb(255 255 255 / 0.62);
}

.el-slider__ui {
	display: flex;
	align-items: center;
	gap: 18px;
}

.el-slider__tabs {
	display: flex;
	gap: 14px;
}

.el-slider__tabs button {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	padding: 6px 2px;
	font: inherit;
	font-size: 0.86rem;
	font-weight: 600;
	color: rgb(255 255 255 / 0.6);
	background: none;
	border: 0;
	cursor: pointer;
	transition: color 0.3s;
}

.el-slider__tabs button[aria-selected="true"],
.el-slider__tabs button:hover {
	color: var(--el-white);
}

/* A rocker switch: the knob slides over and the track lights up. */
.el-slider__tabs i {
	position: relative;
	width: 34px;
	height: 18px;
	background: rgb(255 255 255 / 0.16);
	border-radius: 999px;
	transition: background-color 0.3s;
}

.el-slider__tabs i::after {
	content: "";
	position: absolute;
	top: 3px;
	inset-inline-start: 3px;
	width: 12px;
	height: 12px;
	background: var(--el-white);
	border-radius: 50%;
	transition: translate 0.3s var(--el-ease);
}

.el-slider__tabs button[aria-selected="true"] i {
	background: var(--el-yellow);
	box-shadow: 0 0 14px rgb(255 214 10 / 0.5);
}

.el-slider__tabs button[aria-selected="true"] i::after {
	background: var(--el-ink);
	translate: calc(16px * var(--el-dir)) 0;
}

.el-slider__arrows {
	display: flex;
	gap: 8px;
}

.el-slider__arrow {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	padding: 0;
	color: var(--el-white);
	background: rgb(255 255 255 / 0.06);
	border: 1px solid rgb(255 255 255 / 0.2);
	border-radius: 12px;
	cursor: pointer;
	transition: background-color 0.25s, color 0.25s;
}

.el-slider__arrow:hover {
	color: var(--el-ink);
	background: var(--el-yellow);
}

[dir="rtl"] .el-slider__arrow .el-icon {
	scale: -1 1;
}

.el-body:not(.el-ready) .el-slider__ui {
	visibility: hidden;
}

/* 6. Categories ------------------------------------------------------------------ */
.el-section {
	padding-block: clamp(56px, 7cqi, 100px);
}

.el-section--grey {
	background: var(--el-grey);
}

.el-section--dark {
	color: var(--el-white);
	background: var(--el-ink);
}

.el-section--dark .el-kicker {
	color: rgb(255 255 255 / 0.6);
}

.el-section--dark .el-mark {
	color: var(--el-yellow);
	background: none;
}

.el-cats {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 12px;
}

.el-cat {
	display: grid;
	gap: 10px;
	padding: 10px 10px 14px;
	font-size: 0.9rem;
	font-weight: 700;
	text-align: center;
	background: var(--el-grey);
	border-radius: 18px;
	transition: background-color 0.2s, transform 0.25s var(--el-ease);
}

.el-cat .el-photo {
	width: 100%;
	aspect-ratio: 5 / 4;
	object-fit: cover;
	border-radius: 12px;
}

.el-cat:hover {
	background: var(--el-yellow);
	transform: translateY(-4px);
}

/* 7. Catalog --------------------------------------------------------------------- */
.el-head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 22px;
}

.el-head > div {
	display: grid;
	gap: 10px;
	max-width: 720px;
}

.el-count {
	font-weight: 600;
	color: var(--el-muted);
}

.el-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 22px;
}

.el-chipbtn {
	padding: 9px 16px;
	font-size: 0.88rem;
	font-weight: 600;
	background: var(--el-white);
	border: 1px solid var(--el-line);
	border-radius: 999px;
	transition: background-color 0.2s, border-color 0.2s;
}

.el-chipbtn:hover {
	border-color: var(--el-ink);
}

.el-chipbtn[aria-pressed="true"] {
	color: var(--el-ink);
	background: var(--el-yellow);
	border-color: var(--el-yellow);
}

.el-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 14px;
}

.el-item {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	background: var(--el-white);
	border-radius: 18px;
	transition: box-shadow 0.3s var(--el-ease), transform 0.3s var(--el-ease);
	animation: el-in 0.35s var(--el-ease) both;
}

.el-item[hidden] {
	display: none;
}

.el-item:hover {
	transform: translateY(-4px);
	box-shadow: 0 24px 40px -26px rgb(14 21 48 / 0.45);
}

.el-item__media {
	position: relative;
	aspect-ratio: 5 / 4;
	overflow: hidden;
	background: var(--el-grey-2);
}

.el-item__media .el-photo {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.el-item__media span {
	position: absolute;
	top: 10px;
	inset-inline-start: 10px;
	padding: 3px 10px;
	font-size: 0.72rem;
	font-weight: 700;
	background: rgb(255 255 255 / 0.92);
	border-radius: 999px;
}

.el-item__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 4px;
	padding: 14px 16px 16px;
}

.el-item h3 {
	font-size: 1rem;
	line-height: 1.35;
}

.el-item__body > p {
	font-size: 0.82rem;
	color: var(--el-muted);
}

.el-item__foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin-top: auto;
	padding-top: 12px;
}

.el-price {
	display: grid;
	line-height: 1.25;
}

.el-price b {
	font-size: 1.05rem;
}

.el-price small {
	font-size: 0.75rem;
	color: var(--el-muted);
}

.el-add {
	display: grid;
	place-items: center;
	flex: none;
	width: 40px;
	height: 40px;
	padding: 0;
	color: var(--el-ink);
	background: var(--el-yellow);
	border: 0;
	border-radius: 12px;
	transition: transform 0.25s var(--el-ease), background-color 0.2s;
}

.el-add:hover {
	transform: rotate(90deg);
}

.el-add.is-added {
	color: var(--el-white);
	background: var(--el-green);
}

.el-empty {
	padding: 30px;
	text-align: center;
	color: var(--el-muted);
	background: var(--el-white);
	border-radius: 18px;
}

@keyframes el-in {
	from {
		opacity: 0;
		transform: translateY(10px);
	}
}

/* 8. Load calculator ----------------------------------------------------------- */
.el-load {
	display: grid;
	grid-template-columns: 0.85fr 1.15fr;
	gap: clamp(28px, 5cqi, 70px);
	align-items: start;
}

.el-load__intro {
	display: grid;
	gap: 14px;
}

.el-load__intro > p:not(.el-kicker) {
	color: var(--el-muted);
}

.el-load__photo {
	overflow: hidden;
	margin-top: 8px;
	border-radius: 22px;
}

.el-load__photo .el-photo {
	width: 100%;
	aspect-ratio: 9 / 8;
	object-fit: cover;
}

.el-load__form {
	display: grid;
	gap: 18px;
	padding: clamp(20px, 3cqi, 30px);
	background: var(--el-grey);
	border-radius: 24px;
}

.el-load__form legend {
	margin-bottom: 12px;
	font-weight: 700;
}

.el-loads {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
}

.el-loadrow {
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	gap: 10px;
	padding: 12px 14px;
	background: var(--el-white);
	border: 2px solid transparent;
	border-radius: 14px;
	cursor: pointer;
	transition: border-color 0.2s;
}

.el-loadrow input {
	position: absolute;
	opacity: 0;
}

.el-tick {
	display: grid;
	place-items: center;
	width: 24px;
	height: 24px;
	color: transparent;
	background: var(--el-grey);
	border-radius: 7px;
	transition: background-color 0.2s, color 0.2s;
}

.el-tick .el-icon {
	width: 16px;
	height: 16px;
	stroke-width: 3;
}

.el-loadrow:has(input:checked) {
	border-color: var(--el-yellow-2);
}

.el-loadrow input:checked + .el-tick {
	color: var(--el-ink);
	background: var(--el-yellow);
}

.el-loadrow input:focus-visible + .el-tick {
	outline: 3px solid var(--el-yellow-2);
	outline-offset: 2px;
}

.el-loadrow__name {
	font-size: 0.92rem;
	font-weight: 600;
}

.el-loadrow small {
	font-size: 0.78rem;
	color: var(--el-muted);
	white-space: nowrap;
}

.el-gauge {
	display: grid;
	gap: 10px;
}

.el-gauge__bar {
	height: 14px;
	overflow: hidden;
	background:
		repeating-linear-gradient(90deg, transparent 0 calc(10% - 2px), rgb(255 255 255 / 0.9) calc(10% - 2px) 10%),
		var(--el-grey-2);
	border-radius: 99px;
}

.el-gauge__bar i {
	display: block;
	width: 0;
	height: 100%;
	background: linear-gradient(90deg, var(--el-green), var(--el-yellow) 55%, var(--el-red));
	border-radius: inherit;
	transition: width 0.6s var(--el-ease);
}

[dir="rtl"] .el-gauge__bar i {
	background-image: linear-gradient(270deg, var(--el-green), var(--el-yellow) 55%, var(--el-red));
	background-position: right;
}

.el-gauge__nums {
	display: flex;
	justify-content: space-between;
	gap: 12px;
}

.el-gauge__nums span {
	display: grid;
}

.el-gauge__nums b {
	font-size: 1.4rem;
	font-weight: 800;
	font-variant-numeric: tabular-nums;
}

.el-gauge__nums small {
	font-size: 0.78rem;
	color: var(--el-muted);
}

.el-result {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
}

.el-result p {
	display: grid;
	padding: 16px 18px;
	color: var(--el-white);
	background: var(--el-ink);
	border-radius: 16px;
}

.el-result p:last-child {
	color: var(--el-ink);
	background: var(--el-yellow);
}

.el-result small {
	font-size: 0.8rem;
	opacity: 0.75;
}

.el-result b {
	font-size: 1.6rem;
	font-weight: 800;
	line-height: 1.2;
}

.el-result b.is-new {
	animation: el-in 0.3s var(--el-ease);
}

.el-load__note {
	font-size: 0.8rem;
	color: var(--el-muted);
}

/* 9. Quote ----------------------------------------------------------------------- */
.el-quote {
	display: grid;
	grid-template-columns: 1.15fr 0.85fr;
	gap: clamp(28px, 5cqi, 70px);
	align-items: start;
}

.el-quote__list {
	display: grid;
	gap: 16px;
}

.el-lines {
	display: grid;
	gap: 8px;
}

.el-line {
	display: grid;
	grid-template-columns: 56px 1fr auto auto;
	align-items: center;
	gap: 12px;
	padding: 10px;
	background: var(--el-ink-2);
	border-radius: 14px;
	animation: el-in 0.3s var(--el-ease);
}

.el-line__pic {
	width: 56px;
	height: 56px;
	overflow: hidden;
	border-radius: 10px;
}

.el-line__pic img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.el-line span {
	display: grid;
	font-size: 0.9rem;
	line-height: 1.35;
}

.el-line small {
	color: rgb(255 255 255 / 0.6);
}

.el-qty {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.el-qty button {
	display: grid;
	place-items: center;
	width: 30px;
	height: 30px;
	padding: 0;
	color: var(--el-white);
	background: rgb(255 255 255 / 0.1);
	border: 0;
	border-radius: 8px;
}

.el-qty .el-icon {
	width: 15px;
	height: 15px;
}

.el-qty output {
	min-width: 24px;
	font-weight: 700;
	text-align: center;
}

.el-line > b {
	min-width: 96px;
	font-size: 0.92rem;
	text-align: end;
}

.el-lines__empty {
	padding: 22px;
	color: rgb(255 255 255 / 0.65);
	border: 2px dashed rgb(255 255 255 / 0.15);
	border-radius: 14px;
}

.el-lines__empty[hidden],
.el-lines__total[hidden] {
	display: none;
}

.el-lines__total {
	display: flex;
	justify-content: space-between;
	padding-top: 12px;
	border-top: 1px solid rgb(255 255 255 / 0.15);
}

.el-lines__total b {
	font-size: 1.3rem;
	color: var(--el-yellow);
}

.el-form {
	position: sticky;
	top: 100px;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
	padding: clamp(20px, 3cqi, 28px);
	color: var(--el-ink);
	background: var(--el-white);
	border-radius: 22px;
}

.el-field {
	display: grid;
	gap: 6px;
	font-size: 0.85rem;
	font-weight: 600;
	color: var(--el-muted);
}

.el-field input,
.el-field select {
	min-height: 50px;
	padding: 0 14px;
	color: var(--el-ink);
	background: var(--el-grey);
	border: 2px solid transparent;
	border-radius: 12px;
	transition: border-color 0.2s;
}

.el-field input:focus,
.el-field select:focus {
	border-color: var(--el-yellow-2);
	outline: none;
}

.el-field input[aria-invalid="true"] {
	border-color: var(--el-red);
}

.el-field--full,
.el-form .el-btn,
.el-form__error,
.el-form__ok {
	grid-column: 1 / -1;
}

.el-form__error {
	font-size: 0.9rem;
	font-weight: 600;
	color: var(--el-red);
}

.el-form__ok {
	padding: 14px 16px;
	font-size: 0.9rem;
	background: #e3f6ea;
	border-radius: 12px;
}

/* 10. Branches ---------------------------------------------------------------- */
.el-branches {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 14px;
}

.el-branch {
	display: grid;
	gap: 8px;
	padding: 24px;
	background: var(--el-grey);
	border-radius: 20px;
}

.el-branch h3 {
	font-size: 1.3rem;
}

.el-branch p:not(.el-branch__status) {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 0.9rem;
	color: var(--el-muted);
}

.el-branch .el-icon {
	width: 18px;
	height: 18px;
}

.el-branch__status {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	justify-self: start;
	padding: 4px 12px;
	font-size: 0.8rem;
	font-weight: 700;
	border-radius: 999px;
}

.el-branch__status::before {
	content: "";
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: currentColor;
}

.el-branch__status.is-open {
	color: #127a3f;
	background: #dcf5e6;
}

.el-branch__status.is-open::before {
	box-shadow: 0 0 0 4px rgb(31 174 91 / 0.25);
	animation: el-ping 1.6s ease-out infinite;
}

.el-branch__status.is-closed {
	color: #a12c30;
	background: #fde4e4;
}

@keyframes el-ping {
	50% {
		box-shadow: 0 0 0 7px rgb(31 174 91 / 0);
	}
}

/* 11. Footer & toast --------------------------------------------------------------- */
.el-footer {
	padding-block: 36px 24px;
	color: rgb(255 255 255 / 0.7);
	background: #0a1024;
}

.el-footer__in {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

.el-footer .el-logo b {
	color: var(--el-white);
}

.el-footer__bar {
	flex: 1 0 100%;
	padding-top: 16px;
	font-size: 0.82rem;
	border-top: 1px solid rgb(255 255 255 / 0.1);
}

.el-toast {
	position: fixed;
	bottom: 20px;
	inset-inline-start: 50%;
	z-index: 110;
	max-width: min(92%, 420px);
	padding: 12px 20px;
	font-size: 0.88rem;
	font-weight: 600;
	color: var(--el-ink);
	background: var(--el-yellow);
	border-radius: 999px;
	box-shadow: 0 18px 36px -14px rgb(14 21 48 / 0.5);
	transform: translateX(calc(-50% * var(--el-dir)));
	animation: el-in 0.3s var(--el-ease);
}

.el-toast[hidden] {
	display: none;
}

/* 12. Motion: intro, progress line, header, reveals ------------------------- */
/* The intro: in the dark a switch flips on, a warm glow floods out, VOLTA
   lights up, then the whole panel fades in a brief flash. Pure CSS: it ends
   even without the script. */
.el-intro {
	position: fixed;
	inset: 0;
	z-index: 200;
	display: grid;
	place-items: center;
	color: var(--el-white);
	background: var(--el-ink);
	pointer-events: none;
	animation: el-intro-out 0.5s ease-in 1.4s both;
}

/* The warm glow that floods out once the switch is on. */
.el-intro::before {
	content: "";
	position: absolute;
	inset: 0;
	background: radial-gradient(circle at 50% 45%, rgb(255 214 10 / 0.24), transparent 55%);
	animation: el-glow-on 0.6s ease-out 0.55s both;
}

.el-intro__in {
	position: relative;
	display: grid;
	justify-items: center;
	gap: 8px;
}

.el-intro__switch {
	position: relative;
	width: 58px;
	height: 30px;
	margin-bottom: 12px;
	background: rgb(255 255 255 / 0.18);
	border-radius: 999px;
	animation: el-track 0.25s ease-out 0.4s both;
}

.el-intro__switch i {
	position: absolute;
	top: 4px;
	inset-inline-start: 4px;
	width: 22px;
	height: 22px;
	background: var(--el-white);
	border-radius: 50%;
	animation: el-knob 0.3s var(--el-ease) 0.3s both;
}

.el-intro b {
	font-family: var(--el-display);
	font-size: 3rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	line-height: 1;
	animation: el-flicker 0.7s steps(1, end) 0.6s both;
}

[lang="ar"] .el-intro b {
	letter-spacing: 0;
}

.el-intro small {
	font-size: 0.8rem;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	opacity: 0.7;
	animation: el-rise 0.5s var(--el-ease) 0.85s both;
}

@keyframes el-knob {
	to {
		translate: calc(28px * var(--el-dir)) 0;
		background: var(--el-ink);
	}
}

@keyframes el-track {
	to {
		background: var(--el-yellow);
		box-shadow: 0 0 24px rgb(255 214 10 / 0.7);
	}
}

@keyframes el-glow-on {
	from {
		opacity: 0;
		transform: scale(0.3);
	}
}

@keyframes el-intro-out {
	0% {
		opacity: 1;
	}

	25% {
		opacity: 1;
		filter: brightness(1.8);
	}

	100% {
		opacity: 0;
		visibility: hidden;
	}
}

/* Reading progress, where the browser can tie an animation to scrolling. */
.el-progress {
	position: fixed;
	inset-inline: 0;
	top: 0;
	z-index: 60;
	height: 3px;
	background: var(--el-yellow);
	box-shadow: 0 0 10px rgb(255 214 10 / 0.7);
	transform: scaleX(0);
	transform-origin: var(--el-start, left);
}

@supports (animation-timeline: scroll()) {
	.el-progress {
		animation: el-progress linear both;
		animation-timeline: scroll(root);
	}
}

@keyframes el-progress {
	to {
		transform: scaleX(1);
	}
}

.el-topbar,
.el-header {
	animation: el-down 0.7s var(--el-ease) 1.6s both;
}

@keyframes el-down {
	from {
		opacity: 0;
		transform: translateY(-100%);
	}
}

/* Reveals: lists one after another, photos settle from a slight zoom. */
.el-ready [data-el-reveal] {
	opacity: 0;
	transform: translateY(34px);
	transition: opacity 0.8s var(--el-ease), transform 0.8s var(--el-ease);
	transition-delay: calc(var(--el-i, 0) * 80ms);
}

.el-ready [data-el-reveal].is-in {
	opacity: 1;
	transform: none;
}

.el-ready [data-el-reveal] .el-photo {
	transition: transform 1.5s var(--el-ease);
}

.el-ready [data-el-reveal]:not(.is-in) .el-photo {
	transform: scale(1.14);
}

.el-body main {
	overflow-x: clip;
}

@media (prefers-reduced-motion: reduce) {
	.el-body *,
	.el-body *::before,
	.el-body *::after {
		animation: none !important;
		transition: none !important;
	}

	.el-intro {
		display: none;
	}

	.el-ready [data-el-reveal] {
		opacity: 1;
		transform: none;
	}

	.el-ready [data-el-reveal]:not(.is-in) .el-photo {
		transform: none;
	}
}

/* 13. Narrower widths ------------------------------------------------------------ */
@container demo (max-width: 1100px) {
	.el-nav {
		display: none;
	}

	.el-grid {
		grid-template-columns: repeat(3, 1fr);
	}

	.el-cats {
		grid-template-columns: repeat(3, 1fr);
	}
}

@container demo (max-width: 900px) {
	.el-nav {
		position: absolute;
		top: 100%;
		inset-inline: 0;
		display: flex;
		flex-direction: column;
		gap: 0;
		padding: 8px 24px 20px;
		background: var(--el-white);
		border-bottom: 1px solid var(--el-line);
		opacity: 0;
		visibility: hidden;
		transform: translateY(-8px);
		transition: opacity 0.3s, transform 0.3s, visibility 0.3s;
	}

	.el-nav.is-open {
		opacity: 1;
		visibility: visible;
		transform: none;
	}

	.el-nav a {
		padding: 14px 0;
		border-bottom: 1px solid var(--el-line);
	}

	.el-burger {
		display: grid;
	}

	.el-slide,
	.el-load,
	.el-quote {
		grid-template-columns: 1fr;
	}

	/* Photo first, then the words; the deal card rides on the photo. */
	.el-slide__media {
		grid-row: 1;
		width: min(100%, 440px);
		margin-inline: auto;
	}

	.el-hero__floats {
		inset-inline: 0;
		bottom: auto;
		width: min(100%, 440px);
		aspect-ratio: 10 / 11.5;
		margin-inline: auto;
	}

	.el-hero__deal {
		inset-inline-start: 0;
	}

	.el-form {
		position: relative;
		top: 0;
	}

	.el-grid {
		grid-template-columns: 1fr 1fr;
	}

	.el-branches {
		grid-template-columns: 1fr;
	}
}

@container demo (max-width: 640px) {
	.el-header__in {
		flex-wrap: wrap;
		gap: 10px;
		padding-block: 10px;
	}

	.el-search {
		order: 3;
		flex: 1 0 100%;
		max-width: none;
	}

	.el-tools {
		margin-inline-start: auto;
	}

	.el-lang {
		padding: 9px 10px;
		font-size: 0;
		gap: 0;
	}

	.el-lang .el-icon {
		width: 20px;
		height: 20px;
	}

	.el-cats {
		grid-template-columns: 1fr 1fr;
	}

	.el-loads,
	.el-result,
	.el-form {
		grid-template-columns: 1fr;
	}

	.el-line {
		grid-template-columns: 48px 1fr auto;
	}

	.el-line > b {
		grid-column: 2 / -1;
		text-align: start;
	}

	.el-line__pic {
		width: 48px;
		height: 48px;
	}

	.el-hero__foot {
		display: grid;
	}

	.el-slider__ui {
		justify-content: space-between;
	}

	/* Only the playing slide keeps its name on a phone. */
	.el-slider__tabs button:not([aria-selected="true"]) span {
		display: none;
	}

	.el-slider__tabs button {
		white-space: nowrap;
	}

	.el-hero__actions .el-btn {
		flex: 1 1 auto;
	}
}

@container demo (max-width: 420px) {
	.el-grid {
		grid-template-columns: 1fr;
	}
}

/* Arabic weights: 400–600 only: every bold part is 600 here, and the browser never
   fakes a heavier weight. (Generated from the rules above; keep it last.) */
[lang="ar"] .el-body {
	font-synthesis: none;
}

:where([lang="ar"] .el-body) :where(b, strong, h1, h2, h3, h4, h5, h6, th, optgroup) {
	font-weight: 600;
}

[lang="ar"] .el-body :is(.el-kicker, .el-btn, .el-logo b, .el-lang, .el-quotebtn span, .el-hero__deal span),
[lang="ar"] .el-body :is(.el-cat, .el-item__media span, .el-load__form legend, .el-gauge__nums b, .el-result b, .el-qty output),
[lang="ar"] .el-body :is(.el-branch__status) {
	font-weight: 600;
}
