/* Product comparison table — product page */
.product-compare-section .heading h2 {
    font-size: 1.35rem;
}

.product-compare-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 -4px;
    padding-bottom: 8px;
}

.product-compare-table {
    width: 100%;
    min-width: 720px;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.875rem;
}

.product-compare-table th,
.product-compare-table td {
    border: 1px solid #e8e8e8;
    padding: 10px 12px;
    vertical-align: top;
    background: #fff;
}

.pc-sticky-label {
    position: sticky;
    left: 0;
    z-index: 3;
    min-width: 120px;
    max-width: 140px;
    background: #f7f7f7 !important;
    font-weight: 600;
    text-align: left;
}

.pc-col-header {
    min-width: 160px;
    max-width: 200px;
    text-align: center;
    vertical-align: top;
}

.pc-col-current {
    background: #fff5f6 !important;
}

.pc-badge-current {
    display: inline-block;
    font-size: 0.7rem;
    background: #6c757d;
    color: #fff;
    padding: 2px 8px;
    border-radius: 3px;
    margin-bottom: 8px;
}

.pc-product-card {
    position: relative;
}

.pc-product-img,
.pc-cell-img {
    max-width: 120px;
    max-height: 120px;
    object-fit: contain;
    display: block;
    margin: 0 auto 8px;
}

.pc-product-name {
    display: block;
    font-size: 0.8rem;
    line-height: 1.3;
    color: #0d6efd;
    text-decoration: none;
    margin-bottom: 6px;
}

.pc-btn-replace,
.pc-btn-clear {
    font-size: 0.75rem;
    border: 1px solid #ddd;
    background: #fff;
    color: #444;
    cursor: pointer;
    padding: 2px 8px;
    border-radius: 3px;
    margin: 2px;
}

.pc-col-actions {
    margin-top: 6px;
}

.pc-replace-search {
    margin-top: 8px;
}

.pc-search-results .pc-search-empty {
    color: #888;
    cursor: default;
}

.pc-empty-card .pc-search-wrap {
    width: 100%;
}

.pc-empty-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 140px;
    border: 2px dashed #ccc;
    border-radius: 6px;
    padding: 12px;
    color: #888;
}

.pc-empty-icon {
    font-size: 2rem;
    line-height: 1;
    margin-bottom: 8px;
}

.pc-empty-text {
    font-size: 0.8rem;
    text-align: center;
}

.pc-row-diff td:not(.pc-sticky-label) {
    background: #fffef8;
    font-weight: 500;
}

.pc-row-identical {
    display: none;
}

.product-compare-section.pc-show-identical .pc-row-identical {
    display: table-row;
}

.pc-price-note {
    font-size: 0.75rem;
    color: #666;
}

.pc-ask-price {
    color: #198754;
    font-weight: 600;
    text-decoration: none;
}

.pc-search-wrap {
    position: relative;
}

.pc-search-results {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    z-index: 10;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    max-height: 220px;
    overflow-y: auto;
    margin: 0;
    padding: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.pc-search-results li {
    padding: 8px 10px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.8rem;
}

.pc-search-results li:hover {
    background: #f5f5f5;
}

.pc-search-results .pc-sku {
    color: #888;
    font-size: 0.7rem;
}

.pc-add-cart-form {
    margin: 0;
}

@media (max-width: 480px) {
    .product-compare-table {
        min-width: 360px;
        font-size: 0.8rem;
    }

    .pc-sticky-label {
        min-width: 100px;
        max-width: 110px;
        font-size: 0.75rem;
    }

    .pc-col-header {
        min-width: 130px;
    }
}
