/* =====================================================================
   Souq storefront — Dawn-inspired, RTL-first (logical properties only).
   ===================================================================== */

/* ---------------------------------------------------------------- fonts
   Two weights only (400, 600): fewer files = less layout shift. Browsers
   map 500 → 400 and 700 → 600. */

@font-face { font-family: "Souq Plex"; src: url(../fonts/plex-arabic-arabic-400.woff2) format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200E, U+2010-2011, U+204F, U+2E41; }
@font-face { font-family: "Souq Plex"; src: url(../fonts/plex-arabic-arabic-600.woff2) format("woff2"); font-weight: 600; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200E, U+2010-2011, U+204F, U+2E41; }
@font-face { font-family: "Souq Plex"; src: url(../fonts/plex-arabic-latin-400.woff2) format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: "Souq Plex"; src: url(../fonts/plex-arabic-latin-600.woff2) format("woff2"); font-weight: 600; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212; }

/* ---------------------------------------------------------------- tokens */

:root {
	--souq-bg: #ffffff;
	--souq-surface: #f4f4f5;
	--souq-text: #121212;
	--souq-muted: #6b6b70;
	--souq-line: #e7e7e9;
	--souq-ink: #121212;          /* primary buttons */
	--souq-ink-hover: #2c2c30;
	--souq-brand-blue: #1d5fbf;   /* Sou9 Electro logo colours */
	--souq-brand-orange: #f0832a;
	--souq-accent: var(--souq-brand-blue); /* links, focus, small highlights */
	--souq-sale: #d9691a;         /* sale prices: darker orange for contrast on white */
	--souq-badge: var(--souq-brand-orange);
	--souq-success: #138a4f;
	--souq-wa: #25d366;

	--souq-radius: 12px;
	--souq-radius-sm: 8px;
	--souq-container: 1320px;
	--souq-gutter: clamp(16px, 3.5vw, 40px);
	--souq-header-h: 68px;
	--souq-ease: cubic-bezier(.2, .7, .2, 1);
	--souq-font: "Souq Plex", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;

	/* Map onto Blocksy's variables so its templates follow the same look. */
	--theme-font-family: var(--souq-font);
	--theme-font-stack-default: var(--souq-font);
	--theme-text-color: var(--souq-text);
	--theme-headings-color: var(--souq-text);
	--theme-link-initial-color: var(--souq-text);
	--theme-link-hover-color: var(--souq-accent);
	--theme-border-color: var(--souq-line);
	--theme-palette-color-1: var(--souq-ink);
	--theme-palette-color-2: var(--souq-ink-hover);
	--theme-palette-color-3: var(--souq-muted);
	--theme-palette-color-4: var(--souq-text);
	--theme-palette-color-5: var(--souq-line);
	--theme-palette-color-6: var(--souq-surface);
	--theme-palette-color-7: #fafafa;
	--theme-palette-color-8: #ffffff;
	--theme-button-background-initial-color: var(--souq-ink);
	--theme-button-background-hover-color: var(--souq-ink-hover);
	--theme-button-text-initial-color: #fff;
	--theme-button-text-hover-color: #fff;
	--theme-button-min-height: 50px;
	--theme-button-border-radius: var(--souq-radius-sm);
	--theme-form-border-radius: var(--souq-radius-sm);
	--theme-form-field-height: 50px;
	--theme-form-field-border-initial-color: #d6d6da;
	--theme-form-field-border-focus-color: var(--souq-ink);
	--theme-normal-container-max-width: var(--souq-container);
	--theme-content-vertical-spacing: clamp(28px, 5vw, 56px);
}

/* ---------------------------------------------------------------- base */

html { -webkit-text-size-adjust: 100%; }
body.souq {
	background: var(--souq-bg);
	color: var(--souq-text);
	font-family: var(--souq-font);
	font-size: 16px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
.souq h1, .souq h2, .souq h3, .souq h4 { font-family: var(--souq-font); letter-spacing: -0.01em; }
[dir="rtl"] .souq h1, [dir="rtl"] .souq h2, [dir="rtl"] .souq h3 { letter-spacing: 0; }
.souq img { max-width: 100%; height: auto; }
.souq a { text-underline-offset: 3px; }
.souq :focus-visible { outline: 2px solid var(--souq-accent); outline-offset: 2px; }

.souq-container {
	width: 100%;
	max-width: calc(var(--souq-container) + 2 * var(--souq-gutter));
	margin-inline: auto;
	padding-inline: var(--souq-gutter);
}
.souq-icon { width: 22px; height: 22px; flex: none; }
/* Components below set their own display (flex/grid), which beats the
   browser's [hidden] rule; an invisible full-screen popup then swallowed
   every click on checkout. */
[hidden] { display: none !important; }
.souq-num { unicode-bidi: isolate; direction: ltr; }
.souq-visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.souq-skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 1000; background: var(--souq-ink); color: #fff; padding: 10px 16px; border-radius: var(--souq-radius-sm); }
.souq-skip:focus { top: 12px; }

/* Buttons — solid ink, Dawn-like. */
.souq .button, .souq button.button, .souq input[type="submit"], .souq .wp-element-button {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 50px; padding: 0 28px;
	border-radius: var(--souq-radius-sm);
	background: var(--souq-ink); color: #fff;
	font-family: var(--souq-font); font-weight: 600; font-size: 15px; line-height: 1.2;
	border: 1px solid var(--souq-ink);
	transition: background .2s var(--souq-ease), transform .2s var(--souq-ease), box-shadow .2s;
	text-decoration: none; cursor: pointer;
}
.souq .button:hover { background: var(--souq-ink-hover); color: #fff; }
.souq .button:active { transform: scale(.98); }
.souq .button.loading { opacity: .6; pointer-events: none; }
.souq .button.added::after { display: none; }
.souq .added_to_cart { display: none !important; }

.souq-icon-btn {
	display: inline-flex; align-items: center; justify-content: center;
	width: 44px; height: 44px; padding: 0;
	background: none; border: 0; border-radius: 50%;
	color: var(--souq-text); cursor: pointer; position: relative;
	transition: background .15s;
}
.souq-icon-btn:hover { background: var(--souq-surface); color: var(--souq-text); }

.souq-link-btn { background: none; border: 0; color: var(--souq-muted); text-decoration: underline; cursor: pointer; font: inherit; font-size: 14px; padding: 8px; }

/* ---------------------------------------------------------------- announcement + header */

.souq-announcement {
	background: var(--souq-ink); color: #fff;
	font-size: 13px; font-weight: 500; text-align: center;
	padding: 9px 0; letter-spacing: .01em;
}

.souq-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(255, 255, 255, .92);
	backdrop-filter: saturate(180%) blur(12px);
	-webkit-backdrop-filter: saturate(180%) blur(12px);
	border-bottom: 1px solid transparent;
	transition: border-color .2s, box-shadow .2s;
}
.admin-bar .souq-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .souq-header { top: 0; } }
.souq-header.is-scrolled { border-bottom-color: var(--souq-line); }

.souq-header__inner {
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	gap: 24px;
	min-height: var(--souq-header-h);
}
.souq-header__menu { display: none; }

.souq-logo { display: inline-flex; align-items: center; text-decoration: none; color: var(--souq-text); }
.souq-logo__text { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; }
.souq-logo__img { max-height: 44px; width: auto; }
/* Wordmark (no uploaded logo): mark + "sou9" over "electro" */
.souq-logo__brand { display: inline-flex; align-items: center; gap: 10px; direction: ltr; }
.souq-logo__mark { width: 36px; height: 36px; flex: 0 0 auto; }
.souq-logo__mark svg { width: 100%; height: 100%; display: block; }
.souq-logo__word { display: grid; line-height: 1; }
.souq-logo__sou { font-size: 24px; font-weight: 700; letter-spacing: -0.03em; color: var(--souq-brand-blue); }
.souq-logo__nine { color: var(--souq-brand-orange); }
.souq-logo__electro { font-size: 11px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--souq-brand-orange); margin-top: 3px; }
.souq-logo__brand--footer { gap: 14px; }
.souq-logo__brand--footer .souq-logo__mark { width: 44px; height: 44px; }
.souq-logo__brand--footer .souq-logo__sou { font-size: 30px; }
.souq-logo__brand--footer .souq-logo__electro { font-size: 12px; }
.souq-logo__ar { align-self: center; margin-inline-start: 6px; padding-inline-start: 16px; border-inline-start: 1px solid var(--souq-line); font-size: 20px; font-weight: 600; color: var(--souq-brand-blue); direction: rtl; }
@media (max-width: 999px) { .souq-logo__mark { width: 30px; height: 30px; } .souq-logo__sou { font-size: 21px; } .souq-logo__electro { font-size: 10px; } }

.souq-nav__list { display: flex; flex-wrap: wrap; gap: 4px; list-style: none; margin: 0; padding: 0; }
.souq-nav .souq-nav__list { justify-content: center; }
.souq-nav__list > li { position: relative; }
.souq-nav__list a, .souq-nav__list .souq-nav__label {
	display: block; padding: 8px 12px; border-radius: 6px;
	color: var(--souq-text); text-decoration: none; font-size: 15px; font-weight: 500;
}
.souq-nav__list a:hover, .souq-nav__list .souq-nav__label:hover { color: var(--souq-text); background: var(--souq-surface); }
.souq-nav .current-menu-ancestor > .souq-nav__link { text-decoration: underline; text-underline-offset: 6px; }
.souq-nav__label { cursor: default; }
/* Small chevron on entries that open a panel. */
.souq-nav__list > li.has-panel > .souq-nav__link { position: relative; padding-inline-end: 26px; }
.souq-nav__list > li.has-panel > .souq-nav__link::after {
	content: ""; position: absolute; inset-inline-end: 11px; top: 50%;
	width: 6px; height: 6px; border: solid currentColor; border-width: 0 1.5px 1.5px 0;
	transform: translateY(-70%) rotate(45deg); opacity: .55;
}
/* Desktop panel: subcategories + brands of the hovered category. */
.souq-mega {
	position: absolute; inset-inline-start: 0; top: 100%; z-index: 20;
	display: flex; gap: 36px; margin-top: 10px; padding: 20px 24px 22px;
	background: #fff; border: 1px solid var(--souq-line); border-radius: var(--souq-radius);
	box-shadow: 0 12px 32px rgba(0, 0, 0, .08);
	opacity: 0; visibility: hidden; transform: translateY(4px);
	transition: opacity .15s, transform .15s, visibility .15s;
}
.souq-mega::before { content: ""; position: absolute; inset-inline: 0; top: -12px; height: 12px; } /* hover bridge */
.souq-nav li:hover > .souq-mega, .souq-nav li:focus-within > .souq-mega { opacity: 1; visibility: visible; transform: none; }
.souq-mega__col { min-width: 150px; }
.souq-mega__title { display: block; margin-bottom: 8px; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--souq-muted); white-space: nowrap; }
.souq-mega__links { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.souq-mega--brands .souq-mega__links { grid-template-columns: repeat(2, auto); column-gap: 24px; }
.souq-nav .souq-mega__links a { padding: 6px 8px; margin-inline: -8px; font-size: 14px; font-weight: 400; white-space: nowrap; }
.souq-nav .souq-mega__links a.is-current { font-weight: 600; }

.souq-header__actions { display: flex; align-items: center; gap: 2px; }

.souq-cart-count {
	position: absolute; top: 4px; inset-inline-end: 2px;
	min-width: 18px; height: 18px; padding: 0 5px;
	border-radius: 9px; background: var(--souq-ink); color: #fff;
	font-size: 11px; font-weight: 700; line-height: 18px; text-align: center;
	font-variant-numeric: tabular-nums;
}
.souq-cart-count[data-count="0"] { display: none; }
.souq-cart-btn.is-bumped .souq-cart-count { animation: souq-bump .4s var(--souq-ease); }
@keyframes souq-bump { 40% { transform: scale(1.35); } }

.souq-lang__link {
	display: inline-flex; align-items: center; gap: 6px;
	padding: 8px 12px; border-radius: 999px;
	font-size: 14px; font-weight: 500; color: var(--souq-text); text-decoration: none;
}
.souq-lang__link:hover { background: var(--souq-surface); color: var(--souq-text); }
.souq-lang__link .souq-icon { width: 18px; height: 18px; }

.souq-search { border-top: 1px solid var(--souq-line); background: #fff; padding: 14px 0; }
.souq-search__form { display: flex; align-items: center; gap: 10px; }
.souq-search__form > .souq-icon { color: var(--souq-muted); }
.souq-search__form input[type="search"] {
	flex: 1; height: 48px; border: 0; background: transparent; font-size: 17px; padding: 0;
	box-shadow: none; outline: none;
}

@media (max-width: 999px) {
	.souq-header__inner { grid-template-columns: 1fr auto 1fr; gap: 8px; --souq-header-h: 60px; }
	.souq-header__menu { display: inline-flex; justify-self: start; }
	.souq-logo { justify-self: center; }
	.souq-logo__text { font-size: 22px; }
	.souq-nav { display: none; }
	.souq-header__actions { justify-self: end; }
	.souq-header__actions .souq-lang { display: none; }
}

/* ---------------------------------------------------------------- drawers */

.souq-drawer { position: fixed; inset: 0; z-index: 200; visibility: hidden; pointer-events: none; }
.souq-drawer.is-open { visibility: visible; pointer-events: auto; }
.souq-drawer__overlay { position: absolute; inset: 0; background: rgba(18, 18, 18, .4); opacity: 0; transition: opacity .3s var(--souq-ease); }
.souq-drawer.is-open .souq-drawer__overlay { opacity: 1; }
.souq-drawer__panel {
	position: absolute; top: 0; bottom: 0;
	width: min(420px, 92vw);
	background: #fff;
	display: flex; flex-direction: column;
	transition: transform .35s var(--souq-ease);
	box-shadow: 0 0 40px rgba(0, 0, 0, .12);
}
/* "end" = left in Arabic, right in French; "start" mirrors it. */
.souq-drawer--end .souq-drawer__panel { inset-inline-end: 0; }
.souq-drawer--start .souq-drawer__panel { inset-inline-start: 0; }
/* :where() keeps these weaker than the .is-open rule below. French pages have
   no dir attribute at all, hence html:not([dir]). */
:where([dir="ltr"], html:not([dir])) .souq-drawer--end .souq-drawer__panel,
:where([dir="rtl"]) .souq-drawer--start .souq-drawer__panel { transform: translateX(100%); }
:where([dir="rtl"]) .souq-drawer--end .souq-drawer__panel,
:where([dir="ltr"], html:not([dir])) .souq-drawer--start .souq-drawer__panel { transform: translateX(-100%); }
.souq-drawer.is-open .souq-drawer__panel { transform: none; }
.souq-drawer__head {
	display: flex; align-items: center; justify-content: space-between;
	padding: 14px 16px 14px 24px; padding-inline: 24px 12px;
	border-bottom: 1px solid var(--souq-line);
}
.souq-drawer__title { font-size: 18px; font-weight: 600; }
.souq-drawer__body { flex: 1; overflow-y: auto; padding: 12px 16px; }
.souq-drawer__foot { padding: 16px 24px; border-top: 1px solid var(--souq-line); }
body.souq-lock { overflow: hidden; }

/* Mobile menu: one row per category, chevron opens subcategories + brands. */
.souq-mobile-nav .souq-nav__list { flex-direction: column; gap: 0; }
.souq-acc > li { border-bottom: 1px solid var(--souq-line); }
.souq-acc__row { display: flex; align-items: center; }
.souq-mobile-nav .souq-acc__row > a, .souq-acc__row > .souq-nav__label { flex: 1; display: block; font-size: 18px; font-weight: 500; padding: 14px 8px; border-radius: 0; }
.souq-mobile-nav .souq-acc__row > a.is-current { font-weight: 600; }
.souq-acc__toggle {
	display: inline-flex; align-items: center; justify-content: center;
	width: 44px; height: 44px; border: 0; border-radius: 50%; background: none; color: var(--souq-muted); cursor: pointer;
}
.souq-acc__toggle .souq-icon { transition: transform .2s var(--souq-ease); }
.souq-acc__toggle[aria-expanded="true"] .souq-icon { transform: rotate(180deg); }
.souq-acc__panel { padding: 0 8px 14px; }
.souq-acc__title { display: block; margin: 12px 0 2px; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--souq-muted); }
.souq-acc__links { list-style: none; margin: 0; padding: 0; }
.souq-acc__links--brands { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.souq-mobile-nav .souq-acc__links a { display: block; font-size: 16px; padding: 10px 8px; color: var(--souq-muted); border-radius: 6px; }
.souq-mobile-nav .souq-acc__links--brands a { padding: 6px 12px; border: 1px solid var(--souq-line); border-radius: 999px; font-size: 14px; color: var(--souq-text); }
.souq-mobile-nav .souq-acc__links a.is-current { color: var(--souq-text); font-weight: 600; }
.souq-mobile-nav .souq-acc__all { display: inline-block; margin: 10px 8px 0; font-size: 14px; font-weight: 600; color: var(--souq-text); text-decoration: underline; text-underline-offset: 4px; }

/* Cart drawer — mini cart */
#souq-cart-drawer .widget_shopping_cart_content { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.souq-mini-cart { list-style: none; margin: 0; padding: 8px 24px; flex: 1; overflow-y: auto; }
.souq-mini-cart__item {
	display: grid; grid-template-columns: 84px 1fr; gap: 14px; align-items: start;
	padding: 18px 0; border-bottom: 1px solid var(--souq-line);
	transition: opacity .2s;
}
.souq-mini-cart__item.is-updating { opacity: .45; pointer-events: none; }
.souq-mini-cart__thumb img { width: 84px; height: 84px; object-fit: cover; border-radius: var(--souq-radius-sm); background: var(--souq-surface); }
.souq-mini-cart__name { display: block; font-size: 15px; font-weight: 500; line-height: 1.45; color: var(--souq-text); text-decoration: none; }
.souq-mini-cart__variant { display: block; margin-top: 2px; font-size: 13px; color: var(--souq-muted); }
.souq-mini-cart__row { display: flex; align-items: center; margin-top: 10px; gap: 6px; }
.souq-mini-cart__price { font-weight: 600; font-size: 15px; white-space: nowrap; margin-inline-start: auto; }
.souq .souq-mini-cart__item a.remove { position: static; }
.souq .souq-mini-cart__remove {
	display: inline-flex; width: 36px; height: 36px; align-items: center; justify-content: center;
	color: var(--souq-muted) !important; background: none !important; border-radius: 50%; font-size: 0;
}
.souq .souq-mini-cart__remove:hover { color: var(--souq-sale) !important; background: var(--souq-surface) !important; }
.souq-mini-cart__remove .souq-icon { width: 18px; height: 18px; }

.souq-qty { display: inline-flex; align-items: center; border: 1px solid var(--souq-line); border-radius: 999px; height: 38px; }
.souq-qty__btn { width: 36px; height: 36px; border: 0; background: none; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; color: var(--souq-text); border-radius: 50%; }
.souq-qty__btn:disabled { opacity: .3; cursor: default; }
.souq-qty__btn .souq-icon { width: 16px; height: 16px; }
.souq-qty__value { min-width: 26px; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }

.souq-mini-cart__footer { padding: 18px 24px 24px; border-top: 1px solid var(--souq-line); background: #fff; display: grid; gap: 10px; }
.souq-mini-cart__total { display: flex; justify-content: space-between; margin: 0; font-size: 17px; }
.souq-mini-cart__note { margin: 0; font-size: 13px; color: var(--souq-muted); }
.souq .souq-mini-cart__checkout { width: 100%; min-height: 54px; font-size: 16px; }
.souq-mini-cart__empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 40px 24px; text-align: center; color: var(--souq-muted); }
.souq-mini-cart__empty .souq-icon { width: 48px; height: 48px; stroke-width: 1.2; }
.souq-mini-cart__empty p { margin: 0; font-size: 17px; color: var(--souq-text); }

/* ---------------------------------------------------------------- home: hero */

.souq-hero {
	position: relative; overflow: hidden; isolation: isolate;
	background:
		radial-gradient(900px 600px at 80% 20%, #dfe7ff 0%, transparent 60%),
		radial-gradient(700px 500px at 15% 90%, #ffe9d6 0%, transparent 60%),
		linear-gradient(135deg, #f8f8fb 0%, #eef2fb 100%);
}
/* faint dot grid for texture */
.souq-hero.has-stage::after {
	content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
	background-image: radial-gradient(rgba(18, 18, 18, .08) 1px, transparent 1px); background-size: 22px 22px;
	mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .7), transparent 80%);
}
.souq-hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.souq-hero.has-image::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(0, 0, 0, .55), rgba(0, 0, 0, .1) 60%); }
.souq-hero__inner { min-height: clamp(420px, 62vh, 640px); display: flex; align-items: center; padding-block: 64px; }
.souq-hero__content { max-width: 620px; }
.souq-hero__eyebrow {
	display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px; padding: 6px 14px; border-radius: 999px;
	background: #fff; border: 1px solid var(--souq-line); font-size: 13px; font-weight: 600;
}
.souq-hero__title { font-size: clamp(34px, 5.4vw, 64px); line-height: 1.12; font-weight: 700; margin: 0 0 18px; }
.souq-hero__text { font-size: clamp(16px, 1.6vw, 19px); color: var(--souq-muted); margin: 0 0 30px; max-width: 520px; }
.souq-hero.has-image .souq-hero__title, .souq-hero.has-image .souq-hero__text { color: #fff; }
.souq .souq-hero__cta { min-height: 56px; padding-inline: 32px; font-size: 16px; }
.souq-hero__pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--souq-success); box-shadow: 0 0 0 0 rgba(19, 138, 79, .5); animation: souq-pulse 2s infinite; }
@keyframes souq-pulse { 70% { box-shadow: 0 0 0 8px rgba(19, 138, 79, 0); } 100% { box-shadow: 0 0 0 0 rgba(19, 138, 79, 0); } }
.souq-hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.souq-hero__secondary { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--souq-text); text-decoration: underline; text-underline-offset: 6px; }
.souq-hero__secondary .souq-icon { width: 18px; height: 18px; transition: transform .2s var(--souq-ease); }
.souq-hero__secondary:hover .souq-icon { transform: translateX(4px); }
[dir="rtl"] .souq-hero__secondary .souq-icon { transform: scaleX(-1); }
[dir="rtl"] .souq-hero__secondary:hover .souq-icon { transform: scaleX(-1) translateX(4px); }
.souq-hero__proof { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 14px; color: var(--souq-muted); }
.souq-hero__proof li { display: flex; align-items: center; gap: 8px; }
.souq-hero__proof .souq-icon { width: 18px; height: 18px; color: var(--souq-success); }

/* Product stage (no banner image set) */
.souq-hero.has-stage .souq-hero__inner { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 32px; align-items: center; }
.souq-stage { position: relative; aspect-ratio: 1; max-width: 560px; justify-self: center; width: 100%; }
.souq-stage__glow {
	position: absolute; inset: 8%; border-radius: 50%;
	background: radial-gradient(circle at 50% 45%, #ffffff 0%, #e4ebff 45%, transparent 72%);
	filter: blur(2px);
}
.souq-stage__glow::after { content: ""; position: absolute; inset: 18%; border-radius: 50%; border: 1px dashed rgba(18, 18, 18, .12); animation: souq-spin 60s linear infinite; }
@keyframes souq-spin { to { transform: rotate(360deg); } }
/* Supplier photos come on white/grey backgrounds, so each product sits in a
   white card on purpose (multiply blends the photo's background away). */
.souq-stage__item {
	position: absolute; display: block; text-decoration: none; color: var(--souq-text);
	background: #fff; border-radius: 28px; padding: 7%;
	box-shadow: 0 30px 60px rgba(20, 30, 60, .14), 0 2px 6px rgba(0, 0, 0, .04);
	animation: souq-float 7s ease-in-out infinite;
}
/* Pairs rotate every 10s (souq.js); only the active one is visible/clickable. */
.souq-stage__slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .6s var(--souq-ease), visibility 0s .6s; }
.souq-stage__slide.is-active { opacity: 1; visibility: visible; transition: opacity .6s var(--souq-ease); }
.souq-stage__item--main { inset-inline-start: 14%; top: 5%; width: 66%; }
.souq-stage__item--side { inset-inline-end: 2%; bottom: 9%; width: 40%; padding: 5%; border-radius: 22px; animation-duration: 9s; animation-delay: -3s; }
.souq-stage__img { display: block; width: 100%; height: auto; mix-blend-mode: multiply; }
@keyframes souq-float { 50% { transform: translateY(-10px); } }
.souq-stage__tag {
	position: absolute; inset-inline-start: -8%; bottom: 8%; display: grid; gap: 2px; max-width: 250px;
	padding: 10px 14px; border-radius: 12px; background: #fff;
	box-shadow: 0 10px 30px rgba(20, 30, 60, .14); font-size: 13px; unicode-bidi: plaintext; text-align: start;
}
.souq-stage__tag strong { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.souq-stage__tag .price { font-weight: 700; color: var(--souq-sale); }
.souq-stage__tag .price del { color: var(--souq-muted); font-weight: 400; margin-inline-end: 6px; }
.souq-stage__tag .souq-from { display: none; }
.souq-stage__item--side .souq-stage__tag { inset-inline-start: auto; inset-inline-end: -6%; bottom: -16%; }
.souq-stage__chip {
	position: absolute; display: inline-flex; align-items: center; gap: 8px;
	padding: 8px 14px; border-radius: 999px; background: #fff; box-shadow: 0 8px 24px rgba(20, 30, 60, .12);
	font-size: 13px; font-weight: 600;
}
.souq-stage__chip .souq-icon { width: 18px; height: 18px; color: var(--souq-success); }
.souq-stage__chip--delivery { top: 6%; inset-inline-end: 4%; animation: souq-float 8s ease-in-out infinite; animation-delay: -2s; }
.souq-stage__chip--cod { bottom: 2%; inset-inline-start: 12%; }
@media (max-width: 999px) {
	.souq-hero.has-stage .souq-hero__inner { grid-template-columns: 1fr; padding-block: 44px 24px; min-height: 0; }
	.souq-stage { max-width: 420px; margin-top: 8px; }
	.souq-stage__chip--delivery { top: 2%; }
	.souq-hero__proof { gap: 8px 16px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) { .souq-stage__item, .souq-stage__chip, .souq-stage__glow::after, .souq-hero__pulse { animation: none; } }
[dir="rtl"] .souq-hero__cta .souq-icon, [dir="rtl"] .souq-section__more .souq-icon { transform: scaleX(-1); }

/* ---------------------------------------------------------------- home: usp strip */

.souq-usp-strip { border-bottom: 1px solid var(--souq-line); }
.souq-usp-strip__inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding-block: 22px; }
.souq-usp-strip__inner > div { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--souq-muted); }
.souq-usp-strip__inner strong { display: block; color: var(--souq-text); font-size: 15px; font-weight: 600; }
.souq-usp-strip .souq-icon { width: 28px; height: 28px; stroke-width: 1.4; }
@media (max-width: 899px) {
	.souq-usp-strip__inner { grid-template-columns: repeat(2, 1fr); gap: 18px 12px; }
}

/* ---------------------------------------------------------------- sections + grids */

.souq-section { padding-block: clamp(36px, 6vw, 72px) 0; }
.souq-section:last-of-type { padding-bottom: clamp(36px, 6vw, 72px); }
.souq-section__head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.souq-section__title { font-size: clamp(22px, 2.6vw, 30px); font-weight: 700; margin: 0; }
.souq-section__more { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 15px; color: var(--souq-text); text-decoration: none; white-space: nowrap; }
.souq-section__more:hover { color: var(--souq-accent); }
.souq-section__more .souq-icon { width: 18px; height: 18px; }

.souq ul.products.souq-grid,
.souq .woocommerce ul.products,
.souq ul.products {
	display: grid !important;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 32px 20px;
	list-style: none; margin: 0; padding: 0;
}
.souq ul.products::before, .souq ul.products::after { display: none !important; }
@media (max-width: 999px) { .souq ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 689px) { .souq ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 12px; } }

/* Home rows scroll sideways on phones (Shopify "slider" behaviour). */
@media (max-width: 689px) {
	.souq ul.products.souq-grid--scroll {
		display: flex !important; overflow-x: auto; scroll-snap-type: x mandatory;
		gap: 12px; margin-inline: calc(-1 * var(--souq-gutter)); padding-inline: var(--souq-gutter);
		scrollbar-width: none;
	}
	.souq ul.products.souq-grid--scroll::-webkit-scrollbar { display: none; }
	.souq ul.products.souq-grid--scroll > li { flex: 0 0 62%; scroll-snap-align: start; }
}

/* ---------------------------------------------------------------- product card */

.souq ul.products li.product.souq-card {
	display: flex; flex-direction: column; gap: 0;
	width: auto !important; margin: 0 !important; padding: 0; float: none;
	text-align: start; position: relative;
}
.souq-card__media {
	position: relative; display: block; overflow: hidden;
	aspect-ratio: 1; border-radius: var(--souq-radius);
	background: var(--souq-surface);
}
.souq-card__img { position: absolute; inset: 0; width: 100% !important; height: 100% !important; object-fit: cover; transition: opacity .4s var(--souq-ease), transform .6s var(--souq-ease); }
@media (hover: hover) {
	.souq-card:hover .souq-card__img { transform: scale(1.04); }
}
.souq-card__badges { position: absolute; top: 12px; inset-inline-start: 12px; display: flex; gap: 6px; }

.souq-badge, .souq span.onsale {
	position: static; display: inline-flex; align-items: center;
	min-height: 0; min-width: 0; padding: 4px 10px; margin: 0;
	border-radius: 999px; font-size: 12px; font-weight: 700; line-height: 1.4;
	background: var(--souq-badge); color: #fff;
}
.souq-badge--muted { background: #fff; color: var(--souq-text); border: 1px solid var(--souq-line); }
.souq-badge--sale { direction: ltr; unicode-bidi: isolate; } /* "-36%" not "36%-" in RTL */

.souq-card__body { padding-top: 14px; display: grid; gap: 4px; }
.souq-card__title { margin: 0; font-size: 15px; font-weight: 500; line-height: 1.45; min-height: 2.9em; } /* two lines: keeps prices and buttons aligned across the row */
.souq-card__title a { color: var(--souq-text); text-decoration: none; }
.souq-card__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; } /* whole card clickable */
.souq-card__price { font-size: 15px; font-weight: 600; color: var(--souq-text); }

.souq .price del { color: var(--souq-muted); font-weight: 400; opacity: 1; font-size: .9em; margin-inline-end: 6px; }
.souq .price ins { text-decoration: none; color: var(--souq-sale); }
.souq .price .amount { font-variant-numeric: tabular-nums; }
.souq-from { font-weight: 400; color: var(--souq-muted); font-size: .9em; }

.souq .souq-card__add {
	position: relative; z-index: 2; margin-top: 12px;
	min-height: 42px; padding: 0 14px; font-size: 14px;
	background: #fff; color: var(--souq-text); border: 1px solid var(--souq-text);
}
.souq .souq-card__add:hover { background: var(--souq-ink); color: #fff; }
.souq .souq-card__add.added { background: var(--souq-success); border-color: var(--souq-success); color: #fff; }

/* ---------------------------------------------------------------- category tiles */

.souq-cats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.souq-cat { display: grid; gap: 12px; text-decoration: none; color: var(--souq-text); }
.souq-cat__media { display: block; aspect-ratio: 1; border-radius: var(--souq-radius); overflow: hidden; background: var(--souq-surface); }
.souq-cat__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--souq-ease); }
.souq-cat:hover .souq-cat__media img { transform: scale(1.05); }
.souq-cat__name { font-weight: 600; font-size: 16px; text-align: center; }
@media (max-width: 899px) {
	.souq-cats {
		display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px;
		margin-inline: calc(-1 * var(--souq-gutter)); padding-inline: var(--souq-gutter); scrollbar-width: none;
	}
	.souq-cats::-webkit-scrollbar { display: none; }
	.souq-cats > li { flex: 0 0 34%; scroll-snap-align: start; }
	.souq-cat__name { font-size: 14px; }
}

/* ---------------------------------------------------------------- WhatsApp banner + float */

.souq-wa-banner {
	display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
	padding: clamp(24px, 4vw, 44px); border-radius: calc(var(--souq-radius) * 1.5);
	background: #0f2a1d; color: #fff;
}
.souq-wa-banner h2 { color: #fff; margin: 0 0 6px; font-size: clamp(22px, 2.6vw, 30px); }
.souq-wa-banner p { margin: 0; color: rgba(255, 255, 255, .75); }
.souq .souq-wa-banner__btn { background: var(--souq-wa); border-color: var(--souq-wa); color: #0b1f14; }
.souq .souq-wa-banner__btn:hover { background: #1fbe5b; color: #0b1f14; }

.souq-wa-float {
	position: fixed; z-index: 90; bottom: calc(20px + env(safe-area-inset-bottom)); inset-inline-end: 20px;
	width: 58px; height: 58px; border-radius: 50%;
	display: flex; align-items: center; justify-content: center;
	background: var(--souq-wa); color: #fff;
	box-shadow: 0 8px 24px rgba(37, 211, 102, .35), 0 2px 6px rgba(0, 0, 0, .12);
	transition: transform .2s var(--souq-ease), bottom .25s var(--souq-ease);
}
.souq-wa-float:hover { transform: scale(1.07); color: #fff; }
body.souq-has-sticky-buy .souq-wa-float { bottom: calc(96px + env(safe-area-inset-bottom)); }

/* ---------------------------------------------------------------- shop archive */

.souq .woo-listing-top, .souq .ct-products-header { margin-bottom: 20px; }
.souq .woocommerce-result-count { color: var(--souq-muted); font-size: 14px; margin: 0; }
.souq .woocommerce-ordering select { height: 42px; border-radius: 999px; padding-inline: 16px 36px; font-size: 14px; }
/* Blocksy's big grey title banner → plain Dawn-style heading. */
.souq .hero-section[data-type="type-2"] {
	--container-padding: 0; background: none !important; min-height: 0 !important;
}
.souq .hero-section[data-type="type-2"] > .entry-header,
.souq .hero-section[data-type="type-2"] .ct-container {
	min-height: 0 !important; padding-block: clamp(28px, 4vw, 48px) 0 !important; align-items: flex-start !important; text-align: start !important;
}
.souq .hero-section .page-title, .souq .woocommerce-products-header__title { font-size: clamp(28px, 4vw, 40px); font-weight: 700; margin: 0; }
.souq .hero-section .page-description { color: var(--souq-muted); max-width: 640px; }
.souq.archive .ct-container[data-vertical-spacing] { padding-top: 20px; }

.souq-chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; margin-bottom: 24px; }
.souq-chips::-webkit-scrollbar { display: none; }
.souq-chip {
	flex: none; padding: 9px 18px; border-radius: 999px;
	border: 1px solid var(--souq-line); background: #fff;
	font-size: 14px; font-weight: 500; color: var(--souq-text); text-decoration: none; white-space: nowrap;
	transition: border-color .15s, background .15s;
}
.souq-chip:hover { border-color: var(--souq-text); color: var(--souq-text); }
.souq-chip.is-active { background: var(--souq-ink); border-color: var(--souq-ink); color: #fff; }

.souq .woocommerce-pagination ul { border: 0 !important; gap: 6px; display: flex; justify-content: center; }
.souq .woocommerce-pagination ul li { border: 0 !important; }
.souq .woocommerce-pagination .page-numbers { border-radius: 50%; min-width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center; }
.souq .woocommerce-pagination .page-numbers.current { background: var(--souq-ink); color: #fff; }

/* ---------------------------------------------------------------- single product */

.souq.single-product .product_title { font-size: clamp(24px, 3vw, 34px); font-weight: 700; line-height: 1.25; margin-bottom: 10px; }
.souq.single-product .summary > .price { font-size: 24px; font-weight: 700; margin-bottom: 18px; }
.souq.single-product .woocommerce-product-details__short-description { color: var(--souq-muted); }
.souq.single-product .woocommerce-product-gallery { border-radius: var(--souq-radius); overflow: hidden; }
/* Square box (Blocksy ratio mod = 1/1); non-square photos sit inside it
   uncropped — on the product page every detail should stay visible. */
.souq.single-product .woocommerce-product-gallery .ct-media-container { background: var(--souq-surface); }
.souq.single-product .woocommerce-product-gallery .ct-media-container > img { object-fit: contain; }
.souq.single-product .flex-control-thumbs img, .souq.single-product .ct-image-container { border-radius: var(--souq-radius-sm); }
.souq.single-product .product_meta .sku_wrapper { display: none; }
/* Supplier content is French: let each paragraph pick its own direction so
   punctuation and "…" land at the right end even on the Arabic site. */
.souq.single-product .woocommerce-product-details__short-description,
.souq .woocommerce-Tabs-panel--description :is(p, li, h2, h3, h4, td, th) { unicode-bidi: plaintext; }
.souq .woocommerce-Tabs-panel--description :is(h1, h2, h3, h4) { font-size: 20px; line-height: 1.4; margin: 1.2em 0 .5em; }
.souq .woocommerce-Tabs-panel--description :is(p, li) { font-size: 15px; }
/* Thumbnails: one scrollable row instead of a wall of 20+ pills. */
.souq.single-product .woocommerce-product-gallery .flexy-pills ol {
	display: flex; flex-wrap: nowrap; gap: 8px; overflow-x: auto; padding-bottom: 6px;
	scroll-snap-type: x mandatory; scrollbar-width: thin;
}
.souq.single-product .woocommerce-product-gallery .flexy-pills ol > li { flex: 0 0 72px; width: 72px; scroll-snap-align: start; }
.souq.single-product .product_meta { font-size: 14px; color: var(--souq-muted); }

/* Variations as buttons */
.souq table.variations { border: 0; margin: 0 0 8px; }
.souq table.variations tr { display: block; margin-bottom: 18px; }
.souq table.variations th, .souq table.variations td { display: block; padding: 0; border: 0; text-align: start; }
.souq table.variations th.label { margin-bottom: 10px; font-size: 14px; font-weight: 600; }
.souq table.variations label { font-weight: 600; }
.souq-swatch-label { font-weight: 400; color: var(--souq-muted); }
.souq-swatch-label:not(:empty)::before { content: ": "; }
.souq-swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.souq-swatch {
	display: inline-flex; align-items: center; gap: 8px;
	min-height: 44px; padding: 0 18px; border-radius: 999px;
	border: 1px solid #d6d6da; background: #fff; color: var(--souq-text);
	font: inherit; font-size: 14px; font-weight: 500; cursor: pointer;
	transition: border-color .15s, box-shadow .15s, background .15s;
}
.souq-swatch:hover { border-color: var(--souq-text); }
.souq-swatch[aria-pressed="true"] { border-color: var(--souq-ink); box-shadow: inset 0 0 0 1px var(--souq-ink); }
.souq-swatch.is-unavailable { opacity: .4; text-decoration: line-through; }
.souq-swatch__dot { width: 18px; height: 18px; border-radius: 50%; background: var(--dot); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15); }
.souq .woocommerce-variation-price { margin-bottom: 14px; font-size: 20px; font-weight: 700; }
.souq .woocommerce-variation-availability .stock { font-size: 14px; }

/* Quantity input + breadcrumbs: neutral instead of Blocksy blue */
.souq .quantity { --theme-form-field-border-initial-color: #d6d6da; --theme-form-field-border-focus-color: var(--souq-ink); --theme-palette-color-1: var(--souq-text); }
.souq .quantity input.qty, .souq .quantity .ct-increase, .souq .quantity .ct-decrease { color: var(--souq-text); }
.souq .ct-breadcrumbs, .souq .woocommerce-breadcrumb { font-size: 13px; color: var(--souq-muted); }
/* One line, always: in the fallback font the trail wrapped to two lines, so the
   web font arriving late shifted the whole product up (CLS 0.21 on 4G). */
.souq .ct-breadcrumbs, .souq .woocommerce-breadcrumb { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.souq .ct-breadcrumbs a, .souq .woocommerce-breadcrumb a { color: var(--souq-muted); text-decoration: none; }
.souq .ct-breadcrumbs a:hover { color: var(--souq-text); }

/* Add to cart row + buy now */
.souq form.cart:not(.variations_form), .souq .woocommerce-variation-add-to-cart {
	display: flex; flex-wrap: wrap; gap: 10px; align-items: stretch;
}
.souq form.cart .quantity { margin: 0 !important; }
.souq form.cart .single_add_to_cart_button { flex: 1; min-height: 54px; background: #fff; color: var(--souq-text); border: 1px solid var(--souq-text); }
.souq form.cart .single_add_to_cart_button:hover { background: var(--souq-surface); color: var(--souq-text); }
.souq .souq-buy-now { flex-basis: 100%; min-height: 56px; font-size: 16px; }
.souq form.cart .single_add_to_cart_button.disabled, .souq .souq-buy-now.disabled { opacity: .45; cursor: not-allowed; }

.souq-trust { list-style: none; margin: 22px 0 0; padding: 18px 0 0; border-top: 1px solid var(--souq-line); display: grid; gap: 12px; font-size: 14px; }
.souq-trust li { display: flex; align-items: center; gap: 12px; }
.souq-trust .souq-icon { width: 22px; height: 22px; color: var(--souq-muted); }

.souq-ask {
	display: flex; align-items: center; gap: 10px; margin-top: 18px; padding: 14px 16px;
	border-radius: var(--souq-radius-sm); background: #effaf3; color: #0f5132;
	font-size: 14px; font-weight: 600; text-decoration: none;
}
.souq-ask:hover { background: #e2f6ea; color: #0f5132; }
.souq-ask .souq-icon { color: #1fa855; }

/* Tabs → clean underline style */
.souq .woocommerce-tabs ul.tabs { border-bottom: 1px solid var(--souq-line); gap: 24px; justify-content: flex-start; }
.souq .woocommerce-tabs ul.tabs li a { font-size: 15px; font-weight: 600; padding-block: 14px; }

/* Sticky bar (phones) */
.souq-sticky-buy {
	position: fixed; z-index: 80; inset-inline: 0; bottom: 0;
	display: flex; align-items: center; gap: 12px;
	padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
	background: #fff; border-top: 1px solid var(--souq-line);
	box-shadow: 0 -8px 24px rgba(0, 0, 0, .06);
	transform: translateY(110%); transition: transform .3s var(--souq-ease);
}
.souq-sticky-buy.is-visible { transform: none; }
.souq-sticky-buy__info { flex: 1; min-width: 0; display: grid; }
.souq-sticky-buy__info strong { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.souq-sticky-buy__info .price { font-size: 14px; font-weight: 600; }
.souq .souq-sticky-buy__btn { min-height: 48px; padding-inline: 22px; }
@media (min-width: 1000px) { .souq-sticky-buy { display: none !important; } }

/* ---------------------------------------------------------------- checkout */

.souq-hidden-field { display: none !important; }
.souq-checkout-intro {
	display: grid; gap: 4px; margin-bottom: 24px; padding: 16px 18px;
	border-radius: var(--souq-radius); background: #effaf3; color: #0f5132; font-size: 14px;
}
.souq-checkout-intro strong { font-size: 16px; }

.souq.woocommerce-checkout .woocommerce-billing-fields h3,
.souq.woocommerce-checkout #order_review_heading { font-size: 20px; font-weight: 700; margin-bottom: 16px; }
.souq.woocommerce-checkout .form-row { margin-bottom: 16px; }
.souq.woocommerce-checkout .form-row label { font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.souq.woocommerce-checkout .form-row .required { color: var(--souq-sale); text-decoration: none; }
.souq.woocommerce-checkout .form-row .description { font-size: 13px; color: var(--souq-muted); margin-top: 6px; background: none; padding: 0; }
.souq.woocommerce-checkout .form-row .description::before { display: none; }
.souq.woocommerce-checkout input.input-text, .souq.woocommerce-checkout select, .souq.woocommerce-checkout textarea {
	border-radius: var(--souq-radius-sm); font-size: 16px; /* 16px stops iOS zooming in */
}
.souq.woocommerce-checkout #billing_phone { text-align: start; direction: ltr; }
[dir="rtl"] .souq.woocommerce-checkout #billing_phone { text-align: right; }
.souq.woocommerce-checkout textarea { min-height: 90px; }
.souq.woocommerce-checkout .woocommerce-invalid input.input-text, .souq.woocommerce-checkout .woocommerce-invalid select { border-color: var(--souq-sale); }

/* Order summary card */
.souq #order_review { border-radius: var(--souq-radius); background: #fafafa; }
.souq .ct-order-review { border: 0 !important; padding: 0 !important; background: none !important; }
.souq #payment input[type="radio"] { accent-color: var(--souq-ink); }
.souq #order_review table.shop_table { border: 0; margin: 0; font-size: 15px; }
.souq #order_review table.shop_table th, .souq #order_review table.shop_table td { border: 0; padding: 10px 0; background: none; }
.souq #order_review table.shop_table thead { display: none; }
.souq #order_review .cart_item td { border-bottom: 1px solid var(--souq-line) !important; }
.souq #order_review .product-total, .souq #order_review tfoot td { text-align: end; white-space: nowrap; }
.souq #order_review tfoot .order-total th, .souq #order_review tfoot .order-total td { font-size: 18px; font-weight: 700; border-top: 1px solid var(--souq-line) !important; padding-top: 16px; }
.souq #order_review .woocommerce-shipping-methods { margin: 0; padding: 0; list-style: none; }
.souq #order_review .product-name .product-quantity { color: var(--souq-muted); font-weight: 400; }
.souq #order_review .variation { font-size: 13px; color: var(--souq-muted); }

.souq #payment { background: none; border-radius: 0; margin-top: 16px; }
.souq #payment ul.payment_methods { border: 0; padding: 0; margin: 0 0 16px; }
.souq #payment ul.payment_methods li { list-style: none; padding: 14px 16px; border: 1px solid var(--souq-ink); border-radius: var(--souq-radius-sm); background: #fff; }
.souq #payment ul.payment_methods li label { font-weight: 600; }
.souq #payment div.payment_box { background: none; padding: 8px 0 0; margin: 0; font-size: 14px; color: var(--souq-muted); }
.souq #payment div.payment_box::before { display: none; }
.souq #payment .place-order { padding: 0; margin: 0; }
.souq #place_order { width: 100%; min-height: 58px; font-size: 17px; float: none; }

@media (min-width: 1000px) {
	.souq form.woocommerce-checkout {
		display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 0 56px; align-items: start;
	}
	.souq form.woocommerce-checkout > .souq-checkout-intro,
	.souq form.woocommerce-checkout > .woocommerce-NoticeGroup { grid-column: 1 / -1; }
	.souq form.woocommerce-checkout #customer_details { grid-column: 1; width: auto; float: none; }
	.souq form.woocommerce-checkout #customer_details > .col-1, .souq form.woocommerce-checkout #customer_details > .col-2 { width: 100%; float: none; }
	.souq form.woocommerce-checkout #order_review_heading { grid-column: 2; grid-row: 2; }
	.souq form.woocommerce-checkout #order_review { grid-column: 2; grid-row: 3; position: sticky; top: calc(var(--souq-header-h) + 20px); }
	.souq form.woocommerce-checkout #customer_details { grid-row: 2 / span 2; }
}

/* "Add to your order" popup (souq-upsell mu-plugin): centered card on desktop,
   bottom sheet on phones. */
.souq-upsell { position: fixed; inset: 0; z-index: 250; display: flex; align-items: flex-end; justify-content: center; }
.souq-upsell__overlay { position: absolute; inset: 0; background: rgba(18, 18, 18, .4); opacity: 0; transition: opacity .25s var(--souq-ease); }
.souq-upsell__panel {
	position: relative; width: 100%; max-height: 88vh; overflow-y: auto;
	padding: 20px 20px calc(20px + env(safe-area-inset-bottom));
	background: #fff; border-radius: var(--souq-radius) var(--souq-radius) 0 0;
	box-shadow: 0 -12px 40px rgba(0, 0, 0, .14);
	transform: translateY(24px); opacity: 0;
	transition: transform .3s var(--souq-ease), opacity .25s var(--souq-ease);
}
.souq-upsell.is-open .souq-upsell__overlay { opacity: 1; }
.souq-upsell.is-open .souq-upsell__panel { transform: none; opacity: 1; }
.souq-upsell__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.souq-upsell__head > div { display: grid; gap: 2px; }
.souq-upsell__head strong { font-size: 20px; font-weight: 700; }
.souq-upsell__head span { font-size: 14px; color: var(--souq-muted); }
.souq-upsell__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.souq-upsell__item {
	display: grid; grid-template-columns: 64px 1fr auto; align-items: center; gap: 14px;
	padding: 10px; border: 1px solid var(--souq-line); border-radius: var(--souq-radius-sm);
	transition: border-color .2s;
}
.souq-upsell__item.is-added { border-color: var(--souq-success); }
.souq-upsell__thumb img { display: block; width: 64px; height: 64px; object-fit: cover; border-radius: 6px; background: var(--souq-surface); }
.souq-upsell__info { display: grid; gap: 2px; min-width: 0; }
.souq-upsell__name { font-size: 15px; font-weight: 600; color: var(--souq-text); text-decoration: none; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.souq-upsell__price { font-size: 14px; }
.souq-upsell__price del { color: var(--souq-muted); margin-inline-end: 6px; }
.souq .souq-upsell__add { min-height: 42px; padding-inline: 18px; font-size: 14px; white-space: nowrap; }
.souq .souq-upsell__add--view { background: #fff; color: var(--souq-text); border: 1px solid var(--souq-text); }
.souq .souq-upsell__add.is-added { background: var(--souq-success); border-color: var(--souq-success); color: #fff; opacity: 1; }
.souq-upsell__skip {
	display: block; width: 100%; margin-top: 14px; padding: 12px; border: 0; background: none;
	font: inherit; font-size: 14px; font-weight: 600; color: var(--souq-muted); text-decoration: underline; text-underline-offset: 4px; cursor: pointer;
}
.souq-upsell__skip:hover { color: var(--souq-text); }
.souq-upsell__error { margin: 8px 0 0; font-size: 14px; color: var(--souq-sale); text-align: center; }
@media (min-width: 700px) {
	.souq-upsell { align-items: center; padding: 24px; }
	.souq-upsell__panel { width: min(560px, 100%); padding: 28px; border-radius: var(--souq-radius); box-shadow: 0 24px 64px rgba(0, 0, 0, .2); }
}

/* Thank-you page */
.souq .woocommerce-column--shipping-address { display: none; } /* same as billing for COD */
/* Phone stays "+212…" (not "…212+") but aligned with the Arabic lines. */
[dir="rtl"] .souq .woocommerce-customer-details--phone { direction: ltr; text-align: right; }
.souq .woocommerce-customer-details .woocommerce-columns { display: block; }
.souq-confirm-wa {
	display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
	margin: 0 0 28px; padding: 18px 20px; border-radius: var(--souq-radius);
	background: #0f2a1d; color: #fff;
}
.souq-confirm-wa div { display: grid; gap: 2px; }
.souq-confirm-wa span { color: rgba(255, 255, 255, .75); font-size: 14px; }
.souq .souq-confirm-wa__btn { background: var(--souq-wa); border-color: var(--souq-wa); color: #0b1f14; }
.souq .souq-confirm-wa__btn:hover { background: #1fbe5b; color: #0b1f14; }
.souq .woocommerce-thankyou-order-received { font-size: 20px; font-weight: 600; margin-bottom: 20px; padding: 0 !important; background: none !important; border: 0 !important; }
.souq .woocommerce-thankyou-order-received::before, .souq .woocommerce-thankyou-order-received svg { display: none !important; }
.souq ul.woocommerce-thankyou-order-details { display: flex; flex-wrap: wrap; gap: 12px 32px; padding: 0; margin: 0 0 28px; list-style: none; }
.souq ul.woocommerce-thankyou-order-details li { border: 0; padding: 0; margin: 0; font-size: 13px; color: var(--souq-muted); text-transform: none; }
.souq ul.woocommerce-thankyou-order-details li strong { display: block; color: var(--souq-text); font-size: 16px; }

/* ---------------------------------------------------------------- footer */

.souq-footer { margin-top: clamp(48px, 8vw, 96px); background: var(--souq-surface); padding-top: clamp(40px, 6vw, 64px); font-size: 15px; }
.souq-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 40px; }
.souq-footer__grid--3 { grid-template-columns: 1.4fr 1fr 1fr; }
.souq-footer__brand p { color: var(--souq-muted); max-width: 300px; }
.souq-footer__title { font-size: 15px; font-weight: 700; margin: 0 0 14px; }
.souq-footer__links, .souq-footer__usp { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.souq-footer__links a { color: var(--souq-muted); text-decoration: none; }
.souq-footer__links a:hover { color: var(--souq-text); text-decoration: underline; }
.souq-footer__usp li { display: flex; align-items: center; gap: 10px; color: var(--souq-muted); }
.souq-footer__usp .souq-icon { width: 20px; height: 20px; }
.souq-footer__wa { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--souq-text); text-decoration: none; }
.souq-footer__wa .souq-icon { color: #1fa855; }
.souq-footer__track { display: flex; margin-top: 10px; }
.souq-footer__track .souq-icon { color: var(--souq-success); }

.souq-announcement a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.souq-announcement__sep { margin-inline: 10px; opacity: .6; }

/* Welcome offer (souq-signup mu-plugin): above the sign-up form and, with the
   code, on the account dashboard. */
.souq-signup-offer { display: grid; gap: 4px; padding: 14px 16px; margin-bottom: 16px; border-radius: var(--souq-radius); background: #eef7f1; border: 1px solid #cfe8d8; }
.souq-signup-offer span { color: var(--souq-muted); font-size: 14px; }
.souq-signup-offer code { justify-self: start; font-size: 18px; font-weight: 700; letter-spacing: .04em; padding: 4px 10px; border-radius: 8px; background: #fff; border: 1px dashed var(--souq-success); }

/* Product landing section (souq-landing mu-plugin): brand visuals stacked
   edge to edge, like the Kieslect product pages. */
.souq-landing { max-width: 1000px; margin: 48px auto 0; text-align: center; }
.souq-landing p { margin: 0 0 16px; }
.souq-landing p:has(> img:only-child) { margin: 0; }
.souq-landing img { display: block; width: 100%; height: auto; margin: 0 auto; }
.souq-landing h2, .souq-landing h3 { margin: 32px 0 12px; }

/* Order tracking (souq-delivery mu-plugin): form page + line on the order page. */
.souq-tracking-form { display: grid; gap: 4px; max-width: 460px; }
.souq-tracking-form .button { justify-self: start; margin-top: 8px; }
.souq-tracking-form__error { color: var(--souq-sale); margin-top: 16px; }
.souq-tracking-form__result { margin-top: 20px; padding: 16px 18px; border-radius: var(--souq-radius); background: var(--souq-surface); max-width: 460px; }
.souq-tracking { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 0 0 16px; font-weight: 600; }
.souq-tracking a { color: var(--souq-accent); text-decoration: underline; }
.souq-social { display: flex; gap: 8px; margin-top: 16px; }
.souq-social__link {
	display: inline-flex; align-items: center; justify-content: center;
	width: 40px; height: 40px; border-radius: 50%;
	background: #fff; border: 1px solid var(--souq-line); color: var(--souq-text);
	transition: background .15s, color .15s, border-color .15s;
}
.souq-social__link:hover { background: var(--souq-ink); border-color: var(--souq-ink); color: #fff; }
.souq-social__link .souq-icon { width: 20px; height: 20px; }
.souq-drawer__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.souq-drawer__foot .souq-social { margin-top: 0; }
.souq-drawer__foot .souq-social__link { background: var(--souq-surface); border-color: transparent; }
.souq-footer__bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 18px; border-top: 1px solid var(--souq-line); font-size: 13px; color: var(--souq-muted); }
@media (max-width: 899px) {
	.souq-footer__grid { grid-template-columns: 1fr 1fr; }
	.souq-footer__brand { grid-column: 1 / -1; }
}

/* ---------------------------------------------------------------- toast + feedback */

.souq-toast {
	position: fixed; z-index: 300; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom));
	transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
	padding: 12px 20px; border-radius: 999px; background: var(--souq-ink); color: #fff;
	font-size: 14px; font-weight: 500; box-shadow: 0 8px 24px rgba(0, 0, 0, .18);
	transition: opacity .25s, transform .25s var(--souq-ease);
}
.souq-toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.souq-shake .souq-swatches { animation: souq-shake .5s; }
@keyframes souq-shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }

/* ---------------------------------------------------------------- notices */

.souq .woocommerce-message, .souq .woocommerce-info, .souq .woocommerce-error {
	border-radius: var(--souq-radius-sm); border: 1px solid var(--souq-line); background: var(--souq-surface);
	color: var(--souq-text); --theme-text-color: var(--souq-text); --theme-link-initial-color: var(--souq-text);
}
.souq .woocommerce-message a, .souq .woocommerce-info a, .souq .woocommerce-error a { color: var(--souq-text); }
.souq .woocommerce-error { background: #fdf2f3; border-color: #f3c4c9; color: #8a1c28; --theme-text-color: #8a1c28; --theme-link-initial-color: #8a1c28; }
.souq .woocommerce-message { background: #effaf3; border-color: #bfe5cc; color: #0f5132; --theme-text-color: #0f5132; --theme-link-initial-color: #0f5132; }

@media (prefers-reduced-motion: reduce) {
	.souq *, .souq *::before, .souq *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ---------------------------------------------------------------- shop filters (sidebar / drawer) */

.souq-archive__main { min-width: 0; }
.souq-filters { display: none; }
.souq-filters__inner { display: grid; gap: 28px; }
.souq-facet { border: 0; margin: 0; padding: 0; min-width: 0; }
.souq-facet__title { font-size: 14px; font-weight: 700; margin-bottom: 12px; padding: 0; }
.souq-facet__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.souq-facet__item { padding-inline-start: calc(var(--depth, 0) * 18px); }
.souq-facet__link {
	display: flex; align-items: center; gap: 10px; min-height: 36px; padding: 4px 6px; margin-inline: -6px; border-radius: 6px;
	color: var(--souq-text); text-decoration: none; font-size: 14px;
}
.souq-facet__link:hover { background: var(--souq-surface); color: var(--souq-text); }
.souq-facet__box {
	flex: 0 0 auto; width: 18px; height: 18px; border-radius: 4px; border: 1px solid #c9c9ce; background: #fff;
	display: inline-flex; align-items: center; justify-content: center; color: #fff;
}
.souq-facet__box .souq-icon { width: 14px; height: 14px; stroke-width: 2.4; }
.souq-facet__link.is-checked .souq-facet__box { background: var(--souq-ink); border-color: var(--souq-ink); }
.souq-facet__link.is-checked .souq-facet__name { font-weight: 600; }
.souq-facet__name { min-width: 0; }
.souq-facet__count { font-size: 12px; color: var(--souq-muted); font-variant-numeric: tabular-nums; }
.souq-facet__count::before { content: "("; }
.souq-facet__count::after { content: ")"; }
.souq-filters__clear, .souq-active-filters__clear { font-size: 14px; font-weight: 600; color: var(--souq-text); text-decoration: underline; text-underline-offset: 4px; }
.souq-active-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 20px; }
.souq-chip--remove { display: inline-flex; align-items: center; gap: 6px; }
.souq-chip--remove .souq-icon { width: 14px; height: 14px; }
.souq-filters__open {
	display: inline-flex; align-items: center; gap: 8px; position: relative;
	height: 42px; padding: 0 16px; border-radius: 999px; border: 1px solid #d6d6da; background: #fff; color: var(--souq-text);
	font: inherit; font-size: 14px; font-weight: 500; cursor: pointer;
}
.souq-filters__open .souq-icon { width: 18px; height: 18px; }
.souq-filters__dot { position: absolute; top: 8px; inset-inline-end: 10px; width: 8px; height: 8px; border-radius: 50%; background: var(--souq-sale); }
.souq .woo-listing-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
#souq-filters-drawer .souq-drawer__body { padding: 20px 24px; }
#souq-filters-drawer .souq-drawer__foot { display: block; }
.souq .souq-filters__done { width: 100%; min-height: 50px; }
@media (min-width: 1000px) {
	.souq-archive.has-filters { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 48px; align-items: start; }
	.souq-filters { display: block; position: sticky; top: calc(var(--souq-header-h) + 24px); }
	.souq-filters__open { display: none; }
}
