/* SouqSmart Child: design tokens
   Ink #0b1f3a, Signal blue #1e6bff, Mist #f3f6fa, Line #dde3ec, Sale #e8431f, WhatsApp #0f7a42 */
body {
	--theme-palette-color-1: #1e6bff;
	--theme-palette-color-2: #1452cc;
	--theme-palette-color-3: #46566e;
	--theme-palette-color-4: #0b1f3a;
	--theme-palette-color-5: #dde3ec;
	--theme-palette-color-6: #f3f6fa;
	--theme-palette-color-7: #f8fafc;
	--theme-palette-color-8: #ffffff;
	--ss-ink: #0b1f3a;
	--ss-blue: #1e6bff;
	--ss-blue-dark: #1452cc;
	--ss-mist: #f3f6fa;
	--ss-line: #dde3ec;
	--ss-text: #46566e;
	--ss-sale: #e8431f;
	--ss-wa: #0f7a42;
	--ss-ok: #0f7b4b;
	--ss-r-card: 14px;
	--ss-r-btn: 10px;
	--ss-r-chip: 6px;
	--theme-font-family: 'Manrope', 'IBM Plex Sans Arabic', system-ui, sans-serif;
	font-family: var(--theme-font-family);
}
html[dir="rtl"] body {
	--theme-font-family: 'IBM Plex Sans Arabic', 'Manrope', system-ui, sans-serif;
}
body h1, body h2, body h3, body h4, body button, body input, body select, body textarea {
	font-family: var(--theme-font-family);
}
:focus-visible { outline: 3px solid var(--ss-blue); outline-offset: 2px; }

/* Announcement bar */
.ss-topbar { background: var(--ss-ink); color: #fff; font-size: .82rem; }
.ss-topbar__in { max-width: 1290px; margin-inline: auto; padding: 8px 20px; display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 28px; }
.ss-topbar a { color: #fff; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* Buttons */
.ss-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border-radius: var(--ss-r-btn); font-weight: 700; text-decoration: none; border: 1.5px solid transparent; cursor: pointer; font-size: 1rem; line-height: 1; }
.ss-btn--primary { background: var(--ss-blue); color: #fff; }
.ss-btn--primary:hover { background: var(--ss-blue-dark); color: #fff; }
.ss-btn--wa { background: var(--ss-wa); color: #fff; }
.ss-btn--wa:hover { background: #0b5f34; color: #fff; }
.ss-btn--ghost { background: #fff; color: var(--ss-ink); border-color: var(--ss-line); }
.ss-btn--ghost:hover { border-color: var(--ss-blue); color: var(--ss-ink); }
.ss-btn--light { background: #fff; color: var(--ss-ink); }
.ss-btn--light:hover { background: var(--ss-mist); color: var(--ss-ink); }
.ss-btn--block { display: flex; width: 100%; margin-top: 12px; }

/* Layout helpers */
.ss-wrap { max-width: 1290px; margin-inline: auto; padding-inline: 20px; }
.ss-section { padding-block: 40px; }
.ss-section__head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 20px; }
.ss-section__head h2, .ss-visit h2 { margin: 0; font-size: clamp(1.4rem, 2.4vw, 1.9rem); color: var(--ss-ink); font-weight: 800; }
.ss-section__head a { font-weight: 700; color: var(--ss-blue-dark); }

/* Hero */
.ss-hero { padding-block: 56px 24px; }
.ss-hero__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: center; }
.ss-hero h1 { margin: 0 0 16px; font-size: clamp(2rem, 4.2vw, 3.4rem); line-height: 1.1; letter-spacing: -.02em; color: var(--ss-ink); font-weight: 800; }
html[dir="rtl"] .ss-hero h1 { letter-spacing: 0; line-height: 1.35; }
.ss-hero p { max-width: 46ch; margin: 0; font-size: 1.1rem; line-height: 1.6; color: var(--ss-text); }
.ss-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.ss-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.ss-tile { display: flex; flex-direction: column; justify-content: space-between; gap: 28px; min-height: 150px; padding: 18px; border-radius: var(--ss-r-card); background: var(--ss-mist); border: 1.5px solid transparent; color: var(--ss-ink); text-decoration: none; transition: border-color .15s; }
.ss-tile:hover { border-color: var(--ss-blue); color: var(--ss-ink); }
.ss-tile__fig { font-size: clamp(1.4rem, 2.5vw, 2.1rem); font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; unicode-bidi: isolate; }
.ss-tile__name { font-size: .95rem; font-weight: 600; color: var(--ss-text); }
.ss-tile--hot { background: var(--ss-ink); color: #fff; }
.ss-tile--hot:hover { color: #fff; border-color: var(--ss-blue); }
.ss-tile--hot .ss-tile__fig { color: #7fb0ff; }
.ss-tile--hot .ss-tile__name { color: #d6e0ef; }

/* Smart-home band */
.ss-band { display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: center; padding: 44px; border-radius: 20px; background: var(--ss-ink); color: #d6e0ef; }
.ss-band h2 { margin: 0 0 12px; color: #fff; font-size: clamp(1.5rem, 2.8vw, 2.1rem); font-weight: 800; }
.ss-band p { margin: 0 0 24px; max-width: 48ch; line-height: 1.6; }
.ss-band__links { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ss-band__links a { display: block; padding: 14px 18px; border: 1px solid rgba(255, 255, 255, .22); border-radius: var(--ss-r-btn); color: #fff; font-weight: 600; text-decoration: none; }
.ss-band__links a:hover { border-color: #7fb0ff; }

/* Trust band */
.ss-trust { display: grid; grid-template-columns: repeat(4, 1fr); border-block: 1px solid var(--ss-line); padding-block: 8px; }
.ss-trust__item { display: grid; gap: 4px; padding: 18px 20px; border-inline-end: 1px solid var(--ss-line); }
.ss-trust__item:last-child { border-inline-end: 0; }
.ss-trust__item strong { color: var(--ss-ink); font-size: 1rem; }
.ss-trust__item span { color: var(--ss-text); font-size: .9rem; }

/* Visit shop */
.ss-visit { display: grid; gap: 16px; justify-items: start; }
.ss-visit dl { display: grid; grid-template-columns: max-content 1fr; gap: 8px 24px; margin: 0; }
.ss-visit dt { font-weight: 700; color: var(--ss-ink); }
.ss-visit dd { margin: 0; color: var(--ss-text); }

/* Product cards */
.woocommerce .products .product .woocommerce-loop-product__title { font-size: .95rem; font-weight: 600; line-height: 1.4; color: var(--ss-ink); }
.products .product figure { background: #fff; border: 1px solid var(--ss-line); border-radius: var(--ss-r-card); overflow: hidden; }
.ss-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 8px; padding: 0; list-style: none; }
.ss-chips li { padding: 3px 8px; border-radius: var(--ss-r-chip); background: var(--ss-mist); color: var(--ss-ink); font-size: .75rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.woocommerce .price, .price { font-weight: 800; color: var(--ss-ink); }
.price del { color: #7a8aa3; font-weight: 500; }
.price ins { text-decoration: none; color: var(--ss-sale); }
.onsale { background: var(--ss-sale) !important; color: #fff !important; border-radius: var(--ss-r-chip) !important; font-weight: 700; }

/* Single product */
.product_title { font-size: clamp(1.5rem, 2.6vw, 2.1rem); line-height: 1.25; color: var(--ss-ink); font-weight: 800; }
.single-product .summary .price { font-size: 1.6rem; }
.single_add_to_cart_button { min-height: 52px; border-radius: var(--ss-r-btn) !important; font-weight: 700; }
.stock.in-stock { color: var(--ss-ok); font-weight: 600; }
.stock.out-of-stock { color: var(--ss-sale); font-weight: 600; }
.ss-assure { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 8px; color: var(--ss-text); font-size: .92rem; }
.ss-assure li::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-inline-end: 10px; border-radius: 50%; background: var(--ss-blue); }
.shop_attributes { width: 100%; border: 1px solid var(--ss-line); border-collapse: separate; border-spacing: 0; border-radius: var(--ss-r-card); overflow: hidden; }
.shop_attributes th, .shop_attributes td { padding: 12px 16px; border: 0; border-bottom: 1px solid var(--ss-line); text-align: start; }
.shop_attributes th { width: 34%; background: var(--ss-mist); color: var(--ss-ink); font-weight: 600; }
.shop_attributes tr:last-child th, .shop_attributes tr:last-child td { border-bottom: 0; }
.shop_attributes p { margin: 0; }

/* Floating WhatsApp and mobile sticky bar */
.ss-wa-float { position: fixed; inset-block-end: 20px; inset-inline-end: 20px; z-index: 50; width: 54px; height: 54px; display: grid; place-items: center; border-radius: 50%; background: var(--ss-wa); color: #fff; }
.ss-wa-float:hover { background: #0b5f34; color: #fff; }
.ss-sticky { display: none; }

/* Responsive */
@media (max-width: 900px) {
	.ss-hero__grid, .ss-band { grid-template-columns: 1fr; }
	.ss-hero { padding-block: 32px 8px; }
	.ss-band { padding: 28px; }
	.ss-trust { grid-template-columns: repeat(2, 1fr); }
	.ss-trust__item:nth-child(2) { border-inline-end: 0; }
}
@media (max-width: 768px) {
	.single-product .ss-wa-float { display: none; }
	.single-product { padding-bottom: 76px; }
	.ss-sticky { position: fixed; inset-inline: 0; inset-block-end: 0; z-index: 60; display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: #fff; border-top: 1px solid var(--ss-line); }
	.ss-sticky__price { flex: 1; font-size: 1.05rem; }
	.ss-sticky .ss-btn { min-height: 44px; padding: 0 16px; }
}
@media (max-width: 520px) {
	.ss-tiles { grid-template-columns: repeat(2, 1fr); }
	.ss-topbar span:nth-child(n+2) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
	* { transition: none !important; scroll-behavior: auto !important; }
}
