﻿/* ============================================================
   ALPHA JO — POLISHED LOOK v3 (2026-09)
   ============================================================ */

/* --- التصنيفات --- */
.categories-bar {
  min-height: 54px !important;
  padding: 8px 14px !important;
  gap: 8px !important;
  justify-content: center !important;
  background: #fff !important;
  border-top: 1px solid #f0f0f0 !important;
}
.categories-bar .f01-category-card,
.categories-bar button {
  height: 36px !important;
  padding: 0 16px !important;
  border: 1.5px solid #ebebeb !important;
  border-radius: 999px !important;
  background: #fafafa !important;
  color: #3a3a3a !important;
  font-size: 12.5px !important;
  font-weight: 800 !important;
  transition: transform .15s ease, background .15s ease, color .15s ease, border-color .15s ease, box-shadow .15s ease !important;
}
.categories-bar .f01-category-card:hover,
.categories-bar button:hover {
  background: #fff !important;
  border-color: #d5d5d5 !important;
  transform: translateY(-1px);
}
.categories-bar .f01-category-card.active,
.categories-bar button.active {
  background: linear-gradient(135deg, #1F86D9 0%, #4BA6E8 60%, #F4A023 130%) !important;
  border-color: transparent !important;
  color: #fff !important;
  box-shadow: 0 6px 18px rgba(31, 134, 217, .28) !important;
  transform: translateY(-1px);
}
.categories-bar .f01-category-card.active::after,
.categories-bar button.active::after { display: none !important; }

/* ============================================================
   شريط التوصيل — التصميم الجديد
   ============================================================ */
.reward-progress {
  position: relative !important;
  height: 46px !important;
  min-height: 46px !important;
  background: linear-gradient(90deg, #155E9A 0%, #1F86D9 55%, #4BA6E8 100%) !important;
  color: #fff !important;
  border: 0 !important;
  box-shadow: 0 2px 8px rgba(31, 134, 217, .28), inset 0 -1px 0 rgba(0,0,0,.08) !important;
  padding: 0 14px !important;
  display: flex !important;
  flex-direction: row !important;
  direction: rtl !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px !important;
  overflow: hidden !important;
  font-family: inherit !important;
  box-sizing: border-box !important;
}
.reward-progress::before {
  display: none !important;
  content: none !important;
}
.reward-progress-fill {
  position: absolute !important;
  inset: 0 auto 0 0 !important;
  width: 0;
  background: linear-gradient(90deg, #E88E00 0%, #F4A023 55%, #FFC55F 100%) !important;
  opacity: 1 !important;
  transition: width .45s cubic-bezier(.22,.8,.28,1) !important;
  border-radius: 0 !important;
  z-index: 1;
  box-shadow: inset -2px 0 0 rgba(255,255,255,.35) !important;
}
.reward-progress > *:not(.reward-progress-fill) {
  position: relative !important;
  z-index: 3 !important;
}

/* --- يمين: إحصائيات السلة والتوصيل --- */
.rp-stats {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  background: linear-gradient(135deg,#F4A023 0%,#E88E00 100%) !important;
  border-radius: 999px !important;
  padding: 4px 11px !important;
  flex: 0 0 auto !important;
  white-space: nowrap !important;
  box-shadow: 0 2px 10px rgba(244,160,35,.4), inset 0 1px 0 rgba(255,255,255,.25) !important;
}
.rp-stat {
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  font-size: 11.5px !important;
  font-weight: 800 !important;
  color: #fff !important;
  line-height: 1 !important;
}
.rp-icon {
  font-size: 13px !important;
  line-height: 1 !important;
  display: inline-block !important;
}
.rp-stat b {
  font-size: 12.5px !important;
  font-weight: 900 !important;
  color: #fff !important;
  text-shadow: 0 1px 2px rgba(0,0,0,.35) !important;
}
.rp-cur {
  font-size: 9.5px !important;
  color: rgba(255,255,255,.85) !important;
  margin-inline-start: -1px !important;
}
.rp-sep {
  color: rgba(255,255,255,.5) !important;
  font-size: 11px !important;
  font-weight: 900 !important;
}

/* --- الوسط: الرسالة --- */
.rp-message {
  flex: 1 1 auto !important;
  text-align: center !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  color: #fff !important;
  text-shadow: 0 1px 3px rgba(0,0,0,.45), 0 0 8px rgba(0,0,0,.15) !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  min-width: 0 !important;
  padding: 0 4px !important;
}

/* --- يسار: التوفير --- */
.rp-savings {
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  background: linear-gradient(135deg, #1F86D9 0%, #155E9A 100%) !important;
  border-radius: 999px !important;
  padding: 4px 11px !important;
  flex: 0 0 auto !important;
  white-space: nowrap !important;
  color: #fff !important;
  font-size: 11.5px !important;
  font-weight: 900 !important;
  box-shadow: 0 3px 12px rgba(31, 134, 217, .45), inset 0 1px 0 rgba(255,255,255,.35) !important;
  animation: rpSavingsPulse 2.4s ease-in-out infinite;
  border: 1px solid rgba(255,255,255,.25) !important;
}
.rp-savings[hidden] {
  display: none !important;
}
.rp-savings .rp-icon {
  font-size: 14px !important;
}
.rp-savings b {
  font-size: 13.5px !important;
  color: #fff !important;
  text-shadow: 0 1px 2px rgba(0,0,0,.25) !important;
}
.rp-savings .rp-cur {
  color: rgba(255,255,255,.9) !important;
}
.rp-savings-label {
  font-size: 10.5px !important;
  opacity: .95 !important;
  font-weight: 800 !important;
}
@keyframes rpSavingsPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.035); }
}

/* ============================================================
   زر "أضف للسلة"
   ============================================================ */
.product-buy-row {
  display: flex !important;
  align-items: flex-end !important;
  justify-content: space-between !important;
  gap: 8px !important;
}
.product-price-block {
  flex: 1 1 auto !important;
  min-width: 0 !important;
}
.quick-add,
.product-buy-row .quick-add,
.product-card .quick-add {
  position: static !important;
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 5px !important;
  width: auto !important;
  min-width: 110px !important;
  max-width: none !important;
  height: 36px !important;
  min-height: 36px !important;
  max-height: 36px !important;
  padding: 0 14px !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 10px !important;
  background: #1F86D9 !important;
  background-image: linear-gradient(135deg, #1F86D9 0%, #2C95E3 100%) !important;
  color: #fff !important;
  box-shadow: 0 4px 12px rgba(31, 134, 217, .22) !important;
  cursor: pointer !important;
  font-family: inherit !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  letter-spacing: .15px !important;
  text-shadow: none !important;
  text-decoration: none !important;
  transform: none !important;
  opacity: 1 !important;
  visibility: visible !important;
  transition: transform .14s ease, box-shadow .14s ease, filter .14s ease !important;
  overflow: visible !important;
  white-space: nowrap !important;
  box-sizing: border-box !important;
  -webkit-appearance: none !important;
}
.quick-add:hover {
  background: #1F86D9 !important;
  background-image: linear-gradient(135deg, #1F86D9 0%, #2C95E3 100%) !important;
  color: #fff !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 7px 18px rgba(31, 134, 217, .32) !important;
  filter: brightness(1.05) !important;
}
.quick-add:active {
  transform: translateY(0) !important;
  box-shadow: 0 3px 8px rgba(31, 134, 217, .22) !important;
}
.quick-add:disabled {
  opacity: .55 !important;
  cursor: not-allowed !important;
  background: #b8b8b8 !important;
  background-image: none !important;
  box-shadow: none !important;
  filter: none !important;
  transform: none !important;
}
.quick-add::before,
.quick-add::after {
  display: none !important;
  content: none !important;
}
.quick-add-icon {
  display: inline-block !important;
  font-size: 15px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  color: #fff !important;
  flex: 0 0 auto !important;
  visibility: visible !important;
  opacity: 1 !important;
}
.quick-add-text,
.quick-add > span:not(.quick-add-icon) {
  display: inline-block !important;
  color: #fff !important;
  font-family: inherit !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  white-space: nowrap !important;
  visibility: visible !important;
  opacity: 1 !important;
  flex: 0 0 auto !important;
  text-shadow: none !important;
}

/* ============================================================
   للجوال
   ============================================================ */
@media (max-width: 760px) {
  .categories-bar {
    min-height: 46px !important;
    padding: 6px 8px !important;
    justify-content: flex-start !important;
    gap: 6px !important;
  }
  .categories-bar .f01-category-card,
  .categories-bar button {
    height: 33px !important;
    padding: 0 12px !important;
    font-size: 11.5px !important;
  }
  .categories-bar .f01-category-card.active::after,
  .categories-bar button.active::after { display: none !important; }

  .reward-progress {
    height: 44px !important;
    min-height: 44px !important;
    padding: 0 8px !important;
    gap: 6px !important;
  }
  .rp-stats {
    padding: 3px 8px !important;
    gap: 6px !important;
  }
  .rp-stat { font-size: 10px !important; gap: 3px !important; }
  .rp-stat b { font-size: 11px !important; }
  .rp-icon { font-size: 11px !important; }
  .rp-cur { font-size: 8px !important; }
  .rp-message { font-size: 10px !important; padding: 0 2px !important; }
  .rp-savings {
    font-size: 10px !important;
    padding: 3px 8px !important;
    gap: 3px !important;
  }
  .rp-savings b { font-size: 11.5px !important; }
  .rp-savings-label { font-size: 8.5px !important; }
  .rp-savings .rp-icon { font-size: 11px !important; }

  .quick-add,
  .product-buy-row .quick-add,
  .product-card .quick-add {
    min-width: 92px !important;
    height: 32px !important;
    min-height: 32px !important;
    max-height: 32px !important;
    padding: 0 10px !important;
    font-size: 11px !important;
    gap: 4px !important;
    border-radius: 8px !important;
  }
  .quick-add-icon { font-size: 13px !important; }
  .quick-add-text,
  .quick-add > span:not(.quick-add-icon) { font-size: 11px !important; }
}

@media (max-width: 420px) {
  .rp-message { font-size: 9px !important; }
  .rp-stat { font-size: 9.5px !important; }
  .rp-stat b { font-size: 10.5px !important; }
  .rp-savings { padding: 3px 7px !important; }
  .rp-savings b { font-size: 11px !important; }
}
.rp-stat-label{font-size:10px!important;font-weight:800!important;color:rgba^(255,255,255,.95^)!important;margin-inline-end:3px!important;letter-spacing:0!important}

.rp-stat-label{font-size:10px!important;font-weight:800!important;color:rgba^(255,255,255,.95^)!important;margin-inline-end:3px!important;letter-spacing:0!important}
