.product-detail {
    display: flex;
    align-items: flex-start;
    gap: 62px;
}

.detail-gallery,
.detail-copy {
    flex: 1 1 0;
    min-width: 0;
}

.detail-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.detail-gallery img {
    flex: 1 1 calc(50% - 6px);
    width: calc(50% - 6px);
    min-height: 230px;
    padding: 22px;
    border: 1px solid var(--line);
    background: #fff;
    object-fit: contain;
}

.detail-gallery img:first-child:last-child,
.detail-gallery img:first-child:nth-last-child(1) {
    flex-basis: 100%;
    width: 100%;
    min-height: 420px;
}

.detail-copy h1 {
    color: var(--navy);
    font-size: clamp(38px, 5vw, 60px);
    line-height: 1.05;
    overflow-wrap: anywhere;
}

.detail-copy h2 {
    margin-top: 12px;
    color: var(--steel);
    font-size: 24px;
}

.detail-note {
    margin-top: 22px;
    color: var(--muted);
    font-size: 16px;
}

.detail-price {
    margin-top: 18px;
    color: var(--red);
    font-size: 26px;
    font-weight: 700;
}

.detail-specs {
    margin: 24px 0;
    border-top: 1px solid var(--line);
}

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

.detail-specs dt {
    flex: 0 0 140px;
    color: var(--navy);
    font-weight: 700;
}

.detail-section {
    margin-top: 70px;
}

.detail-section > h2 {
    margin-bottom: 26px;
    padding-bottom: 14px;
    border-bottom: 2px solid var(--red);
    font-size: 30px;
}

.number-list {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.number-list > div {
    display: flex;
    flex: 1 1 230px;
    flex-direction: column;
    padding: 20px;
    border: 1px solid var(--line);
    background: var(--ice);
}

.number-list span {
    color: var(--navy);
    font-size: 19px;
}

.number-list small {
    color: var(--muted);
}

.fitment-group {
    margin-bottom: 12px;
    border: 1px solid var(--line);
}

.fitment-toggle {
    display: flex;
    align-items: center;
    gap: 24px;
    width: 100%;
    min-height: 58px;
    padding: 12px 18px;
    border: 0;
    color: var(--navy);
    background: var(--ice);
    font-weight: 700;
    text-align: left;
}

.fitment-toggle span {
    flex: 1 1 0;
}

.fitment-toggle svg {
    flex: 0 0 20px;
    width: 20px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
    transition: transform 180ms ease;
}

.fitment-toggle[aria-expanded="true"] svg {
    transform: rotate(180deg);
}

.fitment-panel {
    overflow-x: auto;
}

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

.fitment-panel th {
    color: var(--navy);
    background: #f7f9fa;
}

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

@media (max-width: 640px) {
    .detail-gallery img,
    .detail-gallery img:first-child:last-child,
    .detail-gallery img:first-child:nth-last-child(1) {
        flex-basis: 100%;
        width: 100%;
        min-height: 270px;
    }

    .fitment-toggle {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }

    .fitment-toggle svg {
        position: absolute;
        right: 30px;
    }

    .fitment-panel table,
    .fitment-panel tbody,
    .fitment-panel tr,
    .fitment-panel td {
        display: block;
        width: 100%;
    }

    .fitment-panel thead {
        display: none;
    }

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

    .fitment-panel td {
        display: flex;
        justify-content: space-between;
        gap: 20px;
        border: 0;
    }

    .fitment-panel td::before {
        color: var(--navy);
        font-weight: 700;
        content: attr(data-label);
    }
}

