/* ============================================================
   اکسپو تجهیز — استایل اختصاصی صفحات فرانت (فروشگاه اجاره تجهیزات)
   ============================================================ */

/* ---------- فونت ---------- */
@font-face {
  font-family: "IRANSansWeb";
  font-style: normal;
  font-weight: normal;
  src: url("../fonts/IRANSansWeb.woff2") format("woff2");
}
@font-face {
  font-family: "IRANSansWeb";
  font-style: normal;
  font-weight: 300;
  src: url("../fonts/IRANSansWeb_Light.woff2") format("woff2");
}
@font-face {
  font-family: "IRANSansWeb";
  font-style: normal;
  font-weight: 500;
  src: url("../fonts/IRANSansWeb_Medium.woff2") format("woff2");
}

/* ---------- متغیرها ---------- */
:root {
  --primary: #4f46e5;
  --primary-dark: #4338ca;
  --primary-light: #eef2ff;
  --success: #059669;
  --danger: #dc2626;
  --warning: #d97706;
  --bg: #f6f7fb;
  --card-bg: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --border: #e5e7eb;
  --radius: 14px;
  --shadow: 0 4px 18px rgba(17, 24, 39, .07);
  --shadow-lg: 0 12px 32px rgba(17, 24, 39, .13);
}

/* ---------- پایه ---------- */
* { box-sizing: border-box; }

html { font-size: 15px; scroll-behavior: smooth; }

body {
  margin: 0;
  padding: 0;
  direction: rtl;
  text-align: right;
  font-family: "IRANSansWeb", "Segoe UI", Tahoma, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.8;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1 0 auto; padding-bottom: 48px; }

a { color: var(--primary); text-decoration: none; transition: color .18s ease; }
a:hover { color: var(--primary-dark); }

img { max-width: 100%; }

h1, h2, h3, h4, h5 { line-height: 1.5; margin: 0 0 .6rem; color: var(--text); }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

::selection { background: var(--primary); color: #fff; }

/* ---------- هدر ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: linear-gradient(135deg, #111827 0%, #1f2937 60%, #312e81 100%);
  box-shadow: 0 2px 14px rgba(0, 0, 0, .25);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.brand {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff !important;
  letter-spacing: -.2px;
  white-space: nowrap;
}
.brand:hover { opacity: .9; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.main-nav > a {
  color: #d1d5db;
  padding: 8px 13px;
  border-radius: 10px;
  font-size: .95rem;
  transition: all .18s ease;
  white-space: nowrap;
}

.main-nav > a:hover {
  color: #fff;
  background: rgba(255, 255, 255, .09);
}

.cart-link { position: relative; }

.cart-badge {
  position: absolute;
  top: -4px;
  left: -6px;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--danger);
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* ---------- فوتر ---------- */
.site-footer {
  flex-shrink: 0;
  background: #111827;
  color: #cfd4e0;
  text-align: center;
  padding: 26px 16px;
  font-size: .9rem;
}
.site-footer a { color: #cfd4e0; }
.site-footer a:hover { color: #fff; }

/* ---------- دکمه‌ها ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 22px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-family: inherit;
  font-size: .95rem;
  font-weight: 500;
  line-height: 1.6;
  cursor: pointer;
  transition: all .18s ease;
  text-decoration: none !important;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--primary);
  color: #fff !important;
  box-shadow: 0 4px 14px rgba(79, 70, 229, .32);
}
.btn-primary:hover { background: var(--primary-dark); box-shadow: 0 6px 18px rgba(79, 70, 229, .42); }

.btn-success {
  background: var(--success);
  color: #fff !important;
  box-shadow: 0 4px 14px rgba(5, 150, 105, .3);
}
.btn-success:hover { background: #047857; }

.btn-danger {
  background: var(--danger);
  color: #fff !important;
  box-shadow: 0 4px 14px rgba(220, 38, 38, .28);
}
.btn-danger:hover { background: #b91c1c; }

.btn-outline {
  background: transparent;
  color: var(--primary) !important;
  border-color: var(--primary);
}
.btn-outline:hover { background: var(--primary-light); }

.btn-block { width: 100%; }

/* ---------- تیتر بخش ها ---------- */
.section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.35rem;
  font-weight: 700;
  margin: 34px 0 20px;
  color: var(--text);
}
.section-title::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 26px;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--primary), #8b5cf6);
  flex-shrink: 0;
}

.read-more { font-size: .85rem; margin-right: 8px; }

/* ---------- حالت خالی ---------- */
.empty-state {
  background: var(--card-bg);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  text-align: center;
  padding: 56px 24px;
  margin: 30px auto;
  max-width: 560px;
  color: var(--muted);
  box-shadow: var(--shadow);
}
.empty-state .icon { font-size: 3rem; margin-bottom: 12px; }
.empty-state h2 { font-size: 1.25rem; color: var(--text); }
.empty-state p { margin: 0 0 16px; }

/* ---------- اسلایدر اصلی ---------- */
.hero-slider {
  position: relative;
  overflow: hidden;
  border-radius: 0 0 26px 26px;
  box-shadow: var(--shadow-lg);
}

.slider-container {
  display: flex;
  transition: transform .65s cubic-bezier(.77, 0, .175, 1);
}

.slide {
  min-width: 100%;
  min-height: 420px;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
}

.slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to left, rgba(17, 24, 39, .82) 8%, rgba(17, 24, 39, .45) 55%, rgba(49, 46, 129, .35) 100%);
}

.slide-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 40px 48px;
  color: #fff;
}
.slide-content h1 {
  color: #fff;
  font-size: clamp(1.5rem, 3.4vw, 2.6rem);
  font-weight: 700;
  margin-bottom: 12px;
  text-shadow: 0 2px 14px rgba(0, 0, 0, .45);
}
.slide-content p {
  font-size: clamp(.95rem, 1.6vw, 1.15rem);
  color: #e5e7eb;
  max-width: 620px;
  margin: 0;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .5);
}

.slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background: rgba(255, 255, 255, .16);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .2s ease;
}
.slider-nav:hover { background: var(--primary); }
.slider-prev { right: 18px; }
.slider-next { left: 18px; }

.slider-dots {
  position: absolute;
  bottom: 18px;
  right: 0;
  left: 0;
  z-index: 3;
  display: flex;
  justify-content: center;
  gap: 8px;
}
.dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .45);
  cursor: pointer;
  transition: all .25s ease;
}
.dot.active { width: 28px; background: #fff; }

/* ---------- دسته بندی های صفحه اصلی ---------- */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 10px;
}

.category-card {
  display: flex;
  flex-direction: column;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all .22s ease;
  color: var(--text) !important;
}
.category-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}

.category-img {
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  background: linear-gradient(135deg, var(--primary-light), #fce7f3);
}

.category-body { padding: 16px 18px 18px; }
.category-body h3 { font-size: 1.05rem; margin-bottom: 4px; }
.category-body p {
  color: var(--muted);
  font-size: .86rem;
  margin: 0 0 10px;
  min-height: 2.6em;
}

.badge-category {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 500;
  background: var(--primary-light);
  color: var(--primary-dark) !important;
}

/* ---------- چیپ های دسته بندی ---------- */
.category-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 18px;
  border-radius: 999px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  color: var(--text) !important;
  font-size: .88rem;
  transition: all .18s ease;
  box-shadow: var(--shadow);
}
.chip:hover { border-color: var(--primary); color: var(--primary) !important; }
.chip.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff !important;
  box-shadow: 0 4px 14px rgba(79, 70, 229, .32);
}

/* ---------- فرم جستجو ---------- */
.search-form {
  display: flex;
  gap: 10px;
  max-width: 520px;
  margin-bottom: 28px;
}

.search-input {
  flex: 1;
  padding: 11px 16px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--card-bg);
  font-family: inherit;
  font-size: .95rem;
  color: var(--text);
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.search-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, .15);
}

/* ---------- لیست محصولات ---------- */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 22px;
  margin-bottom: 40px;
}

.product-card {
  display: flex;
  flex-direction: column;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all .22s ease;
  position: relative; /* برای دکمه افزودن سریع به سبد */
}
.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}
.product-card > a { color: var(--text) !important; }

.product-img {
  aspect-ratio: 3 / 2;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.6rem;
  background: linear-gradient(135deg, #eef2ff, #fdf4ff);
  overflow: hidden;
}
.product-img img { width: 100%; height: 100%; object-fit: contain; display: block; }

.product-body { padding: 16px 18px 8px; flex: 1; }
.product-body h3 { font-size: 1.02rem; margin-bottom: 6px; }
.product-body p {
  color: var(--muted);
  font-size: .85rem;
  margin: 0 0 10px;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 18px 18px;
}

.product-price {
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--text);
  white-space: nowrap;
}
.product-price small {
  font-weight: 400;
  font-size: .74rem;
  color: var(--muted);
}

/* ---------- دکمه افزودن سریع به سبد خرید روی کارت محصول ---------- */
.card-add-form {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 6;
}

.card-add-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  border: none;
  border-radius: 999px;
  background: var(--success);
  color: #fff !important;
  font-family: inherit;
  font-size: .8rem;
  font-weight: 500;
  line-height: 1.6;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(5, 150, 105, .35);
  transition: all .2s ease;
}
.card-add-btn:hover { background: #047857; transform: translateY(-1px); }
.card-add-btn:active { transform: translateY(1px); }

/* ---------- مسیر راهنما (بردکرامب) ---------- */
.breadcrumb-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 26px 0 20px;
  font-size: .9rem;
  color: var(--muted);
}
.breadcrumb-nav span { color: #b0b7c3; }
.breadcrumb-nav .current { color: var(--text); font-weight: 500; }

/* ---------- جزئیات محصول ---------- */
.detail-card {
  display: grid;
  grid-template-columns: minmax(260px, 420px) 1fr;
  gap: 28px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
}

.detail-img {
  min-height: 280px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 6rem;
  background: linear-gradient(135deg, #eef2ff, #fdf4ff);
  overflow: hidden;
}
.detail-img img { width: 100%; height: 100%; min-height: 280px; object-fit: contain; display: block; }

.detail-info h1 { font-size: 1.55rem; margin-bottom: 10px; }

.detail-price {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 14px;
}
.detail-price small { font-size: .82rem; font-weight: 400; color: var(--muted); }

.detail-desc {
  color: var(--muted);
  font-size: .95rem;
  margin-bottom: 18px;
}

.add-to-cart-form {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 16px;
  border-radius: 12px;
  background: var(--bg);
  margin-bottom: 18px;
}
.add-to-cart-form label { font-weight: 500; }

.qty-input {
  width: 84px;
  padding: 9px 12px;
  text-align: center;
  border-radius: 10px;
  border: 1px solid var(--border);
  font-family: inherit;
  font-size: .95rem;
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.qty-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, .15);
}

.detail-features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--muted);
  font-size: .9rem;
}

/* ---------- جدول ها ---------- */
.table-wrap {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 8px 20px 20px;
  overflow-x: auto;
  margin-top: 10px;
}

.table-wrap table {
  width: 100%;
  border-collapse: collapse;
  min-width: 520px;
}

.table-wrap th,
.table-wrap td {
  padding: 13px 14px;
  text-align: right;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.table-wrap thead th {
  background: var(--bg);
  color: var(--muted);
  font-size: .85rem;
  font-weight: 500;
  white-space: nowrap;
}

.table-wrap tbody tr:last-child th,
.table-wrap tbody tr:last-child td { border-bottom: none; }
.table-wrap tbody tr:hover td { background: #fafbff; }

.total-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 4px 4px;
  font-size: 1.08rem;
  font-weight: 700;
  border-top: 2px solid var(--border);
  margin-top: 6px;
}

/* ---------- فرم ها ---------- */
/* نکته: نام کلاس tj-form-group انتخاب شده تا با استایل‌های قالب (main.css که
   روی .form-group input نمایش none می‌دهد) تداخل نکند. */
.tj-form-group { margin-bottom: 18px; }

.tj-form-group label {
  display: block;
  font-size: .9rem;
  font-weight: 500;
  margin-bottom: 7px;
}

.text-input,
textarea.text-input,
select.text-input {
  display: block;
  width: 100%;
  padding: 11px 15px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--card-bg);
  font-family: inherit;
  font-size: .95rem;
  color: var(--text);
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.text-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, .15);
}

.field-error { display: block; color: var(--danger); font-size: .8rem; margin-top: 5px; }
.field-validation-error { color: var(--danger); font-size: .8rem; }
.input-validation-error { border-color: var(--danger) !important; }

/* ---------- هدر صفحات داخلی ---------- */
.page-header {
  background: linear-gradient(135deg, #312e81 0%, var(--primary) 55%, #7c3aed 100%);
  color: #fff;
  text-align: center;
  padding: 52px 20px 46px;
  margin-bottom: 34px;
}
.page-header h1 {
  color: #fff;
  font-size: clamp(1.4rem, 3vw, 2.1rem);
  margin-bottom: 8px;
}
.page-header p { color: #e0e7ff; margin: 0; font-size: 1rem; }

/* ---------- کارت محتوا ---------- */
.content-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
  margin-bottom: 24px;
}
.content-card > h2 { font-size: 1.2rem; position: relative; padding-right: 14px; }
.content-card > h2::before {
  content: "";
  position: absolute;
  right: 0;
  top: 6px;
  bottom: 6px;
  width: 5px;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--primary), #8b5cf6);
}
.content-card p { color: var(--muted); }

/* ---------- شبکه ویژگی ها ---------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}

.feature-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  text-align: center;
  transition: all .22s ease;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.feature-card h4 { font-size: 1rem; margin-bottom: 8px; }
.feature-card p { color: var(--muted); font-size: .87rem; margin: 0; }

.feature-icon {
  width: 62px;
  height: 62px;
  margin: 0 auto 14px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.9rem;
  background: linear-gradient(135deg, var(--primary-light), #fce7f3);
}

/* ---------- تماس با ما ---------- */
.contact-info { display: flex; flex-direction: column; gap: 22px; }

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.contact-item h4 { font-size: .98rem; margin-bottom: 2px; }
.contact-item p { margin: 0; color: var(--muted); font-size: .9rem; }

.contact-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  background: var(--primary-light);
}

/* ---------- ریسپانسیو ---------- */
@media (max-width: 900px) {
  .detail-card { grid-template-columns: 1fr; }
  .slide { min-height: 340px; }
}

@media (max-width: 640px) {
  html { font-size: 14px; }

  .header-inner { justify-content: center; text-align: center; }
  .main-nav { justify-content: center; }

  .slide-content { padding: 32px 22px; }
  .slider-prev { right: 10px; }
  .slider-next { left: 10px; }
  .slider-nav { width: 36px; height: 36px; font-size: 1rem; }

  .categories-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
  .category-img { height: 84px; font-size: 2.3rem; }

  .products-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
  .product-img { font-size: 2.6rem; }
  .product-footer { flex-direction: column; align-items: stretch; text-align: center; }

  .search-form { max-width: none; }

  .content-card { padding: 20px; }
  .page-header { padding: 38px 16px 34px; }
}

/* ---------- صفحه جزئیات مقاله بلاگ ---------- */
.article-card-full { padding: 0; overflow: hidden; }

.article-hero {
  max-height: 420px;
  overflow: hidden;
  background: var(--bg);
}
.article-hero img {
  width: 100%;
  height: 100%;
  max-height: 420px;
  object-fit: cover;
  display: block;
}

.article-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  padding: 22px 28px 0;
}
.meta-item {
  color: var(--muted);
  font-size: .85rem;
}

.article-title {
  font-size: clamp(1.3rem, 2.6vw, 1.8rem);
  margin: 14px 28px 10px;
}

.article-summary {
  margin: 0 28px 18px;
  padding: 14px 18px;
  border-right: 4px solid var(--primary);
  border-radius: 10px;
  background: var(--primary-light);
  color: #3730a3 !important;
  font-size: .95rem;
}

.article-content {
  padding: 6px 28px 26px;
  color: var(--text);
  font-size: .97rem;
  line-height: 2.1;
  word-wrap: break-word;
}
.article-content h2 { font-size: 1.25rem; margin: 26px 0 10px; }
.article-content h3 { font-size: 1.08rem; margin: 20px 0 8px; }
.article-content p { margin: 0 0 14px; }
.article-content img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 12px 0;
}
.article-content ul,
.article-content ol {
  padding-right: 24px;
  margin: 0 0 14px;
}
.article-content blockquote {
  margin: 16px 0;
  padding: 12px 18px;
  border-right: 4px solid var(--border);
  background: var(--bg);
  border-radius: 10px;
  color: var(--muted);
}
.article-content a { text-decoration: underline; }

.article-attachment {
  margin: 0 28px 26px;
  padding: 14px 18px;
  border-radius: 10px;
  background: var(--bg);
  font-size: .92rem;
}

/* ---------- صفحه پرداخت (Checkout) ---------- */

/* هشدار عدم کسر موجودی تا پرداخت کامل */
.checkout-warning {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  max-width: 640px;
  margin: 0 0 20px;
  padding: 14px 18px;
  border: 1px solid #fcd34d;
  border-radius: 12px;
  background: #fffbeb;
  color: #92400e;
  font-size: .92rem;
  line-height: 1.9;
}
.checkout-warning-icon { font-size: 1.4rem; line-height: 1.4; }

/* کارت‌های انتخاب روش پرداخت */
.pay-methods {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 8px;
}
@media (max-width: 575px) {
  .pay-methods { grid-template-columns: 1fr; }
}
.pay-method-card {
  position: relative;
  display: block;
  cursor: pointer;
}
.pay-method-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.pay-method-card .pmc-body {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 2px solid var(--border, #e5e7eb);
  border-radius: 12px;
  background: #fff;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.pay-method-card:hover .pmc-body { border-color: var(--primary); }
.pay-method-card input[type="radio"]:checked + .pmc-body,
.pay-method-card.selected .pmc-body {
  border-color: var(--primary);
  background: var(--primary-light);
  box-shadow: 0 4px 14px rgba(79, 70, 229, .15);
}
.pmc-icon { font-size: 1.7rem; }
.pmc-text { display: flex; flex-direction: column; gap: 2px; }
.pmc-text strong { font-size: .95rem; }
.pmc-text small { color: #6b7280; font-size: .78rem; }

/* پنل فیش واریزی */
.receipt-panel {
  display: none;
  margin: 14px 0 18px;
  padding: 16px;
  border: 1px dashed var(--primary);
  border-radius: 12px;
  background: var(--primary-light);
}
.receipt-card-info { font-size: .9rem; line-height: 2; margin-bottom: 12px; }
.receipt-card-no {
  display: inline-block;
  margin-top: 6px;
  padding: 6px 14px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--border, #e5e7eb);
  font-weight: 700;
  letter-spacing: 1px;
}
.receipt-review-note { font-size: .82rem; color: #92400e; margin: 8px 0 0; line-height: 1.9; }
.field-hint { display: block; color: #6b7280; font-size: .75rem; margin-top: 5px; }

/* نشان وضعیت پرداخت در صفحه موفقیت */
.pay-status-badge {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 20px;
  font-size: .8rem;
  font-weight: 700;
}
.pay-status-paid { background: #d1fae5; color: #065f46; }
.pay-status-review { background: #fef3c7; color: #92400e; }
.pay-status-unpaid { background: #fee2e2; color: #991b1b; }

.order-success-review .icon, .order-success-unpaid .icon { font-size: 3rem; }

/* ---------- درگاه پرداخت شبیه‌سازی شده ---------- */
.gateway-wrap {
  display: flex;
  justify-content: center;
  padding: 40px 16px;
}
.gateway-card {
  width: 100%;
  max-width: 460px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .14);
  background: #fff;
}
.gateway-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 22px;
  background: #1e3a5f;
  color: #fff;
}
.gateway-logo {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  border-radius: 12px;
  background: #f7c948;
}
.gateway-bank-name { font-weight: 800; font-size: 1.05rem; }
.gateway-bank-sub { font-size: .8rem; opacity: .85; }
.gateway-body { padding: 24px 22px; }
.gateway-amount-label { font-size: .85rem; color: #6b7280; }
.gateway-amount {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--success);
  margin: 6px 0 18px;
}
.gateway-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 16px;
  border-radius: 10px;
  background: #f9fafb;
  font-size: .9rem;
  margin-bottom: 16px;
}
.gateway-info span { color: #6b7280; }
.gateway-note {
  font-size: .75rem;
  color: #92400e;
  background: #fffbeb;
  border: 1px solid #fcd34d;
  border-radius: 8px;
  padding: 10px 12px;
  line-height: 1.8;
  margin-bottom: 18px;
}
.gateway-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
