/**
 * 1800 Doorbell - Measurements Page Table
 * 
 * Sortable product specifications table for wired buttons
 * Used by: [wired_buttons_table] shortcode
 * Page: /measurements/
 * 
 * Consolidated from Code Snippets "Measurements Page" section (lines 832-901)
 * 
 * @package 1800doorbell
 * @version 2.0.11
 * @updated December 18, 2025
 */

/* ===============================================
   PRODUCT SPECIFICATIONS TABLE
   =============================================== */

.product-specs-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.product-specs-table th, 
.product-specs-table td {
    font-size: smaller;
    border: 1px solid black;
    line-height: 1.4;
    padding: 10px;
    text-align: left;
}

.product-specs-table th {
    background-color: #f2f2f2;
    font-weight: bold;
}

.product-specs-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

/* ===============================================
   COLUMN WIDTHS
   =============================================== */

/* Screw hole distance column (8th column) */
.product-specs-table th:nth-child(8), 
.product-specs-table td:nth-child(8) {
    width: 80px;
    text-align: center;
}

/* Thumbnail column (2nd column) */
.product-specs-table th:nth-child(2), 
.product-specs-table td:nth-child(2) {
    width: 100px;
    text-align: center;
}

/* ===============================================
   PRODUCT THUMBNAILS
   =============================================== */

.product-specs-table .product-thumbnail {
    max-width: 80px;
    max-height: 80px;
    width: auto;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* ===============================================
   MODEL NUMBER LINKS
   =============================================== */

.product-specs-table .model-link {
    color: #0073aa !important;
    text-decoration: underline !important;
    font-weight: bold !important;
}

.product-specs-table .model-link:hover {
    color: #005a87 !important;
    text-decoration: none !important;
}

/* ===============================================
   STOCK STATUS
   =============================================== */

.status-in-stock {
    color: #008000;
    font-weight: bold;
}

.status-out-of-stock {
    color: #cc0000;
    font-weight: bold;
}

/* ===============================================
   SORT ARROWS
   =============================================== */

.sort-asc, 
.sort-desc {
    cursor: pointer;
    font-size: 0.8em;
    margin-left: 5px;
    color: #666;
}

.sort-asc:hover, 
.sort-desc:hover {
    color: #000;
}
