.fitment-page {
    padding-top: clamp(28px, 5vw, 52px);
    padding-bottom: clamp(54px, 8vw, 96px);
}

.fitment-hero {
    position: relative;
    z-index: 1;
    isolation: isolate;
    overflow: visible;
    padding: clamp(54px, 8vw, 96px) 0;
    color: #fff;
    background:
        radial-gradient(circle at 82% 24%, rgba(59, 130, 246, 0.35), transparent 30%),
        linear-gradient(135deg, #0f172a, #172554);
}

.fitment-hero__media {
    position: absolute;
    z-index: -2;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.fitment-hero--hub {
    display: flex;
    align-items: flex-start;
    min-height: clamp(560px, 48vw, 720px);
    padding-top: clamp(50px, 5vw, 72px);
}

.fitment-hero--hub::after {
    position: absolute;
    z-index: -1;
    inset: 0;
    background: linear-gradient(90deg, rgba(4, 18, 45, .68) 0%, rgba(4, 18, 45, .5) 42%, rgba(4, 18, 45, .12) 70%, transparent 86%);
    content: "";
}

.fitment-hero__image {
    position: absolute;
    right: 0;
    bottom: 0;
    width: auto;
    max-width: none;
    height: 100%;
    object-fit: contain;
    object-position: right bottom;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 22%);
    mask-image: linear-gradient(to right, transparent 0%, #000 22%);
}

.fitment-hero--hub .fitment-hero__content {
    max-width: 720px;
}

.fitment-hero__content {
    max-width: 820px;
}

.fitment-hero h1,
.fitment-page-header h1,
.fitment-vehicle-header h1 {
    margin: 8px 0 14px;
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: -0.035em;
    line-height: 1.08;
}

.fitment-hero h1 {
    color: #fff;
    font-size: clamp(2.1rem, 5vw, 4rem);
}

.fitment-hero p {
    max-width: 680px;
    margin: 0 0 28px;
    color: #cbd5e1;
    font-size: clamp(1rem, 2vw, 1.18rem);
}

.fitment-eyebrow {
    color: var(--app-primary);
    font-size: .76rem;
    font-weight: 750;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.fitment-hero .fitment-eyebrow {
    color: #93c5fd;
}

.fitment-search {
    position: relative;
    z-index: 20;
    max-width: 720px;
}

.fitment-search__label {
    display: block;
    margin-bottom: 8px;
    color: inherit;
    font-weight: 700;
}

.fitment-search__control {
    position: relative;
}

.fitment-search__icon {
    position: absolute;
    top: 50%;
    left: 18px;
    color: #64748b;
    font-size: 1.65rem;
    line-height: 1;
    transform: translateY(-52%);
}

.fitment-search__input {
    width: 100%;
    min-height: 62px;
    padding: 14px 100px 14px 54px;
    color: #111827;
    background: #fff;
    border: 1px solid #dbe4f0;
    border-radius: 16px;
    box-shadow: 0 15px 42px rgba(15, 23, 42, .16);
    font: inherit;
    font-size: 1.02rem;
    outline: 0;
}

.fitment-search__input:focus {
    border-color: #60a5fa;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, .13), 0 15px 42px rgba(15, 23, 42, .16);
}

.fitment-search__input::-webkit-search-cancel-button {
    display: none;
    -webkit-appearance: none;
    appearance: none;
}

.fitment-search__input::-ms-clear {
    display: none;
}

.fitment-search__status {
    position: absolute;
    top: 50%;
    right: 18px;
    color: #64748b;
    font-size: .82rem;
    transform: translateY(-50%);
}

.fitment-search__results {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: 0;
    overflow: hidden;
    padding: 6px;
    color: #111827;
    background: #fff;
    border: 1px solid var(--app-border);
    border-radius: 14px;
    box-shadow: var(--app-shadow);
}

.fitment-search__result {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 12px 14px;
    color: inherit;
    border-radius: 9px;
    font-weight: 650;
    text-decoration: none;
}

.fitment-search__result:hover,
.fitment-search__result:focus,
.fitment-search__result.is-active {
    color: var(--app-primary);
    background: var(--app-primary-soft);
}

.fitment-section-heading,
.fitment-vehicle-header,
.fitment-related {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 28px;
}

.fitment-section-heading {
    margin-bottom: 22px;
}

.fitment-section-heading h2,
.fitment-navigation-section h2,
.fitment-info h2,
.fitment-related h2 {
    margin: 4px 0 0;
    font-family: var(--font-display);
    font-weight: 700;
}

.fitment-section-heading p {
    max-width: 430px;
    margin: 0;
    color: var(--app-muted);
}

.fitment-link-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.fitment-popular-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.fitment-link-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 58px;
    padding: 14px 16px;
    color: var(--app-ink);
    background: #fff;
    border: 1px solid var(--app-border);
    border-radius: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.fitment-link-card span {
    color: var(--app-primary);
}

.fitment-link-card:hover {
    color: var(--app-primary);
    border-color: #bfdbfe;
    box-shadow: 0 9px 25px rgba(37, 99, 235, .09);
    transform: translateY(-2px);
}

.fitment-alert {
    margin-bottom: 24px;
    padding: 15px 18px;
    color: #92400e;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 12px;
}

.fitment-breadcrumbs {
    margin-bottom: 30px;
    color: #64748b;
    font-size: .86rem;
}

.fitment-breadcrumbs ol {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.fitment-breadcrumbs li + li::before {
    margin-right: 8px;
    content: "›";
}

.fitment-breadcrumbs a {
    color: inherit;
    text-decoration: none;
}

.fitment-page-header {
    max-width: 850px;
    margin-bottom: 28px;
}

.fitment-page-header h1,
.fitment-vehicle-header h1 {
    font-size: clamp(2rem, 4vw, 3.25rem);
}

.fitment-page-header p,
.fitment-vehicle-header p {
    color: var(--app-muted);
    font-size: 1.05rem;
}

.fitment-page > .fitment-search {
    margin-bottom: 42px;
}

.fitment-navigation-section {
    margin-top: 36px;
}

.fitment-navigation-section h2 {
    margin-bottom: 20px;
}

.fitment-guide {
    display: grid;
    grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr);
    gap: clamp(28px, 5vw, 68px);
    margin-top: clamp(54px, 8vw, 92px);
    padding-top: clamp(42px, 6vw, 68px);
    border-top: 1px solid var(--app-border);
}

.fitment-guide h2 {
    margin: 7px 0 14px;
    font-family: var(--font-display);
    font-size: clamp(1.7rem, 3vw, 2.35rem);
    font-weight: 700;
}

.fitment-guide p {
    margin: 0;
    color: var(--app-muted);
    line-height: 1.65;
}

.fitment-guide__grid {
    display: grid;
    gap: 12px;
}

.fitment-guide__grid article {
    padding: 20px;
    background: #fff;
    border: 1px solid var(--app-border);
    border-radius: 14px;
}

.fitment-guide__grid h3 {
    margin: 0 0 7px;
    font-family: var(--font-display);
    font-size: 1.08rem;
    font-weight: 700;
}

.fitment-year-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.fitment-generation-list {
    display: grid;
    gap: 22px;
}

.fitment-generation-group h3 {
    margin: 0 0 11px;
    color: var(--app-text);
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
}

.fitment-year-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 9px 14px;
    color: #334155;
    background: #fff;
    border: 1px solid var(--app-border);
    border-radius: 10px;
    font-weight: 650;
    text-decoration: none;
}

.fitment-year-link:hover,
.fitment-year-link.is-active {
    color: #fff;
    background: var(--app-primary);
    border-color: var(--app-primary);
}

.fitment-vehicle-header {
    align-items: start;
    margin-bottom: 28px;
}

.fitment-vehicle-header > div:first-child {
    max-width: 780px;
}

.fitment-generation {
    display: inline-flex;
    padding: 8px 11px;
    color: #334155;
    background: #eef2ff;
    border-radius: 9px;
    font-size: .9rem;
    font-weight: 700;
}

.fitment-modification {
    min-width: min(100%, 330px);
    padding: 16px;
    background: #fff;
    border: 1px solid var(--app-border);
    border-radius: 14px;
}

.fitment-modification label,
.fitment-modification small {
    display: block;
}

.fitment-modification label {
    margin-bottom: 7px;
    font-size: .82rem;
    font-weight: 700;
}

.fitment-modification select {
    width: 100%;
    min-height: 44px;
    padding: 8px 34px 8px 10px;
    color: var(--app-ink);
    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 9px;
}

.fitment-modification small {
    margin-top: 7px;
    color: var(--app-muted);
}

.fitment-spec-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 24px;
}

.fitment-spec-card {
    padding: 20px;
    background: #fff;
    border: 1px solid var(--app-border);
    border-radius: 15px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .04);
}

.fitment-spec-card span,
.fitment-spec-card strong {
    display: block;
}

.fitment-spec-card span {
    margin-bottom: 9px;
    color: var(--app-muted);
    font-size: .84rem;
    font-weight: 650;
}

.fitment-spec-card strong {
    font-family: var(--font-display);
    font-size: clamp(1.3rem, 3vw, 1.8rem);
}

.fitment-main-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(290px, .75fr);
    gap: 22px;
    align-items: start;
}

.fitment-sizes {
    display: grid;
    gap: 20px;
}

.fitment-size-card {
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--app-border);
    border-radius: 15px;
}

.fitment-size-card h2 {
    margin: 0;
    padding: 18px 20px;
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
}

.fitment-table {
    width: 100%;
    border-collapse: collapse;
}

.fitment-table th,
.fitment-table td {
    padding: 13px 20px;
    text-align: left;
    border-top: 1px solid var(--app-border);
}

.fitment-table th {
    color: #475569;
    background: #f8fafc;
    font-size: .82rem;
}

.fitment-cta {
    position: sticky;
    top: 18px;
    padding: clamp(22px, 3vw, 30px);
    color: #fff;
    background: linear-gradient(150deg, #172554, #1d4ed8);
    border-radius: 17px;
    box-shadow: var(--app-shadow);
}

.fitment-cta .fitment-eyebrow {
    color: #bfdbfe;
}

.fitment-cta h2 {
    margin: 8px 0 12px;
    font-family: var(--font-display);
    font-size: clamp(1.45rem, 3vw, 2rem);
}

.fitment-cta p {
    color: #dbeafe;
}

.fitment-cta__button {
    width: 100%;
    margin-top: 8px;
    color: #1d4ed8;
    background: #fff;
    border-color: #fff;
}

.fitment-info {
    margin-top: clamp(48px, 8vw, 78px);
}

.fitment-info h2 {
    margin-bottom: 20px;
}

.fitment-info-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.fitment-info-card {
    min-height: 132px;
    padding: 18px;
    text-align: left;
    background: #fff;
    border: 1px solid var(--app-border);
    border-radius: 14px;
}

.fitment-info-card strong,
.fitment-info-card span {
    display: block;
}

.fitment-info-card strong {
    margin-bottom: 20px;
}

.fitment-info-card span {
    color: var(--app-primary);
    font-size: .86rem;
    font-weight: 700;
}

.fitment-related {
    align-items: start;
    margin-top: clamp(48px, 8vw, 78px);
}

.fitment-related > section {
    width: 50%;
}

.fitment-related h2 {
    margin-bottom: 16px;
    font-size: 1.3rem;
}

.fitment-modal .modal-content {
    border: 0;
    border-radius: 16px;
}

@media (max-width: 991px) {
    .fitment-link-grid,
    .fitment-info-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .fitment-main-grid {
        grid-template-columns: 1fr;
    }

    .fitment-guide {
        grid-template-columns: 1fr;
    }

    .fitment-cta {
        position: static;
    }
}

@media (max-width: 767px) {
    .fitment-section-heading,
    .fitment-vehicle-header,
    .fitment-related {
        display: block;
    }

    .fitment-modification {
        margin-top: 22px;
    }

    .fitment-spec-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .fitment-related > section {
        width: auto;
    }

    .fitment-related > section + section {
        margin-top: 34px;
    }

    .fitment-modal .modal-dialog {
        align-items: end;
        min-height: calc(100% - .5rem);
        margin: .5rem;
    }

    .fitment-modal .modal-content {
        border-radius: 18px 18px 8px 8px;
    }
}

@media (max-width: 575px) {
    .fitment-hero--hub {
        min-height: 620px;
        padding: 34px 0 64px;
    }

    .fitment-hero--hub::after {
        background: linear-gradient(180deg, rgba(4, 18, 45, .72), rgba(4, 18, 45, .53));
    }

    .fitment-hero__image {
        right: -42px;
        height: 64%;
        object-position: right bottom;
        -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 22%);
        mask-image: linear-gradient(to bottom, transparent 0%, #000 22%);
    }

    .fitment-link-grid,
    .fitment-info-grid {
        grid-template-columns: 1fr;
    }

    .fitment-spec-grid {
        gap: 9px;
    }

    .fitment-spec-card {
        padding: 15px;
    }

    .fitment-spec-card:nth-child(3):last-child {
        grid-column: 1 / -1;
    }

    .fitment-table thead {
        position: absolute;
        overflow: hidden;
        width: 1px;
        height: 1px;
        clip: rect(0 0 0 0);
    }

    .fitment-table tr,
    .fitment-table td {
        display: block;
    }

    .fitment-table tr {
        padding: 10px 15px;
        border-top: 1px solid var(--app-border);
    }

    .fitment-table td {
        display: flex;
        justify-content: space-between;
        gap: 16px;
        padding: 5px 0;
        border: 0;
        text-align: right;
    }

    .fitment-table td::before {
        color: var(--app-muted);
        content: attr(data-label);
        font-size: .8rem;
        font-weight: 650;
        text-align: left;
    }
}
