.detail-main {
    display: flex;
    gap: 48px;
}
.detail-gallery {
    width: 48%;
}
.detail-info {
    flex: 1;
    min-width: 0;
}
.detail-main-image {
    width: 100%;
    background: #fff;
    border: 1px solid #c7d2db;
    padding: 24px;
    border-radius: 24px;
    transition: border-color 180ms ease, box-shadow 180ms ease;
}
.detail-main-image:focus-visible {
    border-color: #d4ad40;
    box-shadow: 0 8px 22px rgba(24, 53, 72, 0.07);
}
@media (hover: hover) {
    .detail-main-image:hover {
        border-color: #d4ad40;
        box-shadow: 0 8px 22px rgba(24, 53, 72, 0.07);
    }
}
.detail-main-image img {
    transition: transform 220ms ease;
}
@media (hover: hover) {
    .detail-main-image:hover img {
        transform: scale(1.035);
    }
}
.detail-thumbnails {
    margin-top: 16px;
}
.detail-thumbnails button {
    border-radius: 12px;
    padding: 6px;
    transition: border-color 180ms ease;
}
.detail-thumbnails button[aria-pressed="true"] {
    border-color: #d4ad40;
}
@media (hover: hover) {
    .detail-thumbnails button:hover {
        border-color: #d4ad40;
    }
}
.detail-info h2 {
    font-size: 36px;
}
.detail-info .detail-name {
    font-size: 22px;
    color: #3c6076;
}
.detail-attributes {
    margin: 26px 0 24px;
    font-size: 14px;
}
.detail-attributes > div {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    padding: 14px 0;
    border-bottom: 1px solid #d3dfe6;
}
.detail-attributes dt {
    flex: 0 0 112px;
    max-width: 40%;
    color: #637582;
    overflow-wrap: anywhere;
}
.detail-attributes dd {
    flex: 1;
    min-width: 0;
    color: #183548;
    font-weight: 600;
    overflow-wrap: anywhere;
}
.detail-info .detail-note {
    font-size: 14px;
    line-height: 1.7;
}
.detail-info .add-cart {
    margin-top: 26px;
}
.reference-numbers {
    margin-top: 32px;
}
.reference-numbers h3 {
    font-size: 20px;
}
.detail-description {
    padding: 30px;
    border-radius: 20px;
    background: #edf2f4;
}
.detail-description h2, .fitment > h2 {
    font-size: 28px;
    margin-bottom: 24px;
}
.fitment-group {
    margin-bottom: 12px;
    border: 1px solid #c7d2db;
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
}
.fitment-toggle {
    transition: background 180ms ease;
}
.fitment-toggle[aria-expanded="true"] {
    background: #f4eac8;
}
@media (hover: hover) {
    .fitment-toggle:hover {
        background: #f4eac8;
    }
}
.fitment-toggle svg {
    transform: rotate(-90deg);
    transition: transform 180ms ease;
}
.fitment-toggle[aria-expanded="true"] svg {
    transform: rotate(0deg);
}
.fitment-table {
    border-top: 1px solid #c7d2db;
}
.fitment th {
    font-size: 12px;
    color: #688291;
    background: #f1f5f7;
}
.fitment td {
    background: #fff;
    font-size: 13px;
}
.fitment small {
    color: #81939e;
}
.image-dialog {
    border-radius: 22px;
    box-shadow: 0 16px 60px rgba(14, 32, 42, 0.2);
}
.preview-navigation {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-top: 16px;
}
.detail-main-image img {
    width: 100%;
    height: 360px;
    object-fit: contain;
}
.detail-thumbnails {
    display: flex;
    gap: 12px;
}
.detail-thumbnails button {
    width: 85px;
    background: #fff;
    border: 1px solid #c7d2db;
}
.detail-thumbnails img {
    height: 75px;
    object-fit: contain;
}
.detail-description, .fitment {
    margin-top: 48px;
}
.fitment-toggle, .fitment-heading {
    display: flex;
    gap: 16px;
    align-items: center;
    width: 100%;
    text-align: left;
    padding: 18px;
    border: 0;
    background: #edf1f4;
}
.fitment-years {
    margin-left: auto;
}
.fitment table {
    width: 100%;
    border-collapse: collapse;
}
.fitment td, .fitment th {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #c7d2db;
}
.fitment tbody tr:last-child td {
    border-bottom: 0;
}
.fitment small {
    display: block;
}
.image-dialog {
    position: relative;
    width: min(800px, calc(100vw - 32px));
    max-height: calc(100dvh - 32px);
    overflow: auto;
    padding: 48px 24px 24px;
    background: #fff;
    text-align: center;
}
#previewClose {
    position: absolute;
    right: 10px;
    top: 10px;
}
#previewImage {
    max-width: 100%;
    max-height: 70dvh;
    object-fit: contain;
}
@media (max-width: 900px) {
    .detail-main {
        flex-direction: column;
    }
    .detail-gallery {
        width: 100%;
    }
}
@media (max-width: 640px) {
    .fitment-toggle, .fitment-heading {
        flex-wrap: wrap;
        gap: 8px;
    }
    .fitment-years {
        width: 100%;
    }
    .fitment thead {
        display: none;
    }
    .fitment tr, .fitment td {
        display: block;
    }
    .fitment tbody tr:last-child td:not(:last-child) {
        border-bottom: 1px solid #c7d2db;
    }
    .fitment td::before {
        content: attr(data-label);
        font-weight: bold;
        margin-right: 16px;
    }
}
