/* ============================================================
   امرتات کامرس — دپارتمان Shopware
   Dark re-skin on top of commerce.css + prestashop.css structure.
   Shopware accent = blue (#4F8EFF) — distinct from PrestaShop's
   cyan and the main-site violet, but on-brand and dark-themed.
   Reuses the generic .ps-* structural classes from prestashop.css
   (hero / services / stats / steps / faq / final-cta) and simply
   overrides the accent custom-properties + a few hardcoded cyan
   spots for this page.
   ============================================================ */

body[data-page="shopware"] {
  font-family: var(--font-fa);
  background: var(--bg);
  color: var(--text);
  line-height: 1.85;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  direction: rtl;
}
body[data-page="shopware"]::before {
  content: ''; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(640px 480px at 82% -4%, rgba(79,142,255,0.10), transparent 60%),
    radial-gradient(560px 440px at 6% 8%, rgba(108,99,255,0.08), transparent 60%);
}

/* accent override: reuse the same var names the ps-* structural
   rules already reference, just with Shopware's blue */
.ps.sw {
  --ps: #4F8EFF;
  --ps-dark: #2F6FE0;
  --ps-darker: #1F52B0;
  --ps-soft: rgba(79, 142, 255, 0.12);
  --ps-soft2: rgba(79, 142, 255, 0.22);
  --ps-tint: var(--bg-2);
  --urgent: #FB7185;
  --urgent-dark: #F43F5E;
  --urgent-soft: rgba(251, 113, 133, 0.12);
}
.sw .eyebrow { border-color: rgba(79,142,255,0.28); }
.sw .btn-ps { color: #04203A; box-shadow: 0 14px 30px -12px rgba(79,142,255,0.5); }
.sw .btn-ps:hover { box-shadow: 0 20px 40px -14px rgba(79,142,255,0.62); }

/* hardcoded-cyan spots in prestashop.css → shopware blue */
.sw .ps-aurora.a1 { background: rgba(79, 142, 255, 0.16); }
.sw .ps-window::before { background: linear-gradient(140deg, rgba(79,142,255,0.45), transparent 45%, rgba(108,99,255,0.3) 95%); }
.sw .cta-final.ps-cta { border-color: rgba(79,142,255,0.24); background: linear-gradient(150deg, rgba(79,142,255,0.18), rgba(108,99,255,0.12) 70%, var(--surface)); }

/* ---- open-source strip ---- */
.sw-os { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 26px; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--border); }
.sw-os-item { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-2); font-weight: 600; }
.sw-os-item i { font-size: 17px; color: var(--ps); }

/* ---- edition strip (Community / Rise / Evolve / Beyond) ---- */
.sw-editions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.sw-edition { background: linear-gradient(180deg, var(--surface-2), var(--surface)); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 24px 22px; text-align: center; transition: border-color .25s, transform .25s; }
.sw-edition:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.sw-edition.hl { border-color: rgba(79,142,255,0.4); background: linear-gradient(180deg, rgba(79,142,255,0.10), var(--surface)); }
.sw-edition .se-name { font-size: 16px; font-weight: 800; color: var(--text); margin-bottom: 6px; }
.sw-edition .se-tag { display: inline-block; font-size: 11px; font-weight: 700; color: var(--ps); background: var(--ps-soft); padding: 3px 11px; border-radius: 100px; margin-bottom: 14px; }
.sw-edition .se-desc { font-size: 13px; color: var(--text-2); line-height: 1.8; }

@media (max-width: 1080px) {
  .sw-editions { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .sw-editions { grid-template-columns: 1fr; }
  .sw-os { gap: 10px 18px; }
}
