.btn.btn-sm {
    padding: 0.25rem 0.5rem;
    line-height: 1;
}

.d-inline-flex span {
    min-width: 2rem;
    display: inline-block;
}


/* Catalog-specific styles */
.vehicle-dropdown {
    background: var(--page-primary);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: var(--page-border-radius-sm);
    font-size: var(--page-font-size-sm);
    font-weight: var(--page-font-weight-medium);
    min-width: 200px;
}

    .vehicle-dropdown:focus {
        box-shadow: none;
        background: var(--page-primary);
        color: white;
    }

.vehicle-selector {
    position: relative;
    min-width: 300px;
}

.vehicle-dropdown-container {
    position: relative;
}

.vehicle-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--page-bg);
    border: 1px solid var(--page-border);
    border-radius: var(--page-border-radius);
    box-shadow: var(--page-shadow);
    z-index: 1000;
    max-height: 400px;
    overflow-y: auto;
    display: none;
    background-color: white;
}

    .vehicle-dropdown-menu.show {
        display: block;
    }

.add-vehicle-link {
    color: var(--page-primary);
    text-decoration: none;
    font-size: var(--page-font-size-sm);
    font-weight: var(--page-font-weight-medium);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid var(--page-border);
}

    .add-vehicle-link:hover {
        color: var(--page-primary);
        text-decoration: none;
        background: var(--page-content-bg);
    }

    .add-vehicle-link i {
        font-size: 12px;
    }

.all-vehicles-section {
    padding: 16px;
}

.all-vehicles-title {
    font-size: var(--page-font-size-base);
    font-weight: var(--page-font-weight-semibold);
    color: var(--page-text-primary);
    margin-bottom: 12px;
}

.vehicle-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.vehicle-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--page-border);
}

    .vehicle-item:last-child {
        border-bottom: none;
    }

.vehicle-name {
    font-size: var(--page-font-size-sm);
    color: var(--page-text-primary);
}

.vehicle-remove {
    background: none;
    border: none;
    color: var(--page-text-muted);
    cursor: pointer;
    padding: 4px;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .vehicle-remove:hover {
        background: var(--page-content-bg);
        color: var(--page-danger);
    }

.vehicle-section {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.category-section {
    background: var(--page-bg);
    border: 1px solid var(--page-border);
    border-radius: var(--page-border-radius);
    padding: 12px;
    margin-bottom: 12px;
}

.category-section-title {
    font-size: 20px;
    font-weight: var(--page-font-weight-bold);
    color: var(--page-text-primary);
     margin-bottom: 0px;
}

.category-section-subtitle {
    color: var(--page-text-muted);
    font-size: var(--page-font-size-sm);
    margin-left: 8px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.category-card {
    background: var(--page-bg);
    border: 1px solid var(--page-border);
    border-radius: var(--page-border-radius);
    padding: 20px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-height: 160px;
}

    .category-card:hover {
        text-decoration: none;
        color: inherit;
        box-shadow: var(--page-shadow);
        transform: translateY(-2px);
    }

.category-card-image {
    width: 144px;
    height: 144px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .category-card-image img {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
    }

.category-card-title {
    font-size: var(--page-font-size-base);
    font-weight: var(--page-font-weight-semibold);
    color: var(--page-text-primary);
    margin-bottom: 4px;
    line-height: 1.3;
}

.category-card-count {
    font-size: var(--page-font-size-sm);
    color: var(--page-text-muted);
}

	.category-icon {
    width: 60px;
    height: 60px;
    /*margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;*/
}			
.other-categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.other-category-card {
    background: var(--page-bg);
    border: 1px solid var(--page-border);
    border-radius: var(--page-border-radius);
    padding: 16px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-height: 140px;
}

    .other-category-card:hover {
        text-decoration: none;
        color: inherit;
        box-shadow: var(--page-shadow);
        transform: translateY(-1px);
    }

.other-category-card-image {
    width: 50px;
    height: 50px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .other-category-card-image img {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
    }

.other-category-card-title {
    font-size: var(--page-font-size-sm);
    font-weight: var(--page-font-weight-semibold);
    color: var(--page-text-primary);
    margin-bottom: 8px;
    line-height: 1.3;
    flex-grow: 1;
}

.view-more-link {
    color: var(--page-primary);
    text-decoration: none;
    font-size: var(--page-font-size-sm);
    font-weight: var(--page-font-weight-medium);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

    .view-more-link:hover {
        color: var(--page-primary);
        text-decoration: underline;
    }

@media (max-width: 768px) {
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .other-categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
}

@media (max-width: 480px) {
    .category-grid {
        grid-template-columns: 1fr;
    }
}

/* YMME Modal Styles */
.ymme-modal {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.ymme-modal-content {
    background: var(--page-bg);
    border-radius: var(--page-border-radius);
    box-shadow: var(--page-shadow);
    max-width: 600px;
    width: 90%;
    margin: 50px auto;
    position: relative;
}

.ymme-modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--page-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ymme-modal-title {
    font-size: 18px;
    font-weight: var(--page-font-weight-semibold);
    color: var(--page-text-primary);
    margin: 0;
}

.ymme-close-btn {
    background: none;
    border: none;
    color: var(--page-text-muted);
    font-size: 20px;
    cursor: pointer;
    padding: 4px;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .ymme-close-btn:hover {
        background: var(--page-content-bg);
        color: var(--page-text-primary);
    }

.ymme-modal-body {
    padding: 24px;
}

.ymme-dropdowns {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.ymme-dropdown-container {
    position: relative;
}

.ymme-dropdown {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--page-border);
    border-radius: var(--page-border-radius-sm);
    background: var(--page-bg);
    color: var(--page-text-secondary);
    font-size: var(--page-font-size-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: border-color 0.2s ease;
}

    .ymme-dropdown:hover {
        border-color: var(--page-primary);
    }

    .ymme-dropdown.active {
        border-color: var(--page-primary);
        color: var(--page-text-primary);
    }

.ymme-dropdown-arrow {
    color: var(--page-text-muted);
    font-size: 12px;
    transition: transform 0.2s ease;
}

.ymme-dropdown.active .ymme-dropdown-arrow {
    transform: rotate(180deg);
}

/* YMME Button Selector Styles */
.ymme-button-selectors {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    padding: 20px 0;
}

.ymme-selector-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ymme-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--page-text-primary);
    margin-bottom: 0;
}

.ymme-selector-btn {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    background: white;
    color: #495057;
    font-size: 14px;
    text-align: left;
    min-height: 38px;
    width: 100%;
    transition: all 0.15s ease-in-out;
}

    .ymme-selector-btn:hover:not(:disabled) {
        border-color: #86b7fe;
        box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
    }

    .ymme-selector-btn:focus {
        border-color: #86b7fe;
        box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
        outline: 0;
    }

    .ymme-selector-btn:disabled {
        background: #e9ecef;
        color: #6c757d;
        cursor: not-allowed;
        border-color: #ced4da;
    }

.selector-text {
    flex: 1;
    font-weight: 400;
}

.ymme-selector-btn .fas {
    font-size: 12px;
    color: #6c757d;
}

/* Popover Content Styles */
.popover {
    max-width: 400px;
    border: 1px solid #dee2e6;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

    .popover.bs-popover-bottom {
        margin-top: 8px;
    }

    .popover .popover-body {
        padding: 0;
    }

    .popover .list-group {
        max-height: 250px;
        overflow-y: auto;
        border: none;
        margin: 0;
    }

    .popover .list-group-item {
        border: none;
        border-bottom: 1px solid #dee2e6;
        padding: 10px 15px;
        cursor: pointer;
        font-size: 14px;
    }

        .popover .list-group-item:last-child {
            border-bottom: none;
        }

        .popover .list-group-item:hover {
            background: var(--page-primary);
            color: white;
        }

/* Year Grid in Popover */
.year-grid-popover {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    padding: 15px;
    width: 400px;
    overflow-y:auto;
    max-height: 380px;
}

.year-item-popover {
    padding: 8px 12px;
    text-align: center;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s ease;
    min-width: 50px;
}

    .year-item-popover:hover {
        background: var(--page-primary);
        color: white;
        border-color: var(--page-primary);
    }

/* Year Grid Styles */
.year-grid-container {
    display: none;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-top: 8px;
    padding: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1000;
}

    .year-grid-container.show {
        display: block;
    }

.year-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
}

.year-item {
    padding: 8px 12px;
    text-align: center;
    background: var(--page-bg);
    border: 1px solid var(--page-border);
    border-radius: var(--page-border-radius-sm);
    cursor: pointer;
    font-size: var(--page-font-size-sm);
    color: var(--page-text-primary);
    transition: all 0.2s ease;
}

    .year-item:hover {
        background: var(--page-primary);
        color: white;
        border-color: var(--page-primary);
    }

    .year-item.selected {
        background: var(--page-primary);
        color: white;
        border-color: var(--page-primary);
    }

/* Vertical List Styles */
.vertical-list-container {
    display: none;
    background: var(--page-bg);
    border: 1px solid var(--page-border);
    border-radius: var(--page-border-radius);
    margin-top: 16px;
    max-height: 300px;
    overflow-y: auto;
}

    .vertical-list-container.show {
        display: block;
    }

.vertical-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.vertical-list-item {
    padding: 12px 16px;
    border-bottom: 1px solid var(--page-border);
    cursor: pointer;
    font-size: var(--page-font-size-sm);
    color: var(--page-text-primary);
    transition: background-color 0.2s ease;
}

    .vertical-list-item:last-child {
        border-bottom: none;
    }

    .vertical-list-item:hover {
        background: var(--page-content-bg);
    }

    .vertical-list-item.selected {
        background: var(--page-primary);
        color: white;
    }

/* YMME Responsive Design */
@media (max-width: 991px) {
    .ymme-button-selectors {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .year-grid-popover {
        width: 300px;
        grid-template-columns: repeat(4, 1fr);
    }

    .popover {
        max-width: 320px;
    }
}

@media (max-width: 767px) {
    .ymme-button-selectors {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .ymme-selector-btn {
        min-height: 44px;
        font-size: 16px;
        padding: 10px 14px;
    }

    .year-grid-popover {
        width: 280px;
        grid-template-columns: repeat(4, 1fr);
        gap: 6px;
        padding: 12px;
    }

    .year-item-popover {
        padding: 10px 8px;
        font-size: 14px;
        min-width: 45px;
    }

    .popover {
        max-width: 300px;
    }

        .popover .list-group-item {
            padding: 12px 15px;
            font-size: 16px;
        }
}

@media (max-width: 575px) {
    .modal-dialog {
        margin: 10px;
    }

    .ymme-button-selectors {
        padding: 15px 0;
        gap: 10px;
    }

    .ymme-selector-btn {
        min-height: 48px;
        font-size: 16px;
    }

    .year-grid-popover {
        width: 260px;
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
        padding: 10px;
    }

    .year-item-popover {
        padding: 12px 6px;
        font-size: 14px;
        min-width: 60px;
    }

    .popover {
        max-width: 280px;
    }

        .popover.bs-popover-bottom {
            margin-top: 5px;
        }
}

@media (max-width: 768px) {
    .ymme-dropdowns {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .year-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .ymme-modal-content {
        margin: 20px auto;
        width: 95%;
    }
}

@media (max-width: 480px) {
    .ymme-dropdowns {
        grid-template-columns: 1fr;
    }

    .year-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .ymme-modal-header {
        padding: 16px 20px;
    }

    .ymme-modal-body {
        padding: 20px;
    }
}

/* ===== PARTY TYPE LIST & POPOVER STYLES ===== */

/* Single line header with responsive design */
.category-header-single-line {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.category-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.category-search-responsive {
    flex: 1;
    /*min-width: 250px;
    max-width: 400px;*/
}

@media (max-width: 768px) {
    .category-header-single-line {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .category-search-responsive {
        max-width: 100%;
    }
}

/* Common list-group styling for parts */
.parts-list-container {
    overflow: hidden;
    background: white;
}

    .parts-list-container .list-group-item,
    .parts-list-group .list-group-item {
        border: none;
		border-radius: unset;						   
        border-bottom: 1px solid #dee2e6;
        padding: 12px 15px;
        cursor: pointer;
        font-size: 14px;
        background: white;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

        

        .parts-list-container .list-group-item:hover,
        .parts-list-group .list-group-item:hover {
            background: #CFE2FF;
        }

            .parts-list-container .list-group-item:hover .part-name,
            .parts-list-group .list-group-item:hover .part-name {
                color: #333;
            }

.part-name {
    flex: 1;
    color: #333;
    text-decoration: none;
}

/* Grid layout for parts sections */
.parts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.parts-section {
    background: white;
    border-radius: 8px;
    padding: 0;
}

.parts-section-title {
    padding: 15px;
    margin: 0;
    border-bottom: 1px solid #dee2e6;
    background: #f8f9fa;
    border-radius: 8px 8px 0 0;
}

/* Mobile popover specific styles */
.mobile-popover-container {
    max-width: 338px;
    margin: 0 auto;
    height: 100vh;
    overflow: hidden;
    background: white;
    border: 1px solid #dee2e6;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.mobile-popover-header {
    position: sticky;
    top: 0;
    background: white;
    z-index: 100;
    border-bottom: 1px solid #e9ecef;
    padding: 15px;
}

.mobile-popover-content {
    height: calc(100vh - 140px);
    overflow-y: auto;
    padding: 0;
}

.user-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}

.user-greeting {
    display: flex;
    align-items: center;
    gap: 8px;
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #6c757d;
}

.close-btn {
    background: none;
    border: none;
    font-size: 20px;
    color: #6c757d;
    cursor: pointer;
}

.back-link {
    color: #007bff;
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 10px;
    display: inline-block;
}

    .back-link:hover {
        text-decoration: underline;
    }

/* Search container styles */
.search-container {
    position: relative;
}

.search-input {
    width: 100%;
    padding: 10px 15px 10px 40px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
}

.search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
}

/* Popover specific list group styles */
.parts-list-group {
    max-height: none;
    overflow-y: visible;
    border: none;
    margin: 0;
    padding: 10px 15px 10px 10px;
}

    .parts-list-group .list-group-item {
        width: 306px;
    }

        .parts-list-group .list-group-item:hover {
            color: white;
        }

        .parts-list-group .list-group-item.selected {
            background: white;
            color: #333;
            font-weight: normal;
        }

.part-count {
    color: #6c757d;
    font-size: 13px;
}

.parts-list-group .list-group-item:hover .part-count {
    color: white;
}

/* Mobile popover body overflow */
.mobile-popover-container body {
    overflow: hidden;
}

/* ===== PART RESULTS PAGE STYLES ===== */

/* Filters Sidebar */
.filters-sidebar {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    border: 1px solid #e9ecef;
}

.filter-section {
    border-bottom: 1px solid #e9ecef;
    /*padding-bottom: 15px;*/
}

    .filter-section:last-child {
        border-bottom: none;
    }

.vehicle-info-card {
    padding: 12px 15px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    font-size: 14px;
    font-weight: 500;
}

.current-filter {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 12px 15px;
}

.filter-link {
    color: #007bff;
    text-decoration: none;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

    .filter-link:hover {
        color: #0056b3;
        text-decoration: none;
    }

.filter-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.clear-all-link {
    color: #007bff;
    text-decoration: none;
    font-size: 14px;
}

    .clear-all-link:hover {
        text-decoration: underline;
    }

.active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-tag {
    background: #e7f3ff;
    color: #0056b3;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

    .filter-tag i {
        cursor: pointer;
        font-size: 10px;
    }

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 10px 0;
}

    .filter-header i {
        transition: transform 0.2s ease;
    }

.filter-content {
    padding: 10px 0;
}

.form-check {
    margin-bottom: 8px;
}

.form-check-label {
    font-size: 14px;
    color: #333;
}

.show-more-link {
    color: #007bff;
    text-decoration: none;
    font-size: 14px;
    margin-top: 10px;
    display: inline-block;
}

    .show-more-link:hover {
        text-decoration: underline;
    }

.price-range-slider {
    padding: 0 5px;
}

.price-inputs span {
    font-size: 14px;
    color: #666;
}

/* Product Breadcrumb */
.product-breadcrumb .breadcrumb {
    background: none;
    padding: 0;
    margin: 0;
}

.product-breadcrumb .breadcrumb-item a {
    color: #007bff;
    text-decoration: none;
}

.product-breadcrumb .breadcrumb-item.active {
    color: #6c757d;
}

/* Results Header */
.results-header {
    /*border-bottom: 1px solid #e9ecef;*/
    padding-bottom: 15px;
}

.results-title {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.product-count {
    color: #6c757d;
    font-weight: 400;
    font-size: 16px;
}

.results-controls {
    align-items: center;
}

.sort-controls label {
    font-size: 14px;
    color: #333;
    white-space: nowrap;
}

.sort-controls select {
    min-width: 150px;
}

.view-controls .btn {
    width: 40px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 20px;
}

.product-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    display: grid;
    grid-template-columns: 120px 1fr auto;
    gap: 20px;
    align-items: start;
    position: relative;
    transition: box-shadow 0.2s ease;
    border: 1px solid #DADEF2;
}

    .product-card:hover {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }

.discount-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #dc3545;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    z-index: 2;
}


    .product-image img {
        width: 100px;
        height: 100px;
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
    }

.product-details {
    font-size:15px;
    flex: 1;
}

.product-name {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    line-height: 1.4;
}

.product-part {
    color: #6c757d;
    font-size: 14px;
    margin-bottom: 4px;
}

.product-images {
    color: #6c757d;
    font-size: 14px;
    margin-bottom: 0;
}

.product-info {
    text-align: right;
   
}

.year-badge {
    background: #e7f3ff;
    color: #0056b3;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    display: inline-block;
    margin-bottom: 8px;
}

.car-qty {
    background: #F2DAF0;
    color: #0056b3;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 8px;
    display: inline-block;
    color: #D10EC4;
}

.stock-status {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 5px;
    margin-bottom: 12px;
    font-size: 14px;
}

    .stock-status.in-stock {
        color: #28a745;
    }

    .stock-status.out-of-stock {
        color: #dc3545;
    }

.pricing {
    margin-bottom: 15px;
}

.list-price {
    color: #6c757d;
    font-size: 13px;
    text-decoration: line-through;
    margin-bottom: 4px;
}

.your-price {
    color: #333;
    font-size: 16px;
    font-weight: 600;
}

.product-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

    .product-actions .btn {
        font-size: 13px;
        padding: 6px 12px;
    }

/* Responsive Design */
@media (max-width: 992px) {
    .filters-sidebar {
        margin-bottom: 20px;
    }

    .results-header {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }

    .results-controls {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .sort-controls {
        justify-content: space-between;
    }
}

@media (max-width: 768px) {
    .product-card {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .product-info {
        text-align: center;
    }

    .stock-status {
        justify-content: center;
    }

    .product-actions {
        justify-content: center;
    }

    .filters-sidebar {
        padding: 15px;
    }
}

@media (max-width: 576px) {
    .product-card {
        padding: 15px;
        gap: 15px;
    }

    .product-image {
        width: 100px;
        height: 100px;
        margin: 0 auto;
    }

    .product-actions {
        flex-direction: column;
    }

        .product-actions .btn {
            width: 100%;
        }
}

/* Part Results V1 - Grid Layout */
.products-grid-v1 {
    width: 100%;
    /* max-width: 993px; */
    padding: 10px;
    gap: 10px;
    background: var(--Surface-Surface-primary, #FFFFFF);
    border: 1px solid var(--Color-Neutrals-10, #CFD3E5);
    border-radius: 8px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin: 0 auto;
}

.product-card-v1 {
    width: 100%;
    /* max-width: 304.33px; */
    height: auto;
    min-height: 256px;
    padding: 16px;
    border: 1px solid var(--border-Border-tertiary, #DADEF2);
    border-radius: 8px;
    background: white;
    position: relative;
    transition: box-shadow 0.2s ease;
    display: grid;
    grid-template-columns: 94px 1fr;
    grid-template-rows: 1fr auto;
    gap: 6px;
    align-items: start;
}

.product-card-v1:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.product-card-v1 .product-image {
    width: 94px;
    height: 94px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border-radius: 6px;
    overflow: hidden;
}

.product-card-v1 .product-image img {
    max-width: 100%;
    max-height: 100%;
    /*object-fit: contain;*/
}

.product-left-section {
    width: 100%;
    max-width: 94px;
    height: auto;
    min-height: 146.4px;
    gap: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 auto 16px auto;
}

.product-images-link {
    color: #6c757d;
    font-size: 12px;
    text-decoration: none;
    margin-bottom: 8px;
    display: block;
}

.product-images-link:hover {
    color: #007bff;
    text-decoration: underline;
}

.product-card-v1 .car-qty {
    margin-bottom: 0;
    align-self: flex-start;
}

.product-card-v1 .product-details {
    margin-bottom: 12px;
}

.product-card-v1 .product-name {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
    line-height: 1.3;
}

.product-card-v1 .product-part {
    color: #6c757d;
    font-size: 12px;
    margin-bottom: 6px;
}

.product-badges {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}

.product-card-v1 .stock-status {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 8px;
    font-size: 14px;
    justify-content: flex-start;
}

.product-card-v1 .pricing {
    margin-bottom: 12px;
}

.product-card-v1 .pricing .core-price,
.product-card-v1 .pricing .list-price {
    color: #6c757d;
    font-size: 13px;
    margin-bottom: 2px;
}

.product-card .pricing .core-price,
.product-card .pricing .list-price {
    color: #6c757d;
    font-size: 13px;
    margin-bottom: 2px;
}


.product-card-v1 .pricing .your-price {
    color: #333;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 0;
}


.product-card-v1 .product-actions {
    grid-column: 1 / -1;
    display: flex;
    gap: 8px;
    justify-content: flex-start;
    margin-top: 12px;
}

.product-card-v1 .product-actions .btn {
    font-size: 12px;
    padding: 8px 16px;
    white-space: nowrap;
    flex: 1;
    min-width: 80px;
}

.product-card-v1 .product-info {
    width: 100%;
    height: auto;
    gap: 0px!important;
    display: flex;
    flex-direction: column;
    text-align: left;
    align-items: flex-start !important;
}

.product-card .product-info {
    width: 100%;
    height: auto;
    gap: 0px !important;
    display: flex;
    flex-direction: column;
    text-align: right;
    align-items: flex-end !important;
}

/* Pagination */
.pagination-container {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.pagination {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pagination .page-link {
    padding: 8px 12px;
    border: 1px solid #dee2e6;
    color: #007bff;
    text-decoration: none;
    border-radius: 4px;
}

.pagination .page-link:hover {
    background: #e9ecef;
}

.pagination .page-link.active {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

@media (max-width: 992px) {
    .products-grid-v1 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .products-grid-v1 {
        grid-template-columns: 1fr;
    }
}

.part-section-header {
    background: var(--page-bg);
    border: 1px solid var(--page-border);
    border-radius: var(--page-border-radius);
    padding: 12px;
    margin-bottom: 12px;
}

.hidden {
    display: none !important;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: var(--bs-breadcrumb-divider, ">"); 
}

/* Full-screen blurred overlay */
.mobile-popover-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(6px);
    /* background-color: rgba(0, 0, 0, 0.4); */
    display: none;
    z-index: 2000;
    padding: 20px;
}

/* Centered popover box */
.mobile-popover-container .popover-content {
    background: #fff;
    border-radius: 12px;
    max-width: 480px;
    margin: 10vh auto;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Thumbnail area styles */
.thumbnail-wrapper {
    max-width: 475px;
    overflow: hidden;
    position: relative;
    margin: 0 auto;
}

.product-image-thumbnail-container {
    overflow-x: auto !important;
    white-space: nowrap;
    display: flex;
    gap: 8px;
    padding: 5px 10px;
    scroll-behavior: smooth;
}

.product-thumb {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border: 2px solid transparent;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

    .product-thumb:hover,
    .product-thumb.active {
        border-color: #007bff;
        transform: scale(1.05);
    }

/* Scroll arrows */
.scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.85);
    border: 1px solid #ccc;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    font-size: 18px;
    line-height: 28px;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 10;
}

.scroll-btn.scroll-left {
    left: -40px;
}

.scroll-btn.scroll-right {
    right: -40px;
}

/* Fade-in when visible */
.scroll-btn.show {
    opacity: 1;
}

/* Magnifier styles */
.magnify-container {
    position: relative;
    display: inline-block;
}

#magnifier-glass {
    position: absolute;
    border: 2px solid #ccc;
    border-radius: 50%;
    cursor: none;
    width: 100px;
    height: 100px;
    opacity: 0;
    pointer-events: none;
    background-repeat: no-repeat;
    background-size: 700px 700px; /* adjust zoom level */
    transition: opacity 0.2s ease-in-out;
}

/* ===== PRODUCT DETAILS PAGE STYLES ===== */

/* Product Details Specific Styles */
.product-details-container {
    background: var(--page-bg);
    border: 1px solid var(--page-border);
    border-radius: var(--page-border-radius);
    padding: 24px;
    margin-bottom: 24px;
}

.product-thumbnails {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.thumbnail-item {
    width: 80px;
    height: 80px;
    border: 2px solid transparent;
    border-radius: var(--page-border-radius-sm);
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.2s ease;
    background: var(--page-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
}

.thumbnail-item:hover,
.thumbnail-item.active {
    border-color: var(--page-primary);
}

.thumbnail-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.main-product-image {
    position: relative;
    background: var(--page-bg);
    border: 1px solid var(--page-border);
    border-radius: var(--page-border-radius);
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

.main-product-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.zoom-icon {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--page-border);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.zoom-icon:hover {
    background: var(--page-primary);
    color: white;
}

.product-title {
    font-size: 24px;
    font-weight: var(--page-font-weight-bold);
    color: var(--page-text-primary);
    margin-bottom: 8px;
}

.part-number {
    color: var(--page-text-muted);
    font-size: var(--page-font-size-base);
    margin-bottom: 10px;
}

.price-section {
    margin-bottom: 8px;
}

.current-price {
    font-size: 28px;
    font-weight: var(--page-font-weight-bold);
    color: var(--page-text-primary);
}

.original-price {
    font-size: 16px;
    color: var(--page-text-muted);
    text-decoration: line-through;
    margin-left: 12px;
}

.stock-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: var(--page-font-size-sm);
    font-weight: var(--page-font-weight-medium);
    margin-bottom: 8px;
}

.stock-status.in-stock {
    background: #E8F5E8;
    color: #28a745;
}

.stock-status.out-of-stock {
    background: #FFE6E6;
    color: #dc3545;
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 0;
    margin-bottom: 8px;
}

.qty-controls {
    display: flex;
    align-items: center;
    border: 1px solid #DEE2E6;
    border-radius: 6px;
    overflow: hidden;
    margin-right: 12px;
}

.qty-btn {
    width: 36px;
    height: 36px;
    border: none;
    background: #F8F9FA;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #6C757D;
}

.qty-btn:hover {
    background: #E9ECEF;
    color: #495057;
}

.qty-input {
    width: 50px;
    height: 36px;
    text-align: center;
    border: 1px solid #DEE2E6;
    /*border-left: 1px solid #DEE2E6;
    border-right: 1px solid #DEE2E6;*/
    background: white;
    font-size: 14px;
    outline: none;
}

.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn-add-to-cart {
    background: white;
    border: 1px solid #007BFF;
    color: #007BFF;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 400;
    font-size: 14px;
    transition: all 0.2s ease;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.btn-add-to-cart:hover {
    background: #007BFF;
    color: white;
}

.btn-buy-now {
    background: var(--page-primary);
    border: 1px solid var(--page-primary);
    color: white;
    padding: 12px 24px;
    border-radius: var(--page-border-radius-sm);
    font-weight: var(--page-font-weight-medium);
    transition: all 0.2s ease;
}

.btn-buy-now:hover {
    background: #0056b3;
    border-color: #0056b3;
}

.product-tabs {
    margin-top: 10px;
    margin-bottom: 0;
}

.product-tabs .nav-tabs {
    border-bottom: 1px solid #E9ECEF;
    margin-bottom: 0;
}

.product-tabs .nav-tabs .nav-link {
    border: none;
    border-bottom: 2px solid transparent;
    color: #6C757D;
    font-weight: 400;
    font-size: 14px;
    padding: 8px 0 12px 0;
    margin-right: 24px;
    background: transparent;
}

.product-tabs .nav-tabs .nav-link.active {
    color: #007BFF;
    border-bottom-color: #007BFF;
    background: transparent;
}

.product-tabs .tab-content {
    padding: 16px 0 0 0;
    margin-bottom: 16px;
    border: initial;
}

.details-table {
    width: 100%;
    border-collapse: collapse;
}

.details-table td {
    padding: 6px 0;
    vertical-align: top;
    font-size: 14px;
    line-height: 1.3;
}

.details-table td:first-child {
    color: #6C757D;
    font-weight: 400;
    width: 180px;
    padding-right: 16px;
}

.details-table td:last-child {
    color: #212529;
    font-weight: 400;
}

.related-products {
    background: var(--page-bg);
    border: 1px solid var(--page-border);
    border-radius: var(--page-border-radius);
    padding: 24px;
    margin-top: 32px;
}

.related-product-card {
    background: var(--page-bg);
    border: 1px solid var(--page-border);
    border-radius: var(--page-border-radius);
    padding: 16px;
    text-align: center;
    transition: all 0.2s ease;
}

.related-product-card:hover {
    box-shadow: var(--page-shadow);
    transform: translateY(-2px);
}

.related-product-image {
    width: 100px;
    height: 100px;
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--page-content-bg);
    border-radius: var(--page-border-radius-sm);
}

.related-product-image img {
    max-width: 80px;
    max-height: 80px;
    object-fit: contain;
}

.related-product-title {
    font-size: var(--page-font-size-sm);
    font-weight: var(--page-font-weight-semibold);
    color: var(--page-text-primary);
    margin-bottom: 4px;
}

.related-product-part {
    font-size: var(--page-font-size-sm);
    color: var(--page-text-muted);
    margin-bottom: 8px;
}

.related-product-price {
    font-size: var(--page-font-size-base);
    font-weight: var(--page-font-weight-semibold);
    color: var(--page-text-primary);
    margin-bottom: 8px;
}

.warranty-section {
    padding: 10px 0px;
    margin-bottom: 12px;
    border: 1px solid var(--page-border);
    border-right: none;
    border-left: none;
}

.application-guide-link {
    color: #007BFF;
    text-decoration: none;
    font-weight: 400;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 0;
}

.application-guide-link:hover {
    text-decoration: underline;
    color: #0056b3;
}

/* Product Details Responsive Design */
@media (max-width: 1200px) {
    .main-product-image {
        min-height: 350px;
    }
}

@media (max-width: 992px) {
    .product-thumbnails {
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 8px;
    }
    
    .thumbnail-item {
        flex-shrink: 0;
    }
    
    .main-product-image {
        min-height: 300px;
        padding: 20px;
    }
    
    .product-tabs {
        margin-top: 16px;
    }
}

@media (max-width: 768px) {
    .product-details-container {
        padding: 16px;
    }
    
    .product-title {
        font-size: 20px;
    }
    
    .current-price {
        font-size: 24px;
    }
    
    .quantity-selector {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    
    .qty-controls {
        margin-right: 0;
        justify-content: center;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .product-tabs .nav-tabs .nav-link {
        margin-right: 16px;
        font-size: 13px;
    }
    
    .details-table td:first-child {
        width: 140px;
        font-size: 13px;
    }
    
    .details-table td:last-child {
        font-size: 13px;
    }
    
    .product-tabs {
        margin-top: 12px;
    }
}

@media (max-width: 576px) {
    .thumbnail-item {
        width: 60px;
        height: 60px;
    }
    
    .main-product-image {
        min-height: 250px;
        padding: 16px;
    }
    
    .quantity-selector {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    
    .qty-controls {
        justify-content: center;
        margin-right: 0;
    }
    
    .details-table td:first-child {
        width: 120px;
        font-size: 12px;
    }
    
    .details-table td:last-child {
        font-size: 12px;
    }
    
    .product-tabs .nav-tabs .nav-link {
        margin-right: 12px;
        font-size: 12px;
        padding: 6px 0;
    }
}

/* Modal Enhancements for Attributes and Documents */
.document-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.document-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.document-icon {
    transition: transform 0.2s ease;
}

.document-card:hover .document-icon {
    transform: scale(1.05);
}

/* Attribute cards styling */
.modal-body .card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.modal-body .card:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Modal responsive adjustments */
@media (max-width: 768px) {
    .modal-dialog {
        margin: 10px;
    }
    
    .modal-body .col-lg-3 {
        margin-bottom: 1rem;
    }
    
    .document-icon {
        padding: 1.5rem !important;
    }
    
    .document-icon i {
        font-size: 1.5rem !important;
    }
}

.attributeRow {
    color: var(--page-text-primary)!important;
}

.attributeColumn {
    color: var(--page-text-primary)!important;
}