/* =====================================================
   Unit Comparison (compare.php + projects.php compare bar)
   ===================================================== */
.compare-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    min-width: 600px;
}
.compare-table th, .compare-table td {
    padding: 14px 18px;
    text-align: center;
    border-bottom: 1px solid #EDEFF2;
    font-size: 14px;
}
.compare-table thead th {
    background: var(--navy);
    color: var(--white);
    vertical-align: top;
    min-width: 180px;
}
.compare-thumb {
    width: 100%;
    max-width: 160px;
    height: 90px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 8px;
}
.compare-title { font-weight: 700; margin-bottom: 10px; font-size: 14px; }
.compare-label-col {
    text-align: start;
    font-weight: 700;
    background: #F4F6F9;
    color: var(--navy);
    white-space: nowrap;
}
.compare-highlight { color: var(--blue); font-weight: 800; font-size: 15px; }

/* شريط "قارن" العائم في projects.php */
.compare-bar {
    position: fixed;
    bottom: 0;
    inset-inline-start: 0;
    inset-inline-end: 0;
    background: var(--navy);
    color: var(--white);
    padding: 14px 20px;
    display: none;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    z-index: 997;
    box-shadow: 0 -4px 20px rgba(0,0,0,.15);
}
.compare-bar.visible { display: flex; }
.compare-bar span { font-size: 14px; }
.compare-checkbox-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--navy);
    cursor: pointer;
    margin-top: 10px;
}
.compare-checkbox-label input { width: 16px; height: 16px; cursor: pointer; }
