/* ==========================================================================
   Technical Specifications - UI.com Style
   Version: 1.0.0
   ========================================================================== */

/* Main Container */
.tech-specs {
    margin: 24px 0;
}

/* Section */
.specs-section {
    margin-bottom: 32px;
}

.specs-section:last-child {
    margin-bottom: 0;
}

/* Section Title - matches UI.com style */
.specs-section-title,
.tech-specs h4 {
    font-size: 14px;
    font-weight: 600;
    color: #212427;
    margin: 0 0 16px 0;
    padding: 0;
    text-transform: none;
    letter-spacing: normal;
}

/* Specs Grid - two column layout like UI.com */
.specs-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Individual Spec Row */
.spec-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 12px 0;
    border-bottom: 1px solid #F3F4F6;
    gap: 24px;
}

.spec-row:last-child {
    border-bottom: none;
}

/* Spec Name (left column) */
.spec-name {
    flex: 0 0 45%;
    font-size: 14px;
    font-weight: 400;
    color: #6B7280;
    line-height: 1.5;
}

/* Spec Value (right column) */
.spec-value {
    flex: 1;
    font-size: 14px;
    font-weight: 400;
    color: #212427;
    line-height: 1.5;
    text-align: left;
}

/* Checkmark styling */
.spec-value:contains('✓'),
.spec-value:has-text('✓') {
    color: #10B981;
}

/* Legacy table support (fallback) */
.specs-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 24px;
}

.specs-table tbody tr {
    border-bottom: 1px solid #F3F4F6;
}

.specs-table tbody tr:last-child {
    border-bottom: none;
}

.specs-table td {
    padding: 12px 0;
    font-size: 14px;
    line-height: 1.5;
    vertical-align: top;
}

.specs-table td:first-child {
    width: 45%;
    color: #6B7280;
    padding-right: 24px;
}

.specs-table td:last-child {
    color: #212427;
}

/* Product Features List */
.product-features {
    list-style: none;
    padding: 0;
    margin: 16px 0;
}

.product-features li {
    position: relative;
    padding: 8px 0 8px 24px;
    font-size: 14px;
    line-height: 1.6;
    color: #374151;
    border-bottom: 1px solid #F3F4F6;
}

.product-features li:last-child {
    border-bottom: none;
}

.product-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 14px;
    width: 6px;
    height: 6px;
    background-color: #006FFF;
    border-radius: 50%;
}

/* ==========================================================================
   Installation Guide Link (like UI.com)
   ========================================================================== */
.installation-guide-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 500;
    color: #006FFF;
    text-decoration: none;
    margin-bottom: 24px;
}

.installation-guide-link:hover {
    text-decoration: underline;
}

.installation-guide-link svg {
    width: 14px;
    height: 14px;
}

/* ==========================================================================
   Compare Toggle (like UI.com)
   ========================================================================== */
.compare-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.compare-toggle-label {
    font-size: 14px;
    font-weight: 500;
    color: #212427;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 768px) {
    .spec-row {
        flex-direction: column;
        gap: 4px;
        padding: 10px 0;
    }

    .spec-name {
        flex: none;
        font-weight: 500;
        color: #374151;
    }

    .spec-value {
        color: #6B7280;
    }

    .specs-table td {
        display: block;
        width: 100%;
        padding: 4px 0;
    }

    .specs-table td:first-child {
        width: 100%;
        padding-right: 0;
        font-weight: 500;
        color: #374151;
    }

    .specs-table td:last-child {
        color: #6B7280;
        padding-bottom: 12px;
    }

    .specs-table tbody tr {
        display: block;
        padding: 8px 0;
    }

    .product-features li {
        font-size: 13px;
        padding: 6px 0 6px 20px;
    }

    .product-features li::before {
        top: 12px;
        width: 5px;
        height: 5px;
    }
}

/* ==========================================================================
   WooCommerce Tab Content Override
   ========================================================================== */
.woocommerce-Tabs-panel h3 {
    font-size: 18px;
    font-weight: 600;
    color: #212427;
    margin: 0 0 16px 0;
}

.woocommerce-Tabs-panel p {
    font-size: 14px;
    line-height: 1.7;
    color: #374151;
    margin-bottom: 16px;
}
