/* Hardware offers */
.hardware_offers_wrapper:has(.hardware-offers-wrap) {
    padding: 10px;
}

.hardware-offers-block-inner {
    visibility: unset;

    &.splide:not(.is-initialized) .splide__list {
        display: flex;
        flex-wrap: wrap;
        gap: 20px;
        justify-content: center;
        padding: 0;
        margin: 0;
        list-style: none;

        .splide__slide {
            flex: 0 0 calc(25% - 15px);
            max-width: calc(25% - 15px);
        }
    }
}

@media (max-width: 1200px) {
    .hardware-offers-block-inner.splide:not(.is-initialized) .splide__list {
        gap: 10px;

        .splide__slide {
            flex: 0 0 calc(25% - 10px);
            max-width: calc(25% - 10px);
        }
    }
}

@media (max-width: 1024px) {
    .hardware-offers-block-inner.splide:not(.is-initialized) .splide__list {
        .splide__slide {
            flex: 0 0 calc(33.33% - 10px);
            max-width: calc(33.33% - 10px);
        }
    }
}

@media (max-width: 767px) {
    .hardware-offers-block-inner.splide:not(.is-initialized) .splide__list {
        .splide__slide {
            flex: 0 0 calc(50% - 10px);
            max-width: calc(50% - 10px);
        }
    }
}


.product-wrapper {
    display: flex !important;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0px 0px 4px 0px #DDDDDD;
    border-radius: 4px;
    padding: 10px;
    text-align: center;
    align-items: center;
    gap: 10px;
    border: 1px solid #dbdbdb;

    .product-thumbnail {
        width: 100%;
        aspect-ratio: 1;

        img {
            aspect-ratio: 1;
            object-fit: contain;
            display: block;
            width: 100%;
        }
    }

    .product-title {
        color: #000;
        font-size: 16px;
        font-weight: 600;
        line-height: 24px;
        margin: 0;
        text-align: center;
        flex-grow: 1;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        height: 48px;
        max-width: 100%;
        word-break: break-word;

        a {
            color: #000 !important;
        }
    }

    .product-price {
        font-size: 24px !important;
        font-weight: 500;
        line-height: 20px;
        color: #000 !important;
        margin-bottom: 2px;
    }

    .product-btn {
        font-size: 14px;
        font-weight: 400;
        line-height: 20px;
        display: inline-block;
        color: #FFF;
        background-color: var(--e-global-color-primary);
        text-decoration: none;
        border-radius: 4px;
        padding: 8px 32px;
        margin: 0 0 10px;

        &:hover {
            color: #FFFFFF;
            background-color: #000000;
            text-decoration: none;
        }
    }
}

.splide__arrow {
    background: none;
    opacity: 1;
    height: 24px;
    width: 24px;
    box-shadow: inset 0 0 12px 12px #fff;
    top: calc(50% - 12px);
    margin: 0;
    padding: 0;

    &.splide__arrow--prev {
        left: -12px;
    }

    &.splide__arrow--next {
        right: -12px;
        transform: rotate(180deg);
    }

    svg {
        height: 24px;
        width: 24px;
        transform: none;
    }
}

.price-loading svg {
    animation: price-spin 0.8s linear infinite;
}

@keyframes price-spin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 1200px) {
    .product-wrapper {
        .product-btn {
            padding: 8px 20px;
        }
    }

    .splide__arrow {

        &.splide__arrow--prev {
            left: 0;
        }

        &.splide__arrow--next {
            right: 0;
        }
    }
}

@media (max-width: 1024px) {
    .hardware_offers_wrapper {
        padding: 10px 0;
    }

    .product-wrapper {
        .product-btn {
            padding: 8px 16px;
        }
    }
}

@media (max-width: 767px) {
    .product-wrapper {
        .product-btn {
            padding: 6px 12px;
            font-size: 14px;
        }
    }
}

/* Hardware offers */