/* صفحة سيستم المحال التعريفية (/store-system) — مكوّنات style.css (bank-hero / feature-card / cta-band / faq-item) + الإضافات دي */
.ss-page .icn { width: 1em; height: 1em; vertical-align: -0.14em; }

/* ── البداية ── */
.ss-hero .ss-hero-inner { grid-template-columns: 1.15fr 0.85fr; padding-top: 56px; padding-bottom: 60px; }
.ss-hero .eyebrow { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ss-chip { display: inline-block; padding: 2px 10px; border-radius: 999px; background: var(--gold-bright); color: var(--brand-deep); font-size: 0.74rem; font-weight: 800; }
.ss-hero-shot {
  background: var(--surface); color: var(--ink); border-radius: 18px; padding: 16px 18px 18px; box-shadow: var(--shadow-lg);
  transform: rotate(-2deg); max-width: 380px; justify-self: center; width: 100%;
}
.ss-shot-bar { display: flex; align-items: center; gap: 6px; margin-bottom: 12px; font-size: 0.8rem; color: var(--ink-faint); }
.ss-shot-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--surface-soft); }
.ss-shot-bar span { margin-inline-start: auto; font-weight: 700; }
.ss-shot-row { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px dashed var(--line); font-size: 0.88rem; }
.ss-shot-row.muted { color: var(--cost); }
.ss-shot-total { display: flex; justify-content: space-between; padding: 10px 0 4px; font-weight: 800; color: var(--brand); font-size: 1.05rem; }
.ss-shot-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.ss-shot-kpis div { background: var(--brand-wash); border-radius: 10px; padding: 8px 10px; }
.ss-shot-kpis small { display: block; color: var(--ink-soft); font-size: 0.74rem; }
.ss-shot-kpis b { color: var(--brand); font-size: 1.05rem; }
.ss-page .gain { color: var(--gain) !important; }
@media (max-width: 900px) {
  .ss-hero .ss-hero-inner { grid-template-columns: 1fr; padding-top: 40px; padding-bottom: 44px; }
  .ss-hero-shot { transform: none; max-width: 420px; }
}

/* ── الشرح العملي (تبويبات) ── */
.ss-flow { display: grid; grid-template-columns: 300px 1fr; gap: 22px; align-items: start; }
.ss-steps { display: grid; gap: 10px; position: relative; }
.ss-step {
  display: flex; gap: 12px; align-items: center; text-align: start; width: 100%; cursor: pointer; font: inherit; color: var(--ink);
  background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius-md); padding: 14px 16px;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.ss-step:hover { border-color: var(--brand-bright); }
.ss-step:focus-visible { outline: 3px solid var(--gold-bright); outline-offset: 2px; }
.ss-step.on { border-color: var(--brand); box-shadow: var(--shadow-md); background: linear-gradient(90deg, var(--surface), var(--brand-wash)); }
.ss-step b { display: block; color: var(--brand); font-size: 0.98rem; }
.ss-step small { display: block; color: var(--ink-soft); font-size: 0.8rem; margin-top: 2px; }
.ss-n { flex-shrink: 0; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--surface-soft); color: var(--brand); font-weight: 700; transition: background .2s ease, color .2s ease; }
.ss-step.on .ss-n { background: var(--brand); color: var(--gold-bright); }
.ss-panels { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px; box-shadow: var(--shadow-sm); min-height: 100%; }
.ss-panel { display: grid; grid-template-columns: 1fr 300px; gap: 26px; align-items: center; animation: ssIn .35s ease; }
.ss-panel[hidden] { display: none; }
.ss-panel h3 { color: var(--brand); font-size: 1.25rem; display: flex; align-items: center; gap: 8px; margin: 0 0 12px; }
.ss-panel h3 .icn { color: var(--gold); }
.ss-ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ss-ticks li { position: relative; padding-inline-start: 26px; color: var(--ink-soft); line-height: 1.75; }
.ss-ticks li::before { content: ""; position: absolute; inset-inline-start: 0; top: 0.55em; width: 14px; height: 8px; border: solid var(--gain); border-width: 0 0 2.5px 2.5px; transform: rotate(-45deg); }
@keyframes ssIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .ss-panel { animation: none; } .ss-step, .ss-n { transition: none; } }

/* شكل مصغّر للشاشات */
.ss-mock { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 14px; font-size: 0.85rem; }
.ss-mock-title { font-weight: 800; color: var(--brand); margin-bottom: 10px; }
.ss-field { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; margin-bottom: 8px; min-width: 0; }
.ss-field small { display: block; color: var(--ink-faint); font-size: 0.75rem; }
.ss-field span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ss-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ss-mock-btn { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 8px; background: var(--brand); color: #fff; border-radius: 8px; padding: 8px; font-weight: 700; }
.ss-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 8px; }
.ss-tiles span { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 10px 4px; text-align: center; font-weight: 600; }
.ss-tiles .hit { border-color: var(--gold-bright); background: var(--gold-wash); }
.ss-stock { display: grid; grid-template-columns: 1fr 70px 30px; gap: 8px; align-items: center; padding: 6px 0; }
.ss-stock i { height: 8px; border-radius: 99px; background: var(--surface-soft); position: relative; overflow: hidden; }
.ss-stock i::after { content: ""; position: absolute; inset-block: 0; inset-inline-start: 0; width: var(--w); background: var(--gain); border-radius: inherit; }
.ss-stock.low i::after { background: var(--cost); }
.ss-stock.low b { color: var(--cost); }
.ss-alert { display: flex; gap: 6px; align-items: center; margin-top: 8px; background: var(--cost-wash); color: var(--cost); border-radius: 8px; padding: 7px 10px; font-weight: 700; }
.ss-bars { display: flex; align-items: flex-end; gap: 6px; height: 90px; padding: 6px 0; }
.ss-bars i { flex: 1; height: var(--h); background: linear-gradient(180deg, var(--brand-bright), var(--brand)); border-radius: 5px 5px 2px 2px; }
.ss-bars i:last-child { background: linear-gradient(180deg, var(--gold-bright), var(--gold)); }
@media (max-width: 1000px) { .ss-panel { grid-template-columns: 1fr; } .ss-mock { max-width: 420px; } }
@media (max-width: 760px) {
  .ss-flow { grid-template-columns: 1fr; }
  .ss-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
  .ss-step { flex-direction: column; text-align: center; padding: 10px 4px; gap: 6px; }
  .ss-step small { display: none; }
  .ss-step b { font-size: 0.74rem; line-height: 1.35; }
  .ss-panels { padding: 18px 16px; }
}

/* ── المميزات ── */
.ss-features-wrap { background: var(--surface); border-block: 1px solid var(--line); }
.ss-features { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 960px) { .ss-features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .ss-features { grid-template-columns: 1fr; } }
.ss-features .feature-card { cursor: default; }
.ss-features .feature-card:hover { transform: translateY(-3px); }
.ss-features .ico .icn { width: 26px; height: 26px; }

/* ── المعاينة التفاعلية ── */
.ss-demo { display: grid; grid-template-columns: 1.1fr 1fr 0.95fr; gap: 16px; align-items: start; }
.ss-demo .card { padding: 16px; }
.ss-demo-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 12px; color: var(--brand); }
.ss-demo-head b { display: inline-flex; gap: 6px; align-items: center; }
.ss-link { background: none; border: 0; color: var(--brand-bright); font: inherit; font-size: 0.84rem; font-weight: 700; cursor: pointer; padding: 4px; }
.ss-link:hover { text-decoration: underline; }
.ss-demo-products { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.ss-prod {
  font: inherit; text-align: start; cursor: pointer; background: var(--paper); border: 1.5px solid var(--line); border-radius: 12px; padding: 10px 12px;
  display: grid; gap: 2px; color: var(--ink); transition: border-color .15s ease, transform .15s ease; min-height: 74px;
}
.ss-prod:hover:not(:disabled) { border-color: var(--brand-bright); transform: translateY(-2px); }
.ss-prod:focus-visible { outline: 3px solid var(--gold-bright); outline-offset: 2px; }
.ss-prod:disabled { opacity: 0.5; cursor: not-allowed; }
.ss-prod b { font-size: 0.88rem; }
.ss-prod .p { color: var(--brand); font-weight: 700; }
.ss-prod small { color: var(--ink-faint); font-size: 0.74rem; }
.ss-prod.low small { color: var(--cost); font-weight: 700; }
.ss-cart { list-style: none; padding: 0; margin: 0 0 10px; min-height: 64px; }
.ss-cart .empty { color: var(--ink-faint); font-size: 0.88rem; padding: 14px 0; text-align: center; }
.ss-line { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; align-items: center; padding: 7px 0; border-bottom: 1px dashed var(--line); font-size: 0.88rem; }
.ss-qty { display: inline-flex; align-items: center; gap: 4px; }
.ss-qty button { width: 28px; height: 28px; border-radius: 8px; border: 1px solid var(--line-strong); background: var(--surface); font: inherit; font-weight: 700; cursor: pointer; color: var(--brand); }
.ss-qty button:disabled { opacity: 0.4; cursor: not-allowed; }
.ss-qty span { min-width: 22px; text-align: center; }
.ss-disc { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 6px 0 10px; font-size: 0.86rem; }
.ss-disc input { width: 110px; padding: 7px 10px; border: 1.5px solid var(--line-strong); border-radius: 8px; font: inherit; }
.ss-totals { margin: 0; display: grid; gap: 4px; }
.ss-totals div { display: flex; justify-content: space-between; font-size: 0.88rem; color: var(--ink-soft); }
.ss-totals dd { margin: 0; }
.ss-totals .big { font-size: 1.1rem; font-weight: 800; color: var(--brand); padding-top: 6px; border-top: 1px solid var(--line); }
.ss-totals .gain { font-weight: 700; }
.ss-pay { width: 100%; margin-top: 12px; justify-content: center; }
.ss-pay:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }
.ss-msg { min-height: 1.4em; margin: 8px 0 0; font-size: 0.84rem; color: var(--gain); font-weight: 700; }
.ss-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.ss-kpis div { background: var(--brand-wash); border-radius: 10px; padding: 8px; text-align: center; }
.ss-kpis small { display: block; font-size: 0.72rem; color: var(--ink-soft); }
.ss-kpis b { color: var(--brand); font-size: 1.02rem; }
.ss-kpis b.bump { animation: ssBump .5s ease; }
@keyframes ssBump { 40% { transform: scale(1.18); } }
.ss-mini-h { margin: 14px 0 6px; font-size: 0.86rem; color: var(--brand); }
.ss-demo-stock { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.ss-demo-stock li { display: grid; grid-template-columns: 1fr 60px 28px; gap: 8px; align-items: center; font-size: 0.8rem; }
.ss-demo-stock i { height: 7px; border-radius: 99px; background: var(--surface-soft); overflow: hidden; }
.ss-demo-stock i::after { content: ""; display: block; height: 100%; width: var(--w); background: var(--gain); transition: width .4s ease; }
.ss-demo-stock li.low i::after { background: var(--cost); }
.ss-demo-stock li.low b { color: var(--cost); }
.ss-receipts { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 4px; max-height: 120px; overflow: auto; }
.ss-receipts li { display: flex; justify-content: space-between; font-size: 0.78rem; background: var(--paper); border-radius: 6px; padding: 5px 8px; }
@media (prefers-reduced-motion: reduce) { .ss-kpis b.bump { animation: none; } .ss-demo-stock i::after { transition: none; } }
@media (max-width: 1080px) { .ss-demo { grid-template-columns: 1fr 1fr; } .ss-demo-dash { grid-column: 1 / -1; } }
@media (max-width: 680px) { .ss-demo { grid-template-columns: 1fr; } }

/* ── الأسئلة والختام ── */
.ss-faq { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 4px 20px; }
.ss-faq .faq-item:last-child { border-bottom: 0; }
.ss-final { padding-bottom: 56px; }
.ss-beta { margin: 28px 0 8px; border: 1.5px solid var(--gold, #c9a227); }
.ss-beta h2 { display: flex; gap: 8px; align-items: center; margin-top: 0; }
.ss-beta-list { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 8px; }
.ss-beta-list li { display: flex; gap: 8px; align-items: flex-start; }
.ss-beta-sub { font-size: 1rem; margin: 14px 0 6px; color: var(--brand); }
.ss-beta-steps { margin: 0 0 6px; padding-inline-start: 22px; display: grid; gap: 4px; line-height: 1.75; }
.ss-final-actions { display: flex; gap: 10px; flex-wrap: wrap; }

@media print { .ss-demo, .ss-hero-shot, .ss-final, .cta-row { display: none !important; } .ss-panel[hidden] { display: grid !important; } }
