/* ============================================================
   امرتات کامرس — دپارتمان توسعهٔ اختصاصی
   Dark re-skin on top of commerce.css + prestashop.css structure.
   Custom-dev accent = magenta/pink (#EC4899) — distinct from
   PrestaShop's cyan, Shopware's blue, Sylius's emerald, Medusa's
   amber, Magento's crimson, and the main-site violet.
   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="custom-ecommerce"] {
  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="custom-ecommerce"]::before {
  content: ''; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(640px 480px at 82% -4%, rgba(236,72,153,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 the custom-dev magenta */
.ps.cd {
  --ps: #EC4899;
  --ps-dark: #C22C74;
  --ps-darker: #971E59;
  --ps-soft: rgba(236, 72, 153, 0.12);
  --ps-soft2: rgba(236, 72, 153, 0.22);
  --ps-tint: var(--bg-2);
  --urgent: #FB7185;
  --urgent-dark: #F43F5E;
  --urgent-soft: rgba(251, 113, 133, 0.12);
}
.cd .eyebrow { border-color: rgba(236,72,153,0.28); }
.cd .btn-ps { color: #2B0517; box-shadow: 0 14px 30px -12px rgba(236,72,153,0.5); }
.cd .btn-ps:hover { box-shadow: 0 20px 40px -14px rgba(236,72,153,0.62); }

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

/* ---- stack chips strip ---- */
.cd-stack { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--border); }
.cd-chip { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 700; color: var(--text-2);
  background: var(--surface-2); border: 1px solid var(--border); padding: 7px 14px 7px 10px; border-radius: 100px; font-family: var(--font-mono); direction: ltr; unicode-bidi: isolate; }
.cd-chip img { width: 16px; height: 16px; object-fit: contain; flex-shrink: 0; }

/* ---- approach strip (how we pick the stack) ---- */
.cd-approach { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cd-ap { background: linear-gradient(180deg, var(--surface-2), var(--surface)); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 24px 22px; }
.cd-ap .ap-num { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 10px; background: var(--ps-soft); color: var(--ps); font-weight: 800; font-size: 15px; margin-bottom: 14px; }
.cd-ap .ap-t { font-size: 15px; font-weight: 800; color: var(--text); margin-bottom: 8px; }
.cd-ap .ap-d { font-size: 13px; color: var(--text-2); line-height: 1.8; }

@media (max-width: 1080px) {
  .cd-approach { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .cd-stack { gap: 8px; }
}

/* Remove browser mock look and 3D tilts for custom-ecommerce visual */
body[data-page="custom-ecommerce"] .ps-window {
  transform: none !important;
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: none;
  border: none;
  background: transparent;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
body[data-page="custom-ecommerce"] .ps-visual:hover .ps-window {
  transform: translateY(-5px) !important;
}

body[data-page="custom-ecommerce"] .ps-window::before {
  display: none !important;
}

body[data-page="custom-ecommerce"] .ps-float.f-a {
  top: -45px !important;
}

body[data-page="custom-ecommerce"] .ps-float.f-b {
  bottom: -30px !important;
}

#cd-hero-shot::part(ring) {
  display: none !important;
}

/* Make visual column larger and copy column slightly narrower on desktop */
@media (min-width: 1025px) {
  body[data-page="custom-ecommerce"] .ps-hero-inner {
    grid-template-columns: 0.8fr 1.25fr;
    gap: 48px;
  }
}
