/* V28 — full-screen, independent shopping bag. Existing checkout remains a second step. */
body.atelier-store #basketPage{display:none;position:fixed;inset:0;z-index:89;overflow:hidden;box-sizing:border-box;background:linear-gradient(145deg,#faf7ef,#f2ede2);color:#211a14;}
body.atelier-store #basketPage.show{display:flex;justify-content:center;animation:basket-in .28s cubic-bezier(.2,.7,.2,1) both;}
#basketPage .basket-shell{width:min(100%,760px);height:100%;display:flex;flex-direction:column;min-height:0;position:relative;margin:auto;box-sizing:border-box;background:radial-gradient(ellipse at 85% 0,#e5d9c57a,transparent 52%);}
#basketPage .basket-header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:calc(14px + env(safe-area-inset-top,0px)) 19px 13px;border-bottom:1px solid #fff;background:#faf7efb8;backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);flex:none;box-shadow:0 4px 24px #211a1408;}
#basketPage .basket-header>div{text-align:center;min-width:0;}
#basketPage .basket-kicker{font-size:10px;letter-spacing:.17em;color:#786b58;font-weight:700;direction:ltr;display:block;}
#basketPage .basket-header h2{font-family:inherit;font-size:25px;line-height:1.35;margin:4px 0 0;font-weight:800;}
#basketPage .basket-back,#basketPage .basket-count{border:1px solid #fff;background:#ffffff95;box-shadow:0 4px 15px #211a140b,inset 0 1px 0 #fff;border-radius:50%;width:46px;height:46px;display:grid;place-items:center;color:#211a14;position:relative;flex:none;padding:0;}
#basketPage svg{width:22px;height:22px;display:block;}
[dir=rtl] #basketPage .basket-back svg{transform:scaleX(-1);}
#basketPage .basket-count b{position:absolute;inset-inline-end:-4px;top:-4px;min-width:19px;height:19px;border-radius:50px;background:#8f2634;color:#fff;font-size:11px;display:grid;place-items:center;padding:0 3px;}
#basketPage .basket-scroll{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:20px 18px 24px;scrollbar-width:thin;}
#basketPage .basket-intro{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:17px;}
#basketPage .basket-intro h3{font-size:17px;font-weight:800;margin:0;}
#basketPage .basket-intro span{color:#786b58;direction:ltr;font-size:12px;letter-spacing:.12em;}
#basketPage .cart-items{display:grid;gap:13px;}
body.atelier-store #basketPage .cart-item{display:grid;grid-template-columns:minmax(80px,112px) minmax(0,1fr);gap:13px;padding:12px;border:1px solid #fff;border-radius:22px!important;background:#ffffff9c;box-shadow:0 8px 24px #211a140b;}
#basketPage .cart-item-image{width:100%;height:100%;min-height:130px;max-height:220px;border-radius:15px;background:#eee7da;}
#basketPage .cart-item-image img{height:100%;width:100%;object-fit:contain;}
#basketPage .cart-item-info{gap:8px;}
#basketPage .cart-item-top{flex-wrap:wrap;}
#basketPage .cart-item-top h4{font-size:14px;overflow-wrap:anywhere;}
#basketPage .cart-item-price,#basketPage .cart-line-total{direction:ltr;unicode-bidi:isolate;}
#basketPage .cart-options select{min-height:39px;border-radius:12px;font-size:13px;background:#fffcf8;}
#basketPage .cart-qty button{min-width:32px;min-height:32px;}
#basketPage .cart-item-bottom{flex-wrap:wrap;gap:7px;}
#basketPage .cart-remove{min-height:30px;}
#basketPage .basket-footer{flex:none;padding:16px 19px calc(13px + env(safe-area-inset-bottom,0px));border-top:1px solid #fff;background:#faf7efdf;backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px);box-shadow:0 -10px 35px #211a140c;}
#basketPage [hidden]{display:none!important;}
#basketPage .basket-summary{display:flex;justify-content:space-between;gap:10px;align-items:baseline;font-size:14px;font-weight:700;}
#basketPage .basket-summary strong{font-size:24px;direction:ltr;unicode-bidi:isolate;}
#basketPage .basket-footer small{display:block;font-size:12px;color:#665b4d;margin:3px 0 13px;}
#basketPage .basket-checkout{position:relative;display:flex;align-items:center;justify-content:center;gap:12px;width:100%;min-height:55px;border-radius:18px;border:1px solid #ffffff3d;background:#211a14;color:#fffdf9;font-size:17px;font-weight:800;box-shadow:0 5px 15px #211a1426;}
#basketPage .basket-checkout:not(:disabled){animation:basket-nudge 4s ease-in-out infinite;}
#basketPage .basket-checkout:disabled{opacity:.55;cursor:not-allowed;}
#basketPage .basket-checkout:active{animation:none;transform:scale(.985);}
[dir=rtl] #basketPage .basket-checkout svg{transform:scaleX(-1);}
#basketPage .basket-cod{display:flex;justify-content:center;align-items:center;gap:5px;color:#665b4d;font-size:11px;margin-top:8px;}
#basketPage .basket-cod svg{width:15px;height:15px;}
#basketPage .basket-empty{text-align:center;padding:48px 12px;color:#665b4d;}
#basketPage .basket-empty>svg{width:60px;height:60px;margin:0 auto 20px;color:#9a702e;}
#basketPage .basket-empty h3{color:#211a14;font-size:23px;margin:0 0 8px;}
#basketPage .basket-continue{min-height:44px;border:1px solid #d8cbb6;background:#fffdf9;color:#211a14;border-radius:16px;padding:10px 24px;margin-top:16px;font-weight:700;}
#basketStatus{font-size:13px;color:#665b4d;}
/* Checkout stays above the basket even if older styles change stacking. */
body.atelier-store #cartModal{z-index:100;}
@media(max-width:360px){#basketPage .basket-scroll{padding-inline:10px;}body.atelier-store #basketPage .cart-item{grid-template-columns:76px minmax(0,1fr);gap:8px;padding:9px;}#basketPage .basket-footer{padding-inline:12px;}}
@keyframes basket-in{from{opacity:0;transform:translateX(-16px)}to{opacity:1;transform:translateX(0)}}
@keyframes basket-nudge{0%,84%,100%{transform:translateX(0)}88%{transform:translateX(-2px)}92%{transform:translateX(2px)}96%{transform:translateX(-1px)}}
@media(prefers-reduced-motion:reduce){body.atelier-store #basketPage.show,#basketPage .basket-checkout:not(:disabled){animation:none;}}

#basketPage .basket-retry{background:transparent;color:var(--ink,#211a14);border:1px solid #d8cbb6;border-radius:10px;padding:6px 12px;font:inherit;margin-inline-start:6px;}
