.custom-featured-products-section {
    overflow: hidden;
    background: #fff;
    border-top: 1px solid #ebedef;
    padding: 112px 0;
}

.custom-featured-products-section .container {
    padding: 0;
}

.custom-featured-products-section__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    margin-bottom: 32px;
}

.custom-featured-products-section__info {
    min-width: 0;
}

.custom-featured-products-section__title {
    margin: 0 0 16px;
}

.custom-featured-products-section__text {
    color: #36485c;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.4;
}

.custom-featured-products-section__text p:last-child {
    margin-bottom: 0;
}

.custom-featured-products-section__button {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    border: 1px solid #88b04b;
    border-radius: 8px;
    background: #88b04b;
    padding: 12px 24px;
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
    text-decoration: none;
    transition:
        background-color 0.2s ease,
        color 0.2s ease;
}

.custom-featured-products-section__button:hover {
    background: #fff;
    color: #88b04b;
}

.custom-featured-products-section__mobile-button {
    display: none;
}

/**
 * Product grid prije nego što se Slick inicijalizira.
 */
.custom-featured-products-section__products {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

/**
 * Kada se inicijalizira Slick, on sam upravlja layoutom.
 */
.custom-featured-products-section__products.slick-initialized {
    display: block;
}

.custom-featured-products-section__products .slick-list {
    margin-right: -12px;
    margin-left: -12px;
}

.custom-featured-products-section__products .slick-slide {
    box-sizing: border-box;
    padding-right: 12px;
    padding-left: 12px;
}

.custom-featured-product {
    min-width: 0;
    text-align: center;
}

.custom-featured-product__image-wrapper {
    position: relative;
    display: flex;
    overflow: hidden;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1.08;
    border-radius: 12px;
    background: #faf7f2;
    padding: 35px;
}

.custom-featured-product__image-link {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
}

.custom-featured-product__image {
    width: 100%;
    height: 100%;
    max-width: 190px;
    max-height: 210px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.custom-featured-product:hover .custom-featured-product__image {
    transform: scale(1.04);
}

.custom-featured-product__discount {
    position: absolute;
    z-index: 2;
    top: 12px;
    left: 12px;
    border-radius: 6px;
    background: #236449;
    padding: 5px 9px;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
}

.custom-featured-product__actions {
    position: absolute;
    right: 12px;
    bottom: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.custom-featured-product__action {
    display: flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #fff;
    color: #36485c;
    text-decoration: none;
    box-shadow: 0 2px 10px rgba(54, 72, 92, 0.06);
    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

.custom-featured-product__action:hover {
    background: #36485c;
    color: #fff;
    transform: translateY(-2px);
}

.custom-featured-product__action.loading {
    opacity: 0.6;
    pointer-events: none;
}

.custom-featured-product__content {
    padding: 14px 8px 0;
}

.custom-featured-product__category {
    margin-bottom: 4px;
    color: #57936d;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.4;
}

.custom-featured-product__category a {
    color: inherit;
    text-decoration: none;
}

.custom-featured-product__title {
    margin: 0 0 4px;
    color: #36485c;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
}

.custom-featured-product__title a {
    color: inherit;
    text-decoration: none;
}

.custom-featured-product__title a:hover {
    color: #88b04b;
}

.custom-featured-product__price {
    color: #36485c;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
}

.custom-featured-product__price del {
    margin-right: 6px;
    color: #9ca6b1;
    font-size: 12px;
    font-weight: 400;
}

.custom-featured-product__price ins {
    background: transparent;
    color: #36485c;
    font-weight: 600;
    text-decoration: none;
}

/**
 * Slick dots.
 */
.custom-featured-products-section .slick-dots {
    position: static;
    display: flex;
    justify-content: center;
    gap: 6px;
    margin: 34px 0 0;
    padding: 0;
    list-style: none !important;
}

.custom-featured-products-section .slick-dots li {
    width: auto;
    height: auto;
    margin: 0;
    list-style: none !important;
}

.custom-featured-products-section .slick-dots button {
    display: block;
    width: 7px;
    height: 7px;
    border: 0;
    border-radius: 100px;
    background: #dbe7df;
    padding: 0;
    font-size: 0;
    transition:
        width 0.2s ease,
        background-color 0.2s ease;
}

.custom-featured-products-section .slick-dots .slick-active button {
    width: 20px;
    background: #236449;
}

@media (max-width: 1199px) {
    .custom-featured-products-section__products {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 991px) {
    .custom-featured-products-section__products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .custom-featured-products-section__products .slick-list {
        margin-right: -4px;
        margin-left: -4px;
    }

    .custom-featured-products-section__products .slick-slide {
        padding-right: 4px;
        padding-left: 4px;
    }
}

@media (max-width: 767px) {
    .custom-featured-products-section {
        padding: 64px 0;
    }

    .custom-featured-products-section__header {
        display: block;
        margin-bottom: 40px;
    }

    .custom-featured-products-section__title {
        margin-bottom: 12px;
        font-size: 28px;
        line-height: 1.2;
    }

    .custom-featured-products-section__text {
        font-size: 16px;
    }

    /**
     * Skrivamo desktop gumb iz headera.
     */
    .custom-featured-products-section__button--desktop {
        display: none;
    }

    /**
     * Prikazujemo mobilni gumb nakon proizvoda.
     */
    .custom-featured-products-section__mobile-button {
        display: block;
        margin-top: 48px;
    }

    .custom-featured-products-section__button--mobile {
        width: 100%;
        text-align: center;
    }

    .custom-featured-products-section__products {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .custom-featured-product__image-wrapper {
        aspect-ratio: 1 / 1.4;
        padding: 20px 12px;
    }

    .custom-featured-product__image {
        max-width: 130px;
        max-height: 180px;
    }

    .custom-featured-product__actions {
        right: 8px;
        bottom: 8px;
    }

    .custom-featured-product__action {
        width: 40px;
        height: 40px;
    }

    .custom-featured-product__content {
        padding: 14px 4px 0;
    }

    .custom-featured-product__category {
        font-size: 11px;
    }

    .custom-featured-product__title {
        font-size: 16px;
    }

    .custom-featured-products-section .slick-dots {
        margin-top: 38px;
    }
}