/* ------------------------------------------------------------------
   Arab Shop (عرب شوب) product page, template-arabshop.php. Arab Shop's own
   brand (arabshop.app): white page, ink #111, lime #ABFA08, pistachio #F3FEDB,
   grey #F5F5F5, hairline #E4E4E7, muted #71717A, Thmanyah Sans.
   ------------------------------------------------------------------ */
.page-template-template-arabshop {
	--as-ink: #111;
	--as-lime: #abfa08;
	--as-pistachio: #f3fedb;
	--as-alt: #f5f5f5;
	--as-line: #e4e4e7;
	--as-muted: #71717a;
	/* by role, for the dark theme: page text, white panels, grey panels */
	--as-text: #111;
	--as-paper: #fff;
	--as-shade: 17, 17, 17;
}

/* Dark theme: Arab Shop's own night look (ink page, lime stays the accent). */
:root[data-theme="dark"] .page-template-template-arabshop {
	--as-pistachio: #1b2609;
	--as-alt: #1a1a1a;
	--as-line: #2a2a2e;
	--as-muted: #a1a1aa;
	--as-text: #f4f4f5;
	--as-paper: #111;
	--as-shade: 244, 244, 245;
}

/* The old header wrapper is a fixed-height blue block; on this page it is white. */
.page-template-template-arabshop .headerSection {
	height: auto !important;
	max-height: none !important;
	overflow: hidden;
	background: var(--as-paper) !important;
}

.asp,
.asp * {
	font-family: "Thmanyah Sans", sans-serif !important;
	letter-spacing: 0;
}

.asp .container::before,
.asp .container::after {
	display: none;
}

.asp-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 15px 30px;
	border: 1.5px solid transparent;
	border-radius: 999px;
	font-size: 17px;
	font-weight: 700;
	line-height: 22px;
	text-decoration: none !important;
	transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}

.asp-btn--ink {
	background: var(--as-ink);
	color: #fff !important;
}

.asp-btn--ink:hover {
	background: var(--as-lime);
	color: var(--as-ink) !important;
	transform: translateY(-2px);
}

.asp-btn--line {
	border-color: var(--as-line);
	color: var(--as-text) !important;
}

.asp-btn--line:hover {
	border-color: var(--as-ink);
}

.asp-btn--lime {
	background: var(--as-lime);
	color: var(--as-ink) !important;
}

.asp-btn--lime:hover {
	background: #fff;
	transform: translateY(-2px);
}

.asp-btn:focus-visible {
	outline: 3px solid var(--as-lime);
	outline-offset: 3px;
}

/* Hero: everything centred on white. */
.asp-hero {
	padding: 136px 0 0;
	background:
		radial-gradient(50% 45% at 50% 0%, var(--as-pistachio), transparent 70%),
		var(--as-paper);
	color: var(--as-text);
	text-align: center;
	overflow: hidden;
}

.asp-chip {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 28px;
	padding: 6px 16px 6px 6px;
	border: 1px solid var(--as-line);
	border-radius: 999px;
	background: var(--as-paper);
	font-size: 14px;
}

.asp-chip img {
	display: block;
	width: 28px;
	height: 28px;
}

.asp-chip b {
	color: var(--as-text);
	font-weight: 900;
}

.asp-chip span {
	padding-right: 10px;
	border-right: 1px solid var(--as-line);
	color: var(--as-muted);
}

.asp-hero__title {
	margin: 0 0 22px;
	color: var(--as-text);
	font-size: 84px !important;
	font-weight: 900;
	line-height: 1.12;
	text-align: center;
}

/* "متاجر بلا حدود." sits on a lime highlighter stroke. */
.asp-hero__title span {
	background: linear-gradient(transparent 62%, var(--as-lime) 62%, var(--as-lime) 92%, transparent 92%);
}

:root[data-theme="dark"] .asp-hero__title span {
	background: linear-gradient(transparent 62%, rgba(171, 250, 8, .55) 62%, rgba(171, 250, 8, .55) 92%, transparent 92%);
}

.asp-hero__lead {
	max-width: 620px;
	margin: 0 auto 34px;
	color: var(--as-muted);
	font-size: 20px;
	line-height: 1.8;
	text-align: center !important;
}

.asp-hero__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px;
}

.asp-hero__ticks {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px 26px;
	margin: 28px 0 0;
	padding: 0;
	list-style: none;
	color: var(--as-text);
	font-size: 15px;
	font-weight: 700;
}

.asp-hero__ticks li {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.asp-hero__ticks li::before {
	content: "";
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: var(--as-lime) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%23111' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* Template rail: two rows of store templates, moving in opposite directions, fading at the edges. */
.asp-rail {
	display: flex;
	flex-direction: column;
	gap: 18px;
	margin-top: 64px;
	padding-bottom: 72px;
	direction: ltr;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
	mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.asp-rail__row {
	overflow: hidden;
}

.asp-rail__track {
	display: flex;
	gap: 18px;
	width: max-content;
	animation: asp-rail 70s linear infinite;
}

.asp-rail__row--b .asp-rail__track {
	animation-direction: reverse;
	animation-duration: 80s;
}

.asp-rail:hover .asp-rail__track {
	animation-play-state: paused;
}

@keyframes asp-rail {
	to { transform: translateX(-50%); }
}

.asp-rail__card {
	flex: 0 0 auto;
	width: 220px;
	height: 300px;
	margin: 0;
	overflow: hidden;
	border: 1px solid var(--as-line);
	border-radius: 18px;
	background: var(--as-alt);
	box-shadow: 0 20px 40px -28px rgba(17, 17, 17, .35);
}

.asp-rail__card img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: top;
}

@media (prefers-reduced-motion: reduce) {
	.asp-rail__track {
		animation: none;
	}
}

@media (max-width: 991px) {
	.asp-hero {
		padding-top: 120px;
	}

	.asp-hero__title {
		font-size: 60px !important;
	}
}

@media (max-width: 600px) {
	.asp-hero {
		padding-top: 104px;
	}

	.asp-hero__title {
		font-size: 42px !important;
	}

	.asp-hero__lead {
		font-size: 17px;
	}

	.asp-btn {
		flex: 1 1 auto;
		padding: 14px 20px;
	}

	.asp-rail {
		gap: 12px;
		margin-top: 44px;
		padding-bottom: 48px;
	}

	.asp-rail__track {
		gap: 12px;
	}

	.asp-rail__card {
		width: 150px;
		height: 205px;
		border-radius: 14px;
	}
}

/* Shared section heading (centred). */
.asp-head {
	max-width: 760px;
	margin: 0 auto 56px;
	text-align: center;
}

.asp-kicker {
	display: inline-block;
	margin: 0 0 16px;
	padding: 5px 14px;
	border-radius: 999px;
	background: var(--as-ink);
	color: var(--as-lime);
	font-size: 14px;
	font-weight: 700;
}

.asp-title {
	margin: 0 0 14px;
	color: var(--as-text);
	font-size: 50px !important;
	font-weight: 900;
	line-height: 1.2;
	text-align: center;
}

.asp-lead {
	margin: 0;
	color: var(--as-muted);
	font-size: 19px;
	line-height: 1.8;
	text-align: center !important;
}

/* The system: an ink strip with one order's journey, then the six parts as a bento. */
.asp-sys {
	padding: 112px 0;
	background: var(--as-paper);
}

.asp-sys__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.asp-sys__chips li {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 10px;
	border: 1px solid var(--as-line);
	border-radius: 999px;
	background: var(--as-alt);
	color: var(--as-text);
	font-size: 12px;
	font-weight: 700;
	direction: ltr;
}

.asp-sys__chips img {
	display: block;
	width: 14px;
	height: 14px;
	object-fit: contain;
}

/* Journey strip: six stops on a dashed track; a lime dot travels from the store to the phone. */
.asp-trip {
	position: relative;
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 10px;
	margin: 0 0 16px;
	padding: 28px 24px 26px;
	border-radius: 26px;
	background: var(--as-ink);
	list-style: none;
}

.asp-trip::before {
	content: "";
	position: absolute;
	top: 55px;
	right: calc(24px + 100% / 12);
	left: calc(24px + 100% / 12);
	height: 2px;
	background: repeating-linear-gradient(to left, #3f3f46 0 8px, transparent 8px 14px);
}

.asp-trip::after {
	content: "";
	position: absolute;
	top: 50px;
	right: calc(24px + 100% / 12);
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: var(--as-lime);
	box-shadow: 0 0 0 6px rgba(171, 250, 8, .2), 0 0 18px rgba(171, 250, 8, .8);
	animation: asp-trip 7s cubic-bezier(.6, 0, .4, 1) infinite;
}

@keyframes asp-trip {
	0% { right: calc(24px + 100% / 12); opacity: 0; }
	6%, 94% { opacity: 1; }
	100% { right: calc(100% - 24px - 100% / 12 - 12px); opacity: 0; }
}

.asp-trip__stop {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	text-align: center;
}

.asp-trip__dot {
	position: relative;
	z-index: 1;
	display: grid;
	width: 54px;
	height: 54px;
	margin-bottom: 8px;
	place-items: center;
	border: 1px solid #3f3f46;
	border-radius: 17px;
	background: #1c1c1c;
	color: var(--as-lime);
}

.asp-trip__stop b {
	color: #fff;
	font-size: 15px;
	font-weight: 900;
}

.asp-trip__stop small {
	color: #a1a1aa;
	font-size: 12px;
	line-height: 1.5;
}

/* Bento */
.asp-bento {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	grid-auto-rows: minmax(210px, auto);
	gap: 16px;
}

.asp-bento__tile {
	position: relative;
	overflow: hidden;
	padding: 24px 26px 26px;
	border: 1px solid var(--as-line);
	border-radius: 26px;
	background: var(--as-alt);
	transition: transform .3s ease, box-shadow .3s ease;
}

.asp-bento__tile:hover {
	box-shadow: 0 24px 46px -30px rgba(17, 17, 17, .4);
	transform: translateY(-4px);
}

/* The step tag ties each tile to the journey above. */
.asp-bento__step {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 16px !important;
	color: var(--as-muted) !important;
	font-size: 13px !important;
	font-weight: 700;
}

.asp-bento__step b {
	display: grid;
	width: 26px;
	height: 26px;
	place-items: center;
	border-radius: 50%;
	background: var(--as-ink);
	color: var(--as-lime);
	font-size: 12px;
}

.asp-bento__tile h3 {
	margin: 0 0 6px;
	color: var(--as-text);
	font-size: 22px !important;
	font-weight: 900;
	text-align: right;
}

.asp-bento__tile p {
	margin: 0 0 14px;
	color: var(--as-muted);
	font-size: 15px;
	line-height: 1.75;
	text-align: right !important;
}

.asp-bento__ico {
	display: grid;
	width: 50px;
	height: 50px;
	margin-bottom: 14px;
	place-items: center;
	border-radius: 15px;
	background: var(--as-ink);
	color: var(--as-lime);
}

/* Store: big lime tile with a real template rising from the bottom. */
.asp-bento__tile--0 {
	grid-column: span 2;
	grid-row: span 2;
	padding-bottom: 0;
	border-color: var(--as-lime);
	background: var(--as-lime);
}

.asp-bento__tile--0 p,
.asp-bento__tile--0 .asp-bento__step {
	color: #2f3d0c !important;
}

.asp-bento__shot {
	height: 250px;
	margin: 22px 0 0;
	overflow: hidden;
	border-radius: 16px 16px 0 0;
	box-shadow: 0 -10px 40px -20px rgba(17, 17, 17, .4);
}

.asp-bento__shot img {
	display: block;
	width: 100%;
	height: auto;
}

/* Cashier: black tile. */
.asp-bento__tile--2 {
	border-color: var(--as-ink);
	background: var(--as-ink);
}

.asp-bento__tile--2 h3 {
	color: #fff;
}

.asp-bento__tile--2 p {
	color: #a1a1aa;
}

.asp-bento__tile--2 .asp-bento__step {
	color: #a1a1aa !important;
}

.asp-bento__tile--2 .asp-bento__step b,
.asp-bento__tile--2 .asp-bento__ico {
	background: var(--as-lime);
	color: var(--as-ink);
}

.asp-bento__tile--2 .asp-sys__chips li {
	border-color: #3f3f46;
	background: #1c1c1c;
	color: #fff;
}

/* Payments: wide tile with the gateway logos (those arabshop.app shows). */
.asp-bento__tile--5 {
	grid-column: span 4;
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
	grid-template-areas: "step pay" "ico pay" "h pay" "p pay" "chips pay";
	column-gap: 32px;
	align-items: start;
}

.asp-bento__tile--5 .asp-bento__step { grid-area: step; justify-self: start; }
.asp-bento__tile--5 .asp-bento__ico { grid-area: ico; }
.asp-bento__tile--5 h3 { grid-area: h; }
.asp-bento__tile--5 p { grid-area: p; }
.asp-bento__tile--5 .asp-sys__chips { grid-area: chips; }

.asp-bento__pay {
	display: grid;
	grid-area: pay;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 10px;
	align-self: center;
}

.asp-bento__pay span {
	display: grid;
	height: 64px;
	padding: 0 16px;
	place-items: center;
	border: 1px solid var(--as-line);
	border-radius: 14px;
	background: var(--as-paper);
}

.asp-bento__pay img {
	display: block;
	max-width: 100%;
	max-height: 28px;
	object-fit: contain;
}

.asp-bento__pay .asp-bento__cod {
	color: var(--as-text);
	font-size: 15px;
	font-weight: 900;
}

@media (prefers-reduced-motion: reduce) {
	.asp-trip::after {
		animation: none;
		display: none;
	}
}

@media (max-width: 991px) {
	.asp-sys {
		padding: 88px 0;
	}

	.asp-title {
		font-size: 38px !important;
	}

	.asp-trip {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		row-gap: 22px;
	}

	.asp-trip::before,
	.asp-trip::after {
		display: none;
	}

	.asp-bento {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.asp-bento__tile--5 {
		grid-column: 1 / -1;
		display: block;
	}

	.asp-bento__pay {
		margin-top: 16px;
	}
}

@media (max-width: 600px) {
	.asp-sys {
		padding: 72px 0;
	}

	.asp-title {
		font-size: 31px !important;
	}

	.asp-lead {
		font-size: 17px;
	}

	.asp-trip {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		padding: 22px 14px;
	}

	.asp-bento {
		grid-template-columns: 1fr;
	}

	.asp-bento__tile--0 {
		grid-column: auto;
		grid-row: auto;
	}

	.asp-bento__pay {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* ------------------------------------------------------------------
   AI agent: ink section; text and quick requests on the right, a live chat
   on the left that types a request and builds the product card.
   ------------------------------------------------------------------ */
.asp-ai {
	padding: 112px 0;
	background:
		radial-gradient(45% 55% at 20% 50%, rgba(171, 250, 8, .12), transparent 70%),
		var(--as-ink);
	color: #a1a1aa;
}

.asp-ai__grid {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
	align-items: center;
	gap: 64px;
}

.asp-ai .asp-kicker {
	background: var(--as-lime);
	color: var(--as-ink);
}

.asp-ai .asp-title {
	color: #fff;
	text-align: right;
}

.asp-ai .asp-lead {
	color: #a1a1aa;
	text-align: right !important;
}

.asp-ai__ways {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 28px 0 0;
	padding: 0;
	list-style: none;
}

.asp-ai__ways li {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 9px 16px;
	border: 1px solid #333;
	border-radius: 999px;
	color: #fff;
	font-size: 15px;
	font-weight: 700;
}

.asp-ai__ways svg {
	color: var(--as-lime);
}

.asp-ai__try {
	margin: 30px 0 12px;
	color: #71717a;
	font-size: 14px;
	text-align: right !important;
}

.asp-ai__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.asp-ai__chip {
	padding: 10px 18px;
	border: 1px solid #3f3f46;
	border-radius: 999px;
	background: #1c1c1c;
	color: #e4e4e7;
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
	transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}

.asp-ai__chip:hover {
	border-color: var(--as-lime);
	color: #fff;
}

.asp-ai__chip.is-on {
	border-color: var(--as-lime);
	background: var(--as-lime);
	color: var(--as-ink);
}

.asp-ai__chip:focus-visible {
	outline: 3px solid var(--as-lime);
	outline-offset: 3px;
}

/* Chat window */
.asp-chat {
	overflow: hidden;
	border: 1px solid #2a2a2a;
	border-radius: 26px;
	background: var(--as-alt);
	box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .7), 0 0 0 6px rgba(171, 250, 8, .06);
}

.asp-chat__bar {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px 18px;
	border-bottom: 1px solid var(--as-line);
	background: var(--as-paper);
}

.asp-chat__bar img {
	display: block;
	border-radius: 9px;
}

.asp-chat__bar span {
	display: flex;
	flex-direction: column;
	line-height: 1.35;
	text-align: right;
}

.asp-chat__bar b {
	color: var(--as-text);
	font-size: 15px;
	font-weight: 900;
}

.asp-chat__bar small {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: #16a34a;
	font-size: 12px;
	font-weight: 700;
}

.asp-chat__bar small::before {
	content: "";
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #22c55e;
}

.asp-chat__body {
	display: flex;
	flex-direction: column;
	gap: 10px;
	height: 530px;
	padding: 18px;
	overflow: hidden;
}

.asp-chat__me,
.asp-chat__bot,
.asp-chat__typing {
	max-width: 85%;
	margin: 0;
	padding: 11px 15px;
	font-size: 14px;
	line-height: 1.7;
	transition: opacity .35s ease, transform .35s ease;
}

/* The merchant (right side in RTL) */
.asp-chat__me {
	align-self: flex-start;
	border-radius: 18px 18px 4px 18px;
	background: var(--as-ink);
	color: #fff;
}

.asp-chat__bot,
.asp-chat__typing {
	align-self: flex-end;
	border: 1px solid var(--as-line);
	border-radius: 18px 18px 18px 4px;
	background: var(--as-paper);
	color: var(--as-text);
}

.asp-chat__typing {
	display: inline-flex;
	gap: 4px;
	padding: 14px 16px;
}

.asp-chat__typing i {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #a1a1aa;
	animation: asp-dot 1s ease-in-out infinite;
}

.asp-chat__typing i:nth-child(2) { animation-delay: .15s; }
.asp-chat__typing i:nth-child(3) { animation-delay: .3s; }

@keyframes asp-dot {
	50% { opacity: .3; transform: translateY(-3px); }
}

/* The product card the agent writes */
.asp-card {
	align-self: flex-end;
	width: 88%;
	overflow: hidden;
	border: 1px solid var(--as-line);
	border-radius: 18px;
	background: var(--as-paper);
	box-shadow: 0 20px 40px -26px rgba(17, 17, 17, .4);
	transition: opacity .45s ease, transform .45s cubic-bezier(.2, .7, .2, 1);
}

.asp-card__img {
	display: block;
	width: 100%;
	height: 150px;
	object-fit: cover;
	background: var(--as-alt);
}

.asp-card__body {
	padding: 14px 16px 14px;
}

.asp-card__meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin: 0 0 6px;
	font-size: 12px;
}

.asp-card__cat {
	padding: 2px 9px;
	border-radius: 999px;
	background: var(--as-pistachio);
	color: #3f6212;
	font-weight: 700;
}

.asp-card__sku {
	color: var(--as-muted);
	font-family: ui-monospace, monospace !important;
}

.asp-card__name {
	margin: 0 0 4px;
	color: var(--as-text);
	font-size: 17px !important;
	font-weight: 900;
	text-align: right;
}

.asp-card__desc {
	margin: 0 0 10px;
	color: var(--as-muted);
	font-size: 13px;
	line-height: 1.7;
	text-align: right !important;
}

.asp-card__foot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
}

.asp-card__price {
	color: var(--as-text);
	font-size: 18px;
	font-weight: 900;
}

.asp-card__opts {
	display: flex;
	flex-wrap: wrap;
	gap: 5px;
}

.asp-card__opts i {
	padding: 3px 9px;
	border: 1px solid var(--as-line);
	border-radius: 8px;
	color: var(--as-text);
	font-size: 12px;
	font-style: normal;
	font-weight: 700;
}

.asp-card__auto {
	display: flex;
	align-items: center;
	gap: 6px;
	margin: 12px 0 0;
	padding-top: 10px;
	border-top: 1px dashed var(--as-line);
	color: #4d7c0f;
	font-size: 12px;
	font-weight: 700;
}

.asp-card__auto::before {
	content: "";
	width: 14px;
	height: 14px;
	border-radius: 50%;
	background: var(--as-lime) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%23111' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 9px no-repeat;
}

/* The input row: the request is typed here first. */
.asp-chat__input {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 14px;
	border-top: 1px solid var(--as-line);
	background: var(--as-paper);
}

.asp-chat__field {
	flex: 1 1 auto;
	min-height: 40px;
	padding: 9px 14px;
	overflow: hidden;
	border: 1px solid var(--as-line);
	border-radius: 999px;
	color: var(--as-text);
	font-size: 14px;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.asp-chat__field:empty::before {
	content: "اكتب ما تريد إضافته…";
	color: #a1a1aa;
}

.asp-chat__input b {
	display: grid;
	width: 40px;
	height: 40px;
	place-items: center;
	border-radius: 50%;
	background: var(--as-lime);
	color: var(--as-ink);
}

/* Steps (set by the script): 0 typing, 1 sent + agent typing, 2 reply, 3 card. */
.asp-chat[data-step] .asp-chat__me,
.asp-chat[data-step] .asp-chat__bot,
.asp-chat[data-step] .asp-chat__typing,
.asp-chat[data-step] .asp-card {
	opacity: 0;
	transform: translateY(10px);
}

.asp-chat[data-step] .asp-chat__typing,
.asp-chat[data-step] .asp-chat__bot,
.asp-chat[data-step] .asp-card {
	position: absolute;
	visibility: hidden;
}

.asp-chat[data-step="1"] .asp-chat__me,
.asp-chat[data-step="2"] .asp-chat__me,
.asp-chat[data-step="3"] .asp-chat__me,
.asp-chat[data-step="1"] .asp-chat__typing,
.asp-chat[data-step="2"] .asp-chat__bot,
.asp-chat[data-step="3"] .asp-chat__bot,
.asp-chat[data-step="3"] .asp-card {
	position: static;
	visibility: visible;
	opacity: 1;
	transform: none;
}

@media (prefers-reduced-motion: reduce) {
	.asp-chat__typing i {
		animation: none;
	}

	.asp-chat__me,
	.asp-chat__bot,
	.asp-card {
		transition: none;
	}
}

@media (max-width: 991px) {
	.asp-ai {
		padding: 88px 0;
	}

	.asp-ai__grid {
		grid-template-columns: 1fr;
		gap: 40px;
	}
}

@media (max-width: 600px) {
	.asp-ai {
		padding: 72px 0;
	}

	.asp-chat__body {
		height: 520px;
		padding: 14px;
	}

	.asp-card {
		width: 100%;
	}

	.asp-card__img {
		height: 110px;
	}

	.asp-chat__body {
		height: 560px;
	}
}

/* ------------------------------------------------------------------
   Search and integrations: white. Domain panel + Google result on the left,
   then a two-row moving wall of the integrations.
   ------------------------------------------------------------------ */
.asp-seo {
	padding: 112px 0;
	background: var(--as-paper);
}

.asp-seo__grid {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
	align-items: center;
	gap: 64px;
}

.asp-seo .asp-title {
	text-align: right;
}

.asp-seo__list {
	margin: 28px 0 0;
	padding: 0;
	list-style: none;
}

.asp-seo__list li {
	display: flex;
	gap: 16px;
	padding: 20px 0;
	border-top: 1px solid var(--as-line);
	text-align: right;
}

.asp-seo__list li > b {
	display: grid;
	flex: 0 0 auto;
	width: 40px;
	height: 40px;
	place-items: center;
	border-radius: 12px;
	background: var(--as-lime);
	color: var(--as-ink);
	font-size: 14px;
	font-weight: 900;
}

.asp-seo__list span {
	color: var(--as-muted);
	font-size: 16px;
	line-height: 1.7;
}

.asp-seo__list strong {
	display: block;
	margin-bottom: 2px;
	color: var(--as-text);
	font-size: 20px;
	font-weight: 900;
}

/* The two mock panels, overlapping. */
.asp-seo__art {
	position: relative;
	min-height: 420px;
	padding: 36px;
	border-radius: 30px;
	background:
		radial-gradient(circle at 1px 1px, rgba(17, 17, 17, .1) 1px, transparent 0) 0 0 / 16px 16px,
		var(--as-pistachio);
}

.asp-dom,
.asp-serp {
	position: relative;
	border: 1px solid var(--as-line);
	border-radius: 18px;
	background: var(--as-paper);
	box-shadow: 0 24px 50px -30px rgba(17, 17, 17, .4);
}

.asp-dom {
	width: 78%;
	padding: 14px;
}

.asp-dom__url {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 12px;
	padding: 9px 14px;
	border: 1px solid var(--as-line);
	border-radius: 999px;
	color: var(--as-muted);
	font-size: 13px;
}

.asp-dom__url svg {
	color: #16a34a;
}

.asp-dom__url b {
	color: var(--as-text);
}

.asp-dom__row {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px;
	border-radius: 12px;
	background: var(--as-alt);
}

.asp-dom__ico {
	flex: 0 0 34px;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: var(--as-lime) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111' stroke-width='1.8'%3E%3Ccircle cx='12' cy='12' r='8'/%3E%3Cpath d='M4 12h16M12 4c2 2 3 5 3 8s-1 6-3 8c-2-2-3-5-3-8s1-6 3-8z'/%3E%3C/svg%3E") center / 18px no-repeat;
}

.asp-dom__row > span:not(.asp-dom__ico) {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	line-height: 1.4;
	text-align: right;
}

.asp-dom__row b {
	color: var(--as-text);
	font-size: 15px;
	font-weight: 900;
}

.asp-dom__row small {
	color: var(--as-muted);
	font-size: 12px;
}

.asp-dom__row em {
	padding: 3px 10px;
	border-radius: 999px;
	background: #dcfce7;
	color: #15803d;
	font-size: 12px;
	font-style: normal;
	font-weight: 700;
}

.asp-dom__add {
	margin: 10px 4px 0;
	color: var(--as-muted);
	font-size: 13px;
	text-align: right !important;
}

.asp-serp {
	width: 82%;
	margin: -18px auto 0 0;
	padding: 16px 18px 18px;
	text-align: right;
}

.asp-serp p {
	text-align: right !important;
}

.asp-serp__q {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 14px;
	padding: 8px 14px;
	border-radius: 999px;
	background: var(--as-alt);
	color: var(--as-text);
	font-size: 13px;
}

.asp-serp__site {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 6px;
}

.asp-serp__fav {
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: var(--as-alt) url("../inc/images/arabshop/app-icon.svg") center / 18px no-repeat;
}

.asp-serp__site span {
	display: flex;
	flex-direction: column;
	line-height: 1.35;
}

.asp-serp__site b {
	color: var(--as-text);
	font-size: 13px;
	font-weight: 700;
}

.asp-serp__site small {
	color: var(--as-muted);
	font-size: 11px;
}

.asp-serp__title {
	margin: 0 0 4px;
	color: #1a0dab;
	font-size: 17px;
	font-weight: 700;
}

.asp-serp__desc {
	margin: 0 0 12px;
	color: #4d5156;
	font-size: 13px;
	line-height: 1.7;
}

.asp-serp__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0;
}

.asp-serp__tags i {
	padding: 3px 9px;
	border-radius: 8px;
	background: var(--as-pistachio);
	color: #3f6212;
	font-size: 11px;
	font-style: normal;
	font-weight: 700;
}

/* Integrations wall */
.asp-int {
	margin-top: 96px;
}

.asp-int__head {
	max-width: 640px;
	margin: 0 auto 32px;
	text-align: center;
}

.asp-int__head h3 {
	margin: 0 0 8px;
	color: var(--as-text);
	font-size: 34px !important;
	font-weight: 900;
	text-align: center;
}

.asp-int__head p {
	margin: 0;
	color: var(--as-muted);
	font-size: 17px;
	text-align: center !important;
}

.asp-int__wall {
	display: flex;
	flex-direction: column;
	gap: 14px;
	direction: ltr;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
	mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.asp-int__row {
	overflow: hidden;
}

.asp-int__track {
	display: flex;
	gap: 14px;
	width: max-content;
	animation: asp-rail 60s linear infinite;
}

.asp-int__row--b .asp-int__track {
	animation-direction: reverse;
	animation-duration: 55s;
}

.asp-int__wall:hover .asp-int__track {
	animation-play-state: paused;
}

.asp-int__item {
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	gap: 12px;
	width: 290px;
	padding: 14px 16px;
	border: 1px solid var(--as-line);
	border-radius: 18px;
	background: var(--as-paper);
	direction: rtl;
}

.asp-int__item img {
	display: block;
	flex: 0 0 auto;
	width: 44px;
	height: 44px;
	border-radius: 12px;
}

.asp-int__item span {
	display: flex;
	flex-direction: column;
	min-width: 0;
	line-height: 1.45;
	text-align: right;
}

.asp-int__item b {
	color: var(--as-text);
	font-size: 15px;
	font-weight: 900;
}

.asp-int__item small {
	overflow: hidden;
	color: var(--as-muted);
	font-size: 13px;
	white-space: nowrap;
	text-overflow: ellipsis;
}

@media (prefers-reduced-motion: reduce) {
	.asp-int__track {
		animation: none;
	}
}

@media (max-width: 991px) {
	.asp-seo {
		padding: 88px 0;
	}

	.asp-seo__grid {
		grid-template-columns: 1fr;
		gap: 40px;
	}
}

@media (max-width: 600px) {
	.asp-seo {
		padding: 72px 0;
	}

	.asp-seo__art {
		min-height: 0;
		padding: 20px;
	}

	.asp-dom,
	.asp-serp {
		width: 100%;
	}

	.asp-serp {
		margin-top: 14px;
	}

	.asp-int {
		margin-top: 64px;
	}

	.asp-int__head h3 {
		font-size: 26px !important;
	}

	.asp-int__item {
		width: 240px;
	}
}

/* ------------------------------------------------------------------
   FAQ on ink, then the final lime call to action.
   ------------------------------------------------------------------ */
.asp-faq {
	padding: 104px 0;
	background: var(--as-ink);
}

.asp-faq .asp-kicker {
	background: var(--as-lime);
	color: var(--as-ink);
}

.asp-faq .asp-title {
	color: #fff;
}

.asp-faq__list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
	align-items: start;
}

.asp-faq__item {
	border: 1px solid #2a2a2a;
	border-radius: 20px;
	background: #1a1a1a;
	transition: border-color .25s ease;
}

.asp-faq__item[open] {
	border-color: var(--as-lime);
}

.asp-faq__item summary {
	position: relative;
	display: block;
	padding: 22px 24px 22px 64px;
	color: #fff;
	font-size: 18px;
	font-weight: 900;
	line-height: 1.5;
	list-style: none;
	cursor: pointer;
}

.asp-faq__item summary::-webkit-details-marker {
	display: none;
}

.asp-faq__item summary span {
	position: absolute;
	top: 50%;
	left: 20px;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: #2a2a2a;
	transform: translateY(-50%);
	transition: background-color .25s ease;
}

.asp-faq__item summary span::before,
.asp-faq__item summary span::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 12px;
	height: 2px;
	background: var(--as-paper);
	transform: translate(-50%, -50%);
	transition: transform .25s ease, background-color .25s ease;
}

.asp-faq__item summary span::after {
	transform: translate(-50%, -50%) rotate(90deg);
}

.asp-faq__item[open] summary span {
	background: var(--as-lime);
}

.asp-faq__item[open] summary span::before,
.asp-faq__item[open] summary span::after {
	background: var(--as-ink);
}

.asp-faq__item[open] summary span::after {
	transform: translate(-50%, -50%) rotate(0);
}

.asp-faq__item summary:focus-visible {
	outline: 3px solid var(--as-lime);
	outline-offset: 3px;
	border-radius: 20px;
}

.asp-faq__item p {
	margin: -8px 0 0;
	padding: 0 24px 22px;
	color: #a1a1aa;
	font-size: 16px;
	line-height: 1.85;
	text-align: right !important;
}

/* CTA */
.asp-cta {
	padding: 96px 0;
	background: var(--as-paper);
}

.asp-cta__box {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
	align-items: center;
	gap: 32px;
	overflow: hidden;
	padding: 64px 64px;
	border-radius: 36px;
	background:
		radial-gradient(circle at 1px 1px, rgba(17, 17, 17, .12) 1px, transparent 0) 0 0 / 18px 18px,
		var(--as-lime);
}

.asp-cta__title {
	margin: 0 0 14px;
	color: var(--as-text);
	font-size: 58px !important;
	font-weight: 900;
	line-height: 1.15;
	text-align: right;
}

.asp-cta__lead {
	margin: 0 0 32px;
	color: #2f3d0c;
	font-size: 19px;
	line-height: 1.8;
	text-align: right !important;
}

.asp-cta__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.asp-btn--inkline {
	border-color: var(--as-ink);
	color: var(--as-text) !important;
}

.asp-btn--inkline:hover {
	background: var(--as-ink);
	color: #fff !important;
}

.asp-btn .fa {
	font-family: FontAwesome !important;
}

/* Art: the logo in the middle, store templates floating around it. */
.asp-cta__art {
	position: relative;
	height: 340px;
}

.asp-cta__logo {
	position: absolute;
	top: 50%;
	left: 50%;
	z-index: 2;
	width: 150px;
	height: 150px;
	border-radius: 38px;
	box-shadow: 0 0 0 10px rgba(17, 17, 17, .08), 0 30px 60px -20px rgba(17, 17, 17, .55);
	transform: translate(-50%, -50%);
	animation: asp-cta-bob 4s ease-in-out infinite;
}

/* The bag changes expression: happy, wink, love, cool, grin (2s each, 10s loop). */
.asp-cta__logo img {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	opacity: 0;
	animation: asp-face 10s steps(1) infinite;
	animation-delay: calc(var(--k) * 2s);
}

.asp-cta__logo img:first-child {
	opacity: 1;
}

@keyframes asp-face {
	0%, 19.99% { opacity: 1; }
	20%, 100% { opacity: 0; }
}

@keyframes asp-cta-bob {
	50% { transform: translate(-50%, calc(-50% - 10px)) rotate(-4deg); }
}

.asp-cta__art {
	perspective: 1200px;
}

/* Store templates as small browser windows: the same size, a little tilted, around the logo. */
.asp-cta__card {
	position: absolute;
	width: 138px;
	height: 196px;
	margin: 0;
	overflow: hidden;
	border-radius: 14px;
	background: var(--as-paper);
	box-shadow: 0 0 0 1px rgba(17, 17, 17, .08), 0 28px 44px -24px rgba(17, 17, 17, .6);
	animation: asp-cta-float 6s ease-in-out infinite;
	transition: transform .4s cubic-bezier(.2, .7, .2, 1);
}

.asp-cta__bar {
	display: flex;
	gap: 4px;
	padding: 7px 9px;
	border-bottom: 1px solid var(--as-line);
	background: var(--as-alt);
	direction: ltr;
}

.asp-cta__bar i {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: #d4d4d8;
}

.asp-cta__bar i:first-child {
	background: var(--as-ink);
}

.asp-cta__card img {
	display: block;
	width: 100%;
	height: calc(100% - 21px);
	object-fit: cover;
	object-position: top;
}

.asp-cta__card--0 { top: 0; right: 0; transform: rotate(7deg); }
.asp-cta__card--1 { top: 10px; left: 0; transform: rotate(-8deg); animation-delay: -1.5s; }
.asp-cta__card--2 { bottom: 0; right: 9%; transform: rotate(-5deg); animation-delay: -3s; }
.asp-cta__card--3 { bottom: 6px; left: 9%; transform: rotate(6deg); animation-delay: -4.5s; }

.asp-cta__box:hover .asp-cta__card--0 { transform: rotate(3deg) translate(8px, -6px); }
.asp-cta__box:hover .asp-cta__card--1 { transform: rotate(-4deg) translate(-8px, -6px); }
.asp-cta__box:hover .asp-cta__card--2 { transform: rotate(-2deg) translate(8px, 6px); }
.asp-cta__box:hover .asp-cta__card--3 { transform: rotate(3deg) translate(-8px, 6px); }

@keyframes asp-cta-float {
	50% { translate: 0 -12px; }
}

@media (prefers-reduced-motion: reduce) {
	.asp-cta__logo,
	.asp-cta__card,
	.asp-cta__logo img,
	.asp-hero__face {
		animation: none;
	}

	.asp-cta__logo img:not(:first-child) {
		opacity: 0;
	}
}

@media (max-width: 991px) {
	.asp-faq {
		padding: 88px 0;
	}

	.asp-faq__list {
		grid-template-columns: 1fr;
	}

	.asp-cta__box {
		grid-template-columns: 1fr;
		padding: 48px 32px;
	}

	.asp-cta__art {
		order: -1;
		height: 300px;
		max-width: 460px;
		width: 100%;
		margin: 0 auto;
	}

	.asp-cta__title {
		font-size: 44px !important;
	}
}

@media (max-width: 600px) {
	.asp-faq {
		padding: 72px 0;
	}

	.asp-faq__item summary {
		font-size: 16px;
	}

	.asp-cta {
		padding: 56px 0;
	}

	.asp-cta__box {
		padding: 36px 22px;
		border-radius: 28px;
	}

	.asp-cta__art {
		height: 250px;
	}

	.asp-cta__logo {
		width: 110px;
		height: 110px;
		border-radius: 28px;
	}

	.asp-hero__face {
		display: none;
	}

	.asp-cta__card {
		width: 92px;
		height: 132px;
		border-radius: 10px;
	}

	.asp-cta__bar {
		padding: 5px 7px;
	}

	.asp-cta__card img {
		height: calc(100% - 17px);
	}

	.asp-cta__title {
		font-size: 34px !important;
	}

	.asp-cta__lead {
		font-size: 17px;
	}
}

/* ------------------------------------------------------------------
   Arab Shop expressions (brand kit): the bag's faces used where they mean
   something: the agent's mood in the chat, a thinking face over the FAQ,
   faces in the hero and the changing face in the call to action.
   ------------------------------------------------------------------ */
.asp-hero > .container {
	position: relative;
}

.asp-hero__face {
	position: absolute;
	border-radius: 22px;
	box-shadow: 0 20px 40px -18px rgba(17, 17, 17, .45);
	animation: asp-cta-float 6s ease-in-out infinite;
}

.asp-hero__face--a {
	top: 130px;
	right: 4%;
	width: 84px;
	height: 84px;
	transform: rotate(-12deg);
}

.asp-hero__face--b {
	top: 250px;
	left: 6%;
	width: 70px;
	height: 70px;
	transform: rotate(10deg);
	animation-delay: -3s;
}

/* Chat avatar: happy while the merchant types, thinking while the agent works, cool when done. */
.asp-chat__face {
	position: relative;
	display: block;
	flex: 0 0 34px;
	width: 34px;
	height: 34px;
}

.asp-chat__face img {
	position: absolute;
	inset: 0;
	display: block;
	width: 34px;
	height: 34px;
	border-radius: 10px;
	opacity: 0;
	transition: opacity .25s ease, transform .25s ease;
	transform: scale(.8);
}

.asp-chat__face--happy,
.asp-chat[data-step="0"] .asp-chat__face--happy,
.asp-chat[data-step="1"] .asp-chat__face--thinking,
.asp-chat[data-step="2"] .asp-chat__face--cool,
.asp-chat[data-step="3"] .asp-chat__face--cool {
	opacity: 1;
	transform: none;
}

.asp-chat[data-step="1"] .asp-chat__face--happy,
.asp-chat[data-step="2"] .asp-chat__face--happy,
.asp-chat[data-step="3"] .asp-chat__face--happy {
	opacity: 0;
	transform: scale(.8);
}

.asp-faq__face {
	display: block;
	width: 72px;
	height: 72px;
	margin: 0 auto 18px;
	border-radius: 20px;
	animation: asp-cta-bob-s 4s ease-in-out infinite;
}

@keyframes asp-cta-bob-s {
	50% { transform: translateY(-6px) rotate(-5deg); }
}

@media (prefers-reduced-motion: reduce) {
	.asp-faq__face {
		animation: none;
	}
}

@media (max-width: 991px) {
	.asp-hero__face--a { top: 110px; right: 0; width: 64px; height: 64px; }
	.asp-hero__face--b { top: 220px; left: 0; width: 54px; height: 54px; }
}

/* Dark theme: the ink button turns white so it still stands out on the ink page; payment logos
   keep white tiles (their artwork is made for white). */
:root[data-theme="dark"] .asp .asp-btn--ink:not(.asp-cta__box .asp-btn--ink) {
	background: #fff;
	color: var(--as-ink) !important;
}

:root[data-theme="dark"] .asp .asp-btn--ink:not(.asp-cta__box .asp-btn--ink):hover {
	background: var(--as-lime);
}

:root[data-theme="dark"] .asp-btn--line:hover {
	border-color: var(--as-text);
}

:root[data-theme="dark"] .asp-bento__pay span:not(.asp-bento__cod) {
	border-color: transparent;
	background: #fff;
}

/* Parts that keep their light look in the dark theme: the lime store tile and the Google result
   mock-up (it shows a real search page). */
:root[data-theme="dark"] :is(.asp-bento__tile--0, .asp-serp) {
	--as-pistachio: #f3fedb;
	--as-alt: #f5f5f5;
	--as-line: #e4e4e7;
	--as-muted: #71717a;
	--as-text: #111;
	--as-paper: #fff;
	--as-shade: 17, 17, 17;
}

:root[data-theme="dark"] .asp-card__cat {
	color: #bef264;
}
