.vff-filter-form {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: flex-end;
    margin: 16px 0;
}
.vff-field {
    display: flex;
    flex-direction: column;
    min-width: 180px;
    flex: 1 1 180px;
}
.vff-field label {
    font-weight: 600;
    margin-bottom: 4px;
}
.vff-select {
    width: 100%;
    min-height: 42px;
}
.vff-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}
.vff-submit {
    min-height: 42px;
    padding: 0 18px;
    cursor: pointer;
}
.vff-submit:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}
.vff-reset {
    text-decoration: underline;
}
.vff-result-notice {
    margin-bottom: 16px;
}
@media (max-width: 640px) {
    .vff-filter-form,
    .vff-actions {
        display: block;
    }
    .vff-field,
    .vff-actions {
        margin-bottom: 10px;
    }
    .vff-submit {
        width: 100%;
    }
}

.vff-vehicle-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: flex-end;
    margin: 10px 0;
}
.vff-vehicle-row p {
    margin: 0 0 8px;
}
.vff-vehicle-row select {
    min-width: 220px;
}
.vff-repeatable-row {
    padding: 10px;
    border: 1px solid #ccd0d4;
    background: #fff;
    max-width: 980px;
}
@media (max-width: 782px) {
    .vff-vehicle-row {
        display: block;
    }
    .vff-vehicle-row select {
        width: 100%;
        min-width: 0;
    }
}

/* Category result gateway */
.vff-category-results {
    margin: 24px 0;
}
.vff-result-summary {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 20px 22px;
    margin-bottom: 18px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}
.vff-result-summary h2 {
    margin-top: 0;
    margin-bottom: 8px;
}
.vff-result-summary p {
    margin: 4px 0;
}
.vff-category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}
.vff-category-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 120px;
    padding: 18px;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    background: #fff;
    color: inherit;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
    transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.vff-category-card:hover,
.vff-category-card:focus {
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.12);
    border-color: #2271b1;
    text-decoration: none;
}
.vff-category-name {
    font-size: 18px;
    line-height: 1.25;
    font-weight: 700;
}
.vff-category-count {
    color: #64748b;
    font-size: 13px;
}
.vff-category-cta {
    margin-top: auto;
    font-weight: 700;
    color: #2271b1;
}

/* Professional admin interface */
.toplevel_page_vff-dashboard #wpcontent,
.vehicle-fitment_page_vff-import-vehicles #wpcontent,
.vehicle-fitment_page_vff-manage-vehicles #wpcontent,
.vehicle-fitment_page_vff-import-fitments #wpcontent,
.vehicle-fitment_page_vff-filtering-options #wpcontent,
.vehicle-fitment_page_vff-usage #wpcontent,
.vehicle-fitment_page_vff-reset #wpcontent {
    background: #f5f7fb;
}
.toplevel_page_vff-dashboard .wrap,
.vehicle-fitment_page_vff-import-vehicles .wrap,
.vehicle-fitment_page_vff-manage-vehicles .wrap,
.vehicle-fitment_page_vff-import-fitments .wrap,
.vehicle-fitment_page_vff-filtering-options .wrap,
.vehicle-fitment_page_vff-usage .wrap,
.vehicle-fitment_page_vff-reset .wrap {
    max-width: 1180px;
}
.toplevel_page_vff-dashboard .wrap h1,
.vehicle-fitment_page_vff-import-vehicles .wrap h1,
.vehicle-fitment_page_vff-manage-vehicles .wrap h1,
.vehicle-fitment_page_vff-import-fitments .wrap h1,
.vehicle-fitment_page_vff-filtering-options .wrap h1,
.vehicle-fitment_page_vff-usage .wrap h1,
.vehicle-fitment_page_vff-reset .wrap h1 {
    font-size: 30px;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin: 28px 0 18px;
    color: #111827;
}
.vff-hero,
.vff-card,
.toplevel_page_vff-dashboard .widefat,
.vehicle-fitment_page_vff-import-vehicles form,
.vehicle-fitment_page_vff-import-fitments form,
.vehicle-fitment_page_vff-reset form {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 22px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}
.vff-hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
    color: #fff;
    border: 0;
}
.vff-hero h2,
.vff-hero p {
    color: #fff;
}
.vff-hero h2 {
    margin: 0 0 8px;
    font-size: 24px;
}
.vff-card {
    margin: 18px 0;
}
.vff-card h2 {
    margin-top: 0;
    font-size: 20px;
    color: #111827;
}
.vff-grid {
    display: grid;
    gap: 18px;
}
.vff-grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.vff-radio-card {
    display: block;
    max-width: 820px;
    margin: 0 0 12px;
    padding: 16px 18px;
    border: 1px solid #d7dce3;
    border-radius: 14px;
    background: #f8fafc;
}
.vff-radio-card input {
    margin-right: 8px;
}
.vff-radio-card span {
    display: block;
    margin: 6px 0 0 26px;
    color: #475569;
}
.vehicle-fitment_page_vff-manage-vehicles .nav-tab-wrapper {
    border-bottom: 0;
    margin-bottom: 18px;
}
.vehicle-fitment_page_vff-manage-vehicles .nav-tab {
    border: 1px solid #d7dce3;
    border-radius: 999px;
    background: #fff;
    margin-right: 8px;
    padding: 8px 18px;
}
.vehicle-fitment_page_vff-manage-vehicles .nav-tab-active {
    background: #2271b1;
    color: #fff;
    border-color: #2271b1;
}
.vff-vehicle-row,
.vff-repeatable-row {
    border-radius: 12px;
}
.toplevel_page_vff-dashboard .button-primary,
.vehicle-fitment_page_vff-import-vehicles .button-primary,
.vehicle-fitment_page_vff-import-fitments .button-primary,
.vehicle-fitment_page_vff-filtering-options .button-primary,
.vehicle-fitment_page_vff-reset .button-primary {
    border-radius: 8px;
    font-weight: 700;
}
@media (max-width: 900px) {
    .vff-grid-2 {
        grid-template-columns: 1fr;
    }
}

/* v1.4.0 frontend vehicle shop shortcodes */
.vff-shop-page {
    --vff-primary: #0f4c81;
    --vff-primary-dark: #0b3458;
    --vff-border: #e5e7eb;
    --vff-muted: #64748b;
    --vff-card-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
    margin: 24px 0;
}
.vff-shop-heading h2 {
    font-size: clamp(26px, 4vw, 42px);
    line-height: 1.12;
    margin: 0 0 18px;
    letter-spacing: -0.035em;
}
.vff-filter-form-pro {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid var(--vff-border, #e5e7eb);
    border-radius: 22px;
    padding: 22px;
    box-shadow: var(--vff-card-shadow, 0 14px 34px rgba(15, 23, 42, 0.08));
}
.vff-filter-form-pro .vff-field label {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #334155;
}
.vff-filter-form-pro .vff-select {
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    min-height: 48px;
    padding: 0 12px;
    background: #fff;
}
.vff-filter-form-pro .vff-submit {
    border: 0;
    border-radius: 12px;
    min-height: 48px;
    padding: 0 24px;
    background: var(--vff-primary, #0f4c81);
    color: #fff;
    font-weight: 800;
    box-shadow: 0 10px 20px rgba(15, 76, 129, 0.22);
}
.vff-filter-form-pro .vff-submit:hover,
.vff-filter-form-pro .vff-submit:focus {
    background: var(--vff-primary-dark, #0b3458);
    color: #fff;
}
.vff-shop-results {
    margin-top: 24px;
}
.vff-shop-summary {
    border-radius: 22px;
    background: #0f172a;
    color: #fff;
    border: 0;
}
.vff-shop-summary h2,
.vff-shop-summary p {
    color: #fff;
}
.vff-section {
    margin: 24px 0;
}
.vff-section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin: 0 0 16px;
}
.vff-section-heading h3 {
    font-size: clamp(22px, 3vw, 32px);
    line-height: 1.15;
    margin: 0;
    letter-spacing: -0.025em;
}
.vff-section-heading p {
    margin: 0;
    color: var(--vff-muted, #64748b);
}
.vff-shop-category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 18px;
}
.vff-shop-category-card {
    display: block;
    overflow: hidden;
    border-radius: 22px;
    border: 1px solid var(--vff-border, #e5e7eb);
    background: #fff;
    color: inherit;
    text-decoration: none !important;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.vff-shop-category-card:hover,
.vff-shop-category-card:focus {
    transform: translateY(-3px);
    border-color: var(--vff-primary, #0f4c81);
    box-shadow: var(--vff-card-shadow, 0 14px 34px rgba(15, 23, 42, 0.08));
    color: inherit;
}
.vff-shop-category-image {
    display: block;
    position: relative;
    aspect-ratio: 4 / 3;
    background: #f1f5f9;
}
.vff-shop-category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.vff-category-placeholder {
    display: block;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e2e8f0 0%, #f8fafc 100%);
}
.vff-shop-category-body {
    display: grid;
    gap: 7px;
    padding: 16px;
}
.vff-shop-category-title {
    font-size: 18px;
    font-weight: 800;
    line-height: 1.25;
    color: #0f172a;
}
.vff-shop-category-count {
    color: var(--vff-muted, #64748b);
    font-size: 14px;
}
.vff-shop-category-link {
    margin-top: 4px;
    color: var(--vff-primary, #0f4c81);
    font-weight: 800;
}
.vff-empty-state {
    padding: 24px;
    border: 1px dashed #cbd5e1;
    border-radius: 18px;
    background: #f8fafc;
    margin: 18px 0;
}
.vff-empty-state h3 {
    margin: 0 0 6px;
}
.vff-empty-state p {
    margin: 0;
    color: #64748b;
}
.vff-shop-products .products {
    margin-top: 0;
}
.vff-fallback-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 18px;
}
.vff-fallback-product-card {
    display: grid;
    gap: 10px;
    padding: 14px;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    text-decoration: none !important;
    background: #fff;
    color: inherit;
}
.vff-fallback-product-card img {
    width: 100%;
    height: auto;
    border-radius: 12px;
}
@media (max-width: 768px) {
    .vff-filter-form-pro {
        padding: 16px;
        border-radius: 18px;
    }
    .vff-section-heading {
        display: block;
    }
    .vff-section-heading p {
        margin-top: 6px;
    }
    .vff-shop-category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }
    .vff-shop-category-body {
        padding: 12px;
    }
    .vff-shop-category-title {
        font-size: 15px;
    }
    .vff-shop-category-count,
    .vff-shop-category-link {
        font-size: 13px;
    }
}
@media (max-width: 420px) {
    .vff-shop-category-grid {
        grid-template-columns: 1fr;
    }
}

/* v1.4.2 self-contained shortcode shop */
.vff-shortcode-shop {
    --vff-border: #e5e7eb;
    --vff-muted: #64748b;
    --vff-ink: #0f172a;
    --vff-accent: #2563eb;
    --vff-soft: #f8fafc;
}
.vff-shortcode-shop .vff-filter-form-pro {
    background: linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
    border: 1px solid var(--vff-border);
    border-radius: 18px;
    padding: 18px;
    box-shadow: 0 14px 35px rgba(15, 23, 42, 0.08);
}
.vff-shortcode-shop .vff-field label {
    color: var(--vff-ink);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.vff-shortcode-shop .vff-select {
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    padding: 0 12px;
    background: #fff;
}
.vff-shortcode-shop .vff-submit {
    border: 0;
    border-radius: 12px;
    background: var(--vff-accent);
    color: #fff;
    font-weight: 800;
    padding: 0 22px;
    box-shadow: 0 10px 20px rgba(37, 99, 235, .2);
}
.vff-shortcode-shop .vff-reset {
    color: var(--vff-muted);
    font-weight: 700;
}
.vff-category-trail {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin: 18px 0 8px;
    padding: 12px 14px;
    background: #fff;
    border: 1px solid var(--vff-border, #e5e7eb);
    border-radius: 14px;
    box-shadow: 0 8px 22px rgba(15, 23, 42, .05);
    font-size: 14px;
}
.vff-category-trail a {
    color: var(--vff-accent, #2563eb);
    text-decoration: none;
    font-weight: 800;
}
.vff-category-trail a:hover {
    text-decoration: underline;
}
.vff-category-trail span:last-child {
    color: var(--vff-ink, #0f172a);
    font-weight: 800;
}
.vff-trail-separator {
    color: #94a3b8;
}
.vff-shop-category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 18px;
}
.vff-shop-category-card {
    overflow: hidden;
    min-height: 100%;
    border-radius: 18px;
    border: 1px solid var(--vff-border, #e5e7eb);
    background: #fff;
    box-shadow: 0 14px 34px rgba(15, 23, 42, .08);
}
.vff-shop-category-image {
    display: block;
    aspect-ratio: 4 / 3;
    background: #f1f5f9;
    overflow: hidden;
}
.vff-shop-category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .22s ease;
}
.vff-shop-category-card:hover .vff-shop-category-image img {
    transform: scale(1.04);
}
.vff-shop-category-body {
    padding: 16px;
}
.vff-shop-category-title {
    color: var(--vff-ink, #0f172a);
    font-size: 17px;
}
.vff-shop-category-count {
    margin-top: 7px;
}
.vff-shop-category-link {
    display: inline-flex;
    align-items: center;
    margin-top: 14px;
    padding: 8px 12px;
    border-radius: 999px;
    background: #eff6ff;
    color: var(--vff-accent, #2563eb);
    font-size: 13px;
    font-weight: 900;
}
.vff-shop-products ul.products {
    margin-top: 0;
}
@media (max-width: 700px) {
    .vff-shortcode-shop .vff-filter-form-pro {
        padding: 14px;
    }
    .vff-shop-category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }
    .vff-shop-category-body {
        padding: 12px;
    }
    .vff-shop-category-title {
        font-size: 14px;
    }
    .vff-shop-category-count,
    .vff-shop-category-link {
        font-size: 12px;
    }
}
@media (max-width: 420px) {
    .vff-shop-category-grid {
        grid-template-columns: 1fr;
    }
}

/* My Garage */
.vff-garage-pro,
.vff-garage-logged-out {
    background: #ffffff;
    border: 1px solid #e7ebf0;
    border-radius: 22px;
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
    padding: 28px;
    margin: 24px 0;
}
.vff-garage-header,
.vff-garage-hero {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: center;
    margin-bottom: 22px;
}
.vff-garage-hero { align-items: flex-start; flex-direction: column; }
.vff-garage-kicker {
    display: inline-block;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #64748b;
    margin-bottom: 6px;
}
.vff-garage-header h2,
.vff-garage-hero h2 {
    margin: 0 0 8px;
    font-size: clamp(24px, 3vw, 34px);
    line-height: 1.1;
}
.vff-garage-header p,
.vff-garage-hero p {
    margin: 0;
    color: #64748b;
    max-width: 720px;
}
.vff-garage-add-toggle,
.vff-garage-primary,
.vff-garage-secondary,
.vff-garage-danger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 16px;
    border-radius: 999px;
    font-weight: 800;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    white-space: nowrap;
}
.vff-garage-add-toggle,
.vff-garage-primary {
    background: #111827;
    color: #ffffff;
}
.vff-garage-add-toggle:hover,
.vff-garage-primary:hover { color: #ffffff; opacity: .92; }
.vff-garage-secondary { background: #f8fafc; color: #0f172a; border-color: #e2e8f0; }
.vff-garage-danger { background: #fff1f2; color: #be123c; border-color: #ffe4e6; }
.vff-garage-add-form {
    background: linear-gradient(135deg, #f8fafc 0%, #eef2ff 100%);
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 18px;
    margin: 18px 0 24px;
}
.vff-garage-form-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    align-items: end;
}
.vff-garage-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}
.vff-garage-card {
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 18px;
    background: #ffffff;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.vff-garage-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 35px rgba(15, 23, 42, .09);
}
.vff-garage-card.is-active {
    border-color: #111827;
    box-shadow: 0 16px 35px rgba(15, 23, 42, .12);
}
.vff-garage-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}
.vff-garage-icon {
    display: inline-flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: #f1f5f9;
    font-size: 22px;
}
.vff-garage-active-badge {
    padding: 6px 10px;
    border-radius: 999px;
    background: #dcfce7;
    color: #166534;
    font-size: 12px;
    font-weight: 800;
}
.vff-garage-card h3 { margin: 0 0 6px; font-size: 22px; }
.vff-garage-model { margin: 0 0 4px; font-weight: 700; color: #334155; }
.vff-garage-engine { margin: 0; color: #64748b; }
.vff-garage-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}
.vff-garage-notice {
    border-radius: 14px;
    background: #ecfdf5;
    border: 1px solid #bbf7d0;
    color: #166534;
    padding: 12px 14px;
    margin-bottom: 16px;
    font-weight: 700;
}
@media (max-width: 900px) {
    .vff-garage-form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .vff-garage-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
    .vff-garage-pro, .vff-garage-logged-out { padding: 18px; border-radius: 18px; }
    .vff-garage-header { align-items: stretch; flex-direction: column; }
    .vff-garage-form-grid,
    .vff-garage-grid { grid-template-columns: 1fr; }
    .vff-garage-card-actions a { width: 100%; }
}
