/* ============================================================
   VIRALIS — mini-cart drawer
   Slides in from the end side: the right in English, the left in Arabic.
   ============================================================ */
.mc{ position:fixed; inset:0; z-index:110; }
.mc__backdrop{ position:absolute; inset:0; background:rgba(10,10,13,.55); backdrop-filter:blur(3px); -webkit-backdrop-filter:blur(3px); }

.mc__panel{
  position:absolute; top:0; bottom:0; inset-inline-end:0; width:min(430px,100%);
  display:flex; flex-direction:column; background:var(--ivory); color:var(--black);
  box-shadow:0 0 60px rgba(0,0,0,.35); animation:mcInLtr .4s var(--ease);
}
html[dir="rtl"] .mc__panel{ animation-name:mcInRtl; }
@keyframes mcInLtr{ from{ transform:translateX(100%); } to{ transform:none; } }
@keyframes mcInRtl{ from{ transform:translateX(-100%); } to{ transform:none; } }
.mc__panel:focus{ outline:none; }

.mc__head{ display:flex; align-items:center; justify-content:space-between; padding:1.2rem 1.4rem; border-bottom:1px solid var(--line-on-light); }
.mc__title{ font-family:var(--font-display); font-size:1.35rem; font-weight:500; }
html[lang="ar"] .mc__title{ font-family:var(--font-arabic); font-weight:700; }
.mc__count{ font-family:var(--font-body); font-size:.9rem; color:var(--gray); margin-inline-start:.4rem; }
.mc__close{ width:38px; height:38px; border-radius:50%; display:grid; place-items:center; border:1px solid var(--line-on-light); transition:background .25s, border-color .25s; }
.mc__close:hover{ background:var(--gold); border-color:var(--gold); }
.mc__close svg{ width:15px; height:15px; }

.mc__ship{ padding:.9rem 1.4rem; background:var(--stone); }
.mc__ship p{ font-size:.82rem; margin-bottom:.5rem; }
.mc__ship-track{ height:4px; background:rgba(10,10,13,.12); border-radius:999px; overflow:hidden; }
.mc__ship-fill{ height:100%; background:var(--gold-deep); border-radius:999px; transition:width .5s var(--ease); }

.mc__list{ list-style:none; flex:1; overflow-y:auto; padding:.2rem 1.4rem; }
.mc-item{ display:grid; grid-template-columns:76px minmax(0,1fr) auto; gap:.9rem; padding-block:1.1rem; border-bottom:1px solid var(--line-on-light); }
.mc-item__img{ display:block; width:76px; aspect-ratio:4/5; border-radius:3px; overflow:hidden; background:var(--black); }
.mc-item__img img{ width:100%; height:100%; object-fit:cover; }
.mc-item__name{ display:block; font-family:var(--font-display); font-size:1.02rem; line-height:1.25; margin-bottom:.15rem; }
html[lang="ar"] .mc-item__name{ font-family:var(--font-arabic); font-weight:700; }
.mc-item__name:hover{ color:var(--gold-deep); }
.mc-item__meta{ font-size:.78rem; color:var(--gray); margin-bottom:.5rem; }
.mc-item__inside{ display:flex; gap:.3rem; margin-bottom:.6rem; }
.mc-item__inside img{ width:28px; aspect-ratio:4/5; object-fit:cover; border-radius:2px; }
.mc-item__row{ display:flex; align-items:center; gap:.8rem; }
.mc-qty{ display:flex; align-items:center; border:1px solid var(--line-on-light); border-radius:2px; background:#fff; }
.mc-qty button{ width:28px; height:30px; font-size:1rem; transition:background .2s; }
.mc-qty button:hover{ background:var(--stone); }
.mc-qty span{ width:26px; text-align:center; font-size:.88rem; }
.mc-item__remove{ font-size:.78rem; text-decoration:underline; opacity:.6; }
.mc-item__remove:hover{ opacity:1; }
.mc-item__price{ font-size:.98rem; font-weight:500; white-space:nowrap; }

.mc__empty{ flex:1; display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center; padding:2rem 1.6rem; }
.mc__empty svg{ width:52px; height:52px; opacity:.35; margin-bottom:1.2rem; }
.mc__empty p{ opacity:.7; max-width:28ch; margin-bottom:1.4rem; }

.mc__foot{ padding:1.2rem 1.4rem 1.4rem; border-top:1px solid var(--line-on-light); background:#fff; }
.mc__subtotal{ display:flex; justify-content:space-between; align-items:baseline; font-size:1.05rem; font-weight:600; }
.mc__subtotal b{ font-family:var(--font-display); font-size:1.4rem; font-weight:500; }
.mc__note{ font-size:.78rem; color:var(--gray); margin:.2rem 0 1rem; }
.mc-btn{ display:block; width:100%; text-align:center; padding:.95rem 1rem; border-radius:2px; font-size:.95rem; font-weight:500; transition:background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease); }
.mc-btn--ghost{ border:1px solid var(--black); }
.mc-btn--ghost:hover{ border-color:var(--gold-deep); color:var(--gold-deep); }
.mc-btn--gold{ background:var(--gold); color:var(--black); margin-top:.7rem; }
.mc-btn--gold:hover{ background:var(--black); color:var(--gold); }
.mc__empty .mc-btn{ width:auto; padding-inline:2rem; }

@media (max-width:480px){ .mc-item{ grid-template-columns:64px minmax(0,1fr) auto; } .mc-item__img{ width:64px; } }

/* server cart states: a notice (fewer added, unavailable), off-sale lines, price / stock updates */
.mc__notice{ margin:0 1.4rem .2rem; padding:.7rem .9rem; border-radius:4px; background:rgba(200,167,114,.16); color:var(--gold-deep); font-size:.84rem; }
.mc-item.is-off .mc-item__img, .mc-item.is-off .mc-item__name{ opacity:.5; }
.mc-item__flag{ font-size:.76rem; color:var(--gold-deep); margin-bottom:.4rem; }
.mc-item__flag--off{ color:var(--err); }
.mc-qty button:disabled{ opacity:.35; cursor:not-allowed; }
