/* ── Скриваме оригиналните ляво/дясно бутони ── */
.wc-block-next-previous-buttons {
    display: none !important;
}

/* ── Премахваме gradient mask overlay ── */
.wc-block-product-gallery-thumbnails,
.wc-block-product-gallery-thumbnails--overflow-top,
.wc-block-product-gallery-thumbnails--overflow-bottom,
.wc-block-product-gallery-thumbnails--overflow-left,
.wc-block-product-gallery-thumbnails--overflow-right {
    -webkit-mask-image: none !important;
            mask-image: none !important;
    -webkit-mask: none !important;
            mask: none !important;
}

/* ── Колона с миниатюри — фиксирана ширина ── */
.wp-block-woocommerce-product-gallery .wc-block-product-gallery-thumbnails {
    width: 20% !important;
    min-width: 20% !important;
    max-width: 20% !important;
    flex-shrink: 0 !important;
    position: relative !important; /* за absolute бутони */
    overflow: visible !important;  /* бутоните не се отрязват */
}

/* ── Главната снимка ── */
.wp-block-woocommerce-product-gallery .wc-block-product-gallery-large-image {
    flex: 1 1 auto !important;
    min-width: 0 !important;
}

/* ── Scrollable — overflow и без scrollbar ── */
.wc-block-product-gallery-thumbnails__scrollable {
    overflow: hidden !important;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}
.wc-block-product-gallery-thumbnails__scrollable::-webkit-scrollbar {
    display: none !important;
}

/* ── Миниатюри — квадратни, пълна ширина ── */
.wc-block-product-gallery-thumbnails__thumbnail {
    width: 100% !important;
    flex-shrink: 0 !important;
}
.wc-block-product-gallery-thumbnails__thumbnail__image {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 1 / 1 !important;
    object-fit: cover !important;
    display: block !important;
}

/* ── Бутони — absolute вътре в thumbsBlock ── */
.vgn-btn {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40%;
    height: 24px;
    background: rgba(255, 255, 255, 0.90);
    border: none;
    border-radius: 0;
    cursor: pointer;
    padding: 0;
    margin: 0;
    line-height: 1;
    transition: background 0.15s;
}

.vgn-btn:hover {
    background: rgba(255, 255, 255, 1);
}

.vgn-btn[disabled],
.vgn-btn:disabled {
    display: none !important;
}

.vgn-btn svg {
    width: 14px;
    height: 14px;
    stroke: #333;
    fill: none;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    pointer-events: none;
    display: block;
}
