/* Falcon Family – redesign prototype 1120. Mobile first, RTL. */
:root{
  --ink:#1d1b2e; --muted:#6b6880; --line:#ebe7f3; --bg:#fbf9f5; --card:#fff;
  --brand:#5b2bd6; --brand2:#12b3a0; --buy:#ffc533; --buy-ink:#1d1b2e; --sale:#d23c4b;
  --r:16px; --pad:16px;
}
*{box-sizing:border-box;margin:0;padding:0}
html{-webkit-text-size-adjust:100%}
body{font-family:"IBM Plex Sans Arabic","Noto Sans Arabic",Tahoma,system-ui,sans-serif;background:var(--bg);color:var(--ink);line-height:1.5;font-size:15px}
a{color:inherit;text-decoration:none}
img{display:block;max-width:100%}
button{font:inherit;cursor:pointer;border:0;background:none;color:inherit}
.wrap{max-width:1200px;margin:0 auto;padding:0 var(--pad)}

/* header */
.hdr{position:sticky;top:0;z-index:20;background:rgba(251,249,245,.94);backdrop-filter:saturate(1.4) blur(10px);border-bottom:1px solid var(--line)}
.hdr .wrap{display:flex;align-items:center;gap:14px;height:56px}
.logo{display:flex;align-items:center;gap:8px;font-weight:700;flex-shrink:0}
.logo img{width:36px;height:36px;border-radius:10px;object-fit:cover}
.logo span{display:none}
.nav{display:flex;gap:16px;margin-inline-start:auto;font-size:14.5px;font-weight:600;white-space:nowrap}
.nav a{color:var(--muted);padding:6px 0;border-bottom:2px solid transparent}
.nav a.on{color:var(--ink);border-color:var(--brand)}

/* hero */
.hero{padding:14px 0 6px}
.hero h1{font-size:21px;font-weight:700;line-height:1.35;letter-spacing:-.2px}
.hero h1 b{background:linear-gradient(90deg,var(--brand),var(--brand2));-webkit-background-clip:text;background-clip:text;color:transparent}
.trust{display:inline-flex;align-items:center;gap:6px;font-size:13px;color:#0d7d70;font-weight:600;margin-top:2px}
.trust:before{content:"";width:16px;height:16px;border-radius:50%;background:#12b3a0 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' stroke='white' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") center/12px no-repeat}

/* grids */
.grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}
.hero .grid{margin-top:10px;gap:10px}
.card{background:var(--card);border-radius:var(--r);overflow:hidden;box-shadow:0 1px 2px rgba(29,27,46,.06),0 4px 14px rgba(29,27,46,.05);display:flex;flex-direction:column;transition:transform .15s}
.card:active{transform:scale(.985)}
.card .cv{background:#f2eefa;aspect-ratio:1004/1300;overflow:hidden}
.card .cv img{width:100%;height:100%;object-fit:contain}
.sec-colouring .card .cv{aspect-ratio:1300/919}
.sec-stories .card .cv{aspect-ratio:1/1}
.card .bd{padding:8px 10px 10px;display:flex;flex-direction:column;gap:3px;flex:1}
.card h3{font-size:14px;font-weight:600;line-height:1.4;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:2.8em}
.hero .card h3{-webkit-line-clamp:1;min-height:0}
.meta{font-size:12px;color:var(--muted)}
.price{display:flex;align-items:baseline;gap:6px;margin-top:auto;padding-top:2px}
.price .now{font-size:17px;font-weight:700}
.price .now small{font-size:12px;font-weight:600}
.price s{font-size:12.5px;color:var(--muted)}
.price .off{font-size:11.5px;font-weight:700;color:var(--sale);background:#fdecee;border-radius:6px;padding:0 5px}
.btn-buy{display:flex;align-items:center;justify-content:center;height:40px;border-radius:12px;background:var(--buy);color:var(--buy-ink);font-weight:700;font-size:14.5px;margin-top:6px;box-shadow:inset 0 -2px 0 rgba(0,0,0,.08)}
.btn-buy:active{filter:brightness(.95)}

/* bundle strip */
.bundle{display:flex;align-items:center;gap:12px;margin:18px 0 4px;padding:12px;border-radius:var(--r);background:linear-gradient(120deg,#2a1670,#5b2bd6 55%,#12b3a0);color:#fff}
.bundle .stack{display:flex;flex-shrink:0}
.bundle .stack img{width:42px;height:54px;object-fit:contain;background:#f2eefa;border-radius:6px;border:2px solid #fff;margin-inline-start:-14px;box-shadow:0 2px 6px rgba(0,0,0,.25)}
.bundle .stack img:first-child{margin-inline-start:0}
.bundle .tx{flex:1;min-width:0;font-size:13.5px;line-height:1.35}
.bundle .tx b{display:block;font-size:15px}
.bundle .btn-buy{margin:0;height:38px;padding:0 14px;white-space:nowrap}

/* sections */
.sec{padding:22px 0 6px}
.sec-h{display:flex;align-items:baseline;justify-content:space-between;margin-bottom:10px}
.sec-h h2{font-size:19px;font-weight:700}
.sec-h a{font-size:14px;font-weight:600;color:var(--brand)}

/* footer */
.ftr{margin-top:34px;border-top:1px solid var(--line);padding:22px 0 90px;font-size:13px;color:var(--muted)}
.ftr .wrap{display:flex;flex-wrap:wrap;gap:8px 18px;align-items:center}
.ftr .sp{flex:1}

/* product page */
.pd{padding-top:12px;padding-bottom:12px}
.gal .main{background:#f2eefa;border-radius:var(--r);overflow:hidden;display:flex;justify-content:center}
.gal .main img{max-height:50vh;cursor:zoom-in;width:auto;object-fit:contain}
.thumbs{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-top:8px}
.thumbs button{border-radius:10px;overflow:hidden;background:#fff;border:2px solid transparent;aspect-ratio:3/4}
.thumbs button.on{border-color:var(--brand)}
.thumbs img{width:100%;height:100%;object-fit:contain}
.thumbs .lbl{display:none}
.pd h1{font-size:20px;line-height:1.35;margin-top:12px}
.pd .meta{font-size:13.5px;margin-top:2px}
.pd .price .now{font-size:24px}
.pd .btn-buy{height:52px;font-size:17px;border-radius:14px;margin-top:10px}
.pd .trust{margin-top:8px}
.bul{list-style:none;margin-top:16px;display:grid;gap:8px}
.bul li{position:relative;padding-inline-start:24px;font-size:14.5px}
.bul li:before{content:"";position:absolute;inset-inline-start:0;top:6px;width:14px;height:14px;border-radius:50%;background:var(--brand2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' stroke='white' stroke-width='2.2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") center/11px no-repeat}
.prevh{font-size:16px;font-weight:700;margin:22px 0 8px}
.prevs{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.prevs img{border-radius:10px;background:#fff;aspect-ratio:3/4;object-fit:contain;width:100%;box-shadow:0 1px 4px rgba(0,0,0,.08)}
.sticky{position:fixed;inset-inline:0;bottom:0;z-index:30;background:#fff;border-top:1px solid var(--line);padding:10px var(--pad) calc(10px + env(safe-area-inset-bottom));display:flex;align-items:center;gap:12px;transform:translateY(110%);transition:transform .2s}
.sticky.show{transform:none}
.sticky .price{margin:0;padding:0}
.sticky .btn-buy{flex:1;margin:0;height:46px}
.lb{position:fixed;inset:0;background:rgba(15,12,30,.92);z-index:50;display:none;align-items:center;justify-content:center;padding:20px}
.lb.show{display:flex}
.lb img{max-height:90vh;border-radius:8px}

/* checkout */
.co{max-width:480px;margin:0 auto;padding:16px var(--pad) 40px}
.co .back{font-size:14px;color:var(--muted);font-weight:600}
.co h1{font-size:20px;margin:10px 0 12px}
.item{display:flex;gap:12px;align-items:center;background:#fff;border-radius:var(--r);padding:10px;box-shadow:0 1px 3px rgba(0,0,0,.05)}
.item img{width:64px;height:82px;object-fit:contain;background:#f2eefa;border-radius:8px;flex-shrink:0}
.item .t{flex:1;font-weight:600;font-size:14.5px;line-height:1.4}
.item .t .meta{font-weight:400}
.item .p{font-weight:700;white-space:nowrap}
.fld{margin-top:18px}
.fld label{display:block;font-weight:600;font-size:14.5px;margin-bottom:6px}
.fld input{width:100%;height:50px;border:1.5px solid #d9d4e6;border-radius:12px;padding:0 14px;font:inherit;font-size:16px;background:#fff;direction:ltr;text-align:right}
.fld input:focus{outline:none;border-color:var(--brand);box-shadow:0 0 0 3px rgba(91,43,214,.15)}
.fld .hint{font-size:12.5px;color:var(--muted);margin-top:4px}
.fld .err{font-size:12.5px;color:var(--sale);margin-top:4px;display:none}
.codebtn{margin-top:12px;font-size:14px;font-weight:600;color:var(--brand);text-decoration:underline;text-underline-offset:3px}
.coderow{display:none;gap:8px;margin-top:8px}
.coderow.show{display:flex}
.coderow input{flex:1;height:46px;border:1.5px solid #d9d4e6;border-radius:12px;padding:0 12px;font:inherit;font-size:16px;direction:ltr;text-align:right}
.coderow button{height:46px;padding:0 16px;border-radius:12px;background:#efeaf9;color:var(--brand);font-weight:700}
.total{display:flex;justify-content:space-between;align-items:baseline;margin-top:18px;padding-top:14px;border-top:1px dashed #d9d4e6;font-weight:700;font-size:17px}
.co .btn-buy{height:54px;font-size:18px;border-radius:14px;margin-top:14px;width:100%}
.co .trust{display:flex;justify-content:center;margin-top:10px}
.co .pay{text-align:center;font-size:12.5px;color:var(--muted);margin-top:4px}
.done{display:none;text-align:center;padding:30px 10px}
.done.show{display:block}

/* collection */
.colh{padding:16px 0 10px}
.colh h1{font-size:22px}

@media (min-width:380px){ .logo span{display:none} }
@media (min-width:720px){
  :root{--pad:24px}
  .logo span{display:inline}
  .nav{gap:28px;font-size:15.5px}
  .grid{grid-template-columns:repeat(4,1fr);gap:20px}
  .sec-colouring .grid{grid-template-columns:repeat(4,1fr)}
  .hero{padding:28px 0 8px}
  .hero h1{font-size:32px}
  .hero .grid{gap:20px;margin-top:18px}
  .card h3{font-size:15.5px}
  .hero .card h3{-webkit-line-clamp:2;min-height:2.8em}
  .btn-buy{height:44px}
  .bundle{padding:16px 22px}
  .bundle .stack img{width:56px;height:72px}
  .bundle .tx{font-size:15px}.bundle .tx b{font-size:18px}
  .sec{padding:36px 0 6px}
  .sec-h h2{font-size:24px}
  .pd-grid{display:grid;grid-template-columns:1.1fr 1fr;gap:40px;align-items:start}
  .pd h1{font-size:28px;margin-top:0}
  .gal .main img{max-height:70vh}
  .sticky{display:none}
  .prevs{gap:14px}
}
@media (min-width:1100px){ .sec-stories .grid{grid-template-columns:repeat(6,1fr)} }
@media (max-width:719px){
  .scroller{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;gap:12px;margin:0 calc(var(--pad)*-1);padding:2px var(--pad) 10px;scrollbar-width:none}
  .scroller::-webkit-scrollbar{display:none}
  .scroller .card{flex:0 0 78%;scroll-snap-align:start}
}

.off{direction:ltr;unicode-bidi:isolate}
html body.redesigned-bookstore{background:#fbf9f5!important;color:#1d1b2e!important;font-family:'IBM Plex Sans Arabic',Tahoma,system-ui,sans-serif!important}
.redesigned-bookstore .hdr{background:rgba(251,249,245,.97)!important;color:#1d1b2e!important}
.redesigned-bookstore .hdr .wrap{height:56px}
.redesigned-bookstore .btn-buy{background:#ffc533!important;color:#1d1b2e!important;text-decoration:none!important;min-height:40px}
.redesigned-bookstore .nav a{min-height:44px;display:flex;align-items:center}
.redesigned-bookstore .price{justify-content:flex-start}
.redesigned-bookstore .price .off{color:#d23c4b!important}
.redesigned-bookstore .meta{color:#6b6880!important}
.hero h1{white-space:nowrap;font-size:clamp(18px,5.3vw,21px)}
.hero .meta{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:10.5px}
.hero .card .cv{aspect-ratio:auto;height:clamp(148px,calc((100svh - 410px)/2),215px)}
.hero .card .bd{padding:6px 9px 8px;gap:2px}
.hero .card h3{font-size:13px;white-space:nowrap;display:block;text-overflow:ellipsis;overflow:hidden;line-height:1.5}
.hero .btn-buy{margin-top:3px}
.bundle-more{border:1px solid rgba(255,255,255,.7);border-radius:10px;padding:9px;white-space:nowrap;font-size:13px;font-weight:700}
.prevs button{padding:0;border:0;border-radius:10px;background:none}
.pd .gal .main{border:0;width:100%;padding:0}
.zoom-dialog{border:0;border-radius:16px;padding:12px;background:#fbf9f5;max-width:min(95vw,1000px);max-height:94vh;margin:auto}
.zoom-dialog img{max-height:85vh;object-fit:contain;margin:auto}
.zoom-dialog::backdrop{background:rgba(29,27,46,.4)}
.zoom-close{position:absolute;inset-inline-end:8px;top:6px;background:white;border-radius:50%;width:44px;height:44px;font-size:25px}
.redesign-checkout .hdr .logo span{display:none}
.redesign-checkout .customer-checkout{display:block;position:static;width:100%;max-width:none;margin:0;padding:0;border:0;box-shadow:none;background:none;color:var(--ink)}
.redesign-checkout #checkout-loading[hidden],.redesign-checkout [hidden]{display:none!important}
.redesign-checkout .customer-checkout h1{margin:10px 0 12px;font-size:20px}
.redesign-checkout .customer-checkout .back{display:inline-flex;min-height:40px;align-items:center}
.redesign-checkout .customer-checkout .item{margin-bottom:8px}
.redesign-checkout .customer-checkout .item .meta{margin-top:3px;font-size:11px;font-weight:400}
.redesign-checkout .customer-checkout .item .p{font-size:13px}
.redesign-checkout .checkout-discount-controls{display:flex;gap:8px;margin-top:8px}
.redesign-checkout .checkout-discount-controls input{min-width:0;flex:1;height:46px;border:1.5px solid #d9d4e6;border-radius:12px;padding:0 12px;font:inherit;direction:ltr;background:white}
.redesign-checkout #apply-discount{height:46px;padding:0 16px;border-radius:12px;background:#efeaf9;color:#5b2bd6;font-weight:700}
.redesign-checkout #customer-error,.redesign-checkout #email-error{color:#d23c4b}
.redesign-checkout #payment-fallback{font-size:14px;margin-top:12px;text-decoration:underline;color:#5b2bd6}
.redesign-checkout .customer-checkout #discount-status{font-size:13px;color:#6b6880}
.redesigned-bookstore .ftr{background:transparent!important}
.collection-page .sec-h>a{display:none}
.redesign-checkout .co,.redesign-checkout .customer-checkout,.redesign-checkout form{width:100%;min-width:0;max-width:100%}
.redesign-checkout .co{max-width:480px}
.redesign-checkout .customer-checkout :is(input,button){font-size:16px;max-width:100%;box-sizing:border-box}
.redesign-checkout .customer-checkout input{min-width:0}
.redesign-checkout .checkout-discount-controls input{width:0;flex:1 1 0%;font-size:16px}
.redesign-checkout #apply-discount{flex:0 0 auto;font-size:16px}
.redesign-checkout .item .t{min-width:0;overflow-wrap:anywhere}
.redesign-checkout .item .p,.redesign-checkout .total strong{flex:0 0 auto}
.redesign-checkout :is(#checkout-error,#customer-error){overflow-wrap:anywhere;color:#b32f3e;margin-top:10px}
.customer-checkout #customer-error{display:block!important;min-height:1.5em}
.checkout-discount-controls input{font-size:16px}
.customer-checkout :is(input,button){font-size:16px;max-width:100%}
.customer-checkout .checkout-discount-controls input{width:0;min-width:0;flex:1 1 0%}
.customer-checkout .checkout-discount-controls button{flex:0 0 auto}
.has-bookstore :is(.bookstore-cover,.shop-item .item-image) img{object-fit:contain!important;background:#f2f0f5}
@media(min-width:720px){.hero h1{font-size:32px}.hero .card .cv{height:auto;aspect-ratio:1004/1300}.hero .card h3{font-size:15.5px}.hero .meta{font-size:12px}.hero .card .bd{padding:8px 10px 10px}.sec-stories .grid{grid-template-columns:repeat(4,1fr)}.pd-grid{grid-template-areas:'detail cover';grid-template-columns:1fr 1.1fr}.pd-grid>.gal{grid-area:cover}.pd-details{grid-area:detail}.pd .main img{max-height:70vh}.redesign-checkout .co{padding-top:16px}}
@media(max-width:379px){:root{--pad:12px}.nav{gap:12px;font-size:13.5px}.hdr .wrap{gap:10px}.hero{padding-top:10px}.hero h1{font-size:18px}.hero .grid{gap:8px;margin-top:7px}.hero .card .bd{padding:5px 7px 7px}.hero .card h3{font-size:12.5px}.hero .meta{font-size:10px}.hero .price .now{font-size:16px}.hero .price s,.hero .price .off{font-size:11px}}
@media(max-width:719px){html:has(body.redesigned-bookstore){scrollbar-width:none}html:has(body.redesigned-bookstore)::-webkit-scrollbar{display:none}}

/* One bundle destination and clear payment guidance. */
.payment-guidance{font-size:14px;line-height:1.6;color:#424957;margin:12px 0 8px;overflow-wrap:anywhere}
.customer-checkout .payment-guidance{font-size:14px;line-height:1.6;margin:10px 0 6px}
.bundle-landing{max-width:1000px;padding-top:14px}
.bundle-hero{display:grid;gap:12px}
.bundle-intro h1{font-size:23px;line-height:1.35;margin:0 0 6px}
.bundle-intro>p{font-size:14px;color:var(--muted)}
.bundle-covers{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;min-width:0;background:#f2f0f5;padding:10px;border-radius:16px}
.bundle-covers img{width:100%;height:min(24svh,180px);object-fit:contain}
.bundle-purchase .price{margin:0 0 6px}
.bundle-purchase .payment-guidance{margin:6px 0 8px}
.bundle-buy{width:100%;min-height:52px;font-size:18px;margin:0}
.bundle-inside{margin:28px 0}
.bundle-inside h2{font-size:20px;margin-bottom:12px}
@media(min-width:720px){.bundle-landing{padding-top:32px}.bundle-hero{grid-template-columns:1fr 1fr;gap:24px;align-items:center}.bundle-intro{grid-column:1}.bundle-covers{grid-column:2;grid-row:1/3}.bundle-covers img{height:280px}.bundle-purchase{grid-column:1;grid-row:2}.bundle-intro h1{font-size:30px}.bundle-inside{margin-top:48px}}

/* Cart/payment presentation only; amounts and offer calculations are unchanged. */
#customer-checkout .offer-saving-row{display:flex;justify-content:space-between;align-items:baseline;gap:12px;list-style:none;padding-inline-start:0;margin-block:8px;font-size:14px;line-height:1.5}
#customer-checkout .offer-saving-row::before{content:none}
#customer-checkout .offer-saving-row>span{min-width:0}
#customer-checkout .offer-saving-row>strong{flex-shrink:0;white-space:nowrap;text-align:end}
#customer-checkout .order-total-values{display:inline-flex;align-items:baseline;justify-content:flex-end;flex-wrap:wrap;gap:8px}
#customer-checkout .original-subtotal{font-size:14px;font-weight:400;color:#667085;text-decoration:line-through;white-space:nowrap}
#customer-checkout .close.back{display:inline-flex;align-items:center;justify-content:center;gap:6px;position:static;float:none;width:auto;height:auto;min-height:40px;max-width:100%;padding:6px 10px;border:1px solid #dce4ee;border-radius:8px;background:#fff;font-family:inherit;font-weight:600;font-size:16px;line-height:1.4;white-space:nowrap;box-shadow:none}
#customer-checkout .checkout-back-arrow{display:inline;font-size:18px;line-height:1;flex:none}
