.sbl-el-books-widget,
.sbl-el-books-widget *{box-sizing:border-box}
.sbl-el-books-widget{direction:rtl;width:100%;font-family:inherit;color:#222}
.sbl-el-books-head{display:flex;align-items:center;gap:12px;margin:0 0 14px;justify-content:space-between}
.sbl-el-books-title{margin:0!important;font-size:20px!important;font-weight:800!important;line-height:1.6;color:#1d2636}
.sbl-el-books-arrows{display:flex;align-items:center;gap:10px;direction:ltr;margin-left:auto;margin-right:0;justify-content:flex-start}
.sbl-el-books-arrow{width:44px;height:44px;border:1px solid #d8e2f0;border-radius:14px;background:linear-gradient(180deg,#ffffff 0%,#f6f9ff 100%);color:#182033;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;line-height:1;transition:.22s ease;box-shadow:0 10px 24px rgba(20,30,50,.09);padding:0}
.sbl-el-books-arrow:hover{border-color:#2f80ed;background:#2f80ed;color:#fff;transform:translateY(-2px);box-shadow:0 14px 28px rgba(47,128,237,.26)}
.sbl-el-books-arrow svg{width:19px;height:19px;stroke:currentColor;fill:none;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}
.sbl-el-books-arrow:focus-visible{outline:none;box-shadow:0 0 0 4px rgba(47,128,237,.16)}
.sbl-el-books-track{display:flex;gap:28px;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;padding:4px 2px 8px;scrollbar-width:none;-webkit-overflow-scrolling:touch}
.sbl-el-books-track::-webkit-scrollbar{display:none}
.sbl-el-book-card{flex:0 0 155px;scroll-snap-align:start;display:flex;flex-direction:column;text-align:center;min-width:0;color:inherit;min-height:305px}
.sbl-el-book-link,.sbl-el-book-image-link{text-decoration:none!important;color:inherit!important;display:block}.sbl-el-book-link{display:flex;flex-direction:column;flex:1;min-height:0}
.sbl-el-book-media{position:relative;flex:0 0 auto}
.sbl-el-book-cover{position:relative;height:214px;width:155px;margin:0 auto 12px;border-radius:6px;background:#fff;display:flex;align-items:center;justify-content:center;overflow:hidden;box-shadow:0 8px 22px rgba(20,30,50,.08);transition:.22s ease}
.sbl-el-book-card:hover .sbl-el-book-cover{transform:translateY(-3px);box-shadow:0 14px 30px rgba(20,30,50,.13)}
.sbl-el-book-cover img{width:100%;height:100%;object-fit:contain;display:block;background:#fff}
.sbl-el-book-hover{position:absolute;top:12px;left:12px;display:flex;flex-direction:column;gap:8px;opacity:0;transform:translateY(8px);pointer-events:none;transition:.2s ease}
.sbl-el-book-card:hover .sbl-el-book-hover,.sbl-el-book-card:focus-within .sbl-el-book-hover{opacity:1;transform:translateY(0);pointer-events:auto}
.sbl-el-hover-btn{width:40px;height:40px;border:none;border-radius:999px;background:#fff;color:#1d2636;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;box-shadow:0 8px 20px rgba(24,32,51,.14);transition:.2s ease;padding:0}
.sbl-el-hover-btn:hover{background:#2f80ed;color:#fff;transform:translateY(-1px)}
.sbl-el-hover-btn svg{width:18px;height:18px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.sbl-el-hover-btn.is-added{background:#16a34a;color:#fff}
.sbl-el-book-title{margin:0 0 7px!important;font-size:14px!important;font-weight:600!important;line-height:1.9!important;color:#303744!important;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;height:54px;min-height:54px}
.sbl-el-book-price{font-size:13px;line-height:1.7;color:#202735;font-weight:700;min-height:34px;height:34px;display:flex;align-items:flex-start;justify-content:center;gap:5px;flex-wrap:wrap;margin-top:auto;padding-top:1px}
.sbl-el-book-price ins{text-decoration:none!important;color:#202735;font-weight:800;background:transparent!important}.sbl-el-book-price del{display:inline-block;margin-inline-end:5px;color:#9aa3b2;font-weight:400;font-size:12px}.sbl-el-book-price bdi{font-weight:800;background:transparent!important;padding:0!important}.sbl-el-discount-badge{position:absolute;top:8px;right:8px;z-index:3;display:inline-flex;align-items:center;justify-content:center;min-width:38px;height:24px;padding:0 8px;border-radius:999px;background:#ef476f;color:#fff;font-size:12px;font-weight:800;box-shadow:0 8px 18px rgba(239,71,111,.22);line-height:1}

.sbl-qv-overlay{position:fixed;inset:0;background:rgba(15,23,42,.52);z-index:99999;display:grid;place-items:center;padding:24px;backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px)}
.sbl-qv-overlay[hidden]{display:none!important}
.sbl-qv-dialog{position:relative;width:min(1020px,calc(100vw - 48px));margin:0 auto;background:linear-gradient(180deg,#ffffff 0%,#fbfcff 100%);border:1px solid #e7ecf3;border-radius:24px;box-shadow:0 30px 80px rgba(16,24,40,.25);padding:30px;max-height:min(88vh,820px);overflow:auto}
.sbl-qv-close{position:absolute;top:18px;left:18px;width:42px;height:42px;border:none;border-radius:14px;background:#f5f7fb;color:#1f2937;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:.2s ease;box-shadow:0 8px 18px rgba(17,24,39,.06)}
.sbl-qv-close:hover{background:#eef4ff;color:#2563eb;transform:translateY(-1px)}
.sbl-qv-close svg{width:20px;height:20px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round}
.sbl-qv-grid{display:grid;grid-template-columns:300px minmax(0,1fr);gap:30px;align-items:center}
.sbl-qv-main{min-width:0;order:2}
.sbl-qv-title{margin:0 0 14px!important;font-size:clamp(26px,2.4vw,44px)!important;line-height:1.4!important;font-weight:800!important;color:#1f2937}
.sbl-qv-meta-top{display:flex;flex-wrap:wrap;gap:14px;align-items:center;margin-bottom:16px;color:#6b7280;font-size:14px;line-height:1.8}
.sbl-qv-tax strong{color:#2563eb;font-weight:700}
.sbl-qv-rating{display:inline-flex;align-items:center;gap:4px;color:#374151;background:#f8fafc;border:1px solid #e5e7eb;border-radius:8px;padding:2px 8px}
.sbl-qv-reviews{display:inline-flex;align-items:center;gap:5px}
.sbl-qv-list{list-style:none;margin:0 0 20px;padding:16px 18px;display:grid;gap:10px;background:#f8fbff;border:1px solid #e9eef6;border-radius:16px}
.sbl-qv-list li{display:flex;align-items:flex-start;gap:10px;color:#6b7280;font-size:16px;line-height:1.9}
.sbl-qv-list span{min-width:72px}
.sbl-qv-list strong{color:#333;font-weight:500}
.sbl-qv-price{margin:26px 0 18px;font-size:34px;line-height:1.3;font-weight:800;color:#111827}
.sbl-qv-price ins{text-decoration:none}.sbl-qv-price del{display:inline-block;margin-inline-end:12px;font-size:18px;color:#9ca3af;font-weight:400}
.sbl-qv-actions{display:flex;flex-wrap:wrap;gap:12px;align-items:center}
.sbl-qv-btn{text-decoration:none!important;border:none;border-radius:14px;padding:0 22px;height:54px;display:inline-flex;align-items:center;justify-content:center;gap:10px;cursor:pointer;transition:.2s ease;font-size:18px;line-height:1;font-weight:700}
.sbl-qv-btn svg{width:18px;height:18px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.sbl-qv-btn-primary{background:#208af5;color:#fff;box-shadow:0 14px 28px rgba(32,138,245,.18)}.sbl-qv-btn-primary:hover{background:#1678da;color:#fff;transform:translateY(-1px)}
.sbl-qv-btn-secondary{background:#fff;color:#4b5563;border:1px solid #d1d5db}.sbl-qv-btn-secondary:hover{border-color:#9ca3af;color:#111827}
.sbl-qv-qty{display:inline-flex;align-items:center;height:54px;border:1px solid #d5dbe7;border-radius:14px;overflow:hidden;background:#fff}
.sbl-qv-qty-btn{width:46px;height:52px;border:none;background:#fff;color:#374151;font-size:26px;line-height:1;cursor:pointer}
.sbl-qv-qty-btn:hover{background:#f8fafc}
.sbl-qv-qty-input{width:42px;border:none;text-align:center;font-size:18px;font-weight:700;color:#111827;outline:none;background:transparent}
.sbl-qv-media{min-width:0;order:1}
.sbl-qv-image-wrap{background:linear-gradient(180deg,#ffffff 0%,#f8fbff 100%);border:1px solid #e8eef6;border-radius:20px;box-shadow:0 16px 38px rgba(17,24,39,.08);padding:22px;display:flex;align-items:center;justify-content:center;min-height:460px}
.sbl-qv-image-wrap img{display:block;max-width:100%;height:auto;max-height:430px;object-fit:contain}
body.sbl-qv-open{overflow:hidden}

@media(max-width:1024px){.sbl-el-books-track{gap:22px}.sbl-el-book-card{flex-basis:145px;min-height:290px}.sbl-el-book-cover{width:145px;height:200px}.sbl-el-books-title{font-size:18px!important}.sbl-qv-grid{grid-template-columns:minmax(0,1fr) 230px}.sbl-qv-title{font-size:30px!important}}
@media(max-width:767px){.sbl-el-books-head{margin-bottom:10px}.sbl-el-books-title{font-size:17px!important}.sbl-el-books-track{gap:16px;padding-bottom:6px}.sbl-el-book-card{flex-basis:128px;min-height:264px}.sbl-el-book-cover{width:128px;height:178px;margin-bottom:10px}.sbl-el-book-title{font-size:13px!important;min-height:50px;height:50px}.sbl-el-book-price{font-size:12.5px;min-height:32px;height:32px}.sbl-el-books-arrow{width:34px;height:34px}.sbl-el-book-hover{opacity:1;transform:none;pointer-events:auto}.sbl-el-hover-btn{width:36px;height:36px}.sbl-el-hover-btn svg{width:16px;height:16px}.sbl-qv-overlay{padding:12px}.sbl-qv-dialog{width:min(100%,calc(100vw - 24px));padding:18px 16px 16px;border-radius:18px}.sbl-qv-grid{grid-template-columns:1fr;gap:18px}.sbl-qv-media{order:-1}.sbl-qv-image-wrap{min-height:auto;padding:16px}.sbl-qv-image-wrap img{max-height:280px}.sbl-qv-title{font-size:24px!important;padding-inline-start:24px}.sbl-qv-meta-top{gap:10px;font-size:13px}.sbl-qv-list{padding:14px}.sbl-qv-list li{font-size:14px}.sbl-qv-price{font-size:26px}.sbl-qv-actions{flex-direction:column;align-items:stretch}.sbl-qv-btn,.sbl-qv-qty{width:100%}.sbl-qv-qty-input{flex:1;width:auto}}
