.product-detail {
    display: flex;
    gap: 60px;
}

.product-gallery, .detail-information {
    width: calc(50% - 30px);
    min-width: 0;
}

.main-image {
    position: relative;
    display: block;
    width: 100%;
    border: 1px solid var(--line);
    background: white;
}

.main-image > img {
    width: 100%;
    height: 380px;
    object-fit: contain;
}

.thumbnails {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.thumbnails button {
    border: 1px solid var(--line);
    background: white;
}

.thumbnails img {
    width: 80px;
    height: 65px;
    object-fit: contain;
}

.thumbnails [aria-pressed="true"] {
    border-color: var(--red);
}

.detail-oem {
    --number-prefix-color: var(--ink);
    font-size: clamp(24px, 2.6vw, 32px);
    font-weight: 700;
    line-height: 1.25;
    margin: 0 0 12px;
    color: var(--red);
    overflow-wrap: anywhere;
}

.detail-name {
    font-size: clamp(16px, 1.6vw, 20px);
    font-weight: 400;
    line-height: 1.5;
    margin: 0 0 24px;
    color: var(--muted);
    overflow-wrap: anywhere;
}

.detail-specs > div {
    display: flex;
    border-bottom: 1px solid var(--line);
    padding: 10px 0;
    gap: 20px;
}

.detail-specs dt {
    min-width: 90px;
}

.detail-note {
    margin: 24px 0;
    overflow-wrap: anywhere;
}

.fitments, .reference-numbers, .product-description {
    margin-top: 50px;
}

.reference-numbers > div {
    display: flex;
    flex-wrap: wrap;
    gap: 15px 35px;
}

.fitment-list {
    border: 1px solid var(--line);
}

.fitment-group + .fitment-group {
    border-top: 1px solid var(--line);
}

.fitment-heading {
    display: flex;
    width: 100%;
    align-items: center;
    gap: 20px;
    padding: 16px;
    border: 0;
    color: inherit;
    text-align: left;
}

.fitment-heading strong {
    width: 130px;
    flex-shrink: 0;
}

.fitment-heading > span:not(.fitment-year):not(.fitment-spacer):not(.fitment-symbol) {
    flex: 1;
    min-width: 0;
    overflow-wrap: anywhere;
}

.fitment-year {
    width: 140px;
    text-align: right;
}

.fitment-symbol, .fitment-spacer {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    padding: 3px;
}

.fitment-symbol {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    color: var(--red);
}

.fitment-toggle {
    cursor: pointer;
}

.fitment-toggle:hover, .fitment-toggle:focus-visible {
    background: var(--surface-muted);
}

.fitment-panel th, .fitment-panel td {
    padding: 14px;
    border-top: 1px solid var(--line);
    text-align: left;
}

.fitment-panel th {
    background: #e2e9f1;
}

.image-preview {
    position: fixed;
    inset: 0;
    z-index: 120;
    background: #09182b99;
    display: flex;
    align-items: center;
}

.image-preview {
    justify-content: center;
    padding: 32px;
}

.preview-dialog {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: min(960px, 100%);
    max-height: calc(100svh - 64px);
    padding: 64px 64px 32px;
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: 0 20px 70px #0b1b3040;
}

.preview-frame {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 180px;
    width: 100%;
}

.preview-frame img {
    max-width: 100%;
    max-height: min(620px, calc(100svh - 180px));
    width: auto;
    height: auto;
    object-fit: contain;
}

.preview-close {
    position: absolute;
    top: 12px;
    right: 12px;
}

.preview-prev, .preview-next {
    position: absolute;
    top: calc(50% - 22px);
}

.preview-prev {
    left: 12px;
}

.preview-next {
    right: 12px;
}

.back-link {
    margin-top: 35px;
}

@media (max-width: 900px) {
.product-detail {
    flex-direction: column;
    gap: 30px;
}

.product-gallery, .detail-information {
    width: 100%;
}

.main-image > img {
    height: 400px;
}

}

@media (max-width: 640px) {
.main-image > img {
    height: 290px;
}

.fitment-heading {
    flex-wrap: wrap;
    gap: 10px;
}

.fitment-heading strong {
    width: calc(100% - 44px);
}

.fitment-heading > span:not(.fitment-spacer):not(.fitment-symbol) {
    margin-left: 44px;
    flex-basis: calc(100% - 44px);
}

.fitment-year {
    text-align: left;
}

.fitment-panel thead {
    display: none;
}

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

.fitment-panel td {
    display: flex;
    gap: 18px;
    padding: 10px 16px;
    border: 0;
}

.fitment-panel td::before {
    content: attr(data-label);
    width: 44%;
    flex-shrink: 0;
    font-weight: bold;
}

.fitment-panel tr {
    padding: 14px 0;
    border-top: 1px solid var(--line);
}

.image-preview {
    padding: 16px;
}

.preview-dialog {
    padding: 60px 18px;
    max-height: calc(100svh - 32px);
}

.preview-frame img {
    max-height: calc(100svh - 160px);
}

.preview-prev, .preview-next {
    top: auto;
    bottom: 10px;
}

}
.detail-information .cart-toggle {
    margin-top: 8px;
    background: var(--navy);
    color: #fff;
    border-color: var(--navy);
}

.detail-information .cart-toggle:hover,
.detail-information .cart-toggle:focus-visible {
    background: var(--navy-deep);
    border-color: var(--navy-deep);
}

.detail-information .cart-toggle[aria-pressed="true"] {
    background: var(--surface);
    color: var(--red);
    border-color: var(--red);
}

.detail-information .cart-toggle[aria-pressed="true"]:hover,
.detail-information .cart-toggle[aria-pressed="true"]:focus-visible {
    background: var(--red);
    color: #fff;
    border-color: var(--red);
}

.product-description {
    background: var(--surface-muted);
    padding: 35px;
}
.product-description h2, .reference-numbers h2, .fitments h2 {
    font-size: 28px;
}
.fitment-heading {
    background: var(--canvas);
}
.fitment-panel {
    background: var(--surface);
}
.fitment-heading[aria-expanded="true"] {
    background: var(--surface-muted);
}
.main-image:hover {
    border-color: var(--red);
}
@media (max-width: 640px) {
    .product-description {
        padding: 24px 20px;
    }
}
