/* ========================= ITEM / POST ========================= */
.itempopup_open {
    display: flex;
    border: 1px solid #ffffff;
    border-radius: 14px;
    margin-bottom: 14px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    justify-content: center;
}

.itempopup_open h2 {
    display: flex;
    align-items: center;
    gap: 10px; /* espacio entre el título y el badge */
    font-size: 1.5rem;
}

.nuevo {
    color: #fff;
    font-size: 0.8rem;
    padding: 2px 8px;
    border-radius: 8px;
    border: 2px solid transparent;
    background-clip: padding-box;
    position: relative;
}

.nuevo::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg,#7c45d6, #9f5adb);
    z-index: -1;
    border-radius: 8px;
}

.info-post {
    flex: 1;
    padding: 14px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.info-post h2 {
    margin: 0 0 6px;
    font-size: 16px;
    font-weight: 600;
}

.info-post div {
    font-size: 14px;
}

.info-post-content {
    margin-bottom: 10px;
    font-size: 14.5px;
    line-height: 1.4;
    opacity: 0.9;
}

.price {
    display: flex;
    align-items: baseline;
    gap: 2px;
    font-size: 17px;
    font-weight: 600;
}

.price-symbol {
    color: rgb(255, 86, 255);
}

.price-number {
    color: #ffffff;
}

/* IMAGEN ITEM */
.img-wrapper {
    width: 120px;
    max-width: 120px;
    aspect-ratio: 1 / 1;
}

.img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ========================= RESPONSIVE ========================= */
@media (min-width: 768px) {
    .img-wrapper {
        width: 180px;
        min-width: 180px;
    }
    
    .info-post h2 {
        font-size: 20px;
    }
    
    .info-post-content {
        font-size: 15.5px;
    }
    
    .price {
        font-size: 18px;
    }
}

.itempopup_open:has(.nuevo) {
    border-color: #9f5adb;
    box-shadow: 0 0 12px rgba(159, 90, 219, 0.5);
}