/* =========================================================
   KASEB SINGLE PRODUCT — MOBILE FIRST
   Presentation only
   ========================================================= */

body.single-product {
	direction: rtl;
}


/* =========================================================
   PAGE WIDTH
   ========================================================= */

body.single-product .site-main,
body.single-product .entry-content,
body.single-product div.product {
	max-width: 760px;
	margin-left: auto;
	margin-right: auto;
}


/* =========================================================
   PRODUCT TITLE
   ========================================================= */

body.single-product .product_title {
	margin: 14px 0 10px !important;
	text-align: right !important;
	color: #4b2414 !important;
	font-size: 28px !important;
	font-weight: 900 !important;
	line-height: 1.4 !important;
}


/* =========================================================
   PRODUCT SUMMARY
   ========================================================= */

body.single-product div.product .summary {
	float: none !important;
	width: 100% !important;
	margin: 0 !important;
}


/* =========================================================
   IMAGE
   ========================================================= */

body.single-product div.product div.images {
	float: none !important;
	width: 100% !important;
	max-width: 420px !important;

	margin: 0 auto 16px !important;
}

body.single-product div.product div.images img {
	display: block;
	width: 100% !important;
	height: auto !important;

	border-radius: 18px;
	object-fit: cover;
}


/* =========================================================
   VARIATIONS — PRIORITY
   ========================================================= */

body.single-product form.variations_form {
	margin-top: 8px !important;
}

body.single-product table.variations {
	width: 100% !important;
	margin: 0 0 12px !important;

	border: 0 !important;
	background: transparent !important;
}

body.single-product table.variations tbody,
body.single-product table.variations tr {
	display: block !important;
	width: 100% !important;
}

body.single-product table.variations tr {
	margin-bottom: 10px !important;
}

body.single-product table.variations th,
body.single-product table.variations td {
	display: block !important;
	width: 100% !important;

	padding: 0 !important;
	border: 0 !important;
	background: transparent !important;

	text-align: right !important;
}

body.single-product table.variations th.label {
	margin-bottom: 6px !important;

	color: #4b2414 !important;
	font-size: 15px !important;
	font-weight: 800 !important;
}

body.single-product table.variations select {
	width: 100% !important;
	min-height: 52px !important;

	padding: 10px 14px !important;

	border: 1px solid #d9c4b5 !important;
	border-radius: 14px !important;

	background: #fffaf6 !important;
	color: #4b2414 !important;

	font-size: 16px !important;
	font-weight: 700 !important;

	text-align: right !important;
	direction: rtl !important;
}


/* =========================================================
   VARIATION PRICE
   ========================================================= */

body.single-product .single_variation_wrap {
	margin-top: 8px !important;
}

body.single-product .woocommerce-variation-price {
	margin: 6px 0 10px !important;

	text-align: right !important;
}

body.single-product .woocommerce-variation-price .price {
	color: #9b6410 !important;
	font-size: 22px !important;
	font-weight: 900 !important;
}


/* =========================================================
   ADD TO CART
   ========================================================= */

body.single-product .woocommerce-variation-add-to-cart,
body.single-product form.cart {
	width: 100% !important;
}

body.single-product form.cart {
	margin-bottom: 0 !important;
}

body.single-product .single_add_to_cart_button {
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;

	width: 100% !important;
	min-height: 56px !important;

	margin: 10px 0 0 !important;
	padding: 14px 18px !important;

	border: 0 !important;
	border-radius: 16px !important;

	background: #66351f !important;
	color: #fff !important;

	font-size: 19px !important;
	font-weight: 900 !important;

	text-decoration: none !important;

	box-shadow:
		0 8px 20px rgba(102, 53, 31, .18);
}

body.single-product .single_add_to_cart_button:hover {
	background: #532816 !important;
}


/* =========================================================
   QUANTITY
   ========================================================= */

body.single-product form.cart .quantity {
	display: inline-flex !important;
	align-items: center !important;

	margin: 8px 0 !important;
}

body.single-product form.cart .quantity .qty {
	width: 64px !important;
	min-height: 46px !important;

	border: 1px solid #dbc8ba !important;
	border-radius: 12px !important;

	background: #fffaf6 !important;
	color: #4b2414 !important;

	font-size: 17px !important;
	font-weight: 800 !important;

	text-align: center !important;
}


/* =========================================================
   RETURN TO SHOP
   ========================================================= */

body.single-product .kaseb-return-to-shop {
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;

	width: 100% !important;
	min-height: 52px !important;

	margin: 10px 0 0 !important;
	padding: 13px 18px !important;

	border: 1px solid #c9ab97 !important;
	border-radius: 15px !important;

	background: #fff !important;
	color: #66351f !important;

	font-size: 17px !important;
	font-weight: 800 !important;

	text-decoration: none !important;
}

body.single-product .kaseb-return-to-shop:hover {
	background: #f8f2ec !important;
	border-color: #66351f !important;
	color: #66351f !important;
}


/* =========================================================
   PRODUCT META
   ========================================================= */

body.single-product .product_meta {
	margin-top: 14px !important;

	color: #80675a !important;
	font-size: 13px !important;
	line-height: 1.6 !important;
}


/* =========================================================
   PRODUCT TABS / DESCRIPTION
   ========================================================= */

body.single-product .woocommerce-tabs {
	clear: both !important;

	margin-top: 24px !important;
	padding-top: 0 !important;
}

body.single-product .woocommerce-tabs ul.tabs {
	margin-bottom: 12px !important;
}

body.single-product .woocommerce-Tabs-panel {
	padding: 0 !important;
	margin: 0 !important;

	color: #5f4a3f !important;
	font-size: 15px !important;
	line-height: 1.8 !important;
}


/* =========================================================
   REVIEWS — EXTRA SAFETY
   ========================================================= */

body.single-product #reviews,
body.single-product .woocommerce-Reviews,
body.single-product li.reviews_tab {
	display: none !important;
}


/* =========================================================
   RELATED PRODUCTS — KEEP CLEAN
   ========================================================= */

body.single-product .related.products {
	margin-top: 28px !important;
}

body.single-product .related.products > h2 {
	color: #4b2414 !important;
	font-size: 22px !important;
	font-weight: 900 !important;
	text-align: right !important;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 600px) {

	body.single-product .site-main,
	body.single-product .entry-content,
	body.single-product div.product {
		padding-left: 12px !important;
		padding-right: 12px !important;
	}

	body.single-product .product_title {
		margin-top: 10px !important;

		font-size: 22px !important;
		line-height: 1.4 !important;
	}

	body.single-product div.product div.images {
		max-width: 270px !important;
		margin-bottom: 12px !important;
	}

	body.single-product div.product div.images img {
		border-radius: 16px !important;
	}

	body.single-product table.variations select {
		min-height: 50px !important;
		font-size: 15px !important;
	}

	body.single-product .woocommerce-variation-price .price {
		font-size: 21px !important;
	}

	body.single-product .single_add_to_cart_button {
		min-height: 54px !important;
		font-size: 18px !important;
	}

	body.single-product .kaseb-return-to-shop {
		min-height: 50px !important;
		font-size: 16px !important;
	}

	body.single-product .woocommerce-tabs {
		margin-top: 20px !important;
	}
}

body.single-product .summary .single-product-category {
	display: none !important;
}

body.single-product .summary > h1.product_title.entry-title + .single-product-category + h1.product_title.entry-title {
	display: none !important;
}

/* =========================================================
   KASEB SINGLE PRODUCT — PURCHASE FLOW ORDER
   ========================================================= */

body.single-product div.product .summary {
	display: flex !important;
	flex-direction: column !important;
}

/* اسم المنتج */
body.single-product .summary > .product_title {
	order: 10;
}

/* أي سعر أساسي */
body.single-product .summary > .price {
	order: 20;
}

/* اختيار الحجم + السعر بعد الاختيار + أضف إلى السلة */
body.single-product .summary > form.variations_form {
	order: 30;
}

/* الوصف ييجي بعد عملية الاختيار والشراء */
body.single-product .summary > .woocommerce-product-details__short-description {
	order: 40;
}

/* بيانات إضافية إن وجدت */
body.single-product .summary > .product_meta {
	order: 50;
}

/* Return to shop after Add to Cart */
body.single-product .summary > .kaseb-return-to-shop {
	order: 35 !important;
}
/* Center variation price */
body.single-product .woocommerce-variation-price {
	text-align: center !important;
}

body.single-product .woocommerce-variation-price .price {
	display: block !important;
	text-align: center !important;
}

/* Center quantity counter */
body.single-product .woocommerce-variation-add-to-cart {
	text-align: center !important;
}

body.single-product form.cart .quantity {
	display: flex !important;
	width: fit-content !important;
	margin: 10px auto !important;
	float: none !important;
}
/* Center quantity controls */
body.single-product .woocommerce-variation-add-to-cart,
body.single-product .woocommerce-variation-add-to-cart-enabled {
	display: flex !important;
	flex-direction: column !important;
	align-items: center !important;
}

body.single-product .woocommerce-variation-add-to-cart .quantity,
body.single-product .woocommerce-variation-add-to-cart-enabled .quantity {
	float: none !important;
	display: inline-flex !important;
	width: auto !important;
	margin: 10px auto !important;
	justify-content: center !important;
	align-items: center !important;
}

/* =========================================================
   KASEB SINGLE PRODUCT — SIMPLE / BUNDLE PURCHASE UI
   ========================================================= */

/* السعر الثابت للمنتجات غير المتغيرة */
body.single-product .summary > .price {
	display: block !important;
	width: 100% !important;
	margin: 8px 0 10px !important;

	text-align: center !important;

	color: #9b6410 !important;
	font-size: 22px !important;
	font-weight: 900 !important;
}


/* عداد المنتجات Simple / Plates / Bundles */
body.single-product .summary > form.cart:not(.variations_form) {
	display: flex !important;
	flex-direction: column !important;
	align-items: center !important;

	width: 100% !important;
}


body.single-product .summary > form.cart:not(.variations_form) .quantity {
	float: none !important;

	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;

	width: auto !important;
	margin: 10px auto !important;
}


/* زر الإضافة يفضل بعرض الصفحة */
body.single-product .summary > form.cart:not(.variations_form) .single_add_to_cart_button {
	width: 100% !important;
}

/* =========================================================
   KASEB — RETURN TO SHOP ALWAYS AFTER CART FORM
   ========================================================= */

body.single-product .summary {
	display: flex !important;
	flex-direction: column !important;
}

/* كل أنواع فورم الشراء */
body.single-product .summary > form.cart {
	order: 30 !important;
}

/* زر العودة يأتي بعد فورم الشراء مباشرة */
body.single-product .summary > .kaseb-return-to-shop {
	order: 31 !important;
	margin-top: 10px !important;
}

/* الوصف بعده */
body.single-product .summary > .woocommerce-product-details__short-description {
	order: 40 !important;
}

/* البيانات الإضافية بعد الوصف */
body.single-product .summary > .product_meta {
	order: 50 !important;
}

/* =========================================================
   KASEB SINGLE PRODUCT — SAFE MOBILE TITLES
   ========================================================= */

body.single-product .summary,
body.single-product .product_title,
body.single-product .kaseb-title-ar,
body.single-product .kaseb-title-en {
	max-width: 100% !important;
	box-sizing: border-box !important;
}

/* العنوان بالكامل */
body.single-product .product_title {
	width: 100% !important;
	margin-left: auto !important;
	margin-right: auto !important;
	padding-left: 14px !important;
	padding-right: 14px !important;

	white-space: normal !important;
	overflow: visible !important;
	overflow-wrap: anywhere !important;
	word-break: normal !important;

	text-align: center !important;
}

/* العربي */
body.single-product .product_title .kaseb-title-ar {
	display: block !important;
	width: 100% !important;

	font-size: clamp(32px, 8vw, 48px) !important;
	line-height: 1.35 !important;

	white-space: normal !important;
	overflow-wrap: anywhere !important;
}

/* الإنجليزي */
body.single-product .product_title .kaseb-title-en {
	display: block !important;
	width: 100% !important;
	margin-top: 8px !important;

	font-size: clamp(18px, 5vw, 27px) !important;
	line-height: 1.35 !important;

	white-space: normal !important;
	overflow-wrap: anywhere !important;
	word-break: normal !important;
}

/* الموبايل */
@media (max-width: 600px) {

	body.single-product .product_title {
		padding-left: 16px !important;
		padding-right: 16px !important;
	}

	body.single-product .product_title .kaseb-title-ar {
		font-size: 34px !important;
	}

	body.single-product .product_title .kaseb-title-en {
		font-size: 20px !important;
	}
}

/* =========================================================
   KASEB PRODUCT TITLES — MOBILE FINAL FIX
   ========================================================= */

@media (max-width: 768px) {

	.woocommerce ul.products li.product
	.woocommerce-loop-product__title {
		width: 100% !important;
		max-width: 100% !important;
		margin: 0 0 12px !important;
		padding: 0 14px !important;
		box-sizing: border-box !important;

		text-align: center !important;
		white-space: normal !important;
		overflow: visible !important;
	}

	.woocommerce ul.products li.product
	.kaseb-title-ar {
		display: block !important;
		width: 100% !important;
		max-width: 100% !important;

		margin: 0 0 6px !important;
		padding: 0 !important;
		box-sizing: border-box !important;

		font-size: 27px !important;
		line-height: 1.35 !important;
		font-weight: 800 !important;

		text-align: center !important;
		direction: rtl !important;

		white-space: normal !important;
		overflow-wrap: break-word !important;
		word-break: normal !important;
	}

	.woocommerce ul.products li.product
	.kaseb-title-en {
		display: block !important;
		width: 100% !important;
		max-width: 100% !important;

		margin: 0 !important;
		padding: 0 !important;
		box-sizing: border-box !important;

		font-size: 17px !important;
		line-height: 1.35 !important;
		font-weight: 700 !important;

		text-align: center !important;
		direction: ltr !important;

		white-space: normal !important;
		overflow-wrap: break-word !important;
		word-break: normal !important;
	}
}