/* EV OE Lookup — Apple-inspired, site-aligned */

:root {
    --oe-lk-bg: #f5f5f7;
    --oe-lk-surface: #ffffff;
    --oe-lk-text: #1d1d1f;
    --oe-lk-text-secondary: #6e6e73;
    --oe-lk-text-tertiary: #86868b;
    --oe-lk-border: rgba(0, 0, 0, 0.06);
    --oe-lk-border-hover: rgba(0, 0, 0, 0.12);
    --oe-lk-accent: #fbbf24;
    --oe-lk-accent-soft: rgba(251, 191, 36, 0.14);
    --oe-lk-blue: #3b82f6;
    --oe-lk-blue-soft: rgba(59, 130, 246, 0.1);
    --oe-lk-nav: rgb(36, 36, 36);
    --oe-lk-radius: 16px;
    --oe-lk-radius-sm: 12px;
    --oe-lk-shadow: 0 2px 16px rgba(0, 0, 0, 0.04);
    --oe-lk-shadow-hover: 0 12px 40px rgba(0, 0, 0, 0.08);
    --oe-lk-ease: cubic-bezier(0.25, 0.1, 0.25, 1);
    --oe-lk-font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.oe-lk-page {
    font-family: var(--oe-lk-font);
    background: var(--oe-lk-bg);
    color: var(--oe-lk-text);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.navbar-glass {
    background-color: var(--oe-lk-nav) !important;
}

#navbar-container .nav-link,
#navbar-container .nav-link:visited {
    color: #ffffff !important;
}

/* Hero */
.oe-lk-hero {
    position: relative;
    overflow: hidden;
    padding: 5.5rem 0 1.75rem;
    background: linear-gradient(180deg, #fafafa 0%, var(--oe-lk-bg) 100%);
}

.oe-lk-hero__orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    opacity: 0.5;
}

.oe-lk-hero__orb--1 {
    width: 420px;
    height: 420px;
    top: -120px;
    right: -80px;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.35) 0%, transparent 70%);
    animation: oe-lk-float 12s ease-in-out infinite;
}

.oe-lk-hero__orb--2 {
    width: 320px;
    height: 320px;
    bottom: -60px;
    left: -40px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.2) 0%, transparent 70%);
    animation: oe-lk-float 15s ease-in-out infinite reverse;
}

@keyframes oe-lk-float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(12px, -16px) scale(1.04); }
}

.oe-lk-container {
    width: 100%;
    max-width: 72rem;
    margin: 0 auto;
    padding: 0 1.25rem;
}

@media (min-width: 768px) {
    .oe-lk-container { padding: 0 2rem; }
}

@media (min-width: 1024px) {
    .oe-lk-container { padding: 0 4rem; }
}

.oe-lk-body {
    padding-bottom: 4rem;
}

/* Breadcrumb */
.oe-lk-breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.5rem;
    font-size: 0.8125rem;
    color: var(--oe-lk-text-tertiary);
    letter-spacing: 0.01em;
}

.oe-lk-breadcrumb a {
    color: var(--oe-lk-text-secondary);
    text-decoration: none;
    transition: color 0.2s var(--oe-lk-ease);
}

.oe-lk-breadcrumb a:hover {
    color: var(--oe-lk-text);
}

.oe-lk-breadcrumb [aria-current="page"] {
    color: var(--oe-lk-text);
    font-weight: 500;
}

.oe-lk-breadcrumb .sep {
    color: var(--oe-lk-text-tertiary);
    opacity: 0.6;
    user-select: none;
}

/* Typography */
.oe-lk-title {
    font-size: clamp(1.375rem, 3vw, 1.75rem);
    font-weight: 600;
    letter-spacing: -0.025em;
    line-height: 1.15;
    color: var(--oe-lk-text);
    margin: 0.5rem 0 0;
}

.oe-lk-section-title {
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--oe-lk-text);
    margin-bottom: 1.25rem;
}

.oe-lk-section-sub {
    font-size: 0.875rem;
    color: var(--oe-lk-text-tertiary);
    margin-top: -0.75rem;
    margin-bottom: 1.25rem;
}

/* OE active banner */
.oe-lk-oe-banner {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.08) 0%, rgba(251, 191, 36, 0.08) 100%);
    border: 1px solid var(--oe-lk-border);
    border-radius: var(--oe-lk-radius);
    animation: oe-lk-fade-up 0.5s var(--oe-lk-ease);
}

.oe-lk-oe-banner__icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--oe-lk-surface);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--oe-lk-blue);
    font-size: 1.125rem;
    box-shadow: var(--oe-lk-shadow);
    flex-shrink: 0;
}

.oe-lk-oe-banner__label {
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--oe-lk-text-tertiary);
}

.oe-lk-oe-banner__value {
    font-family: ui-monospace, "SF Mono", Menlo, Monaco, Consolas, monospace;
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--oe-lk-text);
    margin-top: 0.15rem;
}

/* Search panel */
.oe-lk-search {
    position: relative;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border: 1px solid var(--oe-lk-border);
    border-radius: 20px;
    padding: 1.5rem;
    margin-bottom: 2.5rem;
    box-shadow: var(--oe-lk-shadow);
    animation: oe-lk-fade-up 0.6s var(--oe-lk-ease) 0.05s both;
}

.oe-lk-search__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    align-items: end;
}

@media (min-width: 768px) {
    .oe-lk-search__grid {
        grid-template-columns: 1.4fr 1fr 1fr auto;
        gap: 0.75rem;
    }
}

.oe-lk-field label {
    display: block;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--oe-lk-text-tertiary);
    margin-bottom: 0.4rem;
}

.oe-lk-input,
.oe-lk-select {
    width: 100%;
    height: 44px;
    padding: 0 0.875rem;
    font-size: 0.9375rem;
    font-family: inherit;
    color: var(--oe-lk-text);
    background: var(--oe-lk-surface);
    border: 1px solid var(--oe-lk-border);
    border-radius: var(--oe-lk-radius-sm);
    transition: border-color 0.2s var(--oe-lk-ease), box-shadow 0.2s var(--oe-lk-ease);
    appearance: none;
}

.oe-lk-input:focus,
.oe-lk-select:focus {
    outline: none;
    border-color: var(--oe-lk-blue);
    box-shadow: 0 0 0 4px var(--oe-lk-blue-soft);
}

.oe-lk-input::placeholder {
    color: var(--oe-lk-text-tertiary);
}

.oe-lk-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2386868b' d='M2.5 4.5L6 8l3.5-3.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    padding-right: 2rem;
}

.oe-lk-select:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.oe-lk-btn-search {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    height: 44px;
    padding: 0 1.25rem;
    font-size: 0.9375rem;
    font-weight: 600;
    font-family: inherit;
    color: #1f2937;
    background: linear-gradient(135deg, var(--oe-lk-accent) 0%, #f59e0b 100%);
    border: none;
    border-radius: var(--oe-lk-radius-sm);
    cursor: pointer;
    transition: transform 0.2s var(--oe-lk-ease), box-shadow 0.2s var(--oe-lk-ease), filter 0.2s;
    box-shadow: 0 4px 14px rgba(251, 191, 36, 0.35);
    white-space: nowrap;
}

.oe-lk-btn-search:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(251, 191, 36, 0.45);
    filter: brightness(1.03);
}

.oe-lk-btn-search:active {
    transform: translateY(0);
}

@media (min-width: 768px) {
    .oe-lk-btn-search { width: auto; min-width: 7.5rem; }
}

/* Grid cards — makes & models */
.oe-lk-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.875rem;
}

@media (min-width: 640px) {
    .oe-lk-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .oe-lk-grid { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
}

.oe-lk-card {
    display: block;
    text-decoration: none;
    color: inherit;
    background: var(--oe-lk-surface);
    border: 1px solid var(--oe-lk-border);
    border-radius: var(--oe-lk-radius);
    padding: 1.25rem 1.35rem;
    transition: transform 0.28s var(--oe-lk-ease), box-shadow 0.28s var(--oe-lk-ease), border-color 0.28s;
    animation: oe-lk-fade-up 0.5s var(--oe-lk-ease) both;
}

.oe-lk-card:hover {
    transform: translateY(-3px);
    border-color: var(--oe-lk-border-hover);
    box-shadow: var(--oe-lk-shadow-hover);
}

.oe-lk-card__name {
    font-size: 1.0625rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--oe-lk-text);
}

.oe-lk-card__meta {
    font-size: 0.8125rem;
    color: var(--oe-lk-text-tertiary);
    margin-top: 0.35rem;
}

.oe-lk-card__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.65rem;
    padding: 0.25rem 0.6rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--oe-lk-text-secondary);
    background: var(--oe-lk-bg);
    border-radius: 999px;
}

.oe-lk-card__arrow {
    float: right;
    margin-top: 0.15rem;
    color: var(--oe-lk-text-tertiary);
    font-size: 0.75rem;
    transition: transform 0.25s var(--oe-lk-ease), color 0.25s;
}

.oe-lk-card:hover .oe-lk-card__arrow {
    transform: translateX(3px);
    color: var(--oe-lk-accent);
}

/* OE Numbers catalog — primary OE / secondary name / tertiary year */
.oe-lk-results-head__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0.75rem 1.25rem;
}

.oe-lk-section-title--flush {
    margin-bottom: 0.35rem;
}

.oe-lk-section-sub--flush {
    margin-top: 0;
    margin-bottom: 0;
}

.oe-lk-results-count {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.75rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--oe-lk-text-secondary);
    background: rgba(0, 0, 0, 0.04);
    border-radius: 999px;
    white-space: nowrap;
}

.oe-lk-oe-catalog {
    background: var(--oe-lk-surface);
    border: 1px solid var(--oe-lk-border);
    border-radius: var(--oe-lk-radius);
    overflow: hidden;
    box-shadow: var(--oe-lk-shadow);
}

.oe-lk-oe-catalog__head {
    display: grid;
    grid-template-columns: minmax(9rem, 1.15fr) minmax(8rem, 1.65fr) minmax(5.5rem, 0.55fr) 1.25rem;
    gap: 1rem;
    align-items: center;
    padding: 0.7rem 1.35rem;
    background: linear-gradient(180deg, #fafafa 0%, #f3f4f6 100%);
    border-bottom: 1px solid var(--oe-lk-border);
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--oe-lk-text-tertiary);
}

.oe-lk-oe-list {
    display: flex;
    flex-direction: column;
}

.oe-lk-oe-item {
    position: relative;
    display: grid;
    grid-template-columns: minmax(9rem, 1.15fr) minmax(8rem, 1.65fr) minmax(5.5rem, 0.55fr) 1.25rem;
    gap: 1rem;
    align-items: center;
    padding: 1.05rem 1.35rem;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid var(--oe-lk-border);
    transition: background 0.22s var(--oe-lk-ease), box-shadow 0.22s var(--oe-lk-ease);
    animation: oe-lk-fade-up 0.45s var(--oe-lk-ease) both;
}

.oe-lk-oe-item:last-child {
    border-bottom: none;
}

.oe-lk-oe-item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--oe-lk-accent) 0%, var(--oe-lk-blue) 100%);
    transform: scaleY(0);
    transform-origin: center;
    transition: transform 0.25s var(--oe-lk-ease);
}

.oe-lk-oe-item:hover {
    background: linear-gradient(90deg, rgba(251, 191, 36, 0.06) 0%, rgba(59, 130, 246, 0.04) 100%);
}

.oe-lk-oe-item:hover::before {
    transform: scaleY(1);
}

.oe-lk-oe-item__col {
    min-width: 0;
}

.oe-lk-oe-item__col--oe {
    padding-right: 0.25rem;
}

.oe-lk-oe-item__oe {
    display: block;
    font-family: ui-monospace, "SF Mono", Menlo, Monaco, Consolas, monospace;
    font-size: clamp(1rem, 2.2vw, 1.1875rem);
    font-weight: 700;
    letter-spacing: 0.045em;
    line-height: 1.35;
    color: var(--oe-lk-text);
    word-break: break-all;
}

.oe-lk-oe-item__name {
    display: block;
    font-size: 0.9375rem;
    font-weight: 500;
    line-height: 1.45;
    color: var(--oe-lk-text-secondary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.oe-lk-oe-item__name--empty {
    font-weight: 400;
    font-style: italic;
    color: var(--oe-lk-text-tertiary);
}

.oe-lk-oe-item__year {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 3.25rem;
    padding: 0.28rem 0.65rem;
    font-size: 0.8125rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.02em;
    color: #1d4ed8;
    background: var(--oe-lk-blue-soft);
    border: 1px solid rgba(59, 130, 246, 0.18);
    border-radius: 999px;
    white-space: nowrap;
}

.oe-lk-oe-item__year--empty {
    font-weight: 400;
    color: var(--oe-lk-text-tertiary);
    background: rgba(0, 0, 0, 0.03);
    border-color: transparent;
}

.oe-lk-oe-item__arrow {
    justify-self: end;
    font-size: 0.75rem;
    color: var(--oe-lk-text-tertiary);
    transition: transform 0.25s var(--oe-lk-ease), color 0.25s;
}

.oe-lk-oe-item:hover .oe-lk-oe-item__arrow {
    transform: translateX(3px);
    color: var(--oe-lk-accent);
}

@media (max-width: 639px) {
    .oe-lk-oe-catalog__head {
        display: none;
    }

    .oe-lk-oe-item {
        grid-template-columns: 1fr auto;
        grid-template-rows: auto auto auto;
        gap: 0.35rem 0.75rem;
        padding: 1rem 1.125rem 1rem 1.2rem;
    }

    .oe-lk-oe-item__col--oe {
        grid-column: 1 / 2;
        grid-row: 1;
    }

    .oe-lk-oe-item__col--name {
        grid-column: 1 / 2;
        grid-row: 2;
    }

    .oe-lk-oe-item__col--year {
        grid-column: 1 / 2;
        grid-row: 3;
        justify-self: start;
    }

    .oe-lk-oe-item__arrow {
        grid-column: 2 / 3;
        grid-row: 1 / 4;
        align-self: center;
    }

    .oe-lk-oe-item__name {
        white-space: normal;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }
}

/* Product cards */
.oe-lk-products {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

@media (min-width: 640px) {
    .oe-lk-products { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .oe-lk-products { grid-template-columns: repeat(3, 1fr); }
}

.oe-lk-product {
    display: block;
    text-decoration: none;
    color: inherit;
    background: var(--oe-lk-surface);
    border: 1px solid var(--oe-lk-border);
    border-radius: var(--oe-lk-radius);
    overflow: hidden;
    transition: transform 0.3s var(--oe-lk-ease), box-shadow 0.3s;
    animation: oe-lk-fade-up 0.5s var(--oe-lk-ease) both;
}

.oe-lk-product:hover {
    transform: translateY(-4px);
    box-shadow: var(--oe-lk-shadow-hover);
}

.oe-lk-product__img-wrap {
    height: 11rem;
    background: #fafafa;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.oe-lk-product__img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 0.5rem;
}

.oe-lk-product__placeholder {
    color: #d1d5db;
    font-size: 2rem;
}

.oe-lk-product__body {
    padding: 1.1rem 1.25rem 1.25rem;
}

.oe-lk-product__tag {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--oe-lk-blue);
    background: var(--oe-lk-blue-soft);
    padding: 0.25rem 0.55rem;
    border-radius: 999px;
}

.oe-lk-product__title {
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--oe-lk-text);
    margin: 0.65rem 0 0.35rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.oe-lk-product__desc {
    font-size: 0.8125rem;
    line-height: 1.45;
    color: var(--oe-lk-text-tertiary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.oe-lk-product__cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 0.85rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--oe-lk-text-secondary);
}

.oe-lk-product:hover .oe-lk-product__cta i {
    transform: translateX(3px);
    color: var(--oe-lk-accent);
}

.oe-lk-product__cta i {
    transition: transform 0.25s, color 0.25s;
}

/* Pager */
.oe-lk-pager {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--oe-lk-border);
    font-size: 0.875rem;
    color: var(--oe-lk-text-secondary);
}

.oe-lk-pager__btns {
    display: flex;
    gap: 0.5rem;
}

.oe-lk-pager__btn {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 1rem;
    font-size: 0.8125rem;
    font-weight: 500;
    font-family: inherit;
    color: var(--oe-lk-text);
    background: var(--oe-lk-surface);
    border: 1px solid var(--oe-lk-border);
    border-radius: 999px;
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.oe-lk-pager__btn:hover:not(.is-disabled) {
    background: var(--oe-lk-bg);
    border-color: var(--oe-lk-border-hover);
    transform: translateY(-1px);
}

.oe-lk-pager__btn.is-disabled {
    opacity: 0.35;
    pointer-events: none;
}

/* Empty & loading */
.oe-lk-empty {
    text-align: center;
    padding: 3rem 1.5rem;
    color: var(--oe-lk-text-tertiary);
    font-size: 0.9375rem;
}

.oe-lk-empty i {
    font-size: 2rem;
    margin-bottom: 0.75rem;
    opacity: 0.35;
    display: block;
}

.oe-lk-section {
    margin-bottom: 2.5rem;
    animation: oe-lk-fade-up 0.55s var(--oe-lk-ease) both;
}

.oe-lk-results-head {
    margin-bottom: 1.25rem;
}

@keyframes oe-lk-fade-up {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Stagger children */
.oe-lk-grid .oe-lk-card:nth-child(2) { animation-delay: 0.04s; }
.oe-lk-grid .oe-lk-card:nth-child(3) { animation-delay: 0.08s; }
.oe-lk-grid .oe-lk-card:nth-child(4) { animation-delay: 0.12s; }
.oe-lk-grid .oe-lk-card:nth-child(5) { animation-delay: 0.16s; }
.oe-lk-grid .oe-lk-card:nth-child(6) { animation-delay: 0.2s; }

.oe-lk-oe-list .oe-lk-oe-item:nth-child(2) { animation-delay: 0.03s; }
.oe-lk-oe-list .oe-lk-oe-item:nth-child(3) { animation-delay: 0.06s; }
.oe-lk-oe-list .oe-lk-oe-item:nth-child(4) { animation-delay: 0.09s; }
.oe-lk-oe-list .oe-lk-oe-item:nth-child(5) { animation-delay: 0.12s; }
.oe-lk-oe-list .oe-lk-oe-item:nth-child(6) { animation-delay: 0.15s; }

@media (prefers-reduced-motion: reduce) {
    .oe-lk-hero__orb,
    .oe-lk-card,
    .oe-lk-oe-item,
    .oe-lk-product,
    .oe-lk-search,
    .oe-lk-section,
    .oe-lk-oe-banner {
        animation: none !important;
    }
    .oe-lk-card:hover,
    .oe-lk-oe-item:hover,
    .oe-lk-product:hover {
        transform: none;
    }
}
