.cm-smart-related {
    clear: both;
    width: 100%;
    margin: 35px 0 20px;
    box-sizing: border-box;
}

.cm-smart-related-title {
    margin: 0 0 35px;
    text-align: center;
    font-size: 30px;
    line-height: 1.2;
    font-weight: 500;
    color: #2d2d2d;
}

.cm-smart-related-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    width: 100%;
}

.cm-smart-related-item {
    position: relative;
    min-width: 0;
    padding: 0 18px 28px;
    text-align: center;
    box-sizing: border-box;
    border-right: 1px solid #eeeeee;
}

.cm-smart-related-item:nth-child(4n) {
    border-right: 0;
}

/* SLIKA */

.cm-smart-related-image {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 231px;
    overflow: hidden;
    background: #ffffff;
}

.cm-smart-related-image img, .cm-smart-related-thumb {
    display: block;
    width: auto;
    height: auto;
    max-width: 134%;
    max-height: 235px;
    object-fit: contain;
    margin: auto;
}

/* POPUST */

.cm-smart-related-discount {
    position: absolute;
    top: 12px;
    right: 2px;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 39px;
    height: 25px;
    padding: 0 6px;
    box-sizing: border-box;
    border-radius: 22px;
    background: #ff0000;
    color: #ffffff;
    font-size: 13px;
    font-weight: 400;
    line-height: 1;
}

/* NASLOV */

.cm-smart-related-name {
    display: -webkit-box; font-family: Poppins, sans-serif;
    min-height: 56px;
    max-height: 58px;
    margin: -1px 0 8px;
    overflow: hidden;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.25;
    text-align: center;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.cm-smart-related-name a {
    color: #202020;
    text-decoration: none;
}

.cm-smart-related-name a:hover {
    color: #f4510b;
}

/* CIJENE */

.cm-smart-related-price {
    display: flex;
    min-height: 48px;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    line-height: 1.2;
}

.cm-smart-related-sales-price {
    display: block;
    color: #ff0000;
    font-size: 20px;
    font-weight: 400;
}

.cm-smart-related-base-price {
    display: block;
    margin-top: 2px;
    color: #888888;
    font-size: 15px;
    font-weight: 400;
    text-decoration: line-through;
}

/* TABLET */

@media (max-width: 991px) {

    .cm-smart-related {
        padding: 30px 15px 35px;
    }

    .cm-smart-related-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cm-smart-related-item:nth-child(4n) {
        border-right: 1px solid #eeeeee;
    }

    .cm-smart-related-item:nth-child(2n) {
        border-right: 0;
    }

    .cm-smart-related-image {
        height: 250px;
    }

    .cm-smart-related-image img,
    .cm-smart-related-thumb {
        max-width: 121%;
        max-height: 188px;
    }
}

/* MOBITEL */

@media (max-width: 480px) {

    .cm-smart-related {
        padding: 25px 8px 30px;
    }

    .cm-smart-related-title {
        margin-bottom: 25px;
        font-size: 24px;
    }

    .cm-smart-related-item {
        padding: 0 8px 22px;
    }

    .cm-smart-related-image {
        height: 205px;
    }

    .cm-smart-related-image img,
    .cm-smart-related-thumb {
        max-width: 94%;
        max-height: 185px;
    }

    .cm-smart-related-discount {
        top: 7px;
        right: 3px;
        min-width: 42px;
        height: 28px;
        padding: 0 7px;
        font-size: 13px;
    }

    .cm-smart-related-name {
        min-height: 66px;
        max-height: 66px;
        margin: 10px 0 7px;
        font-size: 14px;
        line-height: 22px;
        -webkit-line-clamp: 3;
    }

    .cm-smart-related-sales-price {
        font-size: 17px;
    }

    .cm-smart-related-base-price {
        font-size: 13px;
    }
}

.cm-smart-related-meta {
    min-height: 52px;
    margin-bottom: 6px;
    text-align: center;
}

.cm-smart-related-category {
    margin-bottom: 2px;
    color: #c6c6c6;
    font-size: 14px;
    font-weight: 300;
    line-height: 19px;
}

.cm-smart-related-category a {
    color: #c6c6c6;
    text-decoration: none;
}

.cm-smart-related-manufacturer {
    color: #f4510b;
    font-size: 16px;
    font-weight: 400;
    line-height: 23px;
}

.cm-smart-related-manufacturer a {
    color: #f4510b;
    text-decoration: none;
}

.cm-smart-related-category a:hover,
.cm-smart-related-manufacturer a:hover {
    color: #333333;
}

@media (max-width: 480px) {
    .cm-smart-related-meta {
        min-height: 48px;
    }

    .cm-smart-related-category {
        font-size: 12px;
        line-height: 17px;
    }

    .cm-smart-related-manufacturer {
        font-size: 14px;
        line-height: 20px;
    }
}

.cm-smart-related-manufacturer {
    min-height: 21px;
    margin: 0 0 8px;
    font-size: 13px;
    font-weight: 300;
    line-height: 20px;
    text-align: center;
    color: #333333 !important;
    font-family: Poppins, sans-serif;
}

.cm-smart-related-manufacturer a {
    color: #333333 !important;
    text-decoration: none;
}