/* ==========================================================================
   السوق العربي — main.css
   القواعد: الألوان من دليل الهوية فقط. خصائص منطقية (inline/block) لتعمل
   في الاتجاهين. نص أبيض فقط على violet-600 وما أغمق. لا أحمر.
   ========================================================================== */

:root {
	--sq-violet-50: #F4F4FE;
	--sq-violet-100: #E7E7FC;
	--sq-violet-200: #D0D0F8;
	--sq-violet-300: #ABABF0;
	--sq-violet-400: #8585E6;
	--sq-violet-600: #4F4FC4;
	--sq-violet-700: #3F3FA6;
	--sq-violet-800: #2F2F7D;
	--sq-violet-900: #1F1F52;
	--sq-ink: #14131A;
	--sq-ink-2: #3D3D52;
	--sq-ink-muted: #5E5E70;
	--sq-ink-placeholder: #6E6E80;
	--sq-surface: #FFFFFF;
	--sq-page: #F7F7FB;
	--sq-deal: #FFC83D;
	--sq-star: #A87900;
	--sq-success: #1F7A5C;
	--sq-success-bg: #E3F3EC;
	--sq-notice-bg: #F1F1F5;
	--sq-line: var(--sq-violet-100);
	--sq-control-border: var(--sq-violet-400);

	--sq-font: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;
	--sq-font-display: "Readex Pro", "IBM Plex Sans Arabic", Tahoma, sans-serif;

	--sq-r-sm: 6px;
	--sq-r-md: 10px;
	--sq-r-lg: 14px;
	--sq-tap: 48px;
	--sq-shadow-sticky: 0 -2px 10px rgba(20, 19, 26, .06);
	--sq-bnav-h: 64px;
	--sq-max: 1240px;

	/* ربط ألوان Astra بالهوية */
	--ast-global-color-0: var(--sq-violet-700);
	--ast-global-color-1: var(--sq-violet-800);
	--ast-global-color-2: var(--sq-ink);
	--ast-global-color-3: var(--sq-ink-2);
	--ast-global-color-4: var(--sq-page);
	--ast-global-color-5: var(--sq-surface);
	--ast-global-color-6: var(--sq-violet-100);
	--ast-global-color-7: var(--sq-ink-muted);
	--ast-global-color-8: var(--sq-ink);
}

/* ---------- الأساس ---------- */
/* overflow-x على body وحده: ينتقل تلقائياً إلى نافذة العرض فلا يكسر position: sticky */
body.sq {
	font-family: var(--sq-font);
	overflow-x: hidden;
	font-size: 15px;
	line-height: 1.65;
	color: var(--sq-ink);
	background: var(--sq-page);
	-webkit-font-smoothing: antialiased;
	-webkit-tap-highlight-color: transparent;
}
body.sq button, body.sq input, body.sq select, body.sq textarea { font-family: var(--sq-font); }
body.sq h1, body.sq h2, body.sq h3, body.sq .entry-title {
	font-family: var(--sq-font-display);
	font-weight: 600;
	color: var(--sq-ink);
	line-height: 1.35;
}
body.sq a { color: var(--sq-violet-700); }
body.sq a:hover { color: var(--sq-violet-800); }
body.sq :focus-visible { outline: 3px solid var(--sq-violet-600); outline-offset: 2px; border-radius: 4px; }
.sq-icon { flex-shrink: 0; display: block; }
body.sq .ast-container { max-width: var(--sq-max); }

body.sq .button, body.sq button.button, body.sq .wp-block-button__link,
body.sq input[type="submit"], body.sq .wc-block-components-button {
	background: var(--sq-violet-700);
	color: #fff;
	border: 0;
	border-radius: var(--sq-r-md);
	min-height: var(--sq-tap);
	padding: 0 20px;
	font-weight: 600;
	font-size: 15px;
	line-height: var(--sq-tap);
}
body.sq .button:hover, body.sq .wp-block-button__link:hover,
body.sq input[type="submit"]:hover, body.sq .wc-block-components-button:hover {
	background: var(--sq-violet-800);
	color: #fff;
}
body.sq .checkout-button, body.sq #place_order { background: var(--sq-violet-800); }

/* ---------- الرأس ---------- */
.sq-header {
	background: var(--sq-violet-100);
	border-block-end: 1px solid var(--sq-violet-200);
}
.sq-header__inner {
	max-width: var(--sq-max);
	margin-inline: auto;
	padding: 10px 16px 8px;
	display: grid;
	grid-template-columns: auto 1fr;
	grid-template-areas:
		"logo actions"
		"search search"
		"loc loc";
	align-items: center;
	gap: 8px 12px;
}
.sq-logo { grid-area: logo; display: inline-flex; align-items: center; min-height: var(--sq-tap); }
.sq-logo__img { display: block; height: 44px; width: auto; max-width: 180px; }
.sq-logo__text { font-family: var(--sq-font-display); font-weight: 600; font-size: 20px; color: var(--sq-violet-800); }

.sq-header__actions { grid-area: actions; justify-self: end; display: flex; align-items: center; gap: 4px; }
.sq-hbtn {
	display: inline-flex; align-items: center; gap: 6px;
	min-height: var(--sq-tap); min-width: var(--sq-tap);
	padding-inline: 10px; justify-content: center;
	color: var(--sq-ink) !important; text-decoration: none;
	font-weight: 600; font-size: 14px; border-radius: var(--sq-r-md);
}
.sq-hbtn:hover { background: var(--sq-violet-200); }

.sq-badge-wrap { position: relative; display: inline-flex; }
.sq-cart-count {
	position: absolute; inset-block-start: -7px; inset-inline-end: -9px;
	min-width: 18px; height: 18px; padding-inline: 5px;
	border-radius: 999px; background: var(--sq-violet-700); color: #fff;
	font: 600 11px/18px var(--sq-font); text-align: center;
	box-shadow: 0 0 0 2px var(--sq-violet-100);
}
.sq-cart-count.is-empty { display: none; }

.sq-search {
	grid-area: search; position: relative; display: flex; align-items: center;
	background: var(--sq-surface);
	border: 1px solid var(--sq-control-border);
	border-radius: var(--sq-r-md);
	min-height: var(--sq-tap); padding-inline: 12px; gap: 8px;
	color: var(--sq-ink);
}
.sq-search:focus-within { border-color: var(--sq-violet-700); box-shadow: 0 0 0 3px var(--sq-violet-200); }
.sq-search input[type="search"] {
	flex: 1; min-width: 0; border: 0 !important; background: transparent !important;
	box-shadow: none !important; outline: none; padding: 10px 0 !important;
	font-size: 16px; color: var(--sq-ink);
}
.sq-search input::placeholder { color: var(--sq-ink-placeholder); opacity: 1; }
.sq-search input::-webkit-search-cancel-button { -webkit-appearance: none; }

.sq-loc { grid-area: loc; margin: 0; display: flex; align-items: center; gap: 4px; font-size: 13px; color: var(--sq-ink-2); }

.sq-loc__city { font-weight: 600; color: var(--sq-ink); }

@media (min-width: 922px) {
	.sq-header__inner {
		grid-template-columns: auto auto minmax(320px, 1fr) auto;
		grid-template-areas: "logo loc search actions";
		padding-block: 12px; gap: 0 24px;
	}
	.sq-logo__img { height: 52px; }
	.sq-loc { align-self: center; gap: 6px; min-height: var(--sq-tap); padding-inline: 4px; }
	.sq-loc__txt { display: flex; flex-direction: column; line-height: 1.25; }
	.sq-loc__lbl { font-size: 12px; color: var(--sq-ink-2); }
	.sq-loc__city { font-size: 14px; }
}
@media (max-width: 921px) {
	.sq-hbtn__label { display: none; }
}

/* ---------- التذييل ---------- */
.sq-footer {
	background: var(--sq-violet-50);
	border-block-start: 1px solid var(--sq-line);
	color: var(--sq-ink-2);
	font-size: 14px;
}
.sq-footer__inner {
	max-width: var(--sq-max); margin-inline: auto; padding: 32px 16px 16px;
	display: grid; gap: 28px; grid-template-columns: 1fr 1fr;
}
.sq-footer__brand { grid-column: 1 / -1; }
.sq-footer__brand p { margin: 8px 0 12px; max-width: 36ch; }
.sq-logo--footer .sq-logo__img { height: 48px; }
.sq-footer__wa {
	display: inline-flex; align-items: center; gap: 8px; min-height: var(--sq-tap);
	color: var(--sq-success) !important; font-weight: 600; text-decoration: none;
}
.sq-footer__col h2 { font-family: var(--sq-font); font-size: 15px; margin: 0 0 8px; color: var(--sq-ink); }
.sq-footer__col ul, .sq-social { list-style: none; margin: 0; padding: 0; }
.sq-footer__col a {
	display: inline-flex; align-items: center; min-height: 40px;
	color: var(--sq-ink-2) !important; text-decoration: none;
}
.sq-footer__col a:hover { color: var(--sq-violet-800) !important; text-decoration: underline; }
.sq-footer__bottom {
	max-width: var(--sq-max); margin-inline: auto;
	padding: 12px 16px calc(16px + var(--sq-bnav-h) + env(safe-area-inset-bottom, 0px));
	border-block-start: 1px solid var(--sq-line);
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
}
.sq-social { display: flex; gap: 4px; }
.sq-social a, .sq-social span {
	display: inline-flex; align-items: center; justify-content: center;
	width: 44px; height: 44px; border-radius: 999px; color: var(--sq-ink) !important;
}
.sq-social a:hover { background: var(--sq-violet-100); }
.sq-social .is-pending { color: var(--sq-ink-muted) !important; }
.sq-copy { margin: 0; font-size: 12px; color: var(--sq-ink-muted); }
@media (min-width: 922px) {
	.sq-footer__inner { grid-template-columns: 1.4fr 1fr 1fr 1fr; padding-block-start: 48px; }
	.sq-footer__brand { grid-column: auto; }
	.sq-footer__bottom { padding-block-end: 20px; }
}

/* ---------- شريط التنقل السفلي (الجوال) ---------- */
.sq-bnav {
	position: fixed; inset-inline: 0; inset-block-end: 0; z-index: 99;
	background: var(--sq-surface);
	border-block-start: 1px solid var(--sq-line);
	box-shadow: var(--sq-shadow-sticky);
	padding-block-end: env(safe-area-inset-bottom, 0px);
}
.sq-bnav ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); height: var(--sq-bnav-h); }
.sq-bnav a {
	height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
	color: var(--sq-ink-2) !important; text-decoration: none; font-size: 12px; line-height: 1.2;
}
.sq-bnav a[aria-current="page"] { color: var(--sq-violet-800) !important; font-weight: 600; }
.sq-bnav .sq-cart-count { box-shadow: 0 0 0 2px var(--sq-surface); }
@media (min-width: 922px) { .sq-bnav { display: none; } }

/* ---------- زر واتساب العائم ---------- */
.sq-wa {
	position: fixed; z-index: 98;
	inset-inline-end: 16px;
	inset-block-end: calc(var(--sq-bnav-h) + 16px + env(safe-area-inset-bottom, 0px));
	width: 52px; height: 52px; border-radius: 999px;
	display: flex; align-items: center; justify-content: center;
	background: var(--sq-success); color: #fff !important;
	box-shadow: 0 4px 14px rgba(20, 19, 26, .18), 0 0 0 3px var(--sq-surface);
}
.sq-wa:hover { background: #18634A; }
@media (min-width: 922px) { .sq-wa { inset-block-end: 24px; } }

body.sq #ast-scroll-top { display: none !important; }
/* ---------- صفحات المحتوى (من نحن، الأسئلة، السياسات) ---------- */
body.sq.sq-content-page .entry-content { max-width: 760px; margin-inline: auto; font-size: 16px; line-height: 1.85; color: var(--sq-ink-2); }
body.sq.sq-content-page .entry-header { max-width: 760px; margin-inline: auto; }
body.sq.sq-content-page .entry-title { font-size: 26px; margin-block: 8px 12px; }
body.sq .entry-content h2.wp-block-heading { font-size: 19px; margin: 28px 0 8px; color: var(--sq-ink); }
body.sq .entry-content p { margin: 0 0 12px; }
body.sq .entry-content .wp-block-list { margin: 0 0 14px; padding-inline-start: 22px; }
body.sq .entry-content .wp-block-list li { margin-block-end: 6px; }
body.sq .entry-content strong { color: var(--sq-ink); font-weight: 600; }
body.sq.sq-content-page .entry-content a:not(.button) { color: var(--sq-violet-700); text-decoration: underline; text-underline-offset: 3px; }
body.sq .wp-block-details { background: var(--sq-surface); border: 1px solid var(--sq-line); border-radius: var(--sq-r-md); margin: 0 0 8px; padding: 0 14px; }
body.sq .wp-block-details summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 52px; font-weight: 600; color: var(--sq-ink); cursor: pointer; }
body.sq .wp-block-details summary::-webkit-details-marker { display: none; }
body.sq .wp-block-details summary::after { content: "+"; font-size: 22px; font-weight: 400; color: var(--sq-violet-700); flex-shrink: 0; }
body.sq .wp-block-details[open] summary::after { content: "\2212"; }
body.sq .wp-block-details[open] { padding-block-end: 6px; }
.sq-zones { display: grid; gap: 8px; margin: 4px 0 12px; }
.sq-zone { background: var(--sq-violet-50); border-radius: var(--sq-r-md); padding: 10px 12px; }
.sq-zone__h { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin: 0 0 4px !important; color: var(--sq-ink); flex-wrap: wrap; }
.sq-zone__h span { font-weight: 600; white-space: nowrap; }
.sq-zone__areas { margin: 0 !important; font-size: 14px; line-height: 1.8; }
.sq-wa-cta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 8px 0 20px !important; }
.sq-wa-cta .button { display: inline-flex !important; align-items: center; gap: 8px; text-decoration: none !important; color: #fff !important; }
.sq-wa-cta span { font-weight: 600; color: var(--sq-ink); }
@media (min-width: 922px) { body.sq.sq-content-page .entry-title { font-size: 32px; } }
/* ---------- إزالة صناديق Astra البيضاء والفراغات: المحتوى مباشرة على خلفية الصفحة ---------- */
body.sq.ast-separate-container .ast-woocommerce-container,
body.sq.ast-separate-container .ast-article-single,
body.sq.ast-separate-container .ast-article-post,
body.sq.ast-separate-container .comments-area,
body.sq.ast-separate-container .site-main > article,
body.sq .ast-plain-container .ast-woocommerce-container { background: transparent !important; padding: 0 !important; margin: 0 !important; box-shadow: none !important; border: 0 !important; }
/* بطاقة المنتج في القوائم تحمل كلاس ast-article-post فتُستثنى من الشفافية أعلاه */
body.sq.ast-separate-container ul.products li.product.ast-article-post { background: var(--sq-surface) !important; border: 1px solid var(--sq-line) !important; }
body.sq #primary { padding-block: 0 !important; margin-block: 16px 32px !important; width: 100% !important; float: none !important; }
body.sq #secondary { display: none !important; }
body.sq #content > .ast-container, body.sq .site-content > .ast-container { padding-inline: 16px; max-width: var(--sq-max) !important; margin-inline: auto !important; width: 100%; }
@media (min-width: 922px) { body.sq #content > .ast-container, body.sq .site-content > .ast-container { padding-inline: 24px; } }
body.sq .woocommerce-products-header { padding: 0 !important; margin: 0 !important; }
/* ---------- شريط الترحيب ---------- */
.sq-wbar { background: var(--sq-violet-800); color: #fff; }
.sq-wbar[hidden] { display: none; }
.sq-wbar__in { max-width: var(--sq-max); margin-inline: auto; padding: 8px 16px; display: flex; align-items: center; gap: 8px 16px; flex-wrap: wrap; }
.sq-wbar__t { margin: 0; font-size: 14px; flex: 1 1 auto; }
.sq-wbar__t strong { font-weight: 600; }
.sq-wbar__a { display: flex; gap: 8px; flex-wrap: wrap; }
.sq-wbar__a a { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 999px; background: #fff; color: var(--sq-violet-800) !important; font-weight: 600; font-size: 13px; text-decoration: none !important; }
.sq-wbar__a a + a { background: transparent; color: #fff !important; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .7); }
.sq-wbar__x { width: 36px; height: 36px; min-height: 0 !important; padding: 0 !important; border: 0 !important; border-radius: 999px; background: transparent !important; color: #fff !important; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.sq-wbar__x:hover { background: rgba(255, 255, 255, .12) !important; }
@media (max-width: 599px) { .sq-wbar__t { flex-basis: calc(100% - 52px); } .sq-wbar__x { order: -1; margin-inline-start: auto; } }
.sq-softlogin { margin: 0 0 12px; padding: 10px 12px; border-radius: var(--sq-r-md); background: var(--sq-surface); box-shadow: inset 0 0 0 1px var(--sq-line); font-size: 14px; color: var(--sq-ink-2); }
.sq-softlogin a { color: var(--sq-violet-700) !important; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
/* ---------- المفضلة ---------- */
.sq-fav { position: absolute; z-index: 2; inset-block-start: 8px; inset-inline-end: 8px; width: 36px; height: 36px; min-height: 0 !important; padding: 0 !important; border: 0 !important; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; background: var(--sq-surface) !important; color: var(--sq-violet-800) !important; box-shadow: 0 1px 4px rgba(20, 19, 26, .12); cursor: pointer; transition: transform .15s; }
.sq-fav:active { transform: scale(.88); }
.sq-fav[aria-pressed="true"] .sq-icon { fill: currentColor; }
.sq-fav--label { position: static; width: auto; height: auto; min-height: 40px !important; padding: 0 14px !important; gap: 6px; margin: 0 0 8px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px var(--sq-violet-300); font: 600 14px/1 var(--sq-font); }
.sq-fav--label[aria-pressed="true"] { box-shadow: inset 0 0 0 1.5px var(--sq-violet-700); background: var(--sq-violet-50) !important; }
.sq-fav-count { position: absolute; inset-block-start: -7px; inset-inline-end: -9px; min-width: 18px; height: 18px; padding-inline: 5px; border-radius: 999px; background: var(--sq-violet-700); color: #fff; font: 600 11px/18px var(--sq-font); text-align: center; box-shadow: 0 0 0 2px var(--sq-violet-100); }
.sq-fav-count.is-empty { display: none; }
.sq-toast { position: fixed; z-index: 120; inset-inline: 16px; inset-block-end: calc(var(--sq-bnav-h) + 16px + env(safe-area-inset-bottom, 0px)); max-width: 480px; margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: var(--sq-r-md); background: var(--sq-ink); color: #fff; font-size: 14px; line-height: 1.5; box-shadow: 0 8px 24px rgba(20, 19, 26, .25); opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .2s, transform .2s; }
.sq-toast.is-on { opacity: 1; transform: none; pointer-events: auto; }
.sq-toast a { flex-shrink: 0; color: #fff !important; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
@media (min-width: 922px) { .sq-toast { inset-block-end: 24px; } }
@media (prefers-reduced-motion: reduce) { .sq-toast, .sq-fav { transition: none; } }
/* ---------- التنقل: زر الرجوع ---------- */
.sq-titlebar { display: flex; align-items: center; gap: 10px; margin-block-end: 10px; }
.sq-titlebar > :last-child { margin: 0 !important; min-width: 0; }
.sq-back { width: 40px; height: 40px; min-height: 0 !important; padding: 0 !important; flex-shrink: 0; border: 0 !important; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; background: var(--sq-surface) !important; color: var(--sq-violet-800) !important; box-shadow: inset 0 0 0 1.5px var(--sq-violet-300); cursor: pointer; }
.sq-back:hover { box-shadow: inset 0 0 0 1.5px var(--sq-violet-700); }
[dir="ltr"] .sq-back .sq-icon { transform: scaleX(-1); }
.sq-back--float { position: absolute; inset-block-start: 10px; inset-inline-start: 10px; z-index: 2; box-shadow: 0 2px 8px rgba(20, 19, 26, .2); }
.sq-shead__banner { position: relative; }
@media (min-width: 922px) { .sq-back { display: none !important; } .sq-titlebar { display: block; } }

/* ---------- لوحة الأقسام السفلية (الجوال) ---------- */
html.sq-lock, html.sq-lock body { overflow: hidden; }
.sq-sheet { position: fixed; inset: 0; z-index: 200; }
.sq-sheet[hidden] { display: none; }
.sq-sheet__bg { position: absolute; inset: 0; background: rgba(20, 19, 26, .42); opacity: 0; transition: opacity .2s; }
.sq-sheet.is-open .sq-sheet__bg { opacity: 1; }
.sq-sheet__panel { position: absolute; inset-inline: 0; inset-block-end: 0; max-height: 86vh; overflow-y: auto; overscroll-behavior: contain; padding: 8px 16px calc(16px + env(safe-area-inset-bottom, 0px)); background: var(--sq-surface); border-radius: 20px 20px 0 0; transform: translateY(100%); transition: transform .25s ease; }
.sq-sheet.is-open .sq-sheet__panel { transform: none; }
.sq-sheet__grab { width: 40px; height: 4px; margin: 2px auto 10px; border-radius: 4px; background: var(--sq-violet-200); }
.sq-sheet__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-block-end: 12px; padding-inline-end: 40px; }
body.sq .sq-sheet__head h2 { margin: 0; font-size: 18px; }
.sq-sheet__head a { font-size: 14px; font-weight: 600; color: var(--sq-violet-700) !important; text-decoration: underline; text-underline-offset: 4px; min-height: 44px; display: inline-flex; align-items: center; }
.sq-sheet__x { position: absolute; inset-block-start: 12px; inset-inline-end: 12px; width: 40px; height: 40px; min-height: 0 !important; padding: 0 !important; border: 0 !important; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; background: var(--sq-notice-bg) !important; color: var(--sq-ink) !important; cursor: pointer; }
.sq-sheet__cats { list-style: none; margin: 0 0 8px; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 6px; }
.sq-sheet__cats li { margin: 0; }
.sq-sheet__cats a { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; font-size: 12px; font-weight: 600; line-height: 1.35; color: var(--sq-ink) !important; text-decoration: none !important; }
.sq-sheet__ic { width: 54px; height: 54px; border-radius: 999px; display: flex; align-items: center; justify-content: center; background: var(--sq-violet-100); color: var(--sq-violet-800); }
.sq-sheet__links { list-style: none; margin: 0; padding: 0; border-block-start: 1px solid var(--sq-line); }
.sq-sheet__links li { margin: 0; border-block-end: 1px solid var(--sq-line); }
.sq-sheet__links li:last-child { border-block-end: 0; }
.sq-sheet__links a { display: flex; align-items: center; gap: 12px; min-height: 52px; color: var(--sq-ink) !important; text-decoration: none !important; font-size: 15px; }
.sq-sheet__links a > .sq-icon:first-child { color: var(--sq-violet-800); }
.sq-sheet__links a span { flex: 1; }
.sq-sheet__links a > .sq-icon:last-child { color: var(--sq-ink-muted); }
@media (min-width: 922px) { .sq-sheet { display: none !important; } }
@media (prefers-reduced-motion: reduce) { .sq-sheet__panel, .sq-sheet__bg { transition: none; } }

/* ---------- شريط الأقسام (الكمبيوتر) ---------- */
.sq-catbar { display: none; }
@media (min-width: 922px) {
	.sq-catbar { display: block; background: var(--sq-surface); border-block-end: 1px solid var(--sq-line); }
	.sq-catbar ul { list-style: none; max-width: var(--sq-max); margin: 0 auto; padding: 0 24px; display: flex; align-items: center; gap: 2px; overflow-x: auto; scrollbar-width: none; }
	.sq-catbar li { margin: 0; flex-shrink: 0; }
	.sq-catbar a { display: inline-flex; align-items: center; gap: 6px; min-height: 46px; padding: 0 12px; color: var(--sq-ink-2) !important; font-size: 14px; text-decoration: none !important; white-space: nowrap; }
	.sq-catbar a:hover { color: var(--sq-violet-800) !important; background: var(--sq-violet-50); }
	.sq-catbar a[aria-current="page"] { color: var(--sq-violet-800) !important; font-weight: 600; box-shadow: inset 0 -2px 0 var(--sq-violet-700); }
	.sq-catbar__all { font-weight: 600; color: var(--sq-violet-800) !important; }
	.sq-catbar__end { margin-inline-start: auto; }
}
.sq-sheet__panel:focus { outline: none; }

/* ---------- محاذاة موحّدة على الكمبيوتر: الرأس والتذييل وشريط الترحيب على نفس خط المحتوى (24px) ---------- */
@media (min-width: 922px) { .sq-header__inner, .sq-footer__inner, .sq-footer__bottom, .sq-wbar__in { padding-inline: 24px; } }

/* ---------- صفحة 404 ---------- */
.sq-404 { max-width: 520px; margin: 24px auto 40px; padding: 28px 20px; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; background: var(--sq-surface); border: 1px solid var(--sq-line); border-radius: var(--sq-r-lg); }
.sq-404__ic { width: 72px; height: 72px; border-radius: 999px; display: flex; align-items: center; justify-content: center; background: var(--sq-violet-100); color: var(--sq-violet-700); }
body.sq .sq-404 h1 { margin: 4px 0 0; font-size: 22px; }
.sq-404 p { margin: 0; font-size: 14px; color: var(--sq-ink-2); }
.sq-404__btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-block-start: 8px; }
body.sq .sq-404__btns .button { color: #fff !important; text-decoration: none !important; }
.sq-404__btns .sq-btn-outline { display: inline-flex; align-items: center; justify-content: center; min-height: var(--sq-tap); padding: 0 16px; border-radius: var(--sq-r-md); background: var(--sq-surface); color: var(--sq-violet-800) !important; box-shadow: inset 0 0 0 1.5px var(--sq-violet-700); font-weight: 600; text-decoration: none !important; }
.sq-404__btns .sq-btn-outline:hover { background: var(--sq-violet-50); }

/* ==========================================================================
   Sprint 4
   ========================================================================== */

/* ---------- 2) التذييل المضغوط على الجوال: ثلاث أعمدة في صف واحد ---------- */
@media (max-width: 921px) {
	.sq-footer__inner { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 10px; padding: 18px 14px 6px; }
	.sq-footer__brand { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 12px; padding-block-end: 12px; border-block-end: 1px solid var(--sq-line); }
	.sq-footer__brand p { display: none; }
	body.sq .sq-footer .sq-logo__img { height: 34px !important; }
	.sq-footer__wa { min-height: 36px; font-size: 13px; }
	body.sq .sq-footer__col h2 { font-size: 13px; margin: 0 0 2px; }
	.sq-footer__col a { min-height: 30px; font-size: 12px; line-height: 1.35; }
	.sq-footer__bottom { padding-block-start: 8px; font-size: 12px; gap: 6px; }
}

/* ---------- 3) كود المنتج: شريحة مدمجة تحت السعر ---------- */
.sq-sku-block { display: none !important; }
body.sq .summary .woocommerce-breadcrumb { display: none !important; }
.sq-pcode { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; margin: 0 0 14px; padding-block: 3px; padding-inline: 12px 3px; background: var(--sq-violet-50); border: 1px solid var(--sq-violet-100); border-radius: 999px; font-size: 13px; line-height: 1.2; }
.sq-pcode__label { color: var(--sq-ink-muted); white-space: nowrap; }
.sq-pcode__value { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-weight: 600; font-size: 13px; color: var(--sq-ink); letter-spacing: .3px; user-select: all; }
body.sq .sq-pcode__copy { width: 30px; height: 30px; min-height: 0 !important; min-width: 0; padding: 0 !important; border: 0 !important; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; background: var(--sq-surface) !important; color: var(--sq-violet-700) !important; box-shadow: 0 0 0 1px var(--sq-violet-200); cursor: pointer; transition: background-color .15s, color .15s; }
body.sq .sq-pcode__copy:hover { background: var(--sq-violet-100) !important; }
body.sq .sq-pcode__copy.is-copied { background: var(--sq-success-bg) !important; color: var(--sq-success) !important; box-shadow: 0 0 0 1px var(--sq-success); }
.sq-pcode__ok { font-size: 12px; font-weight: 600; color: var(--sq-success); padding-inline-end: 8px; }
.sq-pcode__ok:empty { display: none; }

/* ---------- 4) شريط التنقل السفلي: حالة نشطة واضحة ---------- */
.sq-bnav li { position: relative; }
.sq-bnav a { color: var(--sq-ink-placeholder) !important; font-weight: 500; -webkit-tap-highlight-color: transparent; }
.sq-bnav a .sq-icon, .sq-bnav a .sq-badge-wrap { display: flex; align-items: center; justify-content: center; width: 52px; height: 30px; border-radius: 999px; padding: 3px 14px; box-sizing: border-box; transition: background-color .2s, color .2s; }
.sq-bnav a .sq-badge-wrap .sq-icon { width: auto; height: 100%; padding: 0; }
.sq-bnav a[aria-current="page"], .sq-bnav a[aria-expanded="true"] { color: var(--sq-violet-700) !important; font-weight: 700; }
.sq-bnav a[aria-current="page"] > .sq-icon, .sq-bnav a[aria-current="page"] > .sq-badge-wrap,
.sq-bnav a[aria-expanded="true"] > .sq-icon { background: var(--sq-violet-100); }
.sq-bnav a[aria-current="page"]::before { content: ""; position: absolute; inset-block-start: 0; inset-inline: 30%; height: 3px; border-radius: 0 0 3px 3px; background: var(--sq-violet-700); }
/* لا إطار منقط عند اللمس، مع الإبقاء على إطار التركيز لمستخدمي لوحة المفاتيح */
.sq-bnav a:focus:not(:focus-visible), .sq-sheet a:focus:not(:focus-visible), .sq-sheet button:focus:not(:focus-visible) { outline: none; }
@media (hover: none) and (pointer: coarse) {
	body.sq .sq-bnav a:focus-visible, body.sq .sq-sheet a:focus-visible, body.sq .sq-sheet button:focus-visible, body.sq .sq-sheet__panel:focus-visible { outline: none; }
}

/* ---------- 5) بطاقة المنتج المدمجة ---------- */
body.sq .sq-card__body { padding: 7px 9px 9px; gap: 1px; }
body.sq .sq-card__store { font-size: 11px; line-height: 1.4; }
body.sq .sq-card .sq-card__name, body.sq .entry-content .sq-card .sq-card__name { font-size: 13px !important; line-height: 1.4 !important; min-height: 2.8em; }
body.sq .sq-card__price { margin-block-start: 2px; }
body.sq .sq-card__ship { font-size: 11px; padding-block-start: 2px; }
body.sq .sq-card__add { width: 32px; height: 32px; inset-inline-start: 6px; inset-block-start: calc(100cqi - 38px); box-shadow: 0 0 0 2px var(--sq-surface); }
body.sq .sq-card__add .sq-icon { width: 17px; height: 17px; }
body.sq .sq-card .sq-fav { width: 28px; height: 28px; inset-block-start: 6px; inset-inline-end: 6px; }
body.sq .sq-card .sq-fav .sq-icon { width: 15px; height: 15px; }

/* ==========================================================================
   Sprint 5
   ========================================================================== */

/* 1) لوحة الأقسام فوق الشريط السفلي */
@media (max-width: 921px) {
	.sq-sheet { inset-block-end: calc(var(--sq-bnav-h) + env(safe-area-inset-bottom, 0px)); }
	.sq-sheet__panel { max-height: calc(86vh - var(--sq-bnav-h)); padding-block-end: 12px; box-shadow: 0 -6px 20px rgba(20, 19, 26, .12); }
	html.sq-lock .sq-wa { display: none !important; }
	.sq-bnav a[data-sheet][aria-expanded="true"] { color: var(--sq-violet-700) !important; font-weight: 700; }
	.sq-bnav a[data-sheet][aria-expanded="true"] > .sq-icon { background: var(--sq-violet-100); }
}

/* 2) ترتيب أيقونات الهيدر: المفضلة ← السلة ← حسابي */
.sq-hbtn--fav { order: 1; }
.sq-hbtn--cart { order: 2; }
.sq-hbtn--account { order: 3; }
/* التوصيل بين الشعار والأيقونات، ولا سطر أسفل البحث */
@media (max-width: 921px) {
	.sq-header__inner { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "logo loc actions" "search search search"; padding: 8px 12px 10px; gap: 8px; }
	body.sq .sq-header .sq-logo__img { height: 40px !important; }
	.sq-header .sq-loc { grid-area: loc; justify-self: center; margin: 0; display: flex; align-items: center; gap: 4px; min-width: 0; font-size: 11.5px; line-height: 1.25; text-align: start; }
	.sq-header .sq-loc > .sq-icon { width: 16px; height: 16px; flex-shrink: 0; }
	.sq-header .sq-loc__txt { display: flex; flex-direction: column; }
	.sq-header .sq-loc__city { font-size: 12.5px; }
	.sq-header__actions { gap: 0; }
}

/* 3) شريط الترحيب: إنشاء حساب يميناً (أبيض)، سجّل دخولك يساراً (بنفسجي) */
.sq-wbar__in { padding: 6px 12px; gap: 6px 10px; }
.sq-wbar__t { font-size: 13px; }
.sq-wbar__a { gap: 6px; }
.sq-wbar__a a { min-height: 32px; padding: 0 12px; font-size: 12.5px; }
body.sq .sq-wbar__a a[data-new-only] { order: 1; background: #fff !important; color: var(--sq-violet-800) !important; box-shadow: none !important; }
body.sq .sq-wbar__a a[data-login] { order: 2; background: var(--sq-violet-600) !important; color: #fff !important; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35) !important; }
.sq-wbar__x { width: 30px; height: 30px; }

/* 4) الصفحة الرئيسية المضغوطة على الجوال */
@media (max-width: 921px) {
	body.sq .sq-cats__track { grid-auto-columns: 66px; }
	body.sq .sq-cats .sq-cat { gap: 4px; }
	body.sq .sq-cats .sq-cat__ic { width: 44px; height: 44px; }
	body.sq .sq-cats .sq-cat__ic .sq-icon { width: 22px; height: 22px; }
	body.sq .sq-cats .sq-cat__name { font-size: 11.5px; line-height: 1.3; }
	body.home .sq-sec { margin-block-end: 14px; }
}

/* 5) نماذج الحساب: التسميات وأيقونة العين على اليمين */
body.woocommerce-account .woocommerce form .form-row label,
body.woocommerce-account .woocommerce form .form-row .description,
body.woocommerce-account .woocommerce form .sqc-otp__msg { display: block; text-align: right !important; direction: rtl; }
body.woocommerce-account .woocommerce form .form-row label.woocommerce-form__label-for-checkbox { display: inline-flex; }
body.woocommerce-account .password-input { position: relative; display: block; width: 100%; }
body.woocommerce-account .password-input input { padding-right: 44px !important; padding-left: 12px !important; }
body.woocommerce-account .show-password-input { position: absolute !important; right: 10px !important; left: auto !important; top: 50% !important; transform: translateY(-50%); margin: 0 !important; }

/* 6) لا زر واتساب عائم في صفحات الدخول والتسجيل واستعادة كلمة المرور */
body.woocommerce-account:not(.logged-in) .sq-wa,
body.sq-auth .sq-wa { display: none !important; }

/* 7) بنكك */
.sq-bankak__amount { margin-block-end: 4px; }

/* 4b) رفع "وصل حديثاً" إلى الشاشة الأولى على الجوال */
@media (max-width: 921px) {
	body.home .sq-cats .sq-sec__head { min-height: 0; margin-block-end: 6px; }
	body.home .sq-cats .sq-sec__head h2 { font-size: 16px; }
	body.home .sq-banners .sq-static { display: none !important; }
	body.home .sq-banners { gap: 0; }
	body.home .sq-slider .sq-slide { min-height: 0 !important; height: auto; padding: 14px 16px 26px !important; }
	body.home .sq-slide h2, body.home .sq-slide h3, body.home .sq-slide strong:first-child { font-size: 18px !important; line-height: 1.3 !important; margin: 0 0 2px !important; }
	body.home .sq-slide p { font-size: 12.5px !important; margin: 0 0 8px !important; line-height: 1.45 !important; }
	body.home .sq-slide .sq-icon { max-width: 56px; max-height: 56px; }
	body.home .sq-slide a, body.home .sq-slide .button { min-height: 34px !important; font-size: 13px !important; }
	body.home .sq-products .sq-sec__head { margin-block-end: 6px; }
}

/* 1b) أثناء فتح لوحة الأقسام: "الأقسام" وحده نشط */
html.sq-lock .sq-bnav a[aria-current="page"]:not([aria-expanded="true"]) { color: var(--sq-ink-placeholder) !important; font-weight: 500; }
html.sq-lock .sq-bnav a[aria-current="page"]:not([aria-expanded="true"]) > .sq-icon,
html.sq-lock .sq-bnav a[aria-current="page"]:not([aria-expanded="true"]) > .sq-badge-wrap { background: transparent; }
html.sq-lock .sq-bnav a[aria-current="page"]:not([aria-expanded="true"])::before { display: none; }
.sq-bnav a[data-sheet][aria-expanded="true"]::before { content: ""; position: absolute; inset-block-start: 0; inset-inline: 30%; height: 3px; border-radius: 0 0 3px 3px; background: var(--sq-violet-700); }

/* ---------- Sprint 5b ---------- */
/* أيقونة العين: مغمضة والنص مخفي، مفتوحة والنص ظاهر */
body.sq .password-input { position: relative; display: block; width: 100%; }
body.sq .password-input input { direction: ltr; text-align: left !important; padding-right: 46px !important; padding-left: 12px !important; }
body.sq .show-password-input { position: absolute !important; top: 50% !important; right: 8px !important; left: auto !important; transform: translateY(-50%); width: 32px !important; height: 32px !important; min-height: 0 !important; min-width: 0 !important; margin: 0 !important; padding: 0 !important; border: 0 !important; border-radius: 999px; background: transparent !important; box-shadow: none !important; font-size: 0 !important; line-height: 0 !important; color: var(--sq-ink-muted); cursor: pointer; }
body.sq .show-password-input::before { display: none !important; content: none !important; }
body.sq .show-password-input::after { content: '' !important; position: absolute; inset: 6px; display: block !important; background-color: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 10c2.5 3 5.8 4.5 10 4.5S19.5 13 22 10'/%3E%3Cpath d='M5 13l-1.6 2.2M9.3 14.4l-.6 2.6M14.7 14.4l.6 2.6M19 13l1.6 2.2'/%3E%3Cpath d='M3 3l18 18'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 10c2.5 3 5.8 4.5 10 4.5S19.5 13 22 10'/%3E%3Cpath d='M5 13l-1.6 2.2M9.3 14.4l-.6 2.6M14.7 14.4l.6 2.6M19 13l1.6 2.2'/%3E%3Cpath d='M3 3l18 18'/%3E%3C/svg%3E") center / contain no-repeat; font-size: 0; }
body.sq .show-password-input.display-password::after { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3.6-7 10-7 10 7 10 7-3.6 7-10 7S2 12 2 12Z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3.6-7 10-7 10 7 10 7-3.6 7-10 7S2 12 2 12Z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E"); }
body.sq .show-password-input:hover { color: var(--sq-violet-700); }
/* استعادة كلمة المرور: إخفاء نموذج ووكومرس القديم تحت نموذج البريد */
.sqc-reset ~ form.lost_reset_password, .sqc-reset ~ .woocommerce-ResetPassword { display: none !important; }
/* المفضلة داخل الحساب */
body.sq-fav-in-account .sq-favs__title { display: none; }
/* طلباتي الفارغة: نص وزر في المنتصف */
body.sq .woocommerce-MyAccount-content .woocommerce-info, body.sq .woocommerce-MyAccount-content .woocommerce-message--info { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; text-align: center; padding: 28px 16px; }
body.sq .woocommerce-MyAccount-content .woocommerce-info .button { order: 2; float: none !important; margin: 0 !important; min-height: 44px; padding-inline: 22px !important; }

/* توسيط أيقونة العين عمودياً بدون transform */
body.sq .password-input .show-password-input, body.woocommerce-account .password-input .show-password-input { top: 0 !important; bottom: 0 !important; margin: auto 0 !important; transform: none !important; translate: none !important; }

/* ==========================================================================
   Sprint 6
   ========================================================================== */
/* حسابي: لا عنوان صفحة في صفحتي الدخول والتسجيل */
body.sq-auth .sq-titlebar, body.sq-auth .entry-header { display: none !important; }

/* زر المشاركة */
body.sq .sq-share { display: inline-flex; align-items: center; gap: 6px; min-height: 40px !important; padding: 0 14px !important; margin: 0 0 8px; margin-inline-start: 6px; border: 0 !important; border-radius: 999px; background: var(--sq-surface) !important; color: var(--sq-violet-800) !important; box-shadow: inset 0 0 0 1.5px var(--sq-violet-300); font: 600 14px/1 var(--sq-font); cursor: pointer; vertical-align: top; }
body.sq .sq-share:hover { background: var(--sq-violet-50) !important; }

/* مدينة التوصيل قابلة للضغط */
.sq-header .sq-loc { cursor: pointer; border-radius: 8px; }
.sq-header .sq-loc.is-loading .sq-loc__city { opacity: .45; }

/* دفتر العناوين */
.sq-ab__intro { margin: 0 0 14px; color: var(--sq-ink-muted); font-size: 14px; }
.sq-ab__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
@media (min-width: 700px) { .sq-ab__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.sq-ab__card { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 14px; border-radius: var(--sq-r-lg); background: var(--sq-surface); box-shadow: inset 0 0 0 1px var(--sq-violet-200); }
.sq-ab__card.is-default { box-shadow: inset 0 0 0 2px var(--sq-violet-700); background: var(--sq-violet-50); }
.sq-ab__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-block-end: 4px; }
.sq-ab__label { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 16px; color: var(--sq-ink); }
.sq-ab__label .sq-icon { color: var(--sq-violet-700); }
.sq-ab__badge { padding: 3px 10px; border-radius: 999px; background: var(--sq-violet-700); color: #fff; font-size: 12px; font-weight: 600; }
body.sq .sq-ab__card p { margin: 0; font-size: 14px; line-height: 1.6; }
.sq-ab__name { font-weight: 600; color: var(--sq-ink); }
.sq-ab__line { color: var(--sq-ink-2); }
.sq-ab__desc { color: var(--sq-ink-muted); }
.sq-ab__phones { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; color: var(--sq-ink-2); }
.sq-ab__phones .sq-icon { width: 15px; height: 15px; color: var(--sq-ink-muted); }
.sq-ab__wa { display: inline-flex; align-items: center; gap: 3px; padding: 1px 8px; border-radius: 999px; background: var(--sq-success-bg); color: var(--sq-success); font-size: 12px; font-weight: 600; }
.sq-ab__wa .sq-icon { width: 13px; height: 13px; color: currentColor; }
.sq-ab__sep { color: var(--sq-ink-muted); }
.sq-ab__actions { display: flex; flex-wrap: wrap; gap: 6px; margin-block-start: 10px; padding-block-start: 10px; border-block-start: 1px solid var(--sq-line); }
.sq-ab__f { display: inline; margin: 0; }
body.sq .sq-ab__act { display: inline-flex; align-items: center; gap: 5px; min-height: 34px !important; padding: 0 12px !important; border: 0 !important; border-radius: 999px; background: var(--sq-surface) !important; box-shadow: inset 0 0 0 1px var(--sq-violet-200); color: var(--sq-violet-800) !important; font: 600 13px/1 var(--sq-font); text-decoration: none !important; cursor: pointer; }
body.sq .sq-ab__act .sq-icon { width: 15px; height: 15px; }
body.sq .sq-ab__act--danger { color: var(--sq-ink-muted) !important; }
.sq-ab__add { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 140px; padding: 16px; border-radius: var(--sq-r-lg); border: 2px dashed var(--sq-violet-300); color: var(--sq-violet-800) !important; font-weight: 700; text-decoration: none !important; background: transparent; }
.sq-ab__add:hover { background: var(--sq-violet-50); }
.sq-ab__add-ic { width: 44px; height: 44px; border-radius: 999px; display: flex; align-items: center; justify-content: center; background: var(--sq-violet-100); }

/* نموذج العنوان */
.sq-af__title { font-size: 18px; margin: 0 0 12px; }
.sq-af__set { border: 0; margin: 0 0 14px; padding: 0 0 14px; border-block-end: 1px solid var(--sq-line); }
.sq-af__set legend { padding: 0; margin-block-end: 8px; font-weight: 700; font-size: 15px; color: var(--sq-violet-800); }
.sq-af__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 10px; }
.sq-af__row > [hidden] { display: none; }
body.sq .sq-af .form-row { margin: 0 0 10px; padding: 0; }
body.sq .sq-af label { display: block; text-align: right; font-size: 14px; margin-block-end: 4px; }
body.sq .sq-af .sq-af__check label { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
body.sq .sq-af select, body.sq .sq-af input.input-text, body.sq .sq-af textarea { width: 100%; }
body.sq .sq-af textarea::placeholder, body.sq .sq-af input::placeholder { color: var(--sq-ink-placeholder); opacity: .85; }
.sq-af__chips { display: flex; flex-wrap: wrap; gap: 6px; margin: -2px 0 10px; }
body.sq .sq-af__chip { min-height: 30px !important; padding: 0 12px !important; border: 0 !important; border-radius: 999px; background: var(--sq-violet-50) !important; box-shadow: inset 0 0 0 1px var(--sq-violet-200); color: var(--sq-violet-800) !important; font: 600 13px/1 var(--sq-font); cursor: pointer; }
.sq-af__note { margin: 0 0 10px; padding: 8px 12px; border-radius: var(--sq-r-md); background: var(--sq-notice-bg); color: var(--sq-ink-2); font-size: 13px; }
.sq-af__note[hidden] { display: none; }
.sq-af .description { display: block; font-size: 12.5px; color: var(--sq-ink-muted); }
.sq-af__btns { display: flex; gap: 10px; align-items: center; margin-block-start: 6px; }
.sq-af__btns .button { min-height: 46px; padding-inline: 24px !important; }
.sq-af__btns .sq-btn-outline { min-height: 46px; display: inline-flex; align-items: center; padding: 0 20px; border-radius: 999px; text-decoration: none !important; }

/* اختيار العنوان في الدفع */
.sq-cop { margin: 0 0 16px; }
.sq-cop__t { margin: 0 0 8px; font-weight: 700; font-size: 15px; }
.sq-cop__list { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 6px; scrollbar-width: none; }
.sq-cop__list::-webkit-scrollbar { display: none; }
.sq-cop__item { flex: 0 0 auto; width: 170px; margin: 0; cursor: pointer; }
.sq-cop__item input { position: absolute; opacity: 0; pointer-events: none; }
.sq-cop__box { display: flex; flex-direction: column; gap: 2px; height: 100%; padding: 10px 12px; border-radius: var(--sq-r-md); background: var(--sq-surface); box-shadow: inset 0 0 0 1px var(--sq-violet-200); font-size: 13px; color: var(--sq-ink-muted); }
.sq-cop__box strong { color: var(--sq-ink); font-size: 14px; }
.sq-cop__item input:checked + .sq-cop__box { box-shadow: inset 0 0 0 2px var(--sq-violet-700); background: var(--sq-violet-50); }
.sq-cop__item input:focus-visible + .sq-cop__box { outline: 3px solid var(--sq-violet-600); outline-offset: 2px; }
.sq-cop__item--new .sq-cop__box strong { color: var(--sq-violet-800); }
.sq-cop__note { margin: 6px 0 0; padding: 8px 12px; border-radius: var(--sq-r-md); background: var(--sq-notice-bg); font-size: 13px; }
.sq-cop__note[hidden] { display: none; }
.sq-af [hidden], .sq-cop [hidden] { display: none !important; }

/* ---------- Sprint 6b: أبعاد بطاقات المنتجات وصورة المنتج على التابلت والكمبيوتر ---------- */
/* Astra يفرض columns-3 بأولوية أعلى، فنثبّت عرض البطاقة بدل عدد الأعمدة */
@media (min-width: 600px) {
	body.sq ul.products, body.sq ul.products[class*="columns-"] { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)) !important; gap: 12px !important; }
}
@media (min-width: 922px) {
	body.sq ul.products, body.sq ul.products[class*="columns-"] { grid-template-columns: repeat(auto-fill, minmax(190px, 220px)) !important; justify-content: start; gap: 14px !important; }
}
/* صفحة المنتج: صورة بحجم معتاد والتفاصيل بجانبها */
@media (min-width: 922px) {
	body.sq.single-product div.product { grid-template-columns: minmax(0, 440px) minmax(0, 1fr) !important; gap: 20px 40px; }
	body.sq.single-product div.product .woocommerce-product-gallery { max-width: 440px; align-self: start; }
	body.sq.single-product div.product .summary { max-width: 680px; }
}
@media (min-width: 600px) and (max-width: 921px) {
	body.sq.single-product div.product .woocommerce-product-gallery { max-width: 420px; margin-inline: auto !important; }
}

/* ---------- Sprint 6c: الصفحة الرئيسية المضغوطة على الكمبيوتر ---------- */
@media (min-width: 922px) {
	body.home .sq-sec { margin-block-end: 18px; }
	body.home .sq-cats .sq-sec__head { min-height: 0; margin-block-end: 8px; }
	body.home .sq-cats .sq-sec__head h2 { font-size: 18px; }
	body.sq.home .sq-cats__track { grid-template-columns: repeat(auto-fill, 92px) !important; grid-auto-columns: 92px; gap: 6px 10px; justify-content: start; }
	body.sq.home .sq-cats .sq-cat { gap: 6px; }
	body.sq.home .sq-cats .sq-cat__ic { width: 56px; height: 56px; }
	body.sq.home .sq-cats .sq-cat__ic .sq-icon { width: 24px; height: 24px; }
	body.sq.home .sq-cats .sq-cat__name { font-size: 13px; }
	body.home .sq-banners { min-height: 0 !important; }
	body.home .sq-slider, body.home .sq-slider .sq-slide, body.home .sq-banners .sq-static { min-height: 0 !important; height: 150px !important; }
	body.home .sq-slider .sq-slide, body.home .sq-banners .sq-static { padding: 18px 28px 28px !important; }
	body.home .sq-slide h2, body.home .sq-slide h3, body.home .sq-static h2, body.home .sq-static h3 { font-size: 22px !important; margin: 0 0 4px !important; }
	body.home .sq-slide p, body.home .sq-static p { font-size: 14px !important; margin: 0 0 10px !important; }
	body.home .sq-slide .sq-icon { max-width: 72px; max-height: 72px; }
	body.home .sq-slide a, body.home .sq-static a, body.home .sq-slide .button { min-height: 38px !important; }
	body.home .sq-products .sq-sec__head { margin-block-end: 8px; }
}

@media (min-width: 922px) { body.home .sq-cats { margin-block-end: 14px; } body.home .sq-cats .sq-sec__head { margin-block-end: 4px; } }

/* ==========================================================================
   Sprint 7 — اختيار اللون والمقاس في صفحة المنتج
   ========================================================================== */
body.sq .sq-vopts table.variations, body.sq .sq-vopts table.variations tbody, body.sq .sq-vopts table.variations tr, body.sq .sq-vopts table.variations th, body.sq .sq-vopts table.variations td { display: block; width: 100%; border: 0 !important; padding: 0 !important; background: none !important; }
body.sq .sq-vopts table.variations { margin: 0 0 14px !important; }
body.sq .sq-vopts table.variations tr { margin-block-end: 14px; }
body.sq .sq-vopts table.variations th.label { display: block !important; margin-block-end: 8px !important; text-align: start; }
body.sq .sq-vopts table.variations th.label label { font-size: 15px; font-weight: 700; color: var(--sq-ink); margin: 0; }
body.sq .sq-vopts .sq-vsel { font-weight: 500; color: var(--sq-ink-2); }
body.sq .sq-vopts .cfvsw-swatches-container { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
body.sq .sq-vopts .cfvsw-swatches-option { position: relative; margin: 0 !important; cursor: pointer; transition: box-shadow .15s, background-color .15s, color .15s; }
/* المقاسات والسعات: أزرار */
body.sq .sq-vopts .cfvsw-swatches-option.cfvsw-label-option { min-width: 52px !important; min-height: 42px !important; padding: 0 14px; border-radius: 10px !important; display: inline-flex; align-items: center; justify-content: center; background: var(--sq-surface); box-shadow: inset 0 0 0 1.5px var(--sq-violet-200); border: 0 !important; }
body.sq .sq-vopts .cfvsw-label-option .cfvsw-swatch-inner { font: 600 14px/1 var(--sq-font); color: var(--sq-ink); background: none; white-space: nowrap; }
body.sq .sq-vopts .cfvsw-label-option:hover { box-shadow: inset 0 0 0 1.5px var(--sq-violet-600); }
body.sq .sq-vopts .cfvsw-label-option.cfvsw-selected-swatch { background: var(--sq-violet-700); box-shadow: inset 0 0 0 1.5px var(--sq-violet-700); }
body.sq .sq-vopts .cfvsw-label-option.cfvsw-selected-swatch .cfvsw-swatch-inner { color: #fff; }
/* الألوان: دوائر */
body.sq .sq-vopts [swatches-attr="attribute_pa_color"] .cfvsw-swatches-option { width: 40px; height: 40px; min-width: 40px !important; min-height: 40px !important; padding: 3px; border-radius: 999px !important; background: var(--sq-surface); box-shadow: inset 0 0 0 1.5px var(--sq-violet-200); }
body.sq .sq-vopts [swatches-attr="attribute_pa_color"] .cfvsw-swatch-inner { display: block; width: 100%; height: 100%; border-radius: 999px; font-size: 0 !important; color: transparent; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); }
body.sq .sq-vopts [swatches-attr="attribute_pa_color"] .cfvsw-swatches-option.cfvsw-selected-swatch { background: var(--sq-surface); box-shadow: inset 0 0 0 2.5px var(--sq-violet-700); }
/* غير متاح */
body.sq .sq-vopts .cfvsw-swatches-disabled, body.sq .sq-vopts .cfvsw-swatches-out-of-stock { opacity: .4; cursor: not-allowed; }
body.sq .sq-vopts .cfvsw-swatches-disabled::after, body.sq .sq-vopts .cfvsw-swatches-out-of-stock::after { content: ""; position: absolute; inset-inline: 6px; top: 50%; height: 1.5px; background: var(--sq-ink-muted); transform: rotate(-20deg); }
body.sq .sq-vopts .cfvsw-swatches-option:focus-visible { outline: 3px solid var(--sq-violet-600); outline-offset: 2px; }
body.sq .sq-vopts .cfvsw-tooltip { display: none !important; }
body.sq .sq-vopts .reset_variations { display: inline-block; margin-block-start: 8px; font-size: 13px; color: var(--sq-ink-muted); }
body.sq .sq-vopts .woocommerce-variation-price { margin: 0 0 10px; font-size: 20px; font-weight: 700; }
body.sq .sq-vopts .woocommerce-variation-availability { font-size: 13px; }
body.sq .sq-vopts .cfvsw-selected-label { display: none !important; }
