/* صفحات «قطع التشاليح» (/car-parts) — فوق site.css */
.cp-main { background: var(--bg); min-height: 60vh; }
.cp-hero { background-color: var(--ink); background-image: radial-gradient(rgba(168, 237, 202, .1) 1px, transparent 1px); background-size: 22px 22px; color: #fff; padding: 36px 0 30px; }
.cp-hero h1 { font-size: clamp(1.5rem, 3.4vw, 2.3rem); font-weight: 900; margin: 10px 0 6px; }
.cp-hero p { color: rgba(255, 255, 255, .8); font-weight: 600; }
.cp-search { display: flex; gap: 8px; margin-top: 18px; max-width: 620px; }
.cp-search input { flex: 1; min-height: 50px; border-radius: 14px; border: 0; padding: 0 16px; font: 600 1rem 'Cairo', system-ui, sans-serif; }
.cp-search button { min-height: 50px; padding: 0 22px; border-radius: 14px; border: 0; background: var(--brand); color: var(--ink); font: 800 1rem 'Cairo', system-ui, sans-serif; cursor: pointer; }
.cp-list { padding: 24px 20px 56px; }
.cp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 16px; }
.cp-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; color: var(--text); box-shadow: 0 2px 12px rgba(15, 28, 23, .05); transition: transform .15s; }
.cp-card:hover { transform: translateY(-2px); }
.cp-card img, .cp-noimg { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--soft); }
.cp-noimg { display: flex; align-items: center; justify-content: center; font-size: 2.4rem; }
.cp-card-body { padding: 12px 14px 14px; }
.cp-card h3 { font-size: 1.08rem; font-weight: 900; }
.cp-card h3 small { font-size: .85rem; color: var(--muted); font-weight: 700; margin-inline-start: 6px; }
.cp-counts { color: var(--muted); font-size: .88rem; font-weight: 600; margin-top: 2px; }
.cp-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; list-style: none; padding: 0; }
.cp-chips li { display: flex; gap: 6px; background: var(--mint-50); border: 1px solid #CDEFE0; border-radius: 10px; padding: 4px 8px; font-size: .82rem; font-weight: 700; color: var(--brand-800); }
.cp-chips li b { color: var(--brand-700); font-weight: 800; }
.cp-chips .cp-more { background: var(--soft); border-color: var(--line); color: var(--muted); }
.cp-empty { text-align: center; color: var(--muted); font-weight: 700; padding: 40px 0; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.cp-empty .cta { max-width: 360px; }
.cp-car { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 28px; padding: 26px 20px 60px; align-items: start; }
.cp-gallery { display: flex; flex-direction: column; gap: 10px; }
.cp-main-img { width: 100%; border-radius: 18px; aspect-ratio: 4 / 3; object-fit: cover; background: var(--soft); }
.cp-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.cp-thumbs img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; }
.cp-desc { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; color: var(--muted); font-weight: 600; }
.cp-parts h2 { font-size: 1.2rem; font-weight: 900; margin-bottom: 10px; }
.cp-parts ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.cp-part { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 14px; }
.cp-part h3 { font-size: 1.05rem; font-weight: 900; }
.cp-w { color: var(--brand-700); font-size: .86rem; font-weight: 700; }
.cp-nw, .cp-note { color: var(--muted); font-size: .86rem; font-weight: 600; }
.cp-price { text-align: center; }
.cp-price b { display: block; font-size: 1.35rem; font-weight: 900; }
.cp-price span { color: var(--muted); font-size: .8rem; font-weight: 700; }
.cp-actions { grid-column: 1 / -1; display: flex; gap: 8px; }
.cp-buy, .cp-wa { flex: 1; display: flex; align-items: center; justify-content: center; min-height: 44px; border-radius: 12px; font-weight: 800; font-size: .95rem; }
.cp-buy { background: var(--brand-700); color: #fff; }
.cp-wa { border: 1.5px solid var(--brand-700); color: var(--brand-700); }
.cp-sold-h { margin-top: 22px; color: var(--muted); }
.cp-sold { display: flex; justify-content: space-between; background: var(--soft); border-radius: 12px; padding: 10px 14px; color: var(--muted); font-weight: 700; }
.cp-sold span { text-decoration: line-through; }
.cp-how { margin-top: 16px; color: var(--muted); font-size: .88rem; font-weight: 700; }
@media (max-width: 860px) {
  .cp-car { grid-template-columns: 1fr; }
}
.cp-part h3 a, .cp-sold a { color: inherit; }
.cp-part h3 a:hover { color: var(--brand-700); }
.cp-part-one { margin-bottom: 10px; }
.cp-part-sold { background: var(--soft); }
.cp-other-h { margin-top: 26px; font-size: 1.05rem; }
.cp-other { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.cp-other a { display: flex; justify-content: space-between; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; color: var(--text); font-weight: 700; }
.cp-other a b { color: var(--brand-700); }
.cp-back { margin-top: 14px; font-weight: 800; }
.cp-back a { color: var(--brand-700); }
.cp-models { margin-bottom: 22px; }
.cp-models h2, .cp-sec-h { font-size: 1.1rem; font-weight: 900; margin: 6px 0 12px; }
.cp-models ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.cp-models a { display: inline-flex; align-items: center; gap: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; color: var(--text); font-weight: 800; }
.cp-models a small { color: var(--brand-700); font-weight: 700; }
.cp-model-parts { margin-bottom: 26px; }
.cp-model-parts a span small { color: var(--muted); font-weight: 600; margin-inline-start: 6px; }
