/* ==========================================================================
   مدهام — صفحات المتجر والصفحات الداخلية
   الصفحات دي مش موجودة في Figma — مبنية بعناصر التصميم نفسه:
   - حد 1px زيتوني + نصف قطر 24 (بطاقة المنتج 77:636)
   - أزرار زيتوني بنصف قطر 16 (زر "اضافة للسلة")
   - أقراص بيضاء بنصف قطر كامل (عناوين الأقسام الدائرية 77:775)
   - دوائر أرقام زيتوني 48px (الاكسسوارات 103:86)
   - عناوين IBM Plex Bold 48/72، ونصوص line-height 1.5
   ========================================================================== */

/* ── رأس الصفحة + مسار التنقل ─────────────────────────────────────────── */

.mdh-page-head {
	padding: 64px 0 40px;
}

.mdh-breadcrumb ol {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin: 0 0 16px;
	padding: 0;
	list-style: none;
	font-family: var(--mdh-font-cairo);
	font-weight: 500;
	font-size: 16px;
	line-height: 24px;
	color: var(--mdh-olive);
}

.mdh-breadcrumb li {
	display: flex;
	align-items: center;
	gap: 8px;
}

.mdh-breadcrumb li + li::before {
	content: "";
	width: 5.333px;
	height: 9.6px;
	background: var(--mdh-olive);
	opacity: 0.6;
	-webkit-mask: url("../icons/chevron-left.svg") center / contain no-repeat;
	mask: url("../icons/chevron-left.svg") center / contain no-repeat;
}

.mdh-breadcrumb a {
	color: inherit;
	text-decoration: none;
	opacity: 0.7;
}

.mdh-breadcrumb a:hover {
	opacity: 1;
	text-decoration: underline;
}

.mdh-page-head__subtitle {
	max-width: 900px;
	margin: 8px 0 0;
	font-size: 20px;
	line-height: 30px;
	color: var(--mdh-ink);
}

/* ── محتوى الصفحات العامة ─────────────────────────────────────────────── */

.mdh-page__content {
	padding-bottom: 120px;
	font-size: 20px;
	line-height: 1.5;
	color: var(--mdh-ink);
}

.mdh-page__content > .wp-block-post-content > * {
	max-width: 1100px;
}

.mdh-page__content > .wp-block-post-content > .alignwide,
.mdh-page__content > .wp-block-post-content > .alignfull,
.mdh-page--cart .mdh-page__content > .wp-block-post-content > *,
.mdh-page--checkout .mdh-page__content > .wp-block-post-content > *,
.mdh-page__content > .wp-block-post-content > .woocommerce {
	max-width: none;
}

.mdh-page__content h2 { font-size: 32px; line-height: 48px; margin: 48px 0 16px; }
.mdh-page__content h3 { font-size: 24px; line-height: 36px; margin: 32px 0 12px; }
.mdh-page__content p { margin: 0 0 20px; }
.mdh-page__content a:not(.mdh-btn):not(.button):not([class*="wc-block"]) { text-decoration: underline; }

/* ── أقراص (chips) ────────────────────────────────────────────────────── */

.mdh-chip {
	display: inline-flex;
	align-items: center;
	padding: 4px 24px;
	font-size: 20px;
	line-height: 30px;
	color: var(--mdh-olive);
	text-decoration: none;
	white-space: nowrap;
	background: var(--mdh-white);
	border: 1px solid var(--mdh-olive);
	border-radius: 1000px;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.mdh-chip:hover {
	color: var(--mdh-olive);
	text-decoration: none;
	background: #f7f2ec;
}

.mdh-chip.is-active,
.mdh-chip.is-active:hover {
	color: var(--mdh-white);
	background: var(--mdh-olive);
}

/* ── المتجر ───────────────────────────────────────────────────────────── */

.mdh-shop {
	padding-bottom: 120px;
}

.mdh-shop__toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}

.mdh-shop__cats {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.mdh-shop__meta {
	display: flex;
	align-items: center;
	gap: 24px;
	margin-inline-start: auto;
}

.mdh-shop__count {
	margin: 0;
	font-size: 18px;
	color: var(--mdh-ink);
	white-space: nowrap;
}

.mdh-shop .woocommerce-ordering {
	margin: 0;
}

.mdh-shop .woocommerce-ordering select,
.mdh-select {
	height: 44px;
	padding: 0 16px 0 40px;
	font-family: var(--mdh-font-plex);
	font-size: 16px;
	color: var(--mdh-olive);
	background: transparent url("../icons/arrow-down.svg") no-repeat left 14px center / 14px;
	border: 1px solid var(--mdh-olive);
	border-radius: 16px;
	appearance: none;
	cursor: pointer;
}

.mdh-shop__grid {
	margin-top: 42px;
}

.mdh-shop__empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	margin-top: 42px;
	padding: 80px 24px;
	text-align: center;
	border: 1px dashed var(--mdh-olive);
	border-radius: 24px;
}

.mdh-shop__empty-title {
	margin: 0;
	font-weight: 700;
	font-size: 32px;
	line-height: 48px;
	color: var(--mdh-black);
}

.mdh-shop__empty p {
	margin: 0 0 16px;
}

/* ── ترقيم الصفحات: دوائر 48 زي أرقام الاكسسوارات ───────────────────── */

.mdh-pagination,
.wp-block-query-pagination {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px;
	margin-top: 64px;
}

.mdh-pagination .page-numbers,
.wp-block-query-pagination .page-numbers,
.wp-block-query-pagination a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 48px;
	height: 48px;
	padding: 0 12px;
	font-weight: 700;
	font-size: 20px;
	color: var(--mdh-olive);
	text-decoration: none;
	border: 1px solid var(--mdh-olive);
	border-radius: 1000px;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.mdh-pagination .page-numbers.current,
.wp-block-query-pagination .page-numbers.current,
.mdh-pagination a.page-numbers:hover,
.wp-block-query-pagination a:hover {
	color: var(--mdh-white);
	text-decoration: none;
	background: var(--mdh-olive);
}

.mdh-pagination .page-numbers.dots {
	border-color: transparent;
}

/* ── صفحة المنتج ──────────────────────────────────────────────────────── */

.mdh-sp {
	padding-bottom: 120px;
}

.mdh-sp__main {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 80px;
	align-items: start;
}

.mdh-sp__gallery {
	position: sticky;
	top: 128px;
}

.mdh-sp__image {
	padding: 9px 14px;
	border: 1px solid var(--mdh-olive);
	border-radius: 24px;
}

.mdh-sp__image img {
	width: 100%;
	height: auto;
	aspect-ratio: 332.33 / 455.41;
	object-fit: cover;
}

.mdh-sp__thumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 24px;
	margin: 24px 0 0;
	padding: 0;
	list-style: none;
}

.mdh-sp__thumb {
	display: block;
	width: 100px;
	height: 100px;
	padding: 0;
	overflow: hidden;
	border: 2px solid transparent;
	transition: border-color 0.2s ease, opacity 0.2s ease;
	opacity: 0.7;
}

.mdh-sp__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.mdh-sp__thumb:hover,
.mdh-sp__thumb.is-active {
	opacity: 1;
	border-color: var(--mdh-olive);
}

.mdh-sp__summary {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	padding-top: 16px;
}

.mdh-sp__cats {
	margin: 0 0 8px;
	font-family: var(--mdh-font-cairo);
	font-weight: 500;
	font-size: 17px;
	color: var(--mdh-olive);
}

.mdh-sp__cats a {
	color: inherit;
	text-decoration: none;
}

.mdh-sp__title {
	margin: 0;
	font-family: var(--mdh-font-plex);
	font-weight: 700;
	font-size: 48px;
	line-height: 72px;
	color: var(--mdh-black);
}

.mdh-sp__rating {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: 8px;
	font-size: 16px;
	color: var(--mdh-ink);
	text-decoration: none;
}

.mdh-sp__prices {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px 24px;
	margin-top: 24px;
}

.mdh-sp__price,
.mdh-sp__price .amount {
	font-size: 32px;
	line-height: 48px;
	color: var(--mdh-sale);
}

.mdh-sp__price del,
.mdh-sp__price del .amount,
.mdh-sp__price-old {
	font-size: 24px;
	line-height: 36px;
	color: var(--mdh-price-old);
	text-decoration: line-through;
}

.mdh-sp__price ins {
	text-decoration: none;
}

.mdh-sp__badge {
	padding: 2px 14px;
	font-size: 15px;
	line-height: 24px;
	color: var(--mdh-white);
	background: var(--mdh-sale);
	border-radius: 1000px;
}

.mdh-sp__excerpt {
	margin-top: 24px;
	font-size: 20px;
	line-height: 30px;
	color: var(--mdh-ink);
}

.mdh-sp__excerpt p {
	margin: 0 0 12px;
}

.mdh-sp__buy {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 16px;
	width: 100%;
	margin-top: 32px;
	padding-top: 32px;
	border-top: 1px solid rgba(50, 54, 37, 0.2);
}

.mdh-sp__buy form.cart {
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
	gap: 16px;
	flex: 1 1 auto;
	margin: 0;
}

.mdh-sp__buy .stock {
	width: 100%;
	margin: 0;
	font-size: 16px;
}

.mdh-sp__wish {
	flex-basis: 44px;
	width: 44px;
	height: 56px;
	-webkit-mask-size: 40px 40px;
	mask-size: 40px 40px;
}

/* حقل الكمية + زر الإضافة (نفس زر "اضافة للسلة" بس أكبر) */
.quantity .qty,
.mdh-page .quantity input.qty {
	width: 110px;
	height: 56px;
	padding: 0 12px;
	font-family: var(--mdh-font-plex);
	font-size: 20px;
	text-align: center;
	color: var(--mdh-olive);
	background: transparent;
	border: 1px solid var(--mdh-olive);
	border-radius: 16px;
}

.mdh-page .single_add_to_cart_button,
.mdh-page .woocommerce button.button,
.mdh-page .woocommerce a.button,
.mdh-page .woocommerce input.button,
.mdh-page button.button,
.mdh-page a.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 56px;
	padding: 10px 40px;
	font-family: var(--mdh-font-plex);
	font-weight: 500;
	font-size: 20px;
	line-height: 30px;
	color: var(--mdh-white);
	text-decoration: none;
	background: var(--mdh-olive);
	border: 0;
	border-radius: 16px;
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.mdh-page .single_add_to_cart_button {
	flex: 1 1 260px;
}

.mdh-page .single_add_to_cart_button:hover,
.mdh-page .woocommerce button.button:hover,
.mdh-page .woocommerce a.button:hover,
.mdh-page button.button:hover,
.mdh-page a.button:hover {
	color: var(--mdh-white);
	text-decoration: none;
	background: var(--mdh-olive-hover);
}

.mdh-page .single_add_to_cart_button.disabled,
.mdh-page .single_add_to_cart_button:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

/* منتجات متغيّرة */
.mdh-sp .variations {
	width: 100%;
	margin-bottom: 8px;
	border-collapse: collapse;
}

.mdh-sp .variations th,
.mdh-sp .variations td {
	padding: 8px 0;
	text-align: start;
	vertical-align: middle;
}

.mdh-sp .variations select {
	width: 100%;
	height: 48px;
	padding: 0 16px;
	font-family: inherit;
	font-size: 17px;
	color: var(--mdh-olive);
	background: transparent;
	border: 1px solid var(--mdh-olive);
	border-radius: 16px;
}

.mdh-sp .single_variation_wrap {
	width: 100%;
}

.mdh-sp .woocommerce-variation-add-to-cart {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
}

.mdh-sp__meta {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin: 32px 0 0;
	padding: 0;
	list-style: none;
	font-family: var(--mdh-font-cairo);
	font-size: 17px;
	color: var(--mdh-olive);
}

.mdh-sp__meta li > span:first-child {
	font-weight: 700;
}

/* التبويبات: وصف / معلومات إضافية / تقييمات */
.mdh-sp__tabs {
	margin-top: 96px;
}

.mdh-sp__tabs .woocommerce-tabs ul.tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin: 0 0 32px;
	padding: 0;
	list-style: none;
}

.mdh-sp__tabs .woocommerce-tabs ul.tabs li a {
	display: inline-flex;
	padding: 4px 24px;
	font-size: 20px;
	line-height: 30px;
	color: var(--mdh-olive);
	text-decoration: none;
	background: var(--mdh-white);
	border: 1px solid var(--mdh-olive);
	border-radius: 1000px;
}

.mdh-sp__tabs .woocommerce-tabs ul.tabs li.active a {
	color: var(--mdh-white);
	background: var(--mdh-olive);
}

.mdh-sp__tabs .woocommerce-Tabs-panel {
	max-width: 1100px;
	font-size: 20px;
	line-height: 30px;
	color: var(--mdh-ink);
}

.mdh-sp__tabs .woocommerce-Tabs-panel > h2:first-child {
	display: none; /* التبويب نفسه عنوانه */
}

.mdh-sp__tabs .woocommerce-Tabs-panel ul {
	padding-inline-start: 24px;
}

.mdh-sp__tabs table.shop_attributes {
	width: 100%;
	max-width: 720px;
	border-collapse: collapse;
}

.mdh-sp__tabs table.shop_attributes th,
.mdh-sp__tabs table.shop_attributes td {
	padding: 14px 16px;
	text-align: start;
	border-bottom: 1px solid rgba(50, 54, 37, 0.2);
}

.mdh-sp__tabs table.shop_attributes th {
	width: 35%;
	font-weight: 600;
	color: var(--mdh-olive);
}

.mdh-sp__tabs table.shop_attributes p {
	margin: 0;
}

/* التقييمات */
#reviews .woocommerce-Reviews-title {
	margin: 0 0 16px;
	font-size: 24px;
	line-height: 36px;
	color: var(--mdh-black);
}

#reviews .commentlist {
	margin: 0 0 32px;
	padding: 0;
	list-style: none;
}

#reviews .commentlist li {
	margin-bottom: 16px;
	padding: 16px;
	background: var(--mdh-white);
	border-radius: 8px;
}

#reviews .comment_container {
	display: flex;
	gap: 16px;
}

#reviews .comment_container img.avatar {
	width: 50px;
	height: 50px;
	border-radius: 50%;
}

#reviews .star-rating,
.mdh-page .star-rating {
	color: #ffd600;
}

#review_form_wrapper {
	margin-top: 24px;
	padding: 32px;
	border: 1px solid var(--mdh-olive);
	border-radius: 24px;
}

#reviews .comment-reply-title {
	display: block;
	margin-bottom: 16px;
	font-weight: 700;
	font-size: 24px;
}

#reviews p.stars a {
	color: #ffd600;
}

/* حقول النماذج عموماً (التقييمات، حسابي، إلخ) */
.mdh-page input[type="text"],
.mdh-page input[type="email"],
.mdh-page input[type="tel"],
.mdh-page input[type="password"],
.mdh-page input[type="number"],
.mdh-page input[type="search"],
.mdh-page textarea,
.mdh-page select:not(.mdh-select):not([class*="wc-block"]) {
	width: 100%;
	min-height: 48px;
	padding: 10px 16px;
	font-family: var(--mdh-font-plex);
	font-size: 17px;
	color: var(--mdh-olive);
	background: var(--mdh-white);
	border: 1px solid var(--mdh-olive);
	border-radius: 16px;
	outline: none;
}

.mdh-page input:focus,
.mdh-page textarea:focus,
.mdh-page select:focus {
	box-shadow: 0 0 0 3px rgba(50, 54, 37, 0.15);
}

.mdh-page label {
	display: block;
	margin-bottom: 6px;
	font-size: 17px;
	color: var(--mdh-olive);
}

.mdh-page .quantity input.qty {
	width: 110px;
	background: transparent;
}

/* منتجات مشابهة */
.mdh-sp__related {
	padding-top: 120px;
}

.mdh-sp__related .mdh-product-grid {
	margin-top: 42px;
}

/* ── تنبيهات ووكومرس ─────────────────────────────────────────────────── */

.woocommerce-notices-wrapper:empty {
	display: none;
}

.mdh-page .woocommerce-message,
.mdh-page .woocommerce-info,
.mdh-page .woocommerce-error,
.mdh-page .wc-block-components-notice-banner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin: 0 0 32px;
	padding: 16px 24px;
	font-size: 18px;
	line-height: 1.5;
	list-style: none;
	color: var(--mdh-olive);
	background: var(--mdh-white);
	border: 1px solid var(--mdh-olive);
	border-radius: 16px;
}

.mdh-page .woocommerce-error,
.mdh-page .wc-block-components-notice-banner.is-error {
	color: #8c1d18;
	border-color: #d4a19d;
	background: #fff6f5;
}

.mdh-page .woocommerce-message .button,
.mdh-page .woocommerce-info .button {
	order: 2;
	min-height: 44px;
	padding: 8px 24px;
	font-size: 16px;
}

/* ── بلوكات السلة والدفع (ووكومرس) ───────────────────────────────────── */

.mdh-page .wc-block-cart,
.mdh-page .wc-block-checkout {
	font-family: var(--mdh-font-plex);
	color: var(--mdh-ink);
}

.mdh-page .wc-block-components-sidebar {
	padding: 24px;
	background: var(--mdh-white);
	border: 1px solid var(--mdh-olive);
	border-radius: 24px;
}

.mdh-page .wc-block-cart-items {
	border-collapse: separate;
}

.mdh-page .wc-block-cart-items th {
	font-weight: 700;
	color: var(--mdh-olive);
	border-bottom: 1px solid var(--mdh-olive) !important;
}

.mdh-page .wc-block-cart-items td {
	border-top-color: rgba(50, 54, 37, 0.2) !important;
}

.mdh-page .wc-block-cart-item__image img {
	border-radius: 12px;
}

.mdh-page .wc-block-components-product-name {
	font-size: 20px;
	color: var(--mdh-ink);
	text-decoration: none;
}

.mdh-page .wc-block-components-product-price__value.is-discounted,
.mdh-page .wc-block-components-product-price ins {
	color: var(--mdh-sale);
	text-decoration: none;
}

.mdh-page .wc-block-components-product-price del,
.mdh-page .wc-block-components-product-price__regular {
	color: var(--mdh-price-old);
}

.mdh-page .wc-block-components-sale-badge {
	color: var(--mdh-white);
	background: var(--mdh-sale);
	border: 0;
	border-radius: 1000px;
}

.mdh-page .wc-block-components-quantity-selector {
	border: 1px solid var(--mdh-olive) !important;
	border-radius: 16px !important;
}

.mdh-page .wc-block-components-quantity-selector::after {
	display: none;
}

/* حقل الرقم جوه محدد الكمية — من غير إطار (الإطار على الحاوية) */
.mdh-page .wc-block-components-quantity-selector input.wc-block-components-quantity-selector__input {
	width: auto;
	min-height: 0;
	padding: 0;
	color: var(--mdh-olive);
	background: transparent;
	border: 0;
	border-radius: 0;
	box-shadow: none;
}

/* ملخص الطلب في صفحة الدفع: إطار واحد بس (بتاعنا) */
.mdh-page .wp-block-woocommerce-checkout-order-summary-block,
.mdh-page .wc-block-components-checkout-order-summary__content {
	border: 0 !important;
}

.mdh-page .wc-block-components-button:not(.is-link),
.mdh-page .wc-block-cart__submit-button,
.mdh-page .wc-block-components-checkout-place-order-button {
	min-height: 56px;
	font-family: var(--mdh-font-plex);
	font-size: 20px;
	color: var(--mdh-white) !important;
	background: var(--mdh-olive) !important;
	border: 0 !important;
	border-radius: 16px !important;
	box-shadow: none !important;
}

.mdh-page .wc-block-components-button:not(.is-link):hover {
	background: var(--mdh-olive-hover) !important;
}

.mdh-page .wc-block-components-button.is-link {
	color: var(--mdh-olive);
}

.mdh-page .wc-block-components-text-input input,
.mdh-page .wc-block-components-text-input textarea,
.mdh-page .wc-block-components-combobox .wc-block-components-combobox-control input,
.mdh-page .wc-blocks-components-select .wc-blocks-components-select__select,
.mdh-page .wc-block-components-textarea {
	font-family: var(--mdh-font-plex) !important;
	color: var(--mdh-olive) !important;
	background: var(--mdh-white) !important;
	border: 1px solid var(--mdh-olive) !important;
	border-radius: 16px !important;
}

.mdh-page .wc-block-components-text-input.is-active label,
.mdh-page .wc-block-components-text-input label {
	color: var(--mdh-gray-300);
}

.mdh-page .wc-block-components-title,
.mdh-page .wc-block-components-checkout-step__title,
.mdh-page .wc-block-cart__totals-title {
	font-family: var(--mdh-font-plex) !important;
	font-weight: 700 !important;
	color: var(--mdh-black);
}

.mdh-page .wc-block-components-totals-footer-item .wc-block-components-totals-item__value,
.mdh-page .wc-block-components-totals-footer-item .wc-block-components-totals-item__label {
	font-size: 22px;
	font-weight: 700;
	color: var(--mdh-olive);
}

.mdh-page .wc-block-components-radio-control__option,
.mdh-page .wc-block-components-radio-control-accordion-option {
	border-radius: 16px;
}

.mdh-page .wc-block-components-radio-control__input:checked,
.mdh-page .wc-block-components-checkbox__input:checked {
	background: var(--mdh-olive) !important;
	border-color: var(--mdh-olive) !important;
}

/* السلة الفاضية */
.mdh-page .wc-block-cart__empty-cart__title {
	font-family: var(--mdh-font-plex);
	font-size: 32px;
	color: var(--mdh-black);
}

.mdh-page .wp-block-woocommerce-empty-cart-block .wc-block-grid__products {
	display: none; /* بنعرض منتجاتنا بدل شبكة ووكومرس الافتراضية */
}

/* ── حسابي ────────────────────────────────────────────────────────────── */

.mdh-page .woocommerce-MyAccount-navigation ul {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin: 0 0 40px;
	padding: 0;
	list-style: none;
}

.mdh-page .woocommerce-MyAccount-navigation a {
	display: inline-flex;
	padding: 4px 24px;
	font-size: 18px;
	line-height: 30px;
	color: var(--mdh-olive);
	text-decoration: none !important;
	background: var(--mdh-white);
	border: 1px solid var(--mdh-olive);
	border-radius: 1000px;
}

.mdh-page .woocommerce-MyAccount-navigation .is-active a {
	color: var(--mdh-white);
	background: var(--mdh-olive);
}

.mdh-page .woocommerce-MyAccount-content,
.mdh-page .woocommerce-form-login,
.mdh-page .woocommerce-form-register,
.mdh-page .woocommerce-ResetPassword {
	padding: 32px;
	background: var(--mdh-white);
	border-radius: 24px;
}

.mdh-page .u-columns.col2-set {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 32px;
}

.mdh-page .u-columns.col2-set .u-column1,
.mdh-page .u-columns.col2-set .u-column2 {
	width: auto;
	float: none;
}

.mdh-page .woocommerce-form-row {
	margin-bottom: 16px;
}

.mdh-page .woocommerce-form__label-for-checkbox {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.mdh-page .woocommerce-form__label-for-checkbox input {
	width: auto;
	min-height: 0;
}

.mdh-page table.shop_table {
	width: 100%;
	border-collapse: collapse;
	font-size: 17px;
}

.mdh-page table.shop_table th,
.mdh-page table.shop_table td {
	padding: 14px 12px;
	text-align: start;
	border-bottom: 1px solid rgba(50, 54, 37, 0.2);
}

.mdh-page table.shop_table th {
	color: var(--mdh-olive);
}

/* ── 404 ──────────────────────────────────────────────────────────────── */

.mdh-404 {
	padding: 96px 0 160px;
}

.mdh-404__inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
}

.mdh-404__code {
	margin: 0;
	font-weight: 700;
	font-size: 160px;
	line-height: 1;
	color: var(--mdh-olive);
	opacity: 0.15;
}

.mdh-404__text {
	max-width: 640px;
	margin: 16px 0 32px;
	font-size: 20px;
	line-height: 30px;
}

.mdh-404__search {
	width: min(560px, 100%);
	margin-bottom: 32px;
}

.mdh-404__search form {
	display: flex;
	gap: 12px;
}

.mdh-404__search input[type="search"] {
	flex: 1;
}

.mdh-404__search button {
	min-height: 48px;
	padding: 0 24px;
	color: var(--mdh-white);
	background: var(--mdh-olive);
	border-radius: 16px;
}

.mdh-404__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 24px;
}

/* ── المشاريع: الأرشيف + صفحة المشروع ────────────────────────────────── */

.mdh-project-archive {
	padding-bottom: 120px;
}

.mdh-project-archive__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
}

/* :nth-child(n) عشان نلغي ترتيب "معرض المشاريع" بتاع الرئيسية (الكارت الأول الكبير) */
.mdh-project-archive__grid .mdh-projects__card:nth-child(n) {
	grid-column: auto;
	grid-row: auto;
	aspect-ratio: 490 / 342.5;
}

.mdh-project__image img {
	width: 100%;
	max-height: 760px;
	object-fit: cover;
}

.mdh-project__lead {
	margin: 32px 0 24px;
	font-size: 24px;
	line-height: 36px;
	color: var(--mdh-olive);
}

/* ── المدونة: قايمة المقالات ──────────────────────────────────────────── */

.mdh-blog {
	padding-bottom: 120px;
}

.mdh-blog__cats {
	margin-bottom: 42px;
}

.mdh-blog__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 48px 32px;
}

/* بطاقة مقال — نفس بطاقة المنتج: حد 1px زيتوني + نصف قطر 24 */
.mdh-post-card {
	display: flex;
	flex-direction: column;
	gap: 16px;
	min-width: 0;
	padding: 9px 14px 24px;
	border: 1px solid var(--mdh-olive);
	border-radius: 24px;
}

.mdh-post-card__media {
	display: block;
	aspect-ratio: 490 / 342.5;
	overflow: hidden;
	background: var(--mdh-olive);
}

.mdh-post-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s ease;
}

.mdh-post-card:hover .mdh-post-card__media img {
	transform: scale(1.04);
}

.mdh-post-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	align-items: flex-start;
	gap: 10px;
	padding-inline: 6px;
}

.mdh-post-card__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 16px;
	font-family: var(--mdh-font-cairo);
	font-size: 15px;
	color: var(--mdh-olive);
}

.mdh-post-card__cat {
	font-weight: 700;
	color: inherit;
	text-decoration: none;
}

.mdh-post-card__title {
	margin: 0;
	font-family: var(--mdh-font-plex);
	font-weight: 700;
	font-size: 24px;
	line-height: 36px;
}

.mdh-post-card__title a {
	color: var(--mdh-black);
	text-decoration: none;
}

.mdh-post-card__title a:hover {
	color: var(--mdh-olive);
}

.mdh-post-card__excerpt {
	margin: 0;
	font-size: 18px;
	line-height: 28px;
	color: var(--mdh-ink);
}

.mdh-post-card__more {
	margin-top: auto;
	padding-top: 8px;
	font-size: 18px;
	line-height: 27px;
}

.mdh-chip--sm {
	padding: 2px 16px;
	font-size: 16px;
	line-height: 24px;
}

/* ── المدونة: صفحة المقال ─────────────────────────────────────────────── */

.mdh-post {
	padding-bottom: 96px;
}

.mdh-post__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 20px;
	margin-bottom: 32px;
	font-family: var(--mdh-font-cairo);
	font-size: 16px;
	color: var(--mdh-olive);
}

.mdh-post__image {
	margin: 0 0 48px;
}

.mdh-post__image img {
	width: 100%;
	max-height: 640px;
	object-fit: cover;
}

/* عرض مريح للقراية (~70 حرف في السطر) */
.mdh-post__content {
	max-width: 900px;
	font-size: 20px;
	line-height: 1.8;
	color: var(--mdh-ink);
}

.mdh-post__content > * {
	margin-block: 0 24px;
}

.mdh-post__content h2 {
	margin-top: 48px;
	font-size: 32px;
	line-height: 48px;
	color: var(--mdh-black);
}

.mdh-post__content h3 {
	margin-top: 32px;
	font-size: 24px;
	line-height: 36px;
	color: var(--mdh-black);
}

.mdh-post__content ul,
.mdh-post__content ol {
	padding-inline-start: 28px;
}

.mdh-post__content li + li {
	margin-top: 8px;
}

.mdh-post__content a {
	color: var(--mdh-olive);
	text-decoration: underline;
}

.mdh-post__content blockquote {
	padding: 16px 24px;
	font-size: 22px;
	color: var(--mdh-olive);
	background: var(--mdh-white);
	border-inline-start: 3px solid var(--mdh-olive);
	border-radius: 8px;
}

.mdh-post__content blockquote p:last-child {
	margin-bottom: 0;
}

.mdh-post__content img {
	border-radius: 16px;
}

.mdh-post__content figcaption {
	margin-top: 8px;
	font-size: 16px;
	color: var(--mdh-olive);
	opacity: 0.8;
}

.mdh-post__tags {
	max-width: 900px;
	margin-top: 40px;
	padding-top: 24px;
	font-family: var(--mdh-font-cairo);
	font-size: 16px;
	color: var(--mdh-olive);
	border-top: 1px solid rgba(50, 54, 37, 0.2);
}

.mdh-post__tags a {
	color: inherit;
}

.mdh-related-posts {
	padding: 96px 0 120px;
	border-top: 1px solid rgba(50, 54, 37, 0.15);
}

.mdh-related-posts .mdh-blog__grid {
	margin-top: 42px;
}

/* ── الشاشات الأصغر ───────────────────────────────────────────────────── */

@media (max-width: 1100px) {
	.mdh-sp__main {
		grid-template-columns: 1fr;
		gap: 40px;
	}

	.mdh-sp__gallery {
		position: static;
	}

	.mdh-sp__title {
		font-size: 36px;
		line-height: 54px;
	}
}

@media (max-width: 768px) {
	.mdh-page-head {
		padding: 40px 0 24px;
	}

	.mdh-page__content,
	.mdh-shop,
	.mdh-sp {
		padding-bottom: 80px;
	}

	.mdh-shop__toolbar {
		flex-direction: column;
		/* nowrap ضروري: مع wrap السطر بياخد عرض أعرض عنصر بدل عرض الحاوية */
		flex-wrap: nowrap;
		align-items: stretch;
	}

	.mdh-shop__cats {
		flex-wrap: nowrap;
		overflow-x: auto;
		padding-bottom: 6px;
		scrollbar-width: none;
	}

	.mdh-shop__meta {
		justify-content: space-between;
		margin-inline-start: 0;
	}

	.mdh-chip {
		padding: 4px 18px;
		font-size: 17px;
	}

	.mdh-sp__title {
		font-size: 28px;
		line-height: 42px;
	}

	.mdh-sp__price,
	.mdh-sp__price .amount {
		font-size: 26px;
	}

	.mdh-sp__thumbs {
		gap: 12px;
	}

	/* الكمية + زر السلة في سطر واحد (المنتجات البسيطة — المتغيّرة فيها جدول اختيارات بعرض كامل) */
	.mdh-sp__buy form.cart:not(.variations_form) {
		flex-wrap: nowrap;
		gap: 10px;
	}

	.mdh-page .quantity input.qty {
		width: 76px;
	}

	.mdh-page .single_add_to_cart_button {
		flex: 1 1 0;
		min-width: 0;
		padding-inline: 16px;
		font-size: 18px;
	}

	.mdh-sp__thumb {
		width: 72px;
		height: 72px;
	}

	.mdh-sp__tabs {
		margin-top: 56px;
	}

	.mdh-sp__related {
		padding-top: 80px;
	}

	.mdh-page .u-columns.col2-set {
		grid-template-columns: 1fr;
	}

	.mdh-page .woocommerce-MyAccount-content,
	.mdh-page .woocommerce-form-login,
	.mdh-page .woocommerce-form-register {
		padding: 20px;
	}

	.mdh-404__code {
		font-size: 110px;
	}

	.mdh-project-archive__grid,
	.mdh-blog__grid {
		grid-template-columns: 1fr;
		gap: 32px;
	}

	.mdh-blog__cats {
		margin-bottom: 28px;
	}

	.mdh-post__content {
		font-size: 18px;
	}

	.mdh-post__content h2 {
		font-size: 26px;
		line-height: 39px;
	}

	.mdh-post__image {
		margin-bottom: 28px;
	}

	.mdh-related-posts {
		padding: 64px 0 80px;
	}
}

@media (min-width: 769px) and (max-width: 1100px) {
	.mdh-project-archive__grid,
	.mdh-blog__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}
