/* =====================================================
SHOP2 MODERN
Uses base.css/components.css/searchresults.css for shared UI.
Only page-specific shop structure lives here.
===================================================== */

.shop-page-wrap {
    width: min(100%, 1900px);
    margin: 0 auto;
    padding: 0 14px 34px;
}
.shop-hero {
padding:8px 15px 15px 15px;
}

.shop-hero .shop-home-link {  
    margin-bottom: 0px;
    padding-bottom: 0px;
    font-weight: 800;
}
  .shop-home-link {
  margin-top: 10px;
}

.search-hero{    
    margin-bottom: 8px;
    padding-bottom: 8px;
}
.shop-hub-section,
.shop-filter-panel,
.shop-selected-panel {
    margin: 0 0 18px;
    padding: 14px;
    border: 1px solid #e6e6e6;
    border-radius: 10px;
    background: #fff;
}

.shop-hub-section h2,
.shop-filter-panel h2,
.shop-selected-panel h2 {
    margin-bottom: 10px;
}

.shop-hub-list,
.shop-filter-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}

.shop-hub-list a,
.shop-filter-list a,
.shop-pill-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 42px;
    padding: 8px 10px;
    border: 1px solid #e4e4e4;
    border-radius: 8px;
    background: #fff;
    color: #111;
    font-weight: 800;
    line-height: 1.25;
}

.shop-hub-list a:hover,
.shop-filter-list a:hover,
.shop-pill-link:hover {
    border-color: #c40000;
    color: #c40000;
}

.shop-count {
    color: #666;
    font-size: .82rem;
    font-weight: 700;
    white-space: nowrap;
}

.shop-filter-toggles {
    display: grid;
    gap: 10px;
    margin: 0 0 14px;
}

.shop-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
    padding: 9px 11px;
    border: 1px solid #d8e7ff;
    border-radius: 8px;
    background: #f3f8ff;
    color: #174ea6;
    font-size: .92rem;
    font-weight: 800;
    cursor: pointer;
}

.shop-toggle input {
    width: 18px;
    height: 18px;
    accent-color: #174ea6;
}

.shop-view-toggle {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 14px;
}

.shop-view-toggle a {
    min-height: 38px;
    padding: 8px 12px;
    border: 1px solid #d6dbe3;
    border-radius: 6px;
    background: #f8fafc;
    color: #334155;
    font-weight: 800;
    text-transform: uppercase;
}

.shop-view-toggle a[aria-current="page"] {
    border-color: #c40000;
    background: #fff7f7;
    color: #c40000;
}

/* List view intentionally inherits searchresults.css card layout. */
.shop-results-list {
    display: grid;
    gap: 12px;
    max-width: 1500px;
    margin: 0 auto;
}

/* Grid view framework for later polishing. */
.shop-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 380px));
    justify-content: center;
    gap: 18px;
}

.shop-results-grid .search-result-card {
    width: 100%;
    max-width: 380px;
}

.shop-results-grid .search-result-buy {
    grid-column: 1 / -1;
    border-left: 0;
    border-top: 1px solid #f0f0f0;
    padding-left: 0;
    padding-top: 10px;
    text-align: left;
}

@media (min-width: 620px) {
    .shop-hub-list,
    .shop-filter-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .shop-filter-toggles {
        grid-template-columns: repeat(2, minmax(0, max-content));
        align-items: center;
    }

    /*.shop-results-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }*/
}

@media (min-width: 900px) {
    .shop-page-wrap {
        padding: 0 20px 42px;
    }

    .shop-hub-list,
    .shop-filter-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    /*.shop-results-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }*/
}

@media (min-width: 1180px) {
    /*.shop-results-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }*/
}

@media (max-width: 520px) {
    .shop-toggle {
        width: 100%;
        align-items: flex-start;
    }
}



/* =====================================================
DESKTOP FILTER SIDEBAR + RESULTS LAYOUT
===================================================== */

.shop-results-layout {
    display: grid;
    gap: 18px;
    align-items: start;
}

.shop-results-main {
    min-width: 0;
}

.shop-filter-panel {
    margin: 0 0 18px;
}

.shop-filter-nav {
    display: grid;
    gap: 14px;
}

.shop-filter-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 2px;
}

.shop-filter-head h2 {
    margin: 0;
}

.shop-clear-link {
    color: #c40000;
    font-weight: 800;
    text-decoration: underline;
    white-space: nowrap;
}

.shop-filter-group {
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
}

.shop-filter-group:first-of-type {
    padding-top: 0;
    border-top: 0;
}

.shop-filter-group h3 {
    margin: 0 0 8px;
    font-size: 1.05rem;
}

.shop-filter-item.is-selected > strong > a {
    border-color: #c40000;
    background: #fff7f7;
    color: #c40000;
}

.shop-filter-item.is-selected > strong {
    display: block;
}

.shop-nested-filter {
    margin: 8px 0 0 12px;
    padding: 10px 0 0 10px;
    border-left: 3px solid #e6e6e6;
}

.shop-nested-filter-title {
    margin: 0 0 8px;
    color: #555;
    font-family: 'Oswald', sans-serif;
    font-size: .95rem;
    font-weight: 700;
    text-transform: uppercase;
}

.shop-filter-list-nested {
    gap: 6px;
}

.shop-filter-list-nested a {
    min-height: 36px;
    padding: 7px 9px;
    font-size: .9rem;
}

@media (min-width: 1100px) {
    .shop-results-layout {
        grid-template-columns: 290px minmax(0, 1fr);
        gap: 20px;
        width: min(100%, 1900px); /*1800*/
        margin: 0 auto;
    }

    .shop-filter-panel {
        position: sticky;
        top: 12px;
        max-height: calc(100vh - 24px);
        overflow: auto;
        margin-bottom: 0;
    }

    .shop-filter-panel .shop-filter-list {
        grid-template-columns: 1fr;
    }

    .shop-results-main .shop-results-list {
        max-width: none;
        margin: 0;
    }
}

@media (max-width: 1099px) {
    .shop-filter-panel {
        position: static;
    }
}


/* =====================================================
SHOP HUB REDESIGN
Crawlable landing-page sections with modern cards.
===================================================== */
.shop-hub-hero {
    margin: 0 0 18px;
    padding: 24px 16px;
    border: 1px solid #e6e6e6;
    border-radius: 12px;
    background: linear-gradient(90deg, #fff, #fafafa, #fff);
}

.shop-hub-hero h2 {
    margin: 0 0 10px;
    font-size: clamp(1.7rem, 4vw, 2.6rem);
}

.shop-hub-intro {
    max-width: 980px;
    margin: 0 0 18px;
    color: #444;
    font-size: .98rem;
    line-height: 1.65;
}

.shop-hub-quick {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.shop-hub-quick a {
    display: grid;
    gap: 2px;
    min-height: 74px;
    padding: 14px;
    border: 1px solid #e4e4e4;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,.04);
}

.shop-hub-quick a:hover {
    border-color: #c40000;
    color: #111;
}

.shop-hub-quick strong {
    color: #111;
    font-family: 'Oswald', sans-serif;
    font-size: 1.1rem;
    line-height: 1.15;
}

.shop-hub-quick span {
    color: #666;
    font-size: .86rem;
    font-weight: 700;
}

.shop-hub-section {
    scroll-margin-top: 18px;
}

.shop-hub-section-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin: 0 0 12px;
}

.shop-hub-section-head h2 {
    margin: 0;
}

.shop-hub-eyebrow {
    margin: 0 0 2px;
    color: #c40000;
    font-family: 'Oswald', sans-serif;
    font-size: .82rem;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.shop-hub-top-link {
    color: #c40000;
    font-size: .86rem;
    font-weight: 800;
    text-decoration: underline;
    white-space: nowrap;
}

.shop-hub-note {
    margin: -4px 0 12px;
    color: #555;
    font-size: .92rem;
}

.shop-hub-note a {
    color: #174ea6;
    font-weight: 800;
    text-decoration: underline;
}

.shop-hub-list a {
    min-height: 44px;
}

.shop-hub-list-categories,
.shop-hub-list-makes,
.shop-hub-list-brands {
    align-items: stretch;
}

.shop-engine-groups {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.shop-engine-group {
    padding: 12px;
    border: 1px solid #eee;
    border-radius: 10px;
    background: #fff;
}

.shop-engine-group h3 {
    margin: 0 0 8px;
    font-size: 1.05rem;
}

.shop-engine-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.shop-engine-list a {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 6px 9px;
    border: 1px solid #e4e4e4;
    border-radius: 999px;
    background: #fff;
    color: #111;
    font-weight: 800;
    font-size: .88rem;
}

.shop-engine-list a:hover {
    border-color: #c40000;
    color: #c40000;
}

@media (min-width: 620px) {
    .shop-hub-quick {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .shop-engine-groups {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 900px) {
    .shop-hub-hero {
        padding: 30px 22px;
    }

    .shop-hub-quick {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .shop-hub-list-categories {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .shop-hub-list-makes {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }

    .shop-hub-list-brands {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (min-width: 1300px) {
    .shop-hub-list-categories {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }

    .shop-hub-list-makes {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }

    .shop-hub-list-brands {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }

    .shop-engine-groups {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 520px) {
    .shop-hub-section-head {
        display: block;
    }

    .shop-hub-top-link {
        display: inline-block;
        margin-top: 4px;
    }
}


/* =====================================================
SHOP HUB CATEGORY THUMBNAILS
Counts stay on categories only.
===================================================== */
.shop-category-image-link {
    display: grid !important;
    grid-template-columns: 46px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
}

.shop-category-thumb-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
}

.shop-category-thumb {
    width: auto;
    height: auto;
    max-width: 44px;
    max-height: 40px;
    object-fit: contain;
}

.shop-category-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* =====================================================
SHOP HUB BRAND A-Z DIRECTORY
Small logos + desktop hover tooltip. No counts.
===================================================== */
.shop-brand-alpha-nav {
    position: sticky;
    top: 0;
    z-index: 12;
    display: flex;
    gap: 0;
    margin: 0 -14px 18px;
    padding: 0 14px;
    overflow-x: auto;
    background: #fff;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #ddd;
    box-shadow: 0 2px 8px rgba(0,0,0,.04);
    -webkit-overflow-scrolling: touch;
}

.shop-brand-alpha-nav a {
    flex: 0 0 auto;
    padding: 12px 11px;
    color: #222;
    font-family: 'Oswald', sans-serif;
    font-size: .94rem;
    font-weight: 700;
    text-transform: uppercase;
    white-space: nowrap;
}

.shop-brand-alpha-nav a:hover,
.shop-brand-alpha-nav a:focus-visible {
    color: #c40000;
    box-shadow: inset 0 -3px 0 #c40000;
}

.shop-brand-letter-section {
    scroll-margin-top: 86px;
    padding-top: 10px;
}

.shop-brand-letter-heading {
    margin: 20px 0 10px;
    padding-bottom: 6px;
    border-bottom: 2px solid #c40000;
    color: #c40000;
    font-family: 'Oswald', sans-serif;
    font-size: 1.25rem;
    font-weight: 800;
}

.shop-brand-name-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}

.shop-brand-image-link {
    display: grid !important;
    grid-template-columns: 38px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 8px 10px;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    background: #fff;
    color: #111;
    font-weight: 700;
    line-height: 1.25;
}

.shop-brand-image-link:hover,
.shop-brand-image-link:focus-visible {
    color: #0070ba;
    border-color: #0070ba;
    box-shadow: 0 0 0 2px rgba(0,112,186,.15);
}

.shop-brand-thumb-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 34px;
    border-radius: 6px;
    background: #fff;
    overflow: hidden;
}

.shop-brand-thumb {
    width: auto;
    height: auto;
    max-width: 36px;
    max-height: 28px;
    object-fit: contain;
}

.shop-brand-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.shop-brand-hover-link {
    position: relative;
}

.shop-brand-hover-modal {
    display: none;
    position: absolute;
    z-index: 9999;
    width: 190px;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 6px 18px rgba(0,0,0,.18);
    pointer-events: none;
    text-align: center;
}

.shop-brand-hover-modal img {
    max-width: 160px;
    max-height: 110px;
    margin: 0 auto 8px;
    object-fit: contain;
}

.shop-brand-hover-modal div {
    color: #111;
    font-weight: 800;
    font-size: .9rem;
}

@media (min-width: 620px) {
    .shop-brand-name-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 900px) {
    .shop-brand-name-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 1200px) {
    .shop-brand-name-list {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .shop-brand-hover-modal {
        display: none !important;
    }
}

@media (max-width: 520px) {
    .shop-category-image-link {
        grid-template-columns: 42px minmax(0, 1fr) auto;
    }

    .shop-category-thumb-wrap {
        width: 42px;
        height: 42px;
    }

    .shop-category-thumb {
        max-width: 40px;
        max-height: 36px;
    }
}


/* =====================================================
SHOP RESULTS TOP CONTROLS
Restores styling for result count, selected filters, sort, toggles, and view buttons.
===================================================== */
.shop-results-control-panel {
    margin: 0 0 18px;
    padding: 14px;
    border: 1px solid #e6e6e6;
    border-radius: 10px;
    background: #fff;
}

.shop-results-control-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 12px;
}

.shop-results-control-head h2 {
    margin: 0 0 4px;
}

.shop-results-count {
    margin: 0;
    color: #555;
    font-size: .95rem;
}

.shop-results-count strong {
    color: #111;
    font-family: 'Oswald', sans-serif;
    font-size: 1.35rem;
}

.shop-active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 12px;
}

.shop-filter-chip {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 6px 9px;
    border: 1px solid #e6e6e6;
    border-radius: 8px;
    background: #f8fafc;
    color: #334155;
    font-size: .86rem;
    font-weight: 700;
}

.shop-filter-chip strong {
    color: #111;
}

.shop-control-row {
    display: grid;
    gap: 10px;
}

.shop-sort-control {
    display: grid;
    gap: 5px;
    color: #333;
    font-weight: 800;
}

.shop-sort-control span {
    font-size: .88rem;
}

.shop-sort-select {
    min-height: 44px;
}

.shop-filter-toggles {
    margin: 0;
}

.shop-view-toggle {
    margin: 0;
}

.shop-view-toggle a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

@media (min-width: 760px) {
    .shop-control-row {
        grid-template-columns: minmax(260px, 1fr) auto auto;
        align-items: end;
    }
}

@media (max-width: 620px) {
    .shop-results-control-head {
        display: block;
    }

    .shop-results-control-head .shop-clear-link {
        display: inline-block;
        margin-top: 6px;
    }

    .shop-control-row {
        grid-template-columns: 1fr;
    }

    .shop-filter-toggles {
        grid-template-columns: 1fr;
    }

    .shop-view-toggle a {
        flex: 1 1 auto;
    }
}

/* =====================================================
REFINE MENU SCROLLBAR
Light grey scrollbar for the sticky left filter panel.
===================================================== */
.shop-filter-panel {
    scrollbar-width: thin;
    scrollbar-color: #cfcfcf #f4f4f4;
}

.shop-filter-panel::-webkit-scrollbar {
    width: 10px;
}

.shop-filter-panel::-webkit-scrollbar-track {
    background: #f4f4f4;
    border-radius: 999px;
}

.shop-filter-panel::-webkit-scrollbar-thumb {
    background: #cfcfcf;
    border-radius: 999px;
    border: 2px solid #f4f4f4;
}

.shop-filter-panel::-webkit-scrollbar-thumb:hover {
    background: #b8b8b8;
}

/* Hub shortcut cards now live inside the main hero. */
.shop-hub-quick-inline {
    margin-top: 18px;
}



/* =====================================================
FINAL GRID / LIST VIEW OVERRIDES
Restores older grid behavior:
- Grid uses compact horizontal cards with image left / text right.
- Grid only available on wide desktop.
- Below 1600px, grid link hides and grid output behaves like list cards.
===================================================== */

/* Wide desktop grid: fixed 4 columns when room exists */
@media (min-width: 1600px) {
    .shop-results-main .shop-results-grid {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 14px;
        justify-content: stretch;
        align-items: stretch;
    }

    .shop-results-main .shop-results-grid .search-result-card {
        display: grid;
        grid-template-columns: 130px minmax(0, 1fr);
        gap: 12px;
        width: 100%;
        max-width: none;
        min-width: 0;
        padding: 12px;
        align-items: start;
    }

    .shop-results-main .shop-results-grid .search-result-img {
        width: 100%;
        min-height: 130px;
        margin: 0;
        align-self: start;
    }

    .shop-results-main .shop-results-grid .search-result-img img {
        max-width: 120px;
        max-height: 130px;
        object-fit: contain;
    }

    .shop-results-main .shop-results-grid .search-result-info {
        min-width: 0;
        width: 100%;
    }

    .shop-results-main .shop-results-grid .search-result-brand {
        font-size: .78rem;
        line-height: 1.2;
    }

    .shop-results-main .shop-results-grid .search-result-title {
        font-size: .9rem;
        line-height: 1.25;
    }

    .shop-results-main .shop-results-grid .search-result-meta,
    .shop-results-main .shop-results-grid .search-fitment {
        font-size: .78rem;
    }

    .shop-results-main .shop-results-grid .search-card-badges {
        gap: 5px;
    }

    .shop-results-main .shop-results-grid .search-free-ship {
        padding: 6px 8px;
    }

    .shop-results-main .shop-results-grid .search-result-buy {
        grid-column: 1 / -1;
        width: 100%;
        margin-top: auto;
        padding-top: 10px;
        padding-left: 0;
        border-left: 0;
        border-top: 1px solid #f0f0f0;
        text-align: left;
    }

    .shop-results-main .shop-results-grid .search-price {
        font-size: 1.35rem;
    }

    .shop-results-main .shop-results-grid .search-financing {
        min-height: auto;
        font-size: .78rem !important;
    }

    .shop-results-main .shop-results-grid .search-detail-btn {
        width: 100%;
        min-height: 40px;
    }
}

/* At medium/smaller desktop, force grid output to behave like list and hide grid button */
@media (max-width: 1599px) {
    .shop-grid-view-link {
        display: none !important;
    }

    .shop-results-main .shop-results-grid {
        display: grid;
        gap: 12px;
        max-width: none;
        margin: 0;
        grid-template-columns: 1fr;
        justify-content: stretch;
    }

    .shop-results-main .shop-results-grid .search-result-card {
        display: grid;
        grid-template-columns: 180px minmax(0, 1fr) 220px;
        gap: 18px;
        align-items: center;
        max-width: none;
        width: 100%;
        padding: 16px;
    }

    .shop-results-main .shop-results-grid .search-result-img {
        min-height: 170px;
        margin: 0;
    }

    .shop-results-main .shop-results-grid .search-result-buy {
        grid-column: auto;
        align-self: stretch;
        align-content: center;
        padding-top: 0;
        padding-left: 18px;
        border-top: 0;
        border-left: 1px solid #f0f0f0;
        text-align: right;
    }
}

/* Mobile list fallback */
@media (max-width: 699px) {
    .shop-results-main .shop-results-grid .search-result-card {
        grid-template-columns: 110px 1fr;
        gap: 12px;
        padding: 12px;
    }

    .shop-results-main .shop-results-grid .search-result-img {
        min-height: 110px;
    }

    .shop-results-main .shop-results-grid .search-result-buy {
        grid-column: 1 / -1;
        padding-top: 10px;
        padding-left: 0;
        border-left: 0;
        border-top: 1px solid #f0f0f0;
        text-align: left;
    }
}

/* =====================================================
RESULT CONTROL BAR FINAL POLISH
Compact desktop toolbar.
===================================================== */

@media (min-width: 760px) {
    .shop-control-row {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 10px 14px;
    }

    .shop-sort-control {
        flex: 0 0 auto;
        display: inline-flex;
        align-items: center;
        gap: 8px;
    }

    .shop-sort-select {
        width: 180px;
        min-width: 180px;
        max-width: 180px;
    }

    .shop-results-control-panel .shop-filter-toggles {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        flex: 0 1 auto;
    }

    .shop-view-toggle {
        margin-left: auto;
        flex: 0 0 auto;
    }
}

/* =====================================================
LEFT FILTER NAV RESTORE / SCROLLBAR
Ensures the refined details-style menu and grey scrollbar win.
===================================================== */

.shop-filter-panel {
    scrollbar-width: thin;
    scrollbar-color: #cfcfcf #f7f7f7;
    scroll-behavior: smooth;
}

.shop-filter-panel::-webkit-scrollbar {
    width: 10px;
}

.shop-filter-panel::-webkit-scrollbar-track {
    background: #f7f7f7;
    border-radius: 10px;
}

.shop-filter-panel::-webkit-scrollbar-thumb {
    background: #cfcfcf;
    border-radius: 10px;
    border: 2px solid #f7f7f7;
}

.shop-filter-panel::-webkit-scrollbar-thumb:hover {
    background: #b5b5b5;
}


/* =====================================================
FINAL LEFT REFINE NAV POLISH
Restores the older Jump To sticky styling and stronger filter headers.
Place at the end of shop2.css so it wins over earlier rules.
===================================================== */

/* Sticky mini navigation inside the left refine panel */
.shop-filter-panel .shop-filter-shortcuts {
    position: sticky;
    top: 0;
    z-index: 5;

    display: block;
    margin: 0 0 12px;
    padding: 10px;

    border: 1px solid #e6eaf0;
    border-radius: 10px;
    background: #f8fafc;
    box-shadow: 0 2px 6px rgba(0,0,0,.04);
}

.shop-filter-panel .shop-filter-shortcuts span {
    display: inline-block;
    margin: 0 6px 6px 0;
    color: #555;
    font-family: 'Oswald', sans-serif;
    font-size: .82rem;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.shop-filter-panel .shop-filter-shortcuts a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    margin: 0 4px 6px 0;
    padding: 5px 9px;

    border: 1px solid #d8e7ff;
    border-radius: 999px;
    background: #fff;

    color: #174ea6;
    font-size: .82rem;
    font-weight: 900;
    line-height: 1.15;
    text-decoration: none;
}

.shop-filter-panel .shop-filter-shortcuts a:hover,
.shop-filter-panel .shop-filter-shortcuts a:focus-visible {
    border-color: #c40000;
    background: #fff7f7;
    color: #c40000;
    box-shadow: 0 0 0 2px rgba(196,0,0,.08);
}

/* Stronger accordion header styling for Categories / Makes / Brands */
.shop-filter-panel details.shop-filter-group {
    padding: 0;
    border: 1px solid #e6eaf0;
    border-radius: 10px;
    background: #fff;
    overflow: hidden;
}

.shop-filter-panel details.shop-filter-group > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 46px;
    padding: 11px 12px;

    border-bottom: 1px solid #edf1f7;
    background: linear-gradient(90deg, #f8fafc, #fff);

    color: #111;
    font-family: 'Oswald', sans-serif;
    font-size: 1.12rem;
    font-weight: 800;
    letter-spacing: .03em;
    line-height: 1.1;
    text-transform: uppercase;
    cursor: pointer;
    list-style: none;
}

.shop-filter-panel details.shop-filter-group > summary::-webkit-details-marker {
    display: none;
}

.shop-filter-panel details.shop-filter-group > summary::after {
    content: "⌄";
    flex: 0 0 auto;
    color: #c40000;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 900;
    line-height: 1;
    transition: transform .15s ease;
}

.shop-filter-panel details.shop-filter-group[open] > summary::after {
    transform: rotate(180deg);
}

.shop-filter-panel details.shop-filter-group > summary em {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    margin-left: auto;
    padding: 2px 7px;

    border-radius: 999px;
    background: #fff7f7;
    color: #c40000;

    font-family: 'Inter', sans-serif;
    font-size: .72rem;
    font-style: normal;
    font-weight: 900;
    letter-spacing: 0;
    line-height: 1;
    text-transform: none;
}

.shop-filter-panel details.shop-filter-group > .shop-filter-list,
.shop-filter-panel details.shop-filter-group > .shop-filter-note {
    margin: 10px;
}

/* Make the selected category/type/brand item stand out inside the accordion */
.shop-filter-panel .shop-filter-item.is-selected > strong > a,
.shop-filter-panel .shop-filter-item.is-selected > a {
    border-color: #c40000;
    background: #fff7f7;
    color: #c40000;
}

/* Nested sub-filter styling under selected category/make */
.shop-filter-panel .shop-nested-filter {
    margin: 9px 0 0 9px;
    padding: 10px 0 0 10px;
    border-left: 3px solid #dbe3ef;
}

.shop-filter-panel .shop-nested-filter-year {
    border-left-color: #f3c6c6;
}

.shop-filter-panel .shop-nested-filter-title {
    margin: 0 0 8px;
    color: #c40000;
    font-family: 'Oswald', sans-serif;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: .03em;
    text-transform: uppercase;
}

/* Keep the light grey scrollbar visible on the sticky refine panel */
.shop-filter-panel {
    scrollbar-width: thin;
    scrollbar-color: #cfcfcf #f7f7f7;
    scroll-behavior: smooth;
}

.shop-filter-panel::-webkit-scrollbar {
    width: 10px;
}

.shop-filter-panel::-webkit-scrollbar-track {
    background: #f7f7f7;
    border-radius: 10px;
}

.shop-filter-panel::-webkit-scrollbar-thumb {
    background: #cfcfcf;
    border-radius: 10px;
    border: 2px solid #f7f7f7;
}

.shop-filter-panel::-webkit-scrollbar-thumb:hover {
    background: #b5b5b5;
}

@media (max-width: 1099px) {
    .shop-filter-panel .shop-filter-shortcuts {
        position: static;
        margin-bottom: 12px;
    }
}


/* =====================================================
ACTIVE FILTER CHIPS - LARGER CLEAR X
Only navigation filters use chips; checkbox filters stay in the toggle row.
===================================================== */
.shop-active-filters {
    gap: 10px;
    margin: 0 0 14px;
}

.shop-filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 40px;
    padding: 7px 8px 7px 13px;
    border: 1px solid #f0caca;
    border-radius: 10px;
    background: #fff7f7;
    color: #333;
    font-size: .92rem;
    font-weight: 800;
    line-height: 1.1;
}

.shop-filter-chip strong {
    color: #c40000;
    font-weight: 900;
}

.shop-filter-chip-remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    min-width: 24px;
    border-radius: 50%;
    background: #c40000;
    color: #fff !important;
    font-size: 18px;
    font-weight: 900;
    line-height: 1;
    text-decoration: none !important;
    box-shadow: 0 1px 4px rgba(196,0,0,.25);
}

.shop-filter-chip-remove:hover,
.shop-filter-chip-remove:focus-visible {
    background: #8f0000;
    color: #fff !important;
    box-shadow: 0 0 0 3px rgba(196,0,0,.14);
}

@media (max-width: 520px) {
    .shop-filter-chip {
        min-height: 38px;
        font-size: .88rem;
    }

    .shop-filter-chip-remove {
        width: 28px;
        height: 28px;
        min-width: 28px;
    }
}

.shop-filter-search {
    padding: 10px;
    border: 1px solid #e6eaf0;
    border-radius: 10px;
    background: #f8fafc;
}

.shop-filter-search label {
    display: block;
    margin-bottom: 6px;
    color: #555;
    font-family: 'Oswald', sans-serif;
    font-size: .82rem;
    font-weight: 800;
    text-transform: uppercase;
}

.shop-filter-search input {
    width: 100%;
    min-height: 40px;
    padding: 8px 10px;
    border: 1px solid #d8e7ff;
    border-radius: 8px;
    font-weight: 700;
}

/* =====================================================
SHOP3 LEFT FILTER QUICK SEARCH RESULTS
Add to the end of /css/shop3.css
===================================================== */

.shop-filter-search-results {
    display: none;
    margin-top: 8px;
    padding: 8px;
    border: 1px solid #e6eaf0;
    border-radius: 8px;
    background: #fff;
}

.shop-filter-search-title {
    margin: 0 0 6px;
    color: #555;
    font-family: 'Oswald', sans-serif;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.shop-filter-search-results ul {
    display: grid;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.shop-filter-search-results a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-height: 34px;
    padding: 7px 8px;
    border: 1px solid #e8e8e8;
    border-radius: 7px;
    background: #f8fafc;
    color: #111;
    font-size: .86rem;
    font-weight: 800;
    text-decoration: none;
}

.shop-filter-search-results a:hover,
.shop-filter-search-results a:focus-visible {
    border-color: #c40000;
    background: #fff7f7;
    color: #c40000;
}

.shop-filter-search-results em {
    flex: 0 0 auto;
    padding: 2px 6px;
    border-radius: 999px;
    background: #eef4ff;
    color: #174ea6;
    font-size: .72rem;
    font-style: normal;
    font-weight: 900;
}

.shop-filter-search-empty {
    color: #666;
    font-size: .84rem;
    font-weight: 700;
}

.header-image {
         background: black url('/images/car4.webp') no-repeat center center;
         background-size: cover;
         width: 100%;
         min-height: 200px;
         height: auto; 
         display: flex;
         align-items: center;
         justify-content: center;
         padding:0;
         margin:0;
   }

  @media screen and (max-width: 600px) {
       .header-image {
           min-height: 120px;
       }
    }

/* =====================================================
MOBILE/TABLET FILTER COLLAPSE + BIGGER ACCORDION ARROWS
Keeps desktop sidebar expanded, but makes smaller screens much faster to scan.
===================================================== */

/* Bigger, clearer open/close arrow on all screen sizes */
.shop-filter-panel details.shop-filter-group > summary::after {
    content: "▾";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    min-width: 34px;
    border: 2px solid #c40000;
    border-radius: 50%;
    background: #fff;
    color: #c40000;
    font-size: 1.35rem;
    font-weight: 900;
    line-height: 1;
    box-shadow: 0 1px 4px rgba(196,0,0,.12);
}

.shop-filter-panel details.shop-filter-group[open] > summary::after {
    transform: rotate(180deg);
    background: #fff7f7;
}

/* On mobile/tablet, make the collapsed filter panel compact. */
@media (max-width: 1099px) {
    .shop-filter-panel {
        margin-bottom: 14px;
        padding: 10px;
    }

    .shop-filter-head {
        margin-bottom: 10px;
    }

    .shop-filter-head h2 {
        font-size: 1.35rem;
    }

    .shop-filter-panel details.shop-filter-group {
        margin-bottom: 10px;
    }

    .shop-filter-panel details.shop-filter-group > summary {
        min-height: 52px;
        padding: 10px 11px;
        font-size: 1.08rem;
    }

    .shop-filter-panel details.shop-filter-group:not([open]) > summary {
        border-bottom: 0;
    }

    .shop-filter-panel details.shop-filter-group > summary::after {
        width: 38px;
        height: 38px;
        min-width: 38px;
        font-size: 1.55rem;
    }

    .shop-filter-panel .shop-filter-shortcuts {
        position: static;
    }
}

@media (max-width: 1099px) {
    .shop-view-toggle {
        display: none !important;
    }
}

/* Hide Jump To on mobile/tablet */
@media (max-width: 1099px) {
    .shop-filter-shortcuts {
        display: none !important;
    }
}


/* =====================================================
FINAL MOBILE OVERFLOW FIX
Prevents shop page from creating right-side blank/black space.
Add at very bottom of shop.css.
===================================================== */

html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

.shop-page-wrap,
.shop-results-layout,
.shop-results-main,
.shop-filter-panel,
.shop-filter-nav,
.shop-results-control-panel,
.shop-control-row,
.shop-active-filters,
.shop-results-list,
.shop-results-grid,
.search-result-card {
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.shop-filter-list a,
.shop-hub-list a,
.shop-filter-chip,
.shop-toggle span,
.search-result-title,
.search-result-meta,
.search-fitment {
    overflow-wrap: anywhere;
    word-break: break-word;
}

@media (max-width: 1099px) {
    .shop-page-wrap {
        width: 100%;
        padding-left: 10px;
        padding-right: 10px;
        overflow-x: hidden;
    }

    .shop-results-layout {
        display: block;
        width: 100%;
    }

    .shop-filter-panel,
    .shop-results-main {
        width: 100%;
        max-width: 100%;
    }

    .shop-sort-control,
    .shop-sort-select {
        width: 100%;
        max-width: 100%;
    }
}

@media (max-width: 699px) {
    .shop-results-list .search-result-card,
    .shop-results-grid .search-result-card,
    .shop-results-main .shop-results-grid .search-result-card {
        display: grid;
        grid-template-columns: 96px minmax(0, 1fr);
        gap: 10px;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        padding: 10px;
    }

    .shop-results-list .search-result-img,
    .shop-results-grid .search-result-img {
        width: 96px;
        min-width: 0;
        min-height: 96px;
    }

    .shop-results-list .search-result-buy,
    .shop-results-grid .search-result-buy,
    .shop-results-main .shop-results-grid .search-result-buy {
        grid-column: 1 / -1;
        width: 100%;
        padding-left: 0;
        padding-top: 10px;
        border-left: 0;
        border-top: 1px solid #f0f0f0;
        text-align: left;
    }
}