/* ===========================================================
   صفحات سیستمی — ۴۰۴ و «محصول یافت نشد»
   پورت مستقیم از ui/404.html و ui/product-not-found.html، اسکوپ زیر .rey-ui.
   =========================================================== */

.rey-ui .error-wrap { position: relative; margin-top: 30px; padding: 70px 24px 60px; text-align: center;
  display: flex; flex-direction: column; align-items: center;
  border: 1.5px dashed #d9e2dd; border-radius: 28px; overflow: hidden;
  background:
    radial-gradient(circle at 15% 20%, var(--green-100) 0, transparent 30%),
    radial-gradient(circle at 85% 80%, var(--green-100) 0, transparent 30%), var(--bg); }

.rey-ui .err-code { display: flex; align-items: center; gap: 6px; direction: ltr; }
.rey-ui .err-code > span:not(.err-ill) { font: 900 140px/1 var(--rey-font); color: transparent; -webkit-text-stroke: 3px var(--navy); }
.rey-ui .err-ill { color: var(--green); animation: rey-floaty 3.4s ease-in-out infinite; }
.rey-ui .err-ill svg { width: 130px; height: 130px; display: block; }

.rey-ui .error-wrap h1 { font: 800 26px var(--rey-font); color: var(--navy); margin: 30px 0 0; }
.rey-ui .error-wrap > p { font: 400 14px/2.2 var(--rey-font); color: var(--text-3); margin: 12px 0 0; max-width: 440px; }

.rey-ui .err-search { margin-top: 26px; width: min(440px, 100%); display: flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid var(--border); border-radius: 999px; padding: 5px; box-shadow: 0 6px 20px rgba(0,0,0,.05); }
.rey-ui .err-search input { flex: 1; min-width: 0; border: none; outline: none; background: transparent; font: 400 13px var(--rey-font); padding: 8px 14px; color: var(--text); }
.rey-ui .err-search button { background: var(--green); color: #fff; border: none; border-radius: 999px; padding: 10px 24px; font: 600 13px var(--rey-font); cursor: pointer; }

.rey-ui .err-actions { display: flex; gap: 12px; margin-top: 22px; flex-wrap: wrap; justify-content: center; }
.rey-ui .err-links { display: flex; gap: 8px; align-items: center; margin-top: 26px; flex-wrap: wrap; justify-content: center; }
.rey-ui .err-links span { font: 400 12px var(--rey-font); color: var(--muted); }
.rey-ui .err-links a { font: 500 12px var(--rey-font); color: var(--text-2); background: #fff; border: 1px solid var(--border); border-radius: 99px; padding: 6px 14px; transition: all .2s; }
.rey-ui .err-links a:hover { color: var(--green); border-color: var(--green); }

.rey-ui .float-chip { position: absolute; width: 44px; height: 44px; border-radius: calc(14px * var(--rey-r)); background: #fff; border: 1px solid var(--border); color: var(--green);
  display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 20px rgba(0,0,0,.06); }
.rey-ui .float-chip svg { width: 20px; height: 20px; }
.rey-ui .fc1 { top: 60px; right: 10%; animation: rey-floaty 4s ease-in-out infinite; }
.rey-ui .fc2 { top: 150px; left: 8%; animation: rey-floaty 5s ease-in-out infinite .6s; }
.rey-ui .fc3 { bottom: 130px; right: 16%; animation: rey-floaty 4.6s ease-in-out infinite .3s; }
.rey-ui .fc4 { bottom: 80px; left: 14%; animation: rey-floaty 5.4s ease-in-out infinite 1s; }
@keyframes rey-floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* کارت شبح (محصول یافت نشد) */
.rey-ui .ghost-card { width: 200px; background: #fff; border: 2px dashed #c9d5cf; border-radius: calc(18px * var(--rey-r)); padding: 10px; animation: rey-floaty 3.8s ease-in-out infinite; }
.rey-ui .ghost-card .g-img { aspect-ratio: 1500/1820; border-radius: calc(12px * var(--rey-r)); background: var(--gray-1); display: flex; align-items: center; justify-content: center; color: #b9c4be; }
.rey-ui .ghost-card .g-img svg { width: 64px; height: 64px; }
.rey-ui .ghost-card .g-line { height: 9px; border-radius: 99px; background: var(--gray-1); margin: 10px 6px 0; }
.rey-ui .ghost-card .g-line.w70 { width: 70%; }
.rey-ui .ghost-card .g-line.w45 { width: 45%; }
.rey-ui .ghost-card .g-price { height: 12px; width: 55%; border-radius: 99px; background: #dcece4; margin: 12px 6px 4px; }

/* بخش پیشنهادها */
.rey-ui .pnf-suggest { margin-top: 52px; margin-bottom: 40px; }
.rey-ui .sec-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 20px; }
.rey-ui .sec-head .eyebrow { font: 600 11px var(--rey-font); color: var(--muted); letter-spacing: .1em; margin-bottom: 5px; }
.rey-ui .sec-head h2 { font: 700 22px var(--rey-font); color: var(--navy); margin: 0; }
.rey-ui .see-all { font: 600 13px var(--rey-font); color: var(--green); }
.rey-ui .prow { display: flex; gap: 16px; overflow-x: auto; }
.rey-ui .prow > div { flex: 0 0 190px; display: flex; }
.rey-ui .prow > div > .rey-pcard { flex: 1; }

/* ریسپانسیو */
@media (max-width: 768px) {
  .rey-ui .error-wrap { padding: 44px 16px 40px; margin-top: 18px; border-radius: calc(18px * var(--rey-r)); }
  .rey-ui .err-code > span:not(.err-ill) { font-size: 82px; -webkit-text-stroke-width: 2px; }
  .rey-ui .err-ill svg { width: 76px; height: 76px; }
  .rey-ui .error-wrap h1 { font-size: 19px; margin-top: 20px; }
  .rey-ui .error-wrap > p { font-size: 12.5px; }
  .rey-ui .float-chip { width: 34px; height: 34px; border-radius: calc(10px * var(--rey-r)); }
  .rey-ui .float-chip svg { width: 15px; height: 15px; }
  .rey-ui .fc1 { top: 24px; right: 6%; } .rey-ui .fc2 { top: 90px; left: 5%; }
  .rey-ui .fc3 { bottom: 170px; right: 8%; } .rey-ui .fc4 { bottom: 90px; left: 7%; }
  .rey-ui .ghost-card { width: 150px; }
  .rey-ui .pnf-suggest { margin-top: 34px; }
  .rey-ui .sec-head h2 { font-size: 16px; }
  .rey-ui .prow > div { flex: 0 0 156px; }
}
