.ekr-vehicle-landing {
    box-sizing: border-box;
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 22px 0 56px;
    color: #222;
}

.ekr-vehicle-landing__hero {
    padding: 0 0 26px;
    border-bottom: 1px solid #e4e4e4;
}

.ekr-vehicle-landing__title {
    margin: 0 0 8px;
    color: #171717;
    font-size: 38px;
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -.02em;
}

.ekr-vehicle-landing__all-trims {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin: 0 0 12px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #555;
    cursor: default;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
    text-decoration: none;
}

.ekr-vehicle-landing__trim-viewport {
    position: relative;
    max-height: 76px;
    overflow-y: auto;
    padding: 1px 14px 1px 0;
    scrollbar-width: thin;
}

.ekr-vehicle-landing__trim-list {
    display: flex;
    flex-wrap: wrap;
    gap: 9px 11px;
}

.ekr-vehicle-landing__trim {
    min-height: 27px;
    padding: 4px 12px;
    border: 1px solid #d3d3d3;
    border-radius: 14px;
    background: #fff;
    color: #555;
    cursor: default;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
    white-space: nowrap;
}

.ekr-vehicle-landing__categories {
    position: sticky;
    top: 0;
    z-index: 50;
    margin: 44px 0 16px;
    padding: 8px 0;
    background: #fff;
}

.ekr-vehicle-landing__categories-scroll {
    display: flex;
    max-width: 760px;
    overflow-x: auto;
    border: 1px solid #d6d6d6;
    background: #fff;
    scrollbar-width: thin;
}

.ekr-vehicle-landing__category {
    display: inline-flex;
    min-width: 145px;
    min-height: 44px;
    flex: 0 0 auto;
    box-sizing: border-box;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px 18px;
    border-right: 1px solid #d6d6d6;
    color: #555;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    text-decoration: none !important;
    white-space: nowrap;
}

.ekr-vehicle-landing__category:last-child {
    border-right: 0;
}


.ekr-vehicle-landing__category:hover,
.ekr-vehicle-landing__category:focus {
    background: #f5f5f5;
    color: #111;
}

.ekr-vehicle-landing__category.is-active {
    background: #343434;
    color: #fff;
}

.ekr-vehicle-landing__category.is-active:hover,
.ekr-vehicle-landing__category.is-active:focus {
    background: #343434;
    color: #fff;
}

.ekr-vehicle-landing__category-arrow {
    font-size: 10px;
}

.ekr-vehicle-landing__filter-status {
    min-height: 18px;
    margin: 0 0 10px;
    color: #666;
    font-size: 12px;
}

.ekr-vehicle-landing__filter-status.is-error {
    color: #b31b1b;
}

.ekr-vehicle-products {
    position: relative;
    margin: 0 0 50px;
}

.ekr-vehicle-products__meta,
.ekr-vehicle-products__sr-title,
.ekr-vehicle-products__count {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

.ekr-vehicle-products__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px 20px;
    transition: opacity .15s ease;
}

.ekr-vehicle-landing.is-loading .ekr-vehicle-products__grid {
    opacity: .45;
    pointer-events: none;
}

.ekr-vehicle-product-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #dedede;
    border-radius: 0;
    background: #fff;
}

.ekr-vehicle-product-card.is-filtered-out,
.ekr-vehicle-product-card[hidden] {
    display: none !important;
}

.ekr-vehicle-product-card__media {
    position: relative;
    display: block;
    overflow: hidden;
    border-bottom: 1px solid #ededed;
    background: #f8f8f8;
}

.ekr-vehicle-product-card__media .product-image-container,
.ekr-vehicle-product-card__media .product-image-wrapper,
.ekr-vehicle-product-card__media .product-image-photo {
    display: block;
    width: 100%;
}

.ekr-vehicle-product-card__media .product-image-photo {
    transition: transform .2s ease;
}

.ekr-vehicle-product-card:hover .ekr-vehicle-product-card__media .product-image-photo {
    transform: scale(1.015);
}

.ekr-vehicle-product-card__badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 4px 7px;
    background: #e0192e;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
    text-transform: uppercase;
}

.ekr-vehicle-product-card__body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    padding: 13px 12px 12px;
}

.ekr-vehicle-product-card__brand {
    margin-bottom: 2px;
    color: #1f1f1f;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.1;
}

.ekr-vehicle-product-card__name {
    min-height: 43px;
    margin: 0 0 7px;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.35;
}

.ekr-vehicle-product-card__name a {
    display: -webkit-box;
    overflow: hidden;
    color: #292929;
    text-decoration: none;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.ekr-vehicle-product-card__fitment {
    display: flex;
    min-height: 21px;
    align-items: center;
    gap: 5px;
    margin-bottom: 7px;
    color: #555;
    font-size: 10px;
    font-weight: 600;
    line-height: 1.3;
}

.ekr-vehicle-product-card__fitment-check {
    display: inline-flex;
    width: 14px;
    height: 14px;
    flex: 0 0 14px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #21a73c;
    color: #fff;
    font-size: 9px;
}

.ekr-vehicle-product-card__price {
    min-height: 32px;
    margin-bottom: 5px;
    color: #e0192e;
}

.ekr-vehicle-product-card__price .price-box {
    margin: 0;
}

.ekr-vehicle-product-card__price .price {
    color: #e0192e;
    font-size: 19px;
    font-weight: 800;
}

.ekr-vehicle-product-card__price .old-price .price {
    color: #999;
    font-size: 12px;
    font-weight: 400;
}

.ekr-vehicle-product-card__features {
    display: flex;
    min-height: 32px;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px;
    margin: 0 0 10px;
    padding: 0;
    list-style: none;
}

.ekr-vehicle-product-card__feature-icon {
    position: relative;
    display: inline-flex;
    width: 27px;
    height: 27px;
    align-items: center;
    justify-content: center;
    border: 0;
    background: transparent;
}

.ekr-vehicle-product-card__feature-icon img {
    display: block;
    width: 22px;
    height: 22px;
    object-fit: contain;
}

.ekr-vehicle-product-card__feature-tooltip {
    position: absolute;
    bottom: calc(100% + 7px);
    left: 50%;
    z-index: 10;
    width: max-content;
    max-width: 180px;
    padding: 5px 8px;
    background: #222;
    color: #fff;
    font-size: 10px;
    opacity: 0;
    pointer-events: none;
    text-align: center;
    transform: translate(-50%, 3px);
    transition: opacity .15s ease, transform .15s ease;
}

.ekr-vehicle-product-card__feature-icon:hover .ekr-vehicle-product-card__feature-tooltip,
.ekr-vehicle-product-card__feature-icon:focus-within .ekr-vehicle-product-card__feature-tooltip {
    opacity: 1;
    transform: translate(-50%, 0);
}

.ekr-vehicle-product-card__feature-text {
    overflow: hidden;
    max-width: 100%;
    padding: 3px 6px;
    background: #f1f1f1;
    color: #666;
    font-size: 10px;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ekr-vehicle-product-card__action {
    display: block;
    margin-top: auto;
    padding: 10px 12px;
    background: #e4002b;
    color: #fff !important;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    text-decoration: none !important;
}

.ekr-vehicle-product-card__action:hover,
.ekr-vehicle-product-card__action:focus {
    background: #bd0024;
}

.ekr-vehicle-products__empty {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 28px;
    border: 1px dashed #c8c8c8;
    background: #fafafa;
    color: #666;
    text-align: center;
}

.ekr-vehicle-products__empty[hidden] {
    display: none !important;
}

.ekr-vehicle-products__empty strong {
    color: #222;
    font-size: 17px;
}

.ekr-vehicle-landing__content,
.ekr-vehicle-landing__description {
    margin: 36px 0;
}

.ekr-vehicle-landing__description--hero {
    margin: 14px 0 18px;
}

.ekr-vehicle-landing__debug {
    margin-top: 42px;
    padding-top: 24px;
    border-top: 1px solid #ddd;
}

.ekr-vehicle-landing__sql-debug,
.ekr-vehicle-landing__resolver-debug {
    margin: 16px 0;
    padding: 12px;
    border: 1px solid #d7d7d7;
    background: #f7f7f7;
}

.ekr-vehicle-landing__debug summary {
    cursor: pointer;
    font-weight: 700;
}

.ekr-vehicle-landing__debug pre {
    max-width: 100%;
    overflow: auto;
    padding: 12px;
    background: #161616;
    color: #e8e8e8;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

@media (max-width: 1023px) {
    .ekr-vehicle-landing {
        padding-right: 18px;
        padding-left: 18px;
    }

    .ekr-vehicle-products__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .ekr-vehicle-landing {
        padding: 14px 15px 40px;
    }

    .ekr-vehicle-landing__title {
        font-size: 30px;
    }

    .ekr-vehicle-landing__trim-viewport {
        max-height: none;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 1px 0 8px;
    }

    .ekr-vehicle-landing__trim-list {
        width: max-content;
        flex-wrap: nowrap;
    }

    .ekr-vehicle-landing__categories {
        margin-top: 28px;
        padding: 6px 0;
    }

    .ekr-vehicle-landing__categories-scroll {
        width: 100%;
    }

    .ekr-vehicle-landing__category {
        min-width: 132px;
        min-height: 42px;
        padding: 9px 14px;
    }

    .ekr-vehicle-products__grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 18px;
    }
}
