/* =====================================================================
 * Jahizsaz — /price/{item}/ and /budget/{million}/ page blocks
 * Scoped under .jh-catalog .jh-cp-*; shared blocks (.jh-wrap, .jh-hero, .jh-faq,
 * .jh-tips, .jh-chips, .jh-cta, .jh-room…) live in catalog.css. Tokens: main.css :root.
 * ===================================================================== */

.jh-catalog .jh-cp-card,
.jh-catalog .jh-cp-verdict {
    margin-top: var(--s-4);
    padding: var(--s-4);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
}
@media (min-width: 640px) {
    .jh-catalog .jh-cp-card,
    .jh-catalog .jh-cp-verdict { padding: var(--s-5); }
}
.jh-catalog .jh-cp-section,
.jh-catalog .jh-cp-plan,
.jh-catalog .jh-cp-later,
.jh-catalog .jh-cp-compare { margin-top: var(--s-6); }
.jh-catalog .jh-cp-section > .jh-lead,
.jh-catalog .jh-cp-plan > .jh-lead,
.jh-catalog .jh-cp-later > .jh-lead,
.jh-catalog .jh-cp-compare > .jh-lead { max-width: 68ch; line-height: 1.9; }

/* ---------- Price summary ---------- */
.jh-catalog .jh-cp-price__main {
    display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px;
    margin-top: var(--s-2);
    font-size: 15px; color: var(--ink-muted); line-height: 1.5;
}
.jh-catalog .jh-cp-price__main strong {
    font-size: clamp(28px, 8vw, 38px);
    font-weight: 900; color: var(--primary); line-height: 1.3;
}
.jh-catalog .jh-cp-price__range { margin-top: 2px; font-size: 15px; color: var(--ink); }
.jh-catalog .jh-cp-price__range strong { color: var(--ink); font-weight: 800; }
.jh-catalog .jh-cp-note {
    margin-top: var(--s-3); padding: 10px var(--s-3);
    background: var(--accent-soft); border-radius: var(--r-sm);
    font-size: 14px; line-height: 1.9; color: var(--ink);
}
.jh-catalog .jh-cp-data {
    margin-top: var(--s-4); padding-top: var(--s-3);
    border-top: 1px dashed var(--line-strong);
    font-size: 13px; color: var(--ink-muted); line-height: 1.8;
}

/* ---------- Price band visual (CSS only) ---------- */
.jh-catalog .jh-cp-band { margin-top: var(--s-5); padding-top: 30px; }
.jh-catalog .jh-cp-band__track {
    position: relative;
    display: flex; gap: 3px;
    height: 12px;
}
.jh-catalog .jh-cp-band__seg { flex: 1 1 0; height: 100%; }
.jh-catalog .jh-cp-band__seg--low { background: var(--sand-deeper); border-radius: 0 var(--r-pill) var(--r-pill) 0; }
.jh-catalog .jh-cp-band__seg--mid { background: var(--primary); }
.jh-catalog .jh-cp-band__seg--high { background: var(--accent); border-radius: var(--r-pill) 0 0 var(--r-pill); }
.jh-catalog .jh-cp-band__mark {
    position: absolute; top: -6px; bottom: -6px;
    width: 4px; margin-left: -2px;
    background: var(--ink); border-radius: 2px;
}
.jh-catalog .jh-cp-band__pin {
    position: absolute; bottom: calc(100% + 4px); left: 50%;
    transform: translateX(-50%);
    padding: 2px 8px;
    background: var(--ink); color: #fff;
    border-radius: var(--r-pill);
    font-size: 12px; font-weight: 700; line-height: 1.6; white-space: nowrap;
}
.jh-catalog .jh-cp-band__labels {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3px;
    margin-top: var(--s-2);
}
.jh-catalog .jh-cp-band__labels li { display: flex; flex-direction: column; gap: 0; text-align: center; font-size: 12px; color: var(--ink-muted); line-height: 1.7; }
.jh-catalog .jh-cp-band__labels b { font-size: 13px; color: var(--ink); font-weight: 700; }
@media (min-width: 640px) {
    .jh-catalog .jh-cp-band__labels li { font-size: 13px; }
}

/* ---------- Tier table ---------- */
.jh-catalog .jh-cp-table-wrap {
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
    overflow-x: auto;
}
.jh-catalog .jh-cp-table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.7; }
.jh-catalog .jh-cp-table th,
.jh-catalog .jh-cp-table td { padding: 10px var(--s-3); text-align: start; vertical-align: middle; border-top: 1px solid var(--line); }
.jh-catalog .jh-cp-table thead th {
    border-top: 0; background: var(--surface-alt);
    font-size: 12px; font-weight: 700; color: var(--ink-muted);
}
.jh-catalog .jh-cp-table tbody th { font-weight: 700; white-space: nowrap; }
.jh-catalog .jh-cp-table tbody th a { display: inline-block; padding-block: 8px; color: var(--primary); text-decoration: none; }
.jh-catalog .jh-cp-table tbody th a:hover { text-decoration: underline; }
.jh-catalog .jh-cp-table td:nth-child(2) { white-space: nowrap; }
.jh-catalog .jh-cp-table td strong { font-weight: 800; color: var(--ink); }
.jh-catalog .jh-cp-table td:last-child { color: var(--ink-muted); font-size: 13px; }
.jh-catalog .jh-cp-table tr.is-out th a,
.jh-catalog .jh-cp-table tr.is-out td { color: var(--ink-muted); }
.jh-catalog .jh-cp-table tr.is-out td { font-size: 13px; }

/* ---------- Live products ---------- */
.jh-catalog .jh-cp-band-group { margin-top: var(--s-5); }
.jh-catalog .jh-cp-band-group__head {
    display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0 var(--s-3);
}
.jh-catalog .jh-cp-band-group__title { margin: 0; font-size: 17px; font-weight: 800; line-height: 1.6; }
.jh-catalog .jh-cp-band-group__range { font-size: 13px; color: var(--primary); font-weight: 700; }
.jh-catalog .jh-cp-band-group__hint { margin: 0 0 var(--s-3); font-size: 13px; color: var(--ink-muted); line-height: 1.8; }
.jh-catalog .jh-cp-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--s-2);
}
@media (min-width: 640px) {
    .jh-catalog .jh-cp-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-3); }
}
@media (min-width: 900px) {
    .jh-catalog .jh-cp-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
/* The plugin card is sized for a carousel; let it fill its grid cell. */
.jh-catalog .jh-cp-grid .kk-c-product-card { width: 100%; max-width: none; min-width: 0; height: 100%; margin: 0; }
.jh-catalog .jh-cp-grid .kk-c-product-card__media { aspect-ratio: 1 / 1; }
.jh-catalog .jh-cp-grid .kk-c-product-card__media img { width: 100%; height: 100%; object-fit: cover; }
.jh-catalog .jh-cp-grid .kk-c-product-card .kk-c-product-card__title {
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    min-height: 3.2em; font-size: 13px !important; line-height: 1.6 !important;
}
.jh-catalog .jh-cp-grid .kk-c-price { flex-wrap: wrap; row-gap: 0; }
.jh-catalog .jh-cp-grid .kk-c-price__original { font-size: 12px; }
.jh-catalog .jh-cp-grid .kk-c-price__value { font-size: 15px; }
.jh-catalog .jh-cp-disclosure { margin-top: var(--s-4); font-size: 12px; color: var(--ink-muted); line-height: 1.8; }

/* ---------- Budget: verdict ---------- */
.jh-catalog .jh-cp-verdict { border-inline-start: 5px solid var(--primary); background: var(--primary-soft); border-color: var(--primary-soft); border-inline-start-color: var(--primary); }
.jh-catalog.jh-cp-tone--partial .jh-cp-verdict { background: var(--accent-soft); border-color: var(--accent-soft); border-inline-start-color: var(--accent); }
.jh-catalog .jh-cp-verdict__text { margin-top: var(--s-2); font-size: 15px; line-height: 2; color: var(--ink); }
.jh-catalog .jh-cp-verdict__lead { margin-top: var(--s-4); font-size: 14px; font-weight: 800; }
.jh-catalog .jh-cp-verdict__list { display: grid; gap: var(--s-2); margin-top: var(--s-2); }
.jh-catalog .jh-cp-verdict__list li {
    position: relative; padding-inline-start: 20px;
    font-size: 14px; line-height: 1.9;
}
.jh-catalog .jh-cp-verdict__list li::before {
    content: ""; position: absolute; inset-inline-start: 2px; top: 13px;
    width: 8px; height: 8px; border-radius: 50%; background: var(--accent);
}

/* ---------- Budget: plan by room ---------- */
.jh-catalog .jh-cp-room { margin-bottom: var(--s-3); }
.jh-catalog .jh-cp-room__bar { height: 4px; background: var(--sand-deeper); }
.jh-catalog .jh-cp-room__bar span { display: block; height: 100%; background: var(--primary); border-radius: 0 var(--r-pill) var(--r-pill) 0; }
.jh-catalog .jh-cp-lines { margin: 0; }
.jh-catalog .jh-cp-line {
    display: flex; align-items: center; justify-content: space-between; gap: var(--s-3);
    min-height: 48px; padding: 6px var(--s-4);
}
.jh-catalog .jh-cp-line + .jh-cp-line { border-top: 1px solid var(--line); }
.jh-catalog .jh-cp-line__main { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; min-width: 0; }
.jh-catalog .jh-cp-line__title {
    display: inline-block; padding-block: 8px;
    font-size: 15px; font-weight: 700; color: var(--ink);
    text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 5px;
}
.jh-catalog .jh-cp-line__title:hover { color: var(--primary); text-decoration-color: var(--primary); }
.jh-catalog .jh-cp-line__cost { flex: none; font-size: 15px; font-weight: 800; color: var(--ink); white-space: nowrap; }
.jh-catalog .jh-cp-lines--card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.jh-catalog .jh-cp-total {
    margin-top: var(--s-3); padding: var(--s-3) var(--s-4);
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
    font-size: 14px; line-height: 1.9; color: var(--ink-muted);
}
.jh-catalog .jh-cp-total strong { color: var(--primary); font-size: 16px; font-weight: 800; }

/* ---------- Budget: neighbouring budgets ---------- */
.jh-catalog .jh-cp-compare .jh-lead + .jh-lead { margin-top: calc(var(--s-1) * -1); }
.jh-catalog .jh-cp-compare .jh-chips { margin-top: var(--s-3); }
.jh-catalog .jh-chip.is-current { background: var(--primary); border-color: var(--primary); color: #fff; }
.jh-catalog .jh-chip.is-current small { color: rgba(255, 255, 255, .85); }
.jh-catalog .jh-chip.is-current:hover { background: var(--primary-dark); color: #fff; }

@media print {
    .jh-cp-band, .jh-cp-products, .jh-cp-compare { display: none !important; }
}
