/* VIN Parts Search Page Styles */

.search-container {
    max-width: 1180px;
    margin: 0 auto;
}

.search-header {
    text-align: center;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(139, 92, 246, 0.08));
    border-radius: 18px;
    margin-bottom: 2.5rem;
    border: 1px solid rgba(59, 130, 246, 0.08);
}

.search-header .page-title {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.search-header .page-subtitle {
    color: var(--text-secondary);
    font-size: 1.05rem;
}

.search-form {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    padding: 2.25rem;
    margin-bottom: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.search-inputs {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.search-input-wrapper {
    position: relative;
}

.search-input-wrapper .input-field {
    padding: 1.1rem 1rem;
    text-transform: uppercase;
}

.search-input-wrapper .char-counter {
    position: absolute;
    top: 50%;
    right: 1rem;
    transform: translateY(-50%);
    font-size: 0.75rem;
    color: var(--text-secondary);
    background: rgba(17, 24, 39, 0.85);
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    border: 1px solid rgba(148, 163, 184, 0.25);
}

.search-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    gap: 0.75rem;
    margin-top: 0.5rem;
    padding: 1.05rem 1.6rem;
    border-radius: 16px;
    border: 1px solid rgba(99, 102, 241, 0.35);
    background: transparent;
    color: #fff;
    font-size: 1.075rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    box-shadow: 0 22px 48px -22px rgba(31, 41, 55, 0.65);
    overflow: hidden;
    transition: transform 0.22s ease, box-shadow 0.22s ease, filter 0.22s ease;
}

.search-button-bg,
.search-button-shimmer {
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: inherit;
}

.search-button-bg {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.95), rgba(168, 85, 247, 0.95));
    opacity: 0.82;
    transition: opacity 0.3s ease;
}

.search-button-shimmer {
    width: 45%;
    background: linear-gradient(110deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transform: translateX(-135%);
    transition: transform 0.6s ease;
}

.search-button-content {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    z-index: 1;
}

.search-button-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.search-button-icon.trailing {
    margin-left: 0.2rem;
}

.search-button-icon.is-hidden {
    opacity: 0;
    transform: scale(0.6);
}

.search-button-icon svg {
    width: 1.4rem;
    height: 1.4rem;
}

.search-button-icon.trailing svg {
    width: 1.2rem;
    height: 1.2rem;
}

.search-button-spinner {
    display: none;
    width: 1.45rem;
    height: 1.45rem;
    border-radius: 999px;
    border: 3px solid rgba(255, 255, 255, 0.35);
    border-top-color: rgba(255, 255, 255, 1);
    animation: search-button-spin 0.8s linear infinite;
}

.search-button-spinner.is-active {
    display: inline-flex;
}

.search-button:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 28px 54px -24px rgba(79, 70, 229, 0.7);
}

.search-button:not(:disabled):hover .search-button-bg {
    opacity: 1;
}

.search-button:not(:disabled):hover .search-button-shimmer {
    transform: translateX(145%);
}

.search-button:not(:disabled):focus-visible {
    outline: 2px solid rgba(191, 219, 254, 0.75);
    outline-offset: 3px;
}

.search-button.is-loading {
    transform: none;
    box-shadow: 0 12px 35px -18px rgba(79, 70, 229, 0.55);
}

.search-button.is-loading .search-button-shimmer {
    opacity: 0;
}

.search-button:disabled {
    cursor: not-allowed;
    filter: grayscale(0.4);
    opacity: 0.65;
}

.search-button:disabled .search-button-bg {
    background: linear-gradient(135deg, rgba(71, 85, 105, 0.88), rgba(30, 41, 59, 0.92));
    opacity: 0.85;
}

.search-button:disabled .search-button-icon {
    color: rgba(203, 213, 225, 0.63);
}

.search-button:disabled .search-button-label {
    color: rgba(203, 213, 225, 0.7);
}

@keyframes search-button-spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.search-form.is-hidden {
    display: none;
}

.processing-container {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    overflow-y: auto;
}

.processing-container.active {
    display: block;
    animation: fadeIn 0.3s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.processing-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2.25rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    position: relative;
    overflow: hidden;
}

.processing-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(59, 130, 246, 0.18), transparent 65%);
    pointer-events: none;
}

.processing-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 2rem;
}

.processing-status {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.processing-status-icon svg {
    width: 2.2rem;
    height: 2.2rem;
    color: var(--accent-blue);
    filter: drop-shadow(0 0 10px rgba(59, 130, 246, 0.28));
}

.processing-eyebrow {
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(148, 163, 184, 0.8);
    margin-bottom: 0.35rem;
}

.processing-heading {
    font-size: 1.65rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
}

.processing-description {
    color: var(--text-secondary);
}

.processing-description span {
    color: var(--text-primary);
    font-weight: 600;
}

.processing-timer {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.35rem;
    min-width: 120px;
}

.processing-timer-label {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: rgba(148, 163, 184, 0.7);
}

.processing-timer-value {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--accent-purple);
}

.processing-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
    gap: 2.25rem;
}

.processing-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.processing-panel {
    background: rgba(15, 23, 42, 0.78);
    border: 1px solid rgba(59, 130, 246, 0.12);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.panel-title {
    font-size: 1.05rem;
    font-weight: 600;
}

.panel-subtitle {
    font-size: 0.82rem;
    color: rgba(148, 163, 184, 0.7);
}

.stat-grid {
    display: grid;
    gap: 0.9rem;
}

.stat-card {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.stat-label {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(148, 163, 184, 0.7);
}

.stat-value {
    font-size: 1.4rem;
    font-weight: 700;
}

.stat-value-updated {
    animation: statFlash 0.4s ease;
}

.insights-list {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.insight-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: rgba(30, 41, 59, 0.85);
    border-radius: 14px;
    border: 1px solid rgba(59, 130, 246, 0.12);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.28);
    animation: insightIn 0.35s ease;
}

.insight-item-error {
    border-color: rgba(239, 68, 68, 0.4);
    background: rgba(239, 68, 68, 0.12);
}

.insight-icon svg {
    width: 20px;
    height: 20px;
    color: var(--accent-green);
}

.insight-item-error .insight-icon svg {
    color: var(--accent-red);
}

.insight-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.processing-steps {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.process-step {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1.25rem;
    padding: 1.15rem 1.35rem;
    background: rgba(15, 23, 42, 0.72);
    border: 1px solid rgba(59, 130, 246, 0.12);
    border-radius: 16px;
}

.process-step-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.65rem;
}

.step-index {
    font-size: 0.78rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(148, 163, 184, 0.6);
}

.step-icon-wrapper {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.32);
    background: rgba(30, 41, 59, 0.75);
    color: rgba(148, 163, 184, 0.85);
    transition: all 0.25s ease;
    position: relative;
}

.step-icon-wrapper svg {
    width: 26px;
    height: 26px;
}

.step-icon-wrapper.active {
    color: var(--accent-blue);
    border-color: rgba(59, 130, 246, 0.65);
    background: rgba(59, 130, 246, 0.12);
    box-shadow: 0 12px 22px rgba(59, 130, 246, 0.18);
}

.step-icon-wrapper.complete {
    color: var(--accent-green);
    border-color: rgba(34, 197, 94, 0.45);
    background: rgba(34, 197, 94, 0.12);
}

.step-connector {
    flex: 1;
    width: 1px;
    background: linear-gradient(to bottom, rgba(148, 163, 184, 0.25), transparent);
}

.process-step-content {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.step-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
}

.step-title {
    font-size: 1.05rem;
    font-weight: 600;
}

.step-duration {
    font-size: 0.85rem;
    color: rgba(148, 163, 184, 0.7);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 999px;
    padding: 0.25rem 0.65rem;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.step-duration.active {
    border-color: rgba(59, 130, 246, 0.5);
    color: var(--accent-blue);
}

.step-detail {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.5;
}

.processing-progress {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.progress-label {
    font-size: 0.88rem;
    color: var(--text-secondary);
}

.progress-bar {
    position: relative;
    height: 6px;
    border-radius: 999px;
    background: rgba(30, 41, 59, 0.9);
    overflow: hidden;
    border: 1px solid rgba(59, 130, 246, 0.15);
}

.progress-bar-fill {
    position: absolute;
    inset: 0;
    width: 0%;
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-purple));
    transition: width 0.45s ease;
}

.results-overview {
    margin-bottom: 2rem;
}

.results-overview-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.results-overview .results-title {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.2;
}

.results-overview .results-subtitle {
    color: var(--text-secondary);
    font-family: 'Courier New', monospace;
    font-size: 0.95rem;
    margin-top: 0.35rem;
}

.vehicle-details {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.detail-item {
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.18);
    padding: 1rem;
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.detail-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-secondary);
    font-weight: 600;
}

.detail-value {
    font-size: 1rem;
    font-weight: 600;
}

.results-section {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    padding: 2rem;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.75rem;
}

.results-count {
    font-size: 0.9rem;
    color: var(--text-secondary);
    background: rgba(148, 163, 184, 0.1);
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.15);
}

.result-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.result-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: rgba(15, 23, 42, 0.88);
    border: 1px solid rgba(148, 163, 184, 0.15);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 20px 42px -26px rgba(30, 64, 175, 0.65);
    backdrop-filter: blur(14px);
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.result-card:hover {
    transform: translateY(-4px);
    border-color: rgba(96, 165, 250, 0.4);
    box-shadow: 0 26px 48px -20px rgba(79, 70, 229, 0.65);
}

.result-card-media {
    position: relative;
    height: 190px;
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.65), rgba(15, 23, 42, 0.95));
    display: flex;
    align-items: center;
    justify-content: center;
}

.result-card-media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 1.5rem;
    transition: transform 0.25s ease;
}

.result-card-media img.is-hidden {
    display: none;
}

.result-card:hover .result-card-media img {
    transform: scale(1.03);
}

.result-card-placeholder {
    position: absolute;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    color: rgba(100, 116, 139, 0.75);
}

.result-card-placeholder.is-visible {
    display: flex;
}

.result-card-badge {
    position: absolute;
    top: 1rem;
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    border: 1px solid transparent;
    backdrop-filter: blur(8px);
    background: rgba(15, 23, 42, 0.55);
}

.result-card-badge--stock {
    right: 1rem;
}

.result-card-badge--quality {
    left: 1rem;
    color: rgba(191, 219, 254, 0.95);
    border-color: rgba(59, 130, 246, 0.45);
    background: rgba(30, 64, 175, 0.25);
}

.result-card-badge--in {
    color: rgb(74, 222, 128);
    border-color: rgba(74, 222, 128, 0.35);
    background: rgba(21, 128, 61, 0.2);
}

.result-card-badge--low {
    color: rgb(250, 204, 21);
    border-color: rgba(250, 204, 21, 0.35);
    background: rgba(202, 138, 4, 0.22);
}

.result-card-badge--out {
    color: rgb(248, 113, 113);
    border-color: rgba(248, 113, 113, 0.4);
    background: rgba(185, 28, 28, 0.22);
}

.result-card-badge--preorder {
    color: rgb(147, 197, 253);
    border-color: rgba(147, 197, 253, 0.45);
    background: rgba(59, 130, 246, 0.22);
}

.result-card-badge--unknown {
    color: rgba(226, 232, 240, 0.9);
    border-color: rgba(148, 163, 184, 0.3);
    background: rgba(71, 85, 105, 0.25);
}

.result-card-body {
    padding: 1.5rem 1.5rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.result-card-brand {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.result-card-brand-mark {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.9), rgba(168, 85, 247, 0.95));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.05rem;
    color: #fff;
    box-shadow: 0 12px 24px -18px rgba(99, 102, 241, 0.85);
}

.result-card-brand-name {
    display: block;
    font-weight: 600;
    color: rgba(226, 232, 240, 0.96);
}

.result-card-rating {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.82rem;
    color: rgba(248, 250, 252, 0.78);
    margin-top: 0.2rem;
}

.result-card-rating svg {
    width: 14px;
    height: 14px;
    color: rgb(250, 204, 21);
}

.result-card-title {
    font-size: 1.18rem;
    font-weight: 700;
    line-height: 1.35;
}

.result-card-description {
    font-size: 0.9rem;
    color: rgba(148, 163, 184, 0.9);
    line-height: 1.55;
}

.result-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.result-card-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.4rem 0.7rem;
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(148, 163, 184, 0.2);
    font-size: 0.78rem;
    color: rgba(203, 213, 225, 0.95);
}

.result-card-meta-item--fitment {
    color: rgba(134, 239, 172, 0.95);
    border-color: rgba(34, 197, 94, 0.35);
    background: rgba(22, 163, 74, 0.12);
}

.result-card-meta-item .meta-label {
    font-weight: 600;
    color: rgba(248, 250, 252, 0.8);
    letter-spacing: 0.05em;
}

.result-card-meta-item .meta-value {
    font-family: 'JetBrains Mono', 'Fira Code', Consolas, monospace;
    font-size: 0.82rem;
    color: rgba(191, 219, 254, 0.95);
}

.result-card-meta-item .meta-icon svg {
    width: 16px;
    height: 16px;
}

.result-card-footer {
    margin-top: auto;
    padding: 1.1rem 1.5rem 1.4rem;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
}

.result-card-price-block {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.result-card-price {
    font-size: 1.55rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.95);
}

.result-card-availability {
    font-size: 0.8rem;
    color: rgba(148, 163, 184, 0.85);
    letter-spacing: 0.03em;
}

.result-card-actions {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.result-card-button {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.65rem 1.15rem;
    border-radius: 12px;
    border: 1px solid rgba(99, 102, 241, 0.35);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.95), rgba(168, 85, 247, 0.95));
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.result-card-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 32px -20px rgba(79, 70, 229, 0.7);
}

.result-card-button:focus-visible {
    outline: 2px solid rgba(191, 219, 254, 0.8);
    outline-offset: 2px;
}

.result-card-button-icon svg {
    width: 18px;
    height: 18px;
}

.result-card-icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.25);
    background: rgba(15, 23, 42, 0.75);
    color: rgba(226, 232, 240, 0.85);
    transition: transform 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.result-card-icon-button:hover:not([disabled]) {
    transform: translateY(-1px);
    border-color: rgba(96, 165, 250, 0.4);
    color: rgba(191, 219, 254, 0.95);
}

.result-card-icon-button[disabled] {
    opacity: 0.55;
    cursor: not-allowed;
}

.vehicle-card-section {
    margin-bottom: 2rem;
}

.vehicle-card {
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 24px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    box-shadow: 0 32px 64px -36px rgba(15, 23, 42, 0.75);
}

.vehicle-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
}

.vehicle-card-identity {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.vehicle-card-avatar {
    width: 68px;
    height: 68px;
    border-radius: 20px;
    background: linear-gradient(140deg, rgba(59, 130, 246, 0.35), rgba(168, 85, 247, 0.45));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(226, 232, 240, 0.95);
}

.vehicle-card-avatar.has-image {
    padding: 0;
    background: rgba(15, 23, 42, 0.65);
    overflow: hidden;
}

.vehicle-card-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vehicle-card-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
}

.vehicle-card-subtitle {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.vehicle-card-vin {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.55rem 0.95rem;
    border-radius: 999px;
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.25);
    width: fit-content;
}

.vehicle-vin-label {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.vehicle-vin-value {
    font-family: 'JetBrains Mono', 'Fira Code', Consolas, monospace;
    color: var(--text-primary);
    font-size: 0.92rem;
}

.vehicle-spec-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.vehicle-spec-item {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.95rem 1rem;
    border-radius: 16px;
    background: rgba(30, 41, 59, 0.72);
    border: 1px solid rgba(148, 163, 184, 0.22);
}

.vehicle-spec-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.55rem;
    border-radius: 14px;
    background: rgba(59, 130, 246, 0.2);
    color: rgba(191, 219, 254, 0.95);
}

.vehicle-spec-label {
    display: block;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.vehicle-spec-value {
    display: block;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
}

.vehicle-accordions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.vehicle-accordion {
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    background: rgba(15, 23, 42, 0.78);
    overflow: hidden;
}

.vehicle-accordion summary {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 1rem 1.25rem;
    font-weight: 600;
    cursor: pointer;
    color: rgba(191, 219, 254, 0.95);
}

.vehicle-accordion summary::-webkit-details-marker {
    display: none;
}

.vehicle-accordion[open] summary {
    background: rgba(59, 130, 246, 0.12);
    border-bottom: 1px solid rgba(59, 130, 246, 0.2);
}

.vehicle-accordion-content {
    padding: 1rem 1.25rem 1.25rem;
}

.vehicle-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.75rem;
}

.vehicle-detail-item {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    padding: 0.85rem;
    border-radius: 14px;
    background: rgba(30, 41, 59, 0.7);
    border: 1px solid rgba(148, 163, 184, 0.2);
}

.vehicle-detail-label {
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.vehicle-detail-value {
    font-size: 0.98rem;
    font-weight: 600;
    color: var(--text-primary);
}

.part-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.part-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 20px;
    box-shadow: 0 24px 48px -28px rgba(15, 23, 42, 0.75);
    overflow: hidden;
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.part-card:hover {
    transform: translateY(-4px);
    border-color: rgba(96, 165, 250, 0.45);
    box-shadow: 0 32px 60px -30px rgba(59, 130, 246, 0.55);
}

.part-card-media {
    position: relative;
    height: 190px;
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.6), rgba(15, 23, 42, 0.95));
    display: flex;
    align-items: center;
    justify-content: center;
}

.part-card-media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 1.5rem;
    transition: transform 0.25s ease;
}

.part-card:hover .part-card-media img {
    transform: scale(1.03);
}

.part-card-placeholder {
    position: absolute;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    color: rgba(100, 116, 139, 0.75);
}

.part-card-placeholder.is-visible {
    display: flex;
}

.part-card-badges {
    position: absolute;
    top: 1rem;
    left: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border: 1px solid rgba(148, 163, 184, 0.25);
    background: rgba(30, 41, 59, 0.8);
    color: rgba(226, 232, 240, 0.9);
}

.badge-tier-premium {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #111827;
    border-color: rgba(251, 191, 36, 0.65);
}

.badge-tier-oem {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.9), rgba(96, 165, 250, 0.9));
    color: #f8fafc;
    border-color: rgba(59, 130, 246, 0.65);
}

.badge-tier-budget {
    background: rgba(148, 163, 184, 0.15);
    color: rgba(226, 232, 240, 0.8);
}

.badge-oe {
    background: rgba(168, 85, 247, 0.18);
    color: rgba(216, 180, 254, 0.95);
    border-color: rgba(168, 85, 247, 0.35);
}

.badge-fitment-direct {
    background: rgba(34, 197, 94, 0.18);
    color: #22c55e;
    border-color: rgba(34, 197, 94, 0.35);
}

.badge-fitment-verified {
    background: rgba(59, 130, 246, 0.18);
    color: rgba(96, 165, 250, 0.95);
    border-color: rgba(59, 130, 246, 0.35);
}

.badge-fitment-check {
    background: rgba(148, 163, 184, 0.18);
    color: rgba(226, 232, 240, 0.85);
    border-color: rgba(148, 163, 184, 0.28);
}

.part-card-body {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    padding: 1.5rem 1.5rem 1.25rem;
}

.part-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.part-card-brand {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.part-card-brand-mark {
    width: 46px;
    height: 46px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.9), rgba(168, 85, 247, 0.9));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #fff;
    box-shadow: 0 16px 30px -22px rgba(59, 130, 246, 0.75);
}

.part-card-brand-name {
    display: block;
    font-weight: 600;
    color: rgba(226, 232, 240, 0.95);
}

.part-card-tier {
    display: inline-block;
    margin-top: 0.15rem;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: rgba(148, 163, 184, 0.9);
}

.part-card-summary {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.part-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--text-primary);
}

.part-card-description {
    font-size: 0.92rem;
    line-height: 1.55;
    color: rgba(203, 213, 225, 0.9);
}

.part-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.part-card-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.7rem;
    border-radius: 12px;
    background: rgba(30, 41, 59, 0.75);
    border: 1px solid rgba(148, 163, 184, 0.22);
    font-size: 0.78rem;
    color: rgba(226, 232, 240, 0.9);
}

.part-card-meta-label {
    font-weight: 600;
    color: rgba(148, 163, 184, 0.85);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.part-card-meta-value {
    font-family: 'JetBrains Mono', 'Fira Code', Consolas, monospace;
    color: rgba(191, 219, 254, 0.95);
    font-size: 0.82rem;
}

.part-card-sections {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.part-section {
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.7);
    overflow: hidden;
}

.part-section summary {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0.85rem 1rem;
    color: rgba(191, 219, 254, 0.95);
}

.part-section summary::-webkit-details-marker {
    display: none;
}

.part-section[open] summary {
    background: rgba(59, 130, 246, 0.12);
    border-bottom: 1px solid rgba(59, 130, 246, 0.2);
}

.part-section-content {
    padding: 0.85rem 1rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.spec-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.75rem;
}

.spec-item {
    background: rgba(30, 41, 59, 0.78);
    border-radius: 12px;
    border-left: 3px solid var(--accent-blue);
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.spec-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.spec-value {
    font-size: 0.95rem;
    color: var(--text-primary);
    font-weight: 600;
}

.spec-note {
    grid-column: 1 / -1;
    font-size: 0.8rem;
    color: rgba(148, 163, 184, 0.85);
}

.part-meta-line {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.9rem;
    color: rgba(226, 232, 240, 0.9);
}

.part-meta-line svg {
    width: 16px;
    height: 16px;
    color: rgba(96, 165, 250, 0.9);
}

.part-meta-line--wrap {
    flex-wrap: wrap;
}

.part-meta-line--muted {
    color: rgba(148, 163, 184, 0.85);
}

.part-section-note {
    font-size: 0.85rem;
    color: rgba(191, 219, 254, 0.85);
}

.part-card-footer {
    padding: 1rem 1.5rem 1.4rem;
    display: flex;
    justify-content: flex-end;
}

.part-card-footer .btn-secondary {
    width: 100%;
    justify-content: center;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(2, 6, 23, 0.72);
    backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    z-index: 1000;
}

.modal-content {
    max-width: 880px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 24px;
    background: rgba(10, 14, 39, 0.95);
    border: 1px solid rgba(148, 163, 184, 0.22);
    box-shadow: 0 40px 80px -32px rgba(15, 23, 42, 0.8);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.part-modal-header {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.part-modal-image {
    flex-shrink: 0;
    width: 140px;
    height: 140px;
    border-radius: 20px;
    background: rgba(30, 41, 59, 0.9);
    border: 1px solid rgba(59, 130, 246, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.part-modal-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 1rem;
}

.part-modal-heading h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.part-modal-subtitle {
    color: var(--text-secondary);
    font-family: 'JetBrains Mono', 'Fira Code', Consolas, monospace;
    font-size: 0.9rem;
}

.modal-tabs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-radius: 14px;
    background: rgba(30, 41, 59, 0.6);
    padding: 0.4rem;
}

.tab-btn {
    flex: 1;
    padding: 0.65rem 0.85rem;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: rgba(148, 163, 184, 0.85);
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.tab-btn.active {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.85), rgba(129, 140, 248, 0.85));
    color: #fff;
}

.modal-body {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.tab-content {
    display: none;
    flex-direction: column;
    gap: 0.85rem;
}

.tab-content.active {
    display: flex;
}

.modal-overview-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(226, 232, 240, 0.92);
}

.modal-overview-highlights {
    display: grid;
    gap: 0.65rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    margin: 0;
    padding: 0;
    list-style: none;
}

.modal-overview-highlights li {
    background: rgba(30, 41, 59, 0.78);
    border-radius: 12px;
    border-left: 3px solid rgba(59, 130, 246, 0.45);
    padding: 0.75rem;
    font-size: 0.9rem;
    color: rgba(226, 232, 240, 0.9);
}

.modal-specs-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(15, 23, 42, 0.7);
    border-radius: 14px;
    overflow: hidden;
}

.modal-specs-table th,
.modal-specs-table td {
    padding: 0.8rem 1rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.15);
    text-align: left;
    font-size: 0.9rem;
}

.modal-specs-table th {
    width: 40%;
    font-weight: 600;
    color: rgba(148, 163, 184, 0.9);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.modal-specs-table tr:last-child th,
.modal-specs-table tr:last-child td {
    border-bottom: none;
}

.modal-compat-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 0.65rem;
}

.modal-compat-list li {
    padding: 0.6rem 0.75rem;
    border-radius: 10px;
    background: rgba(30, 41, 59, 0.7);
    border: 1px solid rgba(148, 163, 184, 0.2);
    font-size: 0.85rem;
    color: rgba(226, 232, 240, 0.88);
}

.modal-install-grid {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.modal-install-item {
    background: rgba(30, 41, 59, 0.75);
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    padding: 0.8rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.modal-install-label {
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: rgba(148, 163, 184, 0.9);
}

.modal-install-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: rgba(226, 232, 240, 0.95);
}

.modal-empty {
    padding: 1rem;
    border-radius: 12px;
    background: rgba(30, 41, 59, 0.65);
    border: 1px solid rgba(148, 163, 184, 0.2);
    color: rgba(148, 163, 184, 0.9);
    font-size: 0.9rem;
}

.modal-subnote {
    font-size: 0.8rem;
    color: rgba(148, 163, 184, 0.85);
}

.modal-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.5rem;
    font-weight: 600;
    color: rgba(96, 165, 250, 0.95);
    text-decoration: none;
}

.modal-link:hover {
    text-decoration: underline;
}

.modal-error {
    padding: 1rem;
    border-radius: 12px;
    background: rgba(248, 113, 113, 0.1);
    border: 1px solid rgba(248, 113, 113, 0.35);
    color: rgba(248, 250, 252, 0.92);
}

.modal-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 2rem 0;
    color: rgba(191, 219, 254, 0.9);
}

.modal-spinner {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 4px solid rgba(191, 219, 254, 0.25);
    border-top-color: rgba(96, 165, 250, 0.9);
    animation: modal-spin 0.8s linear infinite;
}

@keyframes modal-spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes statFlash {
    0% {
        color: var(--accent-blue);
    }
    100% {
        color: inherit;
    }
}

@keyframes insightIn {
    0% {
        opacity: 0;
        transform: translateY(8px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(12px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 960px) {
    .search-inputs {
        grid-template-columns: 1fr;
    }

    /* Mobile-specific search button improvements */
    .search-button {
        padding: 1.2rem 1.6rem;
        font-size: 1.1rem;
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
        min-height: 56px;
    }

    /* Add active state for mobile touch feedback */
    .search-button:not(:disabled):active {
        transform: scale(0.98);
        transition: transform 0.1s ease;
    }

    /* Ensure button shows enabled state on mobile */
    .search-button:not(:disabled) {
        cursor: pointer;
    }

    /* Make sure the background is visible when enabled on mobile */
    .search-button:not(:disabled) .search-button-bg {
        opacity: 0.95;
    }

    .processing-card {
        padding: 1.75rem;
    }

    .processing-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.25rem;
    }

    .processing-timer {
        align-items: flex-start;
        flex-direction: row;
        justify-content: space-between;
        width: 100%;
    }

    .processing-layout {
        grid-template-columns: 1fr;
        gap: 1.75rem;
    }

    .processing-sidebar {
        flex-direction: column;
    }

    .results-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .vehicle-card {
        padding: 1.75rem;
    }

    .vehicle-card-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .vehicle-spec-grid {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    }

    .part-card {
        border-radius: 18px;
    }

    .part-modal-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .modal-content {
        padding: 1.5rem;
    }
}

/* ========================================
   NEW SEARCH RESULTS LAYOUT STYLES
   ======================================== */

/* Vehicle Header (New Layout) */
.vehicle-header-new {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    padding: 1.5rem 2rem;
    margin-bottom: 1.5rem;
}

.vehicle-info-new {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.vehicle-icon-new {
    font-size: 48px;
    flex-shrink: 0;
}

.vehicle-details-new h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 0.5rem 0;
}

.vehicle-meta-new {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.vehicle-meta-new span {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.category-badge-new {
    margin-left: auto;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    color: white;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Specifications Panel */
.specs-panel {
    background: var(--card-bg);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 18px;
    padding: 1.75rem 2rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-soft);
}

.specs-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.specs-icon {
    font-size: 32px;
    flex-shrink: 0;
}

.specs-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    flex: 1;
}

.fitment-badge {
    padding: 0.4rem 0.85rem;
    background: rgba(34, 197, 94, 0.15);
    color: var(--accent-green);
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.spec-section {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 1.25rem;
}

.spec-section h4 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 1rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.spec-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(100, 116, 139, 0.15);
}

.spec-item:last-child {
    border-bottom: none;
}

.spec-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.spec-value {
    font-size: 0.95rem;
    color: var(--text-primary);
    font-weight: 600;
    font-family: 'JetBrains Mono', 'Fira Code', Consolas, monospace;
}

.warning-note {
    margin-top: 1.25rem;
    padding: 1rem;
    background: rgba(251, 191, 36, 0.1);
    border: 1px solid rgba(251, 191, 36, 0.3);
    border-radius: 12px;
    color: rgba(251, 191, 36, 0.95);
    font-size: 0.9rem;
    display: flex;
    gap: 0.5rem;
}

/* Filters Bar */
.filters-bar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    padding: 1rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 14px;
}

.filter-label {
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.filter-btn {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    background: transparent;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-btn:hover {
    border-color: var(--accent-blue);
    color: var(--text-primary);
}

.filter-btn.active {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    color: white;
    border-color: transparent;
}

/* Products Section */
.products-section-new {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    padding: 1.75rem 2rem;
}

.products-header-new {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.products-header-new h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.results-count-new {
    font-size: 0.9rem;
    color: var(--text-secondary);
    background: rgba(148, 163, 184, 0.1);
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.15);
}

/* Vertical Column Layout - Large Self-Contained Cards */
.products-grid-new {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Large Self-Contained Part Card */
.product-card-new {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    overflow: hidden;
    cursor: default;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    padding: 24px;
}

.product-card-new:hover {
    transform: translateY(-4px);
    border-color: rgba(96, 165, 250, 0.45);
    box-shadow: 0 20px 40px -20px rgba(59, 130, 246, 0.5);
}

.product-image-new {
    position: relative;
    height: 180px;
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.6), rgba(15, 23, 42, 0.95));
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid rgba(148, 163, 184, 0.15);
}

.product-image-new img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 1.25rem;
    transition: transform 0.25s ease;
}

.product-card-new:hover .product-image-new img {
    transform: scale(1.05);
}

.tier-badge-new {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    backdrop-filter: blur(8px);
}

.tier-badge-new.tier-premium {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #111827;
    border: 1px solid rgba(251, 191, 36, 0.5);
}

.tier-badge-new.tier-oem {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.9), rgba(96, 165, 250, 0.9));
    color: #f8fafc;
    border: 1px solid rgba(59, 130, 246, 0.5);
}

.tier-badge-new.tier-budget,
.tier-badge-new.tier-standard {
    background: rgba(148, 163, 184, 0.2);
    color: rgba(226, 232, 240, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.3);
}

.product-body-new {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex: 1;
}

.product-brand-new {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.brand-logo-new {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: white;
    font-size: 0.95rem;
}

.brand-name-new {
    font-weight: 600;
    color: rgba(226, 232, 240, 0.95);
    font-size: 1.05rem;
}

.product-title-new {
    font-size: 0.95rem;
    line-height: 1.4;
    color: var(--text-primary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-meta-new {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin-top: auto;
}

.meta-item-new {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0.75rem;
    background: rgba(30, 41, 59, 0.6);
    border-radius: 8px;
    border: 1px solid rgba(148, 163, 184, 0.15);
}

.meta-label-new {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.meta-value-new {
    font-size: 0.85rem;
    color: var(--text-primary);
    font-family: 'JetBrains Mono', 'Fira Code', Consolas, monospace;
    font-weight: 500;
}

.oe-badge-new {
    padding: 0.25rem 0.65rem;
    background: rgba(168, 85, 247, 0.2);
    color: rgba(216, 180, 254, 0.95);
    border: 1px solid rgba(168, 85, 247, 0.35);
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Responsive adjustments for new layout */
@media (max-width: 960px) {
    .vehicle-header-new {
        padding: 1.25rem 1.5rem;
    }

    .vehicle-info-new {
        flex-direction: column;
        align-items: flex-start;
    }

    .category-badge-new {
        margin-left: 0;
    }

    .specs-panel {
        padding: 1.25rem 1.5rem;
    }

    .specs-grid {
        grid-template-columns: 1fr;
    }

    .filters-bar {
        padding: 0.75rem;
    }

    .products-section-new {
        padding: 1.25rem 1.5rem;
    }

    .products-grid-new {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    /* Small screen search button improvements */
    .search-button {
        padding: 1.15rem 1.4rem;
        font-size: 1.05rem;
        min-height: 54px;
    }

    /* More prominent visual change when button becomes enabled */
    .search-button:not(:disabled) {
        box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
        border-color: rgba(99, 102, 241, 0.5);
    }

    /* Add tactile feedback on touch */
    .search-button:not(:disabled):active {
        transform: scale(0.96);
        box-shadow: 0 2px 8px rgba(59, 130, 246, 0.5);
    }

    .vehicle-icon-new {
        font-size: 36px;
    }

    .vehicle-details-new h2 {
        font-size: 1.35rem;
    }

    .vehicle-meta-new {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }

    .specs-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .specs-icon {
        font-size: 28px;
    }

    .filters-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-btn {
        width: 100%;
        text-align: center;
    }

    .products-header-new {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Revamped Vehicle Header */
.vehicle-header-revamped {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.08), rgba(139, 92, 246, 0.05));
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.vehicle-main-info {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.vehicle-avatar-container {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 16px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(139, 92, 246, 0.1));
    border: 2px solid rgba(59, 130, 246, 0.3);
}

.vehicle-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vehicle-avatar-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-blue);
}

.vehicle-title-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.vehicle-title-main {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.2;
}

.vehicle-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    margin: 0;
    font-weight: 500;
}

.search-category-badge {
    display: inline-block;
    padding: 0.375rem 0.875rem;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(139, 92, 246, 0.15));
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--accent-blue);
    align-self: flex-start;
}

.vehicle-specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.spec-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.spec-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.spec-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.vin-card {
    padding: 1.75rem 2rem;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.08), rgba(124, 58, 237, 0.05));
    border: 2px solid rgba(167, 139, 250, 0.3);
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.1);
}

.vin-card:hover {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.12), rgba(124, 58, 237, 0.08));
    border-color: rgba(167, 139, 250, 0.5);
    box-shadow: 0 12px 32px rgba(139, 92, 246, 0.15);
}

.vin-card .spec-icon {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.25), rgba(124, 58, 237, 0.15));
    color: #d8b4fe;
}

.vin-card .spec-content {
    gap: 0.5rem;
}

.vin-card .spec-label {
    font-size: 0.85rem;
    color: #c4b5fd;
}

.vin-card .spec-value-code {
    font-size: 1.1rem;
    letter-spacing: 0.05em;
    color: #e9d5ff;
    padding: 0.5rem 0;
}

.engine-card .spec-icon {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15), rgba(220, 38, 38, 0.1));
    color: #f87171;
}

.body-card .spec-icon {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(37, 99, 235, 0.1));
    color: #60a5fa;
}

.transmission-card .spec-icon {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(5, 150, 105, 0.1));
    color: #34d399;
}

.drive-card .spec-icon {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(217, 119, 6, 0.1));
    color: #fbbf24;
}

.spec-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.spec-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.spec-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.4;
}

.spec-value-code {
    font-family: 'Courier New', Consolas, monospace;
    font-size: 0.9rem;
    font-weight: 700;
    color: #a78bfa;
    background: rgba(139, 92, 246, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    letter-spacing: 0.05em;
}

/* Responsive adjustments for vehicle header */
@media (max-width: 768px) {
    .vehicle-header-revamped {
        padding: 1.25rem;
    }

    .vehicle-main-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .vehicle-avatar-container {
        width: 60px;
        height: 60px;
    }

    .vehicle-title-main {
        font-size: 1.375rem;
    }

    .vehicle-specs-grid {
        grid-template-columns: 1fr;
    }
}

/* Information Bars for Compatible Vehicles and Specifications */
.info-bar {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.75rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.info-bar:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.info-bar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.info-bar-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.info-bar-title svg {
    flex-shrink: 0;
}

.info-bar-header h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.info-bar-count {
    font-size: 0.875rem;
    color: var(--text-primary);
    font-weight: 600;
    padding: 0.375rem 0.875rem;
    border-radius: 20px;
}

.info-bar-content {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* Compatible Vehicles Bar - Green Theme */
.compatible-vehicles-bar {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.05), rgba(5, 150, 105, 0.03));
    border-color: rgba(16, 185, 129, 0.2);
}

.compatible-vehicles-bar .info-bar-title svg {
    color: #10b981;
}

.compatible-vehicles-bar .info-bar-count {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(5, 150, 105, 0.15));
    color: #059669;
}

.vehicle-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 0.75rem;
}

.vehicle-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.875rem 1rem;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.08), rgba(5, 150, 105, 0.05));
    border: 1.5px solid rgba(16, 185, 129, 0.25);
    border-radius: 10px;
    transition: all 0.25s ease;
}

.vehicle-item:hover {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(5, 150, 105, 0.1));
    border-color: rgba(16, 185, 129, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.15);
}

.vehicle-years {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    color: #059669;
    background: rgba(16, 185, 129, 0.15);
    padding: 0.25rem 0.625rem;
    border-radius: 6px;
    align-self: flex-start;
}

.vehicle-name {
    font-size: 0.9rem;
    color: var(--text-primary);
    font-weight: 500;
}

.vehicle-make {
    font-weight: 700;
    color: var(--text-primary);
}

/* Part Specifications Bar - Blue Theme */
.part-specifications-bar {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05), rgba(37, 99, 235, 0.03));
    border-color: rgba(59, 130, 246, 0.2);
}

.part-specifications-bar .info-bar-title svg {
    color: #3b82f6;
}

.part-specifications-bar .info-bar-count {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(37, 99, 235, 0.15));
    color: #2563eb;
}

.spec-grid-bar {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0.875rem;
}

.spec-item-bar {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.08), rgba(37, 99, 235, 0.05));
    border: 1.5px solid rgba(59, 130, 246, 0.25);
    border-radius: 10px;
    transition: all 0.25s ease;
}

.spec-item-bar:hover {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(37, 99, 235, 0.1));
    border-color: rgba(59, 130, 246, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.spec-label-bar {
    font-size: 0.75rem;
    font-weight: 700;
    color: #2563eb;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.spec-value-bar {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.4;
}

.spec-frequency {
    font-size: 0.7rem;
    font-weight: 600;
    color: #60a5fa;
    background: rgba(59, 130, 246, 0.15);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    align-self: flex-start;
    margin-top: 0.25rem;
}

.info-bar-more {
    margin: 1rem 0 0 0;
    padding: 0.75rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
    text-align: center;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
}

/* Responsive adjustments for info bars */
@media (max-width: 768px) {
    .vehicle-grid {
        grid-template-columns: 1fr;
    }

    .spec-grid-bar {
        grid-template-columns: 1fr;
    }

    .info-bar {
        padding: 1.25rem;
    }

    .info-bar-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .vehicle-meta-new {
        flex-direction: column;
        gap: 0.75rem;
    }

    .meta-item-header {
        width: 100%;
    }
}

/* ========================================
   NEW STYLES FOR ENHANCED PART DISPLAY
   ======================================== */

/* Image Gallery Styles */
.part-image-gallery {
    position: relative;
    margin-bottom: 1rem;
}

.part-image-main {
    width: 100%;
    height: 220px;
    object-fit: contain;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    display: block;
}

.image-thumbnails {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    overflow-x: auto;
    padding-bottom: 4px;
    scroll-behavior: smooth;
}

.image-thumbnails::-webkit-scrollbar {
    height: 4px;
}

.image-thumbnails::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 2px;
}

.image-thumbnails::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
}

.image-thumbnails::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

.image-thumb {
    width: 60px;
    height: 60px;
    min-width: 60px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s ease;
    background: rgba(0, 0, 0, 0.1);
}

.image-thumb:hover {
    border-color: #7c3aed;
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(124, 58, 237, 0.3);
}

.image-thumb.active {
    border-color: #7c3aed;
    box-shadow: 0 0 0 2px rgba(124, 58, 237, 0.2);
}

.more-images {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    height: 60px;
    background: rgba(124, 58, 237, 0.15);
    border: 2px solid rgba(124, 58, 237, 0.3);
    border-radius: 6px;
    color: #a78bfa;
    font-size: 12px;
    font-weight: 600;
    cursor: default;
    transition: all 0.2s ease;
}

/* Specification Categories */
.spec-category {
    margin-bottom: 24px;
}

.spec-category h4 {
    margin: 0 0 12px 0;
    font-size: 14px;
    font-weight: 600;
    color: #e5e7eb;
    display: flex;
    align-items: center;
    gap: 8px;
}

.spec-category:last-child {
    margin-bottom: 0;
}

/* Compatible Vehicles List */
.compatible-vehicles-list {
    max-height: 500px;
    overflow-y: auto;
    padding-right: 4px;
}

.compatible-vehicles-list::-webkit-scrollbar {
    width: 6px;
}

.compatible-vehicles-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.compatible-vehicles-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

.compatible-vehicles-list::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

.vehicle-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    margin-bottom: 8px;
    transition: all 0.2s ease;
}

.vehicle-item:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(124, 58, 237, 0.3);
}

.vehicle-item strong {
    color: #e5e7eb;
    font-size: 14px;
    font-weight: 600;
}

.vehicle-engine {
    color: #9ca3af;
    font-size: 13px;
    font-weight: 500;
}

.vehicle-years {
    color: #6b7280;
    font-size: 12px;
}

.show-more-vehicles {
    margin-top: 12px;
}

.show-more-vehicles summary {
    cursor: pointer;
    padding: 10px;
    text-align: center;
    color: #a78bfa;
    font-weight: 600;
    border-radius: 6px;
    background: rgba(124, 58, 237, 0.1);
    border: 1px solid rgba(124, 58, 237, 0.2);
    transition: all 0.2s ease;
    font-size: 13px;
    user-select: none;
}

.show-more-vehicles summary:hover {
    background: rgba(124, 58, 237, 0.15);
    border-color: rgba(124, 58, 237, 0.4);
    color: #c4b5fd;
}

.more-vehicles {
    margin-top: 12px;
}

/* OEM Numbers Display */
.oem-numbers {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
}

.oem-number {
    display: inline-block;
    padding: 6px 12px;
    background: rgba(124, 58, 237, 0.12);
    border: 1px solid rgba(124, 58, 237, 0.25);
    border-radius: 6px;
    font-size: 12px;
    color: #c4b5fd;
    font-family: 'Courier New', monospace;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.oem-number:hover {
    background: rgba(124, 58, 237, 0.2);
    border-color: rgba(124, 58, 237, 0.4);
    color: #e9d5ff;
    cursor: pointer;
}

/* Part Image Placeholder */
.part-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 220px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    color: #6b7280;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .part-image-main {
        height: 180px;
    }

    .image-thumbnails {
        gap: 6px;
    }

    .image-thumb {
        width: 50px;
        height: 50px;
        min-width: 50px;
    }

    .more-images {
        min-width: 50px;
        height: 50px;
        font-size: 11px;
    }

    .spec-category h4 {
        font-size: 13px;
    }

    .compatible-vehicles-list {
        max-height: 350px;
    }

    .vehicle-item {
        padding: 10px;
        margin-bottom: 6px;
    }

    .vehicle-item strong {
        font-size: 13px;
    }

    .vehicle-engine {
        font-size: 12px;
    }

    .vehicle-years {
        font-size: 11px;
    }

    .oem-number {
        padding: 5px 10px;
        font-size: 11px;
    }

    .show-more-vehicles summary {
        padding: 8px;
        font-size: 12px;
    }
}

/* =============================================
   INLINE EXPANDABLE PART DETAILS STYLES
   ============================================= */

.part-card-wrapper {
    display: contents;
}

.btn-expand-details {
    width: 100%;
    padding: 12px;
    margin-top: auto;
    background: rgba(124, 58, 237, 0.2);
    border: 1px solid rgba(124, 58, 237, 0.4);
    border-radius: 8px;
    color: #a78bfa;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-expand-details:hover {
    background: rgba(124, 58, 237, 0.3);
    border-color: rgba(124, 58, 237, 0.6);
}

/* Large Self-Contained Card Styles */

/* Card Header - Brand Badge + Title Info */
.part-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    gap: 20px;
}

.part-header-left {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    flex: 1;
}

.brand-badge-large {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 12px;
    font-size: 20px;
    font-weight: 700;
    text-transform: uppercase;
    flex-shrink: 0;
    color: #f8fafc;
}

.brand-badge-large.tier-premium {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #111827;
}

.brand-badge-large.tier-oem {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.9), rgba(96, 165, 250, 0.9));
}

.brand-badge-large.tier-standard,
.brand-badge-large.tier-budget {
    background: rgba(148, 163, 184, 0.3);
}

.part-title-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.part-brand-name {
    font-size: 20px;
    font-weight: 600;
    color: #e5e7eb;
}

.part-number {
    font-size: 13px;
    font-family: 'Courier New', monospace;
    color: #9ca3af;
    background: rgba(0, 0, 0, 0.2);
    padding: 2px 8px;
    border-radius: 4px;
    display: inline-block;
    width: fit-content;
}

.part-header-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.quality-badge,
.warranty-badge {
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.warranty-badge {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
    border-color: rgba(59, 130, 246, 0.3);
}

/* Card Title */
.part-card-title {
    margin: 0 0 20px 0;
    font-size: 18px;
    font-weight: 500;
    color: #f1f5f9;
}

/* Content Grid - Image + Stats */
.part-content-grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 24px;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.part-image-container {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 300px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    overflow: hidden;
}

.part-main-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 16px;
}

.part-image-placeholder {
    font-size: 64px;
    opacity: 0.3;
}

/* Stats Grid */
.part-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.stat-box {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.stat-label {
    font-size: 12px;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
    color: #a78bfa;
}

.stat-value.code {
    font-family: 'Courier New', monospace;
    font-size: 14px;
    color: #f1f5f9;
    word-break: break-all;
}

/* Section Titles */
.section-title {
    margin: 0 0 16px 0;
    font-size: 16px;
    font-weight: 600;
    color: #e5e7eb;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Specifications Grid */
.specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.spec-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 6px;
    border-left: 3px solid rgba(124, 58, 237, 0.3);
}

.spec-name {
    font-size: 11px;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.spec-val {
    font-size: 14px;
    color: #e5e7eb;
    font-weight: 500;
}

/* Compatibility Table Section */
.part-compat-section {
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Expandable Details/Summary Styling */
.compat-details {
    width: 100%;
}

.compat-details[open] .expand-icon {
    transform: rotate(180deg);
}

.compat-summary {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 0;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #a78bfa;
    user-select: none;
    transition: color 0.2s ease;
}

.compat-summary:hover {
    color: #c4b5fd;
}

.expand-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    transition: transform 0.2s ease;
    color: #a78bfa;
}

/* Specifications Details/Summary Styling */
.specs-details {
    width: 100%;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.08), rgba(124, 58, 237, 0.05));
    border: 1.5px solid rgba(167, 139, 250, 0.25);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 16px rgba(139, 92, 246, 0.08);
    transition: all 0.3s ease;
}

.specs-details:hover {
    border-color: rgba(167, 139, 250, 0.4);
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.12);
}

.specs-details[open] .expand-icon {
    transform: rotate(180deg);
}

.specs-summary {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    color: #e9d5ff;
    user-select: none;
    transition: all 0.2s ease;
    margin: -1.5rem -1.5rem 1.5rem -1.5rem;
    padding: 1.5rem;
    border-radius: 14px 14px 0 0;
    list-style: none;
}

.specs-summary:hover {
    color: #f3e8ff;
    background: rgba(139, 92, 246, 0.08);
}

.specs-summary::-webkit-details-marker {
    display: none;
}

/* Specifications Bar Details/Summary Styling */
.specs-bar-details {
    width: 100%;
    margin-bottom: 1.5rem;
}

.specs-bar-details[open] .expand-icon {
    transform: rotate(180deg);
}

.specs-bar-summary {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 0;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #a78bfa;
    user-select: none;
    transition: color 0.2s ease;
}

.specs-bar-summary:hover {
    color: #c4b5fd;
}

.compat-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    overflow: hidden;
    max-height: 500px;
    overflow-y: auto;
}

.compat-table thead {
    background: rgba(124, 58, 237, 0.1);
    position: sticky;
    top: 0;
}

.compat-table th {
    padding: 12px 16px;
    text-align: left;
    font-size: 12px;
    color: #a78bfa;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.compat-table td {
    padding: 12px 16px;
    font-size: 14px;
    color: #e5e7eb;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.compat-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

.compat-make,
.compat-model,
.compat-engine {
    font-weight: 500;
}

.compat-years {
    color: #a78bfa;
    font-size: 13px;
}

/* OEM Section */
.part-oem-section {
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.oem-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
}

.oem-chip {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 8px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.oem-chip:hover {
    background: rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.4);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.15);
}

.oem-value {
    flex: 1;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    color: #e5e7eb;
    font-weight: 600;
    word-break: break-all;
}

/* VIN Display Wrapper with Copy Button */
.vin-display-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.vin-display-wrapper .spec-value-code {
    flex: 1;
    min-width: 0;
}

/* Search Completed Message Styling */
.search-completed-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.08), rgba(5, 150, 105, 0.05));
    border: 1.5px solid rgba(16, 185, 129, 0.25);
    border-radius: 16px;
    text-align: center;
    margin: 1.5rem 0;
}

.search-completed-message .completed-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: bold;
    color: #10b981;
    background: rgba(16, 185, 129, 0.15);
    border: 2px solid rgba(16, 185, 129, 0.3);
    border-radius: 50%;
    animation: pulse-success 2s ease-in-out infinite;
}

.search-completed-message .completed-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #10b981;
    margin: 0;
}

.search-completed-message .completed-subtitle {
    font-size: 0.95rem;
    color: #a3e635;
    margin: 0;
}

@keyframes pulse-success {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(16, 185, 129, 0);
    }
}

.copy-btn {
    padding: 6px 10px;
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid rgba(16, 185, 129, 0.4);
    border-radius: 4px;
    color: #10b981;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.copy-btn:hover {
    background: rgba(16, 185, 129, 0.3);
    border-color: rgba(16, 185, 129, 0.6);
}

/* No Data Message Styling */
.no-data-message {
    padding: 16px;
    background: rgba(251, 191, 36, 0.08);
    border: 1px solid rgba(251, 191, 36, 0.2);
    border-radius: 8px;
    color: #fbbf24;
    font-size: 14px;
    text-align: center;
    margin: 16px 0;
    font-weight: 500;
}

/* Responsive */
@media (max-width: 1024px) {
    .part-content-grid {
        grid-template-columns: 1fr;
    }

    .part-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .specs-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }

    .oem-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .product-card-new {
        padding: 16px;
    }

    .part-header {
        flex-direction: column;
        gap: 12px;
    }

    .part-header-left {
        flex-direction: column;
    }

    .brand-badge-large {
        width: 48px;
        height: 48px;
        font-size: 18px;
    }

    .part-brand-name {
        font-size: 18px;
    }

    .part-card-title {
        font-size: 16px;
    }

    .part-content-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        padding-bottom: 16px;
        margin-bottom: 16px;
    }

    .part-image-container {
        height: 250px;
    }

    .part-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .stat-box {
        padding: 12px;
    }

    .stat-value {
        font-size: 20px;
    }

    .specs-grid {
        grid-template-columns: 1fr;
        padding: 12px;
        gap: 8px;
    }

    .spec-item {
        padding: 10px;
    }

    .spec-name {
        font-size: 10px;
    }

    .spec-val {
        font-size: 13px;
    }

    .compat-table {
        font-size: 12px;
        max-height: 400px;
    }

    .compat-table th,
    .compat-table td {
        padding: 8px 12px;
    }

    .oem-grid {
        grid-template-columns: 1fr;
    }

    .oem-chip {
        padding: 10px 12px;
    }

    .oem-value {
        font-size: 13px;
    }

    .copy-btn {
        padding: 4px 8px;
        font-size: 12px;
    }
}
