.detail-main {
    display: flex;
    gap: 65px;
    align-items: flex-start;
    margin-bottom: 60px;
}
.detail-gallery {
    flex: 0 0 45%;
    min-width: 0;
}
.detail-image-button {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 450px;
    background: white;
    border: 1px solid var(--line);
    padding: 30px;
    transition: border-color .2s;
}
.detail-image-button:hover,
.detail-image-button:focus-visible {
    border-color: var(--accent);
}
.detail-image-button img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform .3s;
}
.detail-image-button:hover img, .detail-image-button:focus-visible img {
    transform: scale(1.035);
}
.detail-image-button > span {
    position: absolute;
    right: 15px;
    bottom: 15px;
}
.detail-copy {
    flex: 1;
    min-width: 0;
}
.detail-copy h1 {
    font-size: 34px;
    margin-bottom: 12px;
    line-height: 1.3;
    overflow-wrap: anywhere;
}
.detail-copy h2 {
    font-size: 24px;
    margin-bottom: 25px;
    font-weight: 400;
}
.detail-note {
    padding-block: 20px;
    border-block: 1px solid var(--line);
    margin-bottom: 25px;
}
.detail-copy .cart-toggle {
    margin-top: 25px;
}
.reference-numbers {
    margin-top: 25px;
}
.detail-thumbnails {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}
.detail-thumbnails button {
    width: 96px;
    height: 75px;
    border: 1px solid var(--line);
    background: white;
    padding: 5px;
}
.detail-thumbnails img {
    max-height: 100%;
    object-fit: contain;
}
.detail-thumbnails [aria-pressed="true"] {
    border-color: var(--accent);
}
.fitment {
    margin-top: 40px;
}
.fitment h2 {
    font-size: 28px;
    margin-bottom: 25px;
}
.fitment-list {
    border: 1px solid var(--line);
}
.fitment-group + .fitment-group {
    border-top: 1px solid var(--line);
}
.fitment-heading {
    display: flex;
    gap: 20px;
    align-items: center;
    width: 100%;
    border: none;
    padding: 18px 22px;
    text-align: left;
    background: #edf1f2;
}
.fitment-toggle-icon {
    position: relative;
    flex: 0 0 18px;
    height: 18px;
}
.fitment-toggle-icon::before, .fitment-toggle-icon::after {
    content: '';
    position: absolute;
    background: currentColor;
    top: 8px;
    left: 2px;
    width: 14px;
    height: 2px;
}
.fitment-toggle-icon::after {
    transform: rotate(90deg);
}
.fitment-heading[aria-expanded="true"] .fitment-toggle-icon::after {
    display: none;
}
.fitment-heading:disabled .fitment-toggle-icon {
    visibility: hidden;
}
.fitment-years {
    margin-left: auto;
    font-size: 13px;
}
.fitment table {
    width: 100%;
    border-collapse: collapse;
}
.fitment td, .fitment th {
    padding: 14px 20px;
    text-align: left;
    border-bottom: 1px solid #e1e5e7;
    font-size: 13px;
}
.fitment tbody tr:last-child,
.fitment tbody tr:last-child > td {
    border-bottom: 0;
}
.image-dialog {
    width: min(800px, 100%);
    height: min(800px, calc(100vh - 40px));
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    padding: 35px;
}
.image-dialog > img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.image-close {
    position: absolute;
    top: 5px;
    right: 5px;
}
@media (max-width: 900px) {
    .detail-main {
        flex-direction: column;
        gap: 35px;
    }
    .detail-gallery, .detail-copy {
        width: 100%;
        flex-basis: auto;
    }
    .detail-image-button {
        height: 400px;
    }
}
@media (max-width: 640px) {
    .detail-image-button {
        height: 310px;
    }
    .fitment-heading {
        flex-wrap: wrap;
        gap: 10px;
        padding: 15px;
    }
    .fitment-heading > span:not(.fitment-toggle-icon) {
        flex-basis: calc(100% - 28px);
        margin-left: 28px;
    }
    .fitment thead {
        display: none;
    }
    .fitment tr {
        display: block;
        padding: 15px;
        border-bottom: 1px solid var(--line);
    }
    .fitment td {
        display: flex;
        gap: 15px;
        padding: 7px 0;
        border: 0;
    }
    .fitment td::before {
        content: attr(data-label);
        flex: 0 0 85px;
        font-weight: bold;
    }
}
