/* Shared catalogue/shop controls, deliberately scoped away from product pages. */
.qb-buy-box{--qb-navy:#142e49;--qb-red:#d71920;--qb-gold:#ffe29b;color:var(--qb-navy);font-family:'DM Sans',sans-serif;font-size:14px;line-height:1.5;margin-top:22px;min-width:0;text-align:left}
.qb-buy-box *{box-sizing:border-box}.qb-buy-box[hidden],.qb-buy-box [hidden]{display:none!important}
.qb-buy-box form{margin:0}.qb-buy-box fieldset{border:0;margin:0;padding:0;min-width:0}.qb-buy-box legend{float:none;width:auto;padding:0;margin:0 0 10px;font:600 12px/1.5 'DM Sans',sans-serif;letter-spacing:.025em}
.qb-options{display:grid;grid-template-columns:1fr 1fr;gap:9px}.qb-option{position:relative;cursor:pointer;min-width:0;margin:0!important}
.qb-option input,.qb-shapes input{position:absolute;opacity:0;width:1px;height:1px}
.qb-option-content{display:flex;flex-direction:column;gap:7px;min-height:107px;padding:12px 10px;background:#fffdf8;border:1.5px solid #c9bc9e;border-radius:13px;transition:background .15s,border-color .15s}
.qb-format-name{font-size:14px;font-weight:600;line-height:1.35}.qb-option-price{display:flex;align-items:baseline;flex-wrap:wrap;gap:3px 7px;font-size:11px;line-height:1.4}
.qb-option-price strong{font-size:22px;font-weight:700;color:#bb1017;line-height:1.2;letter-spacing:-.02em}.qb-option-price del{font-size:12px;color:#68645e}.qb-option-price small{font-size:11px;white-space:nowrap;color:#ad1319;font-weight:600}
.qb-buy-box [data-pm-local-price] del{font-size:12px!important}.qb-buy-box [data-pm-local-price] small{font-size:11px!important}.qb-buy-box .qb-summary del{font-size:14px!important}.qb-buy-box .qb-summary small{font-size:12px!important}
.qb-option input:checked+.qb-option-content{border:2px solid var(--qb-red);padding:11.5px 9.5px;background:#fff1cd;box-shadow:0 0 0 1px var(--qb-red)}
.qb-option:hover .qb-option-content{border-color:var(--qb-red)}.qb-option input:focus-visible+.qb-option-content,.qb-shapes input:focus-visible+span{outline:3px solid #142e49;outline-offset:3px}
.qb-option input:disabled+.qb-option-content{color:#625d55;background:#ece8df;cursor:not-allowed}
.qb-ebook{grid-column:1/-1}.qb-ebook .qb-option-content{flex-direction:row;align-items:center;justify-content:space-between;min-height:52px;padding:10px;gap:8px}.qb-ebook input:checked+.qb-option-content{padding:9.5px}.qb-ebook .qb-format-name{font-size:12px}.qb-ebook .qb-option-price{justify-content:flex-end}.qb-ebook .qb-option-price strong{font-size:16px}.qb-ebook .qb-option-price small{display:none}
.qb-buy-box .qb-shapes{margin-top:15px}.qb-shapes>div{display:flex;gap:8px}.qb-shapes label{position:relative;flex:1;cursor:pointer}.qb-shapes label>span{border:1px solid #c9bc9e;border-radius:8px;padding:9px;display:flex;align-items:center;justify-content:center;gap:8px;font-size:12px;min-height:44px;background:#fffdf8}.qb-shapes input:checked+span{border-color:var(--qb-red);background:#fff1cd;box-shadow:0 0 0 1px var(--qb-red)}.qb-shapes small{display:block;margin-top:6px;font-size:11px;color:#68645e}.qb-shape-icon{display:inline-block;border:1.5px solid currentColor;border-radius:1px}.qb-portrait-icon{width:13px;height:18px}.qb-landscape-icon{width:18px;height:13px}
.qb-summary{display:flex;align-items:baseline;flex-wrap:wrap;gap:5px 9px;min-height:53px;padding:14px 0 9px;font-size:12px}.qb-summary strong{font-size:29px;letter-spacing:-.025em;color:#bb1017;line-height:1.1}.qb-summary del{font-size:14px;color:#68645e}.qb-summary small{font-size:12px;color:#b11017;font-weight:600}.qb-currency{font-size:10px;color:#68645e}
.qb-buy-box .qb-add{display:flex;align-items:center;justify-content:center;width:100%;min-height:51px;padding:13px 16px;border:1px solid #b70f17;border-radius:28px;background:var(--qb-red);color:var(--qb-gold);font:700 15px/1.4 'DM Sans',sans-serif;cursor:pointer;box-shadow:none;opacity:1;letter-spacing:0}.qb-buy-box .qb-add:hover:not(:disabled){background:#bb1118}.qb-buy-box .qb-add:disabled{cursor:not-allowed;background:var(--qb-red);color:var(--qb-gold);opacity:1}.qb-add:focus-visible,.qb-links a:focus-visible,.qb-title-buttons button:focus-visible,.qb-retry:focus-visible{outline:3px solid #142e49;outline-offset:4px}
.qb-buy-box .qb-note{font-size:11px;line-height:1.5;color:#635d53;margin:9px 0 0;min-height:33px}.qb-links{display:grid;grid-template-columns:1.15fr 1fr;align-items:stretch;gap:10px;margin:0 0 13px;padding:0;border:0}.qb-buy-box .qb-links a{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:32px;padding:6px 10px;border:1px solid transparent;border-radius:26px;text-decoration:none!important;color:#142e49;background:#edc65a;font-size:12px;line-height:1.4;font-weight:700;text-align:center}.qb-buy-box .qb-links a:first-child:hover{background:#e2b842}.qb-buy-box .qb-links a:last-child{background:#15365b;color:#fffaf0}.qb-buy-box .qb-links a:last-child:hover{background:#224b75}.qb-retry{border:0;background:none;color:#a50c13;padding:8px 0;text-decoration:underline;cursor:pointer;font:600 12px 'DM Sans',sans-serif}
.qb-title-buttons{display:flex;gap:8px;margin:10px 0}.qb-title-buttons button{flex:1;min-height:44px;border:1px solid #b5a57e;background:#fffdf8;color:#142e49;border-radius:25px;font:600 13px 'DM Sans',sans-serif;cursor:pointer}.qb-title-buttons button[aria-pressed=true]{background:#142e49;color:#fff4d8;border-color:#142e49}.qb-selected-title{font:600 15px/1.4 'DM Sans',sans-serif;margin:0 0 16px!important}
/* Keep entire cover artwork visible, including titles, inside the current frames. */
.ob-cover>.pm-sale-image{display:flex;align-items:center;justify-content:center;width:100%;height:100%;min-height:0}.ob-cover>.pm-sale-image>img{width:auto!important;height:auto!important;max-width:100%!important;max-height:100%!important;object-fit:contain!important}
.ob-cover .pm-sale-badge{top:4px;right:4px}.ob-book-copy>.qb-buy-box{margin-top:10px;padding-top:0}.ob-catalogue .ob-description{margin-bottom:0}.ob-catalogue .ob-greats h3{min-height:2.16em}
#islamic-world-series .iw-discovery-grid>article{display:flex;flex-direction:column;min-width:0}#islamic-world-series .iw-discovery-grid>article>.qb-buy-box{margin-top:0;padding-top:0}
#islamic-world-series .iw-discovery-grid>article>a>h3{margin-bottom:18px}.yusuf-choice>.qb-buy-box{margin-top:14px}.pm-nora-book-copy>.qb-buy-box{margin-top:20px}.hana-home-action>.qb-buy-box{margin-top:20px}
@media(max-width:1000px) and (min-width:681px){.ob-grid{grid-template-columns:repeat(2,minmax(0,1fr))}#islamic-world-series .iw-discovery-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:680px){.qb-option-content{min-height:103px}.qb-option-price strong{font-size:23px}.qb-buy-box .qb-links a{min-height:34px}.ob-catalogue .ob-greats h3{min-height:0}.qb-summary{min-height:53px}}
@media(prefers-reduced-motion:reduce){.qb-buy-box *{transition:none!important}}

/* The red arrows sit in reserved gutters, outside the book photograph. */
.qb-gallery.qb-gallery{display:grid;grid-template-columns:36px minmax(0,1fr) 36px;grid-template-rows:minmax(0,1fr);align-items:center;gap:5px;padding:16px 5px;position:relative;background:#e8e9df;overflow:hidden;border-radius:11px;box-sizing:border-box}
.qb-gallery .qb-image-link{display:flex!important;align-items:center;justify-content:center;min-width:0;min-height:0;width:100%;height:100%;margin:0!important;padding:0!important;overflow:hidden;border-radius:0!important;background:none!important}
.qb-gallery .pm-sale-image{display:flex!important;align-items:center;justify-content:center;position:relative;width:100%;height:100%;min-height:0}
.qb-gallery.qb-gallery .qb-image-link img{display:block;width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important;object-fit:contain!important;aspect-ratio:auto!important;border-radius:0!important;box-shadow:none!important;margin:0!important}
.qb-gallery .pm-sale-badge{top:4px;right:4px}
.qb-gallery .qb-gallery-arrow{display:flex;align-items:center;justify-content:center;width:30px;height:30px;min-width:30px;min-height:30px;margin:auto;padding:5px;border:0;border-radius:50%;background:#d71920;color:#ffe7ac;cursor:pointer;box-shadow:none;line-height:1}
.qb-gallery-arrow svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.qb-gallery .qb-gallery-arrow:hover{background:#b9131a}.qb-gallery-arrow:focus-visible{outline:3px solid #142e49;outline-offset:2px}.qb-gallery-arrow:disabled{opacity:.4;cursor:default}
.qb-sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
.qb-shop-gallery{height:300px;margin-bottom:18px}.qb-gallery.yusuf-image{height:350px}.qb-gallery.hana-home-cover{height:350px}.qb-gallery.pm-nora-cover{height:340px}
@media(max-width:680px){.qb-gallery.qb-gallery{grid-template-columns:30px minmax(0,1fr) 30px;gap:3px;padding:12px 3px}.qb-gallery .qb-gallery-arrow{width:26px;height:26px;min-width:26px;min-height:26px;padding:3px}.qb-shop-gallery{height:250px}.qb-gallery.yusuf-image,.qb-gallery.hana-home-cover{height:260px}}

/* Homepage ID rules must not override the gallery grid or its bounded cover. */
[data-qb-gallery].qb-gallery{display:grid!important;grid-template-columns:36px minmax(0,1fr) 36px!important;grid-template-rows:minmax(0,1fr)!important;height:340px!important;min-height:0!important;max-height:340px!important;align-items:center!important}
[data-qb-gallery]>.qb-gallery-prev{grid-column:1!important;grid-row:1!important}
[data-qb-gallery]>.qb-image-link{grid-column:2!important;grid-row:1!important;height:100%!important;min-height:0!important}
[data-qb-gallery]>.qb-gallery-next{grid-column:3!important;grid-row:1!important}
[data-qb-gallery] .pm-sale-image{height:100%!important;min-height:0!important;max-height:100%!important}
[data-qb-gallery] .qb-image-link img{height:100%!important;width:100%!important;max-height:100%!important;object-fit:contain!important}
@media(max-width:680px){[data-qb-gallery].qb-gallery{height:260px!important;max-height:260px!important;grid-template-columns:30px minmax(0,1fr) 30px!important}}
