/* ZoreFactory product detail page. */
#productinfoBody #prod-info-top {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    align-items: start;
    gap: clamp(20px, 4vw, 44px);
}
#productinfoBody #pinfo-left,
#productinfoBody #pinfo-right,
#productinfoBody #cart-box {
    float: none;
    box-sizing: border-box;
    width: 100%;
    margin: 0;
}
#productinfoBody .zore-product-purchase {
    min-width: 0;
    padding: clamp(16px, 2.4vw, 30px);
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 16px;
}
#productinfoBody #productName {
    margin: 0 0 16px;
    color: #181818;
    text-align: left;
    font-size: clamp(1.35rem, 2.1vw, 2rem);
    font-weight: 700;
    line-height: 1.2;
    overflow-wrap: anywhere;
}
#productinfoBody #productMainImage {
    padding: 12px;
    background: #f5f5f5;
    border-radius: 16px;
}
#productinfoBody #productMainImage img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 560px;
    object-fit: contain;
}
#productinfoBody #productAdditionalImages {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: start;
    margin-top: 12px;
}
#productinfoBody #productAdditionalImages > br {
    display: none;
}
#productinfoBody #productAdditionalImages .additionalImages {
    box-sizing: border-box;
    width: calc((100% - 24px) / 4) !important;
    margin: 0;
}
#productinfoBody #productAdditionalImages .additionalImages img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    object-fit: contain;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    box-sizing: border-box;
    background: #f8f8f8;
}
#productinfoBody #pinfo-right,
#productinfoBody #cart-box {
    padding: 0;
    background: transparent;
}
#productinfoBody #productDetailsList {
    margin: 0 0 8px;
    color: #4f4f4f;
    line-height: 1.55;
}
#productinfoBody #productPrices {
    margin: 12px 0 18px;
    color: #181818;
    text-align: left;
    font-size: 1.65rem;
    font-weight: 700;
}
#productinfoBody #cartAdd {
    margin: 12px 0 0;
    text-align: left;
}
#productinfoBody #cartAdd input[type="text"] {
    box-sizing: border-box;
    min-height: 44px;
    margin: 0 8px 8px 0;
    border: 1px solid #ccc;
    border-radius: 6px;
}
#productinfoBody #cartAdd #addToCartButton.cssButton {
    box-sizing: border-box;
    width: 100%;
    min-height: 48px;
    border-radius: 8px;
    background: #a73316;
    color: #fff;
}
#productinfoBody #cartAdd #addToCartButton.cssButton:hover {
    background: #87290f;
}
#productinfoBody #productDescription {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid #e5e5e5;
    line-height: 1.65;
    overflow-wrap: anywhere;
}
#productinfoBody #productDescription img {
    max-width: 100%;
    height: auto;
}
#productinfoBody #productReviewLink {
    float: none;
    margin: 16px 0 0;
}
@media (max-width: 900px) {
    #productinfoBody #prod-info-top {
        grid-template-columns: minmax(0, 1fr);
    }
    #productinfoBody #productMainImage img {
        max-height: 440px;
    }
}

/* Product photos and mobile purchase layout */
#productinfoBody #pinfo-left,
#productinfoBody .zore-product-purchase {
    min-width: 0;
}
#productinfoBody .zore-gallery-source[hidden] {
    display: none;
}
.zore-gallery-stage {
    display: grid;
    place-items: center;
    aspect-ratio: 4 / 5;
    max-height: 570px;
    background: #f5f5f5;
    border-radius: 14px;
    overflow: hidden;
}
.zore-gallery-stage img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: contain;
}
.zore-gallery-strip {
    position: relative;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: x proximity;
    padding: 6px 2px 10px;
    margin-top: 8px;
}
.zore-gallery-strip button {
    flex: 0 0 clamp(58px, 7vw, 84px);
    aspect-ratio: 1;
    padding: 3px;
    border: 2px solid #ddd;
    border-radius: 8px;
    background: #f5f5f5;
    cursor: pointer;
    scroll-snap-align: center;
}
.zore-gallery-strip button[aria-pressed="true"] {
    border-color: #a73316;
}
.zore-gallery-strip button:focus-visible {
    outline: 2px solid #171717;
    outline-offset: 1px;
}
.zore-gallery-strip img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}
#productinfoBody #productName {
    font-size: clamp(1.15rem, 1.55vw, 1.55rem);
}
#productinfoBody #cart-box select {
    box-sizing: border-box;
    max-width: 100%;
    min-height: 44px;
}
@media (max-width: 900px) {
    #productinfoBody #prod-info-top {
        gap: 16px;
    }
    #productinfoBody .zore-product-purchase {
        padding: 16px;
    }
    .zore-gallery-stage {
        max-height: min(58vh, 440px);
    }
}
