.detail-main {
    display: flex;
    align-items: flex-start;
    gap: 64px;
}
.detail-gallery {
    width: calc(48% - 32px);
    min-width: 0;
}
.detail-image-preview {
    display: block;
    border-radius: 4px;
    cursor: zoom-in;
}
.detail-primary {
    display: block;
    width: 100%;
    height: 420px;
    object-fit: contain;
    padding: 26px;
    border: 1px solid var(--line);
    border-radius: 4px;
    transition: border-color 180ms ease, box-shadow 180ms ease;
}
.detail-image-preview:hover .detail-primary,
.detail-image-preview:focus-visible .detail-primary {
    border-color: var(--brand);
    box-shadow: 0 6px 20px rgb(0 119 166 / 12%);
}
.detail-thumbnails {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
}
.detail-thumbnails button {
    width: 82px;
    height: 82px;
    padding: 6px;
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 3px;
    cursor: pointer;
}
.detail-thumbnails [aria-pressed="true"] {
    border-color: var(--brand);
}
.detail-thumbnails img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.detail-copy {
    width: calc(52% - 32px);
    min-width: 0;
}
.detail-copy h1 {
    display: flex;
    align-items: baseline;
    gap: 12px;
    font-size: 30px;
    overflow-wrap: anywhere;
    margin-bottom: 10px;
}
.detail-number-prefix {
    flex-shrink: 0;
    color: var(--brand);
}
.detail-number {
    min-width: 0;
}
.detail-copy h2 {
    font-size: 18px;
    font-weight: 400;
    color: var(--muted);
    letter-spacing: 0;
}
.detail-specs {
    margin: 30px 0;
    padding: 24px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}
.detail-specs > div + div {
    margin-top: 18px;
}
.detail-specs dt {
    font-weight: 600;
    margin-bottom: 8px;
}
.detail-specs dd {
    margin: 0;
    color: var(--muted);
}
.reference-numbers {
    margin-top: 36px;
}
.reference-numbers h3 {
    font-size: 18px;
    margin-bottom: 16px;
}
.reference-numbers li {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 8px 0;
    border-bottom: 1px solid var(--line);
}
.reference-numbers span {
    color: var(--muted);
}
.reference-numbers strong {
    font-weight: 400;
    overflow-wrap: anywhere;
}
.fitment-section {
    margin-top: 70px;
}
.fitment-section h2 {
    font-size: 26px;
    margin-bottom: 25px;
}
.fitment-list {
    border: 1px solid #cbdfe9;
    border-radius: 3px;
    overflow: hidden;
}
.fitment-group + .fitment-group {
    border-top: 1px solid #cbdfe9;
}
.fitment-row {
    display: flex;
    align-items: center;
    gap: 22px;
    padding: 18px 22px;
    background: #f3f8fb;
}
.fitment-row.is-toggleable {
    cursor: pointer;
}
.fitment-toggle, .fitment-spacer {
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
}
.fitment-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    color: var(--brand-deep);
    border: 1px solid #b3d1e0;
    background: #fff;
    border-radius: 3px;
    cursor: pointer;
}
.fitment-toggle-icon {
    display: block;
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
}
.fitment-group.expanded .fitment-toggle-icon path {
    d: path("M4 12h16");
}
.fitment-make {
    flex: 0 0 130px;
}
.fitment-model {
    flex: 1;
    min-width: 0;
}
.fitment-year {
    flex: 0 0 180px;
    text-align: right;
    color: var(--muted);
}
.fitment-body {
    padding: 20px;
}
.fitment-body table {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
    text-align: left;
}
.fitment-body th, .fitment-body td {
    padding: 14px 12px;
    border-bottom: 1px solid var(--line);
    overflow-wrap: anywhere;
}
.fitment-body th {
    background: var(--soft);
    font-weight: 600;
}
.cart-toggle.is-added {
    background: #e3f2f8;
    color: var(--brand-deep);
}
@media (max-width: 900px) {
    .detail-main {
        flex-direction: column;
        gap: 35px;
    }
    .detail-gallery, .detail-copy {
        width: 100%;
    }
    .detail-primary {
        height: 400px;
    }
    .fitment-row {
        gap: 14px;
    }
    .fitment-make {
        flex-basis: 100px;
    }
    .fitment-year {
        flex-basis: 150px;
    }
}
@media (max-width: 640px) {
    .detail-primary {
        height: 310px;
        padding: 20px;
    }
    .detail-copy h1 {
        font-size: 26px;
    }
    .detail-copy h2 {
        font-size: 16px;
    }
    .fitment-section {
        margin-top: 40px;
    }
    .fitment-row {
        flex-wrap: wrap;
        padding: 16px;
        gap: 10px;
    }
    .fitment-make {
        flex: 1;
    }
    .fitment-model {
        flex: 0 0 calc(100% - 34px);
        margin-left: 34px;
    }
    .fitment-year {
        flex-basis: calc(100% - 34px);
        margin-left: 34px;
        text-align: left;
    }
    .fitment-body {
        padding: 0 16px;
    }
    .fitment-body thead {
        display: none;
    }
    .fitment-body table, .fitment-body tbody, .fitment-body tr, .fitment-body td {
        display: block;
        width: 100%;
    }
    .fitment-body tr {
        padding: 15px 0;
        border-bottom: 1px solid var(--line);
    }
    .fitment-body td {
        display: flex;
        align-items: flex-start;
        gap: 18px;
        padding: 8px 0;
        border: 0;
    }
    .fitment-body td::before {
        content: attr(data-label);
        flex: 0 0 42%;
        color: var(--muted);
        font-weight: 600;
    }
}
