/* BK_PHOTO_PLACEHOLDER_V1
 * Frontend-only placeholder for known Mastershop fallback product images.
 * Does not create rows in shop_product_images and does not alter product.image_id.
 */

.bk-photo-placeholder-host {
    position: relative;
}

.bk-photo-placeholder-source {
    opacity: 0 !important;
}

.bk-photo-placeholder-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-sizing: border-box;
    min-width: 100%;
    min-height: 100%;
    padding: 10px;
    overflow: hidden;
    text-align: center;
    background: #f7f8fa;
    border: 1px solid #e2e6eb;
    border-radius: inherit;
    color: #7a8592;
    pointer-events: none;
}

.bk-photo-placeholder-icon {
    position: relative;
    display: block;
    width: 38px;
    height: 31px;
    flex: 0 0 auto;
    box-sizing: border-box;
    border: 2px solid currentColor;
    border-radius: 5px;
    opacity: .62;
}

.bk-photo-placeholder-icon::before {
    content: "";
    position: absolute;
    top: 6px;
    right: 7px;
    width: 5px;
    height: 5px;
    border: 2px solid currentColor;
    border-radius: 50%;
    box-sizing: border-box;
}

.bk-photo-placeholder-icon::after {
    content: "";
    position: absolute;
    left: 7px;
    bottom: 6px;
    width: 20px;
    height: 11px;
    box-sizing: border-box;
    border-left: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: skew(-34deg) rotate(-8deg);
    transform-origin: center;
}

.bk-photo-placeholder-text {
    display: block;
    max-width: 190px;
    font-size: 13px;
    line-height: 1.25;
    font-weight: 600;
    letter-spacing: .01em;
}

.bk-photo-placeholder-host.bk-photo-placeholder-compact .bk-photo-placeholder-overlay {
    gap: 0;
    padding: 4px;
}

.bk-photo-placeholder-host.bk-photo-placeholder-compact .bk-photo-placeholder-icon {
    width: 25px;
    height: 21px;
    border-width: 1.5px;
}

.bk-photo-placeholder-host.bk-photo-placeholder-compact .bk-photo-placeholder-icon::before {
    top: 4px;
    right: 4px;
    width: 4px;
    height: 4px;
    border-width: 1px;
}

.bk-photo-placeholder-host.bk-photo-placeholder-compact .bk-photo-placeholder-icon::after {
    left: 5px;
    bottom: 4px;
    width: 13px;
    height: 7px;
    border-width: 0 0 1.5px 1.5px;
}

.bk-photo-placeholder-host.bk-photo-placeholder-compact .bk-photo-placeholder-text {
    display: none;
}


/* BK_PHOTO_PLACEHOLDER_PDP_SCALE_V3
 * Make the placeholder easier to read on the full product page only.
 * Catalog/search/cart keep the compact/base sizing above.
 */
.product-card__gallery.bk-photo-placeholder-host .bk-photo-placeholder-overlay {
    gap: 10px;
}

.product-card__gallery.bk-photo-placeholder-host .bk-photo-placeholder-icon {
    width: 48px;
    height: 39px;
    border-width: 2px;
    border-radius: 6px;
}

.product-card__gallery.bk-photo-placeholder-host .bk-photo-placeholder-icon::before {
    top: 7px;
    right: 8px;
    width: 6px;
    height: 6px;
    border-width: 2px;
}

.product-card__gallery.bk-photo-placeholder-host .bk-photo-placeholder-icon::after {
    left: 9px;
    bottom: 7px;
    width: 24px;
    height: 13px;
    border-left-width: 2px;
    border-bottom-width: 2px;
}

.product-card__gallery.bk-photo-placeholder-host .bk-photo-placeholder-text {
    max-width: 240px;
    font-size: 16px;
    line-height: 1.3;
}
