/* Product imagery. The originals and the K-Tech artwork remain separate layers. */
:is(.product__img, .pdp__img, .qt-catalog-photo):has(>img[src*="san-pham/ktech-catalog/"]) {
    display: grid;
    align-items: center;
    justify-items: center;
    box-sizing: border-box;
    isolation: isolate;
    overflow: hidden;
    aspect-ratio: 4/3;
    padding: 0;
    background: #edf2fa;
}
:is(.product__img, .pdp__img, .qt-catalog-photo):has(>img[src*="san-pham/ktech-catalog/official/"]) {
    background: #edf2fa url("../img/san-pham/ktech-catalog/ktech-background.webp") right top / cover no-repeat;
}
:is(.product__img, .pdp__img, .qt-catalog-photo):has(>img[src*="san-pham/ktech-catalog/"])::before {
    display: none;
}
:is(.product__img, .pdp__img, .qt-catalog-photo) > img[src*="san-pham/ktech-catalog/"] {
    box-sizing: border-box;
    display: block;
    grid-area: 1 / 1;
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    object-fit: contain;
    object-position: center;
    aspect-ratio: auto;
}
:is(.product__img, .pdp__img, .qt-catalog-photo) > img[src*="san-pham/ktech-catalog/official/"] {
    width: 83%;
    height: 78%;
    mix-blend-mode: multiply;
}

.catalog-photo-credit { display:flex; flex-wrap:wrap; align-items:baseline; gap:.3rem 1rem; margin:.6rem 0 0; color:#37465a; font-size:.9rem; line-height:1.5 }
.catalog-photo-credit a { color:#154c80; text-decoration:underline; text-underline-offset: .15em }

.qt-catalog-photo { display:inline-block; vertical-align:middle; }
.qt-catalog-photo--small { width:64px; }
.qt-catalog-photo--large { width:min(200px,100%); }
.qt-catalog-photo:has(>img[src*="san-pham/ktech-catalog/"]) > img { margin:0; border:0; background:transparent; box-shadow:none; }

.product__img:has(.catalog-image-label) { position:relative }
.catalog-image-label { position:absolute; bottom:.4rem; left:.4rem; background:#fff; color:#465569; padding:.15em .45em; border-radius:.2rem; font-size:.75rem; line-height:1.3 }
