body.cart-popup-open { overflow: hidden; }

.cart-popup-overlay{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999999;
  padding: 16px;
}

body.cart-popup-open .cart-popup-overlay{ display: flex; }

.cart-popup{
  width: min(460px, 100%);
  background: #fff;
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 20px 50px rgba(0,0,0,.25);
  direction: rtl;
  text-align: right;
  animation: cartPop .2s ease-out;
}

@keyframes cartPop{
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.cart-popup-title{ margin: 0 0 8px; font-size: 20px; font-weight: 800; }
.cart-popup-text{ margin: 0 0 14px; font-size: 14px; color: #444; }

.cart-popup-code{
  border: 2px dashed #000;
  border-radius: 14px;
  padding: 12px;
  text-align: center;
  margin-bottom: 14px;
}
.cart-popup-code span{ display:block; font-size: 12px; color:#777; }
.cart-popup-code b{ font-size: 18px; letter-spacing: 2px; }

.cart-popup-actions{ display:flex; gap:10px; flex-wrap:wrap; }
.cart-popup-btn{
  flex:1; border:0; border-radius:14px;
  padding:10px 12px; font-weight:700; cursor:pointer;
}
.cart-popup-primary{ background:#000; color:#fff; }
.cart-popup-secondary{ background:#eee; color:#333; }



/* Purple theme (adjust shade if you want) */
.cart-popup{
  border-top: 6px solid #431d5a; /* purple accent */
}

.cart-popup-title{
  color:#431d5a;
}

/* Code box purple vibe */
.cart-popup-code{
  border: 2px dashed #431d5a;
}

/* Buttons row layout: left / middle / right exactly */
.cart-popup-actions{
  display:flex;
  gap:10px;
  align-items:center;
  justify-content:space-between;
  direction:ltr; /* IMPORTANT: fixes right/middle/left positions */
}

.cart-popup-btn{
  flex: 0 0 auto;
  min-width: 110px;
}

/* Middle button ("أكمل الشراء") */
.cart-popup-primary{
  background:#431d5a;
  color:#fff;
  min-width: 150px; /* make it feel centered & important */
}

/* Side buttons */
.cart-popup-secondary{
  background:#f1e9fb; /* light purple background */
  color:#3b1b66;
}




.cart-popup-actions--fixed{
  display:flex;
  gap:10px;
  align-items:center;
  justify-content:space-between;
  direction:ltr;
}




/* ===== Product details table (for all products) ===== */

.product-spec-table-wrap{
  overflow-x:auto;
  margin: 14px 0;
}

.injected-spec-table{
  width:100%;
  min-width:520px;
  border-collapse:collapse;
  font-size:14px;
}

.injected-spec-table td{
  border:1px solid #e3e3e3;
  padding:10px 12px;
  text-align:right;
  vertical-align:top;
}

.injected-spec-table td:first-child{
  width: 35%;
  font-weight: 800;
  color:#3b1b66; /* subtle purple to match site vibe */
  background:#f7f2ff;
}

.injected-spec-table tr:nth-child(even){
  background:#fcfcfc;
}



.discount-banner{
  margin: 12px auto !important;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}



/* ✅ موبايل: زي ما هو ممتاز */
.discount-banner img{
  width: 100%;
  height: 110px;
  object-fit: contain;
  display: block;
  background: #fff; /* لون الفراغ لو ظهر */
}

/* ✅ ديسكتوب: اعرضها كاملة برضه (بدون قص) */
@media (min-width: 992px){
  .discount-banner img{
    height: 130px;          /* جرّبي 80/90/100 حسب شكل الصورة */
    object-fit: contain;   /* ← أهم سطر */
    background: #fff;
  }
}














}
/* تحميل خط Cairo */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700&display=swap');

/* تأكد أن حاوية المنتج نسبية */
.product-card,
.product-image,
.image-wrap {
  position: relative;
}

/* البادج */
.product-card::before,
.product-image::before,
.image-wrap::before {
  content: "🚛 توصيل مجاني";
  position: absolute;
  top: 8px;
  right: 8px;
  background: #4b1e66; /* البنفسجي المطلوب */
  color: #ffffff;
  font-family: 'Cairo', sans-serif;
  font-size: 14px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.18);
  z-index: 20;
  white-space: nowrap;
  pointer-events: none;

  /* حركة لطيفة للشاحنة */
  animation: truckMove 1.6s infinite ease-in-out;
}

/* الحركة */
@keyframes truckMove {
  0%   { transform: translateX(0); }
  50%  { transform: translateX(-3px); }
  100% { transform: translateX(0); }
}

/* تحسين للموبايل */
@media (max-width: 480px) {
  .product-card::before,
  .product-image::before,
  .image-wrap::before {
    font-size: 12px;
    padding: 5px 8px;
    top: 6px;
    right: 6px;
  }
}



/* إخفاء البادج للمنتجات المستثناه */
.no-free-shipping-badge::before,
.no-free-shipping-badge .product-image::before,
.no-free-shipping-badge .image-wrap::before{
  display: none !important;
  content: none !important;
}

/* Hide free-shipping badge ONLY for excluded products */
.product-card.no-free-shipping-badge::before,
.product-card.no-free-shipping-badge .product-image::before,
.product-card.no-free-shipping-badge .image-wrap::before{
  display: none !important;
  content: none !important;
}