/* ===== تحسينات متجر كودفا — ثيم رائد Twig ===== */

/* ---------- عام ---------- */
.s-product-card-price:empty::after{content:"مجاني";color:#2f7a4a;font-weight:700}
.codfah-free-price{color:#2f7a4a;font-weight:700}

/* ---------- صفحة التصنيفات ---------- */
.product-index custom-salla-product-card.s-product-card-entry{height:100%;display:flex;flex-direction:column;border-radius:16px;transition:transform .2s ease,box-shadow .2s ease}
.product-index custom-salla-product-card.s-product-card-entry:hover{transform:translateY(-3px);box-shadow:0 14px 30px rgba(60,43,32,.10)}
.product-index .s-product-card-content{display:flex;flex-direction:column;flex:1}
.product-index .s-product-card-content-main{flex:1}
.product-index .s-product-card-content-title{line-height:1.6}
.product-index .s-product-card-content-subtitle{line-height:1.7}
.product-index .s-product-card-content-footer{margin-top:auto}
.codfah-cat-intro{margin:.25rem 0 0;color:#6b7280;font-size:.95rem;line-height:1.8}

/* ---------- صفحة تفاصيل المنتج ---------- */
/* المنتج رقمي: لا حاجة لاختيار الكمية */
.product-single .sticky-product-bar__quantity{display:none!important}
/* على الكمبيوتر: تفاصيل الملفات وزر الشراء قبل الوصف الطويل */
@media (min-width:768px){
  .product-single .main-content{display:flex;flex-direction:column}
  .product-single .main-content>digital-files-settings{order:1}
  .product-single .main-content>form.product-form{order:2;margin-bottom:1.25rem}
  .product-single .main-content>.product__description,
  .product-single .main-content>.product__description~*:not(form):not(digital-files-settings){order:3}
}
.product-single .product__description{line-height:1.95}
.product-single .product__description h2,
.product-single .product__description h3{margin:1.4rem 0 .6rem;font-weight:700;color:#3c2b20}
.product-single .product__description ul,
.product-single .product__description ol{margin:.4rem 0 1rem}
.product-single .product__description li{margin-bottom:.35rem}
.codfah-hidden{display:none!important}

/* ---------- الصفحات التعريفية ---------- */
.page-single .content--single-page{max-width:820px;border-radius:18px;box-shadow:0 10px 30px rgba(60,43,32,.06)}
.page-single .content--single-page h1{font-size:1.75rem;color:#3c2b20;padding-bottom:1rem;border-bottom:1px solid #eee5da}
.page-single .content-entry{font-size:1.02rem;line-height:2;color:#374151}
.page-single .content-entry p{margin:0 0 1rem}
.page-single .content-entry p:has(>br:only-child){display:none}
.page-single .content-entry strong,.page-single .content-entry b{color:#3c2b20}
.page-single .content-entry a{color:#4f684d;text-decoration:underline}
.page-single salla-comments{display:none!important}

/* ---------- صفحة شكراً لطلبك ---------- */
.codfah-thanks-box{max-width:760px;margin:1.25rem auto;padding:1.4rem 1.5rem;border:1px solid #d9e3d3;border-radius:16px;background:#f4f8f1;color:#2f3b2c;line-height:1.9}
.codfah-thanks-box h3{margin:0 0 .5rem;font-size:1.15rem;font-weight:700;color:#2f5a35}
.codfah-thanks-box ol{margin:0 0 .9rem;padding-inline-start:1.2rem;list-style:decimal}
.codfah-thanks-box li{margin-bottom:.25rem}
.codfah-thanks-actions{display:flex;flex-wrap:wrap;gap:.6rem}
.codfah-thanks-actions a{display:inline-flex;align-items:center;gap:.4rem;padding:.55rem 1.1rem;border-radius:999px;font-weight:700;font-size:.92rem}
.codfah-thanks-actions .primary{background:#4f3a2a;color:#fff}
.codfah-thanks-actions .secondary{border:1px solid #c8d6c1;background:#fff;color:#2f5a35}