:root {
	--wd-text-font: "Albert Sans", Arial, Helvetica, sans-serif;
	--wd-text-font-weight: 400;
	--wd-text-color: #767676;
	--wd-text-font-size: 16px;
	--wd-title-font: "Albert Sans", Arial, Helvetica, sans-serif;
	--wd-title-font-weight: 700;
	--wd-title-color: #242424;
	--wd-entities-title-font: "Albert Sans", Arial, Helvetica, sans-serif;
	--wd-entities-title-font-weight: 600;
	--wd-entities-title-color: #333333;
	--wd-entities-title-color-hover: rgba(51, 51, 51, 0.65);
	--wd-alternative-font: "Albert Sans", Arial, Helvetica, sans-serif;
	--wd-widget-title-font: "Albert Sans", Arial, Helvetica, sans-serif;
	--wd-widget-title-font-weight: 600;
	--wd-widget-title-transform: capitalize;
	--wd-widget-title-color: #333;
	--wd-widget-title-font-size: 16px;
	--wd-header-el-font: "Albert Sans", Arial, Helvetica, sans-serif;
	--wd-header-el-font-weight: 600;
	--wd-header-el-transform: capitalize;
	--wd-header-el-font-size: 14px;
	--wd-brd-radius: 20px;
	--wd-otl-style: dotted;
	--wd-otl-width: 2px;
	--wd-primary-color: rgb(73,51,209);
	--wd-alternative-color: #fbbc34;
	--btn-default-bgcolor: #f7f7f7;
	--btn-default-bgcolor-hover: #efefef;
	--btn-accented-bgcolor: rgb(73,51,209);
	--btn-accented-bgcolor-hover: rgb(65,46,188);
	--btn-transform: capitalize;
	--wd-form-brd-width: 1px;
	--notices-success-bg: #459647;
	--notices-success-color: #fff;
	--notices-warning-bg: #E0B252;
	--notices-warning-color: #fff;
	--wd-link-color: #333333;
	--wd-link-color-hover: #242424;
	--wd-sticky-btn-height: 95px;
}
.wd-age-verify-wrap {
	--wd-popup-width: 500px;
}
.wd-popup.wd-promo-popup {
	background-color: #111111;
	background-image: none;
	background-repeat: no-repeat;
	background-size: contain;
	background-position: left center;
}
.wd-promo-popup-wrap {
	--wd-popup-width: 800px;
}
:is(.woodmart-woocommerce-layered-nav, .wd-product-category-filter) .wd-scroll-content {
	max-height: 223px;
}
.wd-page-title .wd-page-title-bg img {
	object-fit: cover;
	object-position: center center;
}
.wd-footer {
	background-color: rgb(244,244,244);
	background-image: none;
}
html .wd-nav-mobile > li > a {
	text-transform: capitalize;
}
html .wd-checkout-steps {
	text-transform: capitalize;
}
html table th {
	text-transform: none;
}
html .btn.wd-buy-now-btn {
	background: rgb(36,36,36);
}
html .btn.wd-buy-now-btn:hover {
	background: rgb(51,51,51);
}
body, [class*=color-scheme-light], [class*=color-scheme-dark], .wd-search-form[class*="wd-header-search-form"] form.searchform, .wd-el-search .searchform {
	--wd-form-color: rgb(118,118,118);
	--wd-form-placeholder-color: rgb(119,119,119);
	--wd-form-bg: rgb(255,255,255);
}
.wd-nav-arrows.wd-pos-sep:not(:where(.wd-custom-style)) {
	--wd-arrow-size: 40px;
	--wd-arrow-icon-size: 16px;
	--wd-arrow-offset-h: 15px;
	--wd-arrow-color: rgb(36,36,36);
	--wd-arrow-color-hover: rgb(51,51,51);
	--wd-arrow-color-dis: rgb(36,36,36);
	--wd-arrow-bg: rgb(244,244,244);
	--wd-arrow-bg-hover: rgb(239,239,239);
	--wd-arrow-bg-dis: rgb(244,244,244);
	--wd-arrow-radius: 20px;
}
.wd .product-label.onsale {
	background-color: rgb(36,36,36);
}
.wd .product-label.new {
	background-color: rgb(36,36,36);
}
.wd .product-label.featured {
	background-color: rgb(36,36,36);
}
.wd .product-label.out-of-stock {
	background-color: rgb(36,36,36);
}
.mfp-wrap.wd-popup-quick-view-wrap {
	--wd-popup-width: 920px;
}

@media (max-width: 1024px) {
	:root {
		--wd-sticky-btn-height: 95px;
	}

}

@media (max-width: 768.98px) {
	:root {
		--wd-sticky-btn-height: 42px;
	}

}
:root{
--wd-container-w: 1540px;
--wd-form-brd-radius: 35px;
--btn-default-color: #333;
--btn-default-color-hover: #333;
--btn-accented-color: #fff;
--btn-accented-color-hover: #fff;
--btn-default-brd-radius: 35px;
--btn-default-box-shadow: none;
--btn-default-box-shadow-hover: none;
--btn-accented-brd-radius: 35px;
--btn-accented-box-shadow: none;
--btn-accented-box-shadow-hover: none;
}

@media (min-width: 1540px) {
section.elementor-section.wd-section-stretch > .elementor-container {
margin-left: auto;
margin-right: auto;
}
}


.wd-page-title {
background-color: #0a0a0a;
}

/* ==========================================================
   كاردات المنتجات المطوّرة – قالب Woodmart
   المكان: لوحة التحكم ← Theme Settings ← Custom CSS
   (أو ملف style.css في القالب الفرعي woodmart-child)
   ========================================================== */

/* ملاحظة: التنسيق يُطبَّق على كاردات الشبكة فقط.
   أقسام "المنتجات الصغيرة" وعرض القائمة تبقى على تصميم Woodmart الأصلي. */

/* ---------- 1) الألوان والمقاسات (عدّلها من هنا فقط) ---------- */
body {
  --nc-accent: #6E1F2B;        /* لون الهوية (العنابي) */
  --nc-accent-hover: #561722;
  --nc-ink: #1F1C19;           /* لون النصوص */
  --nc-muted: #7A7169;         /* النصوص الثانوية */
  --nc-soft: #F4EFE8;          /* خلفية الصورة والشارات */
  --nc-line: #ECE5DC;          /* حدود الكارد */
  --nc-save: #23714A;          /* لون "وفّر" */
  --nc-save-bg: #E6F2EA;
  --nc-radius: 18px;
}

/* ---------- 2) الكارد نفسه ---------- */
body .wd-products .wd-product:not(.wd-hover-small):not(.wd-hover-list):not(.product-list-item),
body .products .wd-product:not(.wd-hover-small):not(.wd-hover-list):not(.product-list-item) {
  display: flex;
  flex-direction: column;   /* الكارد يتمدد لارتفاع الصف */
}
body .wd-product:not(.wd-hover-small):not(.wd-hover-list):not(.product-list-item) .product-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  width: 100%;
  height: 100%;
  padding: 10px 10px 14px;
  background: #fff;
  border: 1px solid var(--nc-line);
  border-radius: var(--nc-radius);
  box-shadow: none;
  text-align: start;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
body .wd-product:not(.wd-hover-small):not(.wd-hover-list):not(.product-list-item):hover .product-wrapper {
  transform: translateY(-4px);
  border-color: transparent;
  box-shadow: 0 16px 36px rgba(31, 28, 25, .10);
}
body .wd-product:not(.wd-hover-small):not(.wd-hover-list):not(.product-list-item) .product-element-bottom {
  position: static; /* حتى تتموضع أيقونات العرض السريع فوق الصورة */
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  padding: 0;
  text-align: start;
}

/* ---------- 3) الصورة داخل إطار ---------- */
body .wd-product:not(.wd-hover-small):not(.wd-hover-list):not(.product-list-item) .product-element-top {
  position: relative;
  margin-bottom: 14px;
  overflow: hidden;
  border-radius: 12px;
  background: var(--nc-soft);
}
body .wd-product:not(.wd-hover-small):not(.wd-hover-list):not(.product-list-item) .product-image-link {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;      /* كل الصور بنفس المقاس مهما اختلف حجمها الأصلي */
  overflow: hidden;
}
body .wd-product:not(.wd-hover-small):not(.wd-hover-list):not(.product-list-item) .product-image-link img {
  display: block;
  width: 100%;
  height: 100% !important;
  object-fit: cover;
  transition: transform .7s ease;
}
body .wd-product:not(.wd-hover-small):not(.wd-hover-list):not(.product-list-item):hover .product-image-link img {
  transform: scale(1.05);
}
/* الصورة الثانية (صورة التركيب) تظهر بنعومة عند المرور */
body .wd-product:not(.wd-hover-small):not(.wd-hover-list):not(.product-list-item) .hover-img {
  transition: opacity .45s ease;
}
body .wd-product:not(.wd-hover-small):not(.wd-hover-list):not(.product-list-item) .hover-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* شارة الخصم (فعّل النسبة المئوية من Theme Settings ← Shop ← Product labels) */
body .wd-product:not(.wd-hover-small):not(.wd-hover-list):not(.product-list-item) .product-labels {
  top: 10px;
  inset-inline-start: 10px;
  inset-inline-end: auto;
  z-index: 3;
}
body .wd-product:not(.wd-hover-small):not(.wd-hover-list):not(.product-list-item) .product-label.onsale {
  min-width: 0;
  min-height: 0;
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--nc-accent);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
  display: inline-block;
  direction: ltr; /* حتى تظهر ‎-29%‎ بشكل صحيح */
  unicode-bidi: isolate;
}

/* شارة الخامة والسماكة أسفل الصورة (تأتي من ملف PHP) */
.nc-img-chip {
  position: absolute;
  bottom: 10px;
  inset-inline-start: 10px;
  z-index: 3;
  padding: 5px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .9);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: var(--nc-ink);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.nc-img-chip i {
  font-style: normal;
  color: var(--nc-muted);
}

/* ---------- 4) أزرار العرض السريع والمفضلة: تنتقل فوق الصورة ---------- */
body .wd-product:not(.wd-hover-small):not(.wd-hover-list):not(.product-list-item) .wd-buttons,
body .wd-product:not(.wd-hover-small):not(.wd-hover-list):not(.product-list-item) .wd-bottom-actions .wd-action-btn {
  position: absolute;
  z-index: 4;
  inset-inline-end: 20px;
  inset-inline-start: auto;
  margin: 0;
  background: transparent;
  box-shadow: none;
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity .3s ease, transform .3s ease;
}
body .wd-product:not(.wd-hover-small):not(.wd-hover-list):not(.product-list-item) .wd-buttons {
  top: 10px;
  inset-inline-end: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
body .wd-product:not(.wd-hover-small):not(.wd-hover-list):not(.product-list-item) .wd-bottom-actions .wd-quick-view-icon { top: 20px; }
body .wd-product:not(.wd-hover-small):not(.wd-hover-list):not(.product-list-item) .wd-bottom-actions .wd-wishlist-icon   { top: 66px; }
body .wd-product:not(.wd-hover-small):not(.wd-hover-list):not(.product-list-item) .wd-bottom-actions .wd-compare-icon    { top: 112px; }

body .wd-product:not(.wd-hover-small):not(.wd-hover-list):not(.product-list-item):hover .wd-buttons,
body .wd-product:not(.wd-hover-small):not(.wd-hover-list):not(.product-list-item):hover .wd-bottom-actions .wd-action-btn {
  opacity: 1;
  transform: none;
}
body .wd-product:not(.wd-hover-small):not(.wd-hover-list):not(.product-list-item) .wd-buttons .wd-action-btn > a,
body .wd-product:not(.wd-hover-small):not(.wd-hover-list):not(.product-list-item) .wd-bottom-actions .wd-action-btn > a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: var(--nc-ink);
  box-shadow: 0 3px 10px rgba(31, 28, 25, .14);
  transition: background .2s, color .2s;
}
body .wd-product:not(.wd-hover-small):not(.wd-hover-list):not(.product-list-item) .wd-buttons .wd-action-btn > a:hover,
body .wd-product:not(.wd-hover-small):not(.wd-hover-list):not(.product-list-item) .wd-bottom-actions .wd-action-btn > a:hover {
  background: var(--nc-accent);
  color: #fff;
}

/* ---------- 5) اسم المنتج ---------- */
body .wd-product:not(.wd-hover-small):not(.wd-hover-list):not(.product-list-item) .wd-entities-title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  height: 3em;              /* سطران دائماً، حتى لو كان الاسم قصيراً */
  margin: 0 4px 10px;
  overflow: hidden;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
  text-align: start;
}
body .wd-product:not(.wd-hover-small):not(.wd-hover-list):not(.product-list-item) .wd-entities-title a {
  color: var(--nc-ink);
}
body .wd-product:not(.wd-hover-small):not(.wd-hover-list):not(.product-list-item) .wd-entities-title a:hover {
  color: var(--nc-accent);
}

/* ---------- 6) السعر ---------- */
body .wd-product:not(.wd-hover-small):not(.wd-hover-list):not(.product-list-item) .wrap-price,
body .wd-product:not(.wd-hover-small):not(.wd-hover-list):not(.product-list-item) .price {
  text-align: start;
}
body .wd-product:not(.wd-hover-small):not(.wd-hover-list):not(.product-list-item) .price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 8px;
  margin: 0 4px;
  color: var(--nc-accent);
  font-size: 22px;
  font-weight: 800;
  line-height: 1.3;
}
body .wd-product:not(.wd-hover-small):not(.wd-hover-list):not(.product-list-item) .price ins {
  order: 1;
  text-decoration: none;
  color: var(--nc-accent);
}
body .wd-product:not(.wd-hover-small):not(.wd-hover-list):not(.product-list-item) .price del {
  order: 2;
  color: #A39A91;
  font-size: 14px;
  font-weight: 500;
  opacity: 1;
}
body .wd-product:not(.wd-hover-small):not(.wd-hover-list):not(.product-list-item) .price .woocommerce-price-suffix {
  order: 3;
  flex-basis: 100%;
  color: var(--nc-muted);
  font-size: 11px;
  font-weight: 500;
}

/* سطر "وفّر" وسعر المتر (من ملف PHP) */
.nc-price-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  min-height: 24px;         /* يحجز المكان حتى للمنتج غير المخفّض */
  margin: 8px 4px 0;
  font-size: 12px;
  line-height: 1.4;
}
.nc-save {
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--nc-save-bg);
  color: var(--nc-save);
  font-weight: 700;
}
.nc-unit {
  color: var(--nc-muted);
  font-weight: 500;
}
.nc-save .woocommerce-Price-amount,
.nc-unit .woocommerce-Price-amount {
  font-size: inherit;
  font-weight: inherit;
  color: inherit;
}

/* ---------- 7) شارات المميزات (يباع بالكرتون، التركيب متاح...) ---------- */
.nc-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-content: flex-start;
  min-height: 25px;
  margin: 12px 4px 14px;
}
.nc-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--nc-soft);
  color: #4A433C;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.3;
}
.nc-chip svg {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  color: var(--nc-accent);
}

/* ---------- 8) زر السلة: عرض كامل، يمتلئ عند المرور ---------- */
body .wd-product:not(.wd-hover-small):not(.wd-hover-list):not(.product-list-item) .wd-bottom-actions {
  display: block;
  margin-top: auto;
  padding: 0;
}
body .wd-product:not(.wd-hover-small):not(.wd-hover-list):not(.product-list-item) .wd-add-btn {
  width: 100%;
  margin-top: auto;
  padding: 0;
}
body .wd-product:not(.wd-hover-small):not(.wd-hover-list):not(.product-list-item) .wd-add-btn > a,
body .wd-product:not(.wd-hover-small):not(.wd-hover-list):not(.product-list-item) .wd-add-btn .button {
  --btn-accented-bgcolor: transparent;
  --btn-accented-color: var(--nc-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 46px;
  min-height: 46px;
  padding: 0 16px;
  border: 1.5px solid var(--nc-accent);
  border-radius: 12px;
  background: transparent;
  box-shadow: none;
  color: var(--nc-accent);
  font-size: 14px;
  font-weight: 700;
  text-transform: none;
  transition: background .25s ease, color .25s ease;
}
body .wd-product:not(.wd-hover-small):not(.wd-hover-list):not(.product-list-item) .wd-add-btn > a:hover,
body .wd-product:not(.wd-hover-small):not(.wd-hover-list):not(.product-list-item) .wd-add-btn .button:hover,
body .wd-product:not(.wd-hover-small):not(.wd-hover-list):not(.product-list-item):hover .wd-add-btn > a {
  background: var(--nc-accent);
  color: #fff;
}
body .wd-product:not(.wd-hover-small):not(.wd-hover-list):not(.product-list-item) .wd-add-btn > a:hover {
  background: var(--nc-accent-hover);
}

/* ---------- 9) الجوال ---------- */
@media (max-width: 768px) {
  body .wd-product:not(.wd-hover-small):not(.wd-hover-list):not(.product-list-item) .product-wrapper {
    padding: 7px 7px 10px;
    border-radius: 14px;
  }
  body .wd-product:not(.wd-hover-small):not(.wd-hover-list):not(.product-list-item):hover .product-wrapper {
    transform: none;
  }
  body .wd-product:not(.wd-hover-small):not(.wd-hover-list):not(.product-list-item) .product-element-top {
    margin-bottom: 10px;
    border-radius: 10px;
  }
  /* الأزرار فوق الصورة ظاهرة دائماً على الجوال */
  body .wd-product:not(.wd-hover-small):not(.wd-hover-list):not(.product-list-item) .wd-buttons,
  body .wd-product:not(.wd-hover-small):not(.wd-hover-list):not(.product-list-item) .wd-bottom-actions .wd-action-btn {
    inset-inline-end: 14px;
    opacity: 1;
    transform: none;
  }
  body .wd-product:not(.wd-hover-small):not(.wd-hover-list):not(.product-list-item) .wd-buttons { top: 8px; inset-inline-end: 8px; }
  body .wd-product:not(.wd-hover-small):not(.wd-hover-list):not(.product-list-item) .wd-bottom-actions .wd-quick-view-icon { top: 14px; }
  body .wd-product:not(.wd-hover-small):not(.wd-hover-list):not(.product-list-item) .wd-bottom-actions .wd-wishlist-icon   { top: 54px; }
  body .wd-product:not(.wd-hover-small):not(.wd-hover-list):not(.product-list-item) .wd-bottom-actions .wd-compare-icon    { display: none; }
  body .wd-product:not(.wd-hover-small):not(.wd-hover-list):not(.product-list-item) .wd-buttons .wd-action-btn > a,
  body .wd-product:not(.wd-hover-small):not(.wd-hover-list):not(.product-list-item) .wd-bottom-actions .wd-action-btn > a {
    width: 32px;
    height: 32px;
  }
  .nc-img-chip { font-size: 11px; padding: 4px 8px; }
  body .wd-product:not(.wd-hover-small):not(.wd-hover-list):not(.product-list-item) .wd-entities-title {
    height: 3em;
    margin: 0 2px 6px;
    font-size: 13px;
  }
  body .wd-product:not(.wd-hover-small):not(.wd-hover-list):not(.product-list-item) .price {
    gap: 0 6px;
    margin: 0 2px;
    font-size: 17px;
  }
  body .wd-product:not(.wd-hover-small):not(.wd-hover-list):not(.product-list-item) .price ins,
  body .wd-product:not(.wd-hover-small):not(.wd-hover-list):not(.product-list-item) .price del { white-space: nowrap; }
  body .wd-product:not(.wd-hover-small):not(.wd-hover-list):not(.product-list-item) .price del { font-size: 12px; }
  .nc-price-meta {
    flex-wrap: nowrap;
    gap: 4px;
    min-height: 22px;
    margin: 6px 2px 0;
    overflow: hidden;
    font-size: 11px;
    white-space: nowrap;
  }
  .nc-save { padding: 2px 6px; }
  .nc-unit { overflow: hidden; text-overflow: ellipsis; }
  /* شارتان فقط، كل واحدة في سطر، بارتفاع ثابت */
  .nc-chips {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: flex-start;
    gap: 4px;
    height: 52px;
    min-height: 52px;
    margin: 10px 2px 10px;
    overflow: hidden;
  }
  .nc-chip {
    max-width: 100%;
    padding: 4px 8px;
    font-size: 11px;
    white-space: nowrap;
  }
  .nc-chip:nth-child(n+3) { display: none; }
  body .wd-product:not(.wd-hover-small):not(.wd-hover-list):not(.product-list-item) .wd-add-btn > a,
  body .wd-product:not(.wd-hover-small):not(.wd-hover-list):not(.product-list-item) .wd-add-btn .button {
    height: 40px;
    min-height: 40px;
    font-size: 13px;
    border-radius: 10px;
  }
}

/* ---------- 10) إخفاء الإضافات في المنتجات الصغيرة وعرض القائمة ---------- */
.wd-hover-small .nc-img-chip,
.wd-hover-small .nc-price-meta,
.wd-hover-small .nc-chips,
.wd-hover-list .nc-img-chip,
.wd-hover-list .nc-price-meta,
.wd-hover-list .nc-chips,
.product-list-item .nc-img-chip,
.product-list-item .nc-price-meta,
.product-list-item .nc-chips,
.widget .nc-img-chip,
.widget .nc-price-meta,
.widget .nc-chips {
  display: none !important;
}

/* ---------- 11) السلايدرات (Carousel): بدون تمدد إجباري ---------- */
body .wd-carousel .wd-product,
body .wd-carousel-item .wd-product,
body .owl-carousel .wd-product {
  display: block;
}
body .wd-carousel .wd-product .product-wrapper,
body .wd-carousel-item .wd-product .product-wrapper,
body .owl-carousel .wd-product .product-wrapper {
  height: auto;
}
body .wd-carousel .wd-product .product-element-bottom,
body .wd-carousel-item .wd-product .product-element-bottom,
body .owl-carousel .wd-product .product-element-bottom {
  position: relative;
  flex-grow: 0;
}