/*
	Theme Name:     Mobex Child
	Theme URI:      http://www.enovathemes.com/mobex
	Description:    Mobex - Auto Parts Woocommerce WordPress Theme
	Author:         Enovathemes
	Author URI:     https://enovathemes.com
	Version:        1.0
	Template:       mobex
*/

/* =Theme customization starts here
-------------------------------------------------------------- */
/* Reference Numbers Table Styling */
.reference-numbers-section {
    margin: 40px 0 25px 0;
    padding: 20px;
    background: #f8f9fa;
    border: 1px solid #e9cef7;
    border-radius: 8px;
    clear: none;
}

.reference-title {
    font-size: 2em;
    margin-top: 0 !important;
    margin-bottom: 15px !important;
    color: #333 !important;
    padding-bottom: 10px !important;
    border-bottom: 2px solid #007cba !important;
    font-weight: 600 !important;
}

.reference-numbers-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.reference-numbers-table th {
    background-color: #007cba;
    color: white;
    font-weight: 600;
    padding: 12px 15px;
    text-align: left;
    border: none;
}

.reference-numbers-table td {
    padding: 10px 15px;
    border-bottom: 1px solid #dee2e6;
    vertical-align: middle;
}

.reference-numbers-table tr:last-child td {
    border-bottom: none;
}

.reference-numbers-table tr:nth-child(even) {
    background-color: #f2f2f2;
}

.reference-numbers-table tr:hover {
    background-color: #e9f7fe;
}

/* Column widths */
.brand-col {
    width: 40%;
}
.oe-col {
    width: 60%;
}

/* ============================================
   TECHNICAL DATA TAB FIX - VEHICLES FIRST
   ============================================ */

.technical-data-tab {
    display: flex !important;
    flex-direction: column !important;
    padding: 20px 0;
}

/* VEHICLES - DISPLAY FIRST */
.technical-data-tab > .vehicles-content:first-of-type {
    order: 1 !important;
    margin-bottom: 40px !important;
    display: block !important;
}

/* REFERENCE NUMBERS - DISPLAY SECOND */
.technical-data-tab > .reference-numbers-section {
    order: 2 !important;
    margin-top: 40px !important;
    clear: none !important;
    float: none !important;
}

/* VEHICLES TABLE STYLING */
.vehicles-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.vehicles-content table th {
    background: #27ae60;
    color: white;
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
    border: none;
}

.vehicles-content table td {
    padding: 10px 15px;
    border-bottom: 1px solid #eee;
}

.vehicles-content table tr:nth-child(even) {
    background: #f9f9f9;
}

.vehicles-content table tr:hover {
    background: #f0f9f4;
}

/* MOBILE RESPONSIVE */
@media (max-width: 768px) {
    .technical-data-tab {
        padding: 15px 0;
    }
    
    .technical-data-tab > .vehicles-content:first-of-type {
        margin-bottom: 30px !important;
    }
    
    .technical-data-tab > .reference-numbers-section {
        margin-top: 30px !important;
    }
}
/* ============================================
   TECHNICAL DATA TAB - FIXED ORDER
   ============================================ */

.technical-data-tab {
    display: block !important;
}

/* VEHICLES - FIRST */
.vehicles-content {
    margin-bottom: 40px !important;
    display: block !important;
    width: 100% !important;
    float: none !important;
    clear: both !important;
}

.vehicles-title {
    font-size: 22px;
    color: #2c3e50;
    margin: 0 0 20px 0;
    padding: 0 0 10px 0;
    border-bottom: 3px solid #27ae60;
    font-weight: 700;
    text-transform: uppercase;
}

/* REFERENCE NUMBERS - SECOND */
.reference-numbers-section {
    margin-top: 40px !important;
    clear: none !important;
    float: none !important;
    width: 100% !important;
}

/* VEHICLES TABLE STYLING */
.vehicles-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.vehicles-content table th {
    background: #27ae60;
    color: white;
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
    border: none;
}

.vehicles-content table td {
    padding: 10px 15px;
    border-bottom: 1px solid #eee;
}

.vehicles-content table tr:nth-child(even) {
    background: #f9f9f9;
}

.vehicles-content table tr:hover {
    background: #f0f9f4;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .vehicles-content {
        margin-bottom: 30px !important;
    }
    
    .reference-numbers-section {
        margin-top: 30px !important;
    }
}