/* شريط المخزون */
.custom-stock-wrapper {
  margin: 10px 0 8px;
}
.custom-stock-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #dc2626;
  font-weight: 600;
  margin-bottom: 5px;
  flex-wrap: wrap;
}
.custom-stock-badge {
  background: #fef2f2;
  border: 1px solid #fca5a5;
  color: #b91c1c;
  border-radius: 20px;
  padding: 2px 10px;
  font-size: 12px;
}
.custom-stock-bar-bg {
  height: 7px;
  background: #e5e7eb;
  border-radius: 10px;
  overflow: hidden;
}
.custom-stock-bar-fill {
  height: 100%;
  background: linear-gradient(to left, #dc2626, #f87171);
  border-radius: 10px;
}

/* شريط الثقة */
.custom-trust-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 12px 0 4px;
  padding: 11px 14px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
}
.custom-trust-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: #374151;
}

/* مربع التوفير */
.custom-savings-box {
  display: inline-block;
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #86efac;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  padding: 3px 14px;
  margin-top: 6px;
}

/* أزرار المقاسات */
.custom-options-wrapper {
  margin: 12px 0;
}
.custom-options-label {
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 8px;
}
.custom-options-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.custom-option-btn {
  border: 1.5px solid #d1d5db;
  background: #ffffff;
  color: #374151;
  font-size: 12px;
  font-family: inherit;
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s;
  line-height: 1.4;
}
.custom-option-btn:hover {
  border-color: #aed8e0;
  background: #f0fbfc;
}
.custom-option-btn.selected {
  border-color: #004956;
  background: #004956;
  color: #ffffff;
  font-weight: 600;
}
.custom-option-btn.out-of-stock {
  opacity: 0.4;
  text-decoration: line-through;
  cursor: not-allowed;
}


/* ============================================
   فوتر احترافي v3 - مراتب راحتي
   ============================================ */

/* --- خلفية سوداء --- */
.store-footer,
.store-footer__inner {
  background-color: #0a0a0a !important;
  color: #e5e7eb !important;
}

/* --- نصوص عامة --- */
.store-footer p,
.store-footer span,
.store-footer li,
.store-footer .da-tm {
  color: #e5e7eb !important;
}

/* --- عناوين الأقسام --- */
.store-footer .footer-title {
  color: #ffffff !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  margin-bottom: 16px !important;
  padding-bottom: 10px !important;
  border-bottom: 2px solid #aed8e0 !important;
  display: inline-block !important;
}

/* --- روابط الفوتر --- */
.store-footer .footer-list a {
  color: #9ca3af !important;
  text-decoration: none !important;
  font-size: 14px !important;
  display: block !important;
  margin-bottom: 10px !important;
  transition: color 0.2s, padding-right 0.2s !important;
}
.store-footer .footer-list a:hover {
  color: #aed8e0 !important;
  padding-right: 4px !important;
}

/* --- قسم الوسط --- */
.store-footer .footer-middle {
  padding: 40px 0 30px !important;
  border-top: 1px solid #1f2937 !important;
  border-bottom: 1px solid #1f2937 !important;
  gap: 40px !important;
}

/* --- قسم السفلي --- */
.store-footer .footer-bottom {
  padding: 20px 0 !important;
  background: #050505 !important;
}

/* --- حقوق النشر --- */
.store-footer .copyrights p,
.store-footer .copyrights a {
  color: #6b7280 !important;
  font-size: 13px !important;
}
.store-footer .copyrights a:hover {
  color: #aed8e0 !important;
}

/* --- بطاقات الدفع واضحة --- */
.store-footer li[class*="pay-"] {
  background: #ffffff !important;
  border-radius: 6px !important;
  padding: 4px 6px !important;
  height: 32px !important;
  width: 52px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}
.store-footer li[class*="pay-"] img {
  filter: none !important;
  opacity: 1 !important;
}

/* --- footer-top إخفاء وتحويله لزرار عائم --- */
.store-footer .to-top {
  display: none !important;
}

/* --- زرار العودة للأعلى عائم --- */
.custom-scroll-top {
  position: fixed !important;
  bottom: 90px !important;
  left: 20px !important;
  width: 46px !important;
  height: 46px !important;
  border-radius: 50% !important;
  background: #1f2937 !important;
  color: #ffffff !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  z-index: 999 !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3) !important;
  transition: background 0.2s, transform 0.2s !important;
  border: none !important;
  font-size: 18px !important;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, background 0.2s !important;
}
.custom-scroll-top.visible {
  opacity: 1 !important;
  pointer-events: auto !important;
}
.custom-scroll-top:hover {
  background: #aed8e0 !important;
  color: #0a0a0a !important;
  transform: translateY(-2px) !important;
}

/* --- footer-top --- */
.store-footer .footer-top {
  padding: 24px 0 !important;
  border-bottom: 1px solid #1f2937 !important;
}

/* --- salla-contacts --- */
.store-footer .footer-middle salla-contacts {
  color: #9ca3af !important;
}