/* ── Vehicle Filter Widget ── */
.vf-wrap {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    max-width: 480px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,.08);
}

.vf-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    border-bottom: 1px solid #e0e0e0;
    cursor: pointer;
    user-select: none;
}

.vf-title {
    font-weight: 700;
    font-size: 16px;
    color: #111;
}

.vf-toggle {
    font-size: 18px;
    color: #555;
    transition: transform .25s;
}

.vf-wrap.collapsed .vf-toggle {
    transform: rotate(180deg);
}

.vf-body {
    padding: 14px 18px 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: max-height .3s ease;
}

.vf-wrap.collapsed .vf-body {
    display: none;
}

/* Dropdowns */
.vf-select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #d0d0d0;
    border-radius: 4px;
    font-size: 14px;
    color: #888;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23666' d='M1 1l5 5 5-5'/%3E%3C/svg%3E") no-repeat right 14px center;
    background-size: 10px;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    transition: border-color .2s;
}

.vf-select:focus {
    outline: none;
    border-color: #999;
}

.vf-select:disabled {
    background-color: #f5f5f5;
    color: #bbb;
    cursor: not-allowed;
}

.vf-select:not(:disabled) {
    color: #333;
}

/* Button */
.vf-btn {
    width: 100%;
    padding: 12px;
    background: #b0b0b0;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: not-allowed;
    transition: background .2s;
    letter-spacing: .3px;
    margin-top: 4px;
}

.vf-btn:not(:disabled) {
    background: #222;
    cursor: pointer;
}

.vf-btn:not(:disabled):hover {
    background: #000;
}

.vf-btn.loading {
    background: #555;
    cursor: wait;
}

/* ── Results Section ── */
.vf-results {
    max-width: 480px;
    margin-top: 20px;
}

.vf-results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    font-size: 14px;
    color: #555;
    font-weight: 500;
}

.vf-results-clear {
    cursor: pointer;
    color: #c0392b;
    font-size: 13px;
}

.vf-results-clear:hover {
    text-decoration: underline;
}

/* Product Grid */
.vf-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 14px;
}

.vf-product-card {
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    background: #fff;
    transition: box-shadow .2s, transform .2s;
    display: block;
}

.vf-product-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,.12);
    transform: translateY(-2px);
}

.vf-product-card img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    display: block;
}

.vf-product-info {
    padding: 10px;
}

.vf-product-title {
    font-size: 13px;
    font-weight: 600;
    color: #222;
    margin-bottom: 4px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.vf-product-price {
    font-size: 13px;
    color: #444;
}

.vf-product-price ins {
    text-decoration: none;
    color: #c0392b;
    font-weight: 700;
}

/* No results */
.vf-no-results {
    text-align: center;
    padding: 30px;
    color: #888;
    font-size: 14px;
}

/* Loading spinner */
.vf-spinner {
    text-align: center;
    padding: 30px;
    color: #aaa;
    font-size: 13px;
}

/* ── Active Filter Banner on Shop Page ── */
.vf-active-filter {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f5f5f5;
    border-left: 4px solid #222;
    padding: 12px 16px;
    margin-bottom: 20px;
    font-size: 14px;
    border-radius: 4px;
}

.vf-active-filter strong {
    color: #111;
}

.vf-clear-btn {
    color: #c0392b;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
}

.vf-clear-btn:hover {
    text-decoration: underline;
}
