/* ==========================================================================
   Demo Three — Compare Products (compare.html)
   Loaded after home.css + common.css, before responsive.css
   ========================================================================== */
.cmp-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 24px;
    font-size: 14px;
    color: var(--pg-muted);
}

.cmp-wrap {
    overflow-x: auto;
    border: 1px solid var(--pg-border);
    border-radius: var(--pg-radius);
    background: #fff;
    -webkit-overflow-scrolling: touch;
}

.cmp-table {
    width: 100%;
    min-width: 900px;
    border-collapse: collapse;
    table-layout: fixed;
}

.cmp-table th,
.cmp-table td {
    padding: 16px 18px;
    border-bottom: 1px solid var(--pg-border);
    border-right: 1px solid var(--pg-border);
    font-size: 14px;
    text-align: center;
    vertical-align: middle;
    color: var(--pg-text);
}

.cmp-table td:last-child {
    border-right: none;
}

.cmp-table tr:last-child th,
.cmp-table tr:last-child td {
    border-bottom: none;
}

.cmp-table th {
    position: sticky;
    left: 0;
    z-index: 2;
    width: 170px;
    background: var(--pg-bg-soft);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-align: left;
    text-transform: uppercase;
    color: var(--pg-dark);
}

.cmp-table tr:nth-child(even) td {
    background: #fcfcfc;
}

.cmp-product {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.cmp-remove {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 1;
    width: 30px;
    height: 30px;
    font-size: 12px;
}

.cmp-media {
    width: 100%;
    height: 170px;
}

.cmp-name {
    font-family: var(--pg-head-font);
    font-weight: var(--pg-head-weight);
    font-size: 16px;
    color: var(--pg-dark);
    text-decoration: none;
}

.cmp-name:hover {
    color: var(--pg-accent);
}

.cmp-desc {
    line-height: 1.6;
    color: var(--pg-muted) !important;
}

.cmp-muted {
    margin-left: 4px;
    font-size: 12px;
    color: var(--pg-muted);
}

@media (max-width: 767.98px) {
    .cmp-table th {
        width: 120px;
        padding: 12px;
    }

    .cmp-table {
        min-width: 760px;
    }

    .cmp-media {
        height: 130px;
    }
}
