/*
Theme Name:     Woodmart Child
Theme URI:      https://staging.eshtrakati.com/
Description:    Child theme for Woodmart
Author:         Abdulhadi
Author URI:     https://staging.eshtrakati.com/
Template:       woodmart
Version:        1.0.0
*/

@import url("../woodmart/style.css");
@import url('https://cdn.salla.network/fonts/pingarlt.css?v=2.0');

/* Place your custom styles below */


/*phone_field in checkout page*/
.custom-phone-field {
        display: flex;
        align-items: center;
        gap: 10px;
        position: relative;
        max-width: 100%;
        flex-wrap: wrap;
        flex-direction: row-reverse;
        justify-content: flex-end;
    }

.custom-phone-field .selected {
        display: flex;
        align-items: center;
        border: 1px solid #ccc;
        padding: 7px 10px;
        border-radius: 4px;
        cursor: pointer;
        min-width: 100px;
        background-color: #fff;
        margin-left: 0px;
        gap: 6px;
        flex-direction: row-reverse;
    }

.custom-phone-field .flag-icon img {
        width: 24px;
        height: 18px;
        border-radius: 5px;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
        display: block;
    }

.custom-phone-field .dial-code {
        /*font-weight: bold;*/
        /*font-size: 16px;*/
        /*color: #3a3a3a;*/
        margin: 0 2px;
    }

.custom-phone-field .arrow {
        display: flex;
        align-items: center;
        margin-left: 2px;
    }

.custom-phone-field .dropdown-list {
        display: none;
        position: absolute;
        top: 100%;
        right: 0;
        left: unset;
        z-index: 99;
        background-color: white;
        border: 1px solid #e0e0e0;
        max-height: 200px;
        overflow-y: auto;
        width: 100%;
        border-radius: 8px;
        margin-top: 5px;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
    }

.custom-phone-field .dropdown-item {
        padding: 6px 10px;
        cursor: pointer;
        display: flex;
        align-items: center;
        gap: 8px;
    }

.custom-phone-field .dropdown-item img {
        width: 24px;
        height: 16px;
        border-radius: 4px;
    }

.custom-phone-field input[type="text"] {
        flex: 1;
        padding: 10px;
        border: 1px solid #ccc;
        border-radius: 4px;
        min-width: 180px;
        color: #7a869a;
        /*font-size: 18px;*/
        /*text-align: left;*/
        width: 100%;
        box-sizing: border-box;
    }
    
    
    
/*اضافة الخط  الريال السعودى وتظبيط الاستايل=======================================*/
@font-face {
  font-family: 'RiyalFont';
  src: url('/wp-content/themes/woodmart-child/assets/fonts/riyal/riyalfont.woff2') format('woff2'),
       url('/wp-content/themes/woodmart-child/assets/fonts/riyal/riyalfont.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}



/* 🪤 حُذفت كتلة RiyalFont في 2026-08-30 (جرد الامتثال · B3).
   كانت تُخفي رمزنا الرسمي بـfont-size:0 وتضع مكانه أيقونةَ خطٍّ بلون ثابت #231f20 —
   فتخالف §19 («الرمز يرث لون رقمه») وتُنتج رمزاً بعرضٍ صفر حيث لا يُحمَّل الخطّ.
   المصدر الوحيد الآن: مرشّح woocommerce_currency_symbol في includes/product-card.php. */
/*اضافة الخط  الريال السعودى وتظبيط الاستايل=======================================*/








/* 🔹 Scroll Utilities */
.scroll-x {
    display: flex;            /* عشان الكروت تيجي جنب بعض */
    overflow-x: auto;         /* يفعّل السكرول الأفقي */
    gap: 15px;                /* مسافة بين الكروت */
    scroll-snap-type: x mandatory; /* اختياري: سكرول أنيق */
    padding-bottom: 10px;     /* مساحة تحت عشان البار */
}

.scroll-x::-webkit-scrollbar {
    height: 8px;              /* تخلي الاسكرول رفيع */
}
.scroll-x::-webkit-scrollbar-thumb {
    background: #bbb;
    border-radius: 4px;
}
.scroll-x::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.scroll-y {
    display: flex;
    flex-direction: column;   /* يخلي العناصر تحت بعض */
    overflow-y: auto;         /* يفعّل السكرول العمودي */
    gap: 15px;
    max-height: 400px;        /* ارتفاع محدد للسكرول */
    padding-right: 10px;
}

.scroll-y::-webkit-scrollbar {
    width: 8px;
}
.scroll-y::-webkit-scrollbar-thumb {
    background: #bbb;
    border-radius: 4px;
}
.scroll-y::-webkit-scrollbar-track {
    background: #f1f1f1;
}


/* ===== إصلاح ارتفاع بطاقات مدة الاشتراك ===== */
.plan-card {
    height: auto !important;
    min-height: 160px;
}
/* ================================================ */

/* ===== إخفاء أزرار المنتج التفاعلية فوق صورة المنتج (⇄ مقارنة / 🔍 عرض سريع / ♡ مفضّلة) — غير مستخدمة وتشوّش التجربة — 2026-07-18 ===== */
.product-element-top .wd-buttons { display: none !important; }
/* ================================================================ */
/*===========checkout laoyut  ================*/
/* checkout page styles — هوية سلة الحمراء (توحيد مع صفحة /pay-esh/) 2026-07-22 */

body.woocommerce-checkout {
    direction: rtl;
    font-family: 'PingARLT', 'Tajawal', sans-serif;
    background-color: #f6f6f7;
/*     padding: 20px; */
}

/* رأس إجمالي الطلب — مطابق لصفحة /pay-esh/ الحمراء */
.esh-total-hero{
    display:flex; justify-content:space-between; align-items:center;
    margin-bottom:18px; padding-bottom:18px; border-bottom:1px solid var(--esh-line);
}
.esh-total-label{ font-weight:700; font-size:16px; color:#444; }
.esh-total-amount{ font-weight:800; font-size:26px; color:var(--esh-ink); margin-top:2px; }
.esh-total-logo{ width:52px; height:52px; border-radius:50%; border:1px solid #f0f0f0; object-fit:cover; padding:2px; }

:root{
    --esh-red:#ED0954;  /* V1 — #E01E37 محظور بالاسم في قاعدة 14 */
    --esh-ink:#1a1a1a;
    --esh-line:#ececec;
    --esh-field:#cecece;
    --esh-muted:#9a9a9a;
}

/* حاجز فيضان أفقي — الحاوية وكل ما بداخلها بلا استثناء (RTL يُخفي أي تجاوز يمنة الشاشة) */
.custom-checkout-container,
.custom-checkout-container *{
    box-sizing: border-box;
    max-width: 100%;
}
html, body.woocommerce-checkout{ overflow-x: hidden; }

.custom-checkout-container {
    display: flex;
    flex-direction: row-reverse;
    gap: 14px;
    flex-wrap: wrap;
    align-items: flex-start;
    background-color: transparent;
    box-shadow: none;
    margin: 20px auto 6rem;
    max-width: 1000px;
    padding: 0 16px;
}

.custom-checkout-left {
    background: #fff;
    border-radius: 12px;
    padding: 22px;
    flex: 1;
    box-shadow: 0 2px 12px rgba(20,20,40,.05);
}

.custom-checkout-right {
    background: #fff;
    border-radius: 12px;
    padding: 22px;
    flex: 2;
    min-width: 320px;
    box-shadow: 0 2px 12px rgba(20,20,40,.05);
    border-left: 0;
}

.custom-checkout-right h3,
.custom-checkout-left h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 18px;
    border: 0;
    padding: 0;
    color: var(--esh-ink);
    background-color: transparent;
}

.woocommerce-checkout-payment {
    background-color: transparent;
    border-radius: 0px;
    padding: 0px;
}

.custom-place-order {
    margin-top: 20px;
}

#place_order {
    background-color: var(--esh-red);
    color: white;
    font-size: 16px;
    font-weight: 700;
    padding: 0;
    height: 54px;
    border: none;
    border-radius: 10px;
    width: 100%;
    box-shadow: 0 6px 16px rgba(224,30,55,.22);
    transition: filter .15s, transform .1s;
}

#place_order:hover {
    background-color: var(--esh-red);
    filter: brightness(1.06);
}
#place_order:active{ transform: scale(.995); }

.woocommerce-checkout-review-order-table img {
    max-width: 50px;
    height: auto;
}


.customer-details {
    display: flex;
    flex-wrap: wrap;
    gap: 16px; /* مسافة بين الحقول */
}

.customer-details .form-row {
    flex: 1 1 48%; /* يجعل كل عنصر يأخذ تقريباً نصف العرض */
}

.customer-details input[type="text"],
.customer-details input[type="email"] {
    width: 100%;
    height: 48px;
    padding: 0 14px;
    border: 1px solid var(--esh-field);
    border-radius: 8px; /* الحواف الدائرية */
    box-sizing: border-box;
    font: inherit;
    font-size: 14px;
    outline: none;
    transition: border-color .15s, box-shadow .15s;
}
.customer-details input[type="text"]:focus,
.customer-details input[type="email"]:focus{
    border-color: var(--esh-red);
    box-shadow: 0 0 0 3px rgba(224,30,55,.07);
}
.customer-details label{
    font-size: 13.5px;
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
}


.custom-payment-methods
{
    margin-top: 22px;
    border-top: 1px solid var(--esh-line);
    padding-top: 20px;
}

.woocommerce-checkout-review-order .woocommerce-checkout-payment{
	display:none;
}


/* تحسين الاستجابة للشاشات الصغيرة */
@media (max-width: 767px) {
  .custom-checkout-container {
    flex-direction: column; /* نحول الصف إلى عمود */
    gap: 12px;
    padding: 0 12px;
    margin-top: 14px;
  }

  .custom-checkout-left,
  .custom-checkout-right {
		width:100%;
    flex: unset; /* تعطيل خاصية flex */
    padding: 18px;
    border: none;
  }
  .custom-checkout-right{
     border-top: 0;
  }

  .customer-details .form-row {
    flex: 1 1 100%; /* كل حقل ياخد عرض كامل */
  }

  #place_order {
    font-size: 16px;
  }

  .customer-details{
      gap: 12px;
  }
}

/* payment methods — بطاقات بهوية سلة */
.wc_payment_method{
    padding: 14px 16px;
    background-color: #fff;
    border: 1.5px solid var(--esh-line);
    border-radius: 10px;
    margin-bottom: 10px;
    box-shadow: none;
    transition: border-color .15s, box-shadow .15s;
}
.wc_payment_method:has(input:checked){
    border-color: var(--esh-red);
    box-shadow: 0 0 0 3px rgba(224,30,55,.08);
}
.wc_payment_method label{
    font-weight: 700;
    font-size: 14.5px;
    color: var(--esh-ink);
}
.wc_payment_method input.input-radio{
    accent-color: var(--esh-red);
    width: 18px; height: 18px;
}
.payment_box{
    font-size: 13px;
    color: var(--esh-muted);
    margin-top: 8px;
}

.payment_methods li img {
    /*margin-inline-start: 0px !important;*/
    margin-inline-end: 0px;
    max-height: 24px !important;
    float: left;
	background-color: #f9fafb;
	padding: 1px 4px;
	border-radius: 4px;
}

.pay-now-method-icon{
    margin-right: 4px !importanti;
}




/*===========checkout laoyut  ================*/




/* ===== Order Summary (RTL) ===== */
.summary-card{
    background: transparent;
    border-radius: 0px;
    padding: 0px;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
    font-family: inherit;
}
.summary-header{
  font-weight:700; text-align:center; font-size:16px; color:var(--esh-ink);
}

.summary-items{ display:flex; flex-direction:column; gap:12px; }
.summary-item{
  display:grid; grid-template-columns:88px 1fr; gap:12px;
  border:1px solid var(--esh-line); border-radius:12px; padding:10px;
  align-items:center;
}
.item-media{ position:relative; }
.item-thumb{ width:88px; height:88px; object-fit:cover; border-radius:10px; display:block; }
.badge-sale{
  position:absolute; bottom:8px; right:8px;
  background:#ffefef; color:var(--esh-red); border:1px dashed var(--esh-red);
  border-radius:8px; padding:2px 8px; font-size:12px; line-height:1;
}

.item-body{ display:flex; flex-direction:column; gap:8px; }
.item-row{ display:flex; align-items:center; justify-content:space-between; gap:8px; }
.item-title{ font-weight:600; font-size:15px; color:var(--esh-ink); }

.item-remove{
  width:28px; height:28px; border-radius:8px; display:flex; align-items:center; justify-content:center;
  border:1px solid var(--esh-line); color:#555; text-decoration:none;
}
.item-remove:hover{ background:#fafafa; }

.item_qty_removebtn{
    display: flex;
    align-items: center;
    gap: 10px;
}

.item-qty{
    display: flex;
    align-items: center;
    border: 1px solid var(--esh-line);
    border-radius: 8px;
    overflow: hidden;
    justify-content: space-between;
    max-width: 60%;
    max-height: 34px;
}

/* زرار + و - */
.qty-btn{
  width:34px; height:34px;
  border:none;
  background:#fafafa;
  cursor:pointer;
  font-size:18px;
  display:flex; align-items:center; justify-content:center;
  transition:background .2s;
  padding: 0px 16px !important;
}
.qty-btn:hover{ background:#f0f0f0; }

/* input */
.qty-input{
  width:50px; height:34px;
  text-align:center;
  border:none !important;
  border-left:1px solid var(--esh-line);
  border-right:1px solid var(--esh-line);
  font-size:15px;
  outline:none;
}

/* إزالة الأسهم من input number في Chrome, Edge, Safari */
.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* إزالة الأسهم من input number في Firefox */
.qty-input[type=number] {
  -moz-appearance: textfield;
}




/* Coupon — بهوية سلة (حقل + زر أحمر) */
.coupon-wrap{ display:flex; flex-direction:column; gap:8px; margin-top:4px; }
.coupon-title{ font-size:14px; font-weight:700; color:var(--esh-ink); }
.coupon-row{ display:flex; border:1px solid var(--esh-field); border-radius:8px; overflow:hidden; height:46px; }
#custom-coupon{
  flex:1; height:100%; border:0; padding:0 14px; font:inherit; font-size:14px; outline:none;
}
#apply-coupon{
  height:100%; padding:0 22px; border:0; background:var(--esh-red); color:#fff;
  font-weight:700; font-size:14px; cursor:pointer; transition:filter .15s;
}
#apply-coupon:hover{ filter:brightness(1.08); }
#apply-coupon[disabled]{ opacity:.5; cursor:not-allowed; }
.coupon-msg{ font-size:13px; color:#2e7d32; }

/* Total */

.summary-subtotal{
    display: flex;
    text-align: center;
    justify-content: space-between;
    font-size: 14px;
    color: #444;
}

.summary-total{
  display:flex; align-items:center; justify-content:space-between;
  border-top:1px dashed #ddd; padding-top:12px; font-weight:800; color: var(--esh-ink);
}
.total-amount{ font-size:20px; }



/* Small screens */
@media (max-width:480px){
  .summary-item{ grid-template-columns:72px 1fr; }
  .item-thumb{ width:72px; height:72px; }
}

/* ===== أيقونات الدفع التفاعلية الموحّدة — نفس هوية /pay-esh/ (2026-07-22) ===== */
.esh-pm-wrap .req{ color:var(--esh-red); }
.esh-pm-sub{ text-align:right; color:var(--esh-muted); font-size:13.5px; margin:-8px 0 16px; }

.esh-methods{ display:flex; flex-wrap:wrap; gap:11px; margin-bottom:6px; }
.esh-method{
  position:relative; flex:1 1 calc(25% - 9px); min-width:70px; height:58px;
  border:1.5px solid var(--esh-line); border-radius:10px; background:#fff;
  display:flex; align-items:center; justify-content:center; cursor:pointer;
  transition:border-color .15s,box-shadow .15s; padding:8px; box-sizing:border-box;
}
.esh-method:hover{ border-color:#ddd; }
.esh-method.active{ border-color:var(--esh-red); box-shadow:0 0 0 3px rgba(224,30,55,.08); }
.esh-method img{ max-height:26px; max-width:100%; object-fit:contain; }
.esh-method .esh-rdot{
  position:absolute; top:6px; inset-inline-start:6px; width:13px; height:13px;
  border:1.5px solid #d5d5d5; border-radius:50%; transition:.15s;
}
.esh-method.active .esh-rdot{ border-color:var(--esh-red); }
.esh-method.active .esh-rdot::after{ content:''; position:absolute; inset:2.5px; background:var(--esh-red); border-radius:50%; }

.esh-fields{ display:none; margin-top:18px; animation:eshFade .2s ease; }
.esh-fields.show{ display:block; }
@keyframes eshFade{ from{opacity:0;transform:translateY(-4px)} to{opacity:1;transform:none} }

.esh-fbox{ border:1px solid var(--esh-line); border-radius:12px; padding:16px; margin-bottom:14px; }
.esh-flabel{ text-align:right; font-size:13.5px; color:#333; font-weight:700; margin-bottom:12px; }
.esh-fgrid{ display:flex; flex-wrap:wrap; gap:10px; }
.esh-fgrid .finput{ flex:1 1 calc(50% - 5px); }
.esh-fgrid .esh-full{ flex:1 1 100%; }

.esh-stc-row{ display:flex; gap:10px; margin-bottom:14px; }
.esh-stc-flag{ min-width:52px; border:1px solid var(--esh-field); border-radius:8px; display:flex; align-items:center; justify-content:center; font-size:17px; background:#fafafa; }

.esh-btn-pay{
  width:100%; height:52px; border:0; border-radius:10px; font:inherit; font-size:15px;
  font-weight:700; cursor:pointer; color:#fff; transition:filter .15s,transform .1s;
  display:flex; align-items:center; justify-content:center; gap:8px;
}
.esh-btn-pay:hover{ filter:brightness(1.06); }
.esh-btn-pay:active{ transform:scale(.995); }
.esh-btn-pay:disabled{ opacity:.5; cursor:not-allowed; filter:none; }
.esh-btn-red{ background:var(--esh-red); box-shadow:0 6px 16px rgba(224,30,55,.22); }
.esh-btn-black{ background:#000; box-shadow:0 6px 16px rgba(0,0,0,.2); }

#esh-pl-embed:empty{ display:none; }
#esh-pl-embed iframe{ width:100%; min-height:520px; border:0; border-radius:10px; }

.esh-msg{ text-align:center; padding:10px; border-radius:8px; margin-bottom:12px; font-size:13.5px; display:none; }
.esh-msg.err{ background:#fef2f2; color:#b91c1c; display:block; }
.esh-msg.ok{ background:#ecfdf5; color:#059669; display:block; }

.esh-secure{ display:flex; align-items:center; justify-content:center; gap:6px; color:#bbb; font-size:12px; margin-top:12px; }

/* ===== إصلاح: صف رقم الجوال — محاذاة الكود مع الحقل بلا تراكب (2026-07-22) ===== */
.esh-phone-row .custom-phone-field{
    align-items: stretch !important;
    gap: 8px !important;
    flex-wrap: nowrap !important;
}
.esh-phone-row .custom-phone-field .selected{
    height: 48px !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    flex: 0 0 auto;
}
.esh-phone-row .custom-phone-field input[type="text"]{
    height: 48px !important;
    box-sizing: border-box !important;
    border-radius: 8px !important;
    border-color: var(--esh-field, #cecece) !important;
}

/* ===== إصلاح: مربع الكوبون — سطر واحد ثابت، الزر لا ينكسر أبداً (2026-07-22) =====
   ملاحظة: coupon-component.css (ملف منفصل) يضع @media(max-width:480px){.coupon-row{flex-direction:column}}
   عمداً — هذه القواعد تكسر تلك النية صراحةً على كل قياسات الشاشة لضمان سطر واحد دائماً. */
.coupon-row{
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    border: 1px solid var(--esh-field, #cecece) !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    height: 46px !important;
    min-height: 46px !important;
    padding: 0 !important;
    gap: 0 !important;
    background: #fff;
}
#custom-coupon{
    flex: 1 1 auto !important;
    width: auto !important;
    min-width: 0 !important;
    height: 100% !important;
    border: 0 !important;
    padding: 0 14px !important;
    font-size: 14px !important;
    outline: none !important;
    background: transparent !important;
    box-shadow: none !important;
}
#apply-coupon{
    flex: 0 0 auto !important;
    width: auto !important;
    white-space: nowrap !important;
    height: 100% !important;
    padding: 0 22px !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: var(--esh-red, #ED0954) !important;
    color: #fff !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 70px;
}
#apply-coupon[disabled]{ opacity: .55 !important; cursor: not-allowed !important; }
#apply-coupon .btn-loading[style*="none"]{ display: none !important; }
#apply-coupon .btn-loading:not([style*="none"]){ display: flex !important; align-items: center; gap: 6px; }
@media (max-width:480px){
    .coupon-row{ flex-direction: row !important; padding: 0 !important; }
    #custom-coupon{ width: auto !important; padding: 0 14px !important; border: 0 !important; }
    #apply-coupon{ width: auto !important; margin: 0 !important; }
}

/* ===== المدونة: بلا كاتب · بلا شريط جانبي · متن متوسِّط (أمر المالك 2026-08-25) =====
   الشريط الجانبي أُزيل من إعدادات القالب نفسها (blog_layout=full-width وأخواتها)،
   وكتلة الكاتب أُفرغت من PHP في includes/blog-layout.php — وما هنا أثرُهما البصري فقط. */

/* الكتلة صارت فارغة من المصدر؛ وهذا يمنع بقاء فجوتها في صفّ الميتا */
.single-post .wd-post-author { display: none !important; }

/* تاريخان متطابقان في صفٍّ واحد (المعدَّل والمنشور) — يبقى المنشور ويسقط المكرّر */
.single-post .wd-modified-date { display: none !important; }

/* المتن في وسط الصفحة بعرض قراءة مريح — والخلفية تبقى بعرض الشاشة */
.single-post .wd-page-title > .container,
.single-post main.wd-content-layout.container { max-width: 900px; }

/* ===== بطاقات المدونة — إعادة تشكيل (أمر المالك 2026-08-25) =====
   العلل المقيسة: صندوق تاريخ فوق الصورة · بطاقات متفاوتة الارتفاع ·
   أيقونة مشاركة عائمة بين العنوان والنص · «Continue reading» بالإنجليزية.
   والرموز من الدستور (قاعدة 14): القرمزي ED0954 · الحبر 1A1A1A · الحدّ E5E5E5. */

/* ① صندوق التاريخ فوق الصورة يسقط — ويبقى التاريخ سطراً هادئاً في ذيل البطاقة */
.woodmart-archive-blog .wd-post-date.wd-style-with-bg { display: none !important; }

/* ② أيقونة المشاركة تخرج من متن البطاقة (تبقى في صفحة التدوينة) */
.woodmart-archive-blog .wd-post-share { display: none !important; }

/* ③ البطاقة عمود متساوي الارتفاع بحدٍّ هادئ بدل الظلّ */
.woodmart-archive-blog .wd-post { display: flex; }
.woodmart-archive-blog .wd-post .wd-post-inner {
	position: relative;
	display: flex;
	flex-direction: column;
	width: 100%;
	background: #fff;
	border: 1px solid #E5E5E5;
	border-radius: 18px;
	overflow: hidden;
	box-shadow: none;
	transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.woodmart-archive-blog .wd-post .wd-post-inner:hover {
	transform: translateY(-3px);
	border-color: #ED0954;
	box-shadow: 0 10px 28px rgba(26, 26, 26, .10);
}

/* ④ صورة بنسبة واحدة لكل البطاقات — فتستوي الصفوف */
.woodmart-archive-blog .wd-post-thumb { margin: 0; }
.woodmart-archive-blog .wd-post-img img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
	object-fit: cover;
}

/* ⑤ وسم التصنيف قرمزيّ في صدر المتن.
   🪤 وُضع أولاً فوق الصورة بـposition:absolute فسقط لأسفلها — لأن القالب يضبط له
   bottom بأسبقية أعلى. والسطر الداخلي يعمل مع البطاقات التي بلا صورة أيضاً. */
.woodmart-archive-blog .wd-post-cat {
	position: static;
	margin: 0 0 10px !important;
	line-height: 1;
}
.woodmart-archive-blog .wd-post-cat a {
	display: inline-block;
	padding: 4px 12px;
	border-radius: 999px;
	background: #ED0954;
	color: #fff;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.7;
}
.woodmart-archive-blog .wd-post-cat a:hover { background: #CE0747; color: #fff; }

/* ⑥ المتن شبكة: عنوان · ملخّص يتمدّد · ثم ذيل (تاريخ + رابط) مثبَّت أسفلاً */
.woodmart-archive-blog .wd-post-content {
	display: grid;
	flex: 1 1 auto;
	grid-template-columns: 1fr auto;
	grid-template-rows: auto auto 1fr auto;
	grid-template-areas: "cat cat" "title title" "excerpt excerpt" "meta more";
	align-items: center;
	gap: 0 12px;
	padding: 18px 20px 16px !important;
	text-align: start;
}
.woodmart-archive-blog .wd-post-cat { grid-area: cat; align-self: start; justify-self: start; }
.woodmart-archive-blog .wd-post-title { grid-area: title; margin: 0 0 8px; align-self: start; }
.woodmart-archive-blog .wd-post-excerpt { grid-area: excerpt; margin: 0 0 14px; align-self: start; }
.woodmart-archive-blog .wd-post-meta { grid-area: meta; margin: 0; }
.woodmart-archive-blog .wd-post-read-more { grid-area: more; margin: 0; }

/* ⑦ العنوان سطران والملخّص ثلاثة — فلا يتفاوت ارتفاع البطاقات بطول النص */
.woodmart-archive-blog .wd-post-title,
.woodmart-archive-blog .wd-post-excerpt {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.woodmart-archive-blog .wd-post-title { -webkit-line-clamp: 2; font-size: 17px; line-height: 1.7; }
.woodmart-archive-blog .wd-post-excerpt { -webkit-line-clamp: 3; font-size: 13.5px; line-height: 1.9; color: #6B6B6B; }
.woodmart-archive-blog .wd-post-title a { color: #1A1A1A; }
.woodmart-archive-blog .wd-post-title a:hover { color: #ED0954; }

/* ⑧ الذيل: التاريخ رمادي صغير، و«اقرأ المقال» قرمزيّ بسهم */
.woodmart-archive-blog .wd-post-content { border-top: 0; }
/* 🪤 والقالب يخفي تاريخ التعديل في الحلقة بـdisplay:none — فيُظهَر صراحةً */
.woodmart-archive-blog .wd-post-meta .wd-modified-date { display: block !important; }
.woodmart-archive-blog .wd-post-meta > div,
.woodmart-archive-blog .wd-post-meta time { font-size: 12px; color: #6B6B6B; }
.woodmart-archive-blog .wd-post-read-more a {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	font-weight: 600;
	color: #ED0954;
	border: 0;
}
.woodmart-archive-blog .wd-post-read-more a::after { content: "←"; font-size: 14px; line-height: 1; }
.woodmart-archive-blog .wd-post-read-more a:hover { color: #CE0747; }

/* ⑨ محاذاة البداية — القالب يوسّط العنوان والملخّص، والقراءة العربية تبدأ من اليمين */
.woodmart-archive-blog .wd-post-content,
.woodmart-archive-blog .wd-post-title,
.woodmart-archive-blog .wd-post-title a,
.woodmart-archive-blog .wd-post-excerpt,
.woodmart-archive-blog .wd-post-meta,
.woodmart-archive-blog .wd-post-read-more { text-align: start !important; }
.woodmart-archive-blog .wd-post-meta { justify-content: flex-start !important; }

/* ⑩ ثماني تدوينات من تسعين بلا صورة مميّزة — فتترك بطاقاتها فجوة بيضاء.
   تُملأ بلوحة هادئة تحمل العلامة الرسمية كما هي (الوصية ١)، لا برسم بديل.
   والعلاج الجذري إضافة صور لتلك التدوينات — وهذا شغل محتوى لا تنسيق. */
.woodmart-archive-blog .wd-post:not(:has(.wd-post-img)) .wd-post-inner::before {
	content: "";
	display: block;
	aspect-ratio: 16 / 9;
	background: #F5F5F5 url("https://eshtrakati.com/brand/ESH_mark_color_512.png") center / 74px no-repeat;
	border-bottom: 1px solid #E5E5E5;
}

/* ⑪ أدلّة التفعيل الستّ: أيقونة المنتج الرسمية على بطاقتها بدل علامة المتجر العامة.
   (كلاس `post-<id>` يخرجه القالب على كل مقالة — فالربط بالمعرّف لا بالتصنيف.) */
.woodmart-archive-blog .post-88021 .wd-post-inner::before { background-image: url("https://eshtrakati.com/brand/apps/m365.svg?v=118"); }
.woodmart-archive-blog .post-88046 .wd-post-inner::before { background-image: url("https://eshtrakati.com/brand/apps/chatgpt.svg?v=118"); }
.woodmart-archive-blog .post-88054 .wd-post-inner::before { background-image: url("https://eshtrakati.com/brand/apps/office2019.svg?v=118"); }
.woodmart-archive-blog .post-88059 .wd-post-inner::before { background-image: url("https://eshtrakati.com/brand/apps/office2021.svg?v=118"); }
.woodmart-archive-blog .post-88065 .wd-post-inner::before { background-image: url("https://eshtrakati.com/brand/apps/project.svg?v=118"); }
.woodmart-archive-blog .post-88069 .wd-post-inner::before { background-image: url("https://eshtrakati.com/brand/apps/visio.svg?v=118"); }
