/* =========================================
POWERBRAKE WCPE FINDER - CLEAN MASTER CSS
========================================= */

/* -------------------------
1. HERO / PAGE FINDER
Class used: .pb-vehicle-finder
------------------------- */

.pb-vehicle-finder {
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(6px);
    padding: 26px;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.pb-vehicle-finder form {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 16px !important;
    align-items: flex-end !important;
    width: 100% !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
}

.pb-vehicle-finder form > div,
.pb-vehicle-finder form > p,
.pb-vehicle-finder .form-group,
.pb-vehicle-finder .wpce-field,
.pb-vehicle-finder .wpce-form-group,
.pb-vehicle-finder .search-field,
.pb-vehicle-finder .finder-field {
    flex: 1 1 220px !important;
    min-width: 180px !important;
    margin: 0 !important;
}

.pb-vehicle-finder label {
    display: block !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    letter-spacing: 0.04em !important;
    color: #2a2a2a !important;
    margin-bottom: 6px !important;
}

.pb-vehicle-finder select,
.pb-vehicle-finder input[type="text"],
.pb-vehicle-finder input[type="search"] {
    width: 100% !important;
    height: 50px !important;
    min-height: 50px !important;
    border: none !important;
    border-radius: 12px !important;
    background: #f3f3f3 !important;
    padding: 0 18px !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    color: #222 !important;
    box-sizing: border-box !important;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.06) !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 20 20'%3E%3Cpath fill='%23888888' d='M5 7l5 6 5-6z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 14px center !important;
    transition: all 0.2s ease !important;
}

.pb-vehicle-finder select:hover,
.pb-vehicle-finder input[type="text"]:hover,
.pb-vehicle-finder input[type="search"]:hover {
    background-color: #f8f8f8 !important;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.12) !important;
}

.pb-vehicle-finder select:focus,
.pb-vehicle-finder input[type="text"]:focus,
.pb-vehicle-finder input[type="search"]:focus {
    background-color: #ffffff !important;
    box-shadow: 0 0 0 2px rgba(208,24,32,0.25) !important;
    outline: none !important;
}

.pb-vehicle-finder button,
.pb-vehicle-finder input[type="submit"],
.pb-vehicle-finder .button,
.pb-vehicle-finder .btn {
    height: 48px !important;
    min-width: 190px !important;
    padding: 0 22px !important;
    border: none !important;
    border-radius: 10px !important;
    background: #d01820 !important;
    color: #fff !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    letter-spacing: 0.04em !important;
    cursor: pointer !important;
    box-shadow: none !important;
    transition: all 0.2s ease !important;
}

.pb-vehicle-finder button:hover,
.pb-vehicle-finder input[type="submit"]:hover,
.pb-vehicle-finder .button:hover,
.pb-vehicle-finder .btn:hover {
    background: #b5161c !important;
    opacity: 1 !important;
}

.pb-vehicle-finder p {
    margin: 0 !important;
}

/* Mobile hero finder */
@media (max-width: 767px) {
    .pb-vehicle-finder {
        padding: 12px !important;
    }

    .pb-vehicle-finder form {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 10px !important;
    }

    .pb-vehicle-finder form > div,
    .pb-vehicle-finder form > p,
    .pb-vehicle-finder .form-group,
    .pb-vehicle-finder .wpce-field,
    .pb-vehicle-finder .wpce-form-group,
    .pb-vehicle-finder .search-field,
    .pb-vehicle-finder .finder-field {
        min-width: 100% !important;
        width: 100% !important;
    }

    .pb-vehicle-finder label {
        margin-bottom: 4px !important;
        font-size: 13px !important;
        line-height: 1.2 !important;
    }

    .pb-vehicle-finder select,
    .pb-vehicle-finder input[type="text"],
    .pb-vehicle-finder input[type="search"] {
        height: 42px !important;
        min-height: 42px !important;
        padding: 0 12px !important;
        font-size: 14px !important;
        border-radius: 6px !important;
    }

    .pb-vehicle-finder button,
    .pb-vehicle-finder input[type="submit"],
    .pb-vehicle-finder .button,
    .pb-vehicle-finder .btn {
        width: 100% !important;
        height: 42px !important;
        min-height: 42px !important;
        margin-top: 4px !important;
        font-size: 14px !important;
    }
}

/* -------------------------
2. FULL-WIDTH HEADER VEHICLE BAR
Class used on section/widget: .vehicle-bar
------------------------- */

.vehicle-bar {
    width: 100%;
    background: #ffffff;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 9998;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

/* Elementor layout inside vehicle bar */
.vehicle-bar .elementor-container,
.vehicle-bar .e-con-inner,
.vehicle-bar .elementor-widget-wrap {
    align-items: center;
}

/* Heading inside the bar */
.vehicle-bar h5,
.vehicle-bar h6 {
    margin: 0 !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #d01820 !important;
    white-space: nowrap !important;
}

/* WCPE form layout in header bar */
.vehicle-bar form {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 12px !important;
    flex-wrap: nowrap !important;
    width: 100% !important;
    margin: 0 !important;
}

/* Hide labels for compact header version */
.vehicle-bar label {
    display: none !important;
}

/* Field wrappers */
.vehicle-bar form > div,
.vehicle-bar form > p,
.vehicle-bar .form-group,
.vehicle-bar .wpce-field,
.vehicle-bar .wpce-form-group,
.vehicle-bar .search-field,
.vehicle-bar .finder-field {
    margin: 0 !important;
    flex: 0 1 auto !important;
}

/* Header bar dropdowns */
.vehicle-bar select,
.vehicle-bar input[type="text"],
.vehicle-bar input[type="search"] {
    height: 42px !important;
    min-height: 42px !important;
    padding: 0 14px !important;
    border-radius: 6px !important;
    border: 1px solid #ddd !important;
    font-size: 14px !important;
    min-width: 170px !important;
    background: #fff !important;
    color: #222 !important;
    box-sizing: border-box !important;
    box-shadow: none !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
}

/* Header bar button */
.vehicle-bar button,
.vehicle-bar input[type="submit"],
.vehicle-bar .button,
.vehicle-bar .btn {
    height: 42px !important;
    min-height: 42px !important;
    padding: 0 20px !important;
    background: #d01820 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    white-space: nowrap !important;
    box-shadow: none !important;
}

.vehicle-bar button:hover,
.vehicle-bar input[type="submit"]:hover,
.vehicle-bar .button:hover,
.vehicle-bar .btn:hover {
    background: #a8151a !important;
}

/* Mobile vehicle bar */
@media (max-width: 768px) {
    .vehicle-bar {
        padding: 10px 0 !important;
        top: 0 !important;
    }

    .vehicle-bar .elementor-container,
    .vehicle-bar .e-con-inner {
        flex-direction: column !important;
        gap: 10px !important;
        align-items: center !important;
    }

    .vehicle-bar h5,
    .vehicle-bar h6 {
        text-align: center !important;
        white-space: normal !important;
    }

    .vehicle-bar form {
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 8px !important;
    }

    .vehicle-bar select,
    .vehicle-bar input[type="text"],
    .vehicle-bar input[type="search"] {
        width: 48% !important;
        min-width: unset !important;
    }

    .vehicle-bar button,
    .vehicle-bar input[type="submit"],
    .vehicle-bar .button,
    .vehicle-bar .btn {
        width: 100% !important;
    }
}
/* PRODUCT GRID CONSISTENCY */
.woocommerce ul.products li.product {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Make content stretch evenly */
.woocommerce ul.products li.product .woocommerce-loop-product__title {
    min-height: 60px;
}

/* Push price + buttons to bottom */
.woocommerce ul.products li.product .price {
    margin-top: auto;
}
/* PRODUCT TITLE CONTROL */
.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-size: 15px;
    line-height: 1.4;
    font-weight: 600;
    margin-bottom: 6px;

    display: -webkit-box;
    -webkit-line-clamp: 2;   /* limit to 2 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
}
/* PRODUCT PRICE IMPROVEMENT */
.woocommerce ul.products li.product .price {
    font-size: 18px;
    font-weight: 700;
    color: #111;
    margin-top: 8px;
    margin-bottom: 12px;
}

/* "From" styling (M-Line) */
.woocommerce ul.products li.product .price .from {
    font-size: 13px;
    font-weight: 500;
    color: #777;
}
/* BUTTON ALIGNMENT */
.woocommerce ul.products li.product .button,
.woocommerce ul.products li.product .add_to_cart_button {
    margin-top: 10px;
}