.post-item {
    position: relative;
    background: #fff;
    border: 1px solid #F0F5FF;
    border-radius: 10px;
    overflow: hidden;
}

.post-item.top {
    border: 2px solid #56AFF4;
}

.post-item.highlighted {
    background: rgba(237, 215, 51, 0.15);
}

.post-item.popup-gold {
    border-color: #EDBE33;
}

.post-item.of-the-day {
    border: 2px solid #0AAD34;
}

.post-item .post-item-content {
    display: flex;
}

.post-item .post-image {
    position: relative;
    display: flex;
    width: 265px;
    max-height: 227px;
    background: var(--bg-light-gray);
    overflow: hidden;
}


.post-item .post-image img {
    object-fit: cover;
    width: 100%;
}

.post-item .post-inner {
    position: relative;
    /*flex: 1 1 0%;*/
    width: calc(100% - 265px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.post-item .post-content {
    padding: 15px 15px 0 20px;
}

.post-item .title {
    font-size: 18px;
    font-weight: bold;
    color: #103168;
    margin-bottom: 4px;
}

.post-item .title-content {
    position: relative;
    padding-bottom: 10px;
    /*margin-bottom: 10px;*/
}

/*.post-item .title-content:after {*/
/*    width: 20%;*/
/*    content: '';*/
/*    display: inline-block;*/
/*    position: absolute;*/
/*    bottom: 0;*/
/*    border-top: 1px solid #e3e3e3;*/
/*}*/

.post-item .title a {
    color: inherit;
    text-decoration: none;
}

.post-item .category {
    font-size: 14px;
}

.post-item .geo {
    font-size: 13px;
    color: #707070;
    margin-bottom: 4px;
}

.post-item .description {
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


.post-item .price {
    font-size: 18px;
    font-weight: bold;
    min-height: 27px;
    margin: 5px 0;
}

.post-item .logo {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 60px;
    height: 40px;
    display: flex;
    border-radius: 5px;
    overflow: hidden;
}

.post-item .logo img {
    object-fit: cover;
    width: 100%;
    margin: auto;
    display: block;
    border-radius: 2px;
}

.post-item .post-image .logo {
    width: 50px;
    height: 35px;
}

.post-item .attributes {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--dark-gray);
}

.post-item .attributes .attribute {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: #939598;
    background: #F0F5FF;
    border-radius: var(--border-radius-lg);
    padding: 2px 10px;
}

.post-item .bottom-bar {
    padding: 0 15px 10px 20px;
}

.post-item .post-item-notes {
    display: none;
    width: 100%;
    font-size: 13px;
    text-align: left;
    color: #707070;
    background: rgba(255, 242, 140, 0.26);
    padding: 5px 10px;
}
.post-item .post-item-notes.show {
    display: block;
}

.post-item.grid {
    flex-direction: column;
    margin: 15px 0;
}

.post-item.grid .post-image {
    width: 100%;
    height: 250px;
    max-height: unset;
    background: var(--bg-light-gray);
    overflow: hidden;
}

.post-item.grid .post-inner {
    width: 100%;
}

.post-item.compact .post-image {
    height: 165px;
}

.post-item.compact .price {
    margin-bottom: 0;
}

.post-badge-rounded {
    position: absolute;
    top: 10px;
    left: 10px;
    min-width: 105px;
    height: 36px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: var(--border-radius-lg);
}

.post-badge-rounded .badge-label {
    font-size: 14px;
    font-weight: bold;
    text-align: center;
    line-height: 1;
    color: #fff;

}

.post-badge-rounded.promoted {
    background: rgba(16, 49, 104, 0.7);
}

.post-badge-rounded.top {
    background: rgba(86, 175, 244, 0.7);
}

.post-badge-rounded.popup {
    background: rgba(221, 108, 117, 0.7);
}

.post-badge-rounded.popup-gold {
    background: rgba(237, 190, 51, 0.7);
}

.post-badge-rounded.highlighted {
    background: rgba(237, 215, 51, 0.7)
}

.post-badge-rounded.of-the-day {
    background: rgba(10, 173, 52, 0.7);
}


.post-badge {
    --badge-bg: #f0f5ff;
    --badge-color: #0a63c9;

    position: absolute;
    top: -8px;
    left: 12px;
    z-index: 2;

    width: 50px;
    height: 64px;

    display: flex;
    justify-content: center;
    align-items: center;

    padding-top: 10px;
    box-sizing: border-box;

    background: var(--badge-bg);
    color: var(--badge-color);

    border-radius: 8px 8px 10px 10px;

    filter: drop-shadow(5px 4px 5px rgba(147, 149, 152, 0.7));
}

/* Αριστερή κάτω μύτη */
.post-badge::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: -10px;

    width: 28px;
    height: 22px;

    background: var(--badge-bg);
    border-radius: 0 0 0 5px;

    transform: skewY(-22deg);
    transform-origin: left top;
}

/* Δεξιά κάτω μύτη */
.post-badge::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -10px;

    width: 28px;
    height: 22px;

    background: var(--badge-bg);
    border-radius: 0 0 5px 0;

    transform: skewY(22deg);
    transform-origin: right top;
}

.post-badge-label {
    position: relative;
    z-index: 1;

    max-width: 40px;
    text-align: center;

    font-size: 10px;
    font-weight: 700;
    line-height: 1.1;
    text-transform: uppercase;
}

.post-badge.top {
    --badge-bg: #f0f5ff;
    --badge-color: #006edc;
}

.post-badge.popup {
    --badge-bg: #0066A2;
    --badge-color: #fff;
}

.post-badge.popup-gold {
    --badge-bg: #FFFFFF;
    --badge-color: #EDBE33;
}

.post-badge.highlighted {
    --badge-bg: #EDD733;
    --badge-color: #707070;
}

.post-badge.daily {
    --badge-bg: #0AAD34;
    --badge-color: #fff;
}

.new-badge {
    font-weight: 500;
    color: #fff;
    background: #DD6C75;
    margin-right: -15px;
    border-radius: 5px 0 0 5px;
    padding: 3px 10px;
}

@media (max-width: 576px) {
    .post-item {
        margin: 15px 0;
    }

    .post-item .post-item-content {
        flex-direction: column;
    }

    .post-item .post-image {
        width: 100%;
        height: 250px;
        max-height: unset;
        background: var(--bg-light-gray);
        overflow: hidden;
    }

    .post-item .post-inner {
        width: 100%;
    }
}