/**
 * 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;
    text-transform: capitalize;
}

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

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,
body .mechano-vehicle-logo {
    width: 54px;
    height: 54px;
    object-fit: contain;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 50%;
    padding: 6px;
    flex-shrink: 0;
}

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

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-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

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: 28px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 30px;
    text-align: center;
    text-transform: uppercase;
}

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;
    /* Removed max-height and overflow-y to scroll with page */
}

/* ... (omitting irrelevant sections) ... */

/* Sidebar lists */
body .mechano-suppliers-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 600px;
    /* Re-added max-height */
    overflow-y: scroll;
    padding-right: 5px;
    scrollbar-width: thin;
    /* Firefox - Set solid track color to prevent Firefox fading */
    scrollbar-color: var(--e-global-color-accent, #2196f3) #f4f4f4;
}

/* Webkit scrollbar styling (Chrome, Safari, Edge, Opera) - Solid structures prevent OS auto-hiding */
body .mechano-suppliers-list::-webkit-scrollbar {
    -webkit-appearance: none !important;
    appearance: none !important;
    width: 8px !important;
    background-color: #f4f4f4 !important;
}

body .mechano-suppliers-list::-webkit-scrollbar-track {
    -webkit-appearance: none !important;
    background: #f4f4f4 !important;
    border-radius: 4px !important;
}

body .mechano-suppliers-list::-webkit-scrollbar-thumb {
    -webkit-appearance: none !important;
    background-color: var(--e-global-color-accent, #2196f3) !important;
    border-radius: 4px !important;
    border: 2px solid #f4f4f4 !important;
}

/* ============================================
   ACCORDION STYLES — Categories Grid
   ============================================ */

body .mechano-accordion-item {
    margin-bottom: 0;
    background: #fff;
    border: none;
    border-radius: 0;
    transition: box-shadow 0.25s ease;
}

/* Closed State (Default) */
body .mechano-accordion-header {
    background: #fff;
    border: 1px solid #e0e4e8;
    border-top: 3px solid var(--e-global-color-accent, #00adef);
    color: #1a1a1a;
    padding: 0 20px;
    min-height: 64px;
    display: flex;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    transition: all 0.25s ease;
}

body .mechano-accordion-header:hover {
    background: #f5f8fb;
    border-color: #ced4da;
    border-top-color: var(--e-global-color-accent, #00adef);
}

/* Open State */
body .mechano-accordion-item.open .mechano-accordion-header,
body .mechano-accordion-header.active {
    background: linear-gradient(135deg, var(--e-global-color-primary, #001e50) 0%, #002d7a 100%);
    border-color: var(--e-global-color-primary, #001e50);
    border-top-color: var(--e-global-color-accent, #00adef);
    color: #fff;
}

/* Category Icon Wrapper */
body .mechano-accordion-icon-wrapper {
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    transition: filter 0.25s ease;
}

/* Invert icon to white when expanded */
body .mechano-accordion-item.open .mechano-accordion-icon-wrapper,
body .mechano-accordion-header.active .mechano-accordion-icon-wrapper {
    filter: brightness(0) invert(1);
}

body .mechano-accordion-icon-wrapper img.mechano-cat-img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

body .mechano-accordion-icon-wrapper .mechano-cat-emoji {
    font-size: 38px;
    line-height: 1;
}

/* Title */
body .mechano-accordion-title {
    flex: 1;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    margin: 0;
    color: inherit;
    letter-spacing: 0.5px;
    line-height: 1.3;
}

/* CSS Chevron Arrow */
body .mechano-accordion-arrow {
    flex-shrink: 0;
    width: 12px;
    height: 12px;
    border-right: 2.5px solid var(--e-global-color-accent, #00adef);
    border-bottom: 2.5px solid var(--e-global-color-accent, #00adef);
    transform: rotate(45deg);
    transition: transform 0.3s ease, border-color 0.25s ease;
    margin-left: auto;
}

body .mechano-accordion-header:hover .mechano-accordion-arrow {
    border-color: var(--e-global-color-primary, #001e50);
}

/* Open State Arrow */
body .mechano-accordion-item.open .mechano-accordion-arrow,
body .mechano-accordion-header.active .mechano-accordion-arrow {
    transform: rotate(-135deg);
    border-color: #fff;
}

/* Content Area */
body .mechano-accordion-content {
    background: #fff;
    padding: 10px 0;
    display: block;
    border-top: none;
    border-right: 1px solid #e0e4e8;
    border-bottom: 1px solid #e0e4e8;
    border-left: 1px solid #e0e4e8;
}

/* ============================================
   Product Filter Accordion Styles (Separated)
   ============================================ */

body .mechano-filter-accordion-item {
    margin-bottom: 20px;
    background: #fff;
    border: none;
}

body .mechano-filter-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;
}

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

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

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

/* CSS Chevron Icon */
body .mechano-filter-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.2s;
    display: inline-block;
    margin-top: -4px;
}

/* Open State Icon */
body .mechano-filter-accordion-item.open .mechano-filter-accordion-icon {
    transform: rotate(225deg) translate(-2px, -2px);
    border-color: #fff;
}

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

body .mechano-filter-accordion-item:not(.open) > .mechano-filter-accordion-content {
    display: none;
}


/* 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-spec-filter-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-spec-filter-checkbox:checked {
    background: #001e50;
    /* Dark blue fill when checked */
    border-color: #001e50;
}

body .mechano-supplier-checkbox:checked::after,
body .mechano-spec-filter-checkbox:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
}

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

body .mechano-supplier-radio:checked {
    background: var(--e-global-color-input-text, #0073aa);
    /* 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;
}

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;
    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-primary, var(--e-global-color-primary, #005a87));
}

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 20px;
    background: #F4F2F2;
    border-bottom: 1px solid #ddd;
}

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-no-image {
    width: 100%;
    height: 100%;
    min-height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 4px;
    box-sizing: border-box;
}

body .mechano-product-no-image .mechano-product-placeholder-img {
    width: 100%;
    max-width: 100%;
    height: 200px;
    object-fit: contain;
    object-position: center;
    display: block;
}

body .mechano-product-no-image--fallback {
    min-height: 120px;
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    border: 1px dashed #d1d5db;
}

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-article {
    font-size: 13px;
    color: #666;
    margin-top: 4px;
}

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 Filter Styles */
body .mechano-mobile-filter-toggle {
    display: none;
    /* Hidden on desktop */
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 20px;
    cursor: pointer;
    transition: all 0.2s;
}

body .mechano-mobile-filter-toggle:hover {
    background: #f9f9f9;
    border-color: #ccc;
}

body .mechano-mobile-filter-header {
    display: none;
    /* Hidden on desktop */
    align-items: center;
    justify-content: space-between;
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
}

body .mechano-mobile-filter-title {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
}

body .mechano-mobile-filter-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    padding: 5px;
    line-height: 1;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {

    /* Show Filter Toggle */
    body .mechano-mobile-filter-toggle {
        display: flex;
    }

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

    body .mechano-search-header {
        margin-bottom: 20px;
    }

    body .mechano-form-group {
        margin-bottom: 15px;
    }

    body .mechano-form-actions {
        margin-top: 10px;
    }

    /* Off-Canvas Sidebar */
    body .mechano-products-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: #fff;
        z-index: 99999;
        padding: 20px;
        overflow-y: auto;
        transform: translateX(-100%);
        transition: transform 0.3s ease-in-out;
        display: block;
        /* Ensure distinct stacking context */
    }

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

    body .mechano-mobile-filter-header {
        display: flex;
    }

    /* Prevent body scroll when filter open */
    body.no-scroll {
        overflow: hidden;
    }

    /* Vertical Product Card Redesign */
    body .mechano-product-card {
        flex-direction: row;
        flex-wrap: wrap;
        /* Use wrap to stack items */
        align-items: flex-start;
        /* Reset stretch if needed */
        text-align: left;
        padding: 0;
        gap: 0;
        background: #fff;
        border: 1px solid #ddd;
    }

    body .mechano-product-image-wrapper {
        width: 100%;
        max-width: none;
        height: 200px;
        border-right: none;
        border-bottom: 1px solid #eee;
        /* Horizontal divider */
        padding: 20px;
    }

    body .mechano-product-image {
        height: 100%;
    }

    body .mechano-product-content-wrapper {
        width: 100%;
        padding: 20px;
        gap: 20px;
    }

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

    body .mechano-product-meta-sidebar {
        align-items: center;
        /* center */
        width: 100%;
        margin-top: 0;
    }

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

/* 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;
        width: 100%;
        /* Force full width */
    }

    .mechano-products-content {
        width: 100%;
        /* Ensure content takes full width */
        min-width: 100%;
    }

    .mechano-products-sort {
        width: 100%;
        box-sizing: border-box;
        /* Handle padding correctly */
        flex-wrap: wrap;
        /* Allow wrapping if needed */
    }

    .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 - REMOVED
body .mechano-admin-actions {
    display: none;
} */

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: 1024px) {
    body .mechano-vehicle-search-wrapper {
        max-width: 100%;
    }

    body .mechano-vehicle-search-container {
        min-height: 0;
        width: 100%;
    }

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

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

    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);
    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;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 30px;
}

@media (max-width: 768px) {
    body .mechano-categories-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}


/* 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: 20px;
    border-left: 2px solid #e8ecf0;
}

body .mechano-subcategory-li {
    padding: 0;
    border-bottom: 1px solid #eef1f4;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    transition: color 0.2s ease, background 0.15s ease;
    display: block;
    position: relative;
    text-transform: uppercase;
}

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

body .mechano-subcat-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 14px 20px;
    transition: padding-left 0.2s ease, color 0.2s ease, background 0.15s ease;
    text-align: left;
}

body .mechano-subcat-text {
    margin-right: auto;
    text-align: left;
    font-weight: 500;
    letter-spacing: 0.3px;
}

body .mechano-subcat-row:hover {
    color: var(--e-global-color-primary, #001e50);
    background: #f8fafc;
    padding-left: 25px;
}

/* No bullet point — clean minimal design */
body .mechano-subcat-row::before {
    display: none;
}

/* Expander Button */
body .mechano-subcat-expander {
    width: 26px;
    height: 26px;
    border: 1px solid #d0d5dd;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #667085;
    font-size: 16px;
    background: #fff;
    flex-shrink: 0;
    margin-left: 12px;
    transition: all 0.2s ease;
}

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

/* ============================================
   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: 25px;
    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: 16px;
    }

    /* Accordion Header - Larger Touch Targets */
    body .mechano-accordion-header {
        padding: 0 16px;
        min-height: 68px;
        gap: 14px;
    }

    body .mechano-accordion-icon-wrapper {
        flex: 0 0 40px;
        width: 40px;
        height: 40px;
    }

    body .mechano-accordion-title {
        font-size: 14px;
        line-height: 1.3;
    }

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

    /* Nested Lists - Optimization */
    body .mechano-nested-ul {
        padding-left: 16px;
    }

    body .mechano-subcat-row {
        padding: 14px 16px;
        font-size: 15px;
    }

    body .mechano-subcat-expander {
        width: 30px;
        height: 30px;
        font-size: 18px;
    }

    /* Banner Mobile */
    body .mechano-vehicle-banner {
        padding: 5px 0 !important;
        margin-bottom: 20px;
    }

    body .mechano-vehicle-banner-inner {
        flex-direction: column;
        text-align: center;
        padding: 12px 16px;
        gap: 12px;
        align-items: center;
        border-radius: 12px;
        margin: 10px 0;
    }

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

    body .mechano-vehicle-icon,
    body .mechano-vehicle-logo {
        width: 36px;
        height: 36px;
        font-size: 28px;
    }

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

    body .mechano-vehicle-details strong {
        font-size: 15px;
    }

    body .mechano-vehicle-info::after {
        position: absolute;
        top: 6px;
        /* align with the 36px icon */
        left: 50%;
        margin-left: 18px;
        /* icon width is 36px, half is 18px */
        margin-top: 0;
        width: 20px;
        height: 20px;
        font-size: 12px;
    }

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

/* ============================================
   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;
}


/* ============================================
   Part Finder (Article / OEM Search) Styles
   ============================================ */

.mechano-part-finder {
    position: relative;
    width: 100%;
    z-index: 9;
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Ensure Elementor side cart escapes localized stacking contexts */
.e-con:has(.elementor-menu-cart__container),
.elementor-element-ece59e0 {
    z-index: 99999 !important;
}

/* Push down any Elementor container holding the part finder */
.e-con:has(.mechano-part-finder),
.elementor-element-1533b94 {
    z-index: 10 !important;
}

/* Search Bar */
.mechano-pf-search-bar {
    display: flex;
    gap: 0;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 2px solid var(--e-global-color-accent, #2196f3);
    transition: box-shadow 0.2s, border-color 0.2s;
}

.mechano-pf-search-bar:focus-within {
    box-shadow: 0 2px 12px rgba(0, 30, 80, 0.15);
    border-color: var(--e-global-color-accent, #2196f3);
}

/* Input Wrapper */
.mechano-pf-input-wrapper {
    display: flex;
    align-items: center;
    flex: 1;
    position: relative;
    background: #fff;
    padding: 0 12px;
}

.mechano-pf-search-icon {
    flex-shrink: 0;
    color: #8a9bb5;
    margin-right: 8px;
}

.mechano-pf-input {
    flex: 1;
    border: none !important;
    outline: none !important;
    padding: 12px 4px !important;
    font-size: 16px !important;
    color: #1a1a1a;
    background: transparent !important;
    box-shadow: none !important;
    min-width: 0;
    height: auto !important;
    line-height: 1.4 !important;
    margin: 0 !important;
}

.mechano-pf-input::placeholder {
    color: #a0aec0;
    font-size: 13px;
}

.mechano-pf-clear-btn {
    flex-shrink: 0;
    background: none !important;
    border: none !important;
    padding: 4px 8px !important;
    cursor: pointer;
    color: #8a9bb5;
    font-size: 14px;
    line-height: 1;
    transition: color 0.2s;
}

.mechano-pf-clear-btn:hover {
    color: #1a1a1a;
}

/* Search Button */
.mechano-pf-search-btn {
    flex-shrink: 0;
    background: var(--e-global-color-accent, #2196f3) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 12px 24px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background 0.2s !important;
    white-space: nowrap;
    line-height: 1.4 !important;
}

.mechano-pf-search-btn:hover {
    background: var(--e-global-color-primary, #001e50) !important;
}

/* Hint */
.mechano-pf-hint {
    font-size: 12px;
    color: #e67e22;
    margin-top: 4px;
    padding-left: 40px;
}

/* ============================================
   Part Finder Results Page Styles
   ============================================ */
/* REMOVED — Results page now uses the same .mechano-products-* classes
   as the auto-parts-list page, so no extra styles needed here. */

/* --- Live Search Dropdown --- */
.mechano-pf-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 0 12px;
    flex-grow: 1;
}

.mechano-live-search-dropdown {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    width: 100%;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    z-index: 999;
    max-height: 450px;
    overflow-y: auto;
    font-size: 14px;
    color: #333;
    display: none;
}

.mechano-live-search-dropdown::-webkit-scrollbar {
    width: 6px;
}

.mechano-live-search-dropdown::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.mechano-live-search-dropdown::-webkit-scrollbar-thumb {
    background: var(--e-global-color-accent, #2196f3);
    border-radius: 4px;
}

.mechano-ls-loading,
.mechano-ls-empty {
    padding: 20px;
    text-align: center;
    color: #777;
    font-style: italic;
}

.mechano-ls-section {
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.mechano-ls-section:last-child {
    border-bottom: none;
}

.mechano-ls-section-title {
    margin: 0 15px 5px;
    font-size: 11px;
    text-transform: uppercase;
    color: #888;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.mechano-ls-cat-list,
.mechano-ls-prod-list,
.mechano-ls-history-list {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* History */
.mechano-ls-history-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-right: 10px;
    transition: background 0.2s;
}

.mechano-ls-history-row:hover {
    background: #f8f9fa;
}

.mechano-ls-history-item {
    display: flex;
    align-items: center;
    padding: 8px 15px;
    color: #444;
    text-decoration: none !important;
    flex-grow: 1;
}

.mechano-ls-history-del {
    background: none;
    border: none;
    color: #bbb;
    font-size: 14px;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 4px;
    transition: color 0.2s, background 0.2s;
}

.mechano-ls-history-del:hover {
    color: #cc0000;
    background: #ffeeee;
}

.mechano-ls-history-footer {
    text-align: center;
    padding: 8px;
    border-top: 1px solid #f0f0f0;
}

.mechano-ls-history-clear {
    background: none;
    border: none;
    color: #888;
    font-size: 12px;
    text-decoration: underline;
    text-transform: uppercase;
    cursor: pointer;
    transition: color 0.2s, background 0.2s;
}

.mechano-ls-history-clear:hover {
    background: transparent !important;
    color: var(--e-global-color-accent, #2196f3);
}

.mechano-ls-history-text {
    text-transform: capitalize;
}

.history-icon {
    font-size: 12px;
    margin-right: 8px;
    color: #aaa;
}

/* Categories */
.mechano-ls-cat-item {
    display: block;
    padding: 8px 15px;
    color: #0056b3;
    text-decoration: none !important;
    font-weight: 500;
    transition: background 0.2s;
    text-transform: capitalize;
}

.mechano-ls-cat-item:hover {
    background: #f0f7ff;
}

/* Products */
.mechano-ls-prod-item {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    text-decoration: none !important;
    color: inherit;
    transition: background 0.2s;
    border-bottom: 1px solid #f9f9f9;
}

.mechano-ls-prod-item:last-child {
    border-bottom: none;
}

.mechano-ls-prod-item:hover {
    background: #f8f9fa;
}

.mechano-ls-prod-img {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    margin-right: 12px;
    border-radius: 4px;
    overflow: hidden;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mechano-ls-prod-img img {
    width: 100% !important;
    height: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
}

.mechano-ls-no-img {
    width: 100%;
    height: 100%;
    background: #eaeaea;
}

.mechano-ls-prod-info {
    flex-grow: 1;
    min-width: 0;
    line-height: 1.3;
}

.mechano-ls-prod-brand {
    font-size: 11px;
    color: #666;
    text-transform: uppercase;
    display: block;
}

.mechano-ls-prod-title {
    font-size: 13px;
    font-weight: 600;
    color: #222;
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-transform: capitalize;
}

.mechano-ls-prod-article {
    font-size: 11px;
    color: #888;
    display: block;
}

.mechano-ls-prod-price {
    font-weight: 700;
    color: #000;
    font-size: 14px;
    margin-left: 10px;
    flex-shrink: 0;
}

/* Highlights */
.mechano-live-search-dropdown strong {
    font-weight: 700;
    color: #000;
}

.mechano-ls-footer {
    text-align: center;
    padding: 12px;
    background: #fdfdfd;
    border-top: 1px solid #eee;
    border-radius: 0 0 8px 8px;
}

.mechano-ls-see-all {
    color: #0056b3;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none !important;
}

.mechano-ls-see-all:hover {
    text-decoration: underline !important;
}

/* Mobile Adjustments for Dropdown */
@media (max-width: 768px) {
    .mechano-live-search-dropdown {
        max-height: 50vh;
        /* Don't cover entire screen, allow keyboard */
        border-radius: 0 0 8px 8px;
        /* Look attached to input */
    }

    .mechano-pf-search-bar {
        position: relative;
        /* Ensure wrapper stays above dropdown if needed, but below off-canvas cart */
        z-index: 999;
    }
}

/* =========================================
   Active Vehicle Button (Elementor Enhanced)
   ========================================= */

/* Green checkmark badge — active vehicle indicator */
.mechano-av-badge {
    position: absolute !important;
    bottom: -2px;
    right: -6px;
    width: 20px;
    height: 20px;
    background-color: #22c55e;
    color: #fff;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    border: 2px solid #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
    pointer-events: none;
    z-index: 10;
}

/* Ensure the Elementor icon wrapper is the positioning context for the badge */
.elementor-button-icon:has(.mechano-av-badge),
a.elementor-button:has(.mechano-av-badge) {
    position: relative !important;
    overflow: visible !important;
}

/* Dropdown (appended to .elementor-widget-button wrapper) */
.mechano-av-widget-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    min-width: 300px;
    background-color: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.25s ease-out;
    z-index: 1000;
}

.mechano-av-active:hover .mechano-av-widget-dropdown,
.mechano-av-active:focus-within .mechano-av-widget-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Ensure the Elementor wrapper allows overflow for the dropdown */
.mechano-av-active,
.mechano-av-active .elementor-widget-container,
.mechano-av-active .elementor-button-wrapper {
    overflow: visible !important;
}

.mechano-av-dropdown-content {
    display: flex;
    flex-direction: column;
    padding: 16px;
    gap: 12px;
}

/* Dropdown header with logo + info */
.mechano-av-dropdown-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mechano-av-dropdown-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    flex-shrink: 0;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 4px;
}

.mechano-av-dropdown-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.mechano-av-label {
    font-size: 11px;
    color: #6b7280;
    text-transform: uppercase;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0.5px;
}

.mechano-av-vehicle {
    font-size: 14px;
    color: #111827;
    font-weight: 700;
    line-height: 1.3;
}

.mechano-av-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.mechano-av-btn-primary {
    align-self: stretch;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--e-global-color-accent, #0088ff);
    color: #fff !important;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none !important;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mechano-av-btn-primary:hover {
    background-color: var(--e-global-color-primary, #000045);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 69, 0.3);
}

.mechano-av-change {
    align-self: stretch;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    color: var(--e-global-color-primary, #000045) !important;
    border: 1px solid var(--e-global-color-primary, #000045);
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none !important;
    gap: 6px;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mechano-av-change:hover {
    background-color: var(--e-global-color-primary, #000045);
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 69, 0.3);
}

/* CTA Focus Highlight Animation & Overlay */
.mechano-focus-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 45, 0.75);
    z-index: 999998;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    backdrop-filter: blur(4px);
}

.mechano-focus-overlay.active {
    opacity: 1;
    pointer-events: all;
    cursor: pointer;
}

.mechano-focus-elevated {
    position: relative !important;
    z-index: 999999 !important;
}

@keyframes mechano-pulse-glow {
    0% {
        box-shadow: 0 0 0 0 rgba(14, 165, 233, 0.6);
        outline: 2px solid rgba(14, 165, 233, 0.6);
    }

    50% {
        box-shadow: 0 0 0 20px rgba(14, 165, 233, 0);
        outline: 2px solid rgba(14, 165, 233, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(14, 165, 233, 0);
        outline: 2px solid transparent;
    }
}

.mechano-highlight-pulse {
    animation: mechano-pulse-glow 2s cubic-bezier(0.4, 0, 0.6, 1) forwards;
    border-radius: 10px;
    scroll-margin-top: 150px;
}

/* Mobile Adjustments */
@media (max-width: 600px) {
    .mechano-av-widget-dropdown {
        right: auto;
        left: -100px;
        min-width: 260px;
    }
}

/* ============================================
   BESTSELLERS SECTION
   ============================================ */
.mechano-bestsellers-section {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0;
}

.mechano-bestsellers-title {
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 30px;
    letter-spacing: 1px;
}

.mechano-bestsellers-grid {
    margin-bottom: 0 !important;
}

.mechano-bestsellers-grid .mechano-product-card {
    cursor: pointer;
}

@media (max-width: 768px) {
    .mechano-bestsellers-grid {
        grid-template-columns: 1fr !important;
    }

    .mechano-bestsellers-title {
        font-size: 22px;
    }
}

/* ============================================
   MOBILE ACTIVE VEHICLE (Off-Canvas Menu)
   ============================================ */
.mechano-avm {
    background: linear-gradient(135deg, var(--e-global-color-primary, #000045) 0%, var(--e-global-color-accent, #002d7a) 100%);
    border-radius: 12px;
    padding: 16px;
    color: #fff;
}

.mechano-avm-header,
.mechano-avm-empty {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.mechano-avm-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    background: #fff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.mechano-avm-icon svg {
    width: 22px;
    height: 22px;
    color: #fff;
}

.mechano-avm-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 4px;
}

.mechano-avm-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.mechano-avm-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
}

.mechano-avm-vehicle {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mechano-avm-engine {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.75);
}

.mechano-avm-actions {
    display: flex;
    gap: 8px;
}

.mechano-avm-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    text-align: center;
    transition: background 0.3s, transform 0.2s;
    white-space: nowrap;
    cursor: pointer;
    border: none;
}

.mechano-avm-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 173, 239, 0.4);
    background: rgba(255, 255, 255, 0.3);
}

.mechano-avm-btn-primary {
    background: #fff;
    color: var(--e-global-color-accent, #002d7a) !important;
}

.mechano-avm-btn-primary:hover {
    background: rgba(255, 255, 255, 0.88);
}

.mechano-avm-btn-secondary {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.mechano-avm-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}