/* Solve It — header modelled on laundor.com (dropps-header.css + overrides). Logical properties so Arabic mirrors itself. */

.sv-hdr-wrap, .sv-drawer, .sv-drawer-overlay {
	--sv-ink: #000;
	--sv-line: #e5e8ec;
	--sv-rule: #c4cbd4;
	--sv-font: "Montserrat", "Helvetica Neue", Arial, sans-serif;
	font-family: var(--sv-font);
	-webkit-font-smoothing: antialiased;
}
.sv-hdr-wrap *, .sv-hdr-wrap *::before, .sv-hdr-wrap *::after,
.sv-drawer *, .sv-drawer *::before, .sv-drawer *::after { box-sizing: border-box; }
.sv-hdr-wrap { position: relative; z-index: 999; background: #fff; }
.sv-hdr-wrap a, .sv-drawer a { text-decoration: none; }
.sv-hdr-wrap svg, .sv-drawer svg { display: block; flex: none; }
.sv-hdr-wrap ul, .sv-drawer ul { list-style: none; margin: 0; padding: 0; }
.sv-hdr-wrap h3, .sv-hdr-wrap p, .sv-drawer p { margin: 0; }

/* every button here gets the reference look, not the theme kit's orange pill */
:where(.sv-hdr-wrap, .sv-drawer) button, :where(.sv-hdr-wrap, .sv-drawer) button:hover, :where(.sv-hdr-wrap, .sv-drawer) button:focus {
	background: none !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; padding: 0 !important;
	min-height: 0 !important; height: auto; width: auto; color: var(--sv-ink) !important; font-family: var(--sv-font) !important;
	letter-spacing: normal !important; text-transform: none !important; line-height: 1 !important; cursor: pointer; transform: none !important;
}

/* ---------- announcement marquee ---------- */
.sv-ann { position: relative; height: 30px; overflow: hidden; background: #123F37; color: #fff; } /* Solve Forest (BRAND IDENTITY palette) */
.sv-ann__track { position: absolute; inset-block: 0; inset-inline-start: 0; display: flex; width: max-content; animation: sv-ann 48s linear infinite; }
.sv-ann:hover .sv-ann__track { animation-play-state: paused; }
.sv-ann__set { display: flex; align-items: center; }
.sv-ann__item { flex: 0 0 auto; padding: 0 4rem; white-space: nowrap; color: #fff !important; font-size: 11px; font-weight: 700; line-height: 30px; letter-spacing: .02em; text-transform: uppercase; }
@keyframes sv-ann { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes sv-ann-rtl { from { transform: translateX(0); } to { transform: translateX(50%); } }
html[dir="rtl"] .sv-ann__track { animation-name: sv-ann-rtl; }
@media (prefers-reduced-motion: reduce) { .sv-ann__track { animation: none; } }

/* ---------- bar ---------- */
.sv-hdr { position: relative; background: #fff; border-bottom: 1px solid var(--sv-line); min-height: 78px; display: flex; align-items: center; margin: 0 !important; padding: 0 !important; }
.sv-hdr__inner { position: relative; width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 0 56px; min-height: 78px; }
.sv-hdr__left { display: flex; align-items: center; flex: 1 1 auto; min-width: 0; }
.sv-hdr__right { display: flex; align-items: center; gap: 8px; flex: none; }
.sv-hdr__logo { display: flex; align-items: center; flex: none; margin-inline-end: 32px; }
.sv-hdr__logo img { display: block; width: auto; height: 30px; max-width: none; }

.sv-hdr__icon { display: inline-flex !important; align-items: center; justify-content: center; width: 48px !important; height: 48px !important; color: var(--sv-ink) !important; position: relative; border-radius: 999px !important; transition: background-color .2s; }
.sv-hdr__icon:hover { background-color: rgba(0, 0, 0, .05) !important; }
.sv-hdr__burger, .sv-hdr__search-m { display: none !important; }

/* menu items */
.sv-hdr__nav { display: flex; align-items: stretch; }
.sv-hdr__item { position: static; display: flex; }
.sv-hdr__link {
	position: relative; display: inline-flex; align-items: center; height: 78px; padding: 12px 20px;
	color: var(--sv-ink) !important; font-size: 14px; font-weight: 600; line-height: 14px; letter-spacing: 1px; text-transform: uppercase; white-space: nowrap;
}
.sv-hdr__link::after { content: ""; position: absolute; bottom: 1px; inset-inline-start: 0; width: 0; height: 2px; background: currentColor; transition: width .2s ease-in-out; }
.sv-hdr__link:hover::after, .sv-hdr__link.is-active::after, .sv-hdr__item.is-open > .sv-hdr__link::after, .sv-hdr__item:hover > .sv-hdr__link::after { width: 100%; }

/* ---------- flyout ---------- */
.sv-fly {
	display: none; position: absolute; left: 0; right: 0; top: 100%; z-index: 51; width: 100%;
	background: #fff; border-top: 1px solid #e5e7eb; box-shadow: 0 4px 6px -1px rgba(0, 0, 0, .1), 0 2px 4px -2px rgba(0, 0, 0, .1); padding: 24px;
}
.sv-hdr__item.has-flyout:hover > .sv-fly, .sv-hdr__item.has-flyout:focus-within > .sv-fly, .sv-hdr__item.is-open > .sv-fly { display: block; }
.sv-hdr__item.is-closed > .sv-fly { display: none !important; }
.sv-fly__wrap { max-width: 1280px; margin: 0 auto; padding: 0 56px 24px; }
.sv-fly__head { display: flex; align-items: center; gap: 16px; margin: 28px 0 20px; min-height: 24px; }
.sv-fly__title { font-family: var(--sv-font) !important; font-size: 14px !important; line-height: 20px !important; font-weight: 700 !important; letter-spacing: 1.4px; text-transform: uppercase; white-space: nowrap; color: #333 !important; margin: 0 !important; }
.sv-fly__rule { flex: 1; height: 0; margin: 0; border: 0; border-top: 1px solid var(--sv-rule); background: none; }
.sv-fly__all { font-size: 12px; font-weight: 700; line-height: 14px; letter-spacing: .05em; text-transform: uppercase; white-space: nowrap; padding: 4px 8px; border-radius: 999px; background: var(--fc-pill); color: var(--sv-ink) !important; transition: opacity .2s; }
.sv-fly__all:hover { opacity: .75; }
.sv-fly__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }

/* product card (reference: .header-flyout-card) */
.sv-fcard { position: relative; display: flex; align-items: center; gap: 4px; padding: 16px; min-width: 0; background: var(--fc-bg); border: 1px solid var(--fc-bd); color: var(--sv-ink) !important; }
.sv-fcard::before { content: ""; position: absolute; inset: 0; background: var(--fc-hover); opacity: 0; transition: opacity .3s ease-in-out; pointer-events: none; z-index: 0; }
.sv-fcard::after { content: ""; position: absolute; top: 0; bottom: 0; inset-inline-start: 0; width: 5px; background: var(--fc-bar); opacity: 0; transition: opacity .3s ease-in-out; pointer-events: none; z-index: 2; }
.sv-fcard:hover::before, .sv-fcard:hover::after, .sv-fcard:focus-visible::before, .sv-fcard:focus-visible::after { opacity: 1; }
.sv-fcard__img { position: relative; z-index: 1; flex: none; width: 48px; height: 48px; margin-inline-end: 8px; overflow: hidden; }
.sv-fcard__img img { width: 100% !important; height: 100% !important; object-fit: cover; display: block; }
.sv-fcard__body { position: relative; z-index: 1; flex: 1; min-width: 0; overflow: hidden; display: flex; flex-direction: column; }
.sv-fcard__title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 4px; font-size: 16px; font-weight: 700; line-height: 18px; letter-spacing: 1.6px; text-transform: uppercase; color: #000; }
.sv-fcard__desc { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 2px; font-size: 12px; font-weight: 400; line-height: 14.5px; color: #000; }

/* ---------- language & region ---------- */
.sv-loc { position: relative; display: flex; align-items: center; }
.sv-loc__trigger { display: inline-flex !important; align-items: center; gap: .35rem; padding: .4rem .7rem !important; border: 1px solid transparent !important; border-radius: 999px !important; font-size: 13px !important; font-weight: 700 !important; letter-spacing: .02em !important; text-transform: uppercase !important; white-space: nowrap; transition: background-color .2s; }
.sv-loc__trigger:hover { background-color: rgba(0, 0, 0, .05) !important; }
.sv-loc__current { display: inline-flex; align-items: center; gap: .3rem; direction: ltr; }
.sv-loc__sep { opacity: .45; font-weight: 400; }
.sv-loc__caret { width: 10px; height: 6px; transition: transform .2s ease; }
.sv-loc__trigger[aria-expanded="true"] .sv-loc__caret { transform: rotate(180deg); }
.sv-loc__panel { position: absolute; top: calc(100% + 8px); inset-inline-end: 0; min-width: 230px; background: #fff; color: #000; border: 1px solid rgba(0, 0, 0, .1); border-radius: 12px; box-shadow: 0 8px 28px rgba(0, 0, 0, .12); padding: .5rem; z-index: 200; }
.sv-loc__panel[hidden] { display: none; }
.sv-loc__group + .sv-loc__group { margin-top: .35rem; padding-top: .5rem; border-top: 1px solid rgba(0, 0, 0, .08); }
.sv-loc__label { font-size: 11px; line-height: 1.4; text-transform: uppercase; letter-spacing: .06em; opacity: .55; margin: .25rem .5rem !important; text-align: start; }
.sv-loc__opt { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .55rem .6rem; border-radius: 8px; font-size: 14px; font-weight: 500; line-height: 1.3; text-align: start; color: #000 !important; }
a.sv-loc__opt:hover { background-color: rgba(0, 0, 0, .06); }
.sv-loc__opt.is-active { font-weight: 700; }
.sv-loc__currency { opacity: .55; font-weight: 400; font-size: .92em; }
.sv-loc__check { width: 16px; height: 16px; }

/* ---------- basket ---------- */
.sv-hdr__cart svg { width: 26px; height: 18px; }
.sv-hdr__count { position: absolute; top: 6px; inset-inline-end: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: #123F37; color: #fff !important; font-size: 10px; font-weight: 700; line-height: 18px; text-align: center; }
.sv-hdr__count[data-count="0"] { display: none; }

/* ---------- search ---------- */
.sv-search { position: absolute; left: 0; right: 0; top: 100%; z-index: 60; background: #fff; border-top: 1px solid #e5e7eb; box-shadow: 0 4px 6px -1px rgba(0, 0, 0, .1), 0 2px 4px -2px rgba(0, 0, 0, .1); padding: 20px 56px; }
.sv-search[hidden] { display: none; }
.sv-search__form { display: flex; align-items: center; gap: 8px; max-width: 760px; margin: 0 auto; }
.sv-hdr-wrap .sv-search__input { flex: 1; height: 48px !important; margin: 0 !important; padding: 0 20px !important; border: 1px solid #121212 !important; border-radius: 999px !important; background: #fff !important; font: 500 16px var(--sv-font) !important; color: #000 !important; box-shadow: none !important; outline: none; }
.sv-hdr-wrap .sv-search__input:focus { box-shadow: 0 0 0 3px rgba(0, 0, 0, .08) !important; }
.sv-search__go, .sv-search__close { display: inline-flex !important; align-items: center; justify-content: center; width: 48px !important; height: 48px !important; border-radius: 999px !important; }
.sv-search__go:hover, .sv-search__close:hover { background: rgba(0, 0, 0, .05) !important; }

/* ---------- phone quick links (hidden on desktop) ---------- */
.sv-qlinks { display: none; }

/* ---------- drawer ---------- */
.sv-drawer-overlay { position: fixed; inset: 0; z-index: 99998; background: rgba(17, 24, 39, .6); opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility .3s; }
.sv-drawer { position: fixed; top: 0; bottom: 0; inset-inline-start: 0; z-index: 99999; width: 375px; max-width: 100vw; height: 100%; height: 100dvh; display: flex; flex-direction: column; background: #fff; box-shadow: 2px 0 10px rgba(0, 0, 0, .1); transform: translateX(-100%); visibility: hidden; transition: transform .3s ease, visibility .3s; color: #000; }
html[dir="rtl"] .sv-drawer { transform: translateX(100%); box-shadow: -2px 0 10px rgba(0, 0, 0, .1); }
html.sv-drawer-open .sv-drawer { transform: translateX(0); visibility: visible; }
html.sv-drawer-open .sv-drawer-overlay { opacity: 1; visibility: visible; }
html.sv-drawer-open, html.sv-drawer-open body { overflow: hidden; }
.sv-drawer__top { display: flex; align-items: center; height: 64px; padding: 0 16px; flex: none; }
.sv-drawer__close { display: inline-flex !important; align-items: center; justify-content: center; width: 48px !important; height: 48px !important; margin-inline-start: auto; }
.sv-drawer__body { flex: 1; overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; }
.sv-drawer__menu { display: grid; padding: 16px 0 32px; }
.sv-drawer .sv-mlink { display: flex !important; align-items: center; justify-content: space-between; width: 100% !important; padding: 16px 32px !important; font-size: 16px !important; font-weight: 700 !important; line-height: 16px !important; color: #000 !important; text-align: start; }
.sv-mlink__chev { display: inline-flex; width: 17.5px; height: 17.5px; transition: transform .3s; }
.sv-mlink__chev svg { width: 17.5px; height: 17.5px; }
.sv-mlink[aria-expanded="true"] .sv-mlink__chev { transform: rotate(180deg); }
.sv-macc__panel { background: var(--fc-soft); }
.sv-macc__panel[hidden] { display: none; }
.sv-macc__list { display: flex; flex-direction: column; }
.sv-macc__list .sv-fcard { border-left: 0; border-right: 0; }
.sv-macc__list .sv-fcard:not(:last-of-type) { border-bottom: 0; }
.sv-macc__list .sv-fcard__title { font-size: 14px; letter-spacing: 1.2px; }
.sv-macc__all { display: block; padding: 16px; font-size: 14px; font-weight: 700; color: #000 !important; text-decoration: underline !important; text-underline-offset: 3px; }
.sv-mdivider { padding: 16px 32px; }
.sv-mdivider hr { margin: 0; height: 0; border: 0; border-top: 2px solid #d3d8de; background: none; }
.sv-drawer__loc { padding: 16px 32px; }
.sv-drawer__loc .sv-loc__panel { inset-inline-end: auto; inset-inline-start: 0; top: auto; bottom: calc(100% + 8px); }
.sv-drawer__account { flex: none; background: #f7f7f7; border-top: 1px solid #d3d8de; }
.sv-drawer__account a { display: flex; align-items: center; gap: 12px; padding: 18px 32px; font-size: 15px; font-weight: 600; color: #000 !important; }

/* ---------- tablets & phones ---------- */
@media (max-width: 1023px) {
	.sv-hdr__inner { padding: 0 8px; }
	.sv-hdr__burger, .sv-hdr__search-m { display: inline-flex !important; }
	.sv-hdr__nav, .sv-hdr__search-d, .sv-hdr__loc { display: none !important; }
	.sv-hdr__logo { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); margin: 0; }
	.sv-hdr__logo img { height: 26px; }
	.sv-hdr__right { gap: 0; }
	.sv-search { padding: 12px 16px; }
	.sv-qlinks { display: flex; align-items: stretch; background: #fff; border-bottom: 1px solid #d3d8de; }
	.sv-qlinks__link { position: relative; flex: 1; padding: 12px 0; text-align: center; font-size: 13px; font-weight: 600; line-height: 18px; letter-spacing: .04em; text-transform: uppercase; color: #000 !important; }
	.sv-qlinks__link::after { content: ""; position: absolute; bottom: -1px; inset-inline-start: 0; width: 0; height: 2px; background: currentColor; transition: width .2s ease-in-out; }
	.sv-qlinks__link:hover::after, .sv-qlinks__link.is-active::after { width: 100%; }
}
@media (min-width: 1024px) {
	.sv-drawer, .sv-drawer-overlay { display: none; }
}
@media (min-width: 1024px) and (max-width: 1199px) {
	.sv-hdr__inner { padding: 0 24px; }
	.sv-hdr__link { padding: 12px 14px; letter-spacing: .6px; }
	.sv-fly__wrap { padding: 0 8px 24px; }
}

/* ---------- Arabic ---------- */
html[dir="rtl"] .sv-hdr__link, html[dir="rtl"] .sv-fly__title, html[dir="rtl"] .sv-fly__all, html[dir="rtl"] .sv-fcard__title,
html[dir="rtl"] .sv-qlinks__link, html[dir="rtl"] .sv-drawer .sv-mlink, html[dir="rtl"] .sv-macc__all, html[dir="rtl"] .sv-drawer__account a, html[dir="rtl"] .sv-loc__label {
	font-family: var(--sv-ar-display, "Almarai"), sans-serif !important; letter-spacing: 0 !important;
}
html[dir="rtl"] .sv-ann__item, html[dir="rtl"] .sv-fcard__desc, html[dir="rtl"] .sv-loc__opt, html[dir="rtl"] .sv-hdr-wrap .sv-search__input {
	font-family: "IBM Plex Sans Arabic", var(--sv-font) !important; letter-spacing: 0;
}
html[dir="rtl"] .sv-ann__item { font-size: 12px; font-weight: 600; }
html[dir="rtl"] .sv-hdr__link { font-size: 15px; font-weight: 700; line-height: 1.2; }
html[dir="rtl"] .sv-fcard__title { line-height: 1.35; margin-bottom: 2px; }
html[dir="rtl"] .sv-fcard__desc { line-height: 1.55; }
html[dir="rtl"] .sv-fly__title { line-height: 1.4 !important; }
html[dir="rtl"] .sv-drawer .sv-mlink { line-height: 1.3 !important; }

/* the header replaces the theme's floating language pill and Elementor's old header */
.trp-language-switcher-container.trp-floater-ls, #trp-floater-ls, nav.trp-floating-switcher { display: none !important; }

/* ---------- floating WhatsApp button ---------- */
.sv-wa { position: fixed; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); inset-inline-end: 20px; z-index: 9980; display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 50%; background: #25D366; color: #fff !important; box-shadow: 0 6px 20px rgba(0, 0, 0, .18); transition: transform .2s ease, bottom .3s ease; }
.sv-wa:hover { transform: scale(1.06); }
.sv-wa svg { display: block; }
html.sv-drawer-open .sv-wa { display: none; }
@media (max-width: 767px) {
	.sv-wa { width: 52px; height: 52px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); inset-inline-end: 16px; }
	body:has(.sv-quick.is-visible) .sv-wa { bottom: calc(90px + env(safe-area-inset-bottom, 0px)); }
}

/* back-to-top (theme .scrollup) shared the WhatsApp corner and sat under it — it now stacks just above it, centred on it */
a.scrollup { right: 25px !important; left: auto !important; bottom: calc(90px + env(safe-area-inset-bottom, 0px)) !important; }
html[dir="rtl"] a.scrollup { left: 25px !important; right: auto !important; }
@media (max-width: 767px) {
	a.scrollup { right: 19px !important; bottom: calc(80px + env(safe-area-inset-bottom, 0px)) !important; }
	html[dir="rtl"] a.scrollup { left: 19px !important; right: auto !important; }
	body:has(.sv-quick.is-visible) a.scrollup { bottom: calc(154px + env(safe-area-inset-bottom, 0px)) !important; }
}

/* ---------- 404 (child 404.php) ---------- */
.sv-404 { max-width: 640px; margin: 0 auto; padding: 72px 24px 96px; text-align: center; font-family: var(--sv-font, "Montserrat", sans-serif); }
.sv-404__code { margin: 0 0 8px !important; font-family: "Jost", "Montserrat", sans-serif; font-size: 96px; font-weight: 700; line-height: 1; color: #123F37; }
.sv-404 .sv-404__title { margin: 0 0 12px !important; font-family: "Jost", "Montserrat", sans-serif !important; font-size: 32px !important; font-weight: 700 !important; line-height: 1.2 !important; color: #121212 !important; text-transform: none !important; }
.sv-404__text { margin: 0 0 28px !important; font-size: 16px; line-height: 1.6; color: #444; }
.sv-404__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.sv-404__btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 28px; border-radius: 50px; border: 1.5px solid #121212; color: #121212 !important; font-size: 15px; font-weight: 700; text-decoration: none !important; transition: background-color .2s, color .2s; }
.sv-404__btn:hover { background: #121212; color: #fff !important; }
.sv-404__btn--primary { background: #121212; color: #fff !important; }
.sv-404__btn--primary:hover { background: #000; }
@media (max-width: 767px) { .sv-404 { padding: 48px 16px 64px; } .sv-404__code { font-size: 72px; } .sv-404 .sv-404__title { font-size: 26px !important; } .sv-404__btn { flex: 1 1 100%; } }
html[dir="rtl"] .sv-404 .sv-404__title { font-family: var(--sv-ar-display, "Almarai"), sans-serif !important; }
html[dir="rtl"] .sv-404__text, html[dir="rtl"] .sv-404__btn { font-family: "IBM Plex Sans Arabic", sans-serif !important; }
