/* ════════════════════════════════════════════════
   Roso — עמוד סל קניות
   תואם לשפת העיצוב של עמוד התשלום (rosoco)
════════════════════════════════════════════════ */
.rosocart-wrap{
    --rosoco-brand:#C62828;
    --rosoco-brand-dark:#A81E1E;
    --rosoco-ink:#444444;
    --rosoco-muted:#8a8a8a;
    --rosoco-soft:#fbeaea;
    --rosoco-border:#e6e1e1;
    --rosoco-radius:16px;
    direction:rtl;text-align:right;color:var(--rosoco-ink);
    width:100%;max-width:1040px;margin-inline:auto;
}
.rosocart-wrap *{box-sizing:border-box;}
.rosocart-wrap.is-busy{pointer-events:none;opacity:.7;transition:opacity .15s;}

.rosocart-head{text-align:center;margin-bottom:18px;}
.rosocart-wrap .rosoco-title{font-size:1.7rem;font-weight:800;margin:0;letter-spacing:-.01em;}
.rosocart-wrap .rosoco-sub{margin:6px 0 0;color:var(--rosoco-muted);font-size:.95rem;}

.rosocart-grid{display:grid;grid-template-columns:1fr 340px;gap:18px;align-items:start;}
.rosocart-panel{
    background:#fff;border:1px solid var(--rosoco-border);
    border-radius:var(--rosoco-radius);box-shadow:0 1px 3px rgba(0,0,0,.04);
}

/* ── פריטים ── */
.rosocart-items{padding:6px 18px;}
.rosocart-item{
    display:flex;align-items:center;gap:14px;padding:16px 0;
    border-bottom:1px solid var(--rosoco-border);transition:opacity .2s;
}
.rosocart-item:last-child{border-bottom:none;}
.rosocart-thumb{flex:0 0 76px;}
.rosocart-thumb img{width:76px;height:76px;object-fit:cover;border-radius:calc(var(--rosoco-radius) - 6px);display:block;}
.rosocart-info{flex:1;min-width:0;}
.rosocart-name{font-weight:700;color:var(--rosoco-ink);text-decoration:none;display:block;margin-bottom:2px;}
.rosocart-name:hover{color:var(--rosoco-brand);}
.rosocart-vars{font-size:.83rem;color:var(--rosoco-muted);margin-bottom:4px;}
.rosocart-price{font-size:.9rem;color:var(--rosoco-muted);}
.rosocart-actions{display:flex;align-items:center;gap:16px;}
.rosocart-linetotal{font-weight:800;min-width:72px;text-align:left;}

/* בורר כמות */
.rosocart-qty{display:flex;align-items:center;border:1px solid var(--rosoco-border);border-radius:99px;overflow:hidden;}
.rosocart-qty button{
    width:32px;height:34px;border:none;background:#fff;cursor:pointer;
    font-size:1.05rem;color:var(--rosoco-ink);line-height:1;
}
.rosocart-qty button:hover{background:var(--rosoco-soft);color:var(--rosoco-brand);}
.rosocart-qtyval{
    width:40px;height:34px;border:none;text-align:center;font-weight:700;
    color:var(--rosoco-ink);background:#fff;-moz-appearance:textfield;appearance:textfield;
}
.rosocart-qtyval::-webkit-outer-spin-button,.rosocart-qtyval::-webkit-inner-spin-button{-webkit-appearance:none;margin:0;}
.rosocart-qtyval:focus{outline:none;}

.rosocart-remove{
    border:none;background:none;cursor:pointer;color:var(--rosoco-muted);
    padding:6px;border-radius:8px;display:flex;
}
.rosocart-remove:hover{color:var(--rosoco-brand);background:var(--rosoco-soft);}

/* ── סיכום ── */
.rosocart-summary{padding:20px;position:sticky;top:24px;}
.rosocart-sumtitle{margin:0 0 14px;font-size:1.1rem;font-weight:800;}
.rosocart-couponbox{display:flex;gap:8px;margin-bottom:6px;}
.rosocart-couponval{
    flex:1;border:1px solid var(--rosoco-border);border-radius:10px;
    padding:9px 12px;font-size:.9rem;color:var(--rosoco-ink);
}
.rosocart-couponval:focus{outline:none;border-color:var(--rosoco-brand);}
.rosocart-couponbtn{
    border:1px solid var(--rosoco-brand);background:#fff;color:var(--rosoco-brand);
    border-radius:10px;padding:9px 16px;font-weight:700;cursor:pointer;
}
.rosocart-couponbtn:hover{background:var(--rosoco-soft);}
.rosocart-couponmsg{font-size:.83rem;margin:2px 0 6px;color:#2e7d32;}
.rosocart-couponmsg.is-err{color:var(--rosoco-brand);}

.rosocart-totals{margin:12px 0 16px;}
.rosocart-row{display:flex;justify-content:space-between;padding:7px 0;font-size:.95rem;}
.rosocart-row + .rosocart-row{border-top:1px dashed var(--rosoco-border);}
.rosocart-ship-note{color:var(--rosoco-muted);font-size:.85rem;}
.rosocart-total{font-weight:800;font-size:1.08rem;border-top:1px solid var(--rosoco-border) !important;margin-top:4px;padding-top:11px;}
.rosocart-coupon-x{
    border:none;background:none;color:var(--rosoco-brand);cursor:pointer;
    font-size:1rem;line-height:1;padding:0 4px;vertical-align:middle;
}

/* ── כפתורים ── */
.rosocart-btn{
    display:block;text-align:center;padding:13px;border-radius:12px;
    font-weight:800;text-decoration:none;margin-top:8px;transition:.15s;
}
.rosocart-btn-main{background:var(--rosoco-brand);color:#fff;}
.rosocart-btn-main:hover{background:var(--rosoco-brand-dark);color:#fff;}
.rosocart-btn-ghost{border:1px solid var(--rosoco-border);color:var(--rosoco-ink);background:#fff;}
.rosocart-btn-ghost:hover{border-color:var(--rosoco-brand);color:var(--rosoco-brand);}

/* ── סל ריק ── */
.rosocart-empty{
    background:#fff;border:1px solid var(--rosoco-border);border-radius:var(--rosoco-radius);
    padding:48px 20px;text-align:center;color:var(--rosoco-muted);
}
.rosocart-empty svg{color:var(--rosoco-border);margin-bottom:10px;}
.rosocart-empty p{margin:0 0 18px;font-size:1.05rem;}
.rosocart-empty .rosocart-btn{display:inline-block;padding:12px 34px;}

/* ── מובייל ── */
@media (max-width: 860px){
    .rosocart-grid{grid-template-columns:1fr;}
    .rosocart-summary{position:static;}
    .rosocart-item{flex-wrap:wrap;}
    .rosocart-actions{width:100%;justify-content:space-between;margin-top:4px;}
}
