/* =========================================================================
   Zifora Lux – Single Product template (Elementor Pro)
   Everything is scoped to .zf-pp (the template's outer container),
   so nothing else on the site changes.
   ========================================================================= */

.zf-pp {
	--zf-navy: #091E4F;
	--zf-gold: #D2AE38;
	--zf-gold-d: #B8962A;
	--zf-green: #7DB144;
	--zf-bg: #F7F8FA;
	--zf-line: #E6E8EE;
	--zf-muted: #5B6478;
	--zf-red: #D64545;
	--zf-font: 'Alexandria', sans-serif;
	direction: rtl;
	font-family: var(--zf-font);
	color: var(--zf-navy);
	text-align: right;
}
.zf-pp *,
.zf-pp h1, .zf-pp h2, .zf-pp h3, .zf-pp p, .zf-pp a, .zf-pp button, .zf-pp li,
.zf-pp .elementor-widget .elementor-heading-title,
.zf-pp .elementor-widget-text-editor,
.zf-pp .elementor-widget .elementor-button {
	font-family: var(--zf-font);
}
.zf-pp p { margin: 0; }
.zf-pp img { max-width: 100%; height: auto; }

/* Astra puts the template inside a flex row (.ast-container): make its wrappers take the full width. */
.ast-container > *:has(.zf-pp),
.elementor:has(> .zf-pp) {
	flex: 1 1 100%;
	width: 100%;
	max-width: 100%;
	min-width: 0;
}
.zf-pp { width: 100%; }

/* ---- Section titles ---------------------------------------------------- */
.zf-pp .zf-sec-title,
.zf-pp .elementor-widget.zf-sec-t .elementor-heading-title {
	font-size: 17px;
	line-height: 1.5;
	font-weight: 700;
	color: var(--zf-navy);
	margin: 0 0 10px;
}

/* ---- Gallery (WooCommerce gallery inside "Product Images") ------------ */
.zf-pp .zf-gallery { position: relative; }
.zf-pp .zf-gallery .woocommerce-product-gallery {
	width: 100% !important;
	float: none !important;
	margin: 0 !important;
	background: var(--zf-bg);
	position: relative;
}
.zf-pp .zf-gallery .woocommerce-product-gallery__image img { width: 100%; display: block; }
.zf-pp .zf-gallery .flex-control-thumbs {
	display: flex !important;
	gap: 8px;
	padding: 10px 16px !important;
	margin: 0 !important;
	background: #fff;
	overflow-x: auto;
	list-style: none;
}
.zf-pp .zf-gallery .flex-control-thumbs li {
	width: 64px !important;
	flex: 0 0 64px;
	margin: 0 !important;
	float: none !important;
}
.zf-pp .zf-gallery .flex-control-thumbs img {
	width: 64px; height: 64px; object-fit: cover;
	border-radius: 10px;
	border: 2px solid var(--zf-line);
	opacity: 1 !important;
}
.zf-pp .zf-gallery .flex-control-thumbs img.flex-active { border-color: var(--zf-gold); }
.zf-pp .zf-gallery .woocommerce-product-gallery__trigger { z-index: 5; }
.zf-pp .zf-gallery span.onsale,
.zf-pp .zf-gallery .onsale {
	position: absolute;
	top: 14px !important;
	right: 14px !important;
	left: auto !important;
	z-index: 6;
	min-width: 0; min-height: 0;
	margin: 0;
	padding: 6px 12px;
	border-radius: 30px;
	background: var(--zf-red);
	color: #fff;
	font: 700 13px/1.3 var(--zf-font);
	display: inline-block;
}
/* Zoom icon top-left, away from the badge (also when the site language is not RTL).
   overflow hidden: its hidden text (text-indent -9999px) would push the page sideways in RTL. */
.zf-pp .zf-gallery .woocommerce-product-gallery__trigger { right: auto !important; left: 14px !important; overflow: hidden; }
/* 1.4.2 fallback: a gallery started without our direction fix (no .zf-dir-ok) keeps the slider's
   default direction on a non-RTL site language, so its main image is not laid out off screen. */
body:not(.rtl) .zf-pp .zf-gallery .woocommerce-product-gallery:not(.zf-dir-ok) .flex-viewport { direction: ltr; }

/* ---- Title, price, "وفر" -------------------------------------------- */
.zf-pp .zf-title .elementor-heading-title,
.zf-pp .zf-title .product_title,
.zf-pp .zf-title h1 {
	font-size: 21px !important;
	line-height: 1.5 !important;
	font-weight: 700 !important;
	color: var(--zf-navy) !important;
	margin: 0 !important;
}
.zf-pp .zf-price .price,
.zf-pp .zf-price p.price {
	display: flex;
	flex-direction: row-reverse;   /* new price first (right), old price after it */
	justify-content: flex-end;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0 !important;
	color: var(--zf-navy) !important;
	font-size: 30px !important;
	font-weight: 800;
	line-height: 1.2;
}
.zf-pp .zf-price .price ins { text-decoration: none; background: none; color: var(--zf-navy); font-weight: 800; }
.zf-pp .zf-price .price del {
	color: #9AA1B2 !important;
	font-size: 16px;
	font-weight: 400;
	opacity: 1;
}
.zf-pp .zf-price .price .woocommerce-Price-currencySymbol { font-size: .55em; font-weight: 600; }
.zf-pp .zf-price .price .screen-reader-text { position: absolute !important; }
.zf-pp .zf-save {
	display: inline-block;
	background: #FDF6DF;
	color: var(--zf-gold-d);
	font-weight: 700;
	font-size: 12.5px;
	line-height: 1.4;
	padding: 5px 10px;
	border-radius: 8px;
	white-space: nowrap;
}

/* Empty shortcode (product with no offers / no sale / no features) -> hide the widget completely. */
.zf-pp .elementor-widget-shortcode:has(.elementor-shortcode:empty) { display: none !important; }

/* ---- Trust chips -------------------------------------------------------- */
.zf-pp .zf-chip {
	background: var(--zf-bg);
	border-radius: 12px;
	padding: 10px 6px;
	text-align: center;
}
.zf-pp .zf-chip .elementor-icon-box-wrapper { text-align: center; gap: 4px; display: flex; flex-direction: column; align-items: center; }
.zf-pp .zf-chip .elementor-icon-box-icon { margin: 0 !important; }
.zf-pp .zf-chip .elementor-icon { font-size: 20px; color: var(--zf-gold-d); fill: var(--zf-gold-d); }
.zf-pp .zf-chip .elementor-icon svg { width: 20px; height: 20px; }
.zf-pp .zf-chip .elementor-icon-box-title,
.zf-pp .zf-chip .elementor-icon-box-title span {
	font-size: 11.5px !important;
	line-height: 1.5 !important;
	font-weight: 600 !important;
	color: var(--zf-navy) !important;
	margin: 0 !important;
}
.zf-pp .zf-chip .elementor-icon-box-description { display: none; }

/* ---- Short description = subtitle + benefits list ---------------------- */
.zf-pp .zf-sd .woocommerce-product-details__short-description { color: var(--zf-muted); font-size: 14px; line-height: 1.7; }
.zf-pp .zf-sd .woocommerce-product-details__short-description > p { margin: 0 0 8px; color: var(--zf-muted); }
.zf-pp .zf-sd ul {
	list-style: none !important;
	margin: 4px 0 0 !important;
	padding: 0 !important;
}
.zf-pp .zf-sd ul li {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	padding: 6px 0;
	font-size: 14px;
	line-height: 1.6;
	color: var(--zf-navy);
	margin: 0 !important;
}
.zf-pp .zf-sd ul li::before {
	content: '✓';
	flex: 0 0 22px;
	height: 22px;
	border-radius: 50%;
	background: var(--zf-green);
	color: #fff;
	font-size: 13px;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-top: 1px;
}

/* ---- The COD plugin's own button (inside "Add To Cart") --------------- */
/* The plugin colours its buttons with these variables; we only override them inside this template. */
.zf-pp .cod_container_button_order,
.zf-pp .cod_mobile_sticky_bar,
.zf-pp button.modalcodf_checkout_btn,
.zf-pp button#modal_cod_sticky_buy {
	--cod-btn-bg: var(--zf-gold);
	--cod-btn-color: var(--zf-navy);
	--cod-btn-radius: 14px;
	--cod-btn-bw: 0px;
	--cod-btn-fs: 17px;
}
.zf-pp .zf-cod-main form.cart { margin: 0 !important; padding: 0; border: 0; display: block; }
.zf-pp .zf-cod-main .cod_container_button_order { margin: 0; }
.zf-pp button.modalcodf_checkout_btn,
.zf-pp button#modal_cod_sticky_buy {
	font-family: var(--zf-font) !important;
	font-weight: 800 !important;
	padding: 16px 18px !important;
	min-height: 56px;
	box-shadow: 0 6px 16px rgba(210, 174, 56, .35) !important;
	line-height: 1.2;
	text-transform: none;
	letter-spacing: 0;
}
.zf-pp button.modalcodf_checkout_btn:hover,
.zf-pp button#modal_cod_sticky_buy:hover { --cod-btn-bg: var(--zf-gold-d); }
.zf-pp button#modal_cod_sticky_buy { padding: 13px 14px !important; min-height: 50px; font-size: 16px; }

/* The plugin's sticky bar is the only sticky bar: room for it at the bottom on mobile. */
@media (max-width: 767px) {
	body:has(.zf-pp .cod_mobile_sticky_bar) { padding-bottom: 80px; }
	/* Safety net: hide Astra's "Sticky Add to Cart" if it is still enabled (turn it off in the Customizer). */
	body:has(.zf-pp) .ast-sticky-add-to-cart { display: none !important; }
}

.zf-pp .zf-note,
.zf-pp .zf-note p {
	text-align: center;
	font-size: 12px;
	line-height: 1.6;
	color: var(--zf-muted);
	margin: 0;
}

/* ---- Offers teaser ([zifora_offers]) ----------------------------------- */
.zf-pp .zf-offers__title { font-size: 16px; font-weight: 700; margin-bottom: 14px; }
.zf-pp .zf-offers__grid {
	display: grid;
	grid-template-columns: repeat(var(--zf-cols, 3), minmax(0, 1fr));
	gap: 8px;
}
.zf-pp a.zf-offer {
	position: relative;
	display: block;
	border: 2px solid var(--zf-line);
	border-radius: 14px;
	padding: 16px 6px 10px;
	text-align: center;
	color: var(--zf-navy) !important;
	text-decoration: none !important;
	background: #fff;
	transition: border-color .15s;
}
.zf-pp a.zf-offer:hover { border-color: var(--zf-gold); }
.zf-pp a.zf-offer.is-hot { border-color: var(--zf-gold); background: #FFFBEE; }
.zf-pp .zf-offer__tag {
	position: absolute;
	top: -10px;
	right: 50%;
	transform: translateX(50%);
	white-space: nowrap;
	background: var(--zf-navy);
	color: #fff;
	font-size: 10px;
	font-weight: 600;
	line-height: 1.5;
	padding: 3px 8px;
	border-radius: 20px;
	max-width: calc(100% + 8px);
	overflow: hidden;
	text-overflow: ellipsis;
}
.zf-pp .zf-offer__q { display: block; font-size: 13px; font-weight: 700; line-height: 1.5; }
.zf-pp .zf-offer__p { display: block; font-size: 17px; font-weight: 800; line-height: 1.4; margin-top: 4px; }
.zf-pp .zf-offer__u { display: block; font-size: 10.5px; font-weight: 600; color: var(--zf-green); margin-top: 2px; line-height: 1.4; }
.zf-pp .zf-offers__note { font-size: 11.5px; color: var(--zf-muted); text-align: center; margin-top: 8px; line-height: 1.6; }

/* ---- Info box ------------------------------------------------------------ */
.zf-pp .zf-info { border: 1px solid var(--zf-line); border-radius: 16px; }
.zf-pp .zf-info-row { border-bottom: 1px solid var(--zf-line); }
.zf-pp .zf-info-row:last-child { border-bottom: 0; }
.zf-pp .zf-info-ic .elementor-icon-wrapper { line-height: 0; }
.zf-pp .zf-info-ic .elementor-icon {
	width: 38px; height: 38px;
	border-radius: 50%;
	background: var(--zf-bg);
	display: flex !important;
	align-items: center;
	justify-content: center;
	font-size: 17px;
	color: var(--zf-navy);
	fill: var(--zf-navy);
}
.zf-pp .zf-info-ic .elementor-icon svg { width: 17px; height: 17px; }
.zf-pp .zf-info-tx { font-size: 12px; line-height: 1.6; color: var(--zf-muted); }
.zf-pp .zf-info-tx b { display: block; font-size: 13.5px; color: var(--zf-navy); font-weight: 700; }

/* ---- Features ([zifora_features]) ------------------------------------- */
.zf-pp .zf-feat {
	display: flex;
	gap: 12px;
	align-items: center;
	background: var(--zf-bg);
	border-radius: 16px;
	padding: 10px;
	margin-bottom: 10px;
}
.zf-pp .zf-feat:last-child { margin-bottom: 0; }
.zf-pp .zf-feat__img { flex: 0 0 92px; }
.zf-pp .zf-feat__img img { width: 92px; height: 92px; object-fit: cover; border-radius: 12px; display: block; }
.zf-pp .zf-feat__txt { min-width: 0; }
.zf-pp .zf-feat h3 { font-size: 14.5px !important; line-height: 1.5 !important; font-weight: 700 !important; margin: 0 0 3px !important; color: var(--zf-navy) !important; }
.zf-pp .zf-feat p { font-size: 12.5px; line-height: 1.6; color: var(--zf-muted); margin: 0; }

/* ---- Steps (navy) ---------------------------------------------------------- */
.zf-pp .zf-steps { background-color: var(--zf-navy); border-radius: 18px; }
.zf-pp .zf-steps .elementor-widget.zf-sec-t .elementor-heading-title { color: #fff; margin: 0; }
.zf-pp .zf-step-n .elementor-heading-title {
	width: 30px; height: 30px;
	border-radius: 50%;
	background: var(--zf-gold);
	color: var(--zf-navy) !important;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 14px !important;
	font-weight: 800 !important;
	line-height: 1 !important;
}
.zf-pp .zf-step-tx, .zf-pp .zf-step-tx p { color: #fff; font-size: 13.5px; line-height: 1.6; margin: 0; }

/* ---- Buttons (second CTA, WhatsApp) -------------------------------------- */
.zf-pp .elementor-widget-button.zf-cta2 .elementor-button {
	display: flex;
	width: 100%;
	justify-content: center;
	background: var(--zf-gold);
	color: var(--zf-navy);
	font-family: var(--zf-font);
	font-size: 17px;
	font-weight: 800;
	line-height: 1.3;
	text-transform: none;
	padding: 16px 18px;
	border: 0;
	border-radius: 14px;
	box-shadow: 0 6px 16px rgba(210, 174, 56, .35);
}
.zf-pp .elementor-widget-button.zf-cta2 .elementor-button:hover,
.zf-pp .elementor-widget-button.zf-cta2 .elementor-button:focus { background: var(--zf-gold-d); color: var(--zf-navy); }
.zf-pp .elementor-widget-button.zf-wa .elementor-button {
	display: flex;
	width: 100%;
	justify-content: center;
	background: #fff;
	color: #128C4A;
	font-family: var(--zf-font);
	font-size: 14px;
	font-weight: 700;
	line-height: 1.4;
	text-transform: none;
	padding: 13px 16px;
	border: 1.5px solid #25D366;
	border-radius: 14px;
}
.zf-pp .elementor-widget-button.zf-wa .elementor-button:hover { background: #F1FBF4; color: #128C4A; }
.zf-pp .elementor-widget-button.zf-wa .elementor-button-icon svg { fill: #25D366; width: 18px; height: 18px; }
.zf-pp .elementor-widget-button.zf-wa .elementor-button-icon i { color: #25D366; font-size: 18px; }
.zf-pp .elementor-button .elementor-button-content-wrapper { gap: 8px; }

/* ---- Reviews ([zifora_reviews]) ------------------------------------------ */
.zf-pp .zf-reviews__head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.zf-pp .zf-reviews__avg { font-size: 13px; color: var(--zf-muted); white-space: nowrap; }
.zf-pp .zf-stars {
	--zf-rate: 5;
	display: inline-block;
	font-size: 14px;
	line-height: 1;
	letter-spacing: 2px;
	direction: ltr;
	background: linear-gradient(90deg, var(--zf-gold) calc(var(--zf-rate) / 5 * 100%), #D9DCE4 0);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	vertical-align: middle;
}
.zf-pp .zf-stars::before { content: '★★★★★'; }
.zf-pp .zf-reviews__photos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 10px; }
.zf-pp .zf-reviews__photos img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; display: block; }
.zf-pp .zf-review { border: 1px solid var(--zf-line); border-radius: 14px; padding: 12px 14px; margin-bottom: 8px; }
.zf-pp .zf-review__top { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 4px; font-size: 13.5px; }
.zf-pp .zf-review p { font-size: 13px; line-height: 1.7; color: var(--zf-muted); margin: 0; overflow-wrap: anywhere; }
.zf-pp .zf-reviews-empty {
	border: 2px dashed #D9DCE4;
	border-radius: 16px;
	padding: 16px;
	text-align: center;
	color: var(--zf-muted);
	font-size: 12.5px;
	line-height: 1.7;
	direction: ltr;
}
.zf-pp .zf-reviews-empty b { display: block; color: var(--zf-navy); font-size: 15px; margin-bottom: 4px; direction: rtl; }

/* ---- FAQ (Nested Accordion) ------------------------------------------- */
.zf-pp .zf-faq .e-n-accordion-item { border-bottom: 1px solid var(--zf-line); }
.zf-pp .zf-faq .e-n-accordion-item-title {
	padding: 13px 0;
	border: 0 !important;
	background: transparent;
	justify-content: space-between;
	gap: 10px;
}
.zf-pp .zf-faq .e-n-accordion-item-title-text {
	font-family: var(--zf-font);
	font-size: 14px;
	font-weight: 700;
	line-height: 1.5;
	color: var(--zf-navy);
}
.zf-pp .zf-faq .e-n-accordion-item-title-icon i { color: var(--zf-gold); font-size: 15px; }
.zf-pp .zf-faq .e-n-accordion-item-title-icon svg { fill: var(--zf-gold); width: 15px; height: 15px; }
.zf-pp .zf-faq .e-n-accordion-item > .e-con,
.zf-pp .zf-faq .e-n-accordion-item > [role="region"] { border: 0 !important; padding: 0 0 12px !important; }
.zf-pp .zf-faq-a, .zf-pp .zf-faq-a p { font-size: 13px; line-height: 1.7; color: var(--zf-muted); margin: 0; }

/* ---- Desktop ------------------------------------------------------------- */
@media (min-width: 1025px) {
	.zf-pp .zf-gallery .woocommerce-product-gallery { border-radius: 18px; overflow: hidden; }
	.zf-pp .zf-title .elementor-heading-title,
	.zf-pp .zf-title .product_title,
	.zf-pp .zf-title h1 { font-size: 28px !important; }
	.zf-pp .zf-price .price { font-size: 34px !important; }
	.zf-pp .zf-sec-title,
	.zf-pp .elementor-widget.zf-sec-t .elementor-heading-title { font-size: 21px; }
}
