/* =========================================================
   Yaya — تنسيقات WooCommerce المكمّلة (المتجر/المنتج/السلة)
   ========================================================= */

/* ----- ترويسة المتجر: عدد النتائج + الترتيب في صف واحد ----- */
.yaya-woocommerce .woocommerce-products-header { margin-bottom: 8px; }
.yaya-woocommerce .woocommerce-result-count {
	float: right;
	margin: 0 0 20px;
	color: var(--text-gray, #616266);
	line-height: 44px;
}
.yaya-woocommerce .woocommerce-ordering {
	float: left !important;
	margin: 0 0 20px !important;
}
.yaya-woocommerce .woocommerce-ordering select {
	padding: 11px 18px;
	border: 1px solid var(--border-gray-2, #EDEDED);
	border-radius: 500px;
	background: #fff;
	cursor: pointer;
}

/* ----- شبكة المتجر والأرشيف ----- */
.yaya-shop-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 24px;
	list-style: none;
	margin: 0;
	padding: 0;
	clear: both;
}
.yaya-shop-grid::before,
.yaya-shop-grid::after { content: none; display: none; }

/* بطاقة المنتج: نسبة ثابتة، الصورة بالوسط، الاسم/السعر بالأسفل */
.yaya-shop-grid .product-card { width: auto; margin: 0; float: none; list-style: none; }
.yaya-shop-grid .product-card__inner {
	position: relative;
	aspect-ratio: 1 / 1.2;
	border-radius: 16px;
	overflow: hidden;
}
.yaya-shop-grid .product-card__image {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 46px 18px 78px;
}
.yaya-shop-grid .product-card__image .image-static { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.yaya-shop-grid .product-card__image img {
	max-width: 82%;
	max-height: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
	mix-blend-mode: multiply;
}
.yaya-shop-grid .top-control { top: 16px; inset-inline: 16px; left: 16px; right: 16px; }
.yaya-shop-grid .bottom-control { bottom: 0; inset-inline: 0; left: 0; right: 0; padding: 16px 18px; }
.yaya-shop-grid .product-title h3 { font-size: 13px; font-weight: 700; margin: 0; }
.yaya-shop-grid .product-price .price { font-weight: 700; }

@media (max-width: 1024px) {
	.yaya-shop-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
	.yaya-shop-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
	.yaya-woocommerce .woocommerce-result-count { float: none; line-height: 1.5; }
	.yaya-woocommerce .woocommerce-ordering { float: none !important; }
}

/* ترقيم الصفحات */
.yaya-woocommerce .woocommerce-pagination ul {
	display: flex;
	gap: 8px;
	justify-content: center;
	list-style: none;
	padding: 0;
	margin: 32px 0 0;
}
.yaya-woocommerce .woocommerce-pagination a,
.yaya-woocommerce .woocommerce-pagination span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 42px;
	height: 42px;
	padding: 0 12px;
	border-radius: 500px;
	background: #fff;
	border: 1px solid var(--border-gray-2, #EDEDED);
	text-decoration: none;
	color: var(--text-color-main, #363636);
}
.yaya-woocommerce .woocommerce-pagination .current {
	background: var(--bg-orange, #ED5522);
	color: #fff;
	border-color: var(--bg-orange, #ED5522);
}

/* ----- صفحة المنتج المفرد ----- */
.single-product div.product {
    display: grid;
    gap: 48px;
    align-items: center;
    justify-content: center;
}
.single-product div.product .woocommerce-product-gallery {
	width: 100% !important;
	margin: 0;
}
.single-product div.product .woocommerce-product-gallery img {
	border-radius: 16px;
	background: var(--bg-light-orange, #F2F0EF);
}
.single-product div.product .entry-summary { margin: 0; }
.single-product .product_title {
	font-size: 2rem;
	font-weight: 700;
	margin-bottom: 12px;
	color: var(--text-color-main, #363636);
}
.single-product .price,
.single-product .woocommerce-Price-amount {
	font-size: 1.6rem;
	font-weight: 700;
	color: var(--text-color-main, #363636);
}
.single-product .woocommerce-product-details__short-description {
	margin: 16px 0;
	color: var(--text-gray, #616266);
	line-height: 1.8;
}

/* أزرار ووكومرس بهوية الثيم */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce .single_add_to_cart_button,
.woocommerce #respond input#submit,
.woocommerce .checkout-button {
	background: var(--bg-orange, #ED5522) !important;
	color: #fff !important;
	border-radius: 500px !important;
	padding: 14px 32px !important;
	font-weight: 600 !important;
	border: none !important;
	transition: opacity .2s ease;
}
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce .single_add_to_cart_button:hover { opacity: .9; }

.woocommerce .quantity input.qty {
	padding: 12px;
	border: 1px solid var(--border-gray-2, #EDEDED);
	border-radius: 12px;
	width: 70px;
}

/* تبويبات بيانات المنتج */
.woocommerce-tabs { margin-top: 48px; }
.woocommerce-tabs ul.tabs {
	display: flex;
	gap: 12px;
	list-style: none;
	padding: 0;
	border-bottom: 1px solid var(--border-gray-2, #EDEDED);
	margin-bottom: 24px;
}
.woocommerce-tabs ul.tabs li {
	padding: 12px 20px;
	border-radius: 500px 500px 0 0;
}
.woocommerce-tabs ul.tabs li.active { background: var(--bg-light-orange, #F2F0EF); }

/* رسائل ووكومرس */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
	border-radius: 12px;
	padding: 16px 20px;
	border-top: 3px solid var(--bg-orange, #ED5522);
	background: #fff;
	list-style: none;
}

/* السلة والدفع */
.woocommerce table.shop_table {
	border-radius: 12px;
	border-collapse: separate;
	border-spacing: 0;
	overflow: hidden;
}
.woocommerce .cart-collaterals .cart_totals,
.woocommerce-checkout #order_review {
	background: var(--bg-light-orange, #F2F0EF);
	border-radius: 16px;
	padding: 24px;
}

@media (max-width: 768px) {
	.single-product div.product { grid-template-columns: 1fr; gap: 24px; }
}

/* ----- النماذج الذاتية (تواصل/إلغاء/نشرة) ----- */
.yaya-form { max-width: 560px; }
.yaya-form .form__control {
	width: 100%;
	padding: 14px 18px;
	border: 1px solid var(--border-gray-2, #EDEDED);
	border-radius: 12px;
	background: #fff;
	font: inherit;
	color: var(--text-color-main, #363636);
}
.yaya-form textarea.form__control { resize: vertical; min-height: 120px; }
.yaya-form .btn { cursor: pointer; }

.yaya-form-notice {
	padding: 14px 18px;
	border-radius: 12px;
	margin-bottom: 18px;
	font-weight: 600;
}
.yaya-form-notice--success { background: #e7f6ee; color: #0b7a4b; border: 1px solid #b6e2cb; }
.yaya-form-notice--error   { background: #fdecea; color: #b3261e; border: 1px solid #f5c6c2; }

/* =========================================================
   كروت التصنيفات الثلاثة في الصفحة الرئيسية
   ========================================================= */
.yaya-cat-cards {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}
.yaya-cat-cards .product-card-custom { display: block; text-decoration: none; }
.yaya-cat-cards .product-card-custom__inner {
	position: relative;
	border-radius: 16px;
	overflow: hidden;
	aspect-ratio: 1 / 1.12;
}
.yaya-cat-cards .product-card-custom__image,
.yaya-cat-cards .product-card-custom__image img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.yaya-cat-cards .product-card-custom__image .gradient {
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(0,0,0,.45) 100%);
}
.yaya-cat-cards .product-card__content {
	position: relative;
	z-index: 2;
	height: 100%;
	padding: 20px;
}
.yaya-cat-cards .top-control { position: absolute; inset: 20px 20px auto auto; left: 20px; }
.yaya-cat-cards .categories { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.yaya-cat-cards .category {
	background: #fff;
	color: var(--text-color-main, #363636);
	border-radius: 500px;
	padding: 6px 14px;
	font-size: .8rem;
	white-space: nowrap;
}
.yaya-cat-cards .bottom-control { margin-top: auto; }
.yaya-cat-cards .control { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.yaya-cat-cards .title h3 { color: #fff; font-size: 1.5rem; font-weight: 700; margin: 0; }
.yaya-cat-cards .arrow {
	width: 44px; height: 44px;
	background: #fff;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	transition: transform .25s ease;
}
.yaya-cat-cards .product-card-custom:hover .arrow { transform: translateX(-6px); }
.yaya-cat-cards .product-card-custom:hover .product-card-custom__image img { transform: scale(1.05); }
.yaya-cat-cards .product-card-custom__image img { transition: transform .5s ease; }
@media (max-width: 900px) {
	.yaya-cat-cards { grid-template-columns: 1fr; }
}

/* =========================================================
   سلايدرات المنتجات في الصفحة الرئيسية
   ========================================================= */
.jsProductsSlider,
.jsProductCards { overflow: hidden; }
.jsProductsSlider .swiper-wrapper,
.jsProductCards .swiper-wrapper { display: flex; }
.jsProductsSlider .swiper-slide,
.jsProductCards .swiper-slide { height: auto; }
.jsProductsSlider .product-card,
.jsProductCards .product-card { width: 100%; height: 100%; }
/* قبل تفعيل Swiper: امنع ظهور كرت واحد عملاق */
.jsProductsSlider:not(.swiper-initialized) .swiper-wrapper,
.jsProductCards:not(.swiper-initialized) .swiper-wrapper { gap: 16px; }
.jsProductsSlider:not(.swiper-initialized) .swiper-slide,
.jsProductCards:not(.swiper-initialized) .swiper-slide { flex: 0 0 calc(25% - 12px); max-width: calc(25% - 12px); }
@media (max-width: 992px) {
	.jsProductsSlider:not(.swiper-initialized) .swiper-slide,
	.jsProductCards:not(.swiper-initialized) .swiper-slide { flex-basis: calc(33.333% - 11px); max-width: calc(33.333% - 11px); }
}
@media (max-width: 640px) {
	.jsProductsSlider:not(.swiper-initialized) .swiper-slide,
	.jsProductCards:not(.swiper-initialized) .swiper-slide { flex-basis: calc(50% - 8px); max-width: calc(50% - 8px); }
}

/* =========================================================
   صفحة المنتج المفردة — بنية التصميم الأصلي (b-product-page)
   دعم التخطيط بدون سكربتات jsSticky/jsMinHeight المفقودة
   ========================================================= */
.b-product-page { padding: 32px 0 8px; }
.b-product-page .product-page {
	display: flex !important;
	flex-direction: row; /* RTL: الملخّص يمين، المعرض شمال (مطابق للأصل) */
	gap: 32px;
	align-items: flex-start;
	flex-wrap: wrap;
}
.b-product-page .block-description,
.b-product-page .media-part {
	flex: 1 1 380px;
	min-width: 0;
	padding: 0;
}
.b-product-page .product-image { display: none; } /* خلفية تزيينية تعتمد على JS */

/* الملخّص */
.b-product-page .product-content {
	background: #fff;
	border-radius: 16px;
	padding: 32px;
}
.b-product-page .title-button {
	background: var(--bg-light-orange, #F2F0EF);
	color: var(--text-color-main, #363636);
	border-radius: 500px;
	padding: 8px 18px;
	display: inline-flex;
	font-size: .9rem;
}
.b-product-page .section-title h1 {
	font-size: 2rem;
	font-weight: 700;
	line-height: 1.25;
	margin: 0;
	color: var(--text-color-main, #363636);
}
.b-product-page .content-wrapper .content { color: var(--text-gray, #616266); line-height: 1.9; }
.b-product-page .logotypes { display: flex; flex-wrap: wrap; gap: 16px; }
.b-product-page .logotypes .logo img { width: 48px; height: 48px; object-fit: contain; }
.b-product-page .product-price-wrap .price,
.b-product-page .product-price-wrap .woocommerce-Price-amount {
	font-size: 1.6rem;
	font-weight: 700;
	color: var(--text-color-main, #363636);
}
.b-product-page .quantity-row .qty {
	width: 90px;
	padding: 13px;
	border: 1px solid var(--border-gray-2, #EDEDED);
	border-radius: 12px;
	text-align: center;
	font: inherit;
}
.b-product-page .btn-black {
	width: 100%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	background: var(--bg-black, #363636) !important;
	color: #fff !important;
	border: none !important;
	border-radius: 500px !important;
	padding: 16px 28px !important;
	font-weight: 600;
	font-size: 1.05rem;
	cursor: pointer;
	transition: opacity .2s ease;
}
.b-product-page .btn-black:hover { opacity: .9; }
.b-product-page .btn-black .title { color: #fff; }
.b-product-page .btn-black .icon { display: inline-flex; align-items: center; }

/* محدّد الباقات (الخيارات) */
.b-product-page .variants__list { display: flex; flex-direction: column; gap: 14px; }
.b-product-page .variant { display: block; position: relative; cursor: pointer; }
.b-product-page .variant input { position: absolute; opacity: 0; pointer-events: none; }
.b-product-page .variant__inner {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	border: 1.5px solid var(--border-gray-2, #EDEDED);
	border-radius: 14px;
	padding: 16px 48px 16px 18px;
	position: relative;
	transition: border-color .2s ease, background .2s ease;
}
.b-product-page .variant input:checked + .variant__inner {
	border-color: var(--bg-black, #363636);
	background: #fafafa;
}
.b-product-page .variant .circle {
	position: absolute;
	inset-inline-start: 16px;
	top: 50%;
	transform: translateY(-50%);
	width: 20px; height: 20px;
	border: 2px solid var(--border-gray-3, #D0D1D5);
	border-radius: 50%;
}
.b-product-page .variant .circle__inner { position: absolute; inset: 3px; border-radius: 50%; background: transparent; }
.b-product-page .variant input:checked + .variant__inner .circle { border-color: var(--bg-black, #363636); }
.b-product-page .variant input:checked + .variant__inner .circle__inner { background: var(--bg-black, #363636); }
.b-product-page .info-part { display: flex; flex-direction: column; gap: 6px; flex: 1; }
.b-product-page .info-part__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.b-product-page .right-part { display: flex; align-items: center; gap: 12px; }
.b-product-page .variant .title { font-weight: 700; font-size: 1.05rem; }
.b-product-page .quantity {
	background: var(--bg-light-orange, #F2F0EF);
	border-radius: 500px;
	padding: 4px 12px;
	font-size: .8rem;
	display: inline-block;
}
.b-product-page .tag {
	background: var(--bg-orange, #ED5522);
	color: #fff;
	border-radius: 500px;
	padding: 4px 12px;
	font-size: .78rem;
	display: inline-block;
}
.b-product-page .info-part__botton { color: var(--text-gray, #616266); font-size: .9rem; }
.b-product-page .info-part__botton .woocommerce-Price-amount { font-weight: 700; color: var(--text-color-main, #363636); }
.b-product-page .total-price { display: flex; align-items: center; gap: 8px; font-weight: 700; white-space: nowrap; }
.b-product-page .total-price .old_price { color: var(--text-gray-2, #A5A8AD); text-decoration: line-through; font-weight: 500; font-size: .9rem; }
.b-product-page .total-price .price .woocommerce-Price-amount { font-size: 1.15rem; }

/* المعرض */
.b-product-page .media-part .media { position: sticky; top: 24px; width: 100%; display: block; }
.b-product-page .media__inner,
.b-product-page .media .swiper { width: 100%; }
.b-product-page .product-gallery {
	background: var(--bg-light-orange, #F2F0EF);
	border-radius: 20px;
	padding: 24px;
	overflow: hidden;
}
.b-product-page .product-gallery .swiper-wrapper { display: flex; align-items: center; }
.b-product-page .product-gallery .swiper-slide { display: flex; align-items: center; justify-content: center; }
/* قبل تفعيل Swiper: اعرض أول صورة فقط لمنع التراص العملاق */
.jsProductPageSlider:not(.swiper-initialized) .swiper-slide:not(:first-child) { display: none !important; }
.b-product-page .media-el { width: 100%; text-align: center; }
.b-product-page .media-el img {
	max-width: 100% !important;
	max-height: 460px !important;
	width: auto !important;
	height: auto !important;
	margin: 0 auto;
	object-fit: contain;
	mix-blend-mode: multiply;
}
.b-product-page .swiper-nav { display: flex; gap: 12px; justify-content: center; margin-top: 16px; }
.b-product-page .swiper-nav button {
	width: 44px; height: 44px;
	border-radius: 50%;
	background: #fff;
	border: 1px solid var(--border-gray-2, #EDEDED);
	display: inline-flex; align-items: center; justify-content: center;
	cursor: pointer;
}

/* الأقسام تحت المنتج */
.b-product-description { padding: 40px 0; }
.b-product-description .section-title h2 { font-size: 1.6rem; font-weight: 700; margin-bottom: 16px; }
.b-product-description .wysiwyg { color: var(--text-gray, #616266); line-height: 1.9; }
.b-related-products { padding: 24px 0 64px; }
.b-related-products h2 { font-size: 1.5rem; font-weight: 700; margin-bottom: 24px; }

@media (max-width: 900px) {
	.b-product-page .product-page { flex-direction: column; }
	.b-product-page .media-part .media { position: static; }
	.b-product-page .block-description,
	.b-product-page .media-part { flex-basis: 100%; }
	.b-product-page .section-title h1 { font-size: 1.6rem; }
}

/* =========================================================
   درج سلة التسوق الجانبي — تصميم الموقع
   ========================================================= */
.mini-cart__wrapper[data-mini-cart],
.mini-cart__wrapper[data-quick-add] { display: none !important; }

.yaya-cart { position: fixed; inset: 0; z-index: 99999; display: flex; visibility: hidden; pointer-events: none; }
.yaya-cart.is-open { visibility: visible; pointer-events: auto; }
.yaya-cart__overlay { position: absolute; inset: 0; background: rgba(54,54,54,.5); opacity: 0; transition: opacity .3s ease; }
.yaya-cart.is-open .yaya-cart__overlay { opacity: 1; }
body.yaya-cart-open { overflow: hidden; }

/* اللوحة (يسار) */
.yaya-cart__panel {
	position: relative; z-index: 2; margin-inline-end: auto;
	width: 460px; max-width: 92vw; height: 100%;
	background: #fff; display: flex; flex-direction: column;
	transform: translateX(-100%); transition: transform .35s cubic-bezier(.4,0,.2,1);
	box-shadow: 0 0 50px rgba(0,0,0,.18);
}
.yaya-cart.is-open .yaya-cart__panel { transform: translateX(0); }

.yaya-cart__head { display: flex; align-items: center; justify-content: space-between; padding: 22px 26px; }
.yaya-cart__head h3 { margin: 0; font-size: 1.5rem; font-weight: 700; }
.yaya-cart__close { background: none; border: none; cursor: pointer; padding: 6px; }
.yaya-cart__content { display: flex; flex-direction: column; flex: 1; min-height: 0; }

/* شريط الشحن المجاني */
.yaya-cart__shipping { padding: 0 26px 18px; }
.yaya-cart__bar { height: 8px; border-radius: 500px; background: var(--bg-light-orange,#F2F0EF); overflow: hidden; }
.yaya-cart__bar span { display: block; height: 100%; border-radius: 500px; background: var(--bg-orange,#ED5522); transition: width .4s ease; }
.yaya-cart__shipinfo { margin-top: 10px; font-size: .92rem; color: var(--text-gray,#616266); }
.yaya-cart__shipinfo strong { color: var(--text-orange,#ED5522); }

/* العناصر */
.yaya-cart__items { flex: 1; overflow-y: auto; padding: 4px 26px; }
.yaya-cart__item { display: flex; gap: 14px; align-items: flex-start; padding: 18px 0; border-top: 1px solid var(--border-gray-2,#EDEDED); position: relative; }
.yaya-cart__thumb { width: 84px; height: 84px; flex-shrink: 0; border-radius: 12px; background: var(--bg-light-orange,#F2F0EF); overflow: hidden; display: flex; align-items: center; justify-content: center; }
.yaya-cart__thumb img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.yaya-cart__info { flex: 1; min-width: 0; }
.yaya-cart__name a, .yaya-cart__name { color: var(--text-color-main,#363636); text-decoration: none; font-weight: 700; font-size: 1.02rem; }
.yaya-cart__cat { color: var(--text-gray-2,#A5A8AD); font-size: .85rem; margin: 2px 0 10px; }
.yaya-cart__qty { display: inline-flex; align-items: center; gap: 14px; border: 1px solid var(--border-gray-2,#EDEDED); border-radius: 500px; padding: 6px 14px; }
.yaya-cart__qty button { background: none; border: none; font-size: 1.1rem; line-height: 1; cursor: pointer; color: var(--text-color-main,#363636); width: 18px; }
.yaya-cart__num { min-width: 18px; text-align: center; font-weight: 600; }
.yaya-cart__side { display: flex; flex-direction: column; align-items: flex-end; gap: 28px; }
.yaya-cart__price { text-align: end; white-space: nowrap; }
.yaya-cart__price .old { display: block; color: var(--text-gray-2,#A5A8AD); text-decoration: line-through; font-size: .82rem; }
.yaya-cart__price .now { font-weight: 700; }
.yaya-cart__remove { background: none; border: none; cursor: pointer; padding: 0; opacity: .7; }
.yaya-cart__remove:hover { opacity: 1; }

/* الحالة الفارغة */
.yaya-cart__empty { text-align: center; padding: 50px 26px; }
.yaya-cart__empty h3 { font-size: 1.2rem; font-weight: 700; margin: 0 0 8px; }
.yaya-cart__empty p { color: var(--text-gray,#616266); margin: 0 0 20px; }

/* الفوتر */
.yaya-cart__footer { padding: 20px 26px 26px; border-top: 1px solid var(--border-gray-2,#EDEDED); }
.yaya-cart__shiprow { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.yaya-cart__shiprow .lbl { font-weight: 700; }
.yaya-cart__shiprow .sub { font-size: .8rem; color: var(--text-gray-2,#A5A8AD); }
.yaya-cart__grandtotal { font-size: 1.5rem; font-weight: 700; }
.yaya-cart__checkout { display: block; text-align: center; background: var(--bg-black,#363636); color: #fff; border-radius: 500px; padding: 16px; font-weight: 700; text-decoration: none; }
.yaya-cart__checkout:hover { opacity: .92; }

/* قسم "قد يعجبك أيضاً" (يمين) */
.yaya-cart__reco { position: relative; z-index: 2; flex: 1; padding: 40px; overflow-y: auto; align-self: center; max-height: 100%; }
.yaya-cart__recohead { text-align: center; margin-bottom: 24px; }
.yaya-cart__recohead h2 { color: #fff; font-size: 1.8rem; font-weight: 700; }
.yaya-cart__recolist { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 1000px; margin: 0 auto; }
.yaya-reco__card { background: #fff; border-radius: 16px; padding: 16px; display: flex; flex-direction: column; }
.yaya-reco__card .product-card { width: 100%; }
.yaya-reco__add { margin-top: 14px; background: var(--bg-black,#363636); color: #fff; border: none; border-radius: 500px; padding: 13px; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.yaya-reco__add.loading { opacity: .6; pointer-events: none; }

@media (max-width: 1100px) { .yaya-cart__reco { display: none; } }
@media (max-width: 480px) { .yaya-cart__panel { width: 100%; max-width: 100%; } }

/* =========================================================
   مُكوّن الرزمة (Build Your Bundle)
   ========================================================= */
.b-product-bundler .bundler-card { transition: box-shadow .2s ease, transform .2s ease; position: relative; }
.b-product-bundler .bundler-card.is-selected { box-shadow: 0 0 0 2px var(--bg-orange,#ED5522); border-radius: 14px; }
.b-product-bundler .bundler-hint { color: var(--text-gray,#616266); margin: 8px 0 20px; }

/* خانات الرزمة (3 خانات بعرض متساوٍ) */
.b-product-bundler .bundled-items { display: grid !important; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 20px; }
.b-product-bundler .item-slot {
	position: relative !important; width: auto !important; height: auto !important; aspect-ratio: 1 / 1;
	border-radius: 14px !important; border: 1.5px dashed var(--border-gray-3,#D0D1D5) !important;
	background: var(--bg-light-orange,#F2F0EF) !important; overflow: hidden !important;
	display: flex !important; flex-direction: column; align-items: center; justify-content: center; padding: 8px;
}
.b-product-bundler .item-slot.empty { border-style: dashed !important; }
.b-product-bundler .item-slot:not(.empty) { border-style: solid !important; border-color: var(--border-gray-2,#EDEDED) !important; background: #fff !important; }
.b-product-bundler .item-slot.empty .remove-item,
.b-product-bundler .item-slot.empty .item-title { display: none !important; }
.b-product-bundler .item-slot .item-img {width: 100%;flex: 1;min-height: 0;display: flex;align-items: center;justify-content: center;padding: 0 !important;}
.b-product-bundler .item-slot .item-img img {max-width: 100%;max-height: 100%;width: 100% !important;height: 100% !important;object-fit: contain;mix-blend-mode: multiply;}
.b-product-bundler .item-slot .item-title { font-size: .72rem; font-weight: 600; text-align: center; margin: 6px 0 0; line-height: 1.2; color: var(--text-color-main,#363636); }
.b-product-bundler .item-slot .remove-item {
	position: absolute !important;
	top: 6px;
	inset-inline-start: 6px;
	z-index: 2;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	border: none;
	background: #fff;
	box-shadow: 0 1px 4px rgba(0,0,0,.12);
	cursor: pointer;
	font-size: 15px;
	line-height: 1;
	color: #b3261e;
	top: 10px !important;
	right: 10px !important;
}

.b-product-bundler .bundler-footer { display: flex; flex-direction: column; gap: 16px; margin-top: 4px; }
.b-product-bundler .bundle-sum { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.b-product-bundler .bundle-sum .shipping h4 { margin: 0; font-weight: 700; }
.b-product-bundler .bundle-sum .shipping p { margin: 0; font-size: .78rem; color: var(--text-gray-2,#A5A8AD); }
.b-product-bundler .bundle-sum .total { font-size: 1.5rem; font-weight: 700; display: flex; gap: 10px; align-items: baseline; }
.b-product-bundler .bundle-sum .total .original.is-struck { color: var(--text-gray-2,#A5A8AD); text-decoration: line-through; font-size: 1rem; font-weight: 500; }
.b-product-bundler .bundle-sum .total .discounted.hidden { display: none; }

/* زر إضافة الرزمة */
.b-product-bundler .jsAddBundleProduct {
	display: flex !important; align-items: center; justify-content: center; gap: 14px;
	background: var(--bg-black,#363636) !important; color: #fff !important; border: none !important;
	border-radius: 500px !important; padding: 12px 14px 12px 28px !important; font-weight: 700; font-size: 1.05rem;
	cursor: pointer; width: 100%; transition: opacity .2s ease; position: relative;
}
.b-product-bundler .jsAddBundleProduct span { color: #fff; }
.b-product-bundler .jsAddBundleProduct .icon {
	width: 42px !important;
	height: 42px !important;
	background: #fff !important;
	border-radius: 50% !important;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}
.b-product-bundler .jsAddBundleProduct:disabled { opacity: .4; cursor: not-allowed; }
.b-product-bundler .jsAddBundleProduct.loading { opacity: .6; pointer-events: none; }

/* فلترة التصنيفات */
.b-product-bundler .jsFilterCategories { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0 0 24px; }
.b-product-bundler .jsFilterCategories li { padding: 8px 18px; border-radius: 500px; border: 1px solid var(--border-gray-2,#EDEDED); cursor: pointer; background: #fff; display: flex; align-items: center; gap: 8px; }
.b-product-bundler .jsFilterCategories li.is-active { background: var(--bg-black,#363636); color: #fff; border-color: var(--bg-black,#363636); }
.b-product-bundler .product-bundle-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 1024px) { .b-product-bundler .product-bundle-list { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px) { .b-product-bundler .product-bundle-list { grid-template-columns: repeat(2, 1fr); } }

/* تخطيط لوحة الرزمة بجانب قائمة المنتجات */
.b-product-bundler .products-cont {/* display: grid; */grid-template-columns: 360px 1fr;gap: 32px;align-items: start;}
.b-product-bundler .animating-el.bundler { background: #fff; border-radius: 18px; padding: 24px; position: sticky; top: 24px; }
@media (max-width: 992px) { .b-product-bundler .products-cont { grid-template-columns: 1fr; } .b-product-bundler .animating-el.bundler { position: static; } }

/* =========================================================
   مودال تسجيل الدخول / إنشاء حساب
   ========================================================= */
/* إخفاء منطقة الدخول الاجتماعي الفارغة + فاصل "أو" */
.creds__content .integrations:empty,
.creds__content .integrations,
.creds__content .separator { display: none !important; }
.creds__content .panel { display: none; }
.creds__content .panel.active { display: block; }
.creds__content h4 { font-size: 1.4rem; font-weight: 700; margin: 0 0 22px; }
.creds__content .form-row { margin-bottom: 16px; }
.creds__content .input-wrap { position: relative; }
.creds__content .form__control {
	width: 100%;
	padding: 14px 18px;
	border: 1px solid var(--border-gray-2, #EDEDED);
	border-radius: 12px;
	background: #fff;
	font: inherit;
}
.creds__content .form-row.checkboxes { display: flex; flex-direction: column; gap: 10px; }
.creds__content .label_checkbox { display: flex; align-items: flex-start; gap: 8px; font-size: .85rem; color: var(--text-gray, #616266); cursor: pointer; }
.creds__content .btn-link { background: none; border: none; color: var(--text-orange, #ED5522); cursor: pointer; text-decoration: underline; padding: 0; }
.creds__content .panel__footer { margin-top: 18px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.creds__content .btn.btn-black-inverse {
	display: inline-flex; align-items: center; justify-content: center; gap: 12px;
	background: var(--bg-black, #363636) !important; color: #fff !important;
	border: none; border-radius: 500px; padding: 12px 16px 12px 28px; font-weight: 700; cursor: pointer;
}
.creds__content .btn.btn-black-inverse .title { color: #fff; }
.creds__content .btn.btn-black-inverse .icon { width: 40px; height: 40px; background: #fff; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; }
.creds__content .btn.btn-black-inverse .icon svg path { stroke: #363636; }
.woocommerce-error, .woocommerce-message { margin-bottom: 16px; }
.yaya-auth-notice { padding: 12px 16px; border-radius: 10px; margin-bottom: 16px; font-weight: 600; font-size: .9rem; }
.yaya-auth-notice--success { background: #e7f6ee; color: #0b7a4b; border: 1px solid #b6e2cb; }
.yaya-auth-notice--error { background: #fdecea; color: #b3261e; border: 1px solid #f5c6c2; }
.creds__content button.loading { opacity: .6; pointer-events: none; }

/* =========================================================
   صفحة حسابي (My Account)
   ========================================================= */
.woocommerce-account .entry-content > .woocommerce {
	display: flex;
	direction: ltr; /* تثبيت التخطيط بصرف النظر عن الاتجاه الموروث */
	gap: 40px;
	align-items: flex-start;
}
/* المعلومات شمال، القائمة (التابات) يمين */
.woocommerce-account .woocommerce-MyAccount-content { order: 1; flex: 1; min-width: 0; direction: rtl; }
.woocommerce-account .yaya-account-side { order: 2; width: 300px; flex-shrink: 0; direction: rtl; }
/* العمود الجانبي: بطاقة المستخدم + القائمة */
.yaya-account-side { position: sticky; top: 24px; display: flex; flex-direction: column; gap: 20px; }
.yaya-account-card {
	background: #fff;
	border: 1px solid var(--border-gray-2, #EDEDED);
	border-radius: 18px;
	padding: 22px 24px;
	text-align: center;
}
.yaya-account-card strong { display: block; font-size: 1.15rem; font-weight: 700; margin-bottom: 4px; }
.yaya-account-card span { color: var(--text-gray, #616266); font-size: .9rem; word-break: break-all; }

.woocommerce-MyAccount-navigation {
	background: #fff;
	border: 1px solid var(--border-gray-2, #EDEDED);
	border-radius: 18px;
	padding: 14px;
}

/* نموذج تفاصيل الحساب */
.yaya-account-title { font-size: 1.6rem; font-weight: 700; margin: 0 0 24px; }
.yaya-account-form .yaya-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 8px; }
.yaya-account-form .form-row { margin: 0; display: flex; flex-direction: column; }
.yaya-account-form label { font-weight: 600; font-size: .9rem; margin-bottom: 6px; color: var(--text-color-main, #363636); }
.yaya-account-form input.input-text,
.yaya-account-form select,
.yaya-account-form input[type="date"],
.yaya-account-form input[type="password"] {
	width: 100%;
	padding: 14px 16px;
	border: 1px solid var(--border-gray-2, #EDEDED);
	border-radius: 12px;
	background: #fff;
	font: inherit;
}
.yaya-password-fieldset { border: none; padding: 18px 0 0; margin: 18px 0 0; border-top: 1px solid var(--border-gray-2, #EDEDED); }
.yaya-password-fieldset legend { font-weight: 700; padding: 0; margin-bottom: 14px; }
.yaya-account-submit { margin-top: 24px; }
.yaya-account-form .btn.btn-black-inverse {
	display: inline-flex; align-items: center; gap: 12px;
	background: var(--bg-black, #363636) !important; color: #fff !important;
	border: none; border-radius: 500px; padding: 12px 16px 12px 28px; font-weight: 700; cursor: pointer;
}
.yaya-account-form .btn.btn-black-inverse .title { color: #fff; }
.yaya-account-form .btn.btn-black-inverse .icon { width: 40px; height: 40px; background: #fff; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; }
@media (max-width: 600px) { .yaya-account-form .yaya-form-grid { grid-template-columns: 1fr; } }
.woocommerce-MyAccount-navigation ul { list-style: none; margin: 0; padding: 0; }
.woocommerce-MyAccount-navigation li { margin: 0 0 4px; }
.woocommerce-MyAccount-navigation li a {
	display: block;
	padding: 13px 18px;
	border-radius: 12px;
	text-decoration: none;
	color: var(--text-color-main, #363636);
	font-weight: 600;
	transition: background .2s ease, color .2s ease;
}
.woocommerce-MyAccount-navigation li a:hover { background: var(--bg-light-orange, #F2F0EF); }
.woocommerce-MyAccount-navigation li.is-active a {
	background: var(--bg-black, #363636);
	color: #fff;
}
.woocommerce-MyAccount-navigation li--downloads a::before,
.woocommerce-MyAccount-navigation li--orders a::before { content: ''; }

/* المحتوى */
.woocommerce-MyAccount-content {
	background: #fff;
	border: 1px solid var(--border-gray-2, #EDEDED);
	border-radius: 18px;
	padding: 32px;
	min-height: 300px;
}
.woocommerce-MyAccount-content p { line-height: 1.9; color: var(--text-gray, #616266); }
.woocommerce-MyAccount-content a { color: var(--text-orange, #ED5522); }
.woocommerce-MyAccount-content .woocommerce-Message,
.woocommerce-MyAccount-content mark { background: transparent; }

/* عنوان الصفحة */
.woocommerce-account .page-title {
	font-size: 2rem;
	font-weight: 700;
	margin-bottom: 28px;
}

/* جداول الطلبات/التنزيلات */
.woocommerce-account .woocommerce-orders-table,
.woocommerce-account table.shop_table {
	width: 100%;
	border: 1px solid var(--border-gray-2, #EDEDED);
	border-radius: 12px;
	overflow: hidden;
	border-collapse: separate;
	border-spacing: 0;
}
.woocommerce-account table.shop_table th { background: var(--bg-light-orange, #F2F0EF); padding: 14px; text-align: start; font-weight: 700; }
.woocommerce-account table.shop_table td { padding: 14px; border-top: 1px solid var(--border-gray-2, #EDEDED); }

/* نماذج تفاصيل الحساب / العناوين */
.woocommerce-account .woocommerce-MyAccount-content form .woocommerce-form-row,
.woocommerce-EditAccountForm p,
.woocommerce-address-fields p {
	margin-bottom: 16px;
}
.woocommerce-account .woocommerce-MyAccount-content label { display: block; font-weight: 600; margin-bottom: 6px; }
.woocommerce-account .woocommerce-MyAccount-content input.input-text,
.woocommerce-account .woocommerce-MyAccount-content select,
.woocommerce-account .woocommerce-MyAccount-content textarea {
	width: 100%;
	padding: 13px 16px;
	border: 1px solid var(--border-gray-2, #EDEDED);
	border-radius: 12px;
	background: #fff;
	font: inherit;
}

/* بطاقات العناوين */
.woocommerce-account .woocommerce-Addresses { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 16px; }
.woocommerce-account .woocommerce-Address { background: var(--bg-light-orange, #F2F0EF); border-radius: 12px; padding: 20px; }

@media (max-width: 768px) {
	.woocommerce-account .entry-content > .woocommerce { flex-direction: column; gap: 20px; }
	.woocommerce-account .yaya-account-side { width: 100%; order: 0; }
	.woocommerce-account .woocommerce-MyAccount-content { order: 1; }
	.woocommerce-account .yaya-account-side { position: static; }
	.woocommerce-account .woocommerce-Addresses { grid-template-columns: 1fr; }
}
