/* ==========================================================================
   Ovalete Design — طبقة التصميم
   كل القواعد تبدأ بـ .ovd (كلاس يُضاف للـ body من الإضافة).
   ========================================================================== */

/* 1. الألوان والمتغيرات ---------------------------------------------------- */

:root {
	--ovd-choco: #4a2317;
	--ovd-choco-deep: #2c140c;
	--ovd-gold: #c6a256;
	--ovd-gold-deep: #a07a2e;
	--ovd-cream: #fbf6ee;
	--ovd-cream-2: #f4eadb;
	--ovd-ink: #2b1a14;
	--ovd-text: #5f4d45;
	--ovd-muted: #8d7b72;
	--ovd-line: #ece2d4;
	--ovd-sale: #c0392b;
	--ovd-radius: 16px;
	--ovd-radius-sm: 12px;
	--ovd-shadow: 0 1px 2px rgba(74, 35, 23, 0.04), 0 10px 24px -14px rgba(74, 35, 23, 0.22);
	--ovd-shadow-hover: 0 2px 4px rgba(74, 35, 23, 0.06), 0 24px 40px -20px rgba(74, 35, 23, 0.38);
	--ovd-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

body.ovd {
	--theme-palette-color-1: var(--ovd-gold-deep);
	--theme-palette-color-2: var(--ovd-choco);
	--theme-palette-color-3: var(--ovd-text);
	--theme-palette-color-4: var(--ovd-ink);
	--theme-palette-color-5: var(--ovd-line);
	--theme-palette-color-6: var(--ovd-cream-2);
	--theme-palette-color-7: var(--ovd-cream);

	--theme-text-color: var(--ovd-text);
	--theme-headings-color: var(--ovd-ink);
	--theme-link-initial-color: var(--ovd-gold-deep);
	--theme-link-hover-color: var(--ovd-choco);
	--theme-border-color: var(--ovd-line);

	--theme-button-background-initial-color: var(--ovd-choco);
	--theme-button-background-hover-color: var(--ovd-gold-deep);
	--theme-button-text-initial-color: #fff;
	--theme-button-text-hover-color: #fff;
	--theme-button-border-radius: 999px;
	--theme-button-font-weight: 700;

	--theme-form-field-border-radius: 12px;
	--theme-form-field-border-initial-color: var(--ovd-line);
	--theme-form-field-border-focus-color: var(--ovd-gold);
	--theme-form-selection-field-active-color: var(--ovd-choco);

	background-color: #fff;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

.ovd ::selection {
	background: var(--ovd-gold);
	color: var(--ovd-choco-deep);
}

.ovd :focus-visible {
	outline: 2px solid var(--ovd-gold);
	outline-offset: 2px;
}

/* 2. الهيدر: في ملف ovalete-store.css */

/* 3. واجهة الصفحة الرئيسية (Hero) ---------------------------------------- */

.ovd .ovd-hero {
	position: relative;
	--padding-top: 0px;
	--padding-bottom: 0px;
	--padding-left: 0px;
	--padding-right: 0px;
	--row-gap: 0px;
	padding: 0;
	gap: 0;
	overflow: hidden;
}

.ovd .ovd-hero__caption {
	position: absolute;
	inset: 0;
	z-index: 30;
	display: flex;
	align-items: center;
	justify-content: flex-start;
	direction: ltr;
	pointer-events: none;
	background: linear-gradient(
		to right,
		rgba(24, 10, 6, 0.9) 0%,
		rgba(24, 10, 6, 0.72) 30%,
		rgba(24, 10, 6, 0.25) 55%,
		rgba(24, 10, 6, 0) 70%
	);
}

.ovd .ovd-hero__inner {
	pointer-events: auto;
	width: min(500px, 42vw);
	margin-left: max(32px, calc((100vw - 1290px) / 2));
	text-align: start;
}

.ovd .ovd-hero__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: var(--ovd-gold);
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	direction: ltr;
}

.ovd .ovd-hero__eyebrow::before {
	content: "";
	width: 28px;
	height: 2px;
	background: var(--ovd-gold);
	border-radius: 2px;
}

.ovd .ovd-hero__title {
	margin: 14px 0 14px;
	color: #fff;
	font-size: clamp(30px, 3.4vw, 50px);
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: 0;
	text-wrap: balance;
}

.ovd .ovd-hero__text {
	margin: 0 0 26px;
	color: rgba(255, 255, 255, 0.84);
	font-size: clamp(15px, 1.2vw, 18px);
	line-height: 1.8;
}

.ovd .ovd-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.ovd .ovd-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 50px;
	padding: 0 30px;
	border-radius: 999px;
	border: 1.5px solid transparent;
	font-size: 16px;
	font-weight: 700;
	line-height: 1;
	text-decoration: none;
	transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.2s var(--ovd-ease);
}

.ovd .ovd-btn:hover {
	transform: translateY(-2px);
}

.ovd .ovd-btn--gold {
	background: var(--ovd-gold);
	color: var(--ovd-choco-deep);
}

.ovd .ovd-btn--gold:hover {
	background: #d9b872;
	color: var(--ovd-choco-deep);
}

.ovd .ovd-btn--ghost {
	border-color: rgba(255, 255, 255, 0.55);
	color: #fff;
}

.ovd .ovd-btn--ghost:hover {
	background: #fff;
	border-color: #fff;
	color: var(--ovd-choco-deep);
}

@media (max-width: 999.98px) {
	.ovd .ovd-hero__caption {
		position: static;
		order: 2;
		direction: inherit;
		background: var(--ovd-choco-deep);
		padding: 30px 20px 34px;
		justify-content: center;
	}

	.ovd .ovd-hero__inner {
		width: 100%;
		max-width: 520px;
		margin: 0 auto;
		text-align: center;
	}

	.ovd .ovd-hero__eyebrow::before {
		display: none;
	}

	.ovd .ovd-hero__title {
		font-size: clamp(24px, 6.4vw, 34px);
		margin: 10px 0 10px;
	}

	.ovd .ovd-hero__text {
		margin-bottom: 20px;
	}

	.ovd .ovd-hero__actions {
		justify-content: center;
	}

	.ovd .ovd-btn {
		min-height: 46px;
		padding: 0 24px;
		font-size: 15px;
	}
}

/* 4. عناوين الأقسام في الصفحة الرئيسية ----------------------------------- */

.ovd.home .elementor-3072 .elementor-widget-heading h4.elementor-heading-title {
	font-size: clamp(24px, 2.5vw, 32px);
	font-weight: 700;
	line-height: 1.35;
	color: var(--ovd-ink);
	letter-spacing: 0;
}

/* السطر الصغير فوق العنوان */
.ovd.home .elementor-element-80ef0a6,
.ovd.home .elementor-element-b993a61 {
	margin-bottom: -6px;
}

.ovd.home .elementor-element-80ef0a6 p,
.ovd.home .elementor-element-b993a61 p {
	margin: 0;
	color: var(--ovd-gold-deep);
	font-size: 15px;
	font-weight: 500;
}

/* «الأقسام» و «الأكثر مبيعا»: عنوان في المنتصف مع خط ذهبي */
.ovd.home .elementor-element-d03ead2 .elementor-widget-heading,
.ovd.home .elementor-element-bd7afe8 .elementor-widget {
	width: 100%;
	text-align: center;
}

.ovd.home .elementor-element-d03ead2 h4.elementor-heading-title::after,
.ovd.home .elementor-element-bd7afe8 h4.elementor-heading-title::after {
	content: "";
	display: block;
	width: 48px;
	height: 3px;
	margin: 12px auto 0;
	background: var(--ovd-gold);
	border-radius: 3px;
}

/* صف «وصلنا حديثا»: العنوان في جهة وزر «عرض الكل» في الجهة المقابلة */
@media (min-width: 768px) {
	.ovd.home .elementor-element-3a220d6 > .e-con-inner {
		align-items: flex-end;
		justify-content: space-between;
	}

	.ovd.home .elementor-element-3a220d6 .elementor-element-8cf707b {
		flex: 1 1 auto;
		width: auto;
	}

	.ovd.home .elementor-element-3a220d6 .elementor-element-0c096a1 {
		flex: 0 0 auto;
		width: auto;
		margin-inline-start: auto;
	}
}

/* بطاقات ماركات القهوة */
.ovd.home .elementor-element-738f84e > .e-con {
	border-radius: var(--ovd-radius);
	overflow: hidden;
	transition: transform 0.3s var(--ovd-ease);
}

.ovd.home .elementor-element-738f84e > .e-con:hover {
	transform: translateY(-5px);
}

/* أزرار Elementor المفرّغة («عرض الكل») */
.ovd.home .elementor-element-afaaba4 .elementor-button {
	border: 1.5px solid var(--ovd-choco);
	border-radius: 999px;
	background: transparent;
	color: var(--ovd-choco);
	fill: var(--ovd-choco);
	padding: 13px 30px;
	font-weight: 700;
	transition: background-color 0.2s, color 0.2s;
}

.ovd.home .elementor-element-afaaba4 .elementor-button:hover {
	background: var(--ovd-choco);
	color: #fff;
}

.ovd.home .elementor-element-f6a1b9a .elementor-button {
	border: 0;
	border-radius: 999px;
	background: var(--ovd-gold);
	color: var(--ovd-choco-deep);
	padding: 14px 32px;
	font-weight: 700;
	transition: background-color 0.2s, transform 0.2s var(--ovd-ease);
}

.ovd.home .elementor-element-f6a1b9a .elementor-button:hover {
	background: #d9b872;
	transform: translateY(-2px);
}

/* 5. نقاط السلايدرات ------------------------------------------------------ */

.ovd .owl-dots .owl-dot.active,
.ovd .swiper-pagination-bullet-active {
	background: var(--ovd-choco) !important;
}

/* 6. بطاقات المنتجات (الشورت كود المخصص في الصفحة الرئيسية) --------------- */

.ovd .custom-products-grid {
	gap: 24px;
}

.ovd .custom-products-grid .product-item {
	align-items: stretch;
	padding: 12px 12px 16px;
	background: #fff;
	border: 1px solid var(--ovd-line);
	border-radius: var(--ovd-radius);
	box-shadow: none;
	overflow: hidden;
	transition: transform 0.3s var(--ovd-ease), box-shadow 0.3s, border-color 0.3s;
}

.ovd .custom-products-grid .product-item:hover {
	transform: translateY(-5px);
	border-color: transparent;
	box-shadow: var(--ovd-shadow-hover);
}

.ovd .custom-products-grid .product-item > a {
	display: block;
	width: 100%;
	padding: 0;
	aspect-ratio: 1 / 1;
	background: #fff;
	border-radius: var(--ovd-radius-sm);
	overflow: hidden;
}

.ovd .custom-products-grid .product-item > a img {
	width: 100%;
	height: 100%;
	margin: 0;
	object-fit: contain;
	transition: transform 0.5s var(--ovd-ease);
}

.ovd .custom-products-grid .product-item:hover > a img {
	transform: scale(1.05);
}

.ovd .custom-products-grid .product-info {
	flex: 1;
	align-items: stretch;
	width: 100%;
	margin-top: 14px;
	text-align: center;
}

.ovd .custom-products-grid .product-title {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	overflow: hidden;
	min-height: 4.65em;
	margin: 0 0 8px;
	font-size: 14.5px;
	font-weight: 700;
	line-height: 1.55;
	color: var(--ovd-ink);
}

.ovd .custom-products-grid .price {
	margin: 0 0 4px;
	font-size: 18px;
	font-weight: 700;
	color: var(--ovd-choco);
}

.ovd .custom-products-grid .price del {
	font-size: 13px;
	font-weight: 500;
	color: var(--ovd-muted);
}

.ovd .custom-products-grid .price ins {
	text-decoration: none;
}

.ovd .custom-products-grid .category,
.ovd .custom-products-grid .category a {
	margin: 0 0 14px;
	padding: 0;
	font-size: 12px;
	font-weight: 500;
	color: var(--ovd-muted);
}

.ovd .custom-products-grid .product-info .button {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 44px;
	margin: auto 0 0;
	padding: 0 14px;
	border-radius: 999px;
	font-size: 14px;
	font-weight: 700;
}

.ovd .sale-badge,
.ovd .onsale,
.ovd [class*="ct-woo-badge-"] {
	background: var(--ovd-sale);
	color: #fff;
	border-radius: 999px;
	padding: 6px 12px;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.2;
}

/* 7. بطاقات المنتجات في صفحات المتجر والتصنيفات --------------------------- */

.ovd [data-products] {
	--grid-columns-gap: 22px;
	--grid-rows-gap: 22px;
	gap: 22px;
}

.ovd [data-products] .product {
	--theme-border-radius: var(--ovd-radius-sm);
	padding: 12px 12px 16px;
	background: #fff;
	border: 1px solid var(--ovd-line);
	border-radius: var(--ovd-radius);
	transition: transform 0.3s var(--ovd-ease), box-shadow 0.3s, border-color 0.3s;
}

.ovd [data-products] .product:hover {
	transform: translateY(-5px);
	border-color: transparent;
	box-shadow: var(--ovd-shadow-hover);
}

.ovd [data-products] .product figure {
	--product-element-spacing: 14px;
}

.ovd [data-products] .product figure .ct-media-container {
	aspect-ratio: 1 / 1;
	background: #fff;
	border-radius: var(--ovd-radius-sm);
}

.ovd [data-products] .product figure .ct-media-container img {
	width: 100%;
	height: 100%;
	aspect-ratio: 1 / 1 !important;
	object-fit: contain;
}

.ovd [data-products] .woocommerce-loop-product__title {
	--theme-font-size: 14.5px;
	--theme-font-weight: 700;
	--theme-line-height: 1.55;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	overflow: hidden;
	min-height: 4.65em;
}

.ovd [data-products] .woocommerce-loop-product__title a {
	--theme-link-initial-color: var(--ovd-ink);
	--theme-link-hover-color: var(--ovd-gold-deep);
}

.ovd [data-products] .product .price {
	--theme-font-size: 18px;
	--theme-font-weight: 700;
	color: var(--ovd-choco);
}

.ovd [data-products] .product .price del {
	font-size: 13px;
	font-weight: 500;
	color: var(--ovd-muted);
}

.ovd [data-products] .product .price ins {
	text-decoration: none;
}

.ovd [data-products] .entry-meta {
	--theme-font-size: 12px;
	--theme-font-weight: 500;
	--theme-text-transform: none;
	--theme-text-color: var(--ovd-muted);
	--theme-link-initial-color: var(--ovd-muted);
	letter-spacing: 0;
}

.ovd [data-products] .product .button {
	width: 100%;
	min-height: 44px;
	margin-top: auto;
	font-size: 14px;
}

.ovd [data-products] .product .ct-woo-card-actions,
.ovd [data-products] .product > .button {
	align-self: stretch;
	width: 100%;
	margin-top: auto;
}

/* قسم التخفيضات الداكن في الصفحة الرئيسية */
.ovd .final-sale-home-cta [data-products] .product {
	background: rgba(255, 255, 255, 0.06);
	border-color: rgba(255, 255, 255, 0.12);
}

.ovd .final-sale-home-cta [data-products] .product:hover {
	background: rgba(255, 255, 255, 0.1);
	border-color: rgba(198, 162, 86, 0.6);
	box-shadow: none;
}

.ovd .final-sale-home-cta [data-products] .woocommerce-loop-product__title a {
	--theme-link-initial-color: #fff;
	--theme-link-hover-color: var(--ovd-gold);
}

.ovd .final-sale-home-cta [data-products] .product .price {
	color: var(--ovd-gold);
}

.ovd .final-sale-home-cta [data-products] .product .price del {
	color: rgba(255, 255, 255, 0.55);
}

.ovd .final-sale-home-cta [data-products] .entry-meta {
	--theme-text-color: rgba(255, 255, 255, 0.6);
	--theme-link-initial-color: rgba(255, 255, 255, 0.6);
	--theme-link-hover-color: #fff;
}

.ovd .final-sale-home-cta [data-products] .product .button {
	--theme-button-background-initial-color: var(--ovd-gold);
	--theme-button-background-hover-color: #d9b872;
	--theme-button-text-initial-color: var(--ovd-choco-deep);
	--theme-button-text-hover-color: var(--ovd-choco-deep);
}

/* أعلى قائمة المنتجات: عدد النتائج والترتيب */
.ovd .woo-listing-top {
	margin-bottom: 26px;
}

.ovd .woocommerce-result-count {
	font-size: 14px;
	color: var(--ovd-muted);
}

.ovd .woocommerce-ordering select {
	border-radius: 999px;
	padding-inline: 18px;
	font-weight: 500;
}

.ovd .woocommerce-pagination .page-numbers,
.ovd .ct-pagination .page-numbers {
	border-radius: 999px;
}

/* 8. سلايدر «الأكثر مبيعا» ------------------------------------------------ */

.ovd .slider-container {
	gap: 18px;
	padding: 8px 4px 18px;
	scrollbar-width: thin;
	scrollbar-color: var(--ovd-gold) transparent;
}

.ovd .slider-container::-webkit-scrollbar {
	height: 5px;
}

.ovd .slider-container::-webkit-scrollbar-track {
	background: var(--ovd-cream-2);
}

.ovd .slider-container::-webkit-scrollbar-thumb {
	background: var(--ovd-gold);
}

.ovd .slider-card {
	width: 208px;
	background: #fff;
	border: 1px solid var(--ovd-line);
	border-radius: var(--ovd-radius);
	box-shadow: none;
	transition: transform 0.3s var(--ovd-ease), box-shadow 0.3s, border-color 0.3s;
}

.ovd .slider-card:hover {
	transform: translateY(-5px);
	border-color: transparent;
	box-shadow: var(--ovd-shadow-hover);
}

.ovd .slider-card .image-wrapper {
	height: 184px;
	padding: 12px;
	background: #fff;
}

.ovd .slider-card .category-image {
	background-size: contain;
	background-repeat: no-repeat;
	transition: transform 0.5s var(--ovd-ease);
}

.ovd .slider-card .category-content {
	padding: 4px 14px 16px;
}

.ovd .slider-card .category-title {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	overflow: hidden;
	min-height: 4.65em;
	margin: 0 0 8px;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.55;
	color: var(--ovd-ink);
}

.ovd .slider-card .product-count {
	font-size: 16px;
	font-weight: 700;
	color: var(--ovd-choco);
}

@media (max-width: 768px) {
	.ovd .slider-card {
		width: 168px;
	}

	.ovd .slider-card .image-wrapper {
		height: 150px;
	}
}

/* 9. رأس صفحات المتجر والتصنيفات ----------------------------------------- */

.ovd .hero-section[data-type="type-2"] {
	--min-height: 230px;
	background-color: var(--ovd-cream);
	background-image: linear-gradient(135deg, var(--ovd-cream-2) 0%, var(--ovd-cream) 60%);
	border-bottom: 1px solid var(--ovd-line);
}

.ovd .hero-section[data-type="type-2"] .page-title {
	--theme-font-size: clamp(28px, 3.8vw, 46px);
	--theme-font-weight: 700;
	--theme-line-height: 1.35;
	--theme-heading-color: var(--ovd-ink);
	text-wrap: balance;
}

.ovd .hero-section[data-type="type-2"] .ct-breadcrumbs {
	--theme-font-size: 13.5px;
	--theme-text-color: var(--ovd-muted);
	--theme-link-initial-color: var(--ovd-gold-deep);
}

/* عند وجود صورة للتصنيف: تعتيم وتمويه حتى يبقى العنوان مقروءاً */
.ovd .hero-section[data-type="type-2"] > figure {
	overflow: hidden;
}

.ovd .hero-section[data-type="type-2"] > figure img {
	filter: blur(4px) saturate(1.1);
	transform: scale(1.08);
}

.ovd .hero-section[data-type="type-2"] > figure::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(180deg, rgba(30, 13, 8, 0.55) 0%, rgba(30, 13, 8, 0.8) 100%);
}

.ovd .hero-section[data-type="type-2"]:has(> figure) {
	border-bottom: 0;
}

.ovd .hero-section[data-type="type-2"]:has(> figure) .page-title {
	--theme-heading-color: #fff;
	color: #fff;
}

.ovd .hero-section[data-type="type-2"]:has(> figure) .ct-breadcrumbs {
	--theme-text-color: rgba(255, 255, 255, 0.85);
	--theme-link-initial-color: var(--ovd-gold);
	--theme-link-hover-color: #fff;
	color: rgba(255, 255, 255, 0.85);
}

/* صفحة «التصنيفات» */
.ovd .category-grid .category-circle {
	border-radius: var(--ovd-radius);
	background-color: var(--ovd-cream-2);
	box-shadow: var(--ovd-shadow);
	transition: transform 0.3s var(--ovd-ease), box-shadow 0.3s;
}

.ovd .category-grid .category-circle:hover {
	transform: translateY(-5px);
	box-shadow: var(--ovd-shadow-hover);
}

.ovd .category-grid .category-name {
	font-size: 15px;
	font-weight: 700;
	line-height: 1.6;
	color: var(--ovd-ink);
}

/* التصنيفات الفرعية */
.ovd .child-categories-header-section {
	background: var(--ovd-cream);
	border-bottom-color: var(--ovd-line);
}

.ovd .child-categories-main-title,
.ovd .child-category-name {
	color: var(--ovd-ink);
}

.ovd .child-categories-main-title::after {
	background: var(--ovd-gold);
}

.ovd .view-all-categories .button {
	background: var(--ovd-choco);
	border-color: var(--ovd-choco);
	border-radius: 999px;
}

.ovd .view-all-categories .button:hover {
	background: transparent;
	color: var(--ovd-choco);
}

/* 10. صفحة المنتج --------------------------------------------------------- */

/* توسيع صفحة المنتج (كانت محصورة في 750px فتظهر الصورة صغيرة) */
body.ovd.single-product {
	--theme-narrow-container-max-width: 1120px;
}

.ovd.single-product .product-entry-wrapper {
	--product-gallery-width: 44%;
}

.ovd.single-product .woocommerce-tabs .woocommerce-Tabs-panel {
	max-width: 860px;
	margin-inline: auto;
}

.ovd.single-product .entry-summary .entry-title {
	--theme-font-size: clamp(22px, 2.3vw, 30px);
	--theme-line-height: 1.5;
}

.ovd.single-product .entry-summary .price {
	--theme-font-size: 28px;
	color: var(--ovd-choco);
}

.ovd.single-product .entry-summary .price del {
	font-size: 17px;
	font-weight: 500;
	color: var(--ovd-muted);
}

.ovd.single-product .entry-summary .price ins {
	text-decoration: none;
}

.ovd.single-product .woocommerce-product-gallery .ct-media-container {
	border-radius: var(--ovd-radius);
	background: #fff;
}

.ovd.single-product .single_add_to_cart_button {
	min-height: 54px;
	font-size: 16px;
}

.ovd.single-product .product_meta {
	font-size: 13.5px;
}

.ovd.single-product .woocommerce-tabs .tabs {
	--theme-font-size: 14px;
	--theme-text-transform: none;
}

.ovd.single-product .woocommerce-tabs .entry-content {
	color: var(--ovd-text);
	font-size: 16px;
	line-height: 1.9;
}

.ovd.single-product .related > h2,
.ovd.single-product .upsells > h2 {
	font-size: 24px;
	font-weight: 700;
}

/* 11. الفوتر -------------------------------------------------------------- */

.ovd .ct-footer {
	background-color: var(--ovd-cream);
	border-top: 3px solid var(--ovd-gold);
}

.ovd .ct-footer [data-row*="top"] > div {
	--container-spacing: 64px;
	--columns-gap: 56px;
	align-items: center;
}

.ovd .ct-footer [data-row*="top"] .wp-block-heading {
	position: relative;
	margin-bottom: 22px;
	padding-bottom: 12px;
	font-size: 20px;
	color: var(--ovd-ink);
}

.ovd .ct-footer [data-row*="top"] .wp-block-heading::after {
	content: "";
	position: absolute;
	bottom: 0;
	inset-inline-start: 0;
	width: 40px;
	height: 3px;
	background: var(--ovd-gold);
	border-radius: 3px;
}

.ovd .ct-footer [data-row*="top"] p {
	margin-bottom: 10px;
	font-size: 15px;
	line-height: 1.8;
	color: var(--ovd-text);
}

.ovd .ct-footer [data-row*="top"] p strong {
	color: var(--ovd-ink);
	font-weight: 700;
}

/* أرقام الهاتف قابلة للضغط للاتصال */
.ovd .ct-footer [data-row*="top"] a[href^="tel:"] {
	display: inline-block;
	direction: ltr;
	color: var(--ovd-choco);
	font-weight: 700;
	white-space: nowrap;
	text-decoration: none;
}

.ovd .ct-footer [data-row*="top"] a[href^="tel:"]:hover {
	color: var(--ovd-gold-deep);
}

/* بطاقة لكل فرع: العنوان ومعه أرقامه */
.ovd .ct-footer .ovd-branch {
	margin-top: 14px;
	padding: 12px 16px;
	background: #fff;
	border: 1px solid var(--ovd-line);
	border-inline-start: 3px solid var(--ovd-gold);
	border-radius: var(--ovd-radius-sm);
}

.ovd .ct-footer .ovd-branch p {
	margin-bottom: 4px;
}

.ovd .ct-footer .ovd-branch p:last-child {
	margin-bottom: 0;
}

.ovd .ct-footer iframe {
	display: block;
	width: 100%;
	height: 300px;
	border: 0;
	border-radius: var(--ovd-radius);
	box-shadow: var(--ovd-shadow);
}

.ovd .ct-footer .widget_media_image img {
	width: 190px !important;
}

.ovd .ct-footer [data-row*="bottom"] {
	background-color: var(--ovd-choco-deep);
}

.ovd .ct-footer [data-row*="bottom"] > div {
	--container-spacing: 20px;
}

.ovd .ct-footer .ct-footer-copyright {
	color: rgba(251, 246, 238, 0.78);
	font-size: 14px;
	--theme-link-initial-color: var(--ovd-gold);
	--theme-link-hover-color: #fff;
}

@media (max-width: 689.98px) {
	.ovd .ct-footer [data-row*="top"] .wp-block-heading::after {
		inset-inline-start: 50%;
		transform: translateX(-50%);
	}

	.rtl.ovd .ct-footer [data-row*="top"] .wp-block-heading::after {
		transform: translateX(50%);
	}
}

/* 12. الجوال --------------------------------------------------------------- */

@media (max-width: 689.98px) {
	.ovd .custom-products-grid,
	.ovd [data-products] {
		gap: 12px;
		--grid-columns-gap: 12px;
		--grid-rows-gap: 12px;
	}

	.ovd .custom-products-grid .product-item,
	.ovd [data-products] .product {
		padding: 8px 8px 12px;
		border-radius: 14px;
	}

	.ovd .custom-products-grid .product-title,
	.ovd [data-products] .woocommerce-loop-product__title {
		--theme-font-size: 13px;
		font-size: 13px;
	}

	.ovd .custom-products-grid .price,
	.ovd [data-products] .product .price {
		--theme-font-size: 16px;
		font-size: 16px;
	}

	.ovd .custom-products-grid .product-info .button,
	.ovd [data-products] .product .button {
		min-height: 40px;
		padding: 0 8px;
		font-size: 13px;
	}

	.ovd .hero-section[data-type="type-2"] {
		--min-height: 170px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ovd *,
	.ovd *::before,
	.ovd *::after {
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
	}
}

/* 13. زر واتساب العائم ------------------------------------------------------ */

.ovd .joinchat {
	--s: 58px;
}

.ovd .joinchat__button {
	background: var(--joinchat-ico) 50% / 56% no-repeat, linear-gradient(145deg, #3be07d 0%, #1faf54 100%);
	border: 2px solid #fff;
	box-shadow: 0 12px 26px -8px rgba(18, 140, 80, 0.6), 0 2px 6px rgba(0, 0, 0, 0.12);
	animation: ovd-wa-float 3.6s ease-in-out infinite, ovd-wa-beat 5s ease-in-out infinite;
}

.ovd .joinchat__button:hover {
	filter: brightness(1.06);
}

/* حلقة نابضة حول الأيقونة */
.ovd .joinchat__button::before {
	content: "";
	position: absolute;
	inset: -2px;
	border: 2px solid #25d366;
	border-radius: 50%;
	pointer-events: none;
	animation: ovd-wa-ring 2.4s cubic-bezier(0.2, 0.6, 0.3, 1) infinite;
}

/* النص بجانب الأيقونة */
.ovd .joinchat__button::after {
	content: "Chat with us on WhatsApp";
	position: absolute;
	top: 50%;
	left: calc(100% + 12px);
	height: 40px;
	padding: 0 16px 0 34px;
	border-radius: 999px;
	background:
		radial-gradient(circle at 18px 50%, #25d366 0 4px, rgba(37, 211, 102, 0.28) 4.5px 7px, transparent 7.5px),
		linear-gradient(110deg, #fff 42%, #dcfbe8 50%, #fff 58%) 120% 0 / 260% 100% no-repeat,
		#fff;
	box-shadow: 0 10px 24px -10px rgba(44, 20, 12, 0.45), 0 0 0 1px var(--ovd-line);
	color: var(--ovd-choco-deep);
	font: 700 14px/40px Tajawal, sans-serif;
	letter-spacing: 0;
	white-space: nowrap;
	direction: ltr;
	transform: translateY(-50%);
	transition: color 0.2s, box-shadow 0.2s;
	animation: ovd-wa-label-in 0.6s var(--ovd-ease) 0.5s both, ovd-wa-shine 4.5s linear 1.6s infinite;
}

.rtl.ovd .joinchat__button::after {
	content: "راسلنا على واتساب";
	padding: 0 34px 0 16px;
	direction: rtl;
	background:
		radial-gradient(circle at calc(100% - 18px) 50%, #25d366 0 4px, rgba(37, 211, 102, 0.28) 4.5px 7px, transparent 7.5px),
		linear-gradient(110deg, #fff 42%, #dcfbe8 50%, #fff 58%) 120% 0 / 260% 100% no-repeat,
		#fff;
}

/* الزر على اليمين (العربية): النص على يساره ويدخل من جهة الأيقونة */
.ovd .joinchat:not(.joinchat--left) .joinchat__button {
	--ovd-wa-dx: 14px;
}

.ovd .joinchat:not(.joinchat--left) .joinchat__button::after {
	left: auto;
	right: calc(100% + 12px);
}

.ovd .joinchat__button:hover::after {
	color: #128c4a;
	box-shadow: 0 12px 26px -10px rgba(18, 140, 80, 0.55), 0 0 0 1px #25d366;
}

@keyframes ovd-wa-float {
	0%,
	100% {
		translate: 0 0;
	}

	50% {
		translate: 0 -5px;
	}
}

@keyframes ovd-wa-beat {
	0%,
	78%,
	100% {
		background-size: 56%, 100%;
	}

	84% {
		background-size: 66%, 100%;
	}

	90% {
		background-size: 52%, 100%;
	}

	95% {
		background-size: 60%, 100%;
	}
}

@keyframes ovd-wa-ring {
	0% {
		transform: scale(1);
		opacity: 0.7;
	}

	75%,
	100% {
		transform: scale(1.75);
		opacity: 0;
	}
}

@keyframes ovd-wa-label-in {
	from {
		opacity: 0;
		transform: translateY(-50%) translateX(var(--ovd-wa-dx, -14px)) scale(0.9);
	}

	to {
		opacity: 1;
		transform: translateY(-50%);
	}
}

@keyframes ovd-wa-shine {
	0%,
	55% {
		background-position: 0 0, 120% 0, 0 0;
	}

	100% {
		background-position: 0 0, -40% 0, 0 0;
	}
}

/* على الجوال: النص يظهر لثوانٍ ثم يختفي حتى لا يغطي المنتجات */
@keyframes ovd-wa-label-peek {
	0% {
		opacity: 0;
		visibility: visible;
		transform: translateY(-50%) translateX(var(--ovd-wa-dx, -14px)) scale(0.9);
	}

	7%,
	90% {
		opacity: 1;
		visibility: visible;
		transform: translateY(-50%);
	}

	100% {
		opacity: 0;
		visibility: hidden;
		transform: translateY(-50%) translateX(var(--ovd-wa-dx, -14px)) scale(0.9);
	}
}

@media (max-width: 689.98px) {
	.ovd .joinchat {
		--s: 54px;
	}

	.ovd .joinchat__button::after {
		height: 36px;
		font-size: 13px;
		line-height: 36px;
		animation: ovd-wa-label-peek 9s var(--ovd-ease) 0.6s both, ovd-wa-shine 4.5s linear 1.6s infinite;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ovd .joinchat__button,
	.ovd .joinchat__button::before,
	.ovd .joinchat__button::after {
		animation: none !important;
	}

	.ovd .joinchat__button::before {
		display: none;
	}
}

/* 13. الأقسام المخصّصة: الهيكل والعناوين ---------------------------------- */

.ovd .ovd-sec {
	/* نفس عرض حاوية القالب (90% من الشاشة بحد أقصى 1290px) */
	--ovd-wrap: min(1290px, 90vw);
	--ovd-gutter: calc((100vw - var(--ovd-wrap)) / 2);
	padding-block: clamp(40px, 4.6vw, 64px);
}

.ovd .ovd-wrap {
	container-type: inline-size;
	width: var(--ovd-wrap);
	margin-inline: auto;
}

.ovd .ovd-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 12px 24px;
	margin-bottom: clamp(20px, 2.2vw, 30px);
}

.ovd .ovd-eyebrow {
	display: block;
	margin-bottom: 2px;
	color: var(--ovd-gold-deep);
	font-size: 15px;
	font-weight: 500;
	line-height: 1.6;
}

.ovd .ovd-title {
	margin: 0;
	color: var(--ovd-ink);
	font-size: clamp(24px, 2.5vw, 32px);
	font-weight: 700;
	line-height: 1.35;
	letter-spacing: 0;
}

.ovd .ovd-head--center {
	justify-content: center;
	text-align: center;
}

.ovd .ovd-head--center .ovd-title::after {
	content: "";
	display: block;
	width: 48px;
	height: 3px;
	margin: 12px auto 0;
	background: var(--ovd-gold);
	border-radius: 3px;
}

.ovd .ovd-head__sub {
	margin: 12px 0 0;
	color: var(--ovd-muted);
	font-size: 15px;
	line-height: 1.6;
}

.ovd .ovd-head__actions {
	display: flex;
	flex-shrink: 0;
	align-items: center;
	gap: 18px;
}

.ovd .ovd-icon {
	flex-shrink: 0;
	width: 18px;
	height: 18px;
}

/* الأسهم مرسومة باتجاه اليمين؛ تُعكس في العربية وفي زر «السابق» */
.rtl.ovd .ovd-icon--arrow,
.rtl.ovd .ovd-rail__btn--next .ovd-icon,
body:not(.rtl).ovd .ovd-rail__btn--prev .ovd-icon {
	transform: scaleX(-1);
}

.ovd .ovd-more {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	color: var(--ovd-choco);
	font-size: 15px;
	font-weight: 700;
	line-height: 1;
	text-decoration: none;
	white-space: nowrap;
	transition: color 0.2s;
}

.ovd .ovd-more__count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 28px;
	height: 22px;
	padding: 2px 8px 0;
	background: var(--ovd-cream-2);
	border-radius: 999px;
	color: var(--ovd-choco);
	font-size: 12.5px;
}

.ovd .ovd-more .ovd-icon {
	transition: translate 0.25s var(--ovd-ease);
}

.ovd .ovd-more:hover {
	color: var(--ovd-gold-deep);
}

.ovd .ovd-more:hover .ovd-icon {
	translate: 4px 0;
}

.rtl.ovd .ovd-more:hover .ovd-icon {
	translate: -4px 0;
}

/* 14. الأقسام: البطاقة، الشريط، الشبكة ------------------------------------ */

.ovd .ovd-cat {
	min-width: 0;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ovd .ovd-cat__link {
	display: flex;
	flex-direction: column;
	align-items: center;
	color: inherit;
	text-align: center;
	text-decoration: none;
	outline: 0;
	-webkit-tap-highlight-color: transparent;
}

.ovd .ovd-cat__media {
	position: relative;
	display: block;
	width: 100%;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	background: var(--ovd-cream-2);
	border-radius: 22px;
	/* حلقة ذهبية تظهر عند المرور */
	box-shadow: 0 0 0 0 #fff, 0 0 0 0 var(--ovd-gold);
	transition: box-shadow 0.3s var(--ovd-ease), transform 0.2s var(--ovd-ease);
}

.ovd .ovd-cat__media::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	box-shadow: inset 0 0 0 1px rgba(74, 35, 23, 0.08);
	pointer-events: none;
}

.ovd .ovd-cat__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.6s var(--ovd-ease);
}

.ovd .ovd-cat__media--empty {
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, var(--ovd-cream) 0%, var(--ovd-cream-2) 100%);
	color: var(--ovd-gold);
}

.ovd .ovd-cat__media--empty .ovd-icon {
	width: 34%;
	height: 34%;
	stroke-width: 1.4;
}

.ovd .ovd-cat__count {
	position: absolute;
	inset-block-end: 8px;
	inset-inline-start: 8px;
	z-index: 1;
	padding: 5px 10px 3px;
	background: rgba(255, 255, 255, 0.94);
	border-radius: 999px;
	color: var(--ovd-choco);
	font-size: 12px;
	font-weight: 700;
	line-height: 1.3;
}

.ovd .ovd-cat__name,
.ovd .ovd-cat__alt {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	overflow: hidden;
	max-width: 100%;
}

.ovd .ovd-cat__name {
	margin-top: 12px;
	color: var(--ovd-ink);
	font-size: 15.5px;
	font-weight: 700;
	line-height: 1.5;
	transition: color 0.2s;
}

.ovd .ovd-cat__alt {
	margin-top: 1px;
	color: var(--ovd-muted);
	font-size: 12px;
	font-weight: 500;
	line-height: 1.45;
}

@media (hover: hover) {
	.ovd .ovd-cat__link:hover .ovd-cat__media {
		box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--ovd-gold);
	}

	.ovd .ovd-cat__link:hover .ovd-cat__media img {
		transform: scale(1.07);
	}

	.ovd .ovd-cat__link:hover .ovd-cat__name {
		color: var(--ovd-gold-deep);
	}
}

.ovd .ovd-cat__link:focus-visible .ovd-cat__media {
	box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--ovd-gold);
}

.ovd .ovd-cat__link:active .ovd-cat__media {
	transform: scale(0.97);
}

/* الشريط الدوّار (مشترك بين الأقسام والماركات): ينساب تلقائياً ويُسحب بالإصبع — الحركة من ovalete-sections.js */
.ovd .ovd-loop {
	/* بدون JavaScript يبقى شريطاً عادياً يُسحب */
	overflow-x: auto;
	overflow-y: hidden;
	scrollbar-width: none;
}

.ovd .ovd-loop::-webkit-scrollbar {
	display: none;
}

.ovd .ovd-loop__track {
	width: max-content;
	margin: 0;
	list-style: none;
}

.ovd .ovd-loop:not(.is-live) [aria-hidden="true"] {
	display: none;
}

.ovd .ovd-loop.is-live {
	overflow: hidden;
	cursor: grab;
	/* السحب الأفقي للشريط، والعمودي يبقى لتمرير الصفحة */
	touch-action: pan-y;
	-webkit-user-select: none;
	user-select: none;
}

.ovd .ovd-loop.is-live .ovd-loop__track {
	will-change: transform;
}

.ovd .ovd-loop.is-dragging {
	cursor: grabbing;
}

.ovd .ovd-loop.is-dragging a {
	pointer-events: none;
}

.ovd .ovd-loop a,
.ovd .ovd-loop img {
	-webkit-user-drag: none;
}

/* شريط الأقسام في الصفحة الرئيسية */
.ovd .ovd-cats {
	--ovd-cols: 8;
	--ovd-gap: 20px;
	--ovd-bleed: 0px;
}

.ovd .ovd-rail__viewport {
	/* حشوة تحفظ الحلقة الذهبية من القص */
	margin: -8px calc(var(--ovd-bleed) * -1) 0;
	padding-block: 8px 10px;
	-webkit-mask-image: linear-gradient(to right, transparent 0, #000 3%, #000 97%, transparent 100%);
	mask-image: linear-gradient(to right, transparent 0, #000 3%, #000 97%, transparent 100%);
}

.ovd .ovd-rail__list {
	display: grid;
	grid-auto-flow: column;
	grid-template-rows: repeat(2, auto);
	grid-auto-columns: 150px;
	grid-auto-columns: calc((100cqw - (var(--ovd-cols) - 1) * var(--ovd-gap)) / var(--ovd-cols));
	gap: 24px var(--ovd-gap);
	/* مسافة بعد آخر عمود حتى تتطابق نهاية الشريط مع بدايته */
	padding: 0;
	padding-inline-end: var(--ovd-gap);
}

.ovd .ovd-rail__list--single {
	grid-template-rows: auto;
}

.ovd .ovd-cat__media--all {
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--ovd-choco);
	color: var(--ovd-gold);
}

.ovd .ovd-cat__media--all .ovd-icon {
	width: 34%;
	height: 34%;
	stroke-width: 1.4;
}

.ovd .ovd-rail__nav {
	display: flex;
	gap: 8px;
}

.ovd .ovd-rail__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	min-height: 0;
	padding: 0;
	background: #fff;
	border: 1.5px solid var(--ovd-line);
	border-radius: 50%;
	color: var(--ovd-choco);
	cursor: pointer;
	transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}

.ovd .ovd-rail__btn:hover {
	background: var(--ovd-choco);
	border-color: var(--ovd-choco);
	color: #fff;
}

.ovd .is-static .ovd-rail__nav {
	display: none;
}

/* شبكة صفحة «التصنيفات» */
.ovd .ovd-catgrid__list {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 34px 24px;
	margin: 0;
	padding: 0;
	list-style: none;
}

@media (max-width: 1199.98px) {
	.ovd .ovd-cats {
		--ovd-cols: 6;
	}

	.ovd .ovd-catgrid__list {
		grid-template-columns: repeat(5, minmax(0, 1fr));
	}
}

@media (max-width: 999.98px) {
	.ovd .ovd-cats {
		--ovd-cols: 4.4;
		--ovd-gap: 16px;
		--ovd-bleed: var(--ovd-gutter);
	}

	.ovd .ovd-rail__viewport {
		-webkit-mask-image: none;
		mask-image: none;
	}

	.ovd .ovd-rail__nav {
		display: none;
	}

	.ovd .ovd-catgrid__list {
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: 28px 18px;
	}
}

@media (max-width: 689.98px) {
	.ovd .ovd-sec {
		--ovd-wrap: 88vw;
	}

	.ovd .ovd-cats {
		--ovd-cols: 3.3;
		--ovd-gap: 12px;
	}

	.ovd .ovd-rail__list {
		row-gap: 18px;
	}

	.ovd .ovd-catgrid__list {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 22px 12px;
	}

	.ovd .ovd-cat__media {
		border-radius: 18px;
	}

	.ovd .ovd-cat__name {
		margin-top: 9px;
		font-size: 14px;
	}

	.ovd .ovd-cat__alt {
		font-size: 11px;
	}

	.ovd .ovd-cat__count {
		inset-block-end: 6px;
		inset-inline-start: 6px;
		padding: 4px 8px 2px;
		font-size: 11px;
	}

	.ovd .ovd-eyebrow,
	.ovd .ovd-more {
		font-size: 14px;
	}
}

/* 15. الماركات ------------------------------------------------------------- */

.ovd .ovd-brands {
	padding-block: clamp(34px, 3.6vw, 48px) clamp(14px, 2vw, 26px);
	background: var(--ovd-cream);
	border-block: 1px solid var(--ovd-line);
}

/* الشريط يلتصق بواجهة الصفحة الرئيسية */
.ovd.home .ovd-hero:has(~ .ovd-brands) {
	--margin-bottom: 0px;
	margin-bottom: 0;
}

.ovd .ovd-marquee {
	-webkit-mask-image: linear-gradient(to right, transparent 0, #000 7%, #000 93%, transparent 100%);
	mask-image: linear-gradient(to right, transparent 0, #000 7%, #000 93%, transparent 100%);
}

.ovd .ovd-marquee__track {
	display: flex;
	/* حشوة تحفظ ظل البطاقة وارتفاعها عند المرور من القص */
	padding: 8px 0 26px;
}

.ovd .ovd-brand {
	flex: none;
	margin: 0;
	padding: 0;
	padding-inline-end: 20px;
	list-style: none;
}

.ovd .ovd-brand__card {
	/* أقصى مساحة يأخذها الشعار نفسه داخل البطاقة */
	--lw: 140px;
	--lh: 76px;
	position: relative;
	display: block;
	width: 204px;
	height: 120px;
	overflow: hidden;
	background: #fff;
	border: 1px solid var(--ovd-line);
	border-radius: 18px;
	box-shadow: var(--ovd-shadow);
	transition: transform 0.3s var(--ovd-ease), box-shadow 0.3s, border-color 0.3s;
}

.ovd .ovd-brand__card img {
	position: absolute;
	top: 50%;
	left: 50%;
	width: min(calc(var(--lw) / var(--fw)), calc(var(--lh) / var(--fh)));
	max-width: none;
	height: auto;
	transform: translate(calc(var(--cx) * -100%), calc(var(--cy) * -100%));
}

@media (hover: hover) {
	.ovd a.ovd-brand__card:hover {
		border-color: var(--ovd-gold);
		box-shadow: var(--ovd-shadow-hover);
		transform: translateY(-4px);
	}
}

.ovd a.ovd-brand__card:focus-visible {
	border-color: var(--ovd-gold);
	box-shadow: var(--ovd-shadow-hover);
}

@media (max-width: 689.98px) {
	.ovd .ovd-marquee {
		margin-inline: calc(var(--ovd-gutter) * -1);
		-webkit-mask-image: none;
		mask-image: none;
	}

	.ovd .ovd-marquee__track {
		padding-bottom: 22px;
	}

	.ovd .ovd-brand {
		padding-inline-end: 12px;
	}

	.ovd .ovd-brand__card {
		--lw: 104px;
		--lh: 56px;
		width: 150px;
		height: 90px;
		border-radius: 16px;
	}
}
