/* ========== صفحات اطلاعاتی ایوان کالا ========== */
:root {
  --pg-red: #ef394e;
  --pg-red-deep: #d92d42;
  --pg-text: #0c0c0c;
  --pg-muted: #81858b;
  --pg-hint: #a1a3a8;
  --pg-border: #e0e0e2;
  --pg-bg: #f5f5f7;
  --font: "Yekan Bakh", "YekanBakh", Estedad, Vazirmatn, Tahoma, sans-serif;
}

.pg-page {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--pg-text);
  background: var(--pg-bg);
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
  padding-bottom: calc(40px + env(safe-area-inset-bottom, 0px));
}
.ti-icon--phone { --ti: url("icons/tabler/phone.svg"); }
.ti-icon--mail { --ti: url("icons/tabler/mail.svg"); }
.ti-icon--info-circle { --ti: url("icons/tabler/info-circle.svg"); }
.ti-icon--shield-check { --ti: url("icons/tabler/shield-check.svg"); }
.ti-icon--message-2 { --ti: url("icons/tabler/message-2.svg"); }
.ti-icon--message-circle { --ti: url("icons/tabler/message-circle.svg"); }
.ti-icon--file-invoice { --ti: url("icons/tabler/file-invoice.svg"); }
.ti-icon--map-pin { --ti: url("icons/tabler/map-pin.svg"); }
.ti-icon--clock { --ti: url("icons/tabler/clock.svg"); }
.ti-icon--headset { --ti: url("icons/tabler/headset.svg"); }

.pg-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(900px 420px at 100% 0%, rgba(239, 57, 78, 0.12), transparent 55%),
    radial-gradient(700px 380px at 0% 80%, rgba(25, 191, 211, 0.1), transparent 50%),
    linear-gradient(180deg, #fafafa, #f2f3f5);
}
.pg-bg__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(36px);
  animation: pgOrb 9s ease-in-out infinite alternate;
}
.pg-bg__orb--a {
  width: 220px; height: 220px;
  background: rgba(239, 57, 78, 0.2);
  top: -40px; right: -30px;
}
.pg-bg__orb--b {
  width: 180px; height: 180px;
  background: rgba(25, 191, 211, 0.16);
  bottom: 12%; left: -40px;
  animation-delay: -4s;
}
@keyframes pgOrb {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(14px, 18px, 0) scale(1.1); }
}

/* هدر مشترک خانه روی صفحات اطلاعاتی */
.pg-page .header {
  position: sticky;
  top: 0;
  z-index: 100;
}

.pg-top {
  display: none; /* جایگزین با site-header */
}
.pg-top__inner {
  height: 58px;
  display: grid;
  grid-template-columns: 42px 1fr 42px;
  align-items: center;
  gap: 8px;
}
.pg-top__back,
.pg-top__logo {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--pg-text);
  text-decoration: none;
}
.pg-top__back:hover { background: #f2f3f5; }
.pg-top__back .ti-icon { width: 22px; height: 22px; font-size: 22px; }
.pg-top__title {
  margin: 0;
  text-align: center;
  font-size: 15px;
  font-weight: 800;
}
.pg-top__sq {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--pg-red);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 15px;
}

.pg {
  position: relative;
  z-index: 1;
  padding-top: 18px;
  padding-bottom: 40px;
}

.pg-hero {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  padding: 28px 20px 24px;
  margin-bottom: 18px;
  background: linear-gradient(145deg, #fff 0%, #fff5f6 55%, #fff 100%);
  border: 1px solid #f0f0f1;
  box-shadow: 0 10px 36px rgba(15, 23, 42, 0.06);
  animation: pgIn 0.65s cubic-bezier(0.22, 1.15, 0.36, 1) both;
}
.pg-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 9999px;
  background: #fff1f2;
  color: var(--pg-red);
  font-size: 11px;
  font-weight: 800;
  margin-bottom: 12px;
  animation: pgIn 0.55s ease 0.08s both;
}
.pg-hero__badge .ti-icon {
  width: 14px; height: 14px; font-size: 14px; color: inherit;
}
.pg-hero h1 {
  margin: 0 0 10px;
  font-size: clamp(22px, 5.5vw, 30px);
  font-weight: 900;
  line-height: 1.35;
  animation: pgIn 0.55s ease 0.14s both;
}
.pg-hero p {
  margin: 0;
  max-width: 42ch;
  font-size: 14px;
  font-weight: 500;
  color: var(--pg-muted);
  line-height: 1.8;
  animation: pgIn 0.55s ease 0.2s both;
}
.pg-hero__art {
  position: absolute;
  left: 12px;
  bottom: 10px;
  width: 88px;
  height: 88px;
  opacity: 0.92;
  animation: pgFloat 3.4s ease-in-out infinite;
  pointer-events: none;
}
@media (max-width: 420px) {
  .pg-hero__art { opacity: 0.35; width: 64px; height: 64px; }
}

.pg-grid {
  display: grid;
  gap: 12px;
}
@media (min-width: 860px) {
  .pg-grid--2 { grid-template-columns: 1.1fr 0.9fr; align-items: start; }
}

.pg-card {
  background: #fff;
  border: 1px solid #f0f0f1;
  border-radius: 18px;
  padding: 18px 16px;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.04);
  animation: pgIn 0.55s ease both;
}
.pg-card:nth-child(1) { animation-delay: 0.12s; }
.pg-card:nth-child(2) { animation-delay: 0.18s; }
.pg-card:nth-child(3) { animation-delay: 0.24s; }
.pg-card:nth-child(4) { animation-delay: 0.3s; }
.pg-card:nth-child(5) { animation-delay: 0.36s; }
.pg-card h2 {
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 800;
}
.pg-card p,
.pg-card li {
  font-size: 13.5px;
  font-weight: 500;
  color: #424750;
  line-height: 1.85;
}
.pg-card p { margin: 0 0 10px; }
.pg-card p:last-child { margin-bottom: 0; }
.pg-card ol,
.pg-card ul {
  margin: 0;
  padding-inline-start: 18px;
  display: grid;
  gap: 8px;
}

.pg-stat {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 16px;
  animation: pgIn 0.55s ease 0.26s both;
}
.pg-stat__item {
  text-align: center;
  padding: 12px 8px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid #f0f0f1;
}
.pg-stat__item strong {
  display: block;
  font-size: 18px;
  font-weight: 900;
  color: var(--pg-red);
  margin-bottom: 2px;
}
.pg-stat__item span {
  font-size: 11px;
  font-weight: 700;
  color: var(--pg-muted);
}

.pg-contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.pg-contact-list a,
.pg-contact-list .pg-contact-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  background: #fafafa;
  border: 1px solid #f0f0f1;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}
.pg-contact-list a:hover {
  background: #fff1f2;
  border-color: #ffd0d6;
  transform: translateY(-1px);
}
.pg-contact-list__ico {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: #fff;
}
.pg-contact-list__ico .ti-icon {
  width: 22px; height: 22px; font-size: 22px;
  color: #fff; background-color: #fff;
}
.pg-contact-list__ico.is-phone { background: linear-gradient(145deg, #34c759, #28a745); }
.pg-contact-list__ico.is-mail { background: linear-gradient(145deg, #19bfd3, #0ea5b8); }
.pg-contact-list__ico.is-pin { background: linear-gradient(145deg, #ef394e, #ff6b7a); }
.pg-contact-list__ico.is-clock { background: linear-gradient(145deg, #f9bc00, #e0a800); }
.pg-contact-list strong {
  display: block;
  font-size: 13px;
  font-weight: 800;
}
.pg-contact-list span {
  font-size: 12px;
  color: var(--pg-muted);
  font-weight: 600;
}

.pg-form {
  display: grid;
  gap: 12px;
}
.pg-form label {
  display: grid;
  gap: 6px;
  font-size: 12px;
  font-weight: 800;
  color: #424750;
}
.pg-form input,
.pg-form textarea,
.pg-form select {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--pg-border);
  border-radius: 12px;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  outline: 0;
  background: #fff;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.pg-form textarea { min-height: 120px; resize: vertical; line-height: 1.7; }
.pg-form input:focus,
.pg-form textarea:focus,
.pg-form select:focus {
  border-color: var(--pg-red);
  box-shadow: 0 0 0 4px rgba(239, 57, 78, 0.12);
}
.pg-form__btn {
  height: 48px;
  border: 0;
  border-radius: 12px;
  background: var(--pg-red);
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(239, 57, 78, 0.26);
  transition: background 0.18s ease, transform 0.15s ease;
}
.pg-form__btn:hover { background: var(--pg-red-deep); }
.pg-form__btn:active { transform: scale(0.98); }
.pg-form__btn.is-ok {
  background: #00a049;
  box-shadow: 0 10px 22px rgba(0, 160, 73, 0.26);
}
.pg-form__msg {
  margin: 0;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  color: #00a049;
  min-height: 18px;
}

.pg-steps {
  display: grid;
  gap: 10px;
  counter-reset: pgstep;
}
.pg-steps li {
  list-style: none;
  position: relative;
  padding: 14px 14px 14px 52px;
  border-radius: 14px;
  background: #fafafa;
  border: 1px solid #f0f0f1;
  counter-increment: pgstep;
}
.pg-steps li::before {
  content: counter(pgstep);
  position: absolute;
  right: 14px;
  top: 14px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #fff1f2;
  color: var(--pg-red);
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 900;
}
[dir="rtl"] .pg-steps li {
  padding: 14px 52px 14px 14px;
}
.pg-steps {
  list-style: none;
  padding: 0;
  margin: 0;
}
.pg-steps strong {
  display: block;
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 4px;
  color: var(--pg-text);
}
.pg-steps span {
  font-size: 12.5px;
  color: var(--pg-muted);
  font-weight: 500;
  line-height: 1.7;
}

.pg-accord {
  display: grid;
  gap: 8px;
}
.pg-accord details {
  border: 1px solid #f0f0f1;
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
  transition: box-shadow 0.2s ease;
}
.pg-accord details[open] {
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  border-color: #ffd0d6;
}
.pg-accord summary {
  list-style: none;
  cursor: pointer;
  padding: 14px 16px;
  font-size: 13.5px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.pg-accord summary::-webkit-details-marker { display: none; }
.pg-accord summary::after {
  content: "";
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  background-color: var(--pg-muted);
  -webkit-mask: url("icons/tabler/chevron-down.svg") center / contain no-repeat;
  mask: url("icons/tabler/chevron-down.svg") center / contain no-repeat;
  transition: transform 0.25s ease;
}
.pg-accord details[open] summary::after { transform: rotate(180deg); }
.pg-accord__body {
  padding: 0 16px 14px;
  font-size: 13px;
  color: #424750;
  line-height: 1.8;
  font-weight: 500;
}

.pg-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
  animation: pgIn 0.55s ease 0.3s both;
}
.pg-links a {
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  color: #424750;
  background: #fff;
  border: 1px solid #e0e0e2;
  border-radius: 9999px;
  padding: 8px 12px;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.pg-links a:hover,
.pg-links a.is-current {
  background: #fff1f2;
  color: var(--pg-red);
  border-color: #ef394e;
}

.pg-toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%) translateY(16px);
  background: #232933;
  color: #fff;
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  z-index: 80;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.pg-toast.is-on {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@keyframes pgIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}
@keyframes pgFloat {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50% { transform: translateY(-10px) rotate(3deg); }
}

@media (prefers-reduced-motion: reduce) {
  .pg-bg__orb, .pg-hero, .pg-hero__badge, .pg-hero h1, .pg-hero p,
  .pg-card, .pg-stat, .pg-links, .pg-hero__art {
    animation: none !important;
  }
}
