/* =========================================
   WiseRenders – Product Meta Block
========================================= */

.wr-product-meta {
    background: #FBF0E1;
    border-radius: 16px;
    padding: 22px;
    font-size: 14px;
    line-height: 1.5;
}

/* Sections */
.wr-product-meta__section + .wr-product-meta__section {
    margin-top: 22px;
}

.wr-product-meta__title {
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #6349F6;
    margin-bottom: 10px;
}

.wr-product-meta__sub {
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 6px;
    color: var(--Text-Primary, #2A2A2A);;
}

.wr-product-meta__text {
    font-size: 14px;
    color: var(--Text-Secondary, #848482);

}

.wr-product-meta__muted {
    font-size: 13px;
    opacity: .6;
}

/* Rows */
.wr-product-meta__row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.wr-product-meta__row--wrap {
    flex-wrap: wrap;
}

/* Pills */
.wr-pill {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 14px;
    background: #FFF6E9;
    color: var(--Text-Primary, #2A2A2A);

    font-size: 14px;
    font-weight: 600;
}

.wr-pill--soft {
    /*background: rgba(255,255,255,.65);*/
    /*border: 1px solid rgba(0,0,0,.05);*/
}

/* Key-value inline */
.wr-meta-kv {
    font-size: 13px;
    opacity: .85;
}

.wr-meta-kv strong {
    font-weight: 700;
}

/* Code (Model ID) */
.wr-product-meta code {
    background: rgba(0, 0, 0, .06);
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
}

/* AI note */
.wr-product-meta__note {
    margin-top: 10px;
    font-size: 12px;
    color: #5a43ff;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 640px) {
    .wr-product-meta {
        padding: 16px;
    }

    .wr-product-meta__row {
        gap: 8px;
    }
}

/* Product Gallery (WiseRenders) */
.wr-gallery {
    display: grid;
    grid-template-columns: 1fr 110px;
    gap: 16px;
    align-items: start;
}

@media (max-width: 768px) {
    .wr-gallery {
        grid-template-columns: 1fr;
    }

    .wr-gallery__thumbs {
        display: flex;
        flex-direction: row;
        gap: 10px;
        overflow: auto;
        padding-bottom: 6px;
    }
}

.wr-gallery__main {
    border-radius: 14px;
    overflow: hidden;
    /*background: #e9f6ff;*/
}

.wr-gallery__main-img {
    width: 100%;
    height: auto;
    display: block;
}

.wr-gallery__thumbs {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.wr-gallery__thumb {
    border: 0;
    padding: 0;
    background: transparent;
    cursor: pointer;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 0 0 2px transparent;
}

.wr-gallery__thumb-img {
    width: 100%;
    height: auto;
    display: block;
}

.wr-gallery__thumb.is-active {
    box-shadow: 0 0 0 2px rgba(90, 67, 255, .55);
}

.wr-gallery__thumb.is-more .wr-gallery__thumb-img {
    filter: blur(3px);
    transform: scale(1.03);
}

.wr-gallery__more {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    border-radius: 12px;
    background: rgba(255, 255, 255, .45);
    color: #5a43ff;
}

/* Lightbox */
.wr-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, .75);
    /*display:flex;*/
    flex-direction: column;
    padding: 18px;
}

.wr-lightbox__close {
    align-self: flex-end;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 0;
    background: #fff;
    font-size: 26px;
    cursor: pointer;
}

.wr-lightbox__inner {
    flex: 1;
    display: grid;
    grid-template-columns: 52px 1fr 52px;
    gap: 12px;
    align-items: center;
    margin-top: 12px;
}

.wr-lightbox__stage {
    background: #111;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wr-lightbox__stage img {
    max-width: 100%;
    max-height: 75vh;
    display: block;
}

.wr-lightbox__nav {
    border: 0;
    background: #fff;
    border-radius: 14px;
    height: 54px;
    font-size: 32px;
    cursor: pointer;
}

.wr-lightbox__strip {
    display: flex;
    gap: 10px;
    overflow: auto;
    margin-top: 12px;
}

.wr-lightbox__thumb {
    border: 0;
    background: transparent;
    padding: 0;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 0 0 2px transparent;
}

.wr-lightbox__thumb img {
    display: block;
    height: 68px;
    width: auto;
}

.wr-lightbox__thumb.is-active {
    box-shadow: 0 0 0 2px rgba(90, 67, 255, .55);
}