/* Variable Product Specifications Styles */

.variable-specifications-wrapper {
    margin: 20px 0;
}

/* Top Tabs Styling */
.spec-top-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 0;
    border: none;
    flex-wrap: wrap;
}

/* Static Label Header (ORDERING CODES) */
.spec-label-header {
    background: #c8414b;
    color: white;
    padding: 12px 30px;
    font-weight: bold;
    font-size: 14px;
    text-align: center;
    text-transform: uppercase;
    border: none;
    flex: 0 0 auto;
    min-width: 180px;
    border-right: 1px solid rgba(255,255,255,0.2);
    cursor: default;
}

.spec-label-header.ordering-codes-label {
    letter-spacing: 0.5px;
}

/* Single product specifications header */
.spec-label-header.single-product-label {
    flex: 1 1 100%;
    min-width: unset;
    border-right: none;
}

.variable-specifications-wrapper.simple-product .spec-top-tabs {
    margin-bottom: 0;
}

/* Clickable Tabs */
.spec-tab {
    background: #c8414b;
    color: white;
    padding: 12px 30px;
    cursor: pointer;
    font-weight: bold;
    font-size: 14px;
    text-align: center;
    text-transform: uppercase;
    border: none;
    transition: background-color 0.3s ease;
    flex: 1;
    min-width: 150px;
    border-right: 1px solid rgba(255,255,255,0.2);
}

.spec-tab:last-child {
    border-right: none;
}

.spec-tab:hover {
    background: #a83138;
}

.spec-tab.active {
    background: #d94651;
    box-shadow: inset 0 -3px 0 rgba(0,0,0,0.2);
}

/* Specifications Table */
.spec-content {
    margin-top: 0;
}

.specifications-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    font-size: 13px;
    border: 1px solid #ddd;
}

.specifications-table thead {
    background: #f0f0f0;
}

.specifications-table thead th {
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    font-weight: bold;
    text-align: left;
    color: #333;
    text-transform: uppercase;
    font-size: 12px;
}

.specifications-table tbody tr:nth-child(odd) {
    background-color: #ffffff;
}

.specifications-table tbody tr:nth-child(even) {
    background-color: #f5f5f5;
}

.specifications-table td {
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    vertical-align: top;
}

.specifications-table .spec-label {
    font-weight: normal;
    color: #333;
    width: 35%;
    background-color: inherit;
}

.specifications-table .spec-value {
    color: #555;
    width: 65%;
    line-height: 1.6;
}

/* Ordering codes table specific styling */
.ordering-codes-content .specifications-table .spec-label {
    font-weight: 600;
    color: #c8414b;
}

/* Responsive Design */
@media (max-width: 968px) {
    .spec-top-tabs {
        flex-wrap: wrap;
    }
    
    .spec-label-header {
        flex: 1 1 100%;
        min-width: unset;
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,0.2);
    }
    
    .spec-tab {
        flex: 1 1 calc(50% - 1px);
        min-width: unset;
    }
}

@media (max-width: 768px) {
    .spec-label-header {
        padding: 10px 15px;
        font-size: 12px;
    }
    
    .spec-tab {
        padding: 10px 15px;
        font-size: 12px;
        flex: 1 1 calc(50% - 1px);
    }
    
    .specifications-table {
        font-size: 12px;
    }
    
    .specifications-table td,
    .specifications-table th {
        padding: 10px;
    }
    
    .specifications-table .spec-label {
        width: 40%;
    }
    
    .specifications-table .spec-value {
        width: 60%;
    }
}

@media (max-width: 480px) {
    .spec-label-header {
        flex: 1 1 100%;
        font-size: 11px;
        padding: 8px 10px;
    }
    
    .spec-tab {
        flex: 1 1 100%;
        font-size: 11px;
        padding: 8px 10px;
    }
    
    .specifications-table td,
    .specifications-table th {
        display: block;
        width: 100%;
    }
    
    .specifications-table .spec-label {
        font-weight: bold;
        border-bottom: none;
        padding-bottom: 5px;
    }
    
    .specifications-table .spec-value {
        padding-top: 5px;
    }
    
    .specifications-table thead {
        display: none;
    }
}

/* Hide default additional information tab */
#tab-title-additional_information,
#tab-additional_information {
    display: none !important;
}

.woocommerce-tabs .wc-tabs li.additional_information_tab {
    display: none !important;
}