.product__item {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;

    box-sizing: border-box;
    text-decoration: none;
}

.product__item:hover .product__item-header .product__item-price .price-new {
    color: var(--clr-brown);
}

.product__picture {
    position: relative;
    height: 100%;
    width: 100%;
    overflow: hidden;
}

.product__cols {
    position: absolute;
    inset: 0;
    z-index: 2;

    display: flex;
    width: 100%;
    height: 100%;
}

.product__col {
    flex: 1;
    height: 100%;
}

.product__picture--has-gallery::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: 3;

    width: calc(100% / var(--cols, 1));
    height: 2px;

    background-color: var(--clr-brown);
    transform: translateX(calc(var(--active-col, 0) * 100%));
    transition: transform .25s ease;
    pointer-events: none;
}

.product__picture-img {
    position: relative;
    z-index: 1;
    width: 100%;
}

.product__img {
    height: 100%;
    width: 100%;
    display: block;
    object-fit: cover;
    transition: opacity .15s ease-in-out;
}

.product__picture--has-gallery .product__img {
    will-change: opacity;
}

.product__item-header {
    padding: calc(24 / 1440 * 100vw) calc(32 / 1440 * 100vw) calc(32 / 1440 * 100vw);

    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 14px;
}

.product__item-price {
    width: 100%;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.product__item-price-wrap {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.price-new {
    transition: .3s ease-in-out;
}

.price-old {
    text-decoration: line-through;
}

.product__item-arrow::after {
    content: '';
    display: block;

    width: 18px;
    height: 14px;

    background: no-repeat url(../../icons/product-card-arrow.svg) center / cover;
}

.product__item-arrow {
    opacity: 0;
    transition: .3s ease-in-out;
}

.product__item:hover .product__item-header .product__item-price .product__item-arrow {
    opacity: 1;
}

.product__item-title {
    margin: 0;
}

@media (hover: none), (pointer: coarse) {

    .product__cols {
        display: none;
    }

    .product__picture--has-gallery::after {
        display: none;
    }

}

@media screen and (max-width: 1024px) {

    .product__item-header {
        padding: 0 32px 32px;
    }

    .product__item-arrow {
        display: none;
    }

}

@media screen and (max-width: 480px) {

    .product__item-header {
        padding: 0 24px 24px;
    }

    .product__item-title {
        font-size: 12px !important;
    }

    .price-new {
        font-size: 14px !important;
    }

}
