
/* کارت محصول BARCODE */
.bc-product {
    overflow: hidden;
    position: relative;
    border-radius: 12px;
    background: #fff;
}

.bc-product-image-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 265 / 354;
    overflow: hidden;
    background: #f0f1f2;
}

.bc-product-image-wrap > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .45s ease;
}

/* زوم با حرکت ماوس */
@media (hover: hover) and (pointer: fine) {
    .bc-product:hover .bc-product-image-wrap > img {
        transform: scale(1.12);
    }
}

/* نوار تصاویر کوچک */
.bc-product-thumbnails {
    display: flex;
    gap: 6px;
    justify-content: center;
    padding: 7px;
    background: #f5f5f5;
    overflow-x: auto;
}

.bc-product-thumbnails button {
    flex: 0 0 43px;
    width: 43px;
    height: 52px;
    padding: 0;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid #ddd;
    border-radius: 5px;
    background: white;
}

.bc-product-thumbnails button.active {
    border: 2px solid #111;
}

.bc-product-thumbnails img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.bc-product-thumbnails button:focus-visible {
    outline: 2px solid #111;
    outline-offset: 2px;
}
