/* عروض مسارات الرماح في واجهة المتجر */

/* ---------- الكود مع زر النسخ ---------- */
.rm-code { display: inline-flex; align-items: stretch; border: 1.5px dashed var(--blue, #0b2e93); border-radius: 10px; overflow: hidden; background: #fff; max-width: 100%; }
.rm-code__val { display: inline-flex; align-items: center; padding: 0 12px; font-weight: 800; font-size: 16px; letter-spacing: 1px; color: var(--night, #0a1a35); font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rm-code__copy { border: 0; background: var(--blue, #0b2e93); color: #fff; font: inherit; font-size: 14px; font-weight: 700; padding: 0 14px; min-height: 42px; cursor: pointer; white-space: nowrap; }
.rm-code__copy:hover { background: var(--blue-hover, #08236f); }
.rm-code__copy.is-done { background: var(--ok, #157a4c); }
.rm-code--lg .rm-code__val { font-size: 20px; padding: 0 16px; }
.rm-code--lg .rm-code__copy { min-height: 48px; font-size: 15px; padding: 0 18px; }

/* ---------- النافذة المنبثقة ---------- */
.rm-pop { position: fixed; inset: 0; z-index: 9999; display: grid; place-items: center; padding: 16px; opacity: 0; pointer-events: none; transition: opacity .25s ease; }
.rm-pop.is-on { opacity: 1; pointer-events: auto; }
.rm-pop__scrim { position: absolute; inset: 0; background: rgba(6, 14, 30, .6); }
.rm-pop__card { position: relative; width: min(420px, 100%); max-height: calc(100vh - 32px); overflow: auto; background: #fff; border-radius: 20px; box-shadow: 0 24px 60px rgba(6, 14, 30, .35); transform: translateY(14px) scale(.98); transition: transform .3s cubic-bezier(.2, .7, .2, 1); text-align: center; }
.rm-pop.is-on .rm-pop__card { transform: none; }
.rm-pop__x { position: absolute; top: 10px; inset-inline-end: 10px; z-index: 2; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .16); color: #fff; font-size: 26px; line-height: 1; cursor: pointer; }
.rm-pop__x:hover { background: rgba(255, 255, 255, .28); }
.rm-pop__band { padding: 30px 24px 26px; color: #fff; background: radial-gradient(120% 140% at 100% 0%, var(--red, #d3192c) 0%, rgba(211, 25, 44, 0) 55%), linear-gradient(135deg, var(--night, #0a1a35), var(--blue, #0b2e93)); }
.rm-pop__kicker { display: inline-block; padding: 4px 12px; border-radius: 999px; background: rgba(255, 255, 255, .16); font-size: 13px; font-weight: 700; margin-bottom: 10px; }
.rm-pop__band h2 { margin: 0; color: #fff; font-size: 24px; line-height: 1.4; }
.rm-pop__body { padding: 20px 22px 22px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.rm-pop__text { margin: 0; font-size: 16px; line-height: 1.8; color: var(--ink, #13203a); }
.rm-pop__code { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 100%; }
.rm-pop__code > span:first-child { font-size: 13px; color: var(--muted, #586883); font-weight: 600; }
.rm-pop__cta { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 50px; border-radius: 12px; background: var(--red, #d3192c); color: #fff !important; font-weight: 800; font-size: 16px; text-decoration: none !important; }
.rm-pop__cta:hover { background: var(--red-hover, #b31324); }
.rm-pop__until { color: var(--muted, #586883); font-size: 13px; }

/* ---------- العروض في السلة ---------- */
.rm-cart-offers { margin: 0 0 20px; padding: 16px; border: 1px solid var(--blue-line, #c3d0ef); background: var(--blue-tint, #ebf0fb); border-radius: 14px; }
.rm-cart-offers__title { margin: 0 0 10px; font-size: 17px; color: var(--night, #0a1a35); }
.rm-cart-offer { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px; background: #fff; border-radius: 11px; border: 1px solid var(--line, #dce2ea); }
.rm-cart-offer + .rm-cart-offer { margin-top: 8px; }
.rm-cart-offer__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 220px; }
.rm-cart-offer__text b { font-size: 15px; }
.rm-cart-offer__text span { font-size: 14px; color: var(--muted, #586883); }
.rm-cart-offer__text small { color: #8a5a00; font-size: 13px; }
.rm-cart-offer__act { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.rm-cart-offer__apply { display: inline-flex; align-items: center; min-height: 42px; padding: 0 16px; border-radius: 10px; background: var(--red, #d3192c); color: #fff !important; font-weight: 700; font-size: 14px; text-decoration: none !important; }
.rm-cart-offers__hint { margin: 10px 0 0; font-size: 13px; color: var(--muted, #586883); }

/* ---------- صفحة العروض ---------- */
.rm-offers__sec + .rm-offers__sec { margin-top: 34px; }
.rm-offers__sec > h2 { font-size: 22px; margin: 0 0 14px; }
.rm-offers__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; }
.rm-offers__empty { padding: 26px; text-align: center; border: 1px dashed var(--line-strong, #c4cdd9); border-radius: 14px; color: var(--muted, #586883); background: #fff; }
.rm-offer { display: flex; flex-direction: column; gap: 10px; padding: 18px; border-radius: 16px; background: #fff; border: 1px solid var(--line, #dce2ea); }
.rm-offer--soon { border-color: var(--blue-line, #c3d0ef); }
.rm-offer--ended { background: var(--paper, #f3f5f8); }
.rm-offer--ended h3, .rm-offer--ended .rm-offer__headline { color: var(--muted, #586883); }
.rm-offer__head { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.rm-offer__head h3 { margin: 0; font-size: 19px; line-height: 1.5; }
.rm-offer__badge { padding: 3px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 700; background: #fdecee; color: var(--red, #d3192c); }
.rm-offer--soon .rm-offer__badge { background: var(--blue-tint, #ebf0fb); color: var(--blue, #0b2e93); }
.rm-offer--ended .rm-offer__badge { background: #e6e9ee; color: var(--muted, #586883); }
.rm-offer__headline { margin: 0; font-size: 17px; font-weight: 700; color: var(--night, #0a1a35); }
.rm-offer__date { margin: 0; font-size: 14px; color: var(--muted, #586883); }
.rm-offer__code { display: flex; flex-direction: column; gap: 6px; }
.rm-offer__code > span:first-child { font-size: 13px; color: var(--muted, #586883); font-weight: 600; }
.rm-offer__note { margin: 0; font-size: 14px; color: var(--ok, #157a4c); }
.rm-offer__products { font-size: 14px; }
.rm-offer__products > span { color: var(--muted, #586883); font-weight: 600; }
.rm-offer__products ul { list-style: none; padding: 0 !important; margin: 6px 0 0 !important; display: flex; flex-wrap: wrap; gap: 6px; }
.rm-offer__products li { margin: 0 !important; }
.rm-offer__products a { display: inline-block; padding: 4px 10px; border-radius: 8px; background: var(--paper, #f3f5f8); border: 1px solid var(--line, #dce2ea); text-decoration: none !important; color: var(--ink, #13203a) !important; font-size: 13.5px; }
.rm-offer__cta { margin-top: auto; display: flex; align-items: center; justify-content: center; min-height: 46px; border-radius: 11px; background: var(--blue, #0b2e93); color: #fff !important; font-weight: 700; text-decoration: none !important; }
.rm-offer__cta:hover { background: var(--blue-hover, #08236f); }

@media (max-width: 760px) {
  .rm-pop { padding: 12px; align-items: end; }
  .rm-pop__card { border-radius: 18px; }
  .rm-pop__band { padding: 26px 18px 22px; }
  .rm-pop__band h2 { font-size: 21px; }
  .rm-offers__grid { grid-template-columns: 1fr; }
  .rm-cart-offer__act, .rm-cart-offer__act .rm-code { width: 100%; }
  .rm-cart-offer__act .rm-code__val { flex: 1; justify-content: center; }
  .rm-cart-offer__apply { width: 100%; justify-content: center; }
}
