/* ============================================================
   Trang /cho-thue-may-in-anh-tai-cho-ha-noi/ (tpl/portfolio/printer.php).
   Nạp SAU photobooth.css và dùng lại các khối .pb-* của nó; file này chỉ có phần riêng (.pr-*).
   Chỉ nạp ở trang này (inc/printer-page.php). Không dùng nền tối cho khối nội dung.
   ============================================================ */

/* Trang photobooth đổi tiêu đề sang đen; trang máy in giữ xanh navy của site. */
:root:not([data-theme="dark"]) .pb.pr,
:root:not([data-theme="dark"]) .pb-more.pr-more { --heading: #23376d; }

/* Bảng giá và Quy trình liền nhau, cùng nền nhạt: bỏ đệm trên của Quy trình để không trống gấp đôi. */
.pr .pb-pricing + .pb-flow { padding-top: 0; }

/* ---------- Hai máy ---------- */
.pr-machines__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4); }
.pr-machine {
  display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border);
  border-top: 4px solid var(--accent); border-radius: var(--radius); overflow: hidden; scroll-margin-top: calc(var(--nav-h) + var(--space-3));
}
.pr-machine__body { padding: var(--space-5) var(--space-5) var(--space-4); flex: 1; }
.pr-machine__name { margin: 0; font-size: clamp(1.5rem, 2.4vw, 1.9rem); line-height: 1.15; }
.pr-machine__for { margin: var(--space-2) 0 var(--space-3); font-weight: 600; color: var(--text); }
.pr-machine__text { margin: 0 0 var(--space-4); font-size: 1.0625rem; line-height: 1.75; }
/* Các dòng cùng nhãn, cùng thứ tự ở hai thẻ: nhìn ngang để so sánh hai máy */
.pr-machine__rows { margin: 0; }
.pr-machine__row { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: var(--space-3); padding: 12px 0; border-top: 1px solid var(--border); line-height: 1.55; }
.pr-machine__row dt { font-size: 0.82rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-soft); padding-top: 3px; }
.pr-machine__row dd { margin: 0; }
/* Màn hình rộng: hai thẻ đứng cạnh nhau, đẩy các dòng xuống đáy thẻ và cho cao bằng nhau (2 dòng chữ) để thẳng hàng ngang */
@media (min-width: 961px) {
  .pr-machine__body { display: flex; flex-direction: column; }
  .pr-machine__rows { margin-top: auto; }
  .pr-machine__row { min-height: calc(3.1em + 25px); }
}
.pr-machine__foot {
  display: flex; align-items: flex-end; justify-content: space-between; gap: var(--space-3); flex-wrap: wrap;
  padding: var(--space-4) var(--space-5); border-top: 1px solid var(--border); background: var(--bg-soft);
}
.pr-machine__price-label { margin: 0; font-size: 0.82rem; color: var(--text-soft); }
.pr-machine__price { margin: 2px 0 0; font-family: var(--font-head); font-size: 1.9rem; font-weight: 700; color: var(--heading); line-height: 1.1; font-variant-numeric: tabular-nums; }
.pr-machine__price span { font-size: 1rem; font-weight: 600; color: var(--text-soft); }
.pr-machine__price-extra { margin: 4px 0 0; font-size: 0.92rem; color: var(--text-soft); }

/* ---------- Bảng giá ---------- */
.pr-price-cards { align-items: start; }
/* Ảnh minh hoạ từng máy ở đầu thẻ giá, tràn sát mép thẻ */
.pr-price-img { display: block; width: calc(100% + 2 * var(--space-4)); max-width: none; height: auto; aspect-ratio: 16 / 9; object-fit: cover; margin: calc(-1 * var(--space-4)) calc(-1 * var(--space-4)) var(--space-4); border-radius: var(--radius) var(--radius) 0 0; }
.pr .pb-price-card { overflow: hidden; }
.pr-price-sub { margin: var(--space-4) 0 var(--space-2); font-family: var(--font-head); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-dark); }
.pb-price-card__desc + .pr-price-sub { margin-top: var(--space-3); }
.pr .pb-price-table tbody tr:first-child th, .pr .pb-price-table tbody tr:first-child td { border-top: 0; }
.pr .pr-paper-table tbody tr:first-child th, .pr .pr-paper-table tbody tr:first-child td { border-top: 1px solid var(--border); }
.pr-paper-table thead th { padding-bottom: 8px; }
.pr-price-note { margin: var(--space-2) 0 0; font-size: 0.88rem; color: var(--text-soft); line-height: 1.55; }
.pr-price-example { margin: var(--space-3) 0 0; padding: 12px 14px; background: var(--bg-soft); border-left: 3px solid var(--accent); border-radius: var(--radius-sm); font-size: 0.95rem; line-height: 1.6; }

/* ---------- Dẫn sang photobooth ---------- */
/* Thẻ rộng 1040px (bằng bảng giá), thấp: đệm trên dưới ít, chữ trải ngang */
.pr-cross { padding: var(--space-5) 0; }
.pr-cross__box {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-5);
  padding: var(--space-3) var(--space-4); border: 1px solid var(--border); border-left: 4px solid var(--accent); border-radius: var(--radius); background: var(--surface);
}
.pr-cross__title { margin: 0 0 var(--space-2); font-size: clamp(1.25rem, 2vw, 1.5rem); }
.pr-cross__text { margin: 0; line-height: 1.6; }
.pr-cross__btn { flex-shrink: 0; }
.pr-cross__body { flex: 1; min-width: 0; }
.pr-cross__media { flex-shrink: 0; width: 180px; }
.pr-cross__img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius-sm); }

.pr-posts { padding-top: var(--space-6); }

:root[data-theme="dark"] .pr-price-sub { color: var(--accent); }

/* ---------- Màn hình nhỏ ---------- */
@media (max-width: 960px) {
  .pr-machines__grid { grid-template-columns: 1fr; }
  .pr-cross__box { flex-direction: column; align-items: flex-start; gap: var(--space-4); }
  .pr-cross__media { width: 240px; max-width: 100%; }
}
@media (max-width: 700px) {
  .pr-machine__body { padding: var(--space-4) var(--space-3) var(--space-3); }
  .pr-machine__foot { padding: var(--space-3); }
  .pr-machine__row { grid-template-columns: 1fr; gap: 2px; }
  .pr-machine__btn { width: 100%; justify-content: center; }
  .pr-cross__box { padding: var(--space-3); }
  .pr-cross__btn { width: 100%; justify-content: center; text-align: center; white-space: normal; }
  .pr-paper-table { font-size: 0.86rem; }
  .pr-price-img { width: calc(100% + 2 * var(--space-3)); margin: calc(-1 * var(--space-3)) calc(-1 * var(--space-3)) var(--space-3); }
}
