.product-detail {
    width:90%;
    max-width:1280px;
    margin:55px auto 75px;
}
.product-detail__main {
    display:flex;
    gap:65px;
    align-items:flex-start;
    margin-bottom:55px;
}
.product-gallery {
    width:46%;
    flex-shrink:0;
    min-width:0;
}
.product-gallery__main {
    position:relative;
    display:block;
    width:100%;
    height:400px;
    padding:25px;
    border:1px solid var(--line);
    background:white;
    overflow:hidden;
}
.product-gallery__main>img {
    width:100%;
    height:100%;
    object-fit:contain;
    transition:transform .3s;
}
.product-gallery__main:hover>img {
    transform:scale(1.04);
}
.product-gallery__main>span {
    position:absolute;
    right:12px;
    bottom:12px;
    display:flex;
    gap:7px;
    align-items:center;
    padding:8px 12px;
    background:#f1f4ed;
    color:var(--teal);
    font-size:12px;
}
.product-gallery__main:hover>span {
    background:var(--teal);
    color:white;
}
.product-gallery__thumbnails {
    display:flex;
    flex-wrap:wrap;
    gap:10px;
    margin-top:12px;
}
.product-gallery__thumbnails>button {
    width:72px;
    height:66px;
    padding:7px;
    border:1px solid var(--line);
    background:white;
}
.product-gallery__thumbnails img {
    width:100%;
    height:100%;
    object-fit:contain;
}
.product-gallery__thumbnails>button:hover,.product-gallery__thumbnails>[aria-pressed=true] {
    border-color:var(--gold);
}
.product-detail__information {
    flex:1;
    min-width:0;
    padding-top:12px;
}
.product-detail__information h2 {
    font-size:34px;
    line-height:1.3;
    font-weight:600;
    overflow-wrap:anywhere;
    margin-bottom:8px;
}
.product-detail .number-prefix {
    color:var(--gold-dark);
    font-size:.65em;
}
.product-detail__name {
    font-size:21px;
    line-height:1.4;
    color:var(--teal);
    margin-bottom:25px;
}
.product-detail__information dl {
    border-top:1px solid var(--line);
}
.product-detail__information dl>div {
    display:flex;
    gap:24px;
    padding:14px 0;
    border-bottom:1px solid var(--line);
}
.product-detail__information dt {
    width:120px;
    flex-shrink:0;
    color:var(--muted);
}
.product-detail__information dd {
    font-weight:600;
    min-width:0;
    overflow-wrap:anywhere;
}
.product-detail__note {
    padding:17px 0;
    font-size:14px;
    line-height:1.9;
    overflow-wrap:anywhere;
}
.product-detail__cart {
    display:flex;
    align-items:center;
    justify-content:center;
    gap:12px;
    min-height:50px;
    padding:12px 28px;
    margin-top:24px;
    border:0;
    background:var(--gold);
    font-weight:600;
    color:var(--ink);
    transition:background .2s,color .2s;
}
.product-detail__cart:hover {
    background:var(--gold-dark);
    color:white;
}
.product-detail__cart.is-added {
    background:var(--teal);
    color:white;
}
.product-detail__cart.is-added:hover {
    background:#234e4d;
}
.product-reference {
    margin-bottom:45px;
}
.product-reference h2 {
    font-size:24px;
    margin-bottom:20px;
}
.product-reference ul {
    display:flex;
    flex-wrap:wrap;
    border:1px solid var(--line);
    background:white;
}
.product-reference li {
    width:50%;
    padding:14px 20px;
    display:flex;
    gap:20px;
    justify-content:space-between;
    border-bottom:1px solid var(--line);
}
.product-reference li:hover {
    background:#edf2eb;
}
.product-fitment h2 {
    font-size:25px;
    margin-bottom:22px;
}
.fitment-group {
    border:1px solid var(--line);
    margin-bottom:10px;
    background:white;
}
.fitment-toggle {
    display:flex;
    align-items:center;
    gap:25px;
    width:100%;
    padding:19px 22px;
    background:white;
    border:0;
    text-align:left;
    transition:background .2s;
}
.fitment-toggle:hover,.fitment-toggle[aria-expanded=true] {
    background:#e9efe6;
}
.fitment-indicator {
    position:relative;
    width:18px;
    height:18px;
    flex-shrink:0;
    color:var(--gold-dark);
}
.fitment-indicator::before,.fitment-indicator::after {
    content:"";
    position:absolute;
    left:3px;
    top:8px;
    width:12px;
    height:2px;
    background:currentColor;
}
.fitment-indicator::after {
    transform:rotate(90deg);
    transition:opacity .2s;
}
.fitment-toggle[aria-expanded=true] .fitment-indicator::after {
    opacity:0;
}
.fitment-toggle strong {
    width:115px;
    flex-shrink:0;
    font-size:13px;
}
.fitment-toggle>span:last-child {
    margin-left:auto;
    color:var(--muted);
    font-size:12px;
    white-space:nowrap;
}
.fitment-content {
    padding:0 0 15px;
}
.fitment-content table {
    width:100%;
    border-collapse:collapse;
    font-size:13px;
    text-align:left;
}
.fitment-content th {
    font-weight:500;
    background:#f3f5ef;
    color:var(--muted);
    padding:12px;
}
.fitment-content td {
    padding:13px 12px;
    border-bottom:1px solid #e7ece5;
}
.fitment-content tbody tr:hover {
    background:#faf7ee;
}
.image-preview {
    position:fixed;
    inset:0;
    z-index:230;
    background:#172c32bd;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:24px;
}
.image-preview__box {
    position:relative;
    width:800px;
    max-width:100%;
    max-height:calc(100vh - 48px);
    background:white;
    padding:55px 25px 20px;
    box-shadow:0 20px 70px #0003;
}
.image-preview__close {
    position:absolute;
    right:12px;
    top:10px;
    width:36px;
    height:36px;
    display:flex;
    align-items:center;
    justify-content:center;
    border:0;
    background:#e9efe9;
    color:var(--ink);
}
.image-preview__close:hover {
    background:var(--gold);
}
.image-preview__stage {
    height:min(60vh,530px);
    display:flex;
    justify-content:center;
    align-items:center;
}
.image-preview__stage>img {
    width:100%;
    height:100%;
    object-fit:contain;
}
.image-preview__status {
    color:var(--muted);
}
.image-preview__controls {
    display:flex;
    align-items:center;
    justify-content:center;
    gap:20px;
    margin-top:15px;
}
.image-preview__controls button {
    width:40px;
    height:40px;
    border:1px solid var(--line);
    background:var(--paper);
    display:flex;
    align-items:center;
    justify-content:center;
}
.image-preview__controls button:hover {
    background:var(--gold);
}
@media(max-width:900px) {
    .product-detail__main {
        gap:30px;
    }
    .product-gallery__main {
        height:300px;
    }
    .product-detail__information h2 {
        font-size:28px;
    }
    .fitment-toggle {
        gap:15px;
    }
}
@media(max-width:640px) {
    .product-detail {
        width:calc(100% - 36px);
        margin-top:32px;
        margin-bottom:45px;
    }
    .product-detail__main {
        flex-direction:column;
        gap:26px;
        margin-bottom:35px;
    }
    .product-gallery {
        width:100%;
    }
    .product-gallery__main {
        height:290px;
    }
    .product-detail__information {
        width:100%;
        padding:0;
    }
    .product-detail__cart {
        width:100%;
    }
    .product-detail__information dt {
        width:105px;
    }
    .product-reference li {
        width:100%;
        flex-wrap:wrap;
        gap:8px;
    }
    .fitment-toggle {
        flex-wrap:wrap;
        padding:16px;
        gap:8px 12px;
    }
    .fitment-toggle strong {
        width:calc(100% - 36px);
    }
    .fitment-toggle>span {
        margin-left:30px;
    }
    .fitment-toggle>span:last-child {
        margin-left:30px;
        width:100%;
    }
    .fitment-content {
        padding:0 0 8px;
    }
    .fitment-content thead {
        display:none;
    }
    .fitment-content table,.fitment-content tbody,.fitment-content tr {
        display:block;
    }
    .fitment-content tr {
        padding:10px 14px;
        border-bottom:1px solid var(--line);
    }
    .fitment-content td {
        display:flex;
        gap:16px;
        padding:7px 0;
        border:0;
    }
    .fitment-content td::before {
        content:attr(data-label);
        width:110px;
        flex-shrink:0;
        color:var(--muted);
        font-size:12px;
    }
    .image-preview {
        padding:16px;
    }
    .image-preview__box {
        padding:50px 15px 18px;
        max-height:calc(100vh - 32px);
    }
    .image-preview__stage {
        height:55vh;
    }
}
