/* Coșul magazinului — iconița din meniu și drawer-ul lateral. Design deschis, în brandul MasterHub. */
.cart-ico{position:relative;display:inline-flex;align-items:center;justify-content:center;width:42px;height:42px;border-radius:11px;background:#fff;border:1px solid #e0e3ea;margin-right:4px;flex-shrink:0}
.cart-ico svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;color:#11141b}
.cart-ico:hover{border-color:#c9ced8}
.cart-badge{position:absolute;top:-6px;right:-6px;min-width:19px;height:19px;padding:0 5px;border-radius:10px;background:var(--brand,#e4141c);color:#fff;font-size:11px;font-weight:700;display:flex;align-items:center;justify-content:center;line-height:1}
.cart-badge[hidden]{display:none}

.mhcart-wrap[hidden]{display:none}
.mhcart-wrap{position:fixed;inset:0;z-index:1200}
.mhcart-scrim{position:absolute;inset:0;background:rgba(17,20,27,.38);opacity:0;transition:opacity .2s ease}
.mhcart-wrap.open .mhcart-scrim{opacity:1}
.mhcart{position:absolute;top:0;right:0;height:100%;width:min(446px,100%);background:#fff;box-shadow:-18px 0 50px rgba(17,20,27,.18);display:flex;flex-direction:column;transform:translateX(100%);transition:transform .24s cubic-bezier(.4,0,.2,1)}
.mhcart-wrap.open .mhcart{transform:translateX(0)}
.mhcart-h{padding:20px 22px 15px;border-bottom:1px solid #eef0f4;display:flex;align-items:center;justify-content:space-between;gap:10px}
.mhcart-h h2{font-size:18px;margin:0;flex:1}
.mhcart-x{border:0;background:none;color:#98a2b3;font-size:26px;line-height:1;cursor:pointer;padding:0 2px}
.mhcart-body{flex:1;display:flex;flex-direction:column;overflow-y:auto}

.mhc-items{padding:4px 22px;flex:1}
.mhc-it{display:flex;gap:12px;padding:14px 0;border-bottom:1px solid #f2f4f7}
.mhc-ic{width:40px;height:40px;border-radius:10px;display:flex;align-items:center;justify-content:center;flex-shrink:0;background:#f3f5f9;color:var(--brand,#e4141c)}
.mhc-ic svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.mhc-nm{font-weight:650;font-size:14px;line-height:1.3}
.mhc-mt{color:#8a93a3;font-size:12.5px;margin-top:3px}
.mhc-bad{display:inline-block;font-size:10.5px;font-weight:700;padding:2px 7px;border-radius:20px;margin-left:6px;vertical-align:1px}
.mhc-bad.m{background:#eef4ff;color:#2563eb}.mhc-bad.y{background:#fef3c7;color:#b45309}.mhc-bad.o{background:#dcfce7;color:#047857}
.mhc-rt{margin-left:auto;text-align:right;flex-shrink:0}
.mhc-pp{font-weight:750;font-size:14px}
.mhc-rm{color:#b42318;font-size:12px;margin-top:4px;background:none;border:0;cursor:pointer;padding:0}
.mhc-bad.bad,.mhc-reason{color:#b42318}
.mhc-qty{display:inline-flex;align-items:center;gap:0;margin-top:6px;border:1px solid #e0e3ea;border-radius:8px;overflow:hidden}
.mhc-qty button{width:26px;height:24px;border:0;background:#f6f8fb;color:#11141b;font-size:15px;cursor:pointer}
.mhc-qty span{min-width:26px;text-align:center;font-size:13px;font-weight:650}

.mhc-empty{padding:60px 22px;text-align:center;color:#8a93a3}
.mhc-empty svg{width:46px;height:46px;stroke:#cbd2dd;fill:none;stroke-width:1.6;margin-bottom:12px}

.mhc-promo{display:flex;gap:8px;padding:14px 22px 4px}
.mhc-promo input{flex:1;height:42px;border:1px solid #d6d9e1;border-radius:10px;padding:0 13px;font-size:14px;text-transform:uppercase}
.mhc-promo button{height:42px;padding:0 16px;border:0;border-radius:10px;background:#11141b;color:#fff;font-weight:650;font-size:14px;cursor:pointer}
.mhc-applied{margin:6px 22px 0;background:#ecfdf3;border:1px solid #abefc6;color:#067647;border-radius:9px;padding:8px 12px;font-size:13px;display:flex;justify-content:space-between;align-items:center}
.mhc-applied button{background:none;border:0;color:#067647;cursor:pointer;font-size:16px}
.mhc-err{margin:6px 22px 0;color:#b42318;font-size:12.5px}

.mhc-sum{padding:12px 22px 0;border-top:1px solid #eef0f4;margin-top:8px}
.mhc-row{display:flex;justify-content:space-between;font-size:14px;padding:6px 0;color:#475467}
.mhc-row b{color:#11141b}
.mhc-row .q{color:#98a2b3;font-size:11.5px;font-weight:600;border:1px solid #e0e3ea;border-radius:5px;padding:1px 5px;margin-left:6px}
.mhc-total{display:flex;justify-content:space-between;align-items:baseline;padding:11px 0 2px;border-top:1px solid #eef0f4;margin-top:4px}
.mhc-total .l{font-size:15px;font-weight:700}.mhc-total .v{font-size:24px;font-weight:800}
.mhc-total .v small{font-size:12px;color:#8a93a3;font-weight:600}
.mhc-pay{margin:22px 22px 10px;height:50px;width:calc(100% - 44px);border:0;border-radius:12px;background:var(--brand,#e4141c);color:#fff;font-size:15.5px;font-weight:750;cursor:pointer;display:flex;align-items:center;justify-content:center;gap:9px;text-decoration:none;transition:background .15s}
.mhc-pay:hover,.mhc-pay:focus{background:#c20f16;color:#fff;text-decoration:none}
.mhc-pay:hover svg,.mhc-pay svg{width:18px;height:18px;fill:none;stroke:#fff;stroke-width:2}
.mhc-note{padding:0 22px 20px;color:#98a2b3;font-size:11.5px;line-height:1.5}
.mhc-main{flex:1;min-width:0}
.mhc-disc{color:#067647}
.mhcart.busy{opacity:.6;pointer-events:none}
@media (max-width:520px){.mhcart{width:100%}}

/* Pagina /cart — folosește layout-ul .order (stânga: produse + formulare; dreapta: rezumat sticky), ca pagina de comandă */
/* pe coș NU e banner roșu deasupra ca la comandă, deci nu urcăm cardurile peste titlu/alertă (altfel eroarea rămâne ascunsă sub carduri) */
.order.cart-order{margin-top:14px}
.cartp{padding:34px 0 60px}
.cartp>.wrap>h1{font-size:26px;margin:0 0 20px}
.cartp-empty{text-align:center;padding:50px 0;color:#8a93a3}
.cartp-empty svg{width:54px;height:54px;stroke:#cbd2dd;fill:none;stroke-width:1.5;margin-bottom:14px}
.cartp-empty p{margin:0 0 18px;font-size:16px}
/* produsele, în cardul din stânga */
.cartp-items{margin-bottom:2px}
.cartp-it{display:flex;gap:14px;align-items:flex-start;padding:16px 0;border-bottom:1px solid #f2f4f7}
.cartp-it:first-child{padding-top:4px}
.cartp-it:last-child{border-bottom:0}
.cartp-it.bad{opacity:.6}
.cartp-info{flex:1;min-width:0}
.cartp-nm{font-weight:650;font-size:15px}
.cartp-mt{color:#8a93a3;font-size:13px;margin-top:4px}
.cartp-ctl{display:flex;align-items:center;gap:16px;margin-top:10px}
.cartp-qty{display:inline-flex;align-items:center;border:1px solid #e0e3ea;border-radius:9px;overflow:hidden}
.cartp-qty button{width:30px;height:28px;border:0;background:#f6f8fb;color:#11141b;font-size:16px;cursor:pointer}
.cartp-qty span{min-width:30px;text-align:center;font-size:14px;font-weight:650}
.cartp-rm{background:none;border:0;color:#b42318;font-size:13px;cursor:pointer;padding:0}
.cartp-pp{font-weight:750;font-size:16px;white-space:nowrap}
/* rezumatul, în cardul-summary din dreapta */
.cart-order .summary h2{font-size:17px;margin:0 0 12px}
.cartp-promo{display:flex;gap:8px;margin-bottom:12px}
.cartp-promo input{flex:1;min-width:0;height:42px;border:1px solid #d6d9e1;border-radius:10px;padding:0 13px;font-size:14px;text-transform:uppercase}
.cartp-promo button{height:42px;padding:0 16px;border:0;border-radius:10px;background:#11141b;color:#fff;font-weight:650;font-size:14px;cursor:pointer;flex-shrink:0}
.cartp-row{display:flex;justify-content:space-between;align-items:baseline;font-size:14.5px;padding:8px 0;color:#475467}
.cartp-row b{color:#11141b}
.cartp-row .q{color:#98a2b3;font-size:11.5px;font-weight:600;border:1px solid #e0e3ea;border-radius:5px;padding:1px 5px;margin-left:4px}
.cartp-total{display:flex;justify-content:space-between;align-items:baseline;padding:14px 0 2px;margin-top:6px;border-top:1px solid #eef0f4;font-size:16px;font-weight:700}
.cartp-total b{font-size:22px;font-weight:850;white-space:nowrap}
.cartp-total small{font-size:12px;color:#8a93a3;font-weight:600}
.cartp-note{color:#98a2b3;font-size:12px;line-height:1.5;margin:14px 0 0}
.summary .mhc-applied{background:#ecfdf3;border:1px solid #abefc6;color:#067647;border-radius:9px;padding:8px 12px;font-size:13px;margin:0 0 12px}
.summary .mhc-err{color:#b42318;font-size:12.5px;margin:0 0 12px}
.mhc-disc{color:#067647}

/* Pagina de final a comenzii */
.cartp-done{max-width:560px;margin:0 auto;text-align:center;padding:30px 0}
.cartp-done h1{font-size:24px;margin:14px 0 8px}
.cartp-done p{color:#667085;font-size:15px;margin:0 0 20px}
.done-ic{width:64px;height:64px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;font-size:32px;font-weight:800;color:#fff;margin:0 auto}
.done-ic.ok{background:#12b76a}.done-ic.warn{background:#f79009}.done-ic.bad{background:#e4141c}
.done-list{list-style:none;padding:0;margin:0 0 22px;text-align:left;border:1px solid #e6e8ee;border-radius:12px;overflow:hidden}
.done-list li{display:flex;justify-content:space-between;align-items:center;padding:13px 16px;border-bottom:1px solid #f2f4f7;font-size:14.5px}
.done-list li:last-child{border-bottom:0}
.done-list li b{font-size:12px;font-weight:700;padding:3px 10px;border-radius:20px}
.done-list li.ok b{background:#dcfce7;color:#047857}
.done-list li.bad b{background:#fee4e2;color:#b42318}
.done-list li.bad span{color:#98a2b3}
.cartp-done-cta{display:flex;gap:10px;justify-content:center;flex-wrap:wrap}

.ord-cart{margin-top:9px}

/* Coșul ca review: numărul de produse, datele tale cu buton de editare */
.cart-count{display:inline-flex;align-items:center;justify-content:center;min-width:22px;height:22px;padding:0 7px;border-radius:11px;background:var(--brand,#e4141c);color:#fff;font-size:12px;font-weight:700;margin-left:6px;vertical-align:2px}
.cart-you{background:#f7f8fb;border:1px solid #e9ecf2;border-radius:12px;padding:12px 16px}
.cart-you-line{display:flex;justify-content:space-between;gap:12px;padding:5px 0;font-size:14.5px;border-bottom:1px solid #eef0f4}
.cart-you-line:last-of-type{border-bottom:0}
.cart-you-k{color:#8a93a3}
.cart-you-line b{text-align:right;word-break:break-word}
.cart-edit-btn{margin-top:10px;background:none;border:0;color:var(--brand,#e4141c);font-weight:650;font-size:13.5px;cursor:pointer;padding:0;text-decoration:underline}
.cart-edit{margin-top:14px}
.cart-you-sep{margin:10px 0 2px;font-size:12px;font-weight:700;letter-spacing:.03em;text-transform:uppercase;color:#98a2b3;border-top:1px dashed #e0e4ec;padding-top:9px}
.cart-you-sep:first-child{border-top:0;padding-top:0;margin-top:2px}
.cart-edit-save{display:flex;gap:10px;align-items:center;margin-top:16px;padding-top:14px;border-top:1px solid #eef0f4}
.cart-save{min-width:160px}
.cart-cancel{color:#667085}
/* Eroare de finalizare: vizibilă lângă buton + evidențiere scurtă la salt */
.cart-pay-alert{background:#fef3f2;border:1px solid #fda29b;color:#b42318;border-radius:11px;padding:12px 15px;font-size:14px;margin:0 0 14px;font-weight:550}
.alert.cart-alert-flash{animation:cartAlertFlash 1.1s ease}
@keyframes cartAlertFlash{0%,100%{box-shadow:0 0 0 0 rgba(228,20,28,0)}30%{box-shadow:0 0 0 4px rgba(228,20,28,.22)}}
/* „Adaugă mai multe produse" în coș + caseta „date deja completate" pe pagina de comandă */
.cart-more{display:flex;align-items:center;justify-content:center;gap:7px;margin:0 0 10px;padding:12px 15px;border:1px dashed #cfd4de;border-radius:12px;color:var(--brand,#e4141c);font-weight:650;font-size:14.5px;text-decoration:none;transition:border-color .15s,background .15s}
.cart-more:hover{border-color:var(--brand,#e4141c);background:#fff5f5}
.cart-more svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round}
.ord-saved{background:#ecfdf3;border:1px solid #abefc6;color:#067647;border-radius:12px;padding:13px 16px;font-size:14.5px;line-height:1.5}
.ord-saved b{color:#055c38}
