/* JE Bookstore Pro — public product details */
.jebp-product-details{margin:1.5rem 0;padding:1rem;border:1px solid #e2e8f0;border-radius:12px;background:#fff;color:#243447;box-shadow:0 4px 16px rgba(25,45,67,.045);direction:rtl}
.jebp-details-table{width:100%;border-collapse:collapse;font-size:15px;line-height:1.6}
.jebp-details-table th,.jebp-details-table td{padding:.75rem .85rem;border-bottom:1px solid #edf1f5;text-align:right;vertical-align:top}
.jebp-details-table th{width:30%;color:#52647a;font-weight:700;background:#f8fafc}
.jebp-details-table tr:last-child th,.jebp-details-table tr:last-child td{border-bottom:0}
.jebp-details-table code{padding:.15rem .4rem;border-radius:5px;background:#f3f6f8;color:#33485f;font-size:.9em;direction:ltr;unicode-bidi:embed}
.jebp-product-details .jebp-link{color:#145b84;text-decoration:none}
.jebp-product-details .jebp-link:hover{text-decoration:underline}
@media(max-width:600px){.jebp-product-details{padding:.75rem;border-radius:10px}.jebp-details-table{font-size:14px}.jebp-details-table th,.jebp-details-table td{padding:.6rem .55rem}.jebp-details-table th{width:37%}}

/* Library brand colors sampled from the logo */
.jebp-product-details{border-color:#dce7e8;color:#17384a}
.jebp-details-table th{background:#f4f5ea;color:#0b557d}
.jebp-details-table th,.jebp-details-table td{border-bottom-color:#e5e9df}
.jebp-product-details .jebp-link{color:#0b557d}
.jebp-product-details .jebp-link:hover{color:#d99325}
.jebp-details-table code{background:#f2f5f4;color:#084e70}

/* ملخص تحت عنوان الكتاب + جدول التفاصيل + بطاقات المتجر */
.jebm-summary{margin:0 0 1.3em;padding:0 0 1.1em;border-bottom:1px solid #e5e9df;font-size:15px;line-height:1.9;direction:rtl}
.jebm-line{display:flex;gap:.9em;align-items:baseline;margin:0 0 .2em}
.jebm-line dt{flex:0 0 5em;margin:0;font-size:.9em;font-weight:400;color:#6b7c8d;text-transform:none}
.jebm-line dd{margin:0;font-weight:600;color:#17384a}
.jebm-line-author dd{font-size:1.15em;font-weight:700}
.jebm-summary a,.jebm-spec a{color:#0b557d;text-decoration:none;border-bottom:1px solid rgba(11,85,125,.3)}
.jebm-summary a:hover,.jebm-spec a:hover{color:#d99325;border-bottom-color:#d99325}
.jebm-chip{display:inline-block;margin:0 0 .3em .4em;padding:.1em .9em;border:1px solid #d8e2dc;border-radius:999px;background:#f4f5ea;font-weight:500;font-size:.92em;line-height:1.7}
a.jebm-chip{border-bottom:1px solid #d8e2dc}
a.jebm-chip:hover{background:#0b557d;border-color:#0b557d;color:#fff}
.jebm-spec{width:100%;max-width:720px;margin:0;border-collapse:collapse;font-size:15px;line-height:1.7;direction:rtl}
.jebm-spec th,.jebm-spec td{padding:.75em .25em;border:0;border-bottom:1px solid #eceee6;background:none;text-align:start;vertical-align:top}
.jebm-spec th{width:9em;font-weight:400;font-size:.95em;color:#6b7c8d;text-transform:none;white-space:nowrap}
.jebm-spec td{font-weight:600;color:#17384a}
.jebm-spec tr:last-child th,.jebm-spec tr:last-child td{border-bottom:0}
.jebm-spec code{padding:.15em .5em;border-radius:6px;background:#f2f5f4;color:#084e70;font-size:.95em;direction:ltr;unicode-bidi:embed}
.jebm-loop-author{font-size:.82em;line-height:1.4;margin:.15em 0 .3em;color:#52647a}
@media(max-width:480px){.jebm-line dt{flex-basis:4.2em}.jebm-spec th{width:6.5em;white-space:normal}}

/* لوحة الفلاتر */
.jebm-filters{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:.7rem .9rem;align-items:end;margin:0 0 1rem;padding:1rem;border:1px solid #dce7e8;border-radius:12px;background:#fff;direction:rtl}
.jebm-f{display:flex;flex-direction:column;gap:.25rem;margin:0;font-size:.9em;color:#52647a}
.jebm-f>span:first-child{font-weight:700}
.jebm-f select,.jebm-f input[type=search],.jebm-f input[type=number]{width:100%;margin:0;min-height:40px;border:1px solid #cdd9dc;border-radius:8px;background:#fff;color:#17384a;box-shadow:none}
.jebm-f-wide{grid-column:1/-1}
.jebm-pair{display:flex;gap:.4rem}
.jebm-f-check{flex-direction:row;align-items:center;gap:.5rem;min-height:40px}
.jebm-f-check input{margin:0}
.jebm-f-actions{display:flex;gap:.8rem;align-items:center}
.jebm-btn{min-height:40px;padding:0 1.4rem;border:0;border-radius:8px;background:#0b557d;color:#fff;font-weight:700;cursor:pointer}
.jebm-btn:hover{background:#084a6e}
.jebm-btn:focus-visible,.jebm-filters select:focus-visible,.jebm-filters input:focus-visible{outline:2px solid #d99325;outline-offset:2px}
.jebm-reset{color:#52647a;font-size:.9em}
.jebm-active-filters{display:flex;flex-wrap:wrap;gap:.4rem;margin:-.3rem 0 1rem;direction:rtl}
.jebm-chip.jebm-active{background:#0b557d;border-color:#0b557d;color:#fff;text-decoration:none;cursor:pointer}
.jebm-chip.jebm-active:hover{background:#d99325;border-color:#d99325}

/* الكتب غير المتوفرة */
.jebm-oos-badge{display:inline-block;margin:.2em 0 .3em;padding:.12em .7em;border:1px solid #e3c9c4;border-radius:999px;background:#fbefed;color:#a3362a;font-size:.8em;font-weight:700;line-height:1.6}
.products .outofstock img,.products .outofstock .box-image img{opacity:.55;filter:grayscale(.5)}

/* بطاقة المؤلف/الناشر + كتب أخرى للمؤلف + مربعات البحث */
.jebm-f input[list]{width:100%;margin:0;min-height:40px;border:1px solid #cdd9dc;border-radius:8px;background:#fff;color:#17384a;box-shadow:none}
.jebm-context{display:flex;gap:1rem;align-items:center;margin:0 0 1rem;padding:1rem 1.2rem;border:1px solid #dce7e8;border-right:4px solid #d99325;border-radius:12px;background:#fff;direction:rtl}
.jebm-context-img{width:72px;height:72px;border-radius:50%;object-fit:cover;flex:0 0 72px}
.jebm-context-body small{color:#6b7c8d;font-size:.85em}
.jebm-context-title{margin:.1em 0 .2em;font-size:1.4em;line-height:1.3;color:#17384a}
.jebm-context-meta{margin:0;color:#0b557d;font-weight:700}
.jebm-context-note{margin:.4em 0 0;color:#52647a;font-size:.95em;line-height:1.7}
.jebm-more{margin:2em 0 1em;direction:rtl}
.jebm-more>h2{margin:0 0 .8em;font-size:1.25em;color:#17384a}

/* لوحة الفلاتر القابلة للطي (مطوية على الهاتف) */
.jebm-panel{margin:0 0 1rem}
.jebm-panel>summary{cursor:pointer;list-style:none;padding:.75rem 1rem;border:1px solid #dce7e8;border-radius:12px;background:#fff;color:#17384a;font-weight:700;direction:rtl}
.jebm-panel>summary::-webkit-details-marker{display:none}
.jebm-panel>summary::after{content:"\25BE";float:left;color:#0b557d}
.jebm-panel[open]>summary{margin-bottom:.5rem}
.jebm-panel[open]>summary::after{content:"\25B4"}
.jebm-panel .jebm-filters{margin-bottom:0}
@media(max-width:849px){.jebm-filters{grid-template-columns:1fr 1fr}.jebm-f-wide,.jebm-f-actions{grid-column:1/-1}}
