/* ==========================================================================
   Y Needs product cards, grid, filter modal, rating.
   Colors: Divi global colors via --yn-* (includes/brand.php). Type: Zain + gvid-yn-fs-* scale.
   Selectors start with "html body" where Divi/WooCommerce ship equally specific rules.
   ========================================================================== */

.yn-card, .yn-filter, .yn-listing-bar {
	--yn-c-primary: var(--yn-primary, #0258A2);
	--yn-c-heading: var(--yn-heading, #1E293B);
	--yn-c-text: var(--yn-text, #334155);
	--yn-c-accent: var(--yn-orange, #FF7515);
	--yn-c-soft: var(--yn-bg-soft, #F6F6F6);
	--yn-c-border: var(--yn-border, #D1D5DB);
	--yn-c-muted: var(--yn-muted, #69727D);
	--yn-ease-out: cubic-bezier(.33, 1, .68, 1); /* ease-out-cubic: measured on the reference (54% @ .2s, 83% @ .4s, 95% @ .6s of 1s) */
}

/* ---------- Listing page ---------- */
body.yn-listing #main-content { background: var(--yn-bg-soft, #F6F6F6); }
body.yn-listing .woocommerce-products-header { text-align: center; margin-bottom: .5rem; }
body.yn-listing .woocommerce-products-header__title { margin: 0; color: var(--yn-heading, #1E293B); }
body.yn-listing #left-area { padding-bottom: clamp(2rem, 4vw, 4.5rem); }
/* Phones: use the screen like the reference (16px gutters instead of Divi's 10% margins). */
@media (max-width: 767px) {
	html body.yn-listing #main-content .container { width: calc(100% - 2rem); max-width: none; }
}

.yn-listing-bar {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1rem;
	padding: .75rem 0 clamp(1.25rem, 2.5vw, 2rem);
	margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
	border-bottom: 1px solid color-mix(in srgb, var(--yn-c-accent) 45%, transparent);
	clear: both;
}
.yn-back {
	position: absolute;
	top: -3.25rem;
	inset-inline-start: 0;
	display: inline-flex;
	align-items: center;
	gap: .25rem;
	padding: .3rem .9rem;
	font-size: var(--gvid-yn-fs-xs, .85rem);
	line-height: 1.4;
}
@media (max-width: 767px) { .yn-back { position: static; align-self: flex-start; } }

.yn-rating-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .35rem .6rem; color: var(--yn-c-heading); font-size: var(--gvid-yn-fs-small, .95rem); }
.yn-rating-bar__intro { color: var(--yn-c-muted); }
.yn-stars {
	position: relative;
	display: inline-block;
	letter-spacing: 2px;
	color: var(--yn-c-border);
	line-height: 1;
	direction: ltr;
}
.yn-stars::before {
	content: "★★★★★";
	position: absolute;
	inset: 0 auto 0 0;
	width: var(--yn-rating, 0%);
	overflow: hidden;
	color: var(--yn-yellow, #FDDC00);
}

html body .yn-filter-open {
	display: inline-flex;
	align-items: center;
	gap: .4rem;
	padding: .5rem 1.25rem;
	font-size: var(--gvid-yn-fs-small, .95rem);
	line-height: 1.3;
}
.yn-filter-open__count { min-width: 1.4em; padding: 0 .35em; border-radius: 100px; background: #fffffc; color: var(--yn-c-accent); font-size: .8em; }

/* ---------- Grid (2 columns on phones, 3 cards per row from tablet up) ---------- */
html body ul.products.yn-grid,
html body .woocommerce ul.products.yn-grid,
html body .woocommerce-page ul.products.yn-grid {
	display: grid !important;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: clamp(.75rem, .45rem + 1.2vw, 1.4rem);
	margin: 0 0 1rem !important;
	padding: 0 !important;
	list-style: none;
}
html body ul.products.yn-grid::before,
html body ul.products.yn-grid::after { display: none !important; content: none !important; }
@media (min-width: 768px) {
	html body ul.products.yn-grid, html body .woocommerce ul.products.yn-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.yn-grid__empty { grid-column: 1 / -1; padding: 3rem 1rem; text-align: center; color: var(--yn-muted, #69727D); }

/* ---------- Card ---------- */
html body ul.products.yn-grid li.product.yn-card,
html body .woocommerce ul.products.yn-grid li.product.yn-card {
	position: relative;
	width: auto !important;
	margin: 0 !important;
	padding: 0 !important;
	float: none !important;
	clear: none !important;
	overflow: hidden;
	border-radius: 1.5rem;
	text-align: center;
	color: var(--yn-c-heading);
	cursor: pointer;
	user-select: none;
	isolation: isolate;
}
@media (min-width: 768px) { html body ul.products.yn-grid li.product.yn-card { border-radius: 2rem; } }
.yn-card[hidden] { display: none !important; }

.yn-card__inner { position: relative; display: flex; flex-direction: column; height: 100%; padding: 1rem 0 1.5rem; }
@media (min-width: 768px) { .yn-card__inner { padding: 1.25rem 0 1.5rem; } }

/* Hover fill: brand color rising from the bottom with a circular edge. Rest = below the card, zero-size mask.
 * Default: behind the photo/text (they stay visible, text turns white).
 * .yn-card--photo (a lifestyle photo was chosen): covers the card like the reference. */
.yn-card__overlay {
	position: absolute;
	inset: 0;
	z-index: 0;
	background: var(--yn-card-overlay, var(--yn-c-primary));
	pointer-events: none;
	transform: translateY(var(--yn-from, 100%));
	clip-path: circle(0% at 50% 50%);
	transition: transform .55s cubic-bezier(.7, 0, .84, 0), clip-path .55s cubic-bezier(.7, 0, .84, 0);
	will-change: transform, clip-path;
}
.yn-card__overlay-img {
	position: absolute;
	inset: 0;
	transform: translateY(calc(var(--yn-from, 100%) * -1)) scale(1.1);
	transition: transform .55s cubic-bezier(.7, 0, .84, 0);
	will-change: transform;
}
.yn-card__overlay-img img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.yn-card--photo .yn-card__overlay { z-index: 2; }
.yn-card--photo .yn-card__overlay::after { /* keeps buttons readable over any photo */
	content: "";
	position: absolute;
	inset: 45% 0 0;
	background: linear-gradient(to bottom, transparent, color-mix(in srgb, var(--yn-card-overlay, var(--yn-c-primary)) 80%, transparent));
}
.yn-card.is-active .yn-card__overlay {
	transform: translateY(0);
	clip-path: circle(100% at 50% 50%);
	transition-duration: 1s;
	transition-timing-function: var(--yn-ease-out);
}
.yn-card.is-active .yn-card__overlay-img {
	transform: translateY(0) scale(1.05);
	transition-duration: 1s;
	transition-timing-function: var(--yn-ease-out);
}
.yn-card.is-instant .yn-card__overlay,
.yn-card.is-instant .yn-card__overlay-img { transition: none !important; }

/* Whole card is a link; buttons sit above it. */
.yn-card__cover { position: absolute; inset: 0; z-index: 3; }

.yn-card__media {
	position: relative; /* no z-index: keeps the over-photo «اشترى الان» above the whole-card link */
	width: 84%;
	aspect-ratio: 1 / 1;
	margin: 0 auto .9rem;
	border-radius: 1.25rem;
	overflow: hidden;
	background: #fffffc;
}
html body .yn-card__media img.yn-card__img {
	display: block;
	width: 100%;
	height: 100%;
	margin: 0;
	object-fit: cover;
	transform: scale(1);
	transition: transform .55s cubic-bezier(.7, 0, .84, 0);
}
.yn-card.is-active .yn-card__media img.yn-card__img { transform: scale(1.1); transition: transform 1s var(--yn-ease-out); }

html body ul.products.yn-grid li.product.yn-card .yn-card__title {
	position: relative;
	z-index: 1;
	margin: 0 .75rem .25rem;
	padding: 0;
	color: var(--yn-c-heading);
	font-size: var(--gvid-yn-fs-h5, 1.25rem);
	font-weight: 700;
	line-height: 1.35;
	/* Two lines max (full name is on the product page) and always two lines tall, so prices line up per row. */
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	overflow: hidden;
	min-height: 2.7em;
}
@media (max-width: 767px) {
	html body ul.products.yn-grid li.product.yn-card .yn-card__title { font-size: var(--gvid-yn-fs-body, 1rem); margin-inline: .5rem; }
}
.yn-card__price {
	position: relative;
	z-index: 1;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: baseline;
	gap: 0 .5rem;
	margin: 0 .75rem .25rem;
	color: var(--yn-c-heading);
	font-size: var(--gvid-yn-fs-body, 1rem);
	font-weight: 700;
	line-height: 1.4;
}
.yn-card__price del { order: 2; color: var(--yn-c-muted); font-size: .85em; font-weight: 400; }
.yn-card__price ins { text-decoration: none; }
.yn-card__price .screen-reader-text { position: absolute; }
/* Text on the fill turns white (color-only fill). */
html body ul.products.yn-grid li.product.yn-card:not(.yn-card--photo) .yn-card__title,
.yn-card:not(.yn-card--photo) .yn-card__price,
.yn-card:not(.yn-card--photo) .yn-card__rating { transition: color .45s ease; }
html body ul.products.yn-grid li.product.yn-card.is-active:not(.yn-card--photo) .yn-card__title,
.yn-card.is-active:not(.yn-card--photo) .yn-card__price,
.yn-card.is-active:not(.yn-card--photo) .yn-card__rating { color: #fffffc; }
.yn-card.is-active:not(.yn-card--photo) .yn-card__price del { color: rgba(255, 255, 252, .7); }
.yn-card__media { transition: box-shadow .6s ease; }
.yn-card.is-active:not(.yn-card--photo) .yn-card__media { box-shadow: 0 14px 30px rgba(15, 23, 42, .25); }

.yn-card__rating { position: relative; z-index: 1; display: flex; justify-content: center; align-items: center; gap: .35rem; margin-bottom: .25rem; font-size: var(--gvid-yn-fs-xs, .85rem); color: var(--yn-c-muted); }
html body .yn-card__rating .star-rating { float: none; margin: 0; font-size: .9em; color: var(--yn-yellow, #FDDC00); }

.yn-card__actions { position: relative; z-index: 4; margin-top: auto; padding-top: .75rem; display: flex; flex-direction: column; align-items: center; gap: .85rem; }

/* Pill button (Divi/WooCommerce button styles fully reset). */
html body ul.products.yn-grid li.product.yn-card a.yn-card__btn,
html body ul.products.yn-grid li.product.yn-card .yn-card__btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .3rem;
	width: calc(100% - 1.5rem);
	min-height: 2.75rem;
	margin: 0;
	padding: .55rem 1rem;
	font-size: var(--gvid-yn-fs-small, .95rem);
	line-height: 1.2;
	white-space: nowrap;
	/* Colors + hover motion: assets/buttons.css (.yn-btn). */
}
@media (min-width: 768px) { html body ul.products.yn-grid li.product.yn-card a.yn-card__btn, html body ul.products.yn-grid li.product.yn-card .yn-card__btn { width: calc(100% - 2.5rem); min-height: 3rem; } }
@media (max-width: 767px) { html body ul.products.yn-grid li.product.yn-card a.yn-card__btn, html body ul.products.yn-grid li.product.yn-card .yn-card__btn { width: calc(100% - 1rem); padding-inline: .5rem; } }
html body ul.products.yn-grid li.product.yn-card .yn-card__btn::after,
html body ul.products.yn-grid li.product.yn-card .yn-card__btn::before { display: none !important; content: none !important; }
html body ul.products.yn-grid li.product.yn-card a.yn-card__btn.loading { opacity: .7; pointer-events: none; }
html body ul.products.yn-grid li.product.yn-card a.yn-card__btn.loading::after { display: none !important; }
html body ul.products.yn-grid li.product.yn-card .yn-card__btn.is-disabled { background: var(--yn-c-border); border-color: var(--yn-c-border); color: var(--yn-c-muted); cursor: default; }
html body ul.products.yn-grid li.product.yn-card a.added_to_cart { display: none; } /* feedback is shown on the button itself */

/* «اشترى الان»: revealed on hover (desktop); always shown on touch screens. Space is reserved so the card never jumps. */
html body ul.products.yn-grid li.product.yn-card a.yn-card__buy {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: calc(100% - 1.5rem);
	min-height: 2.75rem;
	padding: .5rem 1rem;
	font-size: var(--gvid-yn-fs-small, .95rem);
	font-weight: 800;
	line-height: 1.2;
	white-space: nowrap;
	/* Colors: assets/buttons.css. This transition list keeps both the button hover fill and the reveal. */
	transition: --yn-btn-r .36s ease-in-out, color .26s, opacity .35s ease, transform .5s var(--yn-ease-out), visibility .35s;
}
html body ul.products.yn-grid li.product.yn-card a.yn-card__buy--hover { box-shadow: inset 0 0 0 1.6px var(--yn-btn-main), 0 6px 16px rgba(15, 23, 42, .18); }
@media (min-width: 768px) { html body ul.products.yn-grid li.product.yn-card a.yn-card__buy { width: calc(100% - 2.5rem); min-height: 3rem; } }
@media (max-width: 767px) { html body ul.products.yn-grid li.product.yn-card a.yn-card__buy { width: calc(100% - 1rem); padding-inline: .5rem; } }
/* Touch screens: the in-flow button under «أضف للسلة». Mouse devices: the one over the photo. */
html body ul.products.yn-grid li.product.yn-card a.yn-card__buy--hover { display: none; }
@media (hover: hover) and (pointer: fine) {
	html body ul.products.yn-grid li.product.yn-card a.yn-card__buy--touch { display: none; }
	html body ul.products.yn-grid li.product.yn-card a.yn-card__buy--hover {
		display: inline-flex;
		position: absolute;
		z-index: 5; /* above the whole-card link */
		inset-inline: 10%;
		bottom: .9rem;
		width: auto;
		min-height: 2.75rem;
		opacity: 0;
		visibility: hidden;
		transform: translateY(calc(100% + 1rem));
	}
	html body ul.products.yn-grid li.product.yn-card.is-active a.yn-card__buy--hover { opacity: 1; visibility: visible; transform: none; transition-delay: .1s; }
}

/* ---------- «عرض المزيد» ---------- */
.yn-loadmore { display: flex; flex-direction: column; align-items: center; gap: .75rem; margin: clamp(1.5rem, 3vw, 2.5rem) auto 0; text-align: center; }
.yn-loadmore[hidden] { display: none; }
.yn-loadmore__status { margin: 0; padding: 0; color: var(--yn-muted, #69727D); font-size: var(--gvid-yn-fs-small, .95rem); }
.yn-loadmore__bar { width: min(260px, 70vw); height: 4px; border-radius: 4px; background: var(--yn-border, #D1D5DB); overflow: hidden; }
.yn-loadmore__bar span { display: block; height: 100%; width: var(--yn-progress, 0%); border-radius: inherit; background: var(--yn-primary, #0258A2); transition: width .5s cubic-bezier(.33, 1, .68, 1); margin-inline-start: 0; }
html body .yn-loadmore__btn {
	min-width: 12rem;
	padding: .8rem 2rem;
	font-size: var(--gvid-yn-fs-body, 1rem);
}
html body .yn-loadmore__btn[hidden] { display: none !important; }

/* Newly revealed cards rise in, one after another. */
@keyframes yn-card-in { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.yn-card.is-entering { animation: yn-card-in .6s cubic-bezier(.33, 1, .68, 1) both; animation-delay: calc(var(--yn-i, 0) * 60ms); }

.yn-card__view {
	color: var(--yn-c-heading) !important;
	font-size: var(--gvid-yn-fs-small, .95rem);
	font-weight: 700;
	text-decoration: underline !important;
	text-underline-offset: 3px;
	transition: color .3s;
}
.yn-card__view:hover { text-decoration: none !important; }
.yn-card.is-active .yn-card__view { color: #fffffc !important; }

.yn-card a:focus-visible { outline: 3px solid var(--yn-yellow, #FDDC00); outline-offset: 2px; }

/* Phones: the whole card already opens the product, so «عرض المنتج» goes and the two buttons get tighter. More
   products fit on each screen. */
@media (max-width: 767px) {
	html body ul.products.yn-grid li.product.yn-card .yn-card__view { display: none; }
	html body ul.products.yn-grid li.product.yn-card .yn-card__actions { gap: .4rem; }
	html body ul.products.yn-grid li.product.yn-card .yn-card__btn,
	html body ul.products.yn-grid li.product.yn-card a.yn-card__buy--touch { min-height: 2.5rem; padding-block: .4rem; font-size: .88rem; }
}

/* ---------- Filter modal ---------- */
.yn-filter { position: fixed; inset: 0; z-index: 100000; display: flex; align-items: flex-end; justify-content: center; }
.yn-filter[hidden] { display: none; }
.yn-filter__backdrop { position: absolute; inset: 0; background: rgba(15, 23, 42, .5); opacity: 0; transition: opacity .25s ease-out; }
.yn-filter__panel {
	position: relative;
	width: 100%;
	max-width: 600px;
	max-height: 90%;
	overflow: auto;
	overscroll-behavior: contain;
	padding: 2rem 1.5rem 0;
	border-radius: 2rem 2rem 0 0;
	background: #fffffc;
	color: var(--yn-c-text);
	transform: translateY(100%);
	transition: transform .25s ease-out;
	outline: none;
}
.yn-filter.is-open .yn-filter__backdrop { opacity: 1; }
.yn-filter.is-open .yn-filter__panel { transform: translateY(0); }
@media (min-width: 768px) {
	.yn-filter { align-items: center; }
	.yn-filter__panel { max-height: 80%; padding: 2rem 2.5rem 0; border-radius: 2rem; transform: none; opacity: 0; scale: .98; transition: scale .15s ease-out, opacity .15s ease-out; }
	.yn-filter.is-open .yn-filter__panel { transform: none; opacity: 1; scale: 1; }
}
html body .yn-filter__close {
	position: absolute; top: 1rem; inset-inline-end: 1rem;
	width: 2rem; height: 2rem; padding: .3rem; border: 0; border-radius: 50%;
	background: var(--yn-c-soft); color: var(--yn-c-accent); cursor: pointer; transition: background-color .15s, color .15s;
}
html body .yn-filter__close:hover { background: var(--yn-c-accent); color: #fffffc; }
.yn-filter__close svg { display: block; width: 100%; height: 100%; }
html body .yn-filter__title { margin: 0; padding-bottom: 1rem; border-bottom: 1px solid var(--yn-c-border); color: var(--yn-c-primary); font-size: var(--gvid-yn-fs-h3, 1.75rem); font-weight: 800; line-height: 1.3; }
.yn-filter__group { margin: 0; padding: 1.5rem 0; border: 0; border-bottom: 1px solid var(--yn-c-border); min-width: 0; }
.yn-filter__group:last-of-type { border-bottom: 0; }
.yn-filter__heading { float: right; width: 100%; margin: 0 0 1rem; padding: 0; color: var(--yn-c-primary); font-size: var(--gvid-yn-fs-h5, 1.2rem); font-weight: 700; }
.yn-filter__chips { clear: both; display: flex; flex-wrap: wrap; gap: .5rem; }

.yn-chip {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: .35rem;
	padding: .35rem .9rem;
	border: 1px solid color-mix(in srgb, var(--yn-c-accent) 55%, transparent);
	border-radius: 100px;
	background: color-mix(in srgb, var(--yn-c-accent) 6%, #fffffc);
	color: var(--yn-c-accent);
	font-size: var(--gvid-yn-fs-small, .9rem);
	line-height: 1.3;
	cursor: pointer;
	transition: background-color .2s, color .2s, border-color .2s, transform .15s;
}
.yn-chip:hover { border-color: var(--yn-c-accent); }
.yn-chip:active { transform: none; }
.yn-chip input { position: absolute; opacity: 0; pointer-events: none; }
.yn-chip__icon { position: relative; width: 1em; height: 1em; border: 1.5px solid currentColor; border-radius: 50%; flex: none; }
.yn-chip__icon::before, .yn-chip__icon::after { content: ""; position: absolute; inset: 0; margin: auto; background: currentColor; transition: transform .2s; }
.yn-chip__icon::before { width: 50%; height: 1.5px; }
.yn-chip__icon::after { width: 1.5px; height: 50%; }
.yn-chip:has(input:checked) { background: var(--yn-c-accent); border-color: var(--yn-c-accent); color: #fffffc; }
.yn-chip:has(input:checked) .yn-chip__icon::after { transform: scaleY(0); } /* ⊕ → ⊖ */
/* Sort options: single choice, checked one filled in brand blue. */
.yn-chip--sort:has(input:checked) { background: var(--yn-c-primary); border-color: var(--yn-c-primary); }
.yn-chip:has(input:focus-visible) { outline: 2px solid var(--yn-c-primary); outline-offset: 2px; }
.yn-chip:has(input:focus-visible) { outline: 3px solid var(--yn-c-primary); outline-offset: 2px; }
.yn-chip.is-empty { opacity: .45; }

/* Dual price slider (RTL: low price on the right). */
.yn-range { clear: both; position: relative; height: 2rem; margin: .25rem .6rem 0; }
.yn-range__track { position: absolute; inset-inline: 0; top: 50%; height: 4px; margin-top: -2px; border-radius: 4px; background: var(--yn-c-border); }
.yn-range__fill { position: absolute; top: 0; bottom: 0; inset-inline-start: var(--from, 0%); inset-inline-end: var(--to, 0%); border-radius: 4px; background: var(--yn-c-primary); }
.yn-range input[type=range] { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; background: none; pointer-events: none; -webkit-appearance: none; appearance: none; direction: rtl; }
.yn-range input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; pointer-events: auto; width: 1.4rem; height: 1.4rem; border: 3px solid var(--yn-c-accent); border-radius: 50%; background: var(--yn-c-accent); cursor: grab; box-shadow: 0 2px 6px rgba(15, 23, 42, .2); }
.yn-range input[type=range]::-moz-range-thumb { pointer-events: auto; width: 1.1rem; height: 1.1rem; border: 3px solid var(--yn-c-accent); border-radius: 50%; background: var(--yn-c-accent); cursor: grab; }
.yn-range input[type=range]::-webkit-slider-runnable-track { background: none; }
.yn-range input[type=range]:focus-visible::-webkit-slider-thumb { outline: 3px solid var(--yn-c-primary); outline-offset: 2px; }
.yn-range__values { display: flex; justify-content: space-between; margin-top: .6rem; color: var(--yn-c-heading); font-size: var(--gvid-yn-fs-small, .9rem); }

.yn-filter__footer {
	position: sticky; bottom: 0;
	display: flex; align-items: center; justify-content: center; gap: 1.5rem;
	margin: 0 -1.5rem; padding: 1.25rem 1.5rem 2rem;
	border-top: 1px solid var(--yn-c-border); background: #fffffc;
}
@media (min-width: 768px) { .yn-filter__footer { margin: 0 -2.5rem; padding: 1.25rem 2.5rem 1.75rem; } }
html body .yn-filter__reset { padding: 0; border: 0; background: none; color: var(--yn-c-accent); font: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; }
html body .yn-filter__reset:hover { text-decoration: none; }
html body .yn-filter__show { padding: .75rem 1.75rem; font-size: var(--gvid-yn-fs-body, 1rem); font-weight: 400; }
html body .yn-filter__show b { font-weight: 800; }
body.yn-filter-lock { overflow: hidden; }

/* ---------- Reduced motion: same states, no movement ---------- */
@media (prefers-reduced-motion: reduce) {
	.yn-card__overlay, .yn-card__overlay-img, .yn-card__media img.yn-card__img, .yn-filter__panel, .yn-filter__backdrop, .yn-card a.yn-card__buy { transition: none !important; }
	.yn-card.is-entering { animation: none; }
}

/* «وفّري حتى X%»: when one of the product's offers is discounted. */
.yn-card__media { position: relative; }
.yn-card__save {
	position: absolute;
	top: .6rem;
	inset-inline-start: .6rem;
	z-index: 3;
	padding: .3rem .65rem;
	border-radius: 999px;
	background: var(--yn-orange, #FF7515);
	color: #FFFFFC;
	font-size: .78rem;
	font-weight: 800;
	line-height: 1.2;
	box-shadow: 0 6px 14px -6px rgba(255, 117, 21, .6);
	pointer-events: none;
}
