/* العابي ستور — نافذة الترحيب والثقة (Trust Popup)
   هوية المتجر: خلفية داكنة #10102c وذهبي #f5b301 — نفس متغيرات style.css.
   ظهور خفيف: تلاشي + تكبير بسيط. بدون مؤثرات مزعجة. */

/* الخلفية ورا النافذة — بلا أي تعتيم: الموقع يظهر كاملًا ورا الصورة */
.tp-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: transparent;
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
}
.tp-overlay.tp-open {
  opacity: 1;
  visibility: visible;
}

/* جسم النافذة */
.tp-dialog {
  position: relative;
  width: min(430px, 100%);
  max-height: 92dvh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--surface, #10102c);
  color: var(--ink, #f4f4fd);
  border: 1px solid var(--line-strong, rgba(255, 255, 255, .18));
  border-radius: 20px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .55), 0 0 0 1px rgba(245, 179, 1, .12);
  padding: 26px 20px 20px;
  text-align: center;
  transform: scale(.96) translateY(8px);
  transition: transform .25s ease;
}
.tp-overlay.tp-open .tp-dialog {
  transform: scale(1) translateY(0);
}

/* نسخة الصورة المصممة — النافذة هي الصورة نفسها بلا نصوص HTML */
.tp-dialog.tp-image {
  width: min(480px, 100%);
  padding: 0;
  overflow: hidden;
  background: transparent;
  border: none;
  border-radius: 20px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .55);
}
.tp-dialog.tp-image img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 20px;
  cursor: pointer;
}
/* زر «ابدأ التسوق الآن» الحقيقي — شفاف فوق زر الصورة الذهبي */
.tp-cta-img {
  position: absolute;
  left: 29.5%;
  top: 78.8%;
  width: 48%;
  height: 12.5%;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  z-index: 1;
}

/* زر × الحقيقي — فوق علامة × المرسومة في الصورة (أعلى اليمين) */
.tp-close.tp-close-img {
  top: 10px;
  inset-inline-end: auto;
  right: 10px;
  width: 36px;
  height: 36px;
  min-height: 36px;
  background: rgba(10, 10, 30, .55);
  border: 1px solid rgba(255, 255, 255, .35);
  color: #fff;
  font-size: 1.4rem;
  z-index: 1;
}
.tp-close.tp-close-img:hover {
  background: rgba(10, 10, 30, .8);
  border-color: #fff;
  color: #fff;
}

/* زر الإغلاق × — واضح، أعلى النافذة */
.tp-close {
  position: absolute;
  inset-inline-end: 12px;
  top: 12px;
  width: 38px;
  height: 38px;
  min-height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line, rgba(255, 255, 255, .09));
  background: var(--surface-2, #171744);
  color: var(--ink, #f4f4fd);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0 0 2px;
  transition: border-color .12s ease, color .12s ease;
}
.tp-close:hover {
  border-color: var(--gold, #f5b301);
  color: var(--gold, #f5b301);
}

/* العنوان والنص */
.tp-title {
  margin: 4px 0 6px;
  font-family: "Changa", "IBM Plex Sans Arabic", "Cairo", sans-serif;
  font-weight: 800;
  font-size: 1.25rem;
  line-height: 1.5;
  padding-inline: 34px;
}
.tp-text {
  margin: 0 0 18px;
  color: var(--ink-soft, #bcbce0);
  font-size: .98rem;
  line-height: 1.7;
}

/* نقاط الثقة الأربع — شبكة 2×2 */
.tp-points {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 18px;
  text-align: start;
}
.tp-point {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: var(--surface-2, #171744);
  border: 1px solid var(--line, rgba(255, 255, 255, .09));
  border-radius: 14px;
  padding: 12px;
}
.tp-ic {
  flex: none;
  font-size: 1.35rem;
  line-height: 1.4;
}
.tp-pt {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.tp-pt b {
  font-size: .92rem;
  font-weight: 800;
  line-height: 1.5;
}
.tp-pt span {
  font-size: .8rem;
  line-height: 1.6;
  color: var(--ink-soft, #bcbce0);
}

/* الزر الرئيسي — ذهبي مثل أزرار المتجر */
.tp-cta {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--gold-deep, #c78f00);
  border-radius: 999px;
  background: linear-gradient(180deg, var(--gold-2, #ffcf3d), var(--gold, #f5b301));
  color: #241a00;
  font: inherit;
  font-weight: 800;
  font-size: 1.02rem;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(245, 179, 1, .30);
  transition: filter .12s ease, transform .12s ease;
}
.tp-cta:hover { filter: brightness(1.06); }
.tp-cta:active { transform: scale(.98); }

/* شاشات صغيرة جدًا: نقاط الثقة عمود واحد لو ضاقت */
@media (max-width: 359px) {
  .tp-points { grid-template-columns: 1fr; }
  .tp-title { font-size: 1.12rem; }
}

/* من يفضّل تقليل الحركة: بلا انتقالات */
@media (prefers-reduced-motion: reduce) {
  .tp-overlay, .tp-dialog { transition: none; }
}
