/* --- Сторінка категорії продукції --------------------------------------- */

.vx-product {
    padding-block: 24px 48px;
}

/* --- Хлібні крихти ------------------------------------------------------ */

.vx-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    line-height: 1.5;
}

.vx-breadcrumbs__link {
    color: var(--vx-primary);
    text-decoration: none;
}

.vx-breadcrumbs__link:hover,
.vx-breadcrumbs__link:focus-visible {
    color: var(--vx-blue);
}

.vx-breadcrumbs__sep {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    color: var(--vx-gray-60);
}

.vx-breadcrumbs__current {
    color: var(--vx-gray-60);
}

/* --- Розкладка ---------------------------------------------------------- */

.vx-product__layout {
    display: grid;
    gap: 40px;
    margin-top: 32px;
}

.vx-product__title {
    margin: 0;
    font-size: 28px;
    line-height: 1.3;
}

/* --- Галерея ------------------------------------------------------------ */

.vx-gallery__stage {
    position: relative;
    aspect-ratio: 5 / 4;
    overflow: hidden;
    border-radius: 8px;
    background: var(--vx-gray-10);
}

.vx-gallery__photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Усі фото лежать у DOM одразу; перемикання лише міняє видимість,
   тому клік не тягне мережу й кадр не блимає. */
.vx-gallery__photo:not(.is-active) {
    visibility: hidden;
}

.vx-gallery__thumbs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-top: 8px;
}

.vx-gallery__thumb {
    display: block;
    width: 100%;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 8px;
    background: var(--vx-gray-10);
    overflow: hidden;
    cursor: pointer;
}

.vx-gallery__thumb-image {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 5 / 4;
    object-fit: cover;
}

.vx-gallery__thumb.is-active {
    border-color: var(--vx-blue);
}

.vx-gallery__thumb:hover {
    border-color: var(--vx-gray-30);
}

.vx-gallery__thumb:focus-visible {
    outline: 2px solid var(--vx-blue);
    outline-offset: 2px;
}

/* --- Пронумеровані блоки ------------------------------------------------ */

.vx-product__blocks {
    margin-top: 32px;
}

.vx-product__block {
    display: grid;
    grid-template-columns: 74px 1fr;
    column-gap: 16px;
    padding-bottom: 24px;
}

.vx-product__block + .vx-product__block {
    margin-top: 36px;
}

.vx-product__block:not(:last-child) {
    border-bottom: 1px solid var(--vx-gray-20);
}

.vx-product__number {
    margin: 12px 0 0;
    color: var(--vx-blue);
    font-family: var(--vx-font-heading);
    font-size: 40px;
    font-weight: 600;
    line-height: 1.05;
}

.vx-product__block-title {
    margin: 0;
}

.vx-product__block-text {
    margin-top: 16px;
    color: var(--vx-gray-80);
}

.vx-product__block-text > :first-child {
    margin-top: 0;
}

.vx-product__block-text > :last-child {
    margin-bottom: 0;
}

@media (min-width: 1024px) {
    .vx-product {
        padding-block: 44px 96px;
    }

    .vx-product__layout {
        grid-template-columns: 456fr 560fr;
        column-gap: 108px;
        align-items: start;
        margin-top: 24px;
    }

    .vx-product__title {
        font-size: 40px;
        line-height: 1.1;
    }

    .vx-product__blocks {
        margin-top: 48px;
    }

    .vx-product__block {
        grid-template-columns: 72px 1fr;
        column-gap: 24px;
        padding-bottom: 48px;
    }
}
