.detail-main {
    display: flex;
    gap: 70px;
}
.detail-gallery {
    width: 48%;
    min-width: 0;
}
.main-picture {
    width: 100%;
    padding: 30px;
    background: #fff;
    border: 1px solid #dce3e9;
}
.main-picture img {
    width: 100%;
    height: 380px;
    object-fit: contain;
}
.detail-information {
    flex: 1;
    min-width: 0;
    overflow-wrap: anywhere;
}
.detail-information h2 {
    font-size: 32px;
    line-height: 1.3;
}
.detail-name {
    font-size: 21px;
    margin-block: 14px 28px;
}
.specifications > div {
    display: flex;
    gap: 20px;
    padding-block: 10px;
    border-bottom: 1px solid #d2dce4;
}
.specifications dt {
    width: 120px;
    flex-shrink: 0;
}
.specifications dd {
    flex: 1;
    min-width: 0;
}
.detail-note {
    margin-block: 24px;
    white-space: pre-line;
}
.thumbnails {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
}
.thumbnails button {
    width: 75px;
    padding: 4px;
    background: #fff;
}
.thumbnails img {
    width: 65px;
    height: 65px;
    object-fit: contain;
}
.thumbnails [aria-pressed="true"] {
    border-color: #1557aa;
}
.fitment, .detail-description {
    margin-top: 60px;
}
.fitment h2, .detail-description h2 {
    margin-bottom: 24px;
    font-size: 28px;
}
.fitment-heading {
    display: flex;
    align-items: center;
    gap: 22px;
    padding: 22px;
    background: #e9f1fa;
    width: 100%;
    text-align: left;
    border: 0;
}
.fitment-heading > span:nth-last-child(2) {
    flex: 1;
    min-width: 0;
}
.fitment-heading[aria-expanded="true"] .fitment-icon {
    transform: none;
}
.fitment-group {
    margin-bottom: 12px;
    border-left: 1px solid #cbd6df;
    border-right: 1px solid #cbd6df;
}
.fitment-content th, .fitment-content td {
    padding: 18px 14px;
    text-align: left;
    border-bottom: 1px solid #cbd6df;
}
.fitment-content th {
    background: #e7f1ef;
}
.image-dialog {
    width: 800px;
    padding: 45px;
}
.image-dialog > img {
    width: 100%;
    max-height: 75vh;
    object-fit: contain;
}
.dialog-close {
    position: absolute;
    top: 2px;
    right: 5px;
}
.preview-controls {
    display: flex;
    justify-content: center;
    gap: 24px;
}
.preview-status {
    padding: 90px 0;
    text-align: center;
}
@media (max-width: 900px) {
    .detail-main {
        flex-direction: column;
        gap: 32px;
    }
    .detail-gallery {
        width: 100%;
    }
}
@media (max-width: 640px) {
    .main-picture {
        padding: 16px;
    }
    .main-picture img {
        height: 290px;
    }
    .fitment-heading {
        flex-wrap: wrap;
        gap: 12px;
    }
    .fitment-heading > span:nth-last-child(2) {
        flex: 1 1 65%;
    }
    .fitment-content table, .fitment-content tbody, .fitment-content tr {
        display: block;
    }
    .fitment-content thead {
        display: none;
    }
    .fitment-content td {
        display: flex;
        gap: 16px;
    }
    .fitment-content td::before {
        content: attr(data-label);
        width: 100px;
        flex-shrink: 0;
        font-weight: bold;
    }
    .fitment-content tr {
        margin-bottom: 24px;
    }
    .image-dialog {
        padding: 40px 15px 20px;
    }
}

.main-picture {
    transition: border-color .2s, box-shadow .2s;
}
.detail-information .cart-toggle {
    margin-top: 10px;
    padding: 14px 24px;
}
.fitment-heading {
    transition: background-color .2s;
}
@media (hover: hover) {
    .main-picture:hover, .thumbnails button:hover {
        border-color: #1557aa;
        box-shadow: 0 5px 25px #1738590d;
    }
    button.fitment-heading:hover {
        background: #dae8f3;
    }
}
