/* Product Comparison Styles */

.pr-comparison-container {
    max-width: 100%;
    margin: 20px auto;
    padding: 0 15px;
}

.pr-comparison-header {
    text-align: center;
    margin-bottom: 30px;
}

.pr-comparison-header h2 {
    font-size: 28px;
    margin-bottom: 10px;
    color: #333;
}

.pr-comparison-header p {
    color: #666;
    font-size: 16px;
}

/* Product Selection Form */
.pr-comparison-form {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.pr-comparison-selectors {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 0;
}

.pr-comparison-selector {
    display: flex;
    flex-direction: column;
}

.pr-comparison-selector label {
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
    font-size: 14px;
}

.pr-product-select {
    padding: 12px 15px;
    font-size: 15px;
    border: 2px solid #ddd;
    border-radius: 6px;
    background-color: #fff;
    color: #333;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.pr-product-select:hover,
.pr-product-select:focus {
    border-color: #2271b1;
    outline: none;
}

.pr-clear-button {
    display: inline-block;
    padding: 12px 20px;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    border-radius: 6px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    box-sizing: border-box;
    /* Default colors - will be overridden by inline styles */
    background-color: #dc3545;
    color: #fff;
    border: 2px solid #dc3545;
}

.pr-clear-button:hover {
    background-color: #c82333;
    border-color: #c82333;
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(220, 53, 69, 0.3);
}

.pr-no-selection {
    text-align: center;
    padding: 40px 20px;
    background: #f8f9fa;
    border-radius: 8px;
    color: #666;
    font-size: 16px;
}

/* Comparison Table */
.pr-comparison-table-wrapper {
    overflow-x: auto;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.pr-comparison-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

.pr-comparison-table thead {
    background-color: #2271b1;
    position: sticky;
    top: 0;
    z-index: 10;
}

.pr-comparison-table th {
    padding: 15px;
    text-align: center;
    font-weight: 600;
    color: #fff;
    border: 1px solid #1a5a8a;
    font-size: 14px;
    white-space: nowrap;
}

.pr-comparison-table th.pr-spec-category {
    background-color: #1a5a8a;
    text-align: left;
    position: sticky;
    left: 0;
    z-index: 11;
    min-width: 200px;
}

.pr-comparison-table th.pr-product-column {
    min-width: 200px;
}

.pr-comparison-table td {
    padding: 12px 15px;
    border: 1px solid #dee2e6;
    color: #555;
    font-size: 14px;
}

.pr-comparison-table td.pr-spec-category {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #333;
    text-align: left;
    position: sticky;
    left: 0;
    z-index: 9;
    border-right: 2px solid #dee2e6;
}

.pr-comparison-table td.pr-spec-value {
    text-align: center;
}

.pr-comparison-table tbody tr:hover {
    background-color: #f1f3f5;
}

.pr-comparison-table tbody tr:hover td.pr-spec-category {
    background-color: #e9ecef;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .pr-comparison-selectors {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .pr-clear-selector {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .pr-comparison-selectors {
        grid-template-columns: 1fr;
    }
    
    .pr-clear-selector {
        grid-column: span 1;
    }
}

@media (max-width: 968px) {
    .pr-comparison-table {
        font-size: 13px;
    }
    
    .pr-comparison-table th,
    .pr-comparison-table td {
        padding: 10px;
    }
}

@media (max-width: 640px) {
    .pr-comparison-table {
        font-size: 12px;
    }
    
    .pr-comparison-table th,
    .pr-comparison-table td {
        padding: 8px;
    }
}
