/**
 * Mechano Vehicle Search Styles
 * Multi-page search flow with vehicle history
 *
 * @package    Mechano_Catalog
 * @since      1.4.0
 */

/* ============================================
   COMMON STYLES
   ============================================ */

body .mechano-error {
    background: #fee;
    border: 1px solid #fcc;
    padding: 20px;
    border-radius: 8px;
    color: #c33;
    text-align: center;
    margin: 20px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    grid-column: 1 / -1;
}

body .mechano-error a {
    color: var(--e-global-color-primary, var(--e-global-color-primary, #0073aa));
    text-decoration: underline;
}

body .mechano-loading {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    font-size: 14px;
    margin-top: 8px;
}

body .mechano-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid var(--e-global-color-primary, #0073aa);
    border-radius: 50%;
    animation: mechano-spin 0.8s linear infinite;
}

body .mechano-spinner-large {
    width: 48px;
    height: 48px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--e-global-color-primary, #0073aa);
    border-radius: 50%;
    animation: mechano-spin 1s linear infinite;
}

@keyframes mechano-spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* ============================================
   PAGE 1: VEHICLE SEARCH (HOME)
   ============================================ */

body .mechano-vehicle-search-wrapper {
    max-width: 600px;
    margin: 0 auto;
}

body .mechano-vehicle-search-container {
    background-color: var(--e-global-color-primary, #000045);
    /* Deep Blue from screenshot */
    padding: 30px;
    color: #fff;
    /* Clean sharp edges or minimal radius depending on preference. Screenshot looks sharp/box-like. */
    min-height: 660px;
    display: flex;
    flex-direction: column;
}

body .mechano-search-header {
    text-align: center;
    margin-bottom: 30px;
}

body .mechano-search-title {
    font-size: 24px;
    /* Reduced from 28px */
    font-weight: 700;
    /* Reduced from 800 */
    color: #fff;
    margin: 0;
    text-transform: uppercase;
    font-family: 'Oswald', 'Roboto Condensed', sans-serif;
    /* Condensed font suggestion */
    letter-spacing: 1px;
}

/* Form Groups & Steps */
body .mechano-form-group {
    margin-bottom: 24px;
}

body .mechano-input-wrapper {
    display: flex;
    align-items: center;
    background: #fff;
    padding: 10px 15px;
    border-radius: 4px;
    height: 60px;
    min-width: 450px;
    /* Specific height for consistency */
}

body .mechano-step-number {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border: 2px solid var(--e-global-color-primary, #000045);
    color: var(--e-global-color-primary, #000045);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
}

body .mechano-select-container {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
}

body .mechano-select {
    width: 100%;
    border: none;
    background: transparent;
    font-size: 16px;
    font-weight: 600;
    /* Bold text */
    color: #000;
    padding: 0;
    margin: 0;
    cursor: pointer;
    text-transform: uppercase;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    outline: none !important;
    text-align: center;
    /* Try to center text */
    text-align-last: center;
    /* For better browser support */
}

body .mechano-select:focus {
    box-shadow: none;
    outline: none;
    border: none;
}

/* Custom Arrow */
body .mechano-select-arrow {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    border-right: 2px solid var(--e-global-color-accent, #0088ff);
    /* Bright blue arrow */
    border-bottom: 2px solid var(--e-global-color-accent, #0088ff);
    transform: translateY(-60%) rotate(45deg);
    pointer-events: none;
}

/* Submit Button */
body .mechano-form-actions {
    margin-top: 20px;
    margin-bottom: auto;
}

body .mechano-search-button {
    width: 100% !important;
    padding: 16px 24px !important;
    /* Reduced padding */
    font-size: 20px !important;
    /* Reduced from 24px */
    font-weight: 700 !important;
    /* Slightly reduced weight */
    color: #fff !important;
    background: var(--e-global-color-accent, var(--e-global-color-accent, #0088ff)) !important;
    /* Bright Blue */
    border: none !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    text-transform: uppercase;
    font-family: 'Oswald', 'Roboto Condensed', sans-serif;
    transition: background 0.3s !important;
    box-shadow: none !important;
}

body .mechano-search-button:hover:not(:disabled) {
    background: var(--e-global-color-accent, #0066cc) !important;
}

body .mechano-search-button:disabled {
    background: var(--e-global-color-accent, var(--e-global-color-accent, #0088ff)) !important;
    /* Keep same color but dim it */
    opacity: 0.6;
    cursor: not-allowed !important;
}

body .mechano-button-text {
    line-height: 1;
}

/* Loading States */
body .mechano-loading {
    color: #fff;
    /* White text on dark bg */
    justify-content: center;
    margin-top: 5px;
}

/* ============================================
   VEHICLE HISTORY (COMPACT & EMBEDDED)
   ============================================ */

body .mechano-vehicle-history {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

body .mechano-history-header-compact {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

body .mechano-clear-link {
    cursor: pointer;
    text-decoration: underline;
    font-size: 11px;
    opacity: 0.8;
    transition: opacity 0.3s;
}

body .mechano-clear-link:hover {
    opacity: 1;
}

body .mechano-history-list-compact {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

body .mechano-history-item-compact {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.1);
    /* Semi-transparent white */
    padding: 12px 16px;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.1);
    gap: 12px;
    /* Add gap for logo */
}

body .mechano-history-item-compact:hover {
    background: #fff;
    transform: translateX(4px);
    border-color: #fff;
}

/* Placeholder Styling */
body .mechano-history-placeholder {
    text-align: center;
    color: rgba(255, 255, 255, 0.4);
    padding: 30px 20px;
    border: 2px dashed rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    font-size: 14px;
    font-style: italic;
    background: rgba(0, 0, 0, 0.1);
}

/* Logo Styling */
body .mechano-history-logo-compact {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    /* White bg for logo clarity */
    border-radius: 50%;
    /* Circle */
    padding: 4px;
}

body .mechano-history-logo-compact img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Text Styling */
body .mechano-history-text {
    flex: 1;
    font-size: 14px;
    color: #fff;
    /* White text initially */
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

body .mechano-history-item-compact:hover .mechano-history-text,
body .mechano-history-item-compact:hover .mechano-history-text strong,
body .mechano-history-item-compact:hover .mechano-history-engine-text {
    color: #000045;
    /* Dark text on hover */
}

body .mechano-history-text strong {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 14px;
}

body .mechano-history-engine-text {
    font-size: 13px;
    opacity: 0.9;
}

/* Arrow Styling */
body .mechano-history-arrow-compact {
    width: 6px;
    height: 6px;
    border-right: 2px solid rgba(255, 255, 255, 0.5);
    border-top: 2px solid rgba(255, 255, 255, 0.5);
    transform: rotate(45deg);
    margin-left: auto;
    /* Push to right */
    transition: border-color 0.3s;
}

body .mechano-history-item-compact:hover .mechano-history-arrow-compact {
    border-color: var(--e-global-color-accent, var(--e-global-color-accent, #0088ff));
    /* Bright blue arrow on hover */
}

/* Mobile Responsiveness */
@media (max-width: 480px) {
    body .mechano-history-item-compact {
        padding: 10px 12px;
    }

    body .mechano-history-text {
        font-size: 13px;
    }

    body .mechano-input-wrapper {
        min-width: auto;
        width: 100%;
    }
}

/* ============================================
   PAGE 2: CATEGORIES
   ============================================ */

/* .mechano-categories-page-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
} */

/* Breadcrumbs */
body .mechano-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

body .mechano-breadcrumb-item {
    color: var(--e-global-color-primary, var(--e-global-color-primary, #0073aa)) !important;
    text-decoration: none;
    transition: color 0.3s;
}

body .mechano-breadcrumb-item:hover {
    color: var(--e-global-color-primary, var(--e-global-color-primary, #005a87));
    text-decoration: underline;
}

body .mechano-breadcrumb-separator {
    color: #ccc;
}

body .mechano-breadcrumb-current {
    color: #333;
    font-weight: 600;
    text-transform: capitalize;
}

/* Vehicle Banner */
body .mechano-vehicle-banner {
    background: linear-gradient(135deg, #fff -75%, #006FD4 100%);
    color: #fff;
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    box-shadow: 0 4px 12px rgba(0, 115, 170, 0.3);
}

body .mechano-vehicle-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

body .mechano-vehicle-icon {
    font-size: 36px;
}

body .mechano-vehicle-logo {
    width: 54px;
    height: 54px;
    object-fit: contain;
    display: block;
}

body .mechano-vehicle-details strong {
    display: block;
    font-size: 20px;
    margin-bottom: 4px;
}

body .mechano-vehicle-engine {
    font-size: 14px;
    opacity: 0.9;
}

body .mechano-change-vehicle {
    background: rgba(255, 255, 255, 0.2);
    color: #fff !important;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

body .mechano-change-vehicle:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Categories Header */
body .mechano-categories-header {
    margin-bottom: 30px;
}

body .mechano-categories-title {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
    text-align: center;
    text-transform: uppercase;
}

/* Categories Grid */

body .mechano-categories-loading {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    gap: 20px;
}

body .mechano-category-card {
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s;
    cursor: pointer;
    position: relative;
}

body .mechano-category-card:hover {
    border-color: var(--e-global-color-primary, var(--e-global-color-primary, #0073aa));
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

body .mechano-category-card.active {
    border-color: var(--e-global-color-primary, var(--e-global-color-primary, #0073aa));
    background: #f0f8ff;
}

body .mechano-category-image {
    width: 100%;
    height: 150px;
    overflow: hidden;
    background: #f9f9f9;
    display: flex;
    align-items: center;
    justify-content: center;
}

body .mechano-category-image img {
    max-width: 100%;
    height: 100% !important;
    object-fit: cover;
}

body .mechano-category-no-image {
    font-size: 64px;
    color: #ccc;
}

body .mechano-category-info {
    padding: 12px;
    text-align: center;
    text-transform: capitalize;
}

body .mechano-category-info h5 {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Subcategories container (inside card) */
body .mechano-subcategories-container {
    border-top: 2px solid #e0e0e0;
    background: #fafafa;
    padding: 0;
}

body .mechano-subcategories-list {
    padding: 12px;
}

body .mechano-subcategory-item-wrapper {
    margin-bottom: 8px;
}

body .mechano-subcategory-item {
    padding: 12px 16px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 12px;
    text-transform: capitalize;
}

body .mechano-subcategory-item:hover {
    border-color: var(--e-global-color-primary, var(--e-global-color-primary, #0073aa));
    background: #f0f8ff;
}

body .mechano-subcategory-item.active {
    border-color: var(--e-global-color-primary, var(--e-global-color-primary, #0073aa));
    background: #e6f3ff;
    font-weight: 600;
}

body .mechano-subcat-icon {
    font-size: 14px;
    color: var(--e-global-color-primary, var(--e-global-color-primary, #0073aa));
    flex-shrink: 0;
}

body .mechano-subcat-name {
    flex: 1;
    font-size: 14px;
    color: #333;
}

body .mechano-subcat-count {
    font-size: 12px;
    color: #666;
    background: #f0f0f0;
    padding: 2px 8px;
    border-radius: 10px;
}

/* Nested subcategories (3rd level) */
body .mechano-nested-subcategories {
    margin-left: 20px;
    margin-top: 8px;
}

body .mechano-nested-subcategories-list {
    padding: 8px 0;
}

body .mechano-nested-subcat-item {
    padding: 8px 12px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    text-transform: capitalize;
}

body .mechano-nested-subcat-item:hover {
    border-color: var(--e-global-color-primary, var(--e-global-color-primary, #0073aa));
    background: #f0f8ff;
    transform: translateX(4px);
}

body .mechano-nested-icon {
    font-size: 12px;
    color: var(--e-global-color-primary, var(--e-global-color-primary, #0073aa));
}

body .mechano-nested-name {
    font-size: 13px;
    color: #444;
}

/* Loading states */
body .mechano-loading-subcats,
body .mechano-loading-nested {
    padding: 12px;
    text-align: center;
    font-size: 13px;
    color: #666;
}

body .mechano-no-subcats,
body .mechano-no-nested {
    padding: 12px;
    text-align: center;
    font-size: 13px;
    color: #999;
}

body .mechano-error-subcats,
body .mechano-error-nested {
    padding: 12px;
    text-align: center;
    font-size: 13px;
    color: #c33;
}

/* Subcategories */
body .mechano-subcategories-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

body .mechano-subcategories-header h3 {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
}

body .mechano-back-button {
    padding: 10px 20px;
    background: #f5f5f5;
    color: #333;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

body .mechano-back-button:hover {
    background: #e8e8e8;
}

body .mechano-subcategories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

body .mechano-subcategory-card {
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    text-decoration: none;
    transition: all 0.3s;
}

body .mechano-subcategory-card:hover {
    border-color: var(--e-global-color-primary, var(--e-global-color-primary, #0073aa));
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateX(4px);
}

body .mechano-subcategory-icon {
    font-size: 32px;
    flex-shrink: 0;
}

body .mechano-subcategory-name {
    flex: 1;
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
}

body .mechano-subcategory-arrow {
    font-size: 20px;
    color: var(--e-global-color-primary, var(--e-global-color-primary, #0073aa));
    flex-shrink: 0;
}

/* ============================================
   PAGE 3: PRODUCTS
   ============================================ */

/* .mechano-products-page-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
} */

body .mechano-products-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e0e0e0;
}

body .mechano-products-title-section {
    flex: 1;
}

/* Mobile: Stack title and button vertically */
@media (max-width: 768px) {
    body .mechano-products-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    body .mechano-products-title-section {
        width: 100%;
        flex: none;
    }

    body .mechano-change-vehicle-link {
        width: 100%;
        text-align: center;
        display: block;
    }
}

body .mechano-products-title {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 8px;
    text-transform: capitalize;
}

body .mechano-products-subtitle {
    font-size: 16px;
    color: #666;
    margin: 0;
}

body .mechano-change-vehicle-link {
    padding: 10px 20px;
    background: #f5f5f5;
    color: #333;
    border: 1px solid #ddd;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    white-space: nowrap;
}

body .mechano-change-vehicle-link:hover {
    background: #e8e8e8;
}

/* Products Grid */
/* Products Layout with Sidebar */
body .mechano-products-layout {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

/* Products Sidebar */
body .mechano-products-sidebar {
    flex: 0 0 280px;
    background: transparent;
    border: none;
    padding: 0;
    position: sticky;
    top: 20px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
}

/* =========================================
   SIDEBAR FILTER STYLES (Unique Classes)
   ========================================= */

/* Accordion Item */
.mechano-sidebar-accordion-item {
    margin-bottom: 15px;
    background: #fff;
    border: none;
}

/* Header - Closed */
.mechano-sidebar-accordion-header {
    background: #fff;
    border: 1px solid var(--e-global-color-accent, #2196f3);
    color: #1a1a1a;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s;
    min-height: auto;
}

.mechano-sidebar-accordion-header:hover {
    background: #f9f9f9;
}

/* Header - Open */
.mechano-sidebar-accordion-item.open .mechano-sidebar-accordion-header {
    background: var(--e-global-color-primary, #001e50) !important;
    border-color: var(--e-global-color-primary, #001e50);
    color: #fff !important;
}

.mechano-sidebar-accordion-title {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    margin: 0;
    color: inherit;
    letter-spacing: 0.5px;
}

/* Icon (Chevron) */
.mechano-sidebar-accordion-icon {
    width: 10px;
    height: 10px;
    border-right: 2px solid var(--e-global-color-accent, #2196f3);
    border-bottom: 2px solid var(--e-global-color-accent, #2196f3);
    transform: rotate(45deg);
    transition: transform 0.3s, border-color 0.3s;
    display: inline-block;
    margin-top: -4px;
}

.mechano-sidebar-accordion-item.open .mechano-sidebar-accordion-icon {
    transform: rotate(225deg) translate(-2px, -2px);
    border-color: #fff;
}

/* Content */
.mechano-sidebar-accordion-content {
    background: #f4f4f4;
    padding: 20px;
    display: block;
}

.mechano-sidebar-accordion-content::-webkit-scrollbar {
    width: 10px;
}

.mechano-sidebar-accordion-content::-webkit-scrollbar-track {
    background: #e0e0e0;
    border-radius: 4px;
}

.mechano-sidebar-accordion-content::-webkit-scrollbar-thumb {
    background-color: var(--e-global-color-accent, #2196f3) !important;
    border-radius: 4px;
    border: none;
}

.mechano-sidebar-accordion-content::-webkit-scrollbar-thumb:hover {
    background-color: var(--e-global-color-accent, #1976d2) !important;
}

/* =========================================
   GLOBAL ACCORDION STYLES (Restored for Catalogue Grid)
   ========================================= */

body .mechano-accordion-item {
    margin-bottom: 20px;
    background: #fff;
    border: 1px solid #ddd;
}

body .mechano-accordion-header {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    background: #FAFAFA;
    cursor: pointer;
    transition: background 0.3s, color 0.3s;
    user-select: none;
    border-bottom: 1px solid transparent;
    border-top: 2px solid var(--e-global-color-accent, #00adef);
}

body .mechano-accordion-header.active {
    background-color: var(--e-global-color-primary, #000045);
    color: #fff;
    border-bottom: 2px solid var(--e-global-color-accent, #00adef);
}

body .mechano-accordion-icon-wrapper {
    flex: 0 0 50px;
    height: 50px;
    margin-right: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

body .mechano-cat-img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

body .mechano-accordion-header.active .mechano-cat-img {
    filter: invert(1) brightness(100%);
}

body .mechano-accordion-title {
    flex: 1;
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    font-family: 'Oswald', sans-serif;
    letter-spacing: 0.5px;
    color: inherit;
    line-height: 1.2;
}

body .mechano-accordion-arrow {
    width: 12px;
    height: 12px;
    border-top: 2px solid var(--e-global-color-accent, #00adef);
    border-right: 2px solid var(--e-global-color-accent, #00adef);
    transform: rotate(135deg);
    transition: transform 0.3s;
    margin-left: 15px;
}

body .mechano-accordion-header.active .mechano-accordion-arrow {
    transform: rotate(-45deg);
    border-color: #fff;
}

body .mechano-accordion-content {
    background: #f4f4f4;
    padding: 20px;
}

/* Retain the nice scrollbar for global accordions too */
body .mechano-accordion-content::-webkit-scrollbar {
    width: 10px;
}

body .mechano-accordion-content::-webkit-scrollbar-track {
    background: #e0e0e0;
    border-radius: 4px;
}

body .mechano-accordion-content::-webkit-scrollbar-thumb {
    background-color: var(--e-global-color-accent, #2196f3) !important;
    border-radius: 4px;
    border: none;
}

/* Sidebar lists */
body .mechano-suppliers-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 400px;
    overflow-y: auto;
    padding-right: 5px;
}

/* Scrollbar styling for suppliers list */
body .mechano-suppliers-list::-webkit-scrollbar {
    width: 8px;
}

body .mechano-suppliers-list::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 4px;
}

body .mechano-suppliers-list::-webkit-scrollbar-thumb {
    background-color: var(--e-global-color-accent, #2196f3);
    border-radius: 4px;
    border: 1px solid #fff;
}

body .mechano-suppliers-list::-webkit-scrollbar-thumb:hover {
    background-color: var(--e-global-color-accent, #1976d2);
}

/* Custom Checkbox Styling */
body .mechano-supplier-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    user-select: none;
    padding: 0;
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    text-transform: uppercase;
}

body .mechano-supplier-checkbox,
body .mechano-supplier-radio {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid var(--e-global-color-accent, #2196f3);
    /* Light Blue border */
    background: #fff;
    cursor: pointer;
    position: relative;
    border-radius: 0;
    /* Square */
    outline: none;
    flex-shrink: 0;
}

body .mechano-supplier-checkbox:checked,
body .mechano-supplier-radio:checked {
    background: #fff;
    /* Keep white background for checkmark contrast */
    border-color: var(--e-global-color-accent, #2196f3);
    /* Primary border when checked */
}

body .mechano-supplier-checkbox:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--e-global-color-primary, #001e50);
    /* Primary color checkmark */
    font-size: 16px;
    font-weight: 900;
}

/* Radio specific (All Suppliers) */
body .mechano-supplier-radio {
    border-radius: 0;
}

body .mechano-supplier-radio:checked {
    background: var(--e-global-color-primary, #001e50);
    /* Or primary */
}

body .mechano-select-all-item {
    padding-bottom: 15px;
    margin-bottom: 15px;
    border-bottom: 1px solid #ddd;
}

/* Price Inputs inside Accordion */
body .mechano-price-filter-content {
    padding: 0;
}

body .mechano-price-inputs {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

body .mechano-price-input-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

body .mechano-price-label {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    min-width: 40px;
    flex-shrink: 0;

}

body .mechano-price-input {
    flex: 1;
    padding: 10px 12px;
    font-size: 14px;
    border: 1px solid #ddd;
    border-radius: 0;
    background: #fff;
    color: #1a1a1a;
    transition: border-color 0.3s;
    text-align: center;
}

body .mechano-price-input:focus {
    outline: none;
    border-color: var(--e-global-color-primary, var(--e-global-color-primary, #0073aa));
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
}

body .mechano-price-currency {
    font-size: 14px;
    font-weight: 600;
    color: #666;
    flex-shrink: 0;
    min-width: 20px;
}

body .mechano-price-filter-button {
    width: 100% !important;
    padding: 12px 20px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #fff !important;
    text-transform: uppercase;
    background: var(--e-global-color-primary, #0073aa) !important;
    border: none !important;
    border-radius: 0 !important;
    cursor: pointer !important;
    transition: background-color 0.3s !important;
    margin-top: 10px !important;
}

body .mechano-price-filter-button:hover {
    background: var(--e-global-color-accent, #2196f3);
    ;
}

body .mechano-price-filter-button:active {
    transform: translateY(1px);
}

body .mechano-price-filter-button-clear {
    background: #666;
    margin-top: 8px;
}

body .mechano-price-filter-button-clear:hover {
    background: #555;
}

/* Price Range Slider */
body .mechano-price-slider-container {
    position: relative;
    height: 40px;
    margin: 20px 0;
    padding: 0 10px;
}

body .mechano-price-slider {
    position: absolute;
    width: 100%;
    height: 6px;
    background: transparent;
    outline: none;
    -webkit-appearance: none;
    pointer-events: none;
    z-index: 2;
}

body .mechano-price-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--e-global-color-primary, var(--e-global-color-primary, #0073aa));
    cursor: pointer;
    pointer-events: all;
    border: 2px solid #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: background 0.3s;
}

body .mechano-price-slider::-webkit-slider-thumb:hover {
    background: var(--e-global-color-primary, var(--e-global-color-primary, #005a87));
    transform: scale(1.1);
}

body .mechano-price-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--e-global-color-primary, var(--e-global-color-primary, #0073aa));
    cursor: pointer;
    pointer-events: all;
    border: 2px solid #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: background 0.3s;
}

body .mechano-price-slider::-moz-range-thumb:hover {
    background: var(--e-global-color-primary, var(--e-global-color-primary, #005a87));
    transform: scale(1.1);
}

body .mechano-price-slider::-webkit-slider-runnable-track {
    height: 6px;
    background: transparent;
}

body .mechano-price-slider::-moz-range-track {
    height: 6px;
    background: transparent;
}

/* Slider track background */
body .mechano-price-slider-container::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 10px;
    right: 10px;
    height: 6px;
    background: #e0e0e0;
    border-radius: 3px;
    transform: translateY(-50%);
    z-index: 1;
}

/* Active range between sliders */
body .mechano-price-slider-container::after {
    content: '';
    position: absolute;
    top: 50%;
    left: calc(10px + var(--min-percent, 0%));
    right: calc(100% - 10px - var(--max-percent, 100%));
    height: 6px;
    background: var(--e-global-color-primary, var(--e-global-color-primary, #0073aa));
    border-radius: 3px;
    transform: translateY(-50%);
    z-index: 1;
}

body .mechano-price-range-display {
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: var(--e-global-color-primary, var(--e-global-color-primary, #0073aa));
    margin-top: 10px;
    padding: 8px;
    background: #f5f5f5;
    border-radius: 6px;
}

/* Products Content */
body .mechano-products-content {
    flex: 1;
    min-width: 0;
    /* Prevents flex item from overflowing */
}

body .mechano-products-sort {
    display: flex;
    align-items: center;
    justify-content: right;
    gap: 12px;
    margin-bottom: 20px;
    padding: 15px 0;
    background: transparent;
    border-radius: 0;
    border: none;
    border-bottom: 2px solid var(--e-global-color-primary);
}

body .mechano-sort-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
    cursor: default;
}

body .mechano-sort-icon {
    font-size: 18px;
}

body .mechano-sort-select {
    flex: 1;
    max-width: 300px;
    padding: 10px 15px;
    font-size: 14px;
    border: 1px solid #ddd;
    border-radius: 0;
    background: #fff;
    color: #1a1a1a;
    cursor: pointer;
    transition: border-color 0.3s;
}

body .mechano-sort-select:hover {
    border-color: var(--e-global-color-primary, var(--e-global-color-primary, #0073aa));
}

body .mechano-sort-select:focus {
    outline: none;
    border-color: var(--e-global-color-primary, var(--e-global-color-primary, #0073aa));
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
}

body .mechano-products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* 2 columns on desktop */
    gap: 20px;
    margin-bottom: 40px;
}

body .mechano-products-loading {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    gap: 20px;
}

/* Product Card - Horizontal Redesign */
body .mechano-product-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 0;
    padding: 20px 20px 20px 0;
    /* Padding only on right/top/bottom, image handles left */
    transition: all 0.2s ease;
    display: flex;
    flex-direction: row;
    gap: 20px;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    align-items: stretch;
    min-height: 220px;
    /* Ensure uniform height */
    height: 100%;
}

body .mechano-product-card:hover {
    border-color: var(--e-global-color-primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    background-color: #fafafa;
}

body .mechano-product-image-wrapper {
    width: 200px;
    /* Fixed width */
    flex-shrink: 0;
    background: #fff;
    border: none;
    border-right: 2px solid var(--e-global-color-primary);
    /* Vertical divider */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 20px;
}

body .mechano-product-image {
    width: 100%;
    height: 200px;
    object-fit: contain;
}

body .mechano-product-content-wrapper {
    display: flex;
    flex-direction: column;
    /* Stack Info and Meta vertically */
    flex: 1;
    justify-content: space-between;
    gap: 15px;
    padding-right: 10px;
}

body .mechano-product-info-main {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

body .mechano-product-brand {
    font-size: 18px;
    /* More prominent */
    font-weight: 800;
    text-transform: uppercase;
    color: var(--e-global-color-primary);
    margin-bottom: 4px;
}

body .mechano-product-title {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
    text-transform: capitalize;
    line-height: 1.4;
}

body .mechano-product-meta-sidebar {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-end;
    /* Align left in the column */
    width: 100%;
    margin-top: auto;
    /* Push to bottom */
}

body .mechano-product-price {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
}

body .mechano-product-stock {
    font-size: 13px;
    font-weight: 500;
}

body .mechano-product-stock.in-stock {
    color: #2e7d32;
}

body .mechano-product-stock.out-of-stock {
    color: #c62828;
}

/* Add to Cart Button */
body .mechano-add-to-cart-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--e-global-color-accent);
    /* Accent color */
    color: #fff;
    border: none;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: filter 0.3s;
    width: 100%;
    border-radius: 0;
    margin-top: 5px;
}

body .mechano-add-to-cart-btn:hover {
    filter: brightness(1.1);
}

body .mechano-add-to-cart-btn.added {
    background-color: #2e7d32;
}

/* Hide default WooCommerce 'View Cart' link that might be appended */
body .mechano-product-meta-sidebar a.added_to_cart.wc-forward {
    display: none !important;
}

body .mechano-view-details-btn {
    display: inline-block;
    padding: 8px 16px;
    border: 1px solid var(--e-global-color-primary);
    color: var(--e-global-color-primary);
    text-decoration: none;
    font-size: 14px;
    text-transform: uppercase;
    font-weight: 600;
    text-align: center;
    width: 100%;
}

body .mechano-view-details-btn:hover {
    background: var(--e-global-color-primary);
    color: #fff;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    body .mechano-product-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 15px;
        gap: 15px;
    }

    body .mechano-product-image-wrapper {
        width: 100%;
        max-width: 250px;
        /* Limit image size on mobile */
        height: 200px;
    }

    body .mechano-product-content-wrapper {
        flex-direction: column;
        width: 100%;
        gap: 15px;
    }

    body .mechano-product-info-main {
        align-items: center;
    }

    body .mechano-product-meta-sidebar {
        align-items: center;
        width: 100%;
    }

    body .mechano-add-to-cart-btn,
    body .mechano-view-details-btn {
        width: 100%;
        max-width: 300px;
    }
}

/* Pagination */
body .mechano-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 20px;
    background: #F4F2F2;
    border-top: 1px solid #ddd;
}


body .mechano-pagination-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 8px 12px;
    background: #fff;
    color: #1a1a1a;
    text-decoration: none;
    border: 1px solid #ddd;
    border-radius: 0;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s;
    cursor: pointer;
}

body .mechano-pagination-link:hover:not(.disabled):not(.active) {
    background: var(--e-global-color-accent, #0073aa);
    color: #fff;
    border-color: var(--e-global-color-accent, #0073aa);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

body .mechano-pagination-link.active {
    background: var(--e-global-color-primary, #0073aa);
    color: #fff;
    border-color: var(--e-global-color-primary, #0073aa);
    cursor: default;
}

body .mechano-pagination-link.disabled {
    background: #f0f0f0;
    color: #999;
    border-color: #e0e0e0;
    cursor: not-allowed;
    opacity: 0.6;
}

body .mechano-pagination-ellipsis {
    padding: 0 8px;
    color: #666;
    font-weight: 600;
}

body .mechano-pagination-info {
    margin-left: auto;
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

@media (max-width: 768px) {
    .mechano-products-layout {
        flex-direction: column;
        gap: 20px;
    }

    .mechano-products-sidebar {
        flex: 1;
        position: static;
        max-height: none;
        width: 100%;
    }

    .mechano-suppliers-list {
        max-height: 300px;
    }

    .mechano-pagination {
        gap: 4px;
        padding: 15px;
    }

    .mechano-pagination-link {
        min-width: 36px;
        height: 36px;
        padding: 6px 10px;
        font-size: 13px;
    }

    .mechano-pagination-info {
        width: 100%;
        text-align: center;
        margin-left: 0;
        margin-top: 12px;
    }
}

/* Admin Actions */
body .mechano-admin-actions {
    background: #f9f9f9;
    border: 2px dashed #ddd;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    margin-top: 40px;
}

body .mechano-import-button {
    padding: 14px 28px;
    background: var(--e-global-color-primary, var(--e-global-color-primary, #0073aa));
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

body .mechano-import-button:hover:not(:disabled) {
    background: var(--e-global-color-primary, var(--e-global-color-primary, #005a87));
}

body .mechano-import-button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

body .mechano-import-progress {
    margin-top: 20px;
}

body .mechano-progress-bar {
    width: 100%;
    height: 30px;
    background: #e0e0e0;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 10px;
}

body .mechano-progress-fill {
    height: 100%;
    background: linear-gradient(135deg, var(--e-global-color-primary, var(--e-global-color-primary, #0073aa)) 0%, var(--e-global-color-accent, var(--e-global-color-accent, #00a0d2)) 100%);
    transition: width 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 600;
}

body .mechano-progress-text {
    font-size: 16px;
    color: #333;
    margin: 0;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    body .mechano-vehicle-search-container {
        padding: 30px 20px;
    }

    body .mechano-search-title {
        font-size: 24px;
    }

    body .mechano-categories-grid,
    body .mechano-subcategories-grid,
    body .mechano-products-grid {
        grid-template-columns: 1fr;
    }

    body .mechano-vehicle-banner {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    body .mechano-vehicle-info {
        flex-direction: column;
    }

    /* Already handled in main mobile styles above */

    body .mechano-history-items {
        grid-template-columns: 1fr;
    }

    body .mechano-subcategories-header {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }

    body .mechano-back-button {
        width: 100%;
    }
}

@media (max-width: 480px) {
    body .mechano-search-title {
        font-size: 20px;
        flex-direction: column;
    }

    body .mechano-search-icon {
        font-size: 28px;
    }

    body .mechano-breadcrumbs {
        font-size: 12px;
    }

    body .mechano-history-header {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }

    body .mechano-clear-history {
        width: 100%;
    }
}

/* ============================================
   BACKGROUND IMPORT PROGRESS
   ============================================ */

body .mechano-bg-import-progress {
    background: #f0f8ff;
    border: 2px solid var(--e-global-color-primary, #0073aa);
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 4px 12px rgba(0, 115, 170, 0.15);
}

body .mechano-bg-import-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

body .mechano-bg-import-text {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    font-weight: 600;
    color: var(--e-global-color-primary, var(--e-global-color-primary, #0073aa));
}

body .mechano-bg-import-text .mechano-spinner {
    flex-shrink: 0;
}

body .mechano-bg-import-bar {
    width: 100%;
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
}

body .mechano-bg-import-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--e-global-color-primary, var(--e-global-color-primary, #0073aa)) 0%, var(--e-global-color-accent, var(--e-global-color-accent, #00a0d2)) 100%);
    border-radius: 4px;
    transition: width 0.3s ease;
}

/* ============================================
   ACCORDION CATEGORIES REDESIGN
   ============================================ */

/* Grid Layout */
body .mechano-categories-grid {
    display: grid !important;
    /* Force grid over previous styles if any */
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 30px;
}



/* Accordion Item */

/* Subcategory List */
body .mechano-subcategory-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

body .mechano-nested-ul {
    list-style: none;
    padding: 0;
    margin: 0;
    padding-left: 15px;
    /* Visual Indent for children */
    border-left: 1px solid #e0e0e0;
    /* Optional guide line */
}

body .mechano-subcategory-li {
    padding: 0;
    /* Removing padding from LI to put it on row */
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    cursor: pointer;
    font-size: 14px;
    color: #333;
    transition: color 0.2s;
    display: block;
    /* Change from flex to block to contain nested list */
    position: relative;
    text-transform: uppercase;
}

body .mechano-subcat-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    /* Changed from space-between to ensure left align */
    padding: 10px 0;
    padding-right: 10px;
    /* Space for expander */
    transition: padding-left 0.2s, color 0.2s;
    text-align: left;
    /* Enforce left alignment */
}

body .mechano-subcat-text {
    margin-right: auto;
    /* Push expander to the right */
    text-align: left;
}

body .mechano-subcat-row:hover {
    color: #000045;
    font-weight: 600;
    padding-left: 5px;
}

/* Bullet Point */
body .mechano-subcat-row::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 4px;
    background: var(--e-global-color-accent, var(--e-global-color-accent, #00adef));
    margin-right: 10px;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.2s;
    flex-shrink: 0;
}

body .mechano-subcat-row:hover::before {
    opacity: 1;
}

/* Expander Button */
body .mechano-subcat-expander {
    width: 24px;
    /* Slightly larger for easier clicking */
    height: 24px;
    border: 1px solid #ddd;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #666;
    font-size: 16px;
    background: #fff;
    flex-shrink: 0;
    margin-left: 10px;
    /* Ensure spacing from text */
}

body .mechano-subcat-expander:hover {
    border-color: var(--e-global-color-accent, var(--e-global-color-accent, #00adef));
    color: var(--e-global-color-accent, var(--e-global-color-accent, #00adef));
}

body .mechano-subcategory-li:last-child {
    border-bottom: none;
}

/* ============================================
   MOBILE ADAPTATION
   ============================================ */
/* ============================================
   VEHICLE BANNER REDESIGN
   ============================================ */

body .mechano-vehicle-banner {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    /* Ensure it breaks out of container */
    position: relative;
    left: 0;
    right: 0;
}

body .mechano-vehicle-banner-inner {
    max-width: 1200px;
    /* Or match site container width */
    margin: 0 auto;
    padding: 15px 25px;
    display: flex;
    align-items: center;
    background-color: var(--e-global-color-primary);
    border-radius: 20px;
}

body .mechano-vehicle-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Vehicle Icon / Logo */
body .mechano-vehicle-icon,
body .mechano-vehicle-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    font-size: 32px;
    /* For emoji fallback */
}

/* Text Details */
body .mechano-vehicle-details {
    display: flex;
    flex-direction: row;
    /* Inline on desktop */
    align-items: center;
    gap: 10px;
    font-family: 'Oswald', sans-serif;
    /* Assuming font matches */
    text-transform: uppercase;
    font-size: 16px;
    letter-spacing: 0.5px;
}

body .mechano-vehicle-details strong {
    font-weight: 700;
    color: #fff;
}

body .mechano-vehicle-engine {
    font-weight: 400;
    opacity: 0.9;
}

/* Green Checkmark */
body .mechano-vehicle-info::after {
    content: '✓';
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background-color: #72bf44;
    /* Green */
    color: #fff;
    border-radius: 50%;
    font-size: 14px;
    font-weight: bold;
    margin-left: 15px;
    margin-right: 15px;
}

/* Change Vehicle Button */
body .mechano-change-vehicle {
    background-color: var(--e-global-color-accent, var(--e-global-color-accent, #00adef));
    /* Light Blue */
    color: #fff !important;
    text-decoration: none;
    padding: 8px 20px;
    border-radius: 20px;
    /* Pill shape */
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    transition: background 0.3s, transform 0.2s;
    white-space: nowrap;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

body .mechano-change-vehicle:hover {
    background-color: var(--e-global-color-accent, var(--e-global-color-accent, #0095ce));
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 173, 239, 0.4);
}

/* ============================================
   MOBILE ADAPTATION
   ============================================ */
@media (max-width: 768px) {

    /* Grid becomes 1 column */
    body .mechano-categories-grid {
        grid-template-columns: 1fr;
        gap: 0;
        /* Smaller gap */
    }

    /* Accordion Header - Larger Touch Targets */
    body .mechano-accordion-header {
        padding: 15px;
        min-height: 70px;
    }

    body .mechano-accordion-icon-wrapper {
        flex: 0 0 45px;
        height: 45px;
        margin-right: 15px;
    }

    body .mechano-accordion-title {
        font-size: 15px;
        /* Slightly larger/readable */
    }

    /* Content Area */
    body .mechano-accordion-content {
        padding: 0 15px 15px 15px;
    }

    /* Nested Lists - Optimization */
    body .mechano-nested-ul {
        padding-left: 10px;
        /* Less indentation to save space */
    }

    body .mechano-subcat-row {
        padding: 12px 0;
        /* Larger touch area for links */
        font-size: 15px;
    }

    body .mechano-subcat-expander {
        width: 30px;
        /* Larger tap target */
        height: 30px;
    }

    /* Banner Mobile */
    body .mechano-vehicle-banner-inner {
        flex-direction: column;
        text-align: center;
        padding: 20px;
        gap: 20px;
        align-items: center;
    }

    body .mechano-vehicle-info {
        flex-direction: column;
        gap: 10px;
        align-items: center;
        width: 100%;
    }

    body .mechano-vehicle-details {
        flex-direction: column;
        gap: 5px;
        align-items: center;
        text-align: center;
    }

    body .mechano-vehicle-info::after {
        margin-top: 5px;
    }

    body .mechano-change-vehicle {
        width: 100%;
        justify-content: center;
    }
}

/* ============================================
   FEATURED CATEGORIES (HOME PAGE)
   ============================================ */

body .mechano-featured-categories-wrapper {
    margin: 20px 0;
    font-family: 'Inter', sans-serif;
}

body .mechano-featured-title {
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 30px;
    text-transform: uppercase;
}

body .mechano-featured-grid {
    display: grid;
    grid-template-columns: repeat(var(--mechano-cols, 5), 1fr);
    gap: 20px;
}

/* Responsive Grid */
@media (max-width: 1024px) {
    body .mechano-featured-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 600px) {
    body .mechano-featured-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

body .mechano-featured-item {
    background: #F4F2F2;
    border: 1px solid #e0e0e0;
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    height: 100%;
    min-height: 160px;
    position: relative;
    overflow: hidden;
}

body .mechano-featured-item:hover {
    border-color: var(--e-global-color-primary, #0073aa);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    transform: translateY(-4px);
}

body .mechano-featured-icon-wrapper {
    width: 100%;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    font-size: 32px;
    color: #333;
    border-bottom: 1px solid var(--e-global-color-accent);
}

body .mechano-feat-cat-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    margin-bottom: 16px;
}

body .mechano-featured-name {
    font-size: 14px;
    font-weight: 700;
    color: #1a1a1a;
    text-align: center;
    text-transform: uppercase;
    margin: 0;
    line-height: 1.4;
}

/* Hover line effect at bottom */
body .mechano-featured-line {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background-color: var(--e-global-color-accent);
    transition: width 0.3s ease;
}

body .mechano-featured-item:hover .mechano-featured-line {
    width: 100%;
}

body .mechano-featured-more {
    margin-top: 40px;
    text-align: center;
}

body .mechano-cat-hidden {
    display: none;
}


body .mechano-more-button {
    display: inline-block;
    padding: 12px 32px;
    background: transparent;
    border: 2px solid var(--e-global-color-accent);
    border-radius: 0px;
    color: #1a1a1a;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

body .mechano-more-button:hover {
    border-color: var(--e-global-color-primary, #0073aa);
    color: var(--e-global-color-primary, #0073aa);
    background: rgba(0, 0, 0, 0.02);
}

/* Preselected Category Notice */
body .mechano-preselected-category-notice {
    background: #e6f3ff;
    border: 1px solid #b3d7ff;
    padding: 15px;
    margin-top: 15px;
    border-radius: 6px;
    text-align: center;
    color: #0056b3;
}

body .mechano-preselected-category-notice p {
    margin: 0;
    line-height: 1.4;
}

body .mechano-preselected-category-notice strong {
    color: #004085;
    text-transform: uppercase;
}

body .mechano-small-text {
    font-size: 13px;
    margin-top: 5px !important;
    color: #004085;
}

/* ============================================
   MOBILE REDESIGN (FILTERS & PRODUCTS)
   ============================================ */

/* Mobile Filter Toggle Button (Hidden on Desktop) */
.mechano-mobile-filter-toggle {
    display: none;
}

.mechano-sidebar-header-mobile {
    display: none;
}

@media (max-width: 768px) {

    /* --- 1. FILTER TOGGLE BUTTON --- */
    .mechano-mobile-filter-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        width: 100%;
        padding: 12px;
        background: #fff;
        border: 1px solid #ddd;
        border-radius: 4px;
        font-family: 'Oswald', sans-serif;
        font-weight: 600;
        text-transform: uppercase;
        color: var(--e-global-color-primary, #001e50);
        margin-bottom: 20px;
        cursor: pointer;
        transition: all 0.3s;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    }

    .mechano-mobile-filter-toggle:hover {
        background: #f9f9f9;
        border-color: var(--e-global-color-primary, #001e50);
    }

    .mechano-filter-icon {
        font-size: 16px;
    }

    /* --- 2. SIDEBAR (OFF-CANVAS OVERLAY) --- */
    body .mechano-products-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        /* Full width on mobile for better usability */
        height: 100vh;
        background: #fff;
        z-index: 99999;
        padding: 0;
        overflow-y: auto;
        transform: translateX(-100%);
        /* Hidden by default */
        transition: transform 0.3s ease-in-out;
        box-shadow: 4px 0 15px rgba(0, 0, 0, 0.2);
    }

    body .mechano-products-sidebar.active {
        transform: translateX(0);
        /* Slide in */
    }

    /* Sidebar Header (Mobile Only) */
    .mechano-sidebar-header-mobile {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 15px 20px;
        background: var(--e-global-color-primary, #001e50);
        color: #fff;
        font-family: 'Oswald', sans-serif;
        font-size: 18px;
        font-weight: 600;
        text-transform: uppercase;
        position: sticky;
        top: 0;
        z-index: 10;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }

    .mechano-mobile-filter-close {
        background: none;
        border: none;
        color: #fff;
        font-size: 24px;
        cursor: pointer;
        padding: 0;
        line-height: 1;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Adjust Sidebar Content Padding */
    .mechano-sidebar-accordion-item {
        margin: 20px;
        /* Add margin around items inside overlay */
    }

    /* Body Scroll Lock */
    body.mechano-filter-open {
        overflow: hidden;
    }

    /* --- 3. PRODUCT CARDS (VERTICAL STACK) --- */
    body .mechano-product-card {
        flex-direction: column;
        height: auto;
        /* Remove fixed height constraint if any */
    }

    body .mechano-product-image-wrapper {
        width: 100%;
        height: auto;
        min-height: 200px;
        max-height: 250px;
        /* Limit height */
        border-right: none;
        border-bottom: 2px solid var(--e-global-color-primary, #001e50);
        /* Horizontal divider */
        padding-bottom: 15px;
        /* Space between photo and line */
        margin-bottom: 15px;
        /* Space between line and details */
    }

    body .mechano-product-image {
        max-height: 200px;
        object-fit: contain;
    }

    body .mechano-product-details {
        width: 100%;
        padding: 20px;
    }

    /* Adjust button width for easier tapping */
    body .mechano-add-to-cart-btn {
        width: 100%;
        justify-content: center;
        padding: 12px;
    }
}