/* Complete Supplements Cart Drawer
   Colors: primary #2B4C6F, dark #1E3550, secondary #3D6B8E, success #4FBB4E, error #A34848 */

.cs-header-cart{position:relative;display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;margin-left:6px;padding:0;background:transparent;border:0;border-radius:999px;color:#2B4C6F;cursor:pointer;transition:background-color .18s ease,color .18s ease;line-height:1;}
.cs-header-cart:hover{background:#EEF2F7;color:#1E3550;}
.cs-header-cart:focus{outline:2px solid #2B4C6F;outline-offset:2px;}
.cs-header-cart i{font-size:18px;}
.cs-cart-bubble{position:absolute;top:-2px;right:-2px;min-width:18px;height:18px;border-radius:999px;background:#2B4C6F;color:#fff;font-size:11px;font-weight:700;display:none;align-items:center;justify-content:center;padding:0 5px;line-height:1;box-shadow:0 0 0 2px #fff;}
.cs-cart-bubble.is-visible{display:inline-flex;}
.cs-cart-bubble.bump{animation:cs-cart-bump .3s ease;}
@keyframes cs-cart-bump{0%{transform:scale(1);}50%{transform:scale(1.3);}100%{transform:scale(1);}}

.cs-drawer-overlay{position:fixed;top:0;left:0;width:100%;height:100%;background:rgba(0,0,0,.45);z-index:9998;opacity:0;visibility:hidden;transition:opacity .28s ease,visibility .28s ease;font-family:'Libre Franklin',-apple-system,BlinkMacSystemFont,sans-serif;}
.cs-drawer-overlay.is-open{opacity:1;visibility:visible;}
.cs-drawer-inner{position:fixed;top:0;right:0;width:420px;max-width:100%;height:100%;background:#fff;z-index:9999;display:flex;flex-direction:column;transform:translateX(100%);transition:transform .3s cubic-bezier(.2,.8,.2,1);box-shadow:-6px 0 24px rgba(0,0,0,.14);}
.cs-drawer-overlay.is-open .cs-drawer-inner{transform:translateX(0);}
.cs-drawer-inner:focus{outline:none;}

.cs-drawer-header{display:flex;align-items:center;justify-content:space-between;padding:18px 22px;border-bottom:1px solid #ececec;flex-shrink:0;}
.cs-drawer-header h2{margin:0;font-size:16px;font-weight:700;color:#111;letter-spacing:-.2px;}
.cs-drawer-count{font-weight:600;color:#2B4C6F;}
.cs-drawer-close{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:50%;border:0;background:#f2f2f5;cursor:pointer;padding:0;transition:background .18s ease;}
.cs-drawer-close:hover{background:#e6e6ec;}
.cs-drawer-close svg{width:16px;height:16px;stroke:#111;stroke-width:2;stroke-linecap:round;fill:none;}

.cs-drawer-body{flex:1;overflow-y:auto;padding:0;}
.cs-drawer-progress-wrap:empty{display:none;}
.cs-progress{padding:16px 22px;border-bottom:1px solid #f1f1f5;background:#fafafb;}
.cs-progress__text{margin:0 0 8px;text-align:center;font-size:13px;font-weight:500;line-height:1.35;color:#333;}
.cs-progress__text strong{color:#2B4C6F;font-weight:700;}
.cs-progress__bar{position:relative;height:8px;background:rgba(43,76,111,.1);border-radius:999px;}
.cs-progress__bar__fill{position:absolute;top:0;left:0;height:100%;border-radius:999px;background-color:#2B4C6F;transition:width .45s ease;min-width:8px;}
.cs-progress__bar__fill--striped{background-image:linear-gradient(315deg,rgba(255,255,255,.45) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.45) 50%,rgba(255,255,255,.45) 75%,transparent 75%,transparent);background-size:16px 16px;animation:cs-slide-bar 4s linear infinite;}
@keyframes cs-slide-bar{from{background-position-x:0;}to{background-position-x:160px;}}
.cs-progress__bar__badge{position:absolute;right:0;top:50%;transform:translate(50%,-50%);width:28px;height:28px;background:#fff;border-radius:50%;border:2px solid #2B4C6F;display:flex;justify-content:center;align-items:center;color:#2B4C6F;}
.cs-progress__bar__badge svg{width:14px;height:14px;}
.cs-progress.is-reached .cs-progress__bar__fill{background-color:#4FBB4E;}
.cs-progress.is-reached .cs-progress__bar__badge{border-color:#4FBB4E;color:#4FBB4E;}
.cs-progress.is-reached .cs-progress__text strong{color:#4FBB4E;}

.cs-items{list-style:none;margin:0;padding:8px 22px 0;}
.cs-item{display:flex;gap:14px;padding: 16px 0 0 16px;border-bottom:1px solid #f1f1f5;align-items:flex-start;}
.cs-item:last-child{border-bottom:none;}
.cs-item__image{width:76px;height:76px;border-radius:10px;overflow:hidden;flex-shrink:0;background:#EEF2F7;display:flex;align-items:center;justify-content:center;}
.cs-item__image img{width:100%;height:100%;object-fit:cover;}
.cs-item__details{flex:1;display:flex;flex-direction:column;gap:4px;min-width:0;}
.cs-item__title{font-weight:700;font-size:14px;color:#111;line-height:1.3;}
.cs-item__label{font-size:11px;color:#5b5b63;text-transform:uppercase;letter-spacing:.06em;font-weight:600;}
.cs-item__price{font-weight:700;font-size:14px;color:#111;margin-top:2px;}
.cs-item__compare{text-decoration:line-through;color:#8a8a93;font-weight:400;font-size:12px;margin-right:6px;}
.cs-item__actions{display:flex;align-items:center;gap:10px;margin-top:6px;}
.cs-item__qty{font-size:12px;font-weight:600;color:#5b5b63;background:#f2f2f5;padding:4px 10px;border-radius:999px;}
.cs-item__remove{background:none;border:0;color:#8a8a93;cursor:pointer;padding:4px;margin-left:auto;display:flex;align-items:center;transition:color .18s ease;}
.cs-item__remove:hover{color:#A34848;}
.cs-item__remove svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;}
.cs-item__free{font-weight:800;font-size:13px;color:#4FBB4E;letter-spacing:.06em;}
.cs-item__gift-pill{margin-left:auto;font-size:11px;font-weight:700;letter-spacing:.06em;color:#4FBB4E;background:#eaf7ea;padding:4px 10px;border-radius:999px;text-transform:uppercase;}

.cs-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:56px 22px;text-align:center;gap:14px;}
.cs-empty__icon{width:64px;height:64px;border-radius:50%;background:#EEF2F7;display:flex;align-items:center;justify-content:center;color:#2B4C6F;}
.cs-empty__icon svg{width:28px;height:28px;}
.cs-empty__text{font-size:16px;font-weight:700;color:#111;}
.cs-empty__subtext{font-size:13px;color:#5b5b63;max-width:260px;line-height:1.5;}
.cs-empty__btn{display:inline-flex;align-items:center;gap:8px;padding:12px 24px;border-radius:10px;background:#2B4C6F;color:#fff;font-weight:700;font-size:14px;text-decoration:none;transition:background .18s ease;}
.cs-empty__btn:hover{background:#1E3550;color:#fff;text-decoration:none;}

.cs-drawer-footer{border-top:0px solid #ececec;flex-shrink:0;display:flex;flex-direction:column;gap:12px;padding:16px 22px 20px;background:#fff;}
.cs-upsell-wrap{display:flex;flex-direction:column;gap:12px;}
.cs-upsell-wrap:empty{display:none;}

.cs-upsell-fenben__title{display:flex;align-items:center;gap:12px;font-size:18px;font-weight:700;letter-spacing:.12em;color:#2B4C6F;margin-bottom:8px;text-transform:uppercase;}
.cs-upsell-fenben__title::before,.cs-upsell-fenben__title::after{content:"";flex:1;height:1px;background:#e4e4ea;}
.cs-upsell-fenben__card{display:flex;gap:12px;background:#f6f6f8;border-radius:12px;padding:12px;align-items:center;border:1px solid #eeeef2;}
.cs-upsell-fenben__image{flex-shrink:0;width:52px;height:52px;display:flex;align-items:center;justify-content:center;background:#fff;border-radius:10px;overflow:hidden;}
.cs-upsell-fenben__image img{width:100%;height:100%;object-fit:contain;padding:6px;}
.cs-upsell-fenben__content{flex:1;min-width:0;}
.cs-upsell-fenben__name{font-weight:700;font-size:13px;color:#111;margin-bottom:4px;line-height:1.2;}
.cs-upsell-fenben__row{display:flex;align-items:center;justify-content:space-between;gap:8px;}
.cs-upsell-fenben__price{font-weight:800;font-size:14px;color:#111;}
.cs-upsell-fenben__btn{padding:6px 14px;border-radius:8px;border:0;background:#2B4C6F;color:#fff;font-weight:700;font-size:12px;font-family:inherit;cursor:pointer;transition:background .18s ease;}
.cs-upsell-fenben__btn:hover{background:#1E3550;}
.cs-upsell-fenben__btn[disabled]{background:#4FBB4E;cursor:default;}

.cs-upsell-priority__title{text-align:center;font-size:11px;font-weight:700;letter-spacing:.12em;color:#2B4C6F;margin-bottom:8px;text-transform:uppercase;position:relative;}
.cs-upsell-priority__title::before,.cs-upsell-priority__title::after{content:"";position:absolute;top:50%;width:calc(50% - 60px);height:1px;background:#e4e4ea;}
.cs-upsell-priority__title::before{left:0;}
.cs-upsell-priority__title::after{right:0;}
.cs-upsell-priority__card{display:flex;gap:12px;background:#f6f6f8;border-radius:12px;padding:12px;align-items:flex-start;border:1px solid #eeeef2;}
.cs-upsell-priority__image{flex-shrink:0;width:52px;height:52px;display:flex;align-items:center;justify-content:center;background:#fff;border-radius:10px;overflow:hidden;}
.cs-upsell-priority__image img{width:100%;height:100%;object-fit:contain;padding:6px;}
.cs-upsell-priority__content{flex:1;min-width:0;}
.cs-upsell-priority__name{font-weight:700;font-size:13px;color:#111;margin-bottom:2px;}
.cs-upsell-priority__desc{font-size:11px;color:#5b5b63;line-height:1.4;margin:0 0 8px;}
.cs-upsell-priority__row{display:flex;align-items:center;justify-content:space-between;gap:8px;}
.cs-upsell-priority__price{font-weight:800;font-size:14px;color:#111;}
.cs-upsell-priority__btn{padding:6px 14px;border-radius:8px;border:0;background:#2B4C6F;color:#fff;font-weight:700;font-size:12px;font-family:inherit;cursor:pointer;transition:background .18s ease;}
.cs-upsell-priority__btn:hover{background:#1E3550;}
.cs-upsell-priority__btn[disabled]{background:#4FBB4E;cursor:default;}

.cs-subtotal{display:flex;justify-content:space-between;align-items:center;padding-top:4px;}
.cs-subtotal__label{font-weight:600;font-size:14px;color:#111;}
.cs-subtotal__amount{font-weight:800;font-size:18px;color:#111;}

.cs-checkout-btn{position:relative;overflow:hidden;z-index:1;width:100%;padding:16px;border:2px solid #2B4C6F;border-radius:12px;background:transparent;color:#fff;font-weight:700;font-size:15px;font-family:inherit;letter-spacing:.3px;text-transform:uppercase;cursor:pointer;transition:color .3s ease,box-shadow .18s ease;box-shadow:0 10px 22px -10px rgba(43,76,111,.55);display:inline-flex;align-items:center;justify-content:center;gap:10px;}
.cs-checkout-btn::after{content:"";position:absolute;inset:0;background:#2B4C6F;z-index:-1;transition:transform .3s ease;transform-origin:center;}
.cs-checkout-btn:hover{color:#2B4C6F;background:transparent;box-shadow:0 14px 26px -10px rgba(43,76,111,.6);}
.cs-checkout-btn:hover::after{transform:scaleX(0);}
.cs-checkout-btn[disabled]{opacity:.75;cursor:wait;}
.cs-checkout-btn[disabled]::after{transform:none;}
.cs-checkout-btn__spinner{display:none;width:16px;height:16px;border:2px solid rgba(255,255,255,.35);border-top-color:#fff;border-radius:50%;animation:cs-spin .7s linear infinite;}
.cs-checkout-btn.is-loading .cs-checkout-btn__spinner{display:inline-block;}
.cs-checkout-btn.is-loading .cs-checkout-btn__label{opacity:.7;}
@keyframes cs-spin{to{transform:rotate(360deg);}}

.cs-payments{display:flex;justify-content:center;align-items:center;gap:8px;padding-top:4px;}
.cs-payments__logo{width:38px;height:24px;border:1px solid #e4e4ea;border-radius:4px;background:#fff;}

.cs-trust{display:flex;flex-direction:column;align-items:center;gap:6px;padding-top:6px;}
.cs-trust__text{font-size:11px;color:#5b5b63;text-align:center;letter-spacing:.02em;}
.cs-trust__text i{color:#4FBB4E;margin-right:4px;}

.cs-error{background:#fff6f6;color:#A34848;border:1px solid #f1c5c5;border-radius:8px;padding:10px 12px;font-size:12px;font-weight:600;text-align:center;}

@media (max-width:560px){
.cs-drawer-inner{width:100%;}
.cs-drawer-header{padding:14px 18px;}
.cs-items{padding:8px 18px 0;}
.cs-drawer-footer{padding:14px 18px 18px;}
.cs-progress{padding:14px 18px;}
.cs-item__image{width:64px;height:64px;}
}
