/* OUR PRODUCTS BLOCK */
.home-browse-our-products {
    margin-top: 5rem;
    margin-bottom: 5rem;
}

.home-browse-our-products .head-block {
    margin-bottom: 2.5rem;
    margin-top: 0;
    font-weight: 600;
}

.glove-container {
    display: flex;
    position: relative;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    /* Сохранение соотношения сторон изображения */
    border-right: 0.625rem solid var(--color-accent);
    /* Вертикальный бордюр справа */
    padding-right: 0.625rem;
    /* Отступ, чтобы бордюр не прилипал к изображению */
}

.glove-link {
    display: block;
    position: relative;
}

.glove-container .pictogram-sticker {
    bottom: 15%;
    left: 85%;
    width: clamp(20px, 12%, 40px);
}

.home-glove-image {
    transition: transform 0.5s ease;
    padding-right: 0.625rem;
    /* Отступ, чтобы бордюр не прилипал к изображению */
}

.glove-name {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 99, 151, 0.6);
    color: #fff;
    padding: 0.625rem 0;
    font-size: 1rem;
    text-align: center;
    text-wrap: balance;
    /* Балансировка и симметричное расположение текста внутри блока */
    opacity: 0;
    /* Начальное скрытие текста на больших экранах */
    transition: opacity 0.5s ease;
    /* Переход для больших экранов */
}

.glove-link:hover .home-glove-image {
    transform: scale(1.1) translateY(5%);
}

.glove-link:hover .glove-name {
    opacity: 1;
    /* Показываем название при наведении на больших экранах */
}


.btnblock {
    text-align: right;
    max-width: 100%;
    margin: 0 auto;
    margin-top: 2.5rem;
}

.home-btn-small {
    display: inline-flex;
    align-items: center;
    text-transform: uppercase;
    background-color: transparent;
    color: #58585a;
    padding: 0.625rem 1.25rem;
    /* 10px 20px */
    margin-bottom: 0.625rem;
    transition: color 0.3s ease-in-out;
}

.home-btn-small:hover {
    color: var(--color-accent);
}

.arrow-right-icon {
    margin-left: 0.3125rem;
    transform: translateX(0);
    transition: transform 0.3s cubic-bezier(.4, 0, .2, 1);
    fill: currentColor;
    /* Использует текущий цвет текста */
}

.home-btn-small:hover .arrow-right-icon {
    transform: translateX(6px);
    /* Плавное смещение стрелки вправо */
}


@media (hover: none),
(pointer: coarse) {
    .glove-container .pictogram-sticker {
        bottom: 24%;
        width: clamp(15px, 10%, 35px);
    }

    .glove-name {
        opacity: 1;
        transition: none;
    }

    .glove-link:hover .home-glove-image {
        transform: none;
        box-shadow: none;
    }

    .glove-link:hover .glove-name {
        opacity: 1;
    }
}

@media (orientation: portrait) and (hover: none) and (pointer: coarse) and (min-width: 700px) and (max-width: 1024px) {
    .glove-container .pictogram-sticker {
        width: clamp(20px, 9%, 35px);
    }
}

@media (max-width: 991px) {
    .glove-name {
        font-size: 0.75rem;
    }
}

@media (max-width: 767px) {
    .home-browse-our-products .head-block {
        text-align: center;
    }

    .glove-container {
        border-right: none;
        /* Убираем правый бордюр для маленьких экранов */
        border-bottom: 0.3125rem solid var(--color-accent);
        /* Добавляем нижний бордюр */
        padding-bottom: 0.625rem;
        /* Отступ снизу */
    }

    .btnblock {
        text-align: center;
        /* Центрируем кнопку */
    }

    .arrow-right-icon {
        display: none;
        /* Скрываем стрелку */
    }

    .home-btn-small {
        display: block;
        width: 100%;
        background-color: var(--color-accent);
        color: white;
        font-size: 1rem;
        transition: background-color 0.3s ease, color 0.3s ease;
        border-radius: 0.3125rem;
    }

    .home-btn-small:hover {
        background-color: var(--color-accent);
        /* Фон не меняется при наведении */
        color: white;
        transform: none;
        /* Убираем увеличение кнопки при наведении */
    }

    .home-btn-small:active {
        background-color: var(--color-accent);
        /* Сохраняем исходный цвет фона */
        color: white;
        /* Сохраняем исходный цвет текста */
        box-shadow: none;
        /* Убираем эффект тени */
    }
}

@media (max-width: 480px) {
    .home-browse-our-products {
        margin-bottom: 0;
    }
}

@media (max-width: 767px) and (max-height: 414px) {
    .home-browse-our-products {
        width: 53%;
    }
}