/*
 * EKR Vehicle landing page - Hyva presentation.
 *
 * This file intentionally contains presentation only. Vehicle resolution,
 * SKU mapping, category selection and URL routing remain in Ekrcover_Vehicle.
 */

.ekr-hyva-sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.ekr-hyva-vehicle-landing {
    width: min(100% - 40px, 1210px);
    margin-inline: auto;
    padding: 48px 0 72px;
    color: #111827;
}

.ekr-hyva-vehicle-landing__intro {
    padding-bottom: 28px;
    border-bottom: 1px solid #e5e7eb;
}

.ekr-hyva-vehicle-landing__heading-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
}

.ekr-hyva-vehicle-landing__eyebrow {
    margin: 0 0 7px;
    color: #e52420;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .12em;
    line-height: 1.2;
    text-transform: uppercase;
}

.ekr-hyva-vehicle-landing__title {
    margin: 0;
    color: #111827;
    font-size: clamp(34px, 4vw, 52px);
    font-weight: 800;
    letter-spacing: -.035em;
    line-height: 1.02;
}

.ekr-hyva-vehicle-landing__result-count {
    flex: 0 0 auto;
    display: flex;
    align-items: baseline;
    gap: 7px;
    padding-bottom: 5px;
    color: #6b7280;
    font-size: 12px;
}

.ekr-hyva-vehicle-landing__result-count strong {
    color: #111827;
    font-size: 20px;
    font-weight: 800;
}

.ekr-hyva-vehicle-landing__description {
    max-width: 900px;
    margin-top: 18px;
    color: #4b5563;
    font-size: 15px;
    line-height: 1.7;
}

.ekr-hyva-vehicle-landing__description > :first-child,
.ekr-hyva-vehicle-landing__cms > :first-child {
    margin-top: 0;
}

.ekr-hyva-vehicle-landing__description > :last-child,
.ekr-hyva-vehicle-landing__cms > :last-child {
    margin-bottom: 0;
}

.ekr-hyva-vehicle-landing__trims {
    margin-top: 22px;
}

.ekr-hyva-vehicle-landing__trims-label {
    margin-bottom: 9px;
    color: #374151;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .03em;
    text-transform: uppercase;
}

.ekr-hyva-vehicle-landing__trims-scroll {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ekr-hyva-vehicle-landing__trim {
    display: inline-flex;
    min-height: 31px;
    align-items: center;
    padding: 5px 12px;
    border: 1px solid #d1d5db;
    border-radius: 999px;
    background: #fff;
    color: #374151;
    font-size: 12px;
    font-weight: 650;
    line-height: 1.2;
    white-space: nowrap;
}

.ekr-hyva-vehicle-landing__cms {
    margin: 32px 0;
    color: #374151;
    line-height: 1.7;
}

.ekr-hyva-vehicle-landing__categories {
    position: sticky;
    top: 0;
    z-index: 20;
    margin: 36px 0 24px;
    padding: 10px 0;
    background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(8px);
}

.ekr-hyva-vehicle-landing__categories-scroll {
    display: flex;
    width: 100%;
    overflow-x: auto;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #fff;
    scrollbar-width: thin;
    overscroll-behavior-inline: contain;
}

.ekr-hyva-vehicle-landing__category {
    position: relative;
    display: inline-flex;
    min-width: 150px;
    min-height: 48px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    border-right: 1px solid #e5e7eb;
    color: #374151;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    text-decoration: none !important;
    white-space: nowrap;
    transition: background-color .15s ease, color .15s ease;
}

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

.ekr-hyva-vehicle-landing__category:hover,
.ekr-hyva-vehicle-landing__category:focus-visible {
    background: #f9fafb;
    color: #111827;
}

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

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

.ekr-hyva-vehicle-landing__category-mark {
    color: #e52420;
    font-size: 8px;
}

.ekr-hyva-vehicle-products {
    margin-bottom: 54px;
}

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

.ekr-hyva-vehicle-product-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.ekr-hyva-vehicle-product-card:hover {
    transform: translateY(-2px);
    border-color: #d1d5db;
    box-shadow: 0 12px 26px rgba(17, 24, 39, .08);
}

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

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

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

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

.ekr-hyva-vehicle-product-card__badge {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    padding: 5px 7px;
    border-radius: 4px;
    background: #e52420;
    color: #fff;
    font-size: 10px;
    font-weight: 850;
    line-height: 1;
    text-transform: uppercase;
}

.ekr-hyva-vehicle-product-card__body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    padding: 14px 14px 15px;
}

.ekr-hyva-vehicle-product-card__brand {
    margin-bottom: 4px;
    color: #111827;
    font-size: 12px;
    font-weight: 850;
    letter-spacing: .05em;
}

.ekr-hyva-vehicle-product-card__name {
    min-height: 44px;
    margin: 0 0 9px;
    font-size: 15px;
    font-weight: 650;
    line-height: 1.4;
}

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

.ekr-hyva-vehicle-product-card__fitment {
    display: flex;
    min-height: 22px;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
    color: #4b5563;
    font-size: 10px;
    font-weight: 650;
    line-height: 1.35;
}

.ekr-hyva-vehicle-product-card__fitment-check {
    display: inline-grid;
    width: 15px;
    height: 15px;
    flex: 0 0 15px;
    place-items: center;
    border-radius: 50%;
    background: #16a34a;
    color: #fff;
    font-size: 9px;
    font-weight: 800;
}

.ekr-hyva-vehicle-product-card__price {
    min-height: 35px;
    margin-bottom: 7px;
}

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

.ekr-hyva-vehicle-product-card__price .price {
    color: #e52420;
    font-size: 19px;
    font-weight: 850;
}

.ekr-hyva-vehicle-product-card__price .old-price .price {
    color: #9ca3af;
    font-size: 12px;
    font-weight: 500;
}

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

.ekr-hyva-vehicle-product-card__feature-icon {
    position: relative;
    display: inline-grid;
    width: 28px;
    height: 28px;
    place-items: center;
}

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

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

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

.ekr-hyva-vehicle-product-card__feature-text {
    overflow: hidden;
    max-width: 100%;
    padding: 4px 7px;
    border-radius: 4px;
    background: #f3f4f6;
    color: #4b5563;
    font-size: 10px;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ekr-hyva-vehicle-product-card__action {
    display: flex;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    margin-top: auto;
    border-radius: 6px;
    background: #e52420;
    color: #fff !important;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
    text-decoration: none !important;
    transition: background-color .15s ease;
}

.ekr-hyva-vehicle-product-card__action:hover,
.ekr-hyva-vehicle-product-card__action:focus-visible {
    background: #c81e1a;
}

.ekr-hyva-vehicle-products__empty {
    display: grid;
    gap: 6px;
    padding: 38px 24px;
    border: 1px dashed #d1d5db;
    border-radius: 10px;
    background: #f9fafb;
    color: #6b7280;
    text-align: center;
}

.ekr-hyva-vehicle-products__empty strong {
    color: #111827;
    font-size: 18px;
}

.ekr-hyva-vehicle-landing__debug {
    margin-top: 50px;
    padding-top: 28px;
    border-top: 1px solid #e5e7eb;
}

.ekr-hyva-vehicle-landing__debug details {
    margin-top: 14px;
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: #f9fafb;
}

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

.ekr-hyva-vehicle-landing__debug pre {
    max-width: 100%;
    overflow: auto;
    margin: 12px 0 0;
    padding: 14px;
    border-radius: 6px;
    background: #111827;
    color: #e5e7eb;
    font-size: 12px;
    line-height: 1.5;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

@media (max-width: 1023px) {
    .ekr-hyva-vehicle-landing {
        width: min(100% - 32px, 1210px);
        padding-top: 34px;
    }

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

@media (max-width: 767px) {
    .ekr-hyva-vehicle-landing {
        width: min(100% - 28px, 1210px);
        padding: 24px 0 48px;
    }

    .ekr-hyva-vehicle-landing__heading-row {
        display: block;
    }

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

    .ekr-hyva-vehicle-landing__result-count {
        margin-top: 12px;
        padding-bottom: 0;
    }

    .ekr-hyva-vehicle-landing__trims-scroll {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 7px;
        scrollbar-width: thin;
    }

    .ekr-hyva-vehicle-landing__categories {
        margin-top: 26px;
        padding: 7px 0;
    }

    .ekr-hyva-vehicle-landing__category {
        min-width: 132px;
        min-height: 44px;
        padding: 9px 13px;
    }

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

    .ekr-hyva-vehicle-product-card {
        border-radius: 8px;
    }
}
