/* Product detail – gallery slider + compact notes */

.product-detail-page .product-detail-gallery {
    overflow: visible;
}

.product-detail-code {
    margin: 0 0 8px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #9aa0a6;
}

.product-gallery__stage {
    position: relative;
}

.product-gallery__viewport {
    overflow: hidden;
    background: #fff;
    border: 1px solid #E5E7EB;
    border-radius: 6px;
}

.product-gallery__track {
    display: flex;
    list-style: none;
    margin: 0 !important;
    padding: 0 !important;
    width: auto;
    transition: transform 0.35s ease;
}

.product-gallery__slide {
    flex: 0 0 100%;
    min-width: 100%;
    width: 100% !important;
    float: none !important;
    margin: 0 !important;
    padding: 16px;
    box-sizing: border-box;
    line-height: 0;
}

.product-gallery__slide a {
    display: block;
}

.product-gallery__slide img {
    display: block;
    width: 100%;
    height: 420px;
    object-fit: contain;
}

.product-gallery__arrow {
    position: absolute;
    top: 50%;
    z-index: 2;
    width: 44px;
    height: 44px;
    margin-top: -22px;
    padding: 0;
    color: #555;
    background: #fff;
    border: 1px solid #E2E6E7;
    border-radius: 50%;
    box-sizing: border-box;
    text-decoration: none !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-gallery__arrow:before {
    display: block;
    line-height: 1;
    text-align: center;
    font-size: 16px;
}

.product-gallery__arrow:after {
    display: none !important;
}

.product-gallery__arrow--prev {
    left: 10px;
}

.product-gallery__arrow--next {
    right: 10px;
    transform: scaleX(-1);
}

.product-gallery__arrow:hover {
    background: #ee3430;
    border-color: #ee3430;
    color: #fff;
}

.product-gallery__thumbs {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    width: 100%;
    margin-top: 12px;
    overflow: hidden;
}

.product-gallery__thumb {
    flex: 1 1 0;
    min-width: 0;
    width: auto;
    height: auto;
    aspect-ratio: 1 / 1;
    padding: 6px;
    border: 1px solid #E5E7EB;
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
    box-sizing: border-box;
    overflow: hidden;
}

.product-gallery__thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-gallery__thumb:hover,
.product-gallery__thumb.is-active {
    border-color: #ee3430;
}

.product-detail-page .product-detail-notes {
    margin-top: 12px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    color: #444;
    line-height: 1.6;
}

.product-detail-page .product-detail-notes p {
    padding: 0;
    margin: 0 0 0.7em;
    line-height: 1.6;
}

.product-detail-page .product-detail-notes p:last-child {
    margin-bottom: 0;
}

.product-detail-page .product-detail-notes br + br {
    display: none;
}

.product-detail-page .product-detail-notes h1,
.product-detail-page .product-detail-notes h2,
.product-detail-page .product-detail-notes h3,
.product-detail-page .product-detail-notes h4,
.product-detail-page .product-detail-notes h5 {
    margin: 1em 0 0.4em;
    padding: 0;
    line-height: 1.3;
}

.product-detail-page .product-detail-notes h1:first-child,
.product-detail-page .product-detail-notes h2:first-child,
.product-detail-page .product-detail-notes h3:first-child,
.product-detail-page .product-detail-notes h4:first-child,
.product-detail-page .product-detail-notes p:first-child {
    margin-top: 0;
}

.product-detail-page .product-detail-notes ul,
.product-detail-page .product-detail-notes ol {
    margin: 0 0 0.7em;
    padding-left: 1.3em;
}

.product-detail-page .page-margin-top {
    margin-top: 28px;
}

.product-detail-page table.margin-top-40 {
    margin-top: 16px;
}

.product-detail-page .box-header:after,
.product-detail-page .product-detail-notes h1:after,
.product-detail-page .product-detail-notes h2:after,
.product-detail-page .product-detail-notes h3:after,
.product-detail-page .product-detail-notes h4:after {
    display: none !important;
}

@media (max-width: 767px) {
    .product-detail-page .product-detail-row > .column-1-2 {
        width: 100%;
        float: none;
    }

    .product-gallery__slide img {
        height: 260px;
    }

    .product-gallery__thumbs {
        gap: 6px;
    }

    .product-gallery__thumb {
        padding: 4px;
    }

    .product-gallery__arrow {
        width: 40px;
        height: 40px;
        margin-top: -20px;
        padding: 0;
    }
}
