:root {
    --primary-dark: #101840;
    --active-blue: #1a237e;


    --btn-orange: #f39c12;
    --text-red: #e74c3c;
}
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}
.search-strip {
    background-color: white;
    padding: 8px 2vw;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    border-bottom: 1px solid #ddd;
}

.display-icons {
    display: flex;
    gap: 12px;
    font-size: clamp(14px, 1.8vw, 24px);
    cursor: pointer;
    flex-shrink: 0;
}

.display-icons i {
    color: #777;
    transition: 0.3s ease;
}

.display-icons i:hover {
    color: #191858;
}

.display-icons i.active {
    color: #191858;
}

/* Search Box Styling */
.search-box {
    flex-grow: 1; 
    display: flex;
    border: 1px solid #ccc;
    border-radius: 4px;
    min-width: 100px; 
    max-width: 600px;
}

.search-box input {
    width: 100%;
    padding: 8px 15px;
    border: none;
    outline: none;
    font-size: 14px;
}

.search-box button {
    background-color: #d13438; /* Red/Pink Search Button */
    color: white;
    border: none;
    padding: 0 15px;
    cursor: pointer;
}

/* Right Side Action Icons */
.action-icons {
    display: flex;
    background-color: #a3ff66;
    
}

.icon-item {
    padding: 7px 12px;
    border-radius: 4px;
    display: flex;
    gap: 5px;
    font-size: clamp(16px, 2vw, 26px);
    position: relative;
    cursor: pointer;
    flex-shrink: 0;
}

.icon-item span {
    position: absolute;
    top: 20px;      
    right: 1.5px;
    background-color: white;
    color: #333;
    font-size: 10px;
    font-weight: bold;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    border: 1.5px solid #141414;
}

/* Mobile Responsive */
@media (max-width: 600px) {
    .search-strip {
        flex-wrap: nowrap !important; /* Aik hi line confirm karne ke liye */
        gap: 5px;
        padding: 5px 1vw;
    }
    
    .search-box {
        max-width: none; /* Puri available jagah lega */
    }

    .icon-item span {
        width: 12px;
        height: 12px;
        font-size: 8px;
        top: 15px; /* Icon chota hone par badge ki position adjust ki */
    }
}
@media (max-width: 350px) {
    
    .icon-item {
    padding: 7px 10px;
    display: flex;
    gap: 3px;
    font-size: clamp(12px, 1.5vw, 22px);
}
.icon-item span {
    position: absolute;
    top: 10px;      
    right: 1.5px;
}
.search-box input {
    padding: 4px 15px;
    font-size: 12px;
}

.search-box button {
    padding: 0 12px;
    cursor: pointer;
}
}

.main-container {display: flex; margin-top: -15px;}

/* left-content */
/*.left-content {width: 20%; margin-block: 20px; margin-left: 20px; font-size: 12px;}*/

/*.filter {background-color: #949494; padding: 10px; display: flex; justify-content: space-between; border-bottom: 1px solid white; font-weight: bold; border-inline: 1px solid #d9d9d9;}*/

/*.filter:hover {background-color: #C8C8C8; cursor: pointer;}*/

/*.filter div {color: white; font-weight: bold;}*/

/*.outer {max-height: 241.9px; overflow-y: auto;}*/

/*.values {background-color:#F9F9F9; padding:15px; border-inline: 1px solid #d9d9d9; border-bottom: 1px solid #d9d9d9; display:flex; justify-content:space-between;}*/

/*.values:hover, #clear-filters:hover {cursor: pointer;}*/

/*.values div {color: #0C1050}*/

/*.values div input {margin-right: 5px;}*/

/*.value input[type="checkbox"] {margin-right: 6px; width: 15px; height: 15px; accent-color: #0C1050;}*/

/*.values:hover input[type="checkbox"] {outline: 1px solid #4A90E2; outline-offset: -1px; border-radius: 3px;}*/


.right-content {width: 100%;}
/* Container jo grid ko control karega */
/* 1. Main Grid Container */
.product-grid {
    display: grid;
    /* auto-fit khud decide karega ke screen par 4 boxes aane chahiye ya kam */
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); 
    gap: 20px;
    padding: 20px;
    width: 100%;
    max-width: 1400px; /* Badi screen par ye limit rahegi */
    margin: 0 auto;
    box-sizing: border-box; /* Padding ko width ke andar rakhega */
}

/* 2. Individual Car Card */
.car-card {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    height: 100%; /* Saare boxes ki height barabar rahegi */
    transition: transform 0.2s ease-in-out;
}

.car-card:hover {
    transform: translateY(-5px); /* Hover par thoda upar uthega */
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* 3. Image Section */
.card-img {
    position: relative;
    width: 100%;
    height: 150px; /* Image ki height thodi kam ki */
    overflow: hidden; /* sheet ko image area ke andar hi rkhe */
    display: block;
}

.card-img a{
    display:block;
    height:100%;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
/* ===============================
   CAR + AUCTION SHEET SIDE BY SIDE
================================== */

.card-img {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
    background: #fff;
    padding: 0;
    margin: 0;
}

.card-img .media-row {
    display: flex;
    width: 100%;
    height: 100%;
}

/* IMAGE CONTAINER */
.card-img {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
    background: #fff;
}

/* ROW */
.card-img .media-row {
    display: flex;
    width: 100%;
    height: 100%;
    gap: 0;
}

/* LEFT CAR IMAGE */
.card-img .car-col {
    width: 55%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #fff;
}

.card-img .car-col a {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* CAR IMAGE */
.card-img .car-main {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    margin: 0;
    padding: 0;
}

/* RIGHT SHEET IMAGE */
.card-img .sheet-col {
    width: 45%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #fff;
}

/* SHEET IMAGE */
.card-img .sheet-thumb {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    margin: 0;
    padding: 0;
}

/* IF NO SHEET */
.card-img.no-sheet .car-col {
    width: 100%;
}

/* MOBILE VIEW */
@media (max-width: 582px) {

    .card-img {
        height: 170px;
    }

    /* KEEP SIDE BY SIDE */
    .card-img .media-row {
        display: flex;
        flex-direction: row;
        width: 100%;
        height: 100%;
    }

    /* CAR IMAGE */
    .card-img .car-col {
        width: 55%;
        height: 100%;
    }

    /* SHEET IMAGE */
    .card-img .sheet-col {
        width: 45%;
        height: 100%;
    }

    /* FULL WIDTH IF NO SHEET */
    .card-img.no-sheet .car-col {
        width: 100%;
    }

    /* OPTIONAL SMALLER CARD */
    .car-card {
        max-width: 100%;
    }
}

/* IF NO SHEET EXISTS */
.card-img.no-sheet .car-col {
    width: 100%;
}

/* MOBILE VIEW */
@media (max-width: 582px) {

    .card-img {
        height: 170px;
    }

    /* KEEP SIDE BY SIDE */
    .card-img .media-row {
        display: flex;
        flex-direction: row;
        width: 100%;
        height: 100%;
    }

    /* CAR IMAGE */
    .card-img .car-col {
        width: 55%;
        height: 100%;
    }

    /* SHEET IMAGE */
    .card-img .sheet-col {
        width: 45%;
        height: 100%;
    }

    /* FULL WIDTH IF NO SHEET */
    .card-img.no-sheet .car-col {
        width: 100%;
    }

    /* OPTIONAL SMALLER CARD */
    .car-card {
        max-width: 100%;
    }
}

.img-badges {
    position: absolute;
    bottom: 10px;
    left: 10px;
    display: flex;
    gap: 6px;
    z-index: 2;
}

.badge-green { background: #7ed321; color: #fff; padding: 2px 8px; font-size: 10px; font-weight: 600; border-radius: 3px; }
.badge-orange { background: #f5a623; color: #fff; padding: 2px 8px; font-size: 10px; font-weight: 600; border-radius: 3px; }
.badge-gray { background: #9B9B9B; color: #fff; padding: 2px 8px; font-size: 10px; font-weight: 600; border-radius: 3px; }

/* 4. Content Section */
.card-content {
    padding: 15px;
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Ye content ko niche push karega taake buttons barabar hon */
}

.stock-id { font-size: 11px; color: #888; font-weight: bold; margin-bottom: 2px; }
.title { font-size: 18px; font-weight: 800; color: #111; margin: 0 0 5px 0; }
.specs { font-size: 13px; color: #666; margin-bottom: 15px; line-height: 1.4; }

/* 5. Footer (Price & Button) */
.card-footer {
    display: flex;
    justify-content: space-between; /* Is se price aur button ek dusre ke samne rahenge */
    align-items: center;
    margin-top: auto; /* Footer hamesha box ke bottom par rahega */
    padding-top: 10px;
    border-top: 1px solid #f0f0f0;
}

.price {
    background: #34c759;
    color: white;
    padding: 5px 12px;
    font-weight: 800;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
}

.bid-btn {
    background: #0c1050; /* Aapka dark blue theme */
    color: white;
    border: none;
    padding: 7px 12px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: background 0.3s;
}

.bid-btn:hover { background: #1a2280; }

/* 6. Mobile Optimization */
@media (max-width: 582px) {
    .product-grid {
        grid-template-columns: 1fr; 
        padding: 15px;
        justify-items: center; /* Box ko center karne ke liye */
    }
    
    .car-card {
        width: 100%;
        max-width: 400px;  /* Box ko screen se thoda chota rakhega */
        margin: 0 auto; 
    }

    .card-img { 
        height: 200px; 
    }

    .title {
        font-size: 16px; /* Choti screen ke liye text thoda chota */
    }
}
/* View All Card Styling */
.view-all-card {
    background-color: #0c1050; /* Same Dark Blue as your theme */
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none; /* Link underline khatam karne ke liye */
    transition: background 0.3s, transform 0.2s;
    
    height: 150px;      /* Image section ke barabar */
    align-self: start;
    min-height: 50%; 
    cursor: pointer;
    border: 1px solid transparent;
}

.view-all-card:hover {
    background-color: #1a2280;
    transform: scale(1.02); /* Clickable feel dene ke liye thoda bada hoga */
}

.view-all-content {
    display: flex;
    align-items: center;
    gap: 15px;
    color: white;
    font-size: 20px;
    font-weight: bold;
}

.view-all-content i {
    font-size: 18px;
}

/* Mobile Responsive Fix for 582px */
@media (max-width: 582px) {
    .view-all-card {
        width: 100%;
        max-width: 400px; /* Jaisa humne car-card ke liye rakha tha */
        height: 150px; /* Mobile par width ke mutabiq height adjust ki */
        margin: 0 auto;
    }
}
/* Container and Header Bar */
.parts-section {
    width: 100%;
    max-width: 1400px;
    margin: 30px auto;
    padding: 0 15px;
    box-sizing: border-box;
}

.parts-header {
    background-color: #0c1050; /* Dark Blue */
    color: white;
    padding: 10px 15px;
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 15px;
    border-radius: 2px;
}

/* Grid for 6 items in a row */
.parts-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr); 
    gap: 12px;
}

.part-card {
    background: #fff;
    border: 1px solid #ddd;
    overflow: hidden;
}

.part-img-box {
    position: relative;
    width: 100%;
    height: 150px; /* Image area height */
}

.part-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Bottom Info Bar (Price + Status) */
.part-info-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    display: flex;
    align-items: center;
}

.part-price {
    background: white;
    color: black;
    padding: 2px 8px;
    font-size: 12px;
    font-weight: bold;
    border: 1px solid #ddd;
    white-space: nowrap;
}

.part-status {
    flex-grow: 1;
    text-align: center;
    color: white;
    font-size: 11px;
    padding: 3px 0;
    font-weight: 600;
}

/* Specific colors for status */
.part-status.used { background-color: #7ed321; } 
.part-status.damaged { background-color: #00bfff; } /* Light Blue */

/* Show All Card Styling */
.show-all-card {
    background-color: #0c1050;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    height: 150px; /* Same as image height */
    transition: background 0.3s;
}

.show-all-content {
    color: white;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: bold;
    font-size: 16px;
}

/* RESPONSIVE DESIGN */
@media (max-width: 1024px) {
    .parts-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 582px) {
    .parts-grid { 
        grid-template-columns: repeat(2, 1fr); /* Mobile par 2 columns */
        gap: 8px;
    }
    
    .part-img-box { height: 130px; }
    .show-all-card { height: 130px; }
}
/* Main Container */
.news-section {
    width: 100%;
    max-width: 1400px;
    margin: 20px auto;
    background-color: #fff;
    border: 1px solid #ddd; /* Light border around the box */
    box-sizing: border-box;
}

/* Dark Blue Header Bar */
.news-header {
    background-color: #0c1050; /* Exact dark blue theme */
    color: white;
    padding: 12px 20px;
    font-weight: bold;
    font-size: 18px;
}

/* Body Content */
.news-body {
    padding: 15px 20px;
}

/* Individual News Line */
.news-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 8px 0;
    border-bottom: 1px solid transparent; /* Keeps lines clean */
}

/* Date Style */
.news-date {
    color: #555;
    font-size: 14px;
    font-family: Arial, sans-serif;
    min-width: 85px; /* Ensures dates align vertically */
}

/* Blue "NEW" Badge */
.news-badge {
    background-color: #0056b3; /* Bright blue badge */
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    font-weight: bold;
    border-radius: 2px;
}

/* Link Style */
.news-link {
    color: #0c1050;
    text-decoration: underline; 
    font-size: 14px;
    transition: color 0.3s;
}

.news-link:hover {
    color: #0056b3;
}

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 582px) {
    .news-item {
        flex-wrap: wrap; 
        gap: 8px;
        padding: 12px 0;
        border-bottom: 1px solid #eee; 
    }

    .news-date {
        width: 100%; 
        font-weight: bold;
    }

    .news-link {
        font-size: 13px;
        line-height: 1.4;
    }
}


/* 3. Search box ko relative karna lazmi hai */
.search-box {
    position: relative; 
}

/* Table Styling */
.auction-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #ccc;
}

.auction-table thead th {
    background-color: var(--primary-dark);
    color: white;
    padding: 12px 5px;
    text-align: center;
    border: 1px solid #333;
}

.auction-table td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: center;
    vertical-align: middle;
}

/* TD */
.photo-cell{
    padding:0 !important;
    width:210px;
    overflow:hidden;
    vertical-align:middle;
}

/* wrapper */
.img-wrap{
    display:flex;
    width:100%;
    height:110px;
    overflow:hidden;
    text-decoration:none;
    gap: 0;
}

/* each image area */
.img-box{
    flex:1;
    height:100%;
    overflow:hidden;
    background:#fff;
    margin:0;
    padding:0;
}

/* images */
.img-half{
    width:100%;
    height:100%;
    object-fit:contain; /* IMPORTANT */
    display:block;
    background:#fff;
    margin:0;
    padding:0;
    border:none;
}

.btn-bookmark {
    background-color: var(--btn-orange);
    color: white;
    border: none;
    padding: 3px 10px;
    border-radius: 3px;
    font-size: 12px;
    margin-top: 5px;
}

.price-pkr {
    font-weight: bold;
    color: #333;
}

.met {
    color: #27ae60;
    font-weight: bold;
}

.not-met {
    color: var(--text-red);
    font-weight: bold;
}

.link-blue {
    color: #0056b3;
    text-decoration: underline;
    font-weight: 500;
}

/* Image ke box ki padding aur extra space khatam karne ke liye */
.auction-table td.photo-cell {
    padding: 0 !important;
    vertical-align: top;
    /* Middle se top karne par nichla gap khatam ho jata hai */
    line-height: 0;
    /* Text ki wajah se aane wala extra space khatam karta hai */
}

.auc-met, .auc-not-met {
    color: red;
}
/* Tablet aur Mobile ke liye Settings */
@media (max-width: 992px) {
    body {
        padding: 10px;
    }

    .auction-table {
        font-size: 11px;
        /* Choti screen par font size chota ho jaye */
    }

    .auction-table thead th {
        padding: 8px 3px;
    }

    .auction-table td {
        padding: 5px;
    }

    .photo-cell{
        width:180px !important;
    }

    .img-wrap{
        height:75px;
    }

    .img-half{
        height:75px !important;
    }

    .btn-bookmark {
        font-size: 10px;
        padding: 2px 5px;
    }
}

/* Bohat choti screens (Mobile) ke liye */
@media (max-width: 576px) {
    .auction-table {
        font-size: 10px;
        min-width: 600px;
        /* Table ko bilkul pichakne se rokne ke liye */
    }

    .table-responsive {
        border: 0;
        /* Bootstrap horizontal scroll enable rakhega */
    }
    
    .photo-cell{
        width:140px !important;
    }

    .img-wrap{
        height:60px;
    }

    .img-half{
        height:60px !important;
    }
}
/* =========================
   SEARCH TYPE DROPDOWN
========================= */
.search-box {
    position: relative;
    flex-grow: 1;
    display: flex;
    border: 1px solid #ccc;
    border-radius: 4px;
    min-width: 100px;
    max-width: 600px;
    background: #fff;
}

.search-box input {
    width: 100%;
    padding: 8px 15px;
    border: none;
    outline: none;
    font-size: 14px;
    background: #fff;
}

.search-box button#parts {
    background-color: #d13438;
    color: white;
    border: none;
    padding: 0 15px;
    cursor: pointer;
}

.parts-search-box {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 100%;
    background: #f7f7f7;
    border: 1px solid #ddd;
    border-radius: 14px;
    box-shadow: 0 8px 22px rgba(0,0,0,0.15);
    z-index: 9999;
    overflow: hidden;
    padding: 0;
}

.parts-search-option {
    width: 100%;
    height: 88px;
    border: none;
    background: #f7f7f7 !important;
    color: #333 !important;
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 0 34px;
    font-size: 15px;
    font-weight: bold;
    text-align: left;
    cursor: pointer;
}

.parts-search-option i {
    color: #10145a;
    font-size: 20px;
    text-align: center;
}

.parts-search-option + .parts-search-option {
    border-top: 1px solid #e5e5e5;
}

.parts-search-option:hover {
    background: #f0f0f0 !important;
}
/* =========================
   FILTER PANEL
========================= */
.filter-panel {
    display: none;
    width: 100%;
    background: #f6f6f6;
    border: 4px solid #151a67;
    border-radius: 16px;
    padding: 34px 36px 28px;
    margin: 10px 0 20px;
    box-sizing: border-box;
    position: relative;
    z-index: 50;
}

.filter-panel.show {
    display: block;
}

.filter-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px 36px;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
}

.filter-label {
    position: relative;
    min-width: 70px;
    padding-left: 14px;
    font-weight: 700;
    padding-top: 8px;
    font-size: 15px;
    color: #333;
    line-height: 1.2;
    white-space: normal;
}

.filter-label::before {
    content: "";
    position: absolute;
    left: 0;
    top: 3px;
    width: 4px;
    height: 28px;
    background: #151a67;
    border-radius: 2px;
}

.filter-input,
.filter-select {
    flex: 1;
    min-width: 0;
    height: 40px;
    padding: 0 18px;
    border: 1px solid #cfcfcf;
    border-radius: 10px;
    background: #fff;
    font-size: 15px;
    color: #666;
    box-sizing: border-box;
}

.filter-input::placeholder {
    color: #777;
}

.filter-input:focus,
.filter-select:focus {
    outline: none;
    border-color: #151a67;
}

.year-separator {
    font-size: 26px;
    color: #666;
    padding: 0 2px;
    line-height: 1;
}

.filter-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 26px;
    margin-top: 34px;
    padding-top: 28px;
    border-top: 1px solid #dddddd;
    flex-wrap: wrap;
}

.btn-search-filter,
.btn-clear-filter {
    border: none;
    border-radius: 10px;
    padding: 12px 28px;
    min-width: 155px;
    font-size: 22px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    color: #fff;
    background: #0C1050;
    opacity: 90%;
}

.btn-clear-filter {
    background-color: gray;
}

.btn-search-filter:hover,
.btn-clear-filter:hover {
    opacity: 100%;
}

/* Choices.js styling to match your UI */
.choices {
    flex: 1;
    min-width: 0;
    margin-bottom: 0;
}

.choices__inner {
    min-height: 58px;
    border: 1px solid #cfcfcf;
    border-radius: 10px;
    background: #fff;
    padding: 8px 12px;
    font-size: 18px;
    display: flex;
    align-items: center;
}

.choices__list--multiple .choices__item {
    background-color: #151a67;
    border: 1px solid #151a67;
    color: #fff;
    border-radius: 6px;
    font-size: 13px;
    margin: 2px 4px 2px 0;
}

.choices[data-type*=select-multiple] .choices__button {
    border-left: 1px solid rgba(255,255,255,0.35);
}

.choices__list--dropdown,
.choices__list[aria-expanded] {
    z-index: 99999;
    border-radius: 8px;
}



/* Tablet = same as laptop screen UI */
@media (min-width: 601px) and (max-width: 991px) {
    .filter-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 22px 24px;
    }

    .filter-panel {
        padding: 28px 20px 24px;
    }

    .filter-group {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 10px;
        min-width: 0;
        flex-wrap: nowrap;
    }

    .filter-label {
        min-width: 62px;
        width: 62px;
        flex: 0 0 62px;
        font-size: 13px;
        white-space: nowrap;
    }

    .filter-input,
    .filter-select,
    .choices {
        flex: 1 1 auto;
        min-width: 0;
        width: auto;
    }

    .filter-input,
    .filter-select {
        height: 40px;
        font-size: 13px;
        padding: 0 10px;
    }

    .choices__inner {
        min-height: 40px;
        font-size: 13px;
        padding: 6px 8px;
    }

    .parts-search-option {
        width: 100%;
        font-size: 15px;
        padding: 22px 22px;
    }
}


/* Mobile = one column, but each group stays on one line */
@media (max-width: 600px) {
    .parts-search-box {
        top: calc(100% + 8px);
        border-radius: 12px;
    }

    .parts-search-option {
        width: 100%;
        padding: 18px 16px;
        gap: 12px;
    }

    .filter-panel {
        padding: 16px 10px;
        border: 3px solid #151a67;
        border-radius: 12px;
    }

    .filter-grid {
        grid-template-columns: 1fr !important;
        gap: 12px;
    }

    .filter-group {
        display: flex;
        flex-direction: row !important;
        align-items: center !important;
        gap: 8px;
        width: 100%;
        min-width: 0;
        flex-wrap: nowrap;
    }

    .filter-label {
        min-width: 72px;
        width: 72px;
        flex: 0 0 72px;
        padding-left: 12px;
        padding-top: 0;
        font-size: 13px;
        line-height: 1.1;
        white-space: nowrap;
        color: #333;
        font-weight: 700;
    }

    .filter-label::before {
        top: 50%;
        transform: translateY(-50%);
        height: 24px;
        width: 4px;
        background: #151a67;
    }

    .filter-input,
    .filter-select,
    .choices {
        flex: 1 1 auto;
        min-width: 0;
        width: auto;
    }

    .filter-input,
    .filter-select {
        height: 38px;
        padding: 0 10px;
        font-size: 13px;
        border-radius: 8px;
    }

    .choices {
        margin-bottom: 0;
    }

    .choices__inner {
        min-height: 38px;
        height: auto;
        padding: 5px 8px;
        font-size: 13px;
        border-radius: 8px;
        display: flex;
        align-items: center;
    }

    .choices__list--single {
        padding: 0;
    }

    .choices__placeholder {
        opacity: 1;
        white-space: nowrap;
    }

    .choices__list--multiple .choices__item {
        font-size: 11px;
        margin: 1px 3px 1px 0;
        padding: 2px 5px;
    }

    .choices[data-type*="select-multiple"]::after {
        right: 8px;
    }

    .year-separator {
        flex: 0 0 auto;
        font-size: 14px;
        padding: 0 2px;
        line-height: 1;
    }

    #filter-year-from,
    #filter-year-to {
        flex: 1 1 0;
        min-width: 0;
        padding: 0 6px;
    }

    .filter-buttons {
        margin-top: 22px;
        padding-top: 18px;
        gap: 12px;
    }

    .btn-search-filter,
    .btn-clear-filter {
        min-width: 120px;
        font-size: 15px;
        padding: 11px 16px;
    }
}


/* =========================
   MOBILE AUCTION LIST VIEW
========================= */

.mobile-auction-list {
    display: none;
}

@media (max-width: 576px) {
    #list {
        margin: 0 !important;
        padding: 0 5px;
        font-size: 12px !important;
    }

    #list .auction-table {
        display: none;
    }

    .mobile-auction-list {
        display: block;
        width: 100%;
        background: #ffffff;
    }

    .mobile-list-head {
        display: grid;
        grid-template-columns: 38% 62%;
        background: #18165b;
        color: white;
        font-weight: 700;
        text-align: center;
        font-size: 13px;
    }

    .mobile-list-head div {
        padding: 9px 5px;
        border-right: 3px solid #ffffff;
    }

    .mobile-list-head div:last-child {
        border-right: 0;
    }

    .mobile-auction-item {
        background: #eeeeee;
        border-bottom: 2px solid #ffffff;
    }

    .mobile-summary {
        display: grid;
        grid-template-columns: 38% 62%;
        min-height: 125px;
        position: relative;
    }

    .mobile-photo {
        position: relative;
        background: #dddddd;
        overflow: hidden;
    }

    .mobile-photo img {
        width: 100%;
        height: 125px;
        object-fit: cover;
        display: block;
    }

    .mobile-condition {
        position: absolute;
        right: 0;
        bottom: 0;
        background: #00aeef;
        color: #ffffff;
        font-size: 11px;
        padding: 4px 6px;
    }

    .mobile-detail {
        padding: 6px 8px;
        background: #eeeeee;
        color: #000000;
        line-height: 1.45;
        overflow: hidden;
    }

    .mobile-top-row {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 5px;
    }

    .mobile-lot-link {
        color: #0000aa;
        text-decoration: underline;
        font-size: 13px;
    }

    .mobile-bookmark {
        background: #ff7a2a;
        color: #ffffff;
        text-decoration: none;
        font-size: 9px;
        padding: 3px 5px;
        white-space: nowrap;
    }

    .mobile-toggle {
        position: absolute;
        right: 0;
        bottom: 0;
        width: 34px;
        height: 34px;
        border: 0;
        background: #777777;
        color: #ffffff;
        font-size: 18px;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0;
    }

    .mobile-auction-item.open .mobile-toggle {
        background: #000000;
    }

    .mobile-auction-item.open .mobile-toggle i {
        transform: rotate(180deg);
    }

    .mobile-extra {
        display: none;
        padding: 8px 14px 12px;
        background: #eeeeee;
        color: #000000;
        line-height: 1.7;
        border-top: 1px solid #dddddd;
    }

    .mobile-auction-item.open .mobile-extra {
        display: block;
    }
}
@media (max-width: 600px) {
    main {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }

    .search-strip {
        margin-top: 0 !important;
        padding-top: 4px !important;
        padding-bottom: 4px !important;
        border-top: 0 !important;
    }

    .main-container {
        margin-top: 0 !important;
    }

    #header-placeholder {
        margin-bottom: 0 !important;
        padding-bottom: 0 !important;
    }

    #header-placeholder > * {
        margin-bottom: 0 !important;
    }
}
/* =========================
   SEARCH DROPDOWN FULL DEVICE WIDTH
========================= */
@media (max-width: 600px) {
    .parts-search-box {
        position: absolute;
        top: calc(100% + 8px);
        left: 0;
        right: auto;
        width: calc(100vw - 20vw);
        max-width: none;
        border-radius: 12px;
    }

    .parts-search-option {
        width: 100%;
        min-height: 76px;
        height: auto;
        padding: 18px 16px;
        gap: 12px;
        font-size: 15px;
    }
}

/* =========================
   MORE GAP BETWEEN LABEL AND FIELD
========================= */
.filter-group {
    gap: 24px;
}

@media (max-width: 600px) {
    .filter-group {
        gap: 14px !important;
    }

    .filter-label {
        flex: 0 0 86px;
        width: 86px;
        min-width: 86px;
    }
}

/* =========================
   YEAR PICKER UI
========================= */
.year-picker-input {
    cursor: pointer;
    background-color: #fff;
}

.year-picker-box {
    position: absolute;
    background: #ffffff;
    border: 1px solid #cfcfcf;
    border-radius: 10px;
    /*width: calc(100vw - 50px) !important;*/
    box-shadow: 0 8px 22px rgba(0,0,0,0.15);
    padding: 10px;
    z-index: 999999;
    display: grid;
    gap: 8px;
    max-height: 240px;
    overflow-y: auto;
}

.year-picker-box button {
    border: 1px solid #ddd;
    background: #f7f7f7;
    border-radius: 7px;
    padding: 8px 10px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: #101840;
}

.year-picker-box button:hover {
    background: #151a67;
    color: #fff;
}
.search-strip {
    position: sticky;
    top: 135px; /* change this according to your green nav height */
    z-index: 900;
    /*background: #a3ff66;*/
    padding: 8px 20px;
}

@media (max-width: 600px) {
    .year-picker-box {
        /*left: 10px !important;*/
        /*right: 10px !important;*/
    }
    
    .search-strip {
    top: 118px;
    }
}
/* Top goods row */
.goods-top-bar {
    align-items: center;
    justify-content: space-between;
    padding: 30px 20px 4px !important;
    margin: 0 auto;
    gap: 8px;
    max-width: 1400px;
    width: 100%;
    flex-wrap: nowrap;
}

/* Car icon + count */
.goods-count {
    display: flex;
    align-items: center;
    gap: 5px !important;
    color: #18165b;
    flex-shrink: 0;
    line-height: 1;
}

.goods-count i {
    font-size: 24px !important;
    line-height: 1;
}

.goods-count span {
    font-size: 28px !important;
    font-weight: 800;
    line-height: 1;
}

.goods-count strong {
    font-size: 16px !important;
    color: #111;
    line-height: 1;
    white-space: nowrap;
}

/* List tools same row */
.list-tools {
    display: flex;
    width: auto !important;
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 14px !important;
    flex-wrap: nowrap;
    margin: 10px 0;
    padding: 0;
}

/* Range + arrows */
.list-range,
.display-count {
    display: flex;
    align-items: center;
    gap: 5px !important;
    margin: 0;
    padding: 0;
    line-height: 1;
}

.list-range span,
.display-count span {
    font-size: 13px !important;
    color: #111;
    line-height: 1;
    white-space: nowrap;
}

/* Arrow buttons smaller */
.page-arrow {
    border: 0;
    width: 22px !important;
    height: 22px !important;
    background: #ffffff;
    color: #0C1050;
    font-size: 13px !important;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.page-arrow:disabled {
    color: #bbbbbb;
    cursor: not-allowed;
}

/* Display buttons compact */
.display-btn {
    border: 0;
    min-width: 32px !important;
    height: 28px !important;
    background: #eeeeee;
    color: #999999;
    font-size: 12px !important;
    font-weight: 700;
    cursor: pointer;
    padding: 0 8px;
    line-height: 1;
}

.display-btn.active {
    background: #18165b;
    color: #ffffff;
}

/* Auc met note closer to table */
.auction-note {
    max-width: 1400px;
    width: 100%;
    margin: -15px auto !important;
    padding: 0 20px !important;
    font-size: 13px !important;
    /*line-height: 1.3;*/
    color: #111;
}

.auction-note span {
    color: red;
}

.page-current {
    justify-self: end !important;
    width: 32px !important;
    min-width: 32px !important;
    height: 32px !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #18165b !important;
    color: #ffffff !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    border-radius: 3px !important;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .goods-top-bar {
        padding: 6px 8px 3px !important;
        flex-wrap: wrap;
        gap: 5px;
    }

    .goods-count {
        gap: 4px !important;
    }

    .goods-count i {
        font-size: 21px !important;
    }

    .goods-count span {
        font-size: 24px !important;
    }

    .goods-count strong {
        font-size: 14px !important;
    }

    .list-tools {
        width: 100% !important;
        justify-content: space-between;
        gap: 6px !important;
        flex-wrap: wrap;
    }

    .list-range,
    .display-count {
        gap: 4px !important;
    }

    .list-range span,
    .display-count span,
    .auction-note {
        font-size: 11px !important;
    }

    .display-btn {
        min-width: 28px !important;
        height: 25px !important;
        font-size: 11px !important;
        padding: 0 6px;
    }

    .page-arrow {
        width: 21px !important;
        height: 21px !important;
        font-size: 11px !important;
    }

    .auction-note {
        padding: 0 8px !important;
        margin-bottom: 3px !important;
    }
}
/* ===============================
   MOBILE ONLY - FINAL LIST HEADER FIX
   range text + < > 1
================================== */
@media (max-width: 576px) {

    .goods-top-bar {
        padding: 8px 20px 0 !important;
        margin: 0 !important;
        gap: 0 !important;
        display: flex !important;
        flex-wrap: wrap !important;
        width: 100% !important;
    }

    .goods-count {
        width: 100% !important;
        display: flex !important;
        align-items: center !important;
        gap: 6px !important;
        margin: 0 0 14px 0 !important;
        padding: 0 !important;
        line-height: 1 !important;
    }

    .goods-count i {
        font-size: 22px !important;
        line-height: 1 !important;
    }

    .goods-count span {
        font-size: 28px !important;
        font-weight: 800 !important;
        line-height: 1 !important;
    }

    .goods-count strong {
        font-size: 15px !important;
        font-weight: 700 !important;
        line-height: 1 !important;
    }

    .list-tools {
        width: 100% !important;
        flex-direction: column !important;
        align-items: stretch !important;
        justify-content: flex-start !important;
        gap: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .display-count {
        order: 1 !important;
        width: 100% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: flex-end !important;
        gap: 11px !important;
        margin: 0 0 18px 0 !important;
        padding: 0 !important;
        line-height: 1 !important;
    }

    .display-count span {
        font-size: 14px !important;
        line-height: 1 !important;
        color: #000 !important;
        white-space: nowrap !important;
    }

    .display-btn {
        width: 31px !important;
        min-width: 31px !important;
        height: 31px !important;
        padding: 0 !important;
        border: 0 !important;
        font-size: 12px !important;
        font-weight: 700 !important;
        line-height: 1 !important;
        background: #eeeeee !important;
        color: #999999 !important;
    }

    .display-btn.active {
        background: #18165b !important;
        color: #ffffff !important;
    }

    .list-range {
        order: 2 !important;
        width: 100% !important;
        display: grid !important;
        grid-template-columns: 1fr 24px 24px 32px !important;
        align-items: center !important;
        column-gap: 4px !important;
        margin: 0 0 14px 0 !important;
        padding: 0 !important;
        line-height: 1 !important;
    }

    #list-range-text {
        grid-column: 1 !important;
        justify-self: start !important;
        font-size: 14px !important;
        line-height: 1 !important;
        color: #000 !important;
        white-space: nowrap !important;
    }

    #page-prev {
        grid-column: 2 !important;
    }

    #page-next {
        grid-column: 3 !important;
    }

    #page-current {
        grid-column: 4 !important;
    }

    .page-arrow {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 24px !important;
        min-width: 24px !important;
        height: 32px !important;
        margin: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        background: transparent !important;
        color: #18165b !important;
        font-size: 13px !important;
        line-height: 1 !important;
        cursor: pointer !important;
    }

    .page-arrow:disabled {
        opacity: 0.35 !important;
        cursor: not-allowed !important;
    }

    .page-current {
        justify-self: end !important;
        width: 32px !important;
        min-width: 32px !important;
        height: 32px !important;
        margin: 0 !important;
        padding: 0 !important;
        background: #18165b !important;
        color: #ffffff !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        font-size: 13px !important;
        font-weight: 700 !important;
        line-height: 1 !important;
        border-radius: 3px !important;
    }

    .auction-note {
        margin: 0 0 4px 0 !important;
        padding: 0 20px !important;
        font-size: 14px !important;
        line-height: 1.45 !important;
        color: #000 !important;
    }

    .auction-note span {
        color: red !important;
    }

    #list.table-responsive,
    .table-responsive#list {
        margin: 0 !important;
        padding: 0 20px !important;
        font-size: 12px !important;
    }
}