/* Price Comparison Box */
.price-compare-card {
    margin-top: 20px;
    padding: 15px;
    border: 1px solid #e3e3e3;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* Title */
.compare-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 6px;
}

.compare-title::before {
    content: "✔";
    color: #27ae60;
    font-weight: bold;
}

/* Table */
.compare-table-wrapper {
    overflow-x: auto; /* Responsive horizontal scroll */
}

.compare-table {
    width: 100%;
    border-collapse: collapse; /* remove double lines */
}

.compare-table th, .compare-table td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
    white-space: nowrap;
    border-top-width: 0px !important;
}

/* Header */
.compare-table thead th {
    background: #f8f9fa;
    font-weight: 600;
    font-size: 14px;
    color: #555;
}

/* Our Price row highlight */
.compare-table .our-price {
    background: #f3fff3;
    font-weight: 600;
}

.compare-table .our-price td {
    color: #2c7a2c;
}

/* Difference labels */
.price-same {
    color: #555;
    font-weight: 500;
}

.price-cheaper {
    color: #27ae60;
    font-weight: 600;
}

.price-higher {
    color: #e74c3c;
    font-weight: 600;
}

.lowest {
    color: #27ae60;
    font-weight: 700;
}

/* Responsive: card layout under 480px */
@media (max-width: 480px) {
    .compare-table thead {
        display: none;
    }
    .compare-table tr {
        display: block;
        margin-bottom: 12px;
        border: 1px solid #eee;
        border-radius: 6px;
        padding: 8px;
        background: #fafafa;
    }
    .compare-table td {
        display: flex;
        justify-content: space-between;
        border: none;
        padding: 6px 8px;
    }
    .compare-table td::before {
        content: attr(data-label);
        font-weight: 600;
        color: #333;
    }
}
