/* القوالب — نفس ألوان الموقع: بيج #e6e5da، أحمر طوبي #c8564a */
.tpl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: clamp(20px, 3vw, 40px); }
.tpl { display: flex; flex-direction: column; }
.tpl__img { position: relative; display: block; aspect-ratio: 3 / 2;   /* نفس مقاس أغلفة Gumroad ١٠٠٥×٦٧٠ */ overflow: hidden; background: #d9d7cb; border-radius: 4px; }
.tpl__img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s ease; }
.tpl__img:hover img { transform: scale(1.03); }
.tpl__badge { position: absolute; top: 12px; left: 12px; background: #fffbdd; color: #1c1a17; font-size: 13px; padding: 6px 12px; border-radius: 999px; }
.tpl__badge.is-free { background: #c8564a; color: #fffbdd; }
.tpl__body { text-align: right; padding-top: 16px; }
.tpl__ar { margin: 0; font-family: "IBM Plex Sans Arabic", "Geeza Pro", system-ui, sans-serif; font-weight: 500; font-size: clamp(22px, 2.2vw, 28px); line-height: 1.35; }
.tpl__en { margin: 2px 0 0; font-size: 14px; color: #7a776b; }
.tpl__text { margin: 10px 0 0; font-family: "IBM Plex Sans Arabic", "Geeza Pro", system-ui, sans-serif; font-size: 16px; line-height: 1.8; }
.tpl__btn { display: inline-block; margin-top: 16px; font-family: "IBM Plex Sans Arabic", "Geeza Pro", system-ui, sans-serif; font-size: 14px; color: #c8564a;
  border: 1px solid #c8564a; border-radius: 999px; padding: 9px 20px; transition: background .2s, color .2s; }
.tpl__btn:hover, .tpl__btn:focus-visible { background: #c8564a; color: #fffbdd; }

/* قسم الرئيسية */
.tpl-home { max-width: 1100px; margin: 0 auto; padding: clamp(50px, 8vw, 110px) clamp(14px, 2vw, 24px); border-top: 1px solid #cfcdbf; }
.tpl-home__head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: clamp(24px, 4vw, 44px); }
.tpl-home__title { margin: 0; font-family: "Delight", "Helvetica Neue", Arial, sans-serif; font-weight: 200; letter-spacing: -.03em; text-transform: uppercase; font-size: clamp(40px, 7vw, 110px); line-height: .92; }
.tpl-home__ar { margin: 0; font-family: "IBM Plex Sans Arabic", "Geeza Pro", system-ui, sans-serif; font-size: clamp(18px, 2vw, 24px); text-align: right; }
.tpl-home__all { display: inline-block; margin-top: clamp(24px, 4vw, 40px); color: #c8564a; font-size: 14px; }
.tpl-home__all:hover { opacity: .7; }

/* صفحة القوالب */
.tpl-intro { max-width: 46ch; margin: 0 0 clamp(30px, 5vw, 56px) auto; text-align: right; font-family: "IBM Plex Sans Arabic", "Geeza Pro", system-ui, sans-serif; font-size: clamp(17px, 1.6vw, 20px); line-height: 1.85; }
.tpl-intro small { display: block; margin-top: 8px; font-family: "Delight", "Helvetica Neue", Arial, sans-serif; font-size: 13px; line-height: 1.5; color: #7a776b; }
.tpl-home__more { margin: 0; text-align: right; }
