/* orjkala-tools — انتخاب‌یار ظرفیت و مقایسه؛ رنگ‌ها از کیت سراسری سایت */
:root {
  --orj-blue: #255EED;
  --orj-navy: #182D76;
  --orj-ink: #2A2D39;
  --orj-orange: #FD9435;
  --orj-bg: #F3F6FD;
  --orj-line: #E3E8F5;
  --orj-green: #41A67E;
  --orj-red: #FB3636;
}
body.orj-locked { overflow: hidden; }
body.orj-locked .orj-floater, body.orj-locked [class*="whatsapp-float"] { display: none !important; }

#orj-backdrop {
  position: fixed; inset: 0; background: rgba(24, 45, 118, .45);
  opacity: 0; pointer-events: none; transition: opacity .25s; z-index: 99980;
}
#orj-backdrop.open { opacity: 1; pointer-events: auto; }

.orj-sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 99990;
  background: #fff; color: var(--orj-ink);
  border-radius: 18px 18px 0 0; max-height: 88vh; display: flex; flex-direction: column;
  transform: translateY(105%); transition: transform .3s ease;
  box-shadow: 0 -8px 40px rgba(24, 45, 118, .25);
}
.orj-sheet.open { transform: translateY(0); }
@media (min-width: 768px) {
  .orj-sheet { left: 50%; right: auto; bottom: auto; top: 50%; width: 560px; max-width: 94vw;
    transform: translate(-50%, -46%); opacity: 0; pointer-events: none; border-radius: 18px; transition: opacity .25s, transform .25s; }
  .orj-sheet.open { transform: translate(-50%, -50%); opacity: 1; pointer-events: auto; }
}
.orj-sheet-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 18px; border-bottom: 1px solid var(--orj-line); color: var(--orj-navy); font-size: 17px;
}
.orj-x { width: 44px; height: 44px; border: 0; background: var(--orj-bg); border-radius: 12px; font-size: 22px; cursor: pointer; color: var(--orj-ink); }
.orj-sheet-body { padding: 16px 18px 22px; overflow-y: auto; }
.orj-q { font-weight: 700; color: var(--orj-navy); margin: 14px 0 6px; }
.orj-q:first-child { margin-top: 0; }
.orj-hint { color: #7C85A5; font-size: 13px; margin: 0 0 8px; }
.orj-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.orj-chip {
  min-height: 44px; padding: 8px 14px; border: 1.5px solid var(--orj-line); background: #fff;
  border-radius: 12px; cursor: pointer; font: inherit; color: var(--orj-ink);
}
.orj-chip.sel { border-color: var(--orj-blue); background: #EEF3FF; color: var(--orj-navy); font-weight: 700; }
.orj-check { display: flex; gap: 8px; align-items: center; margin: 16px 0 4px; min-height: 44px; cursor: pointer; }
.orj-check input { width: 20px; height: 20px; accent-color: var(--orj-blue); }
.orj-primary {
  display: flex; align-items: center; justify-content: center; width: 100%;
  min-height: 50px; margin-top: 16px; border: 0; border-radius: 14px; cursor: pointer;
  background: var(--orj-blue); color: #fff; font: inherit; font-weight: 700; font-size: 16px; text-decoration: none;
}
.orj-primary.orj-wa { background: #25D366; color: #07351B; }
.orj-warn { color: var(--orj-red); font-weight: 700; }
.orj-reason { line-height: 2; }
.orj-summary { background: var(--orj-bg); border-radius: 12px; padding: 10px 14px; line-height: 2; }
.orj-card { display: flex; gap: 12px; border: 1px solid var(--orj-line); border-radius: 14px; padding: 12px; margin-top: 10px; align-items: center; }
.orj-card img { width: 74px; height: 74px; object-fit: cover; border-radius: 10px; }
.orj-card-main { display: flex; flex-direction: column; gap: 2px; flex: 1; font-size: 14px; }
.orj-stock.ok { color: var(--orj-green); font-weight: 700; }
.orj-stock.no { color: var(--orj-red); }
.orj-card-btns { display: flex; flex-direction: column; gap: 6px; }
.orj-mini {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 6px 12px;
  border: 1.5px solid var(--orj-blue); color: var(--orj-blue); border-radius: 10px; text-decoration: none; font-size: 13px; background: #fff; cursor: pointer;
}
.orj-mini.wa { border-color: #25D366; color: #0B6B34; }
.orj-more { display: inline-block; margin-top: 14px; color: var(--orj-blue); }

.orj-compare-btn {
  min-height: 44px; padding: 8px 14px; margin-top: 8px; width: 100%;
  border: 1.5px solid var(--orj-line); background: #fff; color: var(--orj-navy);
  border-radius: 10px; cursor: pointer; font: inherit; font-size: 14px;
}
.orj-compare-btn.sel { border-color: var(--orj-orange); background: #FFF4E8; color: var(--orj-ink); font-weight: 700; }
.jet-listing-grid__item .orj-compare-btn { width: calc(100% - 24px); margin: 10px 12px 14px; }
.orj-product-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.orj-compare-btn--big { width: auto; }
.orj-consult-btn {
  display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px;
  border-radius: 10px; background: #25D366; color: #07351B; font-weight: 700; text-decoration: none; font-size: 14px;
}

#orj-bar {
  position: fixed; left: 10px; right: 10px; bottom: 10px; z-index: 99970;
  background: var(--orj-navy); color: #fff; border-radius: 14px; padding: 10px 12px;
  display: none; align-items: center; gap: 8px; flex-wrap: wrap; box-shadow: 0 8px 30px rgba(24,45,118,.35);
}
#orj-bar.open { display: flex; }
.orj-bar-item { background: rgba(255,255,255,.14); border-radius: 10px; padding: 6px 10px; font-size: 13px; display: inline-flex; gap: 6px; align-items: center; }
.orj-bar-item button { width: 30px; height: 30px; border: 0; border-radius: 8px; background: rgba(255,255,255,.2); color: #fff; cursor: pointer; font-size: 16px; }
.orj-bar-hint { font-size: 13px; opacity: .9; }
.orj-bar-go { width: auto; margin-top: 0; min-height: 44px; padding: 8px 18px; }

.orj-cmp-head { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 8px; color: var(--orj-navy); font-size: 15px; }
.orj-cmp-row { border-top: 1px solid var(--orj-line); padding: 10px 0; }
.orj-cmp-label { font-weight: 700; color: var(--orj-navy); font-size: 13px; margin-bottom: 6px; }
.orj-cmp-vals { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; font-size: 14px; line-height: 1.9; }
.orj-cmp-links { display: flex; gap: 10px; margin-top: 14px; }
.orj-cmp-links .orj-mini { flex: 1; }

@media (prefers-reduced-motion: reduce) {
  .orj-sheet, #orj-backdrop { transition: none; }
}

/* hero image: controlled crop so the unit stays visible on small screens */
.orj-hero-img img { width: 100%; height: auto; display: block; }
@media (max-width: 767px) {
  .orj-hero-img img { aspect-ratio: 4 / 3; object-fit: cover; }
}
