/**
 * Product landing pages (shown at the product's own address). Mobile first; logical properties throughout,
 * so it reads the same in Arabic (RTL) and French (LTR). Colours come from the theme tokens; the admin's
 * button colour overrides --color-accent on body.safa-lp (see Safa_COD_Landing::enqueue).
 */

body.safa-lp div.lp-product { display: block; margin: 0; padding: 0; }
.lp-main { padding: 0; }

.lp-container {
	width: 100%;
	max-width: 1100px;
	margin-inline: auto;
	padding-inline: var(--container-padding-inline);
}
.lp-container--narrow { max-width: 680px; }

.lp-section { padding-block: clamp(28px, 5vw, 56px); }
/* A page designed by the AI brings its own spacing and colours; its CSS only reaches elements inside .sl. */
.lp-section.lp-design { padding: 0; overflow-x: clip; }
.lp-design .sl { display: block; max-width: none; }
.lp-design .sl img { max-width: 100%; height: auto; }
.lp-section + .lp-section { border-top: 1px solid transparent; }

.lp-title {
	margin: 0 0 var(--space-6);
	color: var(--color-primary);
	font-size: var(--text-xl);
	font-weight: var(--font-weight-black);
	line-height: var(--line-height-tight);
	text-align: center;
	text-wrap: balance;
}

.lp .btn.lp-btn { width: 100%; max-width: 420px; justify-content: center; text-align: center; }
@media (min-width: 640px) { .lp .btn.lp-btn { width: auto; min-width: 260px; } }

.lp-prose { color: var(--color-text); font-size: var(--text-base); line-height: var(--line-height-relaxed); }
.lp-prose p { margin: 0 0 var(--space-4); }
.lp-prose img { max-width: 100%; height: auto; border-radius: var(--radius-md); }

.lp-icon {
	flex: none;
	display: inline-grid;
	place-items: center;
	width: 48px;
	height: 48px;
	border-radius: var(--radius-pill);
	background: var(--color-accent-tint);
	color: var(--color-accent-strong);
}
.lp-icon svg { width: 24px; height: 24px; }
.lp-icon--sm { width: 24px; height: 24px; }
.lp-icon--sm svg { width: 14px; height: 14px; }

/* ---------- hero ---------- */
.lp-hero { padding-block: clamp(24px, 5vw, 64px); background: linear-gradient(180deg, var(--color-accent-tint), var(--color-background) 85%); }
.lp-hero .lp-container { display: grid; gap: var(--space-6); align-items: center; }
.lp-hero__text { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-4); }
.lp-hero--center .lp-hero__text { align-items: center; text-align: center; }
.lp-eyebrow {
	padding: 4px 14px;
	border-radius: var(--radius-pill);
	background: var(--color-accent);
	color: var(--color-text-on-accent);
	font-size: var(--text-sm);
	font-weight: var(--font-weight-bold);
}
.lp-hero__title {
	margin: 0;
	color: var(--color-primary);
	font-size: clamp(1.75rem, 5vw, 2.75rem);
	font-weight: var(--font-weight-black);
	line-height: 1.2;
	text-wrap: balance;
}
.lp-hero__sub { margin: 0; color: var(--color-text-muted); font-size: var(--text-md); line-height: var(--line-height-relaxed); max-width: 56ch; }
.lp-price { color: var(--color-accent-strong); font-size: var(--text-xl); font-weight: var(--font-weight-black); }
.lp-price del { margin-inline-end: var(--space-2); color: var(--color-text-muted); font-size: var(--text-md); font-weight: var(--font-weight-regular); }
.lp-price ins { text-decoration: none; }
.lp-note { margin: 0; color: var(--color-text-muted); font-size: var(--text-sm); }
.lp-hero__media img { display: block; width: 100%; max-width: 560px; height: auto; margin-inline: auto; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.lp-hero--center .lp-hero__media { margin-block-start: var(--space-4); }

@media (min-width: 860px) {
	.lp-hero--split .lp-container { grid-template-columns: 1.05fr .95fr; gap: var(--space-8); }
	.lp-hero--center .lp-container { max-width: 820px; }
}

/* ---------- benefits ---------- */
.lp-benefits__list { display: grid; gap: var(--space-4); margin: 0; padding: 0; list-style: none; }
.lp-benefit { display: flex; align-items: center; gap: var(--space-4); }
.lp-benefit__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; font-size: var(--text-sm); color: var(--color-text-muted); line-height: 1.5; }
.lp-benefit__body strong { color: var(--color-text); font-size: var(--text-base); }

.lp-benefits--cards .lp-benefits__list { display: flex; flex-wrap: wrap; justify-content: center; }
.lp-benefits--cards .lp-benefit { flex: 1 1 230px; max-width: 290px; }
.lp-benefits--cards .lp-benefit {
	flex-direction: column;
	align-items: center;
	padding: var(--space-5);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-lg);
	background: var(--color-card);
	box-shadow: var(--shadow-xs);
	text-align: center;
}

.lp-benefits--strip { padding-block: var(--space-5); border-block: 1px solid var(--color-border); background: var(--color-card); }
.lp-benefits--strip .lp-benefits__list { grid-template-columns: 1fr; }
.lp-benefits--strip .lp-icon { width: 40px; height: 40px; }
@media (min-width: 700px) {
	.lp-benefits--strip .lp-benefits__list { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
}

/* ---------- text + image ---------- */
.lp-text-image .lp-container { display: grid; gap: var(--space-6); align-items: center; }
.lp-text-image .lp-title { text-align: start; margin-block-end: var(--space-4); }
.lp-text-image__media img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.lp-bullets { display: grid; gap: var(--space-3); margin: var(--space-4) 0 0; padding: 0; list-style: none; }
.lp-bullets li { display: flex; align-items: center; gap: var(--space-3); font-weight: var(--font-weight-medium); }
@media (min-width: 860px) {
	.lp-text-image .lp-container { grid-template-columns: 1fr 1fr; gap: var(--space-8); }
	.lp-text-image--start .lp-text-image__media { order: -1; }
}

/* ---------- gallery ---------- */
.lp-gallery { display: grid; gap: var(--space-4); grid-template-columns: repeat(2, 1fr); }
.lp-gallery--1 { grid-template-columns: minmax(0, 560px); justify-content: center; }
.lp-gallery__item { margin: 0; }
.lp-gallery__item img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius-md); }
@media (min-width: 760px) {
	.lp-gallery--3 { grid-template-columns: repeat(3, 1fr); }
	.lp-gallery--4 { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- steps ---------- */
.lp-steps__list { counter-reset: lp-step; display: grid; gap: var(--space-4); margin: 0; padding: 0; list-style: none; }
.lp-step {
	counter-increment: lp-step;
	display: flex;
	align-items: flex-start;
	gap: var(--space-4);
	padding: var(--space-4) var(--space-5);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-lg);
	background: var(--color-card);
}
.lp-step::before {
	content: counter(lp-step);
	flex: none;
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: var(--color-accent);
	color: var(--color-text-on-accent);
	font-weight: var(--font-weight-black);
}
.lp-step__body { display: flex; flex-direction: column; gap: 2px; color: var(--color-text-muted); line-height: 1.6; }
.lp-step__body strong { color: var(--color-text); }
@media (min-width: 860px) { .lp-steps__list { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); } }

/* ---------- reviews ---------- */
.lp-reviews { background: var(--color-surface); }
.lp-reviews__list { display: grid; gap: var(--space-4); grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.lp-review { display: flex; flex-direction: column; gap: var(--space-3); margin: 0; padding: var(--space-5); border: 1px solid var(--color-border); border-radius: var(--radius-lg); background: var(--color-card); }
.lp-stars { color: #f5a623; letter-spacing: 2px; }
.lp-stars span { color: var(--color-border-strong); }
.lp-review blockquote { margin: 0; color: var(--color-text); line-height: var(--line-height-relaxed); }
.lp-review figcaption { display: flex; align-items: center; gap: var(--space-3); margin-block-start: auto; font-size: var(--text-sm); color: var(--color-text-muted); }
.lp-review figcaption strong { color: var(--color-text); }
.lp-review figcaption em { font-style: normal; }
.lp-review__photo { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }

/* ---------- faq ---------- */
.lp-faq__list { display: grid; gap: var(--space-3); max-width: 780px; margin-inline: auto; }
.lp-faq__item { border: 1px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-card); }
.lp-faq__item summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-4);
	padding: var(--space-4) var(--space-5);
	font-weight: var(--font-weight-bold);
	cursor: pointer;
	list-style: none;
}
.lp-faq__item summary::-webkit-details-marker { display: none; }
.lp-faq__item summary::after { content: "+"; flex: none; color: var(--color-accent-strong); font-size: 1.4em; line-height: 1; }
.lp-faq__item[open] summary::after { content: "−"; }
.lp-faq__answer { padding: 0 var(--space-5) var(--space-4); color: var(--color-text-muted); line-height: var(--line-height-relaxed); }
.lp-faq__answer p { margin: 0 0 var(--space-3); }

/* ---------- countdown ---------- */
.lp-countdown { display: flex; justify-content: center; gap: var(--space-3); }
.lp-countdown__unit {
	display: flex;
	flex-direction: column;
	align-items: center;
	min-width: 72px;
	padding: var(--space-3) var(--space-2);
	border-radius: var(--radius-md);
	background: var(--color-primary);
	color: var(--color-text-on-primary);
}
.lp-countdown__unit b { font-size: var(--text-xl); font-variant-numeric: tabular-nums; line-height: 1.1; }
.lp-countdown__unit span { font-size: var(--text-xs); opacity: .8; }

/* ---------- video ---------- */
.lp-video { position: relative; max-width: 860px; margin-inline: auto; overflow: hidden; border-radius: var(--radius-lg); background: #000; }
.lp-video iframe, .lp-video video { display: block; width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; }

/* ---------- banner ---------- */
.lp-cta { padding-block: clamp(24px, 4vw, 48px); }
.lp-cta__box { display: flex; flex-direction: column; align-items: center; gap: var(--space-3); padding: clamp(24px, 5vw, 48px) var(--space-5); border-radius: var(--radius-lg); background: var(--color-primary); color: var(--color-text-on-primary); text-align: center; }
.lp-cta__box .lp-title { margin: 0; color: inherit; }
.lp-cta__box p { margin: 0 0 var(--space-3); color: inherit; opacity: .85; }

/* ---------- order form ---------- */
.lp-order { background: var(--color-surface); scroll-margin-top: 16px; }
.lp-order__head { margin-block-end: var(--space-5); text-align: center; }
.lp-order__head .lp-title { margin-block-end: var(--space-2); }
.lp-order__head p { margin: 0; color: var(--color-text-muted); }
.lp-order__box {
	padding: var(--space-5);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-lg);
	background: var(--color-card);
	box-shadow: var(--shadow-md);
}
.lp-price--order { margin-block-end: var(--space-3); text-align: center; }
.lp-order__box .quick-order-card { max-width: none; margin-block-start: var(--space-4); box-shadow: none; padding: 0; border: 0; }
.lp-order__box .woocommerce-message, .lp-order__box .woocommerce-info { margin-block-end: var(--space-3); }

/* with the Quick Order card present, its own quantity and add-to-cart button do the work: hide the native
   duplicates (they stay in the page, the card drives them), exactly like the quick-buy popup does */
.lp-order--card form.cart:not(.variations_form) { display: none !important; }
.lp-order--card form.variations_form .woocommerce-variation-add-to-cart .quantity,
.lp-order--card form.variations_form .woocommerce-variation-add-to-cart .single_add_to_cart_button { display: none !important; }

/* ---------- focus mode: nothing to leave the page by ---------- */
body.safa-lp-focus .site-header__nav,
body.safa-lp-focus .site-header__actions,
body.safa-lp-focus .mobile-nav,
body.safa-lp-focus .mobile-nav-backdrop,
body.safa-lp-focus .site-footer > .container:first-child { display: none; }
body.safa-lp-focus .site-header__inner { justify-content: center; }

@media (max-width: 782px) {
	.lp-order__box { padding: var(--space-4); }
}
@media (prefers-reduced-motion: no-preference) {
	html:has(body.safa-lp) { scroll-behavior: smooth; }
}

/* rhythm: alternate tinted bands so a page made of short sections still looks full */
.lp-benefits--cards,
.lp-steps,
.lp-text-image + .lp-text-image { background: var(--color-surface); }
.lp-text-image .lp-prose { font-size: var(--text-md); }
.lp-bullets li { padding: var(--space-3) var(--space-4); border: 1px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-card); }
