/* ==========================================================================
   Products Carousel
   ========================================================================== */

.vane-products {
    padding: 50px 0 30px;
    background-color: var(--vane-white);
}

.vane-products__container {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    padding: 0 50px;
}

.vane-products__track {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    width: 100%;
    user-select: none;
    -webkit-user-select: none;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE/Edge */
}

.vane-products__track::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
}

.vane-products__item {
    position: relative;
    flex: 0 0 calc((100% - 45px) / 4);
    min-width: calc((100% - 45px) / 4);
    background-color: #f0f0f0;
}

.vane-products__item .vane-archive-item__link,
.vane-products__item-link {
    display: block;
    color: inherit;
    text-decoration: none;
    user-select: none;
    -webkit-user-select: none;
    -webkit-user-drag: none;
}

.vane-products__item .vane-archive-item__image,
.vane-products__image {
    position: relative;
    aspect-ratio: 1 / 1;
    background-color: #f0f0f0;
    overflow: hidden;
}

.vane-products__item .vane-archive-item__image img,
.vane-products__image img {
    width: 100%;
    height: 100%;
    padding: 10px 0;
    box-sizing: border-box;
    object-fit: contain;
    transition: transform 0.3s ease;
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    -webkit-user-drag: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    pointer-events: none;
}

.vane-products__item:hover .vane-archive-item__image img,
.vane-products__item:hover .vane-products__image img {
    transform: scale(1.03);
}

.vane-products__item .vane-archive-item__wishlist,
.vane-products__wishlist {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 32px;
    height: 32px;
    padding: 0;
    background: none;
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease;
    pointer-events: auto;
    opacity: 1;
}

.vane-products__item .vane-archive-item__wishlist:hover,
.vane-products__wishlist:hover {
    transform: scale(1.1);
    background: transparent;
    background-color: transparent;
}

.vane-products__item .vane-archive-item__wishlist svg,
.vane-products__wishlist svg {
    width: 32px;
    height: 32px;
    stroke: var(--vane-black);
    fill: none;
    transition: fill 0.2s ease, stroke 0.2s ease;
}

.vane-products__item .vane-archive-item__wishlist.active svg,
.vane-products__wishlist.active svg {
    fill: var(--vane-black);
    stroke: var(--vane-black);
}

.vane-products__item .vane-archive-item__info,
.vane-products__info {
    padding: 15px;
}

.vane-products__item .vane-archive-item__name,
.vane-products__name {
    font-family: var(--vane-font-primary);
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 7px;
    color: var(--vane-black);
}

.vane-products__item .vane-archive-item__price,
.vane-products__price {
    font-family: var(--vane-font-primary);
    font-size: 18px;
    font-weight: 500;
    margin: 0;
    color: var(--vane-black);
}

.vane-products__item .vane-archive-item__transfer-price,
.vane-products__transfer-price {
    font-family: var(--vane-font-primary);
    font-size: 14px;
    font-weight: 700;
    margin: 0 0 2px;
    color: var(--vane-black);
}

.vane-products__item .vane-archive-item__volume-price,
.vane-products__volume-price,
.vane-products__item .vane-archive-item__note,
.vane-products__note {
    font-family: var(--vane-font-primary);
    font-size: 15px;
    font-weight: 400;
    margin: 0;
    color: #666;
}

.vane-products__item .vane-archive-item__volume-price,
.vane-products__volume-price {
    margin-top: 1px;
}

/* Arrows */
.vane-products__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100px;
    height: 100px;
    padding: 0;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 10;
    transition: opacity 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vane-products__arrow:hover {
    opacity: 0.5;
}

.vane-products__arrow.disabled {
    opacity: 0 !important;
    pointer-events: none !important;
    visibility: hidden !important;
}

.vane-products__arrow svg {
    width: 100px;
    height: 100px;
    stroke: var(--vane-black);
    stroke-width: 0.6px;
}

.vane-products__arrow--prev {
    left: 0;
}

.vane-products__arrow--next {
    right: 0;
}

/* VER MÁS button */
.vane-products__button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    margin: 30px auto 0;
    padding: 12px 24px 8px;
    line-height: 1;
    font-family: var(--vane-font-primary);
    font-size: 28px;
    font-weight: 300;
    letter-spacing: 0.5px;
    text-decoration: none;
    color: var(--vane-black);
    background-color: transparent;
    border: 0.5px solid var(--vane-black);
    border-radius: 35px;
    transition: all 0.3s ease;
}

.vane-products__button:hover {
    background-color: var(--vane-black);
    color: var(--vane-white);
}

/* Responsive */
@media (max-width: 1024px) {
    .vane-products__item {
        flex: 0 0 calc(33.333% - 14px);
        min-width: calc(33.333% - 14px);
    }
}

@media (max-width: 768px) {
    .vane-products {
        padding: 40px 0 30px;
    }

    .vane-products__container {
        padding: 0 20px;
    }

    .vane-products__track {
        width: 80%;
        margin: 0 auto;
        gap: 20px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        padding: 0;
    }

    .vane-products__item {
        flex: 0 0 100%;
        min-width: 100%;
        scroll-snap-align: start;
    }

    .vane-products__arrow {
        display: flex;
        width: 50px;
        height: 50px;
        top: 50%;
        transform: translateY(-50%);
    }

    .vane-products__arrow svg {
        width: 48px;
        height: 48px;
    }

    .vane-products__arrow--prev {
        left: 5px;
    }

    .vane-products__arrow--next {
        right: 5px;
    }



    .vane-products__button {
        font-size: 18px;
        padding: 10px 20px 8px;
        margin-top: 30px;
        margin-left: auto;
        margin-right: auto;
    }

    .vane-products__wishlist svg {
        width: 28px;
        height: 28px;
    }

    .vane-products__wishlist {
        top: 8px;
        right: 8px;
    }
}
